diff --git a/_build_dependencies.sh b/_build_dependencies.sh index 69aa9f2c115..e79eac66dcd 100644 --- a/_build_dependencies.sh +++ b/_build_dependencies.sh @@ -2,7 +2,7 @@ # For dreamchecker export SPACEMANDMM_TAG=suite-1.7.1 # For TGUI -export NODE_VERSION=16 +export NODE_VERSION=18 # Stable Byond Major export STABLE_BYOND_MAJOR=514 # Stable Byond Minor diff --git a/_maps/map_files/generic/CentComm.dmm b/_maps/map_files/generic/CentComm.dmm index 44d4912f439..e31ea27f6d2 100644 --- a/_maps/map_files/generic/CentComm.dmm +++ b/_maps/map_files/generic/CentComm.dmm @@ -6102,10 +6102,13 @@ }, /area/centcom/zone1) "daj" = ( -/obj/structure/chair/sofa{ - dir = 4 +/obj/structure/closet/fireaxecabinet{ + pixel_y = 32 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkblue" }, -/turf/simulated/floor/carpet/red, /area/centcom/zone1) "daD" = ( /obj/item/twohanded/required/kirbyplants{ @@ -6173,6 +6176,12 @@ /obj/item/kitchen/knife, /turf/simulated/floor/carpet/black, /area/trader_station/sol) +"ddZ" = ( +/obj/structure/chair/sofa/left{ + dir = 8 + }, +/turf/simulated/floor/carpet/red, +/area/centcom/zone1) "def" = ( /obj/structure/window/reinforced{ dir = 1; @@ -6701,6 +6710,15 @@ }, /turf/simulated/floor/indestructible/beach/water/deep/dense, /area/ninja/outside) +"dvw" = ( +/obj/structure/closet/medical_wall{ + pixel_y = 32 + }, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkblue" + }, +/area/centcom/zone1) "dvz" = ( /obj/structure/bookcase/manuals, /obj/item/book/manual/security_space_law{ @@ -8322,8 +8340,8 @@ }, /area/syndicate_mothership/control) "elD" = ( -/obj/structure/chair/sofa{ - dir = 5 +/obj/structure/chair/sofa/right{ + dir = 1 }, /turf/simulated/floor/carpet/red, /area/centcom/zone1) @@ -30851,7 +30869,7 @@ /obj/structure/sign/poster/official/religious{ pixel_y = -32 }, -/obj/structure/chair/sofa{ +/obj/structure/chair/sofa/left{ dir = 1 }, /turf/simulated/floor/carpet/red, @@ -33946,7 +33964,7 @@ /obj/machinery/light/small{ dir = 1 }, -/obj/structure/chair/sofa, +/obj/structure/chair/sofa/right, /turf/simulated/floor/carpet/red, /area/centcom/zone1) "qIk" = ( @@ -34308,9 +34326,6 @@ /area/syndicate_mothership/elite_squad) "qQT" = ( /obj/machinery/vending/snack, -/obj/structure/closet/hydrant{ - pixel_y = 32 - }, /turf/simulated/floor/wood, /area/centcom/zone1) "qRs" = ( @@ -39558,9 +39573,6 @@ /area/shuttle/ninja) "tmi" = ( /obj/machinery/vending/cigarette, -/obj/structure/closet/fireaxecabinet{ - pixel_y = 32 - }, /obj/machinery/light{ dir = 1 }, @@ -43204,9 +43216,6 @@ }, /area/centcom/zone2) "uRM" = ( -/obj/structure/closet/secure_closet/bar{ - req_access = null - }, /obj/item/storage/box/beakers/bluespace, /obj/item/storage/box/drinkingglasses, /obj/item/storage/box/drinkingglasses, @@ -43219,6 +43228,7 @@ /obj/item/storage/box/drinkingglasses, /obj/item/storage/box/drinkingglasses, /obj/item/reagent_containers/iv_bag/bloodsynthetic/oxygenis, +/obj/structure/closet/secure_closet/bar, /turf/simulated/floor/wood, /area/centcom/zone1) "uSa" = ( @@ -45554,11 +45564,13 @@ }, /area/syndicate_mothership/cargo) "vYj" = ( -/obj/machinery/vending/cola/free, -/obj/structure/closet/medical_wall{ +/obj/structure/closet/hydrant{ pixel_y = 32 }, -/turf/simulated/floor/wood, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "darkblue" + }, /area/centcom/zone1) "vYs" = ( /obj/effect/turf_decal/stripes/line, @@ -99117,7 +99129,7 @@ dsj ueb ihM onc -vYj +frx bBI eNm ePS @@ -100403,7 +100415,7 @@ tak onc onc onc -kAE +dvw tak nxD nxD @@ -101431,7 +101443,7 @@ onc onc onc onc -kAE +daj tak xSv wUF @@ -103230,7 +103242,7 @@ onc onc onc onc -kAE +vYj ekH onc onc @@ -104251,7 +104263,7 @@ cKy kcU siO kcU -daj +kcU elD onc kAE @@ -105535,7 +105547,7 @@ onc eXF awg awg -awg +ddZ kcU onc onc diff --git a/code/__DEFINES/sound.dm b/code/__DEFINES/sound.dm index 4d50e3136da..b1428d7f613 100644 --- a/code/__DEFINES/sound.dm +++ b/code/__DEFINES/sound.dm @@ -13,11 +13,14 @@ #define CHANNEL_TTS_RADIO 1013 #define CHANNEL_RADIO_NOISE 1012 // radio headset noise #define CHANNEL_BOSS_MUSIC 1011 +#define CHANNEL_INTERACTION_SOUNDS 1010 // item pickup/equip/drop sounds + +#define USER_VOLUME(M, C) M?.client?.prefs.get_channel_volume(C) //THIS SHOULD ALWAYS BE THE LOWEST ONE! //KEEP IT UPDATED -#define CHANNEL_HIGHEST_AVAILABLE 1010 +#define CHANNEL_HIGHEST_AVAILABLE 1009 #define MAX_INSTRUMENT_CHANNELS (128 * 6) diff --git a/code/__HELPERS/lists.dm b/code/__HELPERS/lists.dm index 0414fe1d74b..8a7053d92aa 100644 --- a/code/__HELPERS/lists.dm +++ b/code/__HELPERS/lists.dm @@ -788,6 +788,7 @@ proc/dd_sortedObjectList(list/incoming) #define UNSETEMPTY(L) if (L && !L.len) L = null #define LAZYREMOVE(L, I) if(L) { L -= I; if(!L.len) { L = null; } } #define LAZYADD(L, I) if(!L) { L = list(); } L += I; +/// Adds I to L, initializing L if necessary, if I is not already in L #define LAZYADDOR(L, I) if(!L) { L = list(); } L |= I; #define LAZYACCESS(L, I) (L ? (isnum(I) ? (I > 0 && I <= L.len ? L[I] : null) : L[I]) : null) #define LAZYLEN(L) length(L) // Despite how pointless this looks, it's still needed in order to convey that the list is specificially a 'Lazy' list. diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 234bc09a629..5eb1cd82231 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -804,7 +804,7 @@ Returns 1 if the chain up to the area contains the given typepath -/proc/DuplicateObject(obj/original, var/perfectcopy = 0 , var/sameloc = 0, var/atom/newloc = null) +/proc/DuplicateObject(obj/original, perfectcopy = FALSE , sameloc = FALSE, atom/newloc = null) if(!original) return null @@ -816,8 +816,8 @@ Returns 1 if the chain up to the area contains the given typepath O=new original.type(newloc) if(perfectcopy) - if((O) && (original)) - var/static/list/forbidden_vars = list("type","loc","locs","vars", "parent","parent_type", "verbs","ckey","key","power_supply","contents","reagents","stat","x","y","z","group") + if(O) + var/static/list/forbidden_vars = list("type","loc","locs","vars", "parent","parent_type", "verbs","ckey","key","power_supply","contents","reagents","stat","x","y","z","group", "comp_lookup", "datum_components") for(var/V in original.vars - forbidden_vars) if(istype(original.vars[V],/list)) @@ -831,14 +831,15 @@ Returns 1 if the chain up to the area contains the given typepath O.update_icon() return O -/area/proc/copy_contents_to(var/area/A , var/platingRequired = 0 ) +/area/proc/copy_contents_to(area/A , platingRequired = FALSE, perfect_copy = TRUE) //Takes: Area. Optional: If it should copy to areas that don't have plating //Returns: Nothing. //Notes: Attempts to move the contents of one area to another area. // Movement based on lower left corner. Tiles that do not fit // into the new area will not be moved. - if(!A || !src) return 0 + if(!A || !src) + return FALSE var/list/turfs_src = get_area_turfs(src.type) var/list/turfs_trg = get_area_turfs(A.type) @@ -846,14 +847,18 @@ Returns 1 if the chain up to the area contains the given typepath var/src_min_x = 0 var/src_min_y = 0 for(var/turf/T in turfs_src) - if(T.x < src_min_x || !src_min_x) src_min_x = T.x - if(T.y < src_min_y || !src_min_y) src_min_y = T.y + if(T.x < src_min_x || !src_min_x) + src_min_x = T.x + if(T.y < src_min_y || !src_min_y) + src_min_y = T.y var/trg_min_x = 0 var/trg_min_y = 0 for(var/turf/T in turfs_trg) - if(T.x < trg_min_x || !trg_min_x) trg_min_x = T.x - if(T.y < trg_min_y || !trg_min_y) trg_min_y = T.y + if(T.x < trg_min_x || !trg_min_x) + trg_min_x = T.x + if(T.y < trg_min_y || !trg_min_y) + trg_min_y = T.y var/list/refined_src = new/list() for(var/turf/T in turfs_src) @@ -882,68 +887,30 @@ Returns 1 if the chain up to the area contains the given typepath for(var/turf/B in refined_trg) var/datum/coords/C_trg = refined_trg[B] if(C_src.x_pos == C_trg.x_pos && C_src.y_pos == C_trg.y_pos) - var/old_dir1 = T.dir var/old_icon_state1 = T.icon_state var/old_icon1 = T.icon if(platingRequired) - if(istype(B, /turf/space)) + if(isspaceturf(B)) continue moving - var/turf/X = new T.type(B) X.dir = old_dir1 X.icon_state = old_icon_state1 X.icon = old_icon1 //Shuttle floors are in shuttle.dmi while the defaults are floors.dmi - - var/list/objs = new/list() - var/list/newobjs = new/list() - var/list/mobs = new/list() - var/list/newmobs = new/list() - for(var/obj/O in T) - - if(!istype(O,/obj)) - continue - - objs += O - - - for(var/obj/O in objs) - newobjs += DuplicateObject(O , 1) - - - for(var/obj/O in newobjs) - O.loc = X + copiedobjs += DuplicateObject(O, perfect_copy, newloc = X) for(var/mob/M in T) - if(!M.move_on_shuttle) continue - mobs += M - - for(var/mob/M in mobs) - newmobs += DuplicateObject(M , 1) - - for(var/mob/M in newmobs) - M.loc = X - - copiedobjs += newobjs - copiedobjs += newmobs - - + copiedobjs += DuplicateObject(M, perfect_copy, newloc = X) for(var/V in T.vars) - if(!(V in list("type","loc","locs","vars", "parent", "parent_type","verbs","ckey","key","x","y","z","contents", "luminosity", "group"))) + if(!(V in list("type","loc","locs","vars", "parent", "parent_type","verbs","ckey","key","x","y","z","destination_z", "destination_x", "destination_y","contents", "luminosity", "group"))) X.vars[V] = T.vars[V] -// var/area/AR = X.loc - -// if(AR.lighting_use_dynamic) -// X.opacity = !X.opacity -// X.sd_set_opacity(!X.opacity) //TODO: rewrite this code so it's not messed by lighting ~Carn - toupdate += X refined_src -= T @@ -2069,6 +2036,8 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new) return "TTS Radio" if(CHANNEL_RADIO_NOISE) return "Radio Noise" + if(CHANNEL_INTERACTION_SOUNDS) + return "Item Interaction Sounds" if(CHANNEL_BOSS_MUSIC) return "Boss Music" diff --git a/code/_globalvars/lists/misc.dm b/code/_globalvars/lists/misc.dm index 025cd03a230..a11c0ec2ff8 100644 --- a/code/_globalvars/lists/misc.dm +++ b/code/_globalvars/lists/misc.dm @@ -66,5 +66,10 @@ GLOBAL_LIST_EMPTY(geoip_ckey_updated) GLOBAL_LIST_INIT(all_taipan_jobs, list(TAIPAN_SCIENTIST,TAIPAN_MEDIC,TAIPAN_BOTANIST,TAIPAN_CARGO,TAIPAN_CHEF,TAIPAN_ENGINEER,TAIPAN_COMMS,TAIPAN_RD,CYBORG)) +/// List of looping sounds +GLOBAL_LIST_EMPTY(looping_sounds) + + /// List of ckeys that have seen a blurb of a given key. GLOBAL_LIST_EMPTY(blurb_witnesses) + diff --git a/code/datums/diseases/_MobProcs.dm b/code/datums/diseases/_MobProcs.dm index 93e16bbccd3..5ba9244f2e8 100644 --- a/code/datums/diseases/_MobProcs.dm +++ b/code/datums/diseases/_MobProcs.dm @@ -114,13 +114,13 @@ var/permeability_mod = clamp((2 - V.permeability_mod), 0.1, 1) var/mask_protection_mod = 1 if(wear_mask && (wear_mask.flags_cover & MASKCOVERSMOUTH)) - mask_protection_mod = 0.3 + mask_protection_mod = 0.5 if(istype(wear_mask, /obj/item/clothing/mask/breath)) - mask_protection_mod = 0.4 + mask_protection_mod = 0.7 if(istype(wear_mask, /obj/item/clothing/mask/gas)) - mask_protection_mod = 0.6 - if(istype(wear_mask, /obj/item/clothing/mask/surgical) || istype(wear_mask, /obj/item/clothing/mask/breath/medical)) mask_protection_mod = 0.9 + if(istype(wear_mask, /obj/item/clothing/mask/surgical) || istype(wear_mask, /obj/item/clothing/mask/breath/medical)) + mask_protection_mod = 0.99 if(prob(100 * permeability_mod * internals_mod * mask_protection_mod)) return TRUE diff --git a/code/datums/diseases/viruses/_virus.dm b/code/datums/diseases/viruses/_virus.dm index f850fbb40ab..dc657b73b03 100644 --- a/code/datums/diseases/viruses/_virus.dm +++ b/code/datums/diseases/viruses/_virus.dm @@ -20,14 +20,21 @@ * * FALSE - if don't need to call a child proc */ /datum/disease/virus/stage_act() + if(!affected_mob) + return FALSE + if(prob(infectivity)) spread() . = ..() - if(!. || carrier || (affected_mob.type in carrier_mobtypes)) + if(!. || carrier) return FALSE + for(var/mobtype in carrier_mobtypes) + if(istype(affected_mob, mobtype)) + return FALSE + return TRUE /datum/disease/virus/try_increase_stage() diff --git a/code/datums/emote/emote.dm b/code/datums/emote/emote.dm index 3fcf1e3b6af..fb710ef2dce 100644 --- a/code/datums/emote/emote.dm +++ b/code/datums/emote/emote.dm @@ -187,12 +187,9 @@ msg = genderize_decode(user, msg) - var/suppressed = FALSE - // Keep em quiet if they can't speak - if(!can_vocalize_emotes(user) && ((emote_type & (EMOTE_MOUTH|EMOTE_AUDIBLE)) || (emote_type & (EMOTE_MOUTH|EMOTE_SOUND)))) + if(!can_vocalize_emotes(user) && ((emote_type & EMOTE_MOUTH) && (emote_type & (EMOTE_AUDIBLE|EMOTE_SOUND)))) var/noise_emitted = pick(muzzled_noises) - suppressed = TRUE msg = "изда[pluralize_ru(user.gender, "ёт", "ют")] [noise_emitted] звуки." var/tmp_sound = get_sound(user) @@ -228,7 +225,7 @@ else user.visible_message(displayed_msg, blind_message = span_italics("You hear how someone [msg]")) - if(!((emote_type & (EMOTE_FORCE_NO_RUNECHAT|EMOTE_SOUND)) || suppressed) && !isobserver(user)) + if(!(emote_type & (EMOTE_FORCE_NO_RUNECHAT|EMOTE_SOUND)) && !isobserver(user)) runechat_emote(user, msg) SEND_SIGNAL(user, COMSIG_MOB_EMOTED(key), src, key, emote_type, message, intentional) diff --git a/code/datums/emote/emote_verbs.dm b/code/datums/emote/emote_verbs.dm index 45cd59b88a3..ff950f281e7 100644 --- a/code/datums/emote/emote_verbs.dm +++ b/code/datums/emote/emote_verbs.dm @@ -69,10 +69,12 @@ set category = "Эмоции" emote("sniff", intentional = TRUE) -/mob/living/carbon/human/verb/emote_snore() +/* +/mob/living/carbon/human/verb/emote_snore() // locked to unconscious stat set name = "▷ Храпеть " set category = "Эмоции" emote("snore", intentional = TRUE) +*/ /mob/living/carbon/human/verb/emote_whistle() set name = "▷ Свистеть " diff --git a/code/datums/looping_sounds/item_sounds.dm b/code/datums/looping_sounds/item_sounds.dm new file mode 100644 index 00000000000..4233c478644 --- /dev/null +++ b/code/datums/looping_sounds/item_sounds.dm @@ -0,0 +1,5 @@ +/datum/looping_sound/tape_recorder_hiss + mid_sounds = list('sound/items/taperecorder/taperecorder_hiss_mid.ogg') + start_sound = list('sound/items/taperecorder/taperecorder_hiss_start.ogg') + volume = 10 + diff --git a/code/datums/looping_sounds/looping_sound.dm b/code/datums/looping_sounds/looping_sound.dm index 9b611b7fb8f..bab842ba95a 100644 --- a/code/datums/looping_sounds/looping_sound.dm +++ b/code/datums/looping_sounds/looping_sound.dm @@ -31,6 +31,11 @@ var/falloff_exponent var/muted = TRUE var/falloff_distance + /// Channel of the audio, random otherwise + var/channel + /// If this sound is based off of an area + var/area_sound = FALSE + /datum/looping_sound/New(list/_output_atoms = list(), start_immediately = FALSE, _direct = FALSE) if(!mid_sounds) @@ -43,26 +48,35 @@ if(start_immediately) start() + /datum/looping_sound/Destroy() + GLOB.looping_sounds -= src stop() output_atoms = null return ..() + /datum/looping_sound/proc/start(atom/add_thing) + GLOB.looping_sounds += src if(add_thing) - output_atoms |= add_thing + LAZYADDOR(output_atoms, add_thing) if(!muted) return muted = FALSE on_start() -/datum/looping_sound/proc/stop(atom/remove_thing) + +/datum/looping_sound/proc/stop(atom/remove_thing, do_not_mute) + GLOB.looping_sounds -= src if(remove_thing) - output_atoms -= remove_thing + LAZYREMOVE(output_atoms, remove_thing) + if(do_not_mute && length(output_atoms)) //if there are no output_atoms then we mute regardless of your preferance + return if(muted) return muted = TRUE + /datum/looping_sound/proc/sound_loop(looped = 0) if(muted || (max_loops && looped > max_loops)) on_stop(looped) @@ -71,18 +85,27 @@ play(get_sound(looped)) addtimer(CALLBACK(src, PROC_REF(sound_loop), ++looped), mid_length) + /datum/looping_sound/proc/play(soundfile) var/list/atoms_cache = output_atoms var/sound/S = sound(soundfile) + if(area_sound) + for(var/area/sound_outputs in atoms_cache) + for(var/mob/listener in mobs_in_area(sound_outputs, TRUE)) + S.volume = volume * (USER_VOLUME(listener, channel)) + SEND_SOUND(listener, S) + return if(direct) - S.channel = SSsounds.random_available_channel() - S.volume = volume - for(var/i in 1 to atoms_cache.len) - var/atom/thing = atoms_cache[i] + S.channel = channel || SSsounds.random_available_channel() + for(var/atom/thing in atoms_cache) if(direct) + if(ismob(thing)) + var/mob/M = thing + S.volume = volume * (USER_VOLUME(M, channel) || 1) SEND_SOUND(thing, S) else - playsound(thing, S, volume, vary, extra_range, falloff_exponent = falloff_exponent, falloff_distance = falloff_distance) + playsound(thing, S, volume, vary, extra_range, falloff_exponent = falloff_exponent, falloff_distance = falloff_distance, channel = channel) + /datum/looping_sound/proc/get_sound(looped, _mid_sounds) if(!_mid_sounds) @@ -92,6 +115,7 @@ while(!isfile(.) && !isnull(.)) . = pickweight(.) + /datum/looping_sound/proc/on_start() var/start_wait = 0 if(start_sound) @@ -99,6 +123,22 @@ start_wait = start_length addtimer(CALLBACK(src, PROC_REF(sound_loop)), start_wait) + /datum/looping_sound/proc/on_stop(looped) if(end_sound) play(end_sound) + + +/// Looping sounds that decrease volume by a specified % each loop until it reaches a specified total % volume. +/datum/looping_sound/decreasing + /// What volume level, as a % of original, to eventually decrease to + var/decrease_to_amount = 50 + /// How much, as a % of original, to decrease the volume by each loop + var/decrease_by_amount = 1 + + +/datum/looping_sound/decreasing/sound_loop(looped = 0) + . = ..() + if(decrease_by_amount && decrease_to_amount && decrease_to_amount < volume) + volume = max(volume - decrease_by_amount, decrease_to_amount) + diff --git a/code/game/gamemodes/miniantags/demons/pulse_demon/pulse_demon.dm b/code/game/gamemodes/miniantags/demons/pulse_demon/pulse_demon.dm index d89f4a5db49..9cc22273760 100644 --- a/code/game/gamemodes/miniantags/demons/pulse_demon/pulse_demon.dm +++ b/code/game/gamemodes/miniantags/demons/pulse_demon/pulse_demon.dm @@ -812,16 +812,16 @@ /obj/item/organ/internal/heart/demon/pulse/attack_self(mob/living/user) . = ..() - user.drop_item_ground() + user.drop_from_active_hand() insert(user) -/obj/item/organ/internal/heart/demon/pulse/insert(mob/living/carbon/M, special, dont_remove_slot) +/obj/item/organ/internal/heart/demon/pulse/insert(mob/living/carbon/M, special = 0) . = ..() M.AddComponent(/datum/component/cross_shock, 30, 500, 2 SECONDS) ADD_TRAIT(M, TRAIT_SHOCKIMMUNE, UNIQUE_TRAIT_SOURCE(src)) M.set_light(3, 2, "#bbbb00") -/obj/item/organ/internal/heart/demon/pulse/remove(mob/living/carbon/M, special) +/obj/item/organ/internal/heart/demon/pulse/remove(mob/living/carbon/M, special = 0) . = ..() REMOVE_TRAIT(M, TRAIT_SHOCKIMMUNE, UNIQUE_TRAIT_SOURCE(src)) M.remove_light() diff --git a/code/game/jobs/access.dm b/code/game/jobs/access.dm index fd4dd25c678..4aa36e57cbd 100644 --- a/code/game/jobs/access.dm +++ b/code/game/jobs/access.dm @@ -41,7 +41,7 @@ /proc/has_access(list/req_access, check_one_access, list/accesses) if(check_one_access) - if(req_access.len) + if(length(req_access)) for(var/req in req_access) if(req in accesses) //has an access from the single access list return TRUE diff --git a/code/game/machinery/computer/HolodeckControl.dm b/code/game/machinery/computer/HolodeckControl.dm index 8d93b2ccb1f..eec74188a4a 100644 --- a/code/game/machinery/computer/HolodeckControl.dm +++ b/code/game/machinery/computer/HolodeckControl.dm @@ -237,15 +237,14 @@ visible_message("The [oldobj.name] fades away!") qdel(obj) -/obj/machinery/computer/HolodeckControl/proc/checkInteg(var/area/A) +/obj/machinery/computer/HolodeckControl/proc/checkInteg(area/A) for(var/turf/T in A) if(istype(T, /turf/space)) return 0 return 1 -/obj/machinery/computer/HolodeckControl/proc/togglePower(var/toggleOn = 0) - +/obj/machinery/computer/HolodeckControl/proc/togglePower(toggleOn = 0) if(toggleOn) var/area/targetsource = locate(/area/holodeck/source_emptycourt) holographic_items = targetsource.copy_contents_to(linkedholodeck) @@ -265,11 +264,11 @@ for(var/item in holographic_items) derez(item) var/area/targetsource = locate(/area/holodeck/source_plating) - targetsource.copy_contents_to(linkedholodeck , 1) + targetsource.copy_contents_to(linkedholodeck, TRUE) active = 0 -/obj/machinery/computer/HolodeckControl/proc/loadProgram(var/area/A) +/obj/machinery/computer/HolodeckControl/proc/loadProgram(area/A) if(world.time < (last_change + 25)) if(world.time < (last_change + 15))//To prevent super-spam clicking, reduced process size and annoyance -Sieve @@ -291,7 +290,7 @@ for(var/mob/living/simple_animal/hostile/carp/holocarp/C in linkedholodeck) qdel(C) - holographic_items = A.copy_contents_to(linkedholodeck , 1) + holographic_items = A.copy_contents_to(linkedholodeck, TRUE) if(emagged) for(var/obj/item/holo/H in linkedholodeck) @@ -320,7 +319,7 @@ loadProgram(target) var/area/targetsource = locate(/area/holodeck/source_plating) - targetsource.copy_contents_to(linkedholodeck , 1) + targetsource.copy_contents_to(linkedholodeck, TRUE) active = 0 // Holographic Items! diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 0446d773144..78b5953873d 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -1779,7 +1779,7 @@ ads_list = list("Just like Kindergarten!","Now with 1000% more vibrant colors!","Screwing with the janitor was never so easy!","Creativity is at the heart of every spessman.") vend_delay = 15 icon_state = "artvend" - products = list(/obj/item/stack/cable_coil/random = 10,/obj/item/camera = 4,/obj/item/camera_film = 6, + products = list(/obj/item/toy/crayon/spraycan = 2,/obj/item/stack/cable_coil/random = 10,/obj/item/camera = 4,/obj/item/camera_film = 6, /obj/item/storage/photo_album = 2,/obj/item/stack/wrapping_paper = 4,/obj/item/stack/tape_roll = 5,/obj/item/stack/packageWrap = 4, /obj/item/storage/fancy/crayons = 4,/obj/item/hand_labeler = 4,/obj/item/paper = 10, /obj/item/c_tube = 10,/obj/item/pen = 5,/obj/item/pen/blue = 5, diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 2c046936536..2aae7e910bc 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -32,11 +32,27 @@ GLOBAL_DATUM_INIT(fire_overlay, /mutable_appearance, mutable_appearance('icons/g /// Used when yate into a mob. var/mob_throw_hit_sound ///Sound used when equipping the item into a valid slot. - var/equip_sound + var/equip_sound = list( + 'sound/items/handling/generic_equip1.ogg', + 'sound/items/handling/generic_equip2.ogg', + 'sound/items/handling/generic_equip3.ogg', + 'sound/items/handling/generic_equip4.ogg', + 'sound/items/handling/generic_equip5.ogg', + ) ///Sound used when picking the item up (into your hands) - var/pickup_sound + var/pickup_sound = list( + 'sound/items/handling/generic_pickup1.ogg', + 'sound/items/handling/generic_pickup2.ogg', + 'sound/items/handling/generic_pickup3.ogg', + ) ///Sound used when dropping the item. - var/drop_sound + var/drop_sound = list( + 'sound/items/handling/generic_drop1.ogg', + 'sound/items/handling/generic_drop2.ogg', + 'sound/items/handling/generic_drop3.ogg', + 'sound/items/handling/generic_drop4.ogg', + 'sound/items/handling/generic_drop5.ogg', + ) ///Whether or not we use stealthy audio levels for this item's attack sounds var/stealthy_audio = FALSE var/w_class = WEIGHT_CLASS_NORMAL @@ -533,8 +549,11 @@ GLOBAL_DATUM_INIT(fire_overlay, /mutable_appearance, mutable_appearance('icons/g remove_outline() SEND_SIGNAL(src, COMSIG_ITEM_DROPPED,user) - if(!silent) - playsound(src, drop_sound, DROP_SOUND_VOLUME, ignore_walls = FALSE) + if(!silent && !(flags & ABSTRACT) && drop_sound) + var/chosen_sound = drop_sound + if(islist(drop_sound) && length(drop_sound)) + chosen_sound = pick(drop_sound) + playsound(src, chosen_sound, DROP_SOUND_VOLUME * USER_VOLUME(user, CHANNEL_INTERACTION_SOUNDS), channel = CHANNEL_INTERACTION_SOUNDS, ignore_walls = FALSE) return TRUE @@ -613,11 +632,19 @@ GLOBAL_DATUM_INIT(fire_overlay, /mutable_appearance, mutable_appearance('icons/g mouse_opacity = MOUSE_OPACITY_OPAQUE in_inventory = TRUE - if(!initial) + if(!initial && !(flags & ABSTRACT)) if(equip_sound && !user.is_general_slot(slot)) - playsound(src, equip_sound, EQUIP_SOUND_VOLUME, TRUE, ignore_walls = FALSE) + var/chosen_sound = equip_sound + if(islist(equip_sound) && length(equip_sound)) + chosen_sound = pick(equip_sound) + playsound(src, chosen_sound, EQUIP_SOUND_VOLUME * USER_VOLUME(user, CHANNEL_INTERACTION_SOUNDS), channel = CHANNEL_INTERACTION_SOUNDS, ignore_walls = FALSE) + else if(slot == slot_l_store || slot == slot_l_store) + playsound(src, 'sound/items/handling/generic_equip3.ogg', EQUIP_SOUND_VOLUME * USER_VOLUME(user, CHANNEL_INTERACTION_SOUNDS), channel = CHANNEL_INTERACTION_SOUNDS, ignore_walls = FALSE) else if(pickup_sound && (slot == slot_l_hand || slot == slot_r_hand)) - playsound(src, pickup_sound, PICKUP_SOUND_VOLUME, ignore_walls = FALSE) + var/chosen_sound = pickup_sound + if(islist(pickup_sound) && length(pickup_sound)) + chosen_sound = pick(pickup_sound) + playsound(src, chosen_sound, PICKUP_SOUND_VOLUME * USER_VOLUME(user, CHANNEL_INTERACTION_SOUNDS), channel = CHANNEL_INTERACTION_SOUNDS, ignore_walls = FALSE) SEND_SIGNAL(src, COMSIG_ITEM_EQUIPPED, user, slot) return TRUE diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm index 85f4e3661b7..898ad3572f0 100644 --- a/code/game/objects/items/bodybag.dm +++ b/code/game/objects/items/bodybag.dm @@ -19,7 +19,10 @@ icon_state = "bodybag_closed" icon_closed = "bodybag_closed" icon_opened = "bodybag_open" - sound = 'sound/items/zip.ogg' + open_sound = 'sound/items/zip.ogg' + close_sound = 'sound/items/zip.ogg' + open_sound_volume = 15 + close_sound_volume = 15 var/item_path = /obj/item/bodybag density = 0 integrity_failure = 0 diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index 8bfa5c58f09..e0945daedcf 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -4,6 +4,7 @@ var/radio_desc = "" icon_state = "headset" item_state = "headset" + equip_sound = 'sound/items/handling/generic_equip4.ogg' sprite_sheets = list( "Vox" = 'icons/mob/clothing/species/vox/ears.dmi', "Vox Armalis" = 'icons/mob/clothing/species/armalis/ears.dmi', diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index b081ef9a481..6d958318e4e 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -817,6 +817,8 @@ GLOBAL_LIST_INIT(default_medbay_channels, list( listening = 1 name = "phone" dog_fashion = null + drop_sound = 'sound/items/handling/phone_drop.ogg' + pickup_sound = 'sound/items/handling/phone_pickup.ogg' /obj/item/radio/phone/medbay frequency = MED_I_FREQ diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm index 9db143772b9..98c77e2f95a 100644 --- a/code/game/objects/items/devices/taperecorder.dm +++ b/code/game/objects/items/devices/taperecorder.dm @@ -6,17 +6,30 @@ item_state = "analyzer" w_class = WEIGHT_CLASS_SMALL slot_flags = SLOT_BELT - materials = list(MAT_METAL=60, MAT_GLASS=30) + materials = list(MAT_METAL = 60, MAT_GLASS = 30) force = 2 throwforce = 0 - var/recording = 0 - var/playing = 0 + drop_sound = 'sound/items/handling/taperecorder_drop.ogg' + pickup_sound = 'sound/items/handling/taperecorder_pickup.ogg' + tts_seed = "Xenia" + /// If its currently recording. + var/recording = FALSE + /// If its playing back auto via atom_say. + var/playing = FALSE + /// The amount of time between something said during playback. var/playsleepseconds = 0 + /// The tape we are recording to. var/obj/item/tape/mytape - var/open_panel = 0 - var/canprint = 1 + /// The next worldtime we'll be able to print. + var/cooldown = 0 + /// Self-explanatory. var/starts_with_tape = TRUE - tts_seed = "Xenia" + /// Sound loop that plays when recording or playing back. + var/datum/looping_sound/tape_recorder_hiss/soundloop + + +/obj/item/taperecorder/empty + starts_with_tape = FALSE /obj/item/taperecorder/New() @@ -24,119 +37,123 @@ if(starts_with_tape) mytape = new /obj/item/tape/random(src) update_icon() + soundloop = new(list(src)) + /obj/item/taperecorder/Destroy() QDEL_NULL(mytape) + QDEL_NULL(soundloop) return ..() + /obj/item/taperecorder/examine(mob/user) . = ..() - if(in_range(user, src)) - . += "The wire panel is [open_panel ? "opened" : "closed"]." + if(in_range(user, src) && mytape) + if(mytape.ruined) + . += span_notice("[mytape]'s internals are unwound.'.") + if(mytape.max_capacity <= mytape.used_capacity) + . += span_notice("[mytape] is full.") + else if((mytape.remaining_capacity % 60) == 0) // if there is no seconds (modulo = 0), then only show minutes + . += span_notice("[mytape] has [mytape.remaining_capacity / 60] minutes remaining.") + else + if(mytape.used_capacity >= mytape.max_capacity - 60) + . += span_notice("[mytape] has [mytape.remaining_capacity] seconds remaining.") // to avoid having 0 minutes + else + . += span_notice("[mytape] has [seconds_to_time(mytape.remaining_capacity)] remaining.") + . += span_notice("Alt-Click to access the tape.") -/obj/item/taperecorder/attackby(obj/item/I, mob/user) - if(!mytape && istype(I, /obj/item/tape)) - user.drop_transfer_item_to_loc(I, src) - mytape = I - to_chat(user, "You insert [I] into [src].") - update_icon() +/obj/item/taperecorder/proc/update_sound() + if(!playing && !recording) + soundloop.stop() + else + soundloop.start() -/obj/item/taperecorder/proc/eject(mob/user) - if(mytape) - to_chat(user, "You remove [mytape] from [src].") - stop() - mytape.forceMove_turf() - user.put_in_hands(mytape, ignore_anim = FALSE) - mytape = null - update_icon() + +/obj/item/taperecorder/update_icon() + if(!mytape) + icon_state = "taperecorder_empty" + else if(recording) + icon_state = "taperecorder_recording" + else if(playing) + icon_state = "taperecorder_playing" + else + icon_state = "taperecorder_idle" /obj/item/taperecorder/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay = TRUE) mytape.ruin() //Fires destroy the tape return ..() -/obj/item/taperecorder/attack_hand(mob/user) - if(loc == user) - if(mytape) - if(user.l_hand != src && user.r_hand != src) - ..() - return - eject(user) - return - ..() +/obj/item/taperecorder/attackby(obj/item/I, mob/user) + if(!mytape && istype(I, /obj/item/tape) && user.drop_transfer_item_to_loc(I, src)) + mytape = I + to_chat(user, span_notice("You insert [I] into [src].")) + playsound(src, 'sound/items/taperecorder/taperecorder_close.ogg', 50, FALSE) + update_icon() -/obj/item/taperecorder/verb/ejectverb() - set name = "Eject Tape" - set category = "Object" - if(usr.stat) - return - if(!mytape) +/obj/item/taperecorder/attack_hand(mob/user) + if(loc == user && mytape) + if(!user.is_in_hands(src)) + ..() + return + eject(user) return - - eject(usr) + ..() -/obj/item/taperecorder/update_icon() - if(!mytape) - icon_state = "taperecorder_empty" - else if(recording) - icon_state = "taperecorder_recording" - else if(playing) - icon_state = "taperecorder_playing" +/obj/item/taperecorder/attack_self(mob/user) + if(!mytape || mytape.ruined) + return + if(recording) + stop() else - icon_state = "taperecorder_idle" + record() -/obj/item/taperecorder/hear_talk(mob/living/M as mob, list/message_pieces) - var/msg = multilingual_to_message(message_pieces) - if(mytape && recording) - var/ending = copytext(msg, length(msg)) - mytape.timestamp += mytape.used_capacity - var/datum/tape_piece/piece = new() - piece.time = mytape.used_capacity - piece.speaker_name = M.name - piece.message = msg - piece.message_verb = "says" - piece.tts_seed = M.tts_seed +/obj/item/taperecorder/AltClick(mob/living/user) + if(istype(user) && in_range(user, src) && mytape && !user.incapacitated()) + var/list/options = list( "Playback Tape" = image(icon = 'icons/obj/device.dmi', icon_state = "taperecorder_playing"), + "Print Transcript" = image(icon = 'icons/obj/bureaucracy.dmi', icon_state = "paper_words"), + "Eject Tape" = image(icon = 'icons/obj/device.dmi', icon_state = "[mytape.icon_state]") + ) + var/choice = show_radial_menu(user, src, options, require_near = TRUE) + if(!choice || user.incapacitated()) + return + switch(choice) + if("Playback Tape") + play(user) + if("Print Transcript") + print_transcript(user) + if("Eject Tape") + eject(user) + + +/obj/item/taperecorder/proc/recorder_say(message, datum/tape_piece/record_datum) + if(record_datum) + tts_seed = record_datum.tts_seed + atom_say_verb = record_datum.message_verb || "says" + atom_say("[record_datum.message]") + else + tts_seed = initial(tts_seed) + atom_say_verb = "says" + atom_say("[message]") - if(M.AmountStuttering()) - piece.message_verb = "stammers" - else if(M.getBrainLoss() >= 60) - piece.message_verb = "gibbers" - else if(ending == "?") - piece.message_verb = "asks" - else if(ending == "!") - piece.message_verb = "exclaims" - mytape.storedinfo += piece -/obj/item/taperecorder/hear_message(mob/living/M as mob, msg) - if(mytape && recording) - mytape.timestamp += mytape.used_capacity - var/datum/tape_piece/piece = new() - piece.time = mytape.used_capacity - piece.speaker_name = M.name - piece.message = msg - piece.message_verb = null - piece.tts_seed = initial(tts_seed) - mytape.storedinfo += piece - -/datum/tape_piece - var/time - var/speaker_name - var/message - var/message_verb - var/tts_seed - var/transcript +/obj/item/taperecorder/proc/eject(mob/user) + if(mytape) + playsound(src, 'sound/items/taperecorder/taperecorder_open.ogg', 50, FALSE) + to_chat(user, span_notice("You remove [mytape] from [src].")) + stop() + mytape.forceMove_turf() + user.put_in_hands(mytape, ignore_anim = FALSE) + mytape = null + update_icon() -/obj/item/taperecorder/verb/record() - set name = "Start Recording" - set category = "Object" - if(usr.stat) - return +/obj/item/taperecorder/proc/record() if(!mytape || mytape.ruined) return if(recording) @@ -144,9 +161,12 @@ if(playing) return + playsound(src, 'sound/items/taperecorder/taperecorder_play.ogg', 50, FALSE) + if(mytape.used_capacity < mytape.max_capacity) - to_chat(usr, "Recording started.") - recording = 1 + recording = TRUE + recorder_say("Запись началась.") + update_sound() update_icon() mytape.timestamp += mytape.used_capacity var/datum/tape_piece/piece = new() @@ -159,26 +179,20 @@ var/used = mytape.used_capacity //to stop runtimes when you eject the tape var/max = mytape.max_capacity for(used, used < max) - if(recording == 0) + if(recording == FALSE) break mytape.used_capacity++ used++ - sleep(10) - recording = 0 - update_icon() + mytape.remaining_capacity = mytape.max_capacity - mytape.used_capacity + sleep(1 SECONDS) + stop() else - to_chat(usr, "The tape is full.") - + recorder_say("Кассета заполнена.") + playsound(src, 'sound/items/taperecorder/taperecorder_stop.ogg', 50, FALSE) -/obj/item/taperecorder/verb/stop() - set name = "Stop" - set category = "Object" - - if(usr.stat) - return +/obj/item/taperecorder/proc/stop(playback_override = FALSE) if(recording) - recording = 0 mytape.timestamp += mytape.used_capacity var/datum/tape_piece/piece = new() piece.time = mytape.used_capacity @@ -187,100 +201,125 @@ piece.message_verb = null piece.tts_seed = initial(tts_seed) mytape.storedinfo += piece - to_chat(usr, "Recording stopped.") - return + playsound(src, 'sound/items/taperecorder/taperecorder_stop.ogg', 50, FALSE) + recorder_say("Запись остановлена.") + recording = FALSE else if(playing) - playing = 0 - tts_seed = initial(tts_seed) - atom_say_verb = "says" - atom_say("Проигрывание остановлено.") + playsound(src, 'sound/items/taperecorder/taperecorder_stop.ogg', 50, FALSE) + if(!playback_override) + recorder_say("Проигрывание остановлено.") + playing = FALSE update_icon() + update_sound() -/obj/item/taperecorder/verb/play() - set name = "Play Tape" - set category = "Object" - - if(usr.stat) - return +/obj/item/taperecorder/proc/play(mob/user) if(!mytape || mytape.ruined) return if(recording) return if(playing) + stop() return - playing = 1 + if(!length(mytape.storedinfo)) + recorder_say("Кассета пуста.") + playsound(src, 'sound/items/taperecorder/taperecorder_play.ogg', 50, FALSE) + playsound(src, 'sound/items/taperecorder/taperecorder_stop.ogg', 50, FALSE) + return + + playing = TRUE update_icon() - to_chat(usr, "Playing started.") + update_sound() + recorder_say("Проигрывание началось.") + playsound(src, 'sound/items/taperecorder/taperecorder_play.ogg', 50, FALSE) var/used = mytape.used_capacity //to stop runtimes when you eject the tape var/max = mytape.max_capacity - var/datum/tape_piece/piece - for(var/i = 1, used < max, sleep(10 * playsleepseconds)) + for(var/i = 1, used <= max) // <= to let it play if the tape is full + sleep(playsleepseconds) if(!mytape) break - if(playing == 0) + if(!playing) break - if(mytape.storedinfo.len < i) + if(length(mytape.storedinfo) < i) + recorder_say("Конец записи.") break - piece = mytape.storedinfo[i] - tts_seed = piece.tts_seed - atom_say_verb = piece.message_verb || "says" - atom_say("[piece.message]") - - if(mytape.storedinfo.len < i + 1) - playsleepseconds = 1 - sleep(10) - tts_seed = initial(tts_seed) - atom_say_verb = "says" - atom_say("Конец записи.") + + recorder_say(record_datum = mytape.storedinfo[i]) + + if(length(mytape.storedinfo) < i + 1) + playsleepseconds = 3 SECONDS else - playsleepseconds = mytape.timestamp[i + 1] - mytape.timestamp[i] - if(playsleepseconds > 14) - sleep(10) - tts_seed = initial(tts_seed) - atom_say_verb = "says" - atom_say("Пропуск [playsleepseconds] секунд тишины.") - playsleepseconds = 1 + playsleepseconds = (mytape.timestamp[i + 1] - mytape.timestamp[i]) SECONDS + if(playsleepseconds > 10 SECONDS) // 10 seconds is a good number to prevent spam + sleep(3 SECONDS) + recorder_say("Пропуск [playsleepseconds / 10] секунд тишины.") + playsleepseconds = 3 SECONDS i++ - playing = 0 - update_icon() + stop(playback_override = TRUE) -/obj/item/taperecorder/attack_self(mob/user) - if(!mytape || mytape.ruined) - return - if(recording) - stop() - else - record() +/obj/item/taperecorder/hear_talk(mob/living/M, list/message_pieces) + var/msg = multilingual_to_message(message_pieces) + if(mytape && recording) + var/ending = copytext(msg, length(msg)) + mytape.timestamp += mytape.used_capacity + var/datum/tape_piece/piece = new() + piece.time = mytape.used_capacity + piece.speaker_name = M.name + piece.message = msg + piece.message_verb = "says" + piece.tts_seed = M.tts_seed + if(M.AmountStuttering()) + piece.message_verb = "stammers" + else if(M.getBrainLoss() >= 60) + piece.message_verb = "gibbers" + else if(ending == "?") + piece.message_verb = "asks" + else if(ending == "!") + piece.message_verb = "exclaims" + mytape.storedinfo += piece -/obj/item/taperecorder/verb/print_transcript() - set name = "Print Transcript" - set category = "Object" - if(usr.stat) - return +/obj/item/taperecorder/hear_message(mob/living/M, msg) + if(mytape && recording) + mytape.timestamp += mytape.used_capacity + var/datum/tape_piece/piece = new() + piece.time = mytape.used_capacity + piece.speaker_name = M.name + piece.message = msg + piece.message_verb = null + piece.tts_seed = initial(tts_seed) + mytape.storedinfo += piece + + +/obj/item/taperecorder/proc/print_transcript(mob/user) if(!mytape) return - if(!canprint) - to_chat(usr, "The recorder can't print that fast!") + if(world.time < cooldown) + to_chat(user, span_notice("The recorder can't print that fast!")) return if(recording || playing) return + if(!length(mytape.storedinfo)) + to_chat(user, span_notice("There is nothing recorded on [mytape]!")) + return - to_chat(usr, "Transcript printed.") + recorder_say("Распечатка в процессе...") playsound(loc, 'sound/goonstation/machines/printer_thermal.ogg', 50, 1) flick("taperecorder_anim", src) + sleep(3 SECONDS) //prevent paper from being printed until the end of the animation - var/obj/item/paper/P = new /obj/item/paper(drop_location()) + if(QDELETED(src)) + return + + var/obj/item/paper/transcript = new /obj/item/paper(drop_location()) + var/t1 = "Transcript:

" - var/datum/tape_piece/piece - for(var/i = 1, mytape.storedinfo.len >= i, i++) - // mytape.storedinfo += "\[[time2text(mytape.used_capacity * 10,"mm:ss")]\] [M.name] stammers, \"[msg]\"" - piece = mytape.storedinfo[i] + for(var/i = 1, length(mytape.storedinfo) >= i, i++) + var/datum/tape_piece/piece = mytape.storedinfo[i] t1 += "\[[time2text(piece.time * 10,"mm:ss")]\] " if(piece.speaker_name) t1 += "[piece.speaker_name] " @@ -288,16 +327,13 @@ t1 += "[piece.message_verb], \"[piece.message]\"
" else t1 += "[piece.message]
" - P.info = t1 - P.name = "paper- 'Transcript'" - usr.put_in_hands(P, ignore_anim = FALSE) - canprint = 0 - sleep(300) - canprint = 1 - -//empty tape recorders -/obj/item/taperecorder/empty - starts_with_tape = FALSE + + transcript.info = t1 + transcript.name = "paper- 'Transcript'" + cooldown = world.time + 3 SECONDS + + if(!QDELETED(user) && in_range(user, transcript)) + user.put_in_hands(transcript, ignore_anim = FALSE) /obj/item/tape @@ -307,63 +343,113 @@ icon_state = "tape_white" item_state = "analyzer" w_class = WEIGHT_CLASS_TINY - materials = list(MAT_METAL=20, MAT_GLASS=5) + materials = list(MAT_METAL = 20, MAT_GLASS = 5) force = 1 throwforce = 0 + drop_sound = 'sound/items/handling/tape_drop.ogg' + pickup_sound = 'sound/items/handling/tape_pickup.ogg' var/max_capacity = 600 var/used_capacity = 0 + var/remaining_capacity = 600 var/list/storedinfo = list() var/list/timestamp = list() - var/ruined = 0 + var/ruined = FALSE + + +/obj/item/tape/random/New() + ..() + icon_state = "tape_[pick("white", "blue", "red", "yellow", "purple")]" + + +/obj/item/tape/examine(mob/user) + . = ..() + if(in_range(user, src)) + if(ruined) + . += span_notice("It's tape is all pulled out, it looks it could be screwed back into place.") + else if(max_capacity <= used_capacity) + . += span_notice("It is full.") + else if((remaining_capacity % 60) == 0) // if there is no seconds (modulo = 0), then only show minutes + . += span_notice("It has [remaining_capacity / 60] minutes remaining.") + else + if(used_capacity >= (max_capacity - 60)) + . += span_notice("It has [remaining_capacity] seconds remaining.") // to avoid having 0 minutes + else + . += span_notice("It has [seconds_to_time(remaining_capacity)] remaining.") + /obj/item/tape/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay = TRUE) ..() ruin() + +/obj/item/tape/attackby(obj/item/I, mob/user) + if(is_pen(I)) + rename_interactive(user, I) + return + return ..() + + +/obj/item/tape/screwdriver_act(mob/living/user, obj/item/I) + . = ..() + if(ruined) + if(!I.use_tool(src, user, 0, volume = I.tool_volume)) + return + to_chat(user, span_notice("You start winding the tape back in.")) + if(!do_after(user, 120 * I.toolspeed, target = user)) + return + to_chat(user, span_notice("You wind the tape back in!")) + fix() + + /obj/item/tape/attack_self(mob/user) if(!ruined) - to_chat(user, "You pull out all the tape!") - ruin() + ruin(user) + + +/obj/item/tape/proc/ruin(mob/user) + if(user) + to_chat(user, span_notice("You start pulling the tape out.")) + if(!do_after(user, 1 SECONDS, target = user)) + return + to_chat(user, span_notice("You pull the tape out of [src].")) + + if(!ruined) + overlays += "ribbonoverlay" + ruined = TRUE + + +/obj/item/tape/proc/fix() + if(ruined) + overlays -= "ribbonoverlay" + ruined = FALSE + /obj/item/tape/verb/wipe() set name = "Wipe Tape" set category = "Object" + set src in view(1) - if(usr.stat) + var/mob/living/carbon/user = usr + if(!istype(user) || user.incapacitated()) return if(ruined) return - to_chat(usr, "You erase the data from the [src]") - clear() - -/obj/item/tape/proc/clear() + to_chat(usr, span_notice("You erase the data from [src].")) used_capacity = 0 storedinfo.Cut() timestamp.Cut() -/obj/item/tape/proc/ruin() - if(!ruined) - overlays += "ribbonoverlay" - ruined = 1 - - - -/obj/item/tape/proc/fix() - overlays -= "ribbonoverlay" - ruined = 0 +/** + * Datum used to operate with message pieces. + */ +/datum/tape_piece + var/time + var/speaker_name + var/message + var/message_verb + var/tts_seed + var/transcript -/obj/item/tape/attackby(obj/item/I, mob/user) - if(ruined && istype(I, /obj/item/screwdriver)) - to_chat(user, "You start winding the tape back in.") - if(do_after(user, 120 * I.toolspeed * gettoolspeedmod(user), target = src)) - to_chat(user, "You wound the tape back in!") - fix() - else if(istype(I, /obj/item/pen)) - rename_interactive(user, I) -//Random colour tapes -/obj/item/tape/random/New() - ..() - icon_state = "tape_[pick("white", "blue", "red", "yellow", "purple")]" diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm index 21b08751585..644e099f7c8 100644 --- a/code/game/objects/items/stacks/medical.dm +++ b/code/game/objects/items/stacks/medical.dm @@ -247,6 +247,9 @@ color = "#378C61" stop_bleeding = 0 heal_brute = 12 + drop_sound = 'sound/misc/moist_impact.ogg' + mob_throw_hit_sound = 'sound/misc/moist_impact.ogg' + hitsound = 'sound/misc/moist_impact.ogg' /obj/item/stack/medical/ointment/aloe diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index 682cdff1df1..8815f6e5ef7 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -296,6 +296,8 @@ GLOBAL_LIST_INIT(cloth_recipes, list( force = 0 throwforce = 0 merge_type = /obj/item/stack/sheet/cloth + drop_sound = 'sound/items/handling/cloth_drop.ogg' + pickup_sound = 'sound/items/handling/cloth_pickup.ogg' /obj/item/stack/sheet/cloth/Initialize(mapload, new_amount, merge = TRUE) . = ..() @@ -326,6 +328,8 @@ GLOBAL_LIST_INIT(durathread_recipes, list( force = 0 throwforce = 0 merge_type = /obj/item/stack/sheet/durathread + drop_sound = 'sound/items/handling/cloth_drop.ogg' + pickup_sound = 'sound/items/handling/cloth_pickup.ogg' /obj/item/stack/sheet/durathread/Initialize(mapload, new_amount, merge = TRUE) . = ..() diff --git a/code/game/objects/items/tools/crowbar.dm b/code/game/objects/items/tools/crowbar.dm index b2a985d6c47..0bd26d57d7e 100644 --- a/code/game/objects/items/tools/crowbar.dm +++ b/code/game/objects/items/tools/crowbar.dm @@ -12,6 +12,8 @@ throwforce = 7 w_class = WEIGHT_CLASS_SMALL materials = list(MAT_METAL=50) + drop_sound = 'sound/items/handling/crowbar_drop.ogg' + pickup_sound = 'sound/items/handling/crowbar_pickup.ogg' origin_tech = "engineering=1;combat=1" attack_verb = list("attacked", "bashed", "battered", "bludgeoned", "whacked") toolspeed = 1 diff --git a/code/game/objects/items/tools/multitool.dm b/code/game/objects/items/tools/multitool.dm index 537bc09e6ba..c02177c1463 100644 --- a/code/game/objects/items/tools/multitool.dm +++ b/code/game/objects/items/tools/multitool.dm @@ -18,6 +18,8 @@ throwforce = 0 throw_range = 7 throw_speed = 3 + drop_sound = 'sound/items/handling/multitool_drop.ogg' + pickup_sound = 'sound/items/handling/multitool_pickup.ogg' materials = list(MAT_METAL=50, MAT_GLASS=20) origin_tech = "magnets=1;engineering=2" toolspeed = 1 diff --git a/code/game/objects/items/tools/screwdriver.dm b/code/game/objects/items/tools/screwdriver.dm index bef81844ca8..d53afbca819 100644 --- a/code/game/objects/items/tools/screwdriver.dm +++ b/code/game/objects/items/tools/screwdriver.dm @@ -12,6 +12,8 @@ throwforce = 5 throw_speed = 3 throw_range = 5 + drop_sound = 'sound/items/handling/screwdriver_drop.ogg' + pickup_sound = 'sound/items/handling/screwdriver_pickup.ogg' materials = list(MAT_METAL=75) attack_verb = list("stabbed") hitsound = 'sound/weapons/bladeslice.ogg' diff --git a/code/game/objects/items/tools/welder.dm b/code/game/objects/items/tools/welder.dm index 836f9bf1eac..2e75f52fbdf 100644 --- a/code/game/objects/items/tools/welder.dm +++ b/code/game/objects/items/tools/welder.dm @@ -24,6 +24,8 @@ toolspeed = 1 tool_enabled = FALSE usesound = 'sound/items/welder.ogg' + drop_sound = 'sound/items/handling/weldingtool_drop.ogg' + pickup_sound = 'sound/items/handling/weldingtool_pickup.ogg' var/maximum_fuel = 20 var/requires_fuel = TRUE //Set to FALSE if it doesn't need fuel, but serves equally well as a cost modifier var/refills_over_time = FALSE //Do we regenerate fuel? diff --git a/code/game/objects/items/tools/wirecutters.dm b/code/game/objects/items/tools/wirecutters.dm index 4d97b5bfef3..9e55b3c750d 100644 --- a/code/game/objects/items/tools/wirecutters.dm +++ b/code/game/objects/items/tools/wirecutters.dm @@ -15,6 +15,8 @@ attack_verb = list("pinched", "nipped") hitsound = 'sound/items/wirecutter.ogg' usesound = 'sound/items/wirecutter.ogg' + drop_sound = 'sound/items/handling/wirecutter_drop.ogg' + pickup_sound = 'sound/items/handling/wirecutter_pickup.ogg' sharp = 1 embed_chance = 5 embedded_ignore_throwspeed_threshold = TRUE diff --git a/code/game/objects/items/tools/wrench.dm b/code/game/objects/items/tools/wrench.dm index 011bcbd108f..3b2ff21b716 100644 --- a/code/game/objects/items/tools/wrench.dm +++ b/code/game/objects/items/tools/wrench.dm @@ -10,6 +10,8 @@ force = 5 throwforce = 7 usesound = 'sound/items/ratchet.ogg' + drop_sound = 'sound/items/handling/wrench_drop.ogg' + pickup_sound = 'sound/items/handling/wrench_pickup.ogg' w_class = WEIGHT_CLASS_SMALL materials = list(MAT_METAL=150) origin_tech = "materials=1;engineering=1" diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 1f27b003f14..30c6e36f014 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -16,6 +16,8 @@ desc = "A card." icon = 'icons/obj/card.dmi' w_class = WEIGHT_CLASS_TINY + pickup_sound = 'sound/items/handling/card_pickup.ogg' + drop_sound = 'sound/items/handling/card_drop.ogg' var/associated_account_number = 0 var/list/files = list( ) diff --git a/code/game/objects/items/weapons/cigs.dm b/code/game/objects/items/weapons/cigs.dm index 5eda546d44a..f30408adbf3 100644 --- a/code/game/objects/items/weapons/cigs.dm +++ b/code/game/objects/items/weapons/cigs.dm @@ -32,6 +32,9 @@ LIGHTERS ARE IN LIGHTERS.DM var/chem_volume = 60 var/list/list_reagents = list("nicotine" = 40) var/first_puff = TRUE // the first puff is a bit more reagents ingested + pickup_sound = 'sound/items/handling/generic_small_pickup.ogg' + drop_sound = 'sound/items/handling/generic_small_drop.ogg' + equip_sound = 'sound/items/handling/generic_equip5.ogg' sprite_sheets = list( "Vox" = 'icons/mob/clothing/species/vox/mask.dmi', "Unathi" = 'icons/mob/clothing/species/unathi/mask.dmi', @@ -208,6 +211,7 @@ LIGHTERS ARE IN LIGHTERS.DM H.wear_mask_update(src) set_light(2, 0.25, "#E38F46") START_PROCESSING(SSobj, src) + playsound(src, 'sound/items/lighter/light.ogg', 25, TRUE) /obj/item/clothing/mask/cigarette/process() diff --git a/code/game/objects/items/weapons/disks.dm b/code/game/objects/items/weapons/disks.dm index 0f8806461ea..50f6c04919c 100644 --- a/code/game/objects/items/weapons/disks.dm +++ b/code/game/objects/items/weapons/disks.dm @@ -3,3 +3,5 @@ w_class = WEIGHT_CLASS_TINY item_state = "card-id" icon_state = "datadisk0" + drop_sound = 'sound/items/handling/disk_drop.ogg' + pickup_sound = 'sound/items/handling/disk_pickup.ogg' diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm index 783ab395937..a6a59400212 100644 --- a/code/game/objects/items/weapons/dna_injector.dm +++ b/code/game/objects/items/weapons/dna_injector.dm @@ -70,16 +70,20 @@ /obj/item/dnainjector/proc/inject(mob/living/M, mob/user) if(used) return - if(istype(M,/mob/living)) + if(isliving(M)) M.apply_effect(rand(20 / (damage_coeff ** 2), 50 / (damage_coeff ** 2)), IRRADIATE, 0, 1) var/mob/living/carbon/human/H - if(istype(M, /mob/living/carbon/human)) + if(ishuman(M)) H = M if(!buf) log_runtime(EXCEPTION("[src] used by [user] on [M] failed to initialize properly."), src) return + used = TRUE + icon_state = "[icon_state]0" + desc += " This one is used up." + spawn(0) //Some mutations have sleeps in them, like monkey if(!(NOCLONE in M.mutations) && !(H && (NO_DNA in H.dna.species.species_traits))) // prevents drained people from having their DNA changed var/prev_ue = M.dna.unique_enzymes @@ -150,9 +154,6 @@ add_attack_logs(user, M, attack_log, ATKLOG_ALL) inject(M, user) - used = TRUE - icon_state = "[icon_state]0" - desc += " This one is used up." /obj/item/dnainjector/hulkmut name = "DNA-Injector (Hulk)" @@ -232,7 +233,7 @@ ..() /obj/item/dnainjector/telemut/darkbundle - name = "DNA injector" + name = "DNA-injector" desc = "Good. Let the hate flow through you." @@ -680,7 +681,7 @@ ..() /obj/item/dnainjector/anticomic - name = "DNA-Injector (Ant-Comic)" + name = "DNA-Injector (Anti-Comic)" desc = "Honk...?" datatype = DNA2_BUF_SE value = 0x001 diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm index a2214bbe69d..33931942bfc 100644 --- a/code/game/objects/items/weapons/handcuffs.dm +++ b/code/game/objects/items/weapons/handcuffs.dm @@ -21,13 +21,13 @@ /obj/item/restraints/handcuffs/attack(mob/living/carbon/C, mob/living/user) - if(C.handcuffed) + if(!istype(C)) // Shouldn't be able to cuff anything but carbons. return - if(!user.IsAdvancedToolUser()) + if(C.handcuffed) return - if(!istype(C)) // Shouldn't be able to cuff anything but carbons. + if(!user.IsAdvancedToolUser()) return if((flags & NODROP) && !isrobot(user)) diff --git a/code/game/objects/items/weapons/holy_weapons.dm b/code/game/objects/items/weapons/holy_weapons.dm index f72fbdbd2e2..5b1554f95cc 100644 --- a/code/game/objects/items/weapons/holy_weapons.dm +++ b/code/game/objects/items/weapons/holy_weapons.dm @@ -451,6 +451,8 @@ slot_flags = null flags = HANDSLOW hitsound = 'sound/weapons/bladeslice.ogg' + pickup_sound = 'sound/items/handling/knife_pickup.ogg' + drop_sound = 'sound/items/handling/knife_drop.ogg' attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") /obj/item/nullrod/tribal_knife/New() diff --git a/code/game/objects/items/weapons/kitchen.dm b/code/game/objects/items/weapons/kitchen.dm index 058fab5e506..81341a39056 100644 --- a/code/game/objects/items/weapons/kitchen.dm +++ b/code/game/objects/items/weapons/kitchen.dm @@ -115,6 +115,8 @@ w_class = WEIGHT_CLASS_SMALL throwforce = 10 hitsound = 'sound/weapons/bladeslice.ogg' + pickup_sound = 'sound/items/handling/knife_pickup.ogg' + drop_sound = 'sound/items/handling/knife_drop.ogg' throw_speed = 3 throw_range = 6 materials = list(MAT_METAL=12000) @@ -137,6 +139,8 @@ icon_state = "pknife" item_state = "knife" sharp = 0 + pickup_sound = 'sound/items/handling/bone_pickup.ogg' + drop_sound = 'sound/items/handling/bone_drop.ogg' /obj/item/kitchen/knife/ritual name = "ritual knife" @@ -197,6 +201,7 @@ force = initial(force) + MA.knife_bonus_damage if(user.zone_selected == BODY_ZONE_HEAD && user.a_intent == INTENT_HARM) MA.neck_cut(target, user) + return . = ..() /obj/item/kitchen/knife/combat/afterattack(atom/target, mob/user, proximity, params) @@ -227,6 +232,8 @@ belt_icon = "bone_dagger" desc = "A sharpened bone. The bare minimum in survival." materials = list() + pickup_sound = 'sound/items/handling/bone_pickup.ogg' + drop_sound = 'sound/items/handling/bone_drop.ogg' /obj/item/kitchen/knife/combat/cyborg name = "cyborg knife" @@ -255,6 +262,8 @@ origin_tech = "biotech=3;combat=2" attack_verb = list("shanked", "shivved") armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0) + pickup_sound = 'sound/items/handling/bone_pickup.ogg' + drop_sound = 'sound/items/handling/bone_drop.ogg' /obj/item/kitchen/knife/glassshiv name = "glass shiv" @@ -266,6 +275,8 @@ materials = list(MAT_GLASS=MINERAL_MATERIAL_AMOUNT) attack_verb = list("shanked", "shivved") armor = list("melee" = 100, "bullet" = 0, "laser" = 0, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 100) + pickup_sound = 'sound/items/handling/bone_pickup.ogg' + drop_sound = 'sound/items/handling/bone_drop.ogg' var/size /obj/item/kitchen/knife/glassshiv/Initialize(mapload, obj/item/shard/sh) diff --git a/code/game/objects/items/weapons/lighters.dm b/code/game/objects/items/weapons/lighters.dm index 0b398c38e49..b05e7c1b73b 100644 --- a/code/game/objects/items/weapons/lighters.dm +++ b/code/game/objects/items/weapons/lighters.dm @@ -14,6 +14,10 @@ var/lit = FALSE var/icon_on = "lighter-g-on" var/icon_off = "lighter-g" + /// Cooldown until the next turned on message/sound can be activated + var/next_on_message + /// Cooldown until the next turned off message/sound can be activated + var/next_off_message /obj/item/lighter/random/New() ..() @@ -51,6 +55,9 @@ if(affecting.receive_damage( 0, 5 )) //INFERNO H.UpdateDamageIcon() to_chat(user,"You light [src], but you burn your hand in the process.") + if(world.time > next_on_message) + playsound(src, 'sound/items/lighter/plastic_strike.ogg', 25, TRUE) + next_on_message = world.time + 5 SECONDS /obj/item/lighter/proc/turn_off_lighter(mob/living/user) lit = FALSE @@ -72,6 +79,9 @@ /obj/item/lighter/proc/show_off_message(mob/living/user) to_chat(user, "You shut off [src].") + if(world.time > next_off_message) + playsound(src, 'sound/items/lighter/plastic_close.ogg', 25, TRUE) + next_off_message = world.time + 5 SECONDS /obj/item/lighter/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob) if(!isliving(M)) @@ -89,6 +99,7 @@ cig.light("[user] whips the [name] out and holds it for [M]. [user.p_their(TRUE)] arm is as steady as the unflickering flame [user.p_they()] light[user.p_s()] \the [cig] with.") else cig.light("[user] holds the [name] out for [M], and lights the [cig.name].") + playsound(src, 'sound/items/lighter/light.ogg', 25, TRUE) M.update_inv_wear_mask() else ..() @@ -107,8 +118,7 @@ item_state = "zippo" icon_on = "zippoon" icon_off = "zippo" - var/next_on_message - var/next_off_message + /obj/item/lighter/can_enter_storage(obj/item/storage/S, mob/user) if(lit) @@ -128,6 +138,9 @@ /obj/item/lighter/zippo/turn_off_lighter(mob/living/user) . = ..() + if(!user) + return + if(world.time > next_off_message) user.visible_message("You hear a quiet click, as [user] shuts off [src] without even looking at what [user.p_theyre()] doing. Wow.") playsound(src.loc, 'sound/items/zippoclose.ogg', 25, 1) @@ -256,6 +269,8 @@ w_class = WEIGHT_CLASS_TINY origin_tech = "materials=1" attack_verb = null + pickup_sound = 'sound/items/handling/generic_small_pickup.ogg' + drop_sound = 'sound/items/handling/generic_small_drop.ogg' /obj/item/match/process() var/turf/location = get_turf(src) @@ -332,6 +347,7 @@ playsound(user.loc, 'sound/effects/unathiignite.ogg', 40, FALSE) else cig.light("[user] holds [src] out for [M], and lights [cig].") + playsound(src, 'sound/items/lighter/light.ogg', 25, TRUE) else ..() diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm index c54c63d45e3..cb630a8eb13 100644 --- a/code/game/objects/items/weapons/melee/misc.dm +++ b/code/game/objects/items/weapons/melee/misc.dm @@ -41,6 +41,8 @@ sharp = TRUE origin_tech = "combat=5" attack_verb = list("lunged at", "stabbed") + pickup_sound = 'sound/items/handling/knife_pickup.ogg' + drop_sound = 'sound/items/handling/knife_drop.ogg' hitsound = 'sound/weapons/rapierhit.ogg' materials = list(MAT_METAL = 1000) resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF // Theft targets should be hard to destroy diff --git a/code/game/objects/items/weapons/stock_parts.dm b/code/game/objects/items/weapons/stock_parts.dm index f708a24f287..8228b3dc19e 100644 --- a/code/game/objects/items/weapons/stock_parts.dm +++ b/code/game/objects/items/weapons/stock_parts.dm @@ -95,6 +95,8 @@ var/rating = 1 toolspeed = 1 usesound = 'sound/items/deconstruct.ogg' + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/stock_parts/New() ..() diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index e7f02b23222..9d6fcad5899 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -22,6 +22,9 @@ "Vox Armalis" = 'icons/mob/clothing/species/armalis/back.dmi', "Grey" = 'icons/mob/clothing/species/grey/back.dmi' ) //For Armalis anything but this and the nitrogen tank will use the default backpack icon. + equip_sound = 'sound/items/handling/backpack_equip.ogg' + pickup_sound = 'sound/items/handling/backpack_pickup.ogg' + drop_sound = 'sound/items/handling/backpack_drop.ogg' /obj/item/storage/backpack/attackby(obj/item/W as obj, mob/user as mob, params) if(in_range(user, src)) diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 0d912a97cbe..ee743279477 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -23,6 +23,9 @@ display_contents_with_number = 1 // should work fine now use_to_pickup = 1 slot_flags = SLOT_BELT + pickup_sound = 'sound/items/handling/backpack_pickup.ogg' + equip_sound = 'sound/items/handling/backpack_equip.ogg' + drop_sound = 'sound/items/handling/backpack_drop.ogg' // ----------------------------- // Trash bag diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 72b55a7951c..a14307002fb 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -9,6 +9,9 @@ slot_flags = SLOT_BELT attack_verb = list("whipped", "lashed", "disciplined") max_integrity = 300 + pickup_sound = 'sound/items/handling/backpack_pickup.ogg' + equip_sound = 'sound/items/handling/backpack_equip.ogg' + drop_sound = 'sound/items/handling/backpack_drop.ogg' var/use_item_overlays = FALSE // Do we have overlays for items held inside the belt? /obj/item/storage/belt/update_icon() @@ -32,6 +35,8 @@ desc = "Can hold various tools." icon_state = "utilitybelt" item_state = "utility" + drop_sound = 'sound/items/handling/toolbelt_drop.ogg' + pickup_sound = 'sound/items/handling/toolbelt_pickup.ogg' use_item_overlays = TRUE can_hold = list( /obj/item/crowbar, diff --git a/code/game/objects/items/weapons/storage/bible.dm b/code/game/objects/items/weapons/storage/bible.dm index ac55cf484e1..9ce4aac0957 100644 --- a/code/game/objects/items/weapons/storage/bible.dm +++ b/code/game/objects/items/weapons/storage/bible.dm @@ -6,6 +6,8 @@ throw_range = 5 w_class = WEIGHT_CLASS_NORMAL resistance_flags = FIRE_PROOF + drop_sound = 'sound/items/handling/book_drop.ogg' + pickup_sound = 'sound/items/handling/book_pickup.ogg' var/mob/affecting = null var/deity_name = "Christ" /// Is the sprite of this bible customisable diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index 022d5bb6a06..2b131c61675 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -25,6 +25,8 @@ icon_state = "box" item_state = "syringe_kit" resistance_flags = FLAMMABLE + drop_sound = 'sound/items/handling/cardboardbox_drop.ogg' + pickup_sound = 'sound/items/handling/cardboardbox_pickup.ogg' foldable = /obj/item/stack/sheet/cardboard foldable_amt = 1 @@ -649,6 +651,8 @@ w_class = WEIGHT_CLASS_TINY max_w_class = WEIGHT_CLASS_TINY slot_flags = SLOT_BELT + drop_sound = 'sound/items/handling/matchbox_drop.ogg' + pickup_sound = 'sound/items/handling/matchbox_pickup.ogg' can_hold = list(/obj/item/match) /obj/item/storage/box/matches/populate_contents() diff --git a/code/game/objects/items/weapons/storage/firstaid.dm b/code/game/objects/items/weapons/storage/firstaid.dm index 6c68dc2d957..6bc66cb282c 100644 --- a/code/game/objects/items/weapons/storage/firstaid.dm +++ b/code/game/objects/items/weapons/storage/firstaid.dm @@ -300,6 +300,8 @@ storage_slots = 50 max_combined_w_class = 50 display_contents_with_number = TRUE + pickup_sound = 'sound/items/handling/pillbottle_pickup.ogg' + drop_sound = 'sound/items/handling/pillbottle_drop.ogg' var/base_name = "" var/label_text = "" var/applying_meds = FALSE //To Prevent spam clicking and generating runtimes from apply a deleting pill multiple times. diff --git a/code/game/objects/items/weapons/storage/toolbox.dm b/code/game/objects/items/weapons/storage/toolbox.dm index 41bd13e2c86..1e1b5397a91 100644 --- a/code/game/objects/items/weapons/storage/toolbox.dm +++ b/code/game/objects/items/weapons/storage/toolbox.dm @@ -13,7 +13,10 @@ materials = list(MAT_METAL = 500) origin_tech = "combat=1;engineering=1" attack_verb = list("robusted") + use_sound = 'sound/effects/toolbox.ogg' hitsound = 'sound/weapons/smash.ogg' + drop_sound = 'sound/items/handling/toolbox_drop.ogg' + pickup_sound = 'sound/items/handling/toolbox_pickup.ogg' var/blurry_chance = 5 /obj/item/storage/toolbox/attack(mob/living/carbon/human/H, mob/living/carbon/user) diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index a744e895114..acaec13b4ea 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -54,6 +54,8 @@ throwforce = 10 sharp = 1 embed_chance = 20 + pickup_sound = 'sound/items/handling/knife_pickup.ogg' + drop_sound = 'sound/items/handling/knife_drop.ogg' embedded_ignore_throwspeed_threshold = TRUE w_class = WEIGHT_CLASS_NORMAL attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") @@ -84,6 +86,8 @@ embed_chance = 20 embedded_ignore_throwspeed_threshold = TRUE w_class = WEIGHT_CLASS_NORMAL + pickup_sound = 'sound/items/handling/knife_pickup.ogg' + drop_sound = 'sound/items/handling/knife_drop.ogg' hitsound = 'sound/weapons/bladeslice.ogg' attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") block_chance = 50 @@ -214,6 +218,8 @@ throwforce = 12 attack_verb = list("beat", "smacked") w_class = WEIGHT_CLASS_HUGE + pickup_sound = 'sound/items/handling/wooden_pickup.ogg' + drop_sound = 'sound/items/handling/wooden_drop.ogg' var/next_throw_time = 0 var/homerun_ready = 0 var/homerun_able = 0 diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index a594e50fe1d..f6398b2f16e 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -19,6 +19,8 @@ LINEN BINS item_color = "white" resistance_flags = FLAMMABLE slot_flags = SLOT_NECK + drop_sound = 'sound/items/handling/cloth_drop.ogg' + pickup_sound = 'sound/items/handling/cloth_pickup.ogg' dog_fashion = /datum/dog_fashion/head/ghost var/list/dream_messages = list("white") diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 7bed25d14c2..9b0f9429eda 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -26,7 +26,15 @@ var/can_be_emaged = FALSE var/wall_mounted = 0 //never solid (You can always pass over it) var/lastbang - var/sound = 'sound/machines/click.ogg' + var/open_sound = 'sound/machines/closet_open.ogg' + var/close_sound = 'sound/machines/closet_close.ogg' + var/list/togglelock_sound = list( + 'sound/machines/lock_1.ogg', + 'sound/machines/lock_2.ogg', + 'sound/machines/lock_3.ogg', + ) + var/open_sound_volume = 35 + var/close_sound_volume = 50 var/storage_capacity = 30 //This is so that someone can't pack hundreds of items in a locker/crate then open it in a populated area to crash clients. var/material_drop = /obj/item/stack/sheet/metal var/material_drop_amount = 2 @@ -99,11 +107,11 @@ opened = TRUE update_icon() - if(sound) - playsound(loc, sound, 15, 1, -3) + if(open_sound) + playsound(loc, open_sound, open_sound_volume, TRUE, -3) else - playsound(loc, 'sound/machines/click.ogg', 15, 1, -3) - density = 0 + playsound(loc, 'sound/machines/click.ogg', open_sound_volume, TRUE, -3) + density = FALSE after_open() return TRUE @@ -150,11 +158,11 @@ opened = FALSE update_icon() - if(sound) - playsound(loc, sound, 15, 1, -3) + if(close_sound) + playsound(loc, close_sound, close_sound_volume, TRUE, -3) else - playsound(loc, 'sound/machines/click.ogg', 15, 1, -3) - density = 1 + playsound(loc, 'sound/machines/click.ogg', close_sound_volume, TRUE, -3) + density = TRUE return TRUE /obj/structure/closet/proc/toggle(mob/user) diff --git a/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm b/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm index 167227011ce..8f306133451 100644 --- a/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm +++ b/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm @@ -8,7 +8,10 @@ resistance_flags = FLAMMABLE max_integrity = 70 integrity_failure = 0 - sound = 'sound/effects/rustle2.ogg' + open_sound = 'sound/machines/cardboard_box.ogg' + close_sound = 'sound/machines/cardboard_box.ogg' + open_sound_volume = 35 + close_sound_volume = 35 material_drop = /obj/item/stack/sheet/cardboard var/decal = "" var/amt = 4 diff --git a/code/game/objects/structures/crates_lockers/closets/coffin.dm b/code/game/objects/structures/crates_lockers/closets/coffin.dm index b763796947b..edb3d1e50d1 100644 --- a/code/game/objects/structures/crates_lockers/closets/coffin.dm +++ b/code/game/objects/structures/crates_lockers/closets/coffin.dm @@ -7,6 +7,10 @@ resistance_flags = FLAMMABLE max_integrity = 70 material_drop = /obj/item/stack/sheet/wood + open_sound = 'sound/machines/wooden_closet_open.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' + open_sound_volume = 25 + close_sound_volume = 50 /obj/structure/closet/coffin/update_icon() if(!opened) @@ -19,5 +23,6 @@ icon_state = "sarc" icon_closed = "sarc" icon_opened = "sarc_open" - sound = 'sound/effects/stonedoor_openclose.ogg' + open_sound = 'sound/effects/stonedoor_openclose.ogg' + close_sound = 'sound/effects/stonedoor_openclose.ogg' material_drop = /obj/item/stack/sheet/mineral/sandstone diff --git a/code/game/objects/structures/crates_lockers/closets/gimmick.dm b/code/game/objects/structures/crates_lockers/closets/gimmick.dm index 4856ddb6c40..426764dc1b4 100644 --- a/code/game/objects/structures/crates_lockers/closets/gimmick.dm +++ b/code/game/objects/structures/crates_lockers/closets/gimmick.dm @@ -3,6 +3,10 @@ desc = "Old will forever be in fashion." icon_state = "cabinet" resistance_flags = FLAMMABLE + open_sound = 'sound/machines/wooden_closet_open.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' + open_sound_volume = 25 + close_sound_volume = 50 max_integrity = 70 /obj/structure/closet/acloset diff --git a/code/game/objects/structures/crates_lockers/closets/secure/bar.dm b/code/game/objects/structures/crates_lockers/closets/secure/bar.dm index 13952864dfe..94130d30f4a 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/bar.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/bar.dm @@ -7,6 +7,10 @@ overlay_unlocked = "c_unlocked" resistance_flags = FLAMMABLE max_integrity = 70 + open_sound = 'sound/machines/wooden_closet_open.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' + open_sound_volume = 25 + close_sound_volume = 50 /obj/structure/closet/secure_closet/bar/populate_contents() new /obj/item/reagent_containers/food/drinks/cans/beer(src) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm index c544c8a5deb..34732cb810e 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm @@ -33,6 +33,10 @@ overlay_unlocked = "c_unlocked" resistance_flags = FLAMMABLE max_integrity = 70 + open_sound = 'sound/machines/wooden_closet_open.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' + open_sound_volume = 25 + close_sound_volume = 50 /obj/structure/closet/secure_closet/personal/cabinet/populate_contents() new /obj/item/storage/backpack/satchel/withwallet(src) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm index e66f4d267bb..4afa608a6ff 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm @@ -58,7 +58,7 @@ return if(allowed(user)) locked = !locked - playsound(loc, 'sound/machines/click.ogg', 15, 1, -3) + playsound(loc, pick(togglelock_sound), 15, TRUE, -3) visible_message("The locker has been [locked ? null : "un"]locked by [user].") update_icon() else diff --git a/code/game/objects/structures/crates_lockers/closets/secure/security.dm b/code/game/objects/structures/crates_lockers/closets/secure/security.dm index 009c37a0bf4..eab3a0ddb2b 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/security.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/security.dm @@ -243,9 +243,10 @@ overlay_unlocked = "c_unlocked" overlay_locked = "c_locked" overlay_locker = "c_locker" - resistance_flags = FLAMMABLE max_integrity = 70 + open_sound = 'sound/machines/wooden_closet_open.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' /obj/structure/closet/secure_closet/detective/populate_contents() new /obj/item/storage/backpack/satchel_detective(src) diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index 6ad9cbd08e7..b0ca9035a66 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -6,7 +6,10 @@ icon_opened = "crateopen" icon_closed = "crate" climbable = TRUE -// mouse_drag_pointer = MOUSE_ACTIVE_POINTER //??? + open_sound = 'sound/machines/crate_open.ogg' + close_sound = 'sound/machines/crate_close.ogg' + open_sound_volume = 35 + close_sound_volume = 50 var/rigged = FALSE var/obj/item/paper/manifest/manifest // A list of beacon names that the crate will announce the arrival of, when delivered. @@ -25,15 +28,15 @@ return TRUE /obj/structure/closet/crate/open(by_hand = FALSE) - if(src.opened) + if(opened) return FALSE - if(!src.can_open()) + if(!can_open()) return FALSE if(by_hand) for(var/obj/O in src) if(O.density) - var/response = alert(usr, "This crate has been packed with bluespace compression, an item inside won't fit back inside. Are you sure you want to open it?","Bluespace Compression Warning", "No", "Yes") + var/response = alert(usr, "This crate has been packed with bluespace compression, an item inside won't fit back inside. Are you sure you want to open it?","Bluespace Compression Warning", "Yes", "No") if(response == "No" || !Adjacent(usr)) return FALSE break @@ -45,27 +48,27 @@ do_sparks(5, 1, src) return 2 - playsound(src.loc, 'sound/machines/click.ogg', 15, 1, -3) + playsound(loc, open_sound, open_sound_volume, TRUE, -3) for(var/obj/O in src) //Objects - O.layer = src.layer + 0.1 O.forceMove(loc) for(var/mob/M in src) //Mobs M.forceMove(loc) icon_state = icon_opened - src.opened = TRUE + opened = TRUE if(climbable) structure_shaken() return TRUE + /obj/structure/closet/crate/close() - if(!src.opened || !src.can_close()) + if(!opened || !can_close()) return FALSE - playsound(src.loc, 'sound/machines/click.ogg', 15, 1, -3) + playsound(loc, close_sound, close_sound_volume, TRUE, -3) var/itemcount = 0 - for(var/obj/O in get_turf(src)) + for(var/atom/movable/O in get_turf(src)) if(itemcount >= storage_capacity) break if(O.density || O.anchored || istype(O,/obj/structure/closet)) @@ -78,9 +81,10 @@ itemcount++ icon_state = icon_closed - src.opened = FALSE + opened = FALSE return TRUE + /obj/structure/closet/crate/attackby(obj/item/W, mob/user, params) if(!opened && try_rig(W, user)) return @@ -204,14 +208,15 @@ return !locked /obj/structure/closet/crate/secure/proc/togglelock(mob/user) - if(src.opened) + if(opened) to_chat(user, "Close the crate first.") return - if(src.broken) + if(broken) to_chat(user, "The crate appears to be broken.") return - if(src.allowed(user)) - src.locked = !src.locked + if(allowed(user)) + locked = !locked + playsound(loc, pick(togglelock_sound), 15, TRUE, -3) visible_message("The crate has been [locked ? null : "un"]locked by [user].") update_icon() else diff --git a/code/game/objects/structures/crates_lockers/crittercrate.dm b/code/game/objects/structures/crates_lockers/crittercrate.dm index c7f4e642689..d1fe6a80a51 100644 --- a/code/game/objects/structures/crates_lockers/crittercrate.dm +++ b/code/game/objects/structures/crates_lockers/crittercrate.dm @@ -4,6 +4,8 @@ icon_state = "critter" icon_opened = "critteropen" icon_closed = "critter" + open_sound = 'sound/machines/wooden_closet_open.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' var/already_opened = 0 var/content_mob = null var/amount = 1 diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 8416461dad8..affa5f4e139 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -114,14 +114,16 @@ . = ..() if(.) return + if(shock(user, 70)) + return user.changeNext_move(CLICK_CD_MELEE) + user.visible_message(span_warning("[user] hits [src].")) + user.do_attack_animation(src, ATTACK_EFFECT_KICK) if(user.a_intent == INTENT_HARM && ishuman(user) && user.dna.species.obj_damage) user.changeNext_move(CLICK_CD_MELEE) attack_generic(user, user.dna.species.obj_damage) - user.do_attack_animation(src, ATTACK_EFFECT_KICK) - user.visible_message("[user] hits [src].") - if(!shock(user, 70)) - take_damage(rand(5,10), BRUTE, "melee", 1) + return + take_damage(rand(5,10), BRUTE, "melee", 1) /obj/structure/grille/attack_alien(mob/living/carbon/alien/user) user.do_attack_animation(src) diff --git a/code/game/sound.dm b/code/game/sound.dm index ee51ff311d9..b098587a6d6 100644 --- a/code/game/sound.dm +++ b/code/game/sound.dm @@ -54,7 +54,7 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in //allocate a channel if necessary now so its the same for everyone channel = channel || SSsounds.random_available_channel() - // Looping through the player list has the added bonus of working for mobs inside containers + // Looping through the player list has the added bonus of working for mobs inside containers var/sound/S = sound(get_sfx(soundin)) var/maxdistance = SOUND_RANGE + extrarange var/list/listeners = GLOB.player_list @@ -75,6 +75,7 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in if(distance <= maxdistance) M.playsound_local(turf_source, soundin, vol, vary, frequency, falloff_exponent, channel, pressure_affected, S, maxdistance, falloff_distance, 1, use_reverb) + /mob/proc/playsound_local(turf/turf_source, soundin, vol as num, vary, frequency, falloff_exponent = SOUND_FALLOFF_EXPONENT, channel = 0, pressure_affected = TRUE, sound/S, max_distance, falloff_distance = SOUND_DEFAULT_FALLOFF_DISTANCE, distance_multiplier = 1, use_reverb = TRUE, wait = FALSE) if(!client || !can_hear()) return @@ -85,8 +86,7 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in S.wait = wait S.channel = channel || SSsounds.random_available_channel() S.volume = vol - S.environment = -1 - + S.environment = SOUND_ENVIRONMENT_NONE if(vary) if(islist(vary)) @@ -96,7 +96,6 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in else S.frequency = get_rand_frequency() - var/pressure_factor = 1.0 if(isturf(turf_source)) var/turf/T = get_turf(src) @@ -110,6 +109,7 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in if(pressure_affected) //Atmosphere affects sound + var/pressure_factor = 1 var/datum/gas_mixture/hearer_env = T.return_air() var/datum/gas_mixture/source_env = turf_source.return_air() @@ -151,14 +151,23 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in if(!(client?.prefs?.toggles2 & PREFTOGGLE_2_REVERB_DISABLE)) S.echo[3] = 0 //Room setting, 0 means normal reverb S.echo[4] = 0 //RoomHF setting, 0 means normal reverb. - - S.volume *= client.prefs.get_channel_volume(CHANNEL_GENERAL) + + S.volume *= USER_VOLUME(src, CHANNEL_GENERAL) if(channel) - S.volume *= client.prefs.get_channel_volume(channel) + S.volume *= USER_VOLUME(src, channel) SEND_SOUND(src, S) return S + +/proc/sound_to_playing_players_on_station_level(soundin, volume = 100, vary = FALSE, frequency = 0, channel = 0, pressure_affected = FALSE, sound/S) + if(!S) + S = sound(get_sfx(soundin)) + for(var/mob/m as anything in GLOB.player_list) + if(!isnewplayer(m) && is_station_level(m.z)) + m.playsound_local(m, null, volume, vary, frequency, null, channel, pressure_affected, S) + + /proc/sound_to_playing_players(soundin, volume = 100, vary = FALSE, frequency = 0, channel = 0, pressure_affected = FALSE, sound/S) if(!S) S = sound(get_sfx(soundin)) @@ -167,23 +176,28 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in var/mob/M = m M.playsound_local(M, null, volume, vary, frequency, null, channel, pressure_affected, S) + /mob/proc/stop_sound_channel(chan) SEND_SOUND(src, sound(null, repeat = 0, wait = 0, channel = chan)) + /mob/proc/set_sound_channel_volume(channel, volume) var/sound/S = sound(null, FALSE, FALSE, channel, volume) S.status = SOUND_UPDATE SEND_SOUND(src, S) + /client/proc/playtitlemusic() if(!SSticker || !SSticker.login_music || CONFIG_GET(flag/disable_lobby_music)) return if(prefs.sound & SOUND_LOBBY) SEND_SOUND(src, sound(SSticker.login_music, repeat = 0, wait = 0, volume = 85 * prefs.get_channel_volume(CHANNEL_LOBBYMUSIC), channel = CHANNEL_LOBBYMUSIC)) // MAD JAMS + /proc/get_rand_frequency() return rand(32000, 55000) //Frequency stuff only works with 45kbps oggs. + /proc/get_sfx(soundin) if(istext(soundin)) switch(soundin) @@ -250,6 +264,7 @@ falloff_distance - Distance at which falloff begins. Sound is at peak volume (in CRASH("No sound file were found for \'[soundin]\' input!") return soundin + /proc/apply_sound_effect(effect, filename_input, filename_output) filename_input = filename_sanitize(filename_input) filename_output = filename_sanitize(filename_output) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2.dm b/code/modules/admin/verbs/SDQL2/SDQL_2.dm index c4eabef3eae..4da5196e175 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2.dm @@ -1,283 +1,818 @@ -// Examples +//SDQL2 datumized, /tg/station special! + /* - -- Will call the proc for all computers in the world, thats dir is 2. - CALL ex_act(1) ON /obj/machinery/computer IN world WHERE dir == 2 - -- Will open a window with a list of all the closets in the world, with a link to VV them. - SELECT /obj/structure/closet/secure_closet/security/cargo IN world WHERE icon_off == "secoff" - -- Will change all the tube lights to green - UPDATE /obj/machinery/light IN world SET color = "#0F0" WHERE icon_state == "tube1" - -- Will delete all pickaxes. "IN world" is not required. - DELETE /obj/item/pickaxe - -- Will flicker the lights once, then turn all mobs green. The semicolon is important to separate the consecutive querys, but is not required for standard one-query use - CALL flicker(1) ON /obj/machinery/light; UPDATE /mob SET color = "#00cc00" - - --You can use operators other than ==, such as >, <=, != and etc.. + Welcome admins, badmins and coders alike, to Structured Datum Query Language. + SDQL allows you to powerfully run code on batches of objects (or single objects, it's still unmatched + even there.) + When I say "powerfully" I mean it you're in for a ride. -*/ + Ok so say you want to get a list of every mob. How does one do this? + "SELECT /mob" + This will open a list of every object in world that is a /mob. + And you can VV them if you need. -/client/proc/SDQL2_query() - set category = "Debug" + What if you want to get every mob on a *specific z-level*? + "SELECT /mob WHERE z == 4" - if(!check_rights(R_PROCCALL)) //Shouldn't happen... but just to be safe. - message_admins("ERROR: Non-admin [key_name_admin(usr)] attempted to execute a SDQL query!") - log_admin("Non-admin [key_name(usr)] attempted to execute a SDQL query!") + What if you want to select every mob on even numbered z-levels? + "SELECT /mob WHERE z % 2 == 0" - var/query_text = input("SDQL2 query") as message + Can you see where this is going? You can select objects with an arbitrary expression. + These expressions can also do variable access and proc calls (yes, both on-object and globals!) + Keep reading! - if(!query_text || length(query_text) < 1) - return + Ok. What if you want to get every machine in the SSmachine process list? Looping through world is kinda + slow. -// to_chat(world, query_text) + "SELECT * IN SSmachines.machinery" - var/list/query_list = SDQL2_tokenize(query_text) + Here "*" as type functions as a wildcard. + We know everything in the global SSmachines.machinery list is a machine. - if(!query_list || query_list.len < 1) - return + You can specify "IN " to return a list to operate on. + This can be any list that you can wizard together from global variables and global proc calls. + Every variable/proc name in the "IN" block is global. + It can also be a single object, in which case the object is wrapped in a list for you. + So yeah SDQL is unironically better than VV for complex single-object operations. - var/list/querys = SDQL_parse(query_list) + You can of course combine these. + "SELECT * IN SSmachines.machinery WHERE z == 4" + "SELECT * IN SSmachines.machinery WHERE stat & 2" // (2 is NOPOWER, can't use defines from SDQL. Sorry!) + "SELECT * IN SSmachines.machinery WHERE stat & 2 && z == 4" - if(!querys || querys.len < 1) - return + The possibilities are endless (just don't crash the server, ok?). - var/query_log = "executed SDQL query: \"[query_text]\"." - message_admins("[key_name_admin(usr)] [query_log]") - query_log = "[key_name(usr)] [query_log]" - log_admin(query_log) + Oh it gets better. - try - for(var/list/query_tree in querys) - var/list/from_objs = list() - var/list/select_types = list() + You can use "MAP " to run some code per object and use the result. For example: - switch(query_tree[1]) - if("explain") - SDQL_testout(query_tree["explain"]) - return + "SELECT /obj/machinery/power/smes MAP [charge / capacity * 100, RCon_tag, src]" - if("call") - if("on" in query_tree) - select_types = query_tree["on"] - else - return - - if("select", "delete", "update") - select_types = query_tree[query_tree[1]] - - from_objs = SDQL_from_objs(query_tree["from"]) - - var/list/objs = list() - - for(var/type in select_types) - var/char = copytext(type, 1, 2) - - if(char == "/" || char == "*") - for(var/from in from_objs) - objs += SDQL_get_all(type, from) - - else if(char == "'" || char == "\"") - objs += locate(copytext(type, 2, length(type))) - - if("where" in query_tree) - var/objs_temp = objs - objs = list() - for(var/d in objs_temp) - if(SDQL_expression(d, query_tree["where"])) - objs += d - - switch(query_tree[1]) - if("call") - for(var/d in objs) - SDQL_var(d, query_tree["call"][1], source = d) - - if("delete") - for(var/d in objs) - if(istype(d, /datum)) - var/datum/D = d - if(!D.can_vv_delete()) - to_chat(usr, "[D] rejected your deletion") - continue - qdel(d) - - if("select") - var/text = "" - for(var/o in objs) - var/datum/t = o - text += "\ref[t]" - if(istype(t, /atom)) - var/atom/a = t - - if(a.x) - text += ": [t] at ([a.x], [a.y], [a.z])
" - - else if(a.loc && a.loc.x) - text += ": [t] in [a.loc] at ([a.loc.x], [a.loc.y], [a.loc.z])
" - - else - text += ": [t]
" - - else - text += ": [t]
" - - usr << browse(text, "window=SDQL-result") - - if("update") - if("set" in query_tree) - var/list/set_list = query_tree["set"] - for(var/d in objs) - for(var/list/sets in set_list) - var/datum/temp = d - var/i = 0 - for(var/v in sets) - if(++i == sets.len) - if(istype(temp, /turf) && (v == "x" || v == "y" || v == "z")) - continue - if(!temp.vv_edit_var(v, SDQL_expression(d, set_list[sets]))) - to_chat(usr, "[temp] rejected your varedit.") - break - if(temp.vars.Find(v) && (istype(temp.vars[v], /datum) || istype(temp.vars[v], /client))) - temp = temp.vars[v] - else - break - - catch(var/exception/e) - to_chat(usr, "An exception has occured during the execution of your query and your query has been aborted.") - to_chat(usr, " [e.name]") - to_chat(usr, " at: [e.file]:[e.line]") + This will give you a list of all the APCs, their charge AND RCon tag. Useful eh? -/proc/SDQL_parse(list/query_list) - var/datum/SDQL_parser/parser = new() - var/list/querys = list() - var/list/query_tree = list() - var/pos = 1 - var/querys_pos = 1 - var/do_parse = 0 + [] being a list here. Yeah you can write out lists directly without > lol lists in VV. Color matrix + shenanigans inbound. - for(var/val in query_list) - if(val == ";") - do_parse = 1 - else if(pos >= query_list.len) - query_tree += val - do_parse = 1 + After the "MAP" segment is executed, the rest of the query executes as if it's THAT object you just made + (here the list). + Yeah, by the way, you can chain these MAP / WHERE things FOREVER! - if(do_parse) - parser.query = query_tree - var/list/parsed_tree - parsed_tree = parser.parse() - if(parsed_tree.len > 0) - querys.len = querys_pos - querys[querys_pos] = parsed_tree - querys_pos++ - else //There was an error so don't run anything, and tell the user which query has errored. - to_chat(usr, "Parsing error on [querys_pos]\th query. Nothing was executed.") - return list() - query_tree = list() - do_parse = 0 - else - query_tree += val - pos++ + "SELECT /mob WHERE client MAP client WHERE holder MAP holder" - qdel(parser) + You can also generate a new list on the fly using a selector array. @[] will generate a list of objects based off the selector provided. - return querys + "SELECT /mob/living IN (@[/area/service/bar MAP contents])[1]" + What if some dumbass admin spawned a bajillion spiders and you need to kill them all? + Oh yeah you'd rather not delete all the spiders in maintenace. Only that one room the spiders were + spawned in. + "DELETE /mob/living/carbon/superior_animal/giant_spider WHERE loc.loc == marked" -/proc/SDQL_testout(list/query_tree, indent = 0) - var/spaces = "" - for(var/s = 0, s < indent, s++) - spaces += "    " + Here I used VV to mark the area they were in, and since loc.loc = area, voila. + Only the spiders in a specific area are gone. - for(var/item in query_tree) - if(istype(item, /list)) - to_chat(usr, "[spaces](") - SDQL_testout(item, indent + 1) - to_chat(usr, "[spaces])") + Or you know if you want to catch spiders that crawled into lockers too (how even?) - else - to_chat(usr, "[spaces][item]") + "DELETE /mob/living/carbon/superior_animal/giant_spider WHERE global.get_area(src) == marked" - if(!isnum(item) && query_tree[item]) + What else can you do? - if(istype(query_tree[item], /list)) - to_chat(usr, "[spaces]    (") - SDQL_testout(query_tree[item], indent + 2) - to_chat(usr, "[spaces]    )") + Well suppose you'd rather gib those spiders instead of simply flat deleting them... - else - to_chat(usr, "[spaces]    [query_tree[item]]") + "CALL gib() ON /mob/living/carbon/superior_animal/giant_spider WHERE global.get_area(src) == marked" -/proc/SDQL_from_objs(list/tree) - if("world" in tree) - return list(world) + Or you can have some fun.. - var/list/out = list() + "CALL forceMove(marked) ON /mob/living/carbon/superior_animal" - for(var/type in tree) - var/char = copytext(type, 1, 2) + You can also run multiple queries sequentially: - if(char == "/") - out += SDQL_get_all(type, world) + "CALL forceMove(marked) ON /mob/living/carbon/superior_animal; CALL gib() ON + /mob/living/carbon/superior_animal" - else if(char == "'" || char == "\"") - out += locate(copytext(type, 2, length(type))) + And finally, you can directly modify variables on objects. - return out + "UPDATE /mob WHERE client SET client.color = [0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]" + + Don't crash the server, OK? + + "UPDATE /mob/living/carbon/human/species/monkey SET #null = forceMove(usr.loc)" + + Writing "#null" in front of the "=" will call the proc and discard the return value. + + A quick recommendation: before you run something like a DELETE or another query.. Run it through SELECT + first. + You'd rather not gib every player on accident. + Or crash the server. + + By the way, queries are slow and take a while. Be patient. + They don't hang the entire server though. + + With great power comes great responsability. + + Here's a slightly more formal quick reference. + + The 4 queries you can do are: + + "SELECT " + "CALL ON " + "UPDATE SET var=,var2=" + "DELETE " + + "" in this context is " [IN ] [chain of MAP/WHERE modifiers]" + + "IN" (or "FROM", that works too but it's kinda weird to read), + is the list of objects to work on. This defaults to world if not provided. + But doing something like "IN living_mob_list" is quite handy and can optimize your query. + All names inside the IN block are global scope, so you can do living_mob_list (a global var) easily. + You can also run it on a single object. Because SDQL is that convenient even for single operations. + + filters out objects of, well, that type easily. "*" is a wildcard and just takes everything in + the source list. + + And then there's the MAP/WHERE chain. + These operate on each individual object being ran through the query. + They're both expressions like IN, but unlike it the expression is scoped *on the object*. + So if you do "WHERE z == 4", this does "src.z", effectively. + If you want to access global variables, you can do `global.living_mob_list`. + Same goes for procs. + + MAP "changes" the object into the result of the expression. + WHERE "drops" the object if the expression is falsey (0, null or "") + + What can you do inside expressions? + + * Proc calls + * Variable reads + * Literals (numbers, strings, type paths, etc...) + * \ref referencing: {0x30000cc} grabs the object with \ref [0x30000cc] + * Lists: [a, b, c] or [a: b, c: d] + * Math and stuff. + * A few special variables: src (the object currently scoped on), usr (your mob), + marked (your marked datum), global(global scope) + + TG ADDITIONS START: + Add USING keyword to the front of the query to use options system + The defaults aren't necessarily implemented, as there is no need to. + Available options: (D) means default + PROCCALL = (D)ASYNC, BLOCKING + SELECT = FORCE_NULLS, (D)SKIP_NULLS + PRIORITY = HIGH, (D) NORMAL + AUTOGC = (D) AUTOGC, KEEP_ALIVE + SEQUENTIAL = TRUE - The queries in this batch will be executed sequentially one by one not in parallel + + Example: USING PROCCALL = BLOCKING, SELECT = FORCE_NULLS, PRIORITY = HIGH SELECT /mob FROM world WHERE z == 1 + +*/ + +#define SDQL2_STATE_ERROR 0 +#define SDQL2_STATE_IDLE 1 +#define SDQL2_STATE_PRESEARCH 2 +#define SDQL2_STATE_SEARCHING 3 +#define SDQL2_STATE_EXECUTING 4 +#define SDQL2_STATE_SWITCHING 5 +#define SDQL2_STATE_HALTING 6 + +#define SDQL2_OPTION_SELECT_OUTPUT_SKIP_NULLS (1<<0) +#define SDQL2_OPTION_BLOCKING_CALLS (1<<1) +#define SDQL2_OPTION_HIGH_PRIORITY (1<<2) //High priority SDQL query, allow using almost all of the tick. +#define SDQL2_OPTION_DO_NOT_AUTOGC (1<<3) +#define SDQL2_OPTION_SEQUENTIAL (1<<4) + +#define SDQL2_OPTIONS_DEFAULT (SDQL2_OPTION_SELECT_OUTPUT_SKIP_NULLS) + +#define SDQL2_IS_RUNNING (state == SDQL2_STATE_EXECUTING || state == SDQL2_STATE_SEARCHING || state == SDQL2_STATE_SWITCHING || state == SDQL2_STATE_PRESEARCH) +#define SDQL2_HALT_CHECK if(!SDQL2_IS_RUNNING) {state = SDQL2_STATE_HALTING; return FALSE;}; + +#define SDQL2_TICK_CHECK ((options & SDQL2_OPTION_HIGH_PRIORITY)? CHECK_TICK_HIGH_PRIORITY : CHECK_TICK) + +#define SDQL2_STAGE_SWITCH_CHECK if(state != SDQL2_STATE_SWITCHING){\ + if(state == SDQL2_STATE_HALTING){\ + state = SDQL2_STATE_IDLE;\ + return FALSE}\ + state = SDQL2_STATE_ERROR;\ + CRASH("SDQL2 fatal error");}; + +/client/proc/SDQL2_query() + set category = "Debug" + + if(!check_rights(R_PROCCALL)) //Shouldn't happen... but just to be safe. + message_admins("ERROR: Non-admin [key_name_admin(usr)] attempted to execute a SDQL query!") + log_admin("Non-admin [key_name(usr)] attempted to execute a SDQL query!") + return FALSE + + var/query_text = input("SDQL2 query") as message + + if(!query_text || length(query_text) < 1) + return + + var/list/results = world.SDQL2_query(query_text, key_name_admin(usr), "[key_name(usr)]") + if(length(results) == 3) + for(var/I in 1 to 3) + to_chat(usr, results[I]) + +/world/proc/SDQL2_query(query_text, log_entry1, log_entry2) + log_and_message_admins("executed SDQL query: \"[query_text]\".") + + var/start_time_total = REALTIMEOFDAY + var/sequential = FALSE + + if(!length(query_text)) + return + var/list/query_list = SDQL2_tokenize(query_text) + if(!length(query_list)) + return + var/list/querys = SDQL_parse(query_list) + if(!length(querys)) + return + var/list/datum/sdql2_query/running = list() + var/list/datum/sdql2_query/waiting_queue = list() //Sequential queries queue. + + for(var/list/query_tree in querys) + var/datum/sdql2_query/query = new /datum/sdql2_query(query_tree) + if(QDELETED(query)) + continue + if(usr) + query.show_next_to_key = usr.ckey + waiting_queue += query + if(query.options & SDQL2_OPTION_SEQUENTIAL) + sequential = TRUE + + if(sequential) //Start first one + var/datum/sdql2_query/query = popleft(waiting_queue) + running += query + var/msg = "Starting query #[query.id] - [query.get_query_text()]." + if(usr) + to_chat(usr, span_admin("[msg]")) + log_admin(msg) + query.ARun() + else //Start all + for(var/datum/sdql2_query/query in waiting_queue) + running += query + var/msg = "Starting query #[query.id] - [query.get_query_text()]." + if(usr) + to_chat(usr, span_admin("[msg]")) + log_admin(msg) + query.ARun() + + var/finished = FALSE + var/objs_all = 0 + var/objs_eligible = 0 + var/selectors_used = FALSE + var/list/combined_refs = list() + do + CHECK_TICK + finished = TRUE + for(var/i in running) + var/datum/sdql2_query/query = i + if(QDELETED(query)) + running -= query + continue + else if(query.state != SDQL2_STATE_IDLE) + finished = FALSE + if(query.state == SDQL2_STATE_ERROR) + if(usr) + to_chat(usr, span_admin("SDQL query [query.get_query_text()] errored. It will NOT be automatically garbage collected. Please remove manually.")) + running -= query + else + if(query.finished) + objs_all += islist(query.obj_count_all)? length(query.obj_count_all) : query.obj_count_all + objs_eligible += islist(query.obj_count_eligible)? length(query.obj_count_eligible) : query.obj_count_eligible + selectors_used |= query.where_switched + combined_refs |= query.select_refs + running -= query + if(!(query.options & SDQL2_OPTION_DO_NOT_AUTOGC)) + QDEL_IN(query, 50) + if(sequential && waiting_queue.len) + finished = FALSE + var/datum/sdql2_query/next_query = popleft(waiting_queue) + running += next_query + var/msg = "Starting query #[next_query.id] - [next_query.get_query_text()]." + if(usr) + to_chat(usr, span_admin("[msg]")) + log_admin(msg) + next_query.ARun() + else + if(usr) + to_chat(usr, span_admin("SDQL query [query.get_query_text()] was halted. It will NOT be automatically garbage collected. Please remove manually.")) + running -= query + while(!finished) + + var/end_time_total = REALTIMEOFDAY - start_time_total + return list(span_admin("SDQL query combined results: [query_text]"),\ + span_admin("SDQL query completed: [objs_all] objects selected by path, and [selectors_used ? objs_eligible : objs_all] objects executed on after WHERE filtering/MAPping if applicable."),\ + span_admin("SDQL combined querys took [DisplayTimeText(end_time_total)] to complete.")) + combined_refs + +GLOBAL_LIST_INIT(sdql2_queries, GLOB.sdql2_queries || list()) +GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/sdql2_vv_all, new(null, "VIEW VARIABLES (all)", null)) + +/datum/sdql2_query + var/list/query_tree + var/state = SDQL2_STATE_IDLE + var/options = SDQL2_OPTIONS_DEFAULT + var/superuser = FALSE //Run things like proccalls without using admin protections + var/allow_admin_interact = TRUE //Allow admins to do things to this excluding varedit these two vars + var/static/id_assign = 1 + var/id = 0 + + var/qdel_on_finish = FALSE + + //Last run + //General + var/finished = FALSE + var/start_time + var/end_time + var/where_switched = FALSE + var/show_next_to_key + //Select query only + var/list/select_refs + var/list/select_text + //Runtime tracked + //These three are weird. For best performance, they are only a number when they're not being changed by the SDQL searching/execution code. They only become numbers when they finish changing. + var/list/obj_count_all + var/list/obj_count_eligible + var/obj_count_finished + + //Statclick + var/obj/effect/statclick/SDQL2_delete/delete_click + var/obj/effect/statclick/SDQL2_action/action_click + +/datum/sdql2_query/New(list/tree, SU = FALSE, admin_interact = TRUE, _options = SDQL2_OPTIONS_DEFAULT, finished_qdel = FALSE) + if(IsAdminAdvancedProcCall() || !LAZYLEN(tree)) + qdel(src) + return + LAZYADD(GLOB.sdql2_queries, src) + superuser = SU + allow_admin_interact = admin_interact + query_tree = tree + options = _options + id = id_assign++ + qdel_on_finish = finished_qdel + +/datum/sdql2_query/Destroy() + state = SDQL2_STATE_HALTING + query_tree = null + obj_count_all = null + obj_count_eligible = null + obj_count_finished = null + select_text = null + select_refs = null + GLOB.sdql2_queries -= src + return ..() + +/datum/sdql2_query/proc/get_query_text() + var/list/out = list() + recursive_list_print(out, query_tree) + return out.Join() + +/proc/recursive_list_print(list/output = list(), list/input, datum/callback/datum_handler, datum/callback/atom_handler) + output += "\[ " + for(var/i in 1 to input.len) + var/final = i == input.len + var/key = input[i] + + //print the key + if(islist(key)) + recursive_list_print(output, key, datum_handler, atom_handler) + else if(isdatum(key) && (datum_handler || (isatom(key) && atom_handler))) + if(isatom(key) && atom_handler) + output += atom_handler.Invoke(key) + else + output += datum_handler.Invoke(key) + else + output += "[key]" + + //print the value + var/is_value = (!isnum(key) && !isnull(input[key])) + if(is_value) + var/value = input[key] + if(islist(value)) + recursive_list_print(output, value, datum_handler, atom_handler) + else if(isdatum(value) && (datum_handler || (isatom(value) && atom_handler))) + if(isatom(value) && atom_handler) + output += atom_handler.Invoke(value) + else + output += datum_handler.Invoke(value) + else + output += " = [value]" + + if(!final) + output += " , " + + output += " \]" + +/datum/sdql2_query/proc/text_state() + switch(state) + if(SDQL2_STATE_ERROR) + return "###ERROR" + if(SDQL2_STATE_IDLE) + return "####IDLE" + if(SDQL2_STATE_PRESEARCH) + return "PRESEARCH" + if(SDQL2_STATE_SEARCHING) + return "SEARCHING" + if(SDQL2_STATE_EXECUTING) + return "EXECUTING" + if(SDQL2_STATE_SWITCHING) + return "SWITCHING" + if(SDQL2_STATE_HALTING) + return "##HALTING" + +/datum/sdql2_query/proc/generate_stat() + if(!allow_admin_interact) + return + if(!delete_click) + delete_click = new(null, "INITIALIZING", src) + if(!action_click) + action_click = new(null, "INITIALIZNG", src) + stat("[id] ", delete_click.update("DELETE QUERY | STATE : [text_state()] | ALL/ELIG/FIN \ + [islist(obj_count_all)? length(obj_count_all) : (isnull(obj_count_all)? "0" : obj_count_all)]/\ + [islist(obj_count_eligible)? length(obj_count_eligible) : (isnull(obj_count_eligible)? "0" : obj_count_eligible)]/\ + [islist(obj_count_finished)? length(obj_count_finished) : (isnull(obj_count_finished)? "0" : obj_count_finished)] - [get_query_text()]")) + stat(" ", action_click.update("[SDQL2_IS_RUNNING? "HALT" : "RUN"]")) + +/datum/sdql2_query/proc/delete_click() + admin_del(usr) + +/datum/sdql2_query/proc/action_click() + if(SDQL2_IS_RUNNING) + admin_halt(usr) + else + admin_run(usr) -/proc/SDQL_get_all(type, location) +/datum/sdql2_query/proc/admin_halt(user = usr) + if(!SDQL2_IS_RUNNING) + return + var/msg = "[key_name(user)] has halted query #[id]" + message_admins(msg) + log_admin(msg) + state = SDQL2_STATE_HALTING + +/datum/sdql2_query/proc/admin_run(mob/user = usr) + if(SDQL2_IS_RUNNING) + return + var/msg = "[key_name(user)] has (re)started query #[id]" + message_admins(msg) + log_admin(msg) + show_next_to_key = user.ckey + ARun() + +/datum/sdql2_query/proc/admin_del(user = usr) + var/msg = "[key_name(user)] has stopped + deleted query #[id]" + message_admins(msg) + log_admin(msg) + qdel(src) + +/datum/sdql2_query/proc/set_option(name, value) + switch(name) + if("select") + switch(value) + if("force_nulls") + options &= ~(SDQL2_OPTION_SELECT_OUTPUT_SKIP_NULLS) + if("proccall") + switch(value) + if("blocking") + options |= SDQL2_OPTION_BLOCKING_CALLS + if("priority") + switch(value) + if("high") + options |= SDQL2_OPTION_HIGH_PRIORITY + if("autogc") + switch(value) + if("keep_alive") + options |= SDQL2_OPTION_DO_NOT_AUTOGC + if("sequential") + switch(value) + if("true") + options |= SDQL2_OPTION_SEQUENTIAL + +/datum/sdql2_query/proc/ARun() + INVOKE_ASYNC(src, PROC_REF(Run)) + +/datum/sdql2_query/proc/Run() + if(SDQL2_IS_RUNNING) + return FALSE + if(query_tree["options"]) + for(var/name in query_tree["options"]) + var/value = query_tree["options"][name] + set_option(name, value) + select_refs = list() + select_text = null + obj_count_all = 0 + obj_count_eligible = 0 + obj_count_finished = 0 + start_time = REALTIMEOFDAY + + state = SDQL2_STATE_PRESEARCH + var/list/search_tree = PreSearch() + SDQL2_STAGE_SWITCH_CHECK + + state = SDQL2_STATE_SEARCHING + var/list/found = Search(search_tree) + SDQL2_STAGE_SWITCH_CHECK + + state = SDQL2_STATE_EXECUTING + Execute(found) + SDQL2_STAGE_SWITCH_CHECK + + end_time = REALTIMEOFDAY + state = SDQL2_STATE_IDLE + finished = TRUE + . = TRUE + if(show_next_to_key) + var/client/C = GLOB.directory[show_next_to_key] + if(C) + var/mob/showmob = C.mob + to_chat(showmob, "SDQL query results: [get_query_text()]
\ + SDQL query completed: [islist(obj_count_all)? length(obj_count_all) : obj_count_all] objects selected by path, and \ + [where_switched? "[islist(obj_count_eligible)? length(obj_count_eligible) : obj_count_eligible] objects executed on after WHERE keyword selection." : ""]
\ + SDQL query took [DisplayTimeText(end_time - start_time)] to complete.
") + if(length(select_text)) + var/text = islist(select_text)? select_text.Join() : select_text + var/static/result_offset = 0 + showmob << browse(text, "window=SDQL-result-[result_offset++]") + show_next_to_key = null + if(qdel_on_finish) + qdel(src) + +/datum/sdql2_query/proc/PreSearch() + SDQL2_HALT_CHECK + switch(query_tree[1]) + if("explain") + SDQL_testout(query_tree["explain"]) + state = SDQL2_STATE_HALTING + return + if("call") + . = query_tree["on"] + if("select", "delete", "update") + . = query_tree[query_tree[1]] + state = SDQL2_STATE_SWITCHING + +/datum/sdql2_query/proc/Search(list/tree) + SDQL2_HALT_CHECK + var/type = tree[1] + var/list/from = tree[2] + var/list/objs = SDQL_from_objs(from) + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + objs = SDQL_get_all(type, objs) + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + + // 1 and 2 are type and FROM. + var/i = 3 + while (i <= tree.len) + var/key = tree[i++] + var/list/expression = tree[i++] + switch (key) + if ("map") + for(var/j = 1 to objs.len) + var/x = objs[j] + objs[j] = SDQL_expression(x, expression) + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + + if ("where") + where_switched = TRUE + var/list/out = list() + obj_count_eligible = out + for(var/x in objs) + if(SDQL_expression(x, expression)) + out += x + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + objs = out + if(islist(obj_count_eligible)) + obj_count_eligible = objs.len + else + obj_count_eligible = obj_count_all + . = objs + state = SDQL2_STATE_SWITCHING + +/datum/sdql2_query/proc/SDQL_from_objs(list/tree) + if(IsAdminAdvancedProcCall()) + if("world" in tree) + var/text = "[key_name(usr)] attempted to grab world with a procedure call to a SDQL datum." + message_admins(text) + log_admin(text) + return + if("world" in tree) + return world + return SDQL_expression(world, tree) + +/datum/sdql2_query/proc/SDQL_get_all(type, location) var/list/out = list() + obj_count_all = out - if(type == "*") - for(var/datum/d in location) - out += d +// If only a single object got returned, wrap it into a list so the for loops run on it. + if(!islist(location) && location != world) + location = list(location) + if(type == "*") + for(var/i in location) + var/datum/d = i + if(d.can_vv_get() || superuser) + out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK return out - - type = text2path(type) + if(istext(type)) + type = text2path(type) + var/typecache = typecacheof(type) if(ispath(type, /mob)) for(var/mob/d in location) - if(istype(d, type)) + if(typecache[d.type] && (d.can_vv_get() || superuser)) out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK else if(ispath(type, /turf)) for(var/turf/d in location) - if(istype(d, type)) + if(typecache[d.type] && (d.can_vv_get() || superuser)) out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK else if(ispath(type, /obj)) for(var/obj/d in location) - if(istype(d, type)) + if(typecache[d.type] && (d.can_vv_get() || superuser)) out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK else if(ispath(type, /area)) for(var/area/d in location) - if(istype(d, type)) + if(typecache[d.type] && (d.can_vv_get() || superuser)) out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK else if(ispath(type, /atom)) for(var/atom/d in location) - if(istype(d, type)) - out += d - - else if(ispath(type, /client)) - for(var/client/C) - if((location != world) && !(C.mob in location)) - continue - out += C - - else if(location == world) - for(var/datum/d) - if(istype(d, type)) + if(typecache[d.type] && (d.can_vv_get() || superuser)) out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + + else if(ispath(type, /datum)) + if(location == world) //snowflake for byond shortcut + for(var/datum/d) //stupid byond trick to have it not return atoms to make this less laggy + if(typecache[d.type] && (d.can_vv_get() || superuser)) + out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + else + for(var/datum/d in location) + if(typecache[d.type] && (d.can_vv_get() || superuser)) + out += d + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + obj_count_all = out.len + return out +/datum/sdql2_query/proc/Execute(list/found) + SDQL2_HALT_CHECK + select_refs = list() + select_text = list() + switch(query_tree[1]) + if("call") + for(var/i in found) + if(!isdatum(i)) + continue + world.SDQL_var(i, query_tree["call"][1], null, i, superuser, src) + obj_count_finished++ + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + + if("delete") + for(var/datum/d in found) + qdel(d) + obj_count_finished++ + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + + if("select") + var/list/text_list = list() + var/print_nulls = !(options & SDQL2_OPTION_SELECT_OUTPUT_SKIP_NULLS) + obj_count_finished = select_refs + for(var/i in found) + var/datum/I = i + SDQL_print(i, text_list, print_nulls) + if(isdatum(i)) + select_refs[I.UID()] = TRUE + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + select_text = text_list + + if("update") + if("set" in query_tree) + var/list/set_list = query_tree["set"] + for(var/d in found) + if(!isdatum(d)) + continue + SDQL_internal_vv(d, set_list) + obj_count_finished++ + SDQL2_TICK_CHECK + SDQL2_HALT_CHECK + if(islist(obj_count_finished)) + obj_count_finished = length(obj_count_finished) + state = SDQL2_STATE_SWITCHING + +/datum/sdql2_query/proc/SDQL_print(object, list/text_list, print_nulls = TRUE) + if(isdatum(object)) + var/datum/O = object + text_list += "\ref[O] : [object]" + if(istype(object, /atom)) + var/atom/A = object + var/turf/T = A.loc + var/area/a + if(isturf(A)) + a = A.loc + T = A //this should prevent the "inside" part + text_list += " at [ADMIN_COORDJMP(A)]" + else if(istype(T)) + text_list += " at [T] [ADMIN_COORDJMP(T)]" + a = T.loc + else + var/turf/final = get_turf(T) //Recursive, hopefully? + if(istype(final)) + text_list += " at [final] [ADMIN_COORDJMP(final)]" + a = final.loc + else + text_list += " at nonexistent location" + if(a) + text_list += " in area [a]" + if(T.loc != a) + text_list += " inside [T]" + text_list += "
" + else if(islist(object)) + var/list/L = object + var/first = TRUE + text_list += "\[" + for (var/x in L) + if (!first) + text_list += ", " + first = FALSE + SDQL_print(x, text_list) + if (!isnull(x) && !isnum(x) && L[x] != null) + text_list += " -> " + SDQL_print(L[L[x]]) + text_list += "]
" else - for(var/datum/d in location) - if(istype(d, type)) - out += d + if(isnull(object)) + if(print_nulls) + text_list += "NULL
" + else + text_list += "[object]
" + +/datum/sdql2_query/CanProcCall() + if(!allow_admin_interact) + return FALSE + return ..() + +/datum/sdql2_query/vv_edit_var(var_name, var_value) + if(!allow_admin_interact) + return FALSE + if(var_name == NAMEOF(src, superuser) || var_name == NAMEOF(src, allow_admin_interact) || var_name == NAMEOF(src, query_tree)) + return FALSE + return ..() + +/datum/sdql2_query/proc/SDQL_internal_vv(d, list/set_list) + for(var/list/sets in set_list) + var/datum/temp = d + var/i = 0 + for(var/v in sets) + if(v == "#null") + SDQL_expression(d, set_list[sets]) + break + i++ + if(i == sets.len) + if(superuser) + if(temp.vars.Find(v)) + temp.vars[v] = SDQL_expression(d, set_list[sets]) + else + temp.vv_edit_var(v, SDQL_expression(d, set_list[sets])) + break + if(temp.vars.Find(v) && (istype(temp.vars[v], /datum) || istype(temp.vars[v], /client))) + temp = temp.vars[v] + else + break - return out +/datum/sdql2_query/proc/SDQL_function_blocking(datum/object, procname, list/arguments, source) + var/list/new_args = list() + for(var/arg in arguments) + new_args[++new_args.len] = SDQL_expression(source, arg) + if(object == GLOB) // Global proc. + return superuser ? (call("/proc/[procname]")(arglist(new_args))) : (WrapAdminProcCall(GLOBAL_PROC, procname, new_args)) + return superuser ? (call(object, procname)(arglist(new_args))) : (WrapAdminProcCall(object, procname, new_args)) -/proc/SDQL_expression(datum/object, list/expression, start = 1) +/datum/sdql2_query/proc/SDQL_function_async(datum/object, procname, list/arguments, source) + set waitfor = FALSE + return SDQL_function_blocking(object, procname, arguments, source) + +/datum/sdql2_query/proc/SDQL_expression(datum/object, list/expression, start = 1) var/result = 0 var/val @@ -295,19 +830,21 @@ if(op != "") switch(op) if("+") - result += val + result = (result + val) if("-") - result -= val + result = (result - val) if("*") - result *= val + result = (result * val) if("/") - result /= val + result = (result / val) if("&") - result &= val + result = (result & val) if("|") - result |= val + result = (result | val) if("^") - result ^= val + result = (result ^ val) + if("%") + result = (result % val) if("=", "==") result = (result == val) if("!=", "<>") @@ -325,14 +862,14 @@ if("or", "||") result = (result || val) else - to_chat(usr, "SDQL2: Unknown op [op]") + to_chat(usr, span_danger("SDQL2: Unknown op [op]")) result = null else result = val return result -/proc/SDQL_value(datum/object, list/expression, start = 1) +/datum/sdql2_query/proc/SDQL_value(datum/object, list/expression, start = 1) var/i = start var/val = null @@ -342,6 +879,12 @@ if(istype(expression[i], /list)) val = SDQL_expression(object, expression[i]) + else if(expression[i] == "TRUE") + val = TRUE + + else if(expression[i] == "FALSE") + val = FALSE + else if(expression[i] == "!") var/list/ret = SDQL_value(object, expression, i + 1) val = !ret["val"] @@ -363,46 +906,144 @@ else if(isnum(expression[i])) val = expression[i] - else if(copytext(expression[i], 1, 2) in list("'", "\"")) - val = copytext(expression[i], 2, length(expression[i])) + else if(ispath(expression[i])) + val = expression[i] + + else if(expression[i][1] in list("'", "\"")) + val = copytext_char(expression[i], 2, -1) - else if(expression[i] == "{") + else if(expression[i] == "\[") var/list/expressions_list = expression[++i] val = list() for(var/list/expression_list in expressions_list) - val += SDQL_expression(object, expression_list) + var/result = SDQL_expression(object, expression_list) + var/assoc + if(expressions_list[expression_list] != null) + assoc = SDQL_expression(object, expressions_list[expression_list]) + if(assoc != null) + // Need to insert the key like this to prevent duplicate keys fucking up. + var/list/dummy = list() + dummy[result] = assoc + result = dummy + val += result + + else if(expression[i] == "@\[") + var/list/search_tree = expression[++i] + var/already_searching = (state == SDQL2_STATE_SEARCHING) //In case we nest, don't want to break out of the searching state until we're all done. + + if(!already_searching) + state = SDQL2_STATE_SEARCHING + + val = Search(search_tree) + SDQL2_STAGE_SWITCH_CHECK + + if(!already_searching) + state = SDQL2_STATE_EXECUTING + else + state = SDQL2_STATE_SEARCHING else - val = SDQL_var(object, expression, i, object) + val = world.SDQL_var(object, expression, i, object, superuser, src) i = expression.len return list("val" = val, "i" = i) -/proc/SDQL_var(datum/object, list/expression, start = 1, source) - var/v +/proc/SDQL_parse(list/query_list) + var/datum/sdql_parser/parser = new() + var/list/querys = list() + var/list/query_tree = list() + var/pos = 1 + var/querys_pos = 1 + var/do_parse = 0 + + for(var/val in query_list) + if(val == ";") + do_parse = 1 + else if(pos >= query_list.len) + query_tree += val + do_parse = 1 + + if(do_parse) + parser.query = query_tree + var/list/parsed_tree + parsed_tree = parser.parse() + if(parsed_tree.len > 0) + querys.len = querys_pos + querys[querys_pos] = parsed_tree + querys_pos++ + else //There was an error so don't run anything, and tell the user which query has errored. + to_chat(usr, span_danger("Parsing error on [querys_pos]\th query. Nothing was executed.")) + return list() + query_tree = list() + do_parse = 0 + else + query_tree += val + pos++ + qdel(parser) + return querys + +/proc/SDQL_testout(list/query_tree, indent = 0) + var/static/whitespace = "    " + var/spaces = "" + if(indent > 0) + for(var/i in 1 to indent) + spaces += whitespace + + for(var/item in query_tree) + if(istype(item, /list)) + to_chat(usr, "[spaces](") + SDQL_testout(item, indent + 1) + to_chat(usr, "[spaces])") + + else + to_chat(usr, "[spaces][item]") + + if(!isnum(item) && query_tree[item]) + + if(istype(query_tree[item], /list)) + to_chat(usr, "[spaces][whitespace](") + SDQL_testout(query_tree[item], indent + 2) + to_chat(usr, "[spaces][whitespace])") + + else + to_chat(usr, "[spaces][whitespace][query_tree[item]]") + +//Staying as a world proc as this is called too often for changes to offset the potential IsAdminAdvancedProcCall checking overhead. +/world/proc/SDQL_var(object, list/expression, start = 1, source, superuser, datum/sdql2_query/query) + var/v + var/static/list/exclude = list("usr", "src", "marked", "global", "MC", "FS", "CFG") var/long = start < expression.len + var/datum/D + if(isdatum(object)) + D = object - if(object == world && long && expression[start + 1] == ".") - to_chat(usr, "Sorry, but global variables are not supported at the moment.") + if (object == world && (!long || expression[start + 1] == ".") && !(expression[start] in exclude) && copytext(expression[start], 1, 3) != "SS") //3 == length("SS") + 1 + to_chat(usr, span_danger("World variables are not allowed to be accessed. Use global.")) return null - if(expression[start] == "\[" && long) - if(lowertext(copytext(expression[start + 1], 1, 3)) != "0x") - to_chat(usr, "Invalid ref syntax: [expression[start + 1]]") + else if(expression [start] == "{" && long) + if(lowertext(copytext(expression[start + 1], 1, 3)) != "0x") //3 == length("0x") + 1 + to_chat(usr, span_danger("Invalid pointer syntax: [expression[start + 1]]")) return null - v = locate("\[[expression[start + 1]]\]") - if(!v) - to_chat(usr, "Invalid ref: [expression[start + 1]]") + var/datum/located = locate("\[[expression[start + 1]]]") + if(!istype(located)) + to_chat(usr, span_danger("Invalid pointer: [expression[start + 1]] - null or not datum")) return null + v = located start++ - - else if((!long || expression[start + 1] == "." || expression[start + 1] == "\[") && (expression[start] in object.vars)) - v = object.vars[expression[start]] - - else if(long && expression[start + 1] == ":" && hascall(object, expression[start])) + long = start < expression.len + else if(expression[start] == "(" && long) + v = query.SDQL_expression(source, expression[start + 1]) + start++ + long = start < expression.len + else if(D != null && (!long || expression[start + 1] == ".") && (expression[start] in D.vars)) + if(D.can_vv_get(expression[start]) || superuser) + v = D.vars[expression[start]] + else + v = "SECRET" + else if(D != null && long && expression[start + 1] == ":" && hascall(D, expression[start])) v = expression[start] - else if(!long || expression[start + 1] == ".") switch(expression[start]) if("usr") @@ -414,56 +1055,66 @@ v = usr.client.holder.marked_datum else return null + if("world") + v = world if("global") - v = world // World is mostly a token, really. + v = GLOB + if("MC") + v = Master + if("FS") + v = Failsafe + if("CFG") + v = config else - return null - - else if(object == world) + if(copytext(expression[start], 1, 3) == "SS") //Subsystem //3 == length("SS") + 1 + var/SSname = copytext_char(expression[start], 3) + var/SSlength = length(SSname) + var/datum/controller/subsystem/SS + var/SSmatch + for(var/_SS in Master.subsystems) + SS = _SS + if(copytext("[SS.type]", -SSlength) == SSname) + SSmatch = SS + break + if(!SSmatch) + return null + v = SSmatch + else + return null + else if(object == GLOB) // Shitty ass hack kill me. v = expression[start] - if(long) if(expression[start + 1] == ".") - return SDQL_var(v, expression[start + 2], source = source) + return SDQL_var(v, expression[start + 2], null, source, superuser, query) else if(expression[start + 1] == ":") - return SDQL_function(object, v, expression[start + 2], source) + return (query.options & SDQL2_OPTION_BLOCKING_CALLS)? query.SDQL_function_async(object, v, expression[start + 2], source) : query.SDQL_function_blocking(object, v, expression[start + 2], source) else if(expression[start + 1] == "\[" && islist(v)) var/list/L = v - var/index = SDQL_expression(source, expression[start + 2]) + var/index = query.SDQL_expression(source, expression[start + 2]) if(isnum(index) && (!ISINTEGER(index) || L.len < index)) - to_chat(world, "Invalid list index: [index]") + to_chat(usr, span_danger("Invalid list index: [index]")) return null return L[index] - return v -/proc/SDQL_function(var/datum/object, var/procname, var/list/arguments, source) - var/list/new_args = list() - for(var/arg in arguments) - new_args[++new_args.len] = SDQL_expression(source, arg) - - if(object == world) // Global proc. - procname = "/proc/[procname]" - return (WrapAdminProcCall(GLOBAL_PROC, procname, new_args)) - - return (WrapAdminProcCall(object, procname, new_args)) - /proc/SDQL2_tokenize(query_text) var/list/whitespace = list(" ", "\n", "\t") - var/list/single = list("(", ")", ",", "+", "-", ".", ";", "\[", "\]", "{", "}") + var/list/single = list("(", ")", ",", "+", "-", ".", "\[", "]", "{", "}", ";", ":") var/list/multi = list( "=" = list("", "="), "<" = list("", "=", ">"), ">" = list("", "="), - "!" = list("", "=")) + "!" = list("", "="), + "@" = list("\[")) var/word = "" var/list/query_list = list() var/len = length(query_text) + var/char = "" - for(var/i = 1, i <= len, i++) - var/char = copytext(query_text, i, i + 1) + for(var/i = 1, i <= len, i += length(char)) + char = query_text[i] if(char in whitespace) if(word != "") @@ -482,7 +1133,7 @@ query_list += word word = "" - var/char2 = copytext(query_text, i + 1, i + 2) + var/char2 = query_text[i + length(char)] if(char2 in multi[char]) query_list += "[char][char2]" @@ -493,18 +1144,18 @@ else if(char == "'") if(word != "") - to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unexpected ' in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.") + to_chat(usr, "\red SDQL2: You have an error in your SDQL syntax, unexpected ' in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.") return null word = "'" - for(i++, i <= len, i++) - char = copytext(query_text, i, i + 1) + for(i += length(char), i <= len, i += length(char)) + char = query_text[i] if(char == "'") - if(copytext(query_text, i + 1, i + 2) == "'") + if(query_text[i + length(char)] == "'") word += "'" - i++ + i += length(query_text[i + length(char)]) else break @@ -513,7 +1164,7 @@ word += char if(i > len) - to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unmatched ' in query: \"[query_text]\". Please check your syntax, and try again.") + to_chat(usr, "\red SDQL2: You have an error in your SDQL syntax, unmatched ' in query: \"[query_text]\". Please check your syntax, and try again.") return null query_list += "[word]'" @@ -521,18 +1172,18 @@ else if(char == "\"") if(word != "") - to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unexpected \" in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.") + to_chat(usr, "\red SDQL2: You have an error in your SDQL syntax, unexpected \" in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.") return null word = "\"" - for(i++, i <= len, i++) - char = copytext(query_text, i, i + 1) + for(i += length(char), i <= len, i += length(char)) + char = query_text[i] if(char == "\"") - if(copytext(query_text, i + 1, i + 2) == "'") + if((i + length(char) <= len) && query_text[i + length(char)] == "'") word += "\"" - i++ + i += length(query_text[i + length(char)]) else break @@ -541,7 +1192,7 @@ word += char if(i > len) - to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unmatched \" in query: \"[query_text]\". Please check your syntax, and try again.") + to_chat(usr, "\red SDQL2: You have an error in your SDQL syntax, unmatched \" in query: \"[query_text]\". Please check your syntax, and try again.") return null query_list += "[word]\"" @@ -553,3 +1204,44 @@ if(word != "") query_list += word return query_list + +/obj/effect/statclick/SDQL2_delete/Click() + if(!usr.client?.holder) + log_and_message_admins("non-holder clicked on a statclick! ([src])") + return + var/datum/sdql2_query/Q = target + Q.delete_click() + +/obj/effect/statclick/SDQL2_action/Click() + if(!usr.client?.holder) + log_and_message_admins("non-holder clicked on a statclick! ([src])") + return + var/datum/sdql2_query/Q = target + Q.action_click() + +/obj/effect/statclick/sdql2_vv_all + name = "VIEW VARIABLES" + +/obj/effect/statclick/sdql2_vv_all/Click() + if(!usr.client?.holder) + log_and_message_admins("non-holder clicked on a statclick! ([src])") + return + usr.client.debug_variables(GLOB.sdql2_queries) + +#undef SDQL2_HALT_CHECK +#undef SDQL2_IS_RUNNING +#undef SDQL2_OPTION_BLOCKING_CALLS +#undef SDQL2_OPTION_DO_NOT_AUTOGC +#undef SDQL2_OPTION_HIGH_PRIORITY +#undef SDQL2_OPTION_SELECT_OUTPUT_SKIP_NULLS +#undef SDQL2_OPTION_SEQUENTIAL +#undef SDQL2_OPTIONS_DEFAULT +#undef SDQL2_STAGE_SWITCH_CHECK +#undef SDQL2_STATE_ERROR +#undef SDQL2_STATE_EXECUTING +#undef SDQL2_STATE_HALTING +#undef SDQL2_STATE_IDLE +#undef SDQL2_STATE_PRESEARCH +#undef SDQL2_STATE_SEARCHING +#undef SDQL2_STATE_SWITCHING +#undef SDQL2_TICK_CHECK diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm index 50c852af03b..a3caac2d1be 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm @@ -1,96 +1,148 @@ //I'm pretty sure that this is a recursive [s]descent[/s] ascent parser. + + //Spec + ////////// // -// query : select_query | delete_query | update_query | call_query | explain -// explain : 'EXPLAIN' query +// query : select_query | delete_query | update_query | call_query | explain +// explain : 'EXPLAIN' query +// select_query : 'SELECT' object_selectors +// delete_query : 'DELETE' object_selectors +// update_query : 'UPDATE' object_selectors 'SET' assignments +// call_query : 'CALL' variable 'ON' object_selectors // Note here: 'variable' does function calls. This simplifies parsing. +// +// select_item : '*' | object_type // -// select_query : 'SELECT' select_list [('FROM' | 'IN') from_list] ['WHERE' bool_expression] -// delete_query : 'DELETE' select_list [('FROM' | 'IN') from_list] ['WHERE' bool_expression] -// update_query : 'UPDATE' select_list [('FROM' | 'IN') from_list] 'SET' assignments ['WHERE' bool_expression] -// call_query : 'CALL' call_function ['ON' select_list [('FROM' | 'IN') from_list] ['WHERE' bool_expression]] +// object_selectors : select_item [('FROM' | 'IN') from_item] [modifier_list] +// modifier_list : ('WHERE' bool_expression | 'MAP' expression) [modifier_list] // -// select_list : select_item [',' select_list] -// select_item : '*' | select_function | object_type -// select_function : count_function -// count_function : 'COUNT' '(' '*' ')' | 'COUNT' '(' object_types ')' +// from_item : 'world' | expression // -// from_list : from_item [',' from_list] -// from_item : 'world' | object_type +// call_function : '(' [expression_list] ')' // -// call_function : ['(' [arguments] ')'] -// arguments : expression [',' arguments] +// object_type : // -// object_type : | string +// assignments : assignment [',' assignments] +// assignment : '=' expression +// variable : | variable '.' variable | variable '[' ']' | '{' '}' | '(' expression ')' | call_function // -// assignments : assignment, [',' assignments] -// assignment : '=' expression -// variable : | '.' variable | '[' ']' | '[' ']' '.' variable +// bool_expression : expression comparator expression [bool_operator bool_expression] +// expression : ( unary_expression | '(' expression ')' | value ) [binary_operator expression] +// expression_list : expression [',' expression_list] +// unary_expression : unary_operator ( unary_expression | value ) // -// bool_expression : expression comparitor expression [bool_operator bool_expression] -// expression : ( unary_expression | '(' expression ')' | value ) [binary_operator expression] -// unary_expression : unary_operator ( unary_expression | value | '(' expression ')' ) -// comparitor : '=' | '==' | '!=' | '<>' | '<' | '<=' | '>' | '>=' -// value : variable | string | array | number | 'null' -// unary_operator : '!' | '-' | '~' -// binary_operator : comparitor | '+' | '-' | '/' | '*' | '&' | '|' | '^' -// bool_operator : 'AND' | '&&' | 'OR' | '||' +// comparator : '=' | '==' | '!=' | '<>' | '<' | '<=' | '>' | '>=' +// value : variable | string | number | 'null' | object_type | array | selectors_array +// unary_operator : '!' | '-' | '~' +// binary_operator : comparator | '+' | '-' | '/' | '*' | '&' | '|' | '^' | '%' +// bool_operator : 'AND' | '&&' | 'OR' | '||' // -// string : ''' ''' | '"' '"' -// array : '{' [arguments] '}' -// number : +// array : '[' expression_list ']' +// selectors_array : '@[' object_selectors ']' +// +// string : ''' ''' | '"' '"' +// number : // ////////// -/datum/SDQL_parser +#define SDQL2_VALID_OPTION_TYPES list(\ + "autogc",\ + "priority",\ + "proccall",\ + "select",\ + "sequential",\ +) + +#define SDQL2_VALID_OPTION_VALUES list(\ + "async",\ + "blocking",\ + "force_nulls",\ + "high",\ + "keep_alive" ,\ + "normal",\ + "skip_nulls",\ + "true",\ +) + +/datum/sdql_parser var/query_type var/error = 0 var/list/query var/list/tree - var/list/select_functions = list("count") var/list/boolean_operators = list("and", "or", "&&", "||") var/list/unary_operators = list("!", "-", "~") - var/list/binary_operators = list("+", "-", "/", "*", "&", "|", "^") - var/list/comparitors = list("=", "==", "!=", "<>", "<", "<=", ">", ">=") + var/list/binary_operators = list("+", "-", "/", "*", "&", "|", "^", "%") + var/list/comparators = list("=", "==", "!=", "<>", "<", "<=", ">", ">=") -/datum/SDQL_parser/New(query_list) +/datum/sdql_parser/New(query_list) query = query_list -/datum/SDQL_parser/proc/parse_error(error_message) +/datum/sdql_parser/proc/parse_error(error_message) error = 1 - to_chat(usr, "SDQL2 Parsing Error: [error_message]") + to_chat(usr, span_warning("SDQL2 Parsing Error: [error_message]")) return query.len + 1 -/datum/SDQL_parser/proc/parse() +/datum/sdql_parser/proc/parse() tree = list() - query(1, tree) + query_options(1, tree) if(error) return list() else return tree -/datum/SDQL_parser/proc/token(i) +/datum/sdql_parser/proc/token(i) if(i <= query.len) return query[i] else return null -/datum/SDQL_parser/proc/tokens(i, num) +/datum/sdql_parser/proc/tokens(i, num) if(i + num <= query.len) return query.Copy(i, i + num) else return null -/datum/SDQL_parser/proc/tokenl(i) +/datum/sdql_parser/proc/tokenl(i) return lowertext(token(i)) -//query: select_query | delete_query | update_query -/datum/SDQL_parser/proc/query(i, list/node) +/datum/sdql_parser/proc/query_options(i, list/node) + var/list/options = list() + if(tokenl(i) == "using") + i = option_assignments(i + 1, node, options) + query(i, node) + if(length(options)) + node["options"] = options + +//option_assignment: query_option '=' define +/datum/sdql_parser/proc/option_assignment(i, list/node, list/assignment_list = list()) + var/type = tokenl(i) + if(!(type in SDQL2_VALID_OPTION_TYPES)) + parse_error("Invalid option type: [type]") + if(!(token(i + 1) == "=")) + parse_error("Invalid option assignment symbol: [token(i + 1)]") + var/val = tokenl(i + 2) + if(!(val in SDQL2_VALID_OPTION_VALUES)) + parse_error("Invalid option value: [val]") + assignment_list[type] = val + return (i + 3) + +//option_assignments: option_assignment, [',' option_assignments] +/datum/sdql_parser/proc/option_assignments(i, list/node, list/store) + i = option_assignment(i, node, store) + + if(token(i) == ",") + i = option_assignments(i + 1, node, store) + + return i + +//query: select_query | delete_query | update_query +/datum/sdql_parser/proc/query(i, list/node) query_type = tokenl(i) switch(query_type) @@ -112,154 +164,107 @@ query(i + 1, node["explain"]) -// select_query: 'SELECT' select_list [('FROM' | 'IN') from_list] ['WHERE' bool_expression] -/datum/SDQL_parser/proc/select_query(i, list/node) +// select_query: 'SELECT' object_selectors +/datum/sdql_parser/proc/select_query(i, list/node) var/list/select = list() - i = select_list(i + 1, select) + i = object_selectors(i + 1, select) - node += "select" node["select"] = select - - var/list/from = list() - if(tokenl(i) in list("from", "in")) - i = from_list(i + 1, from) - else - from += "world" - - node += "from" - node["from"] = from - - if(tokenl(i) == "where") - var/list/where = list() - i = bool_expression(i + 1, where) - - node += "where" - node["where"] = where - return i -//delete_query: 'DELETE' select_list [('FROM' | 'IN') from_list] ['WHERE' bool_expression] -/datum/SDQL_parser/proc/delete_query(i, list/node) +//delete_query: 'DELETE' object_selectors +/datum/sdql_parser/proc/delete_query(i, list/node) var/list/select = list() - i = select_list(i + 1, select) + i = object_selectors(i + 1, select) - node += "delete" node["delete"] = select - var/list/from = list() - if(tokenl(i) in list("from", "in")) - i = from_list(i + 1, from) - else - from += "world" - - node += "from" - node["from"] = from - - if(tokenl(i) == "where") - var/list/where = list() - i = bool_expression(i + 1, where) - - node += "where" - node["where"] = where - return i -//update_query: 'UPDATE' select_list [('FROM' | 'IN') from_list] 'SET' assignments ['WHERE' bool_expression] -/datum/SDQL_parser/proc/update_query(i, list/node) +//update_query: 'UPDATE' object_selectors 'SET' assignments +/datum/sdql_parser/proc/update_query(i, list/node) var/list/select = list() - i = select_list(i + 1, select) + i = object_selectors(i + 1, select) - node += "update" node["update"] = select - var/list/from = list() - if(tokenl(i) in list("from", "in")) - i = from_list(i + 1, from) - else - from += "world" - - node += "from" - node["from"] = from - if(tokenl(i) != "set") i = parse_error("UPDATE has misplaced SET") var/list/set_assignments = list() i = assignments(i + 1, set_assignments) - node += "set" node["set"] = set_assignments - if(tokenl(i) == "where") - var/list/where = list() - i = bool_expression(i + 1, where) - - node += "where" - node["where"] = where - return i -//call_query: 'CALL' call_function ['ON' select_list [('FROM' | 'IN') from_list] ['WHERE' bool_expression]] -/datum/SDQL_parser/proc/call_query(i, list/node) +//call_query: 'CALL' call_function ['ON' object_selectors] +/datum/sdql_parser/proc/call_query(i, list/node) var/list/func = list() - i = variable(i + 1, func) + i = variable(i + 1, func) // Yes technically does anything variable() matches but I don't care, if admins fuck up this badly then they shouldn't be allowed near SDQL. - node += "call" node["call"] = func if(tokenl(i) != "on") - return i + return parse_error("You need to specify what to call ON.") var/list/select = list() - i = select_list(i + 1, select) + i = object_selectors(i + 1, select) - node += "on" node["on"] = select - var/list/from = list() - if(tokenl(i) in list("from", "in")) - i = from_list(i + 1, from) - else - from += "world" + return i - node += "from" - node["from"] = from +// object_selectors: select_item [('FROM' | 'IN') from_item] [modifier_list] +/datum/sdql_parser/proc/object_selectors(i, list/node) + i = select_item(i, node) - if(tokenl(i) == "where") - var/list/where = list() - i = bool_expression(i + 1, where) + if (tokenl(i) == "from" || tokenl(i) == "in") + i++ + var/list/from = list() + i = from_item(i, from) + node[++node.len] = from - node += "where" - node["where"] = where + else + node[++node.len] = list("world") + i = modifier_list(i, node) return i +// modifier_list: ('WHERE' bool_expression | 'MAP' expression) [modifier_list] +/datum/sdql_parser/proc/modifier_list(i, list/node) + while (TRUE) + if (tokenl(i) == "where") + i++ + node += "where" + var/list/expr = list() + i = bool_expression(i, expr) + node[++node.len] = expr -//select_list: select_item [',' select_list] -/datum/SDQL_parser/proc/select_list(i, list/node) - i = select_item(i, node) - - if(token(i) == ",") - i = select_list(i + 1, node) - - return i + else if (tokenl(i) == "map") + i++ + node += "map" + var/list/expr = list() + i = expression(i, expr) + node[++node.len] = expr + else + return i -//from_list: from_item [',' from_list] -/datum/SDQL_parser/proc/from_list(i, list/node) - i = from_item(i, node) +//select_list:select_item [',' select_list] +/datum/sdql_parser/proc/select_list(i, list/node) + i = select_item(i, node) if(token(i) == ",") - i = from_list(i + 1, node) + i = select_list(i + 1, node) return i - -//assignments: assignment, [',' assignments] -/datum/SDQL_parser/proc/assignments(i, list/node) +//assignments: assignment, [',' assignments] +/datum/sdql_parser/proc/assignments(i, list/node) i = assignment(i, node) if(token(i) == ",") @@ -268,36 +273,61 @@ return i -//select_item: '*' | select_function | object_type -/datum/SDQL_parser/proc/select_item(i, list/node) - if(token(i) == "*") +//select_item: '*' | select_function | object_type +/datum/sdql_parser/proc/select_item(i, list/node) + if (token(i) == "*") node += "*" i++ - else if(tokenl(i) in select_functions) - i = select_function(i, node) + else if(token(i)[1] == "/") + i = object_type(i, node) else - i = object_type(i, node) + i = parse_error("Expected '*' or type path for select item") return i +// Standardized method for handling the IN/FROM and WHERE options. +/datum/sdql_parser/proc/selectors(i, list/node) + while (token(i)) + var/tok = tokenl(i) + if (tok in list("from", "in")) + var/list/from = list() + i = from_item(i + 1, from) + + node["from"] = from + continue + + if (tok == "where") + var/list/where = list() + i = bool_expression(i + 1, where) + + node["where"] = where + continue -//from_item: 'world' | object_type -/datum/SDQL_parser/proc/from_item(i, list/node) + parse_error("Expected either FROM, IN or WHERE token, found [token(i)] instead.") + return i + 1 + + if (!node.Find("from")) + node["from"] = list("world") + + return i +//from_item: 'world' | expression +/datum/sdql_parser/proc/from_item(i, list/node) if(token(i) == "world") node += "world" i++ else - i = object_type(i, node) + i = expression(i, node) return i -//bool_expression: expression [bool_operator bool_expression] -/datum/SDQL_parser/proc/bool_expression(i, list/node) +//bool_expression: expression [bool_operator bool_expression] +/datum/sdql_parser/proc/bool_expression(i, list/node) + var/list/bool = list() i = expression(i, bool) @@ -310,8 +340,8 @@ return i -//assignment: '=' expression -/datum/SDQL_parser/proc/assignment(var/i, var/list/node, var/list/assignment_list = list()) +//assignment: '=' expression +/datum/sdql_parser/proc/assignment(i, list/node, list/assignment_list = list()) assignment_list += token(i) if(token(i + 1) == ".") @@ -329,32 +359,42 @@ return i -//variable: | '.' variable -/datum/SDQL_parser/proc/variable(i, list/node) +//variable: | variable '.' variable | variable '[' ']' | '{' '}' | '(' expression ')' | call_function +/datum/sdql_parser/proc/variable(i, list/node) var/list/L = list(token(i)) node[++node.len] = L - if(token(i) == "\[") + if(token(i) == "{") L += token(i + 1) i += 2 - if(token(i) != "\]") - parse_error("Missing \] at end of reference.") + if(token(i) != "}") + parse_error("Missing } at end of pointer.") + + else if(token(i) == "(") // not a proc but an expression + var/list/sub_expression = list() + + i = expression(i + 1, sub_expression) + + if(token(i) != ")") + parse_error("Missing ) at end of expression.") + + L[++L.len] = sub_expression if(token(i + 1) == ".") L += "." i = variable(i + 2, L) - else if(token(i + 1) == "(") // OH BOY PROC + else if (token(i + 1) == "(") // OH BOY PROC var/list/arguments = list() i = call_function(i, null, arguments) L += ":" L[++L.len] = arguments - else if(token(i + 1) == "\[") // list index + else if (token(i + 1) == "\[") var/list/expression = list() i = expression(i + 2, expression) - if(token(i) != "]") + if (token(i) != "]") parse_error("Missing ] at the end of list access.") L += "\[" @@ -367,46 +407,49 @@ return i -//object_type: | string -/datum/SDQL_parser/proc/object_type(i, list/node) +//object_type: +/datum/sdql_parser/proc/object_type(i, list/node) - if(copytext(token(i), 1, 2) == "/") - node += token(i) + if(token(i)[1] != "/") + return parse_error("Expected type, but it didn't begin with /") - else - i = string(i, node) + var/path = text2path(token(i)) + if (path == null) + return parse_error("Nonexistent type path: [token(i)]") + + node += path return i + 1 -//comparitor: '=' | '==' | '!=' | '<>' | '<' | '<=' | '>' | '>=' -/datum/SDQL_parser/proc/comparitor(i, list/node) +//comparator: '=' | '==' | '!=' | '<>' | '<' | '<=' | '>' | '>=' +/datum/sdql_parser/proc/comparator(i, list/node) if(token(i) in list("=", "==", "!=", "<>", "<", "<=", ">", ">=")) node += token(i) else - parse_error("Unknown comparitor [token(i)]") + parse_error("Unknown comparator [token(i)]") return i + 1 -//bool_operator: 'AND' | '&&' | 'OR' | '||' -/datum/SDQL_parser/proc/bool_operator(i, list/node) +//bool_operator: 'AND' | '&&' | 'OR' | '||' +/datum/sdql_parser/proc/bool_operator(i, list/node) if(tokenl(i) in list("and", "or", "&&", "||")) node += token(i) else - parse_error("Unknown comparitor [token(i)]") + parse_error("Unknown comparator [token(i)]") return i + 1 -//string: ''' ''' | '"' '"' -/datum/SDQL_parser/proc/string(i, list/node) +//string: ''' ''' | '"' '"' +/datum/sdql_parser/proc/string(i, list/node) - if(copytext(token(i), 1, 2) in list("'", "\"")) + if(token(i)[1] in list("'", "\"")) node += token(i) else @@ -414,37 +457,78 @@ return i + 1 - //array: '{' expression, expression, ... '}' -/datum/SDQL_parser/proc/array(var/i, var/list/node) - // Arrays get turned into this: list("{", list(exp_1a = exp_1b, ...), ...), "{" is to mark the next node as an array. - if(copytext(token(i), 1, 2) != "{") +//array: '[' expression_list ']' +/datum/sdql_parser/proc/array(i, list/node) + // Arrays get turned into this: list("[", list(exp_1a = exp_1b, ...), ...), "[" is to mark the next node as an array. + if(token(i)[1] != "\[") parse_error("Expected an array but found '[token(i)]'") return i + 1 - node += token(i) // Add the "{" + node += token(i) // Add the "[" + var/list/expression_list = list() - if(token(i + 1) != "}") + i++ + if(token(i) != "]") var/list/temp_expression_list = list() - + var/tok do - i = expression(i + 1, temp_expression_list) + tok = token(i) + if (tok == "," || tok == ":") + if (temp_expression_list == null) + parse_error("Found ',' or ':' without expression in an array.") + return i + 1 - if(token(i) == ",") expression_list[++expression_list.len] = temp_expression_list - temp_expression_list = list() - while(token(i) && token(i) != "}") + temp_expression_list = null + if (tok == ":") + temp_expression_list = list() + i = expression(i + 1, temp_expression_list) + expression_list[expression_list[expression_list.len]] = temp_expression_list + temp_expression_list = null + tok = token(i) + if (tok != ",") + if (tok == "]") + break - expression_list[++expression_list.len] = temp_expression_list - else - i++ + parse_error("Expected ',' or ']' after array assoc value, but found '[token(i)]'") + return i + + + i++ + continue + + temp_expression_list = list() + i = expression(i, temp_expression_list) + + while(token(i) && token(i) != "]") + + if (temp_expression_list) + expression_list[++expression_list.len] = temp_expression_list node[++node.len] = expression_list + return i + 1 -//call_function: ['(' [arguments] ')'] -/datum/SDQL_parser/proc/call_function(i, list/node, list/arguments) - var/list/cur_argument = list() +//selectors_array: '@[' object_selectors ']' +/datum/sdql_parser/proc/selectors_array(i, list/node) + if(token(i) == "@\[") + node += token(i++) + if(token(i) != "]") + var/list/select = list() + i = object_selectors(i, select) + node[++node.len] = select + if(token(i) != "]") + parse_error("Expected ']' to close selector array, but found '[token(i)]'") + else + parse_error("Selector array expected a selector, but found nothing") + else + parse_error("Expected '@\[' but found '[token(i)]'") + + return i + 1 + +//call_function: ['(' [arguments] ')'] +/datum/sdql_parser/proc/call_function(i, list/node, list/arguments) if(length(tokenl(i))) var/procname = "" if(tokenl(i) == "global" && token(i + 1) == ".") // Global proc. @@ -453,15 +537,19 @@ node += procname + token(i++) if(token(i) != "(") parse_error("Expected ( but found '[token(i)]'") + else if(token(i + 1) != ")") + var/list/temp_expression_list = list() do - i = expression(i + 1, cur_argument) + i = expression(i + 1, temp_expression_list) if(token(i) == ",") - arguments += list(cur_argument) - cur_argument = list() + arguments[++arguments.len] = temp_expression_list + temp_expression_list = list() continue + while(token(i) && token(i) != ")") - arguments += list(cur_argument) + + arguments[++arguments.len] = temp_expression_list // The code this is copy pasted from won't be executed when it's the last param, this fixes that. else i++ else @@ -469,33 +557,12 @@ return i + 1 -//select_function: count_function -/datum/SDQL_parser/proc/select_function(i, list/node) - - parse_error("Sorry, function calls aren't available yet") - - return i - - -//expression: ( unary_expression | '(' expression ')' | value ) [binary_operator expression] -/datum/SDQL_parser/proc/expression(i, list/node) +//expression: ( unary_expression | value ) [binary_operator expression] +/datum/sdql_parser/proc/expression(i, list/node) if(token(i) in unary_operators) i = unary_expression(i, node) - else if(token(i) == "(") - var/list/expr = list() - - i = expression(i + 1, expr) - - if(token(i) != ")") - parse_error("Missing ) at end of expression.") - - else - i++ - - node[++node.len] = expr - else i = value(i, node) @@ -503,7 +570,7 @@ i = binary_operator(i, node) i = expression(i, node) - else if(token(i) in comparitors) + else if(token(i) in comparators) i = binary_operator(i, node) var/list/rhs = list() @@ -515,8 +582,8 @@ return i -//unary_expression: unary_operator ( unary_expression | value | '(' expression ')' ) -/datum/SDQL_parser/proc/unary_expression(i, list/node) +//unary_expression: unary_operator ( unary_expression | value ) +/datum/sdql_parser/proc/unary_expression(i, list/node) if(token(i) in unary_operators) var/list/unary_exp = list() @@ -527,19 +594,6 @@ if(token(i) in unary_operators) i = unary_expression(i, unary_exp) - else if(token(i) == "(") - var/list/expr = list() - - i = expression(i + 1, expr) - - if(token(i) != ")") - parse_error("Missing ) at end of expression.") - - else - i++ - - unary_exp[++unary_exp.len] = expr - else i = value(i, unary_exp) @@ -552,10 +606,10 @@ return i -//binary_operator: comparitor | '+' | '-' | '/' | '*' | '&' | '|' | '^' -/datum/SDQL_parser/proc/binary_operator(i, list/node) +//binary_operator: comparator | '+' | '-' | '/' | '*' | '&' | '|' | '^' | '%' +/datum/sdql_parser/proc/binary_operator(i, list/node) - if(token(i) in (binary_operators + comparitors)) + if(token(i) in (binary_operators + comparators)) node += token(i) else @@ -564,14 +618,13 @@ return i + 1 -//value: variable | string | number | 'null' -/datum/SDQL_parser/proc/value(i, list/node) - +//value: variable | string | number | 'null' | object_type | array | selectors_array +/datum/sdql_parser/proc/value(i, list/node) if(token(i) == "null") node += "null" i++ - else if(lowertext(copytext(token(i), 1, 3)) == "0x" && isnum(hex2num(copytext(token(i), 3)))) + else if(lowertext(copytext(token(i), 1, 3)) == "0x" && isnum(hex2num(copytext(token(i), 3))))//3 == length("0x") + 1 node += hex2num(copytext(token(i), 3)) i++ @@ -579,14 +632,22 @@ node += text2num(token(i)) i++ - else if(copytext(token(i), 1, 2) in list("'", "\"")) + else if(token(i)[1] in list("'", "\"")) i = string(i, node) - else if(copytext(token(i), 1, 2) == "{") // Start a list. + else if(token(i)[1] == "\[") // Start a list. i = array(i, node) + else if(copytext(token(i), 1, 3) == "@\[")//3 == length("@\[") + 1 + i = selectors_array(i, node) + + else if(token(i)[1] == "/") + i = object_type(i, node) + else i = variable(i, node) return i -/*EXPLAIN SELECT * WHERE 42 = 6 * 9 OR val = - 5 == 7*/ + +#undef SDQL2_VALID_OPTION_TYPES +#undef SDQL2_VALID_OPTION_VALUES diff --git a/code/modules/admin/verbs/SDQL2/useful_procs.dm b/code/modules/admin/verbs/SDQL2/useful_procs.dm index 3d2a0e0848d..267ee288804 100644 --- a/code/modules/admin/verbs/SDQL2/useful_procs.dm +++ b/code/modules/admin/verbs/SDQL2/useful_procs.dm @@ -27,3 +27,219 @@ CALL global.json_to_object_arbitrary_vars("{'type':'/obj/item/crowbar', 'color': thing.vars[attribute] = data[attribute] return thing + +// Wrappers for BYOND default procs which can't directly be called by call(). + +/proc/_abs(A) + return abs(A) + +/proc/_animate(atom/A, set_vars, time = 10, loop = 1, easing = LINEAR_EASING, flags = null) + var/mutable_appearance/MA = new() + for(var/v in set_vars) + MA.vars[v] = set_vars[v] + animate(A, appearance = MA, time, loop, easing, flags) + +/proc/_arccos(A) + return arccos(A) + +/proc/_arcsin(A) + return arcsin(A) + +/proc/_ascii2text(A) + return ascii2text(A) + +/proc/_block(Start, End) + return block(Start, End) + +/proc/_ckey(Key) + return ckey(Key) + +/proc/_ckeyEx(Key) + return ckeyEx(Key) + +/proc/_copytext(T, Start = 1, End = 0) + return copytext(T, Start, End) + +/proc/_cos(X) + return cos(X) + +/proc/_get_dir(Loc1, Loc2) + return get_dir(Loc1, Loc2) + +/proc/_get_dist(Loc1, Loc2) + return get_dist(Loc1, Loc2) + +/proc/_get_step(Ref, Dir) + return get_step(Ref, Dir) + +/proc/_hearers(Depth = world.view, Center = usr) + return hearers(Depth, Center) + +/proc/_image(icon, loc, icon_state, layer, dir) + return image(icon, loc, icon_state, layer, dir) + +/proc/_istype(object, type) + return istype(object, type) + +/proc/_ispath(path, type) + return ispath(path, type) + +/proc/_length(E) + return length(E) + +/proc/_link(thing, url) + thing << link(url) + +/proc/_locate(X, Y, Z) + if (isnull(Y)) // Assuming that it's only a single-argument call. + return locate(X) + + return locate(X, Y, Z) + +/proc/_log(X, Y) + return log(X, Y) + +/proc/_lowertext(T) + return lowertext(T) + +/proc/_matrix(a, b, c, d, e, f) + return matrix(a, b, c, d, e, f) + +/proc/_max(...) + return max(arglist(args)) + +/proc/_md5(T) + return md5(T) + +/proc/_min(...) + return min(arglist(args)) + +/proc/_new(type, arguments) + return new type (arglist(arguments)) + +/proc/_num2text(N, SigFig = 6) + return num2text(N, SigFig) + +/proc/_ohearers(Dist, Center = usr) + return ohearers(Dist, Center) + +/proc/_orange(Dist, Center = usr) + return orange(Dist, Center) + +/proc/_output(thing, msg, control) + thing << output(msg, control) + +/proc/_oview(Dist, Center = usr) + return oview(Dist, Center) + +/proc/_oviewers(Dist, Center = usr) + return oviewers(Dist, Center) + +/proc/_params2list(Params) + return params2list(Params) + +/proc/_pick(...) + return pick(arglist(args)) + +/proc/_prob(P) + return prob(P) + +/proc/_rand(L = 0, H = 1) + return rand(L, H) + +/proc/_range(Dist, Center = usr) + return range(Dist, Center) + +/proc/_regex(pattern, flags) + return regex(pattern, flags) + +/proc/_REGEX_QUOTE(text) + return REGEX_QUOTE(text) + +/proc/_REGEX_QUOTE_REPLACEMENT(text) + return REGEX_QUOTE_REPLACEMENT(text) + +/proc/_replacetext(Haystack, Needle, Replacement, Start = 1,End = 0) + return replacetext(Haystack, Needle, Replacement, Start, End) + +/proc/_replacetextEx(Haystack, Needle, Replacement, Start = 1,End = 0) + return replacetextEx(Haystack, Needle, Replacement, Start, End) + +/proc/_rgb(R, G, B) + return rgb(R, G, B) + +/proc/_rgba(R, G, B, A) + return rgb(R, G, B, A) + +/proc/_roll(dice) + return roll(dice) + +/proc/_round(A, B = 1) + return round(A, B) + +/proc/_sin(X) + return sin(X) + +/proc/_list_add(list/L, ...) + if (args.len < 2) + return + L += args.Copy(2) + +/proc/_list_copy(list/L, Start = 1, End = 0) + return L.Copy(Start, End) + +/proc/_list_cut(list/L, Start = 1, End = 0) + L.Cut(Start, End) + +/proc/_list_find(list/L, Elem, Start = 1, End = 0) + return L.Find(Elem, Start, End) + +/proc/_list_insert(list/L, Index, Item) + return L.Insert(Index, Item) + +/proc/_list_join(list/L, Glue, Start = 0, End = 1) + return L.Join(Glue, Start, End) + +/proc/_list_remove(list/L, ...) + if (args.len < 2) + return + L -= args.Copy(2) + +/proc/_list_set(list/L, key, value) + L[key] = value + +/proc/_list_numerical_add(L, key, num) + L[key] += num + +/proc/_list_swap(list/L, Index1, Index2) + L.Swap(Index1, Index2) + +/proc/_walk(ref, dir, lag) + walk(ref, dir, lag) + +/proc/_walk_towards(ref, trg, lag) + walk_towards(ref, trg, lag) + +/proc/_walk_to(ref, trg, min, lag) + walk_to(ref, trg, min, lag) + +/proc/_walk_away(ref, trg, max, lag) + walk_away(ref, trg, max, lag) + +/proc/_walk_rand(ref, lag) + walk_rand(ref, lag) + +/proc/_step(ref, dir) + step(ref, dir) + +/proc/_step_rand(ref) + step_rand(ref) + +/proc/_step_to(ref, trg, min) + step_to(ref, trg, min) + +/proc/_step_towards(ref, trg) + step_towards(ref, trg) + +/proc/_step_away(ref, trg, max) + step_away(ref, trg, max) diff --git a/code/modules/antagonists/traitor/contractor/items/contractor_hardsuit.dm b/code/modules/antagonists/traitor/contractor/items/contractor_hardsuit.dm index 69c5ff3fff6..fdff9359409 100644 --- a/code/modules/antagonists/traitor/contractor/items/contractor_hardsuit.dm +++ b/code/modules/antagonists/traitor/contractor/items/contractor_hardsuit.dm @@ -60,6 +60,7 @@ description_antag = "Шлем хардсьюта-хамелеона, замаскированный изначально под инженерный шлем." icon_state = "hardsuit0-engineering" item_state = "eng_helm" + item_color = "engineering" actions_types = list(/datum/action/item_action/toggle_helmet_light) /obj/item/clothing/suit/space/hardsuit/contractor/agent diff --git a/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm b/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm index 1f7ff259c7c..f7a089d4a32 100644 --- a/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm +++ b/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm @@ -1444,7 +1444,8 @@ GLOBAL_LIST_INIT(vampire_dissect_organs, list( resistance_flags = NONE flags = NODECONSTRUCT material_drop = null - sound = 'sound/objects/coffin_toggle.ogg' + open_sound = 'sound/objects/coffin_toggle.ogg' + close_sound = 'sound/machines/wooden_closet_close.ogg' var/datum/gas_mixture/interior_air var/obj/machinery/portable_atmospherics/canister/air/interior_tank var/no_manipulation = FALSE diff --git a/code/modules/assembly/assembly.dm b/code/modules/assembly/assembly.dm index def78c5e285..e1fa3b31a54 100644 --- a/code/modules/assembly/assembly.dm +++ b/code/modules/assembly/assembly.dm @@ -18,6 +18,8 @@ origin_tech = "magnets=1;engineering=1" toolspeed = 1 usesound = 'sound/items/deconstruct.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' + pickup_sound = 'sound/items/handling/component_pickup.ogg' var/bomb_name = "bomb" // used for naming bombs / mines diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index cb89bfff9ee..dbf67718189 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -221,7 +221,8 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts "1014" = 50, // CHANNEL_TTS_LOCAL "1013" = 20, // CHANNEL_TTS_RADIO "1012" = 50, // CHANNEL_RADIO_NOISE - "1011" = 100, // CHANNEL_BOSS_MUSIC + "1010" = 100, // CHANNEL_BOSS_MUSIC + "1011" = 100, // CHANNEL_INTERACTION_SOUNDS ) /// The volume mixer save timer handle. Used to debounce the DB call to save, to avoid spamming. var/volume_mixer_saving = null diff --git a/code/modules/client/preference/preferences_volume_mixer.dm b/code/modules/client/preference/preferences_volume_mixer.dm index 2b853812a47..65aaec51374 100644 --- a/code/modules/client/preference/preferences_volume_mixer.dm +++ b/code/modules/client/preference/preferences_volume_mixer.dm @@ -12,6 +12,7 @@ temp["[channel]"] = vm[channel] return json_encode(temp) + /** * Returns a volume mixer list from text, usually from the DB. * @@ -36,6 +37,7 @@ temp[channel] = vm[channel] return temp + /** * Changes a channel's volume then queues it for DB save. * @@ -50,10 +52,24 @@ // Set the volume volume = clamp(volume, 0, 100) volume_mixer["[channel]"] = volume + // Update the sound channel - var/sound/S = sound(null, channel = channel, volume = volume) - S.status = SOUND_UPDATE - SEND_SOUND(parent, S) + var/sound/S + var/channel_already_updated = FALSE + // special handling for looping sounds, especially if they're decreasing + for(var/datum/looping_sound/D in GLOB.looping_sounds) + if(channel == D.channel) + S = sound(null, channel = channel, volume = D.volume * volume / 100) + S.status = SOUND_UPDATE + SEND_SOUND(parent, S) + channel_already_updated = TRUE + + if(!channel_already_updated) + // Update the currently playing sound to update its volume + S = sound(null, channel = channel, volume = volume) + S.status = SOUND_UPDATE + SEND_SOUND(parent, S) + // Save it if(debounce_save) volume_mixer_saving = addtimer(CALLBACK(src, PROC_REF(save_volume_mixer)), 3 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE | TIMER_STOPPABLE) @@ -62,6 +78,7 @@ deltimer(volume_mixer_saving) save_volume_mixer() + /** * Returns a volume multiplier for the given channel, from 0 to 1 (default). * @@ -75,6 +92,7 @@ return 1 return clamp(volume_mixer[channel] / 100, 0, 1) + /client/verb/volume_mixer() set name = "Open Volume Mixer" set category = "Preferences" @@ -82,3 +100,4 @@ var/datum/ui_module/volume_mixer/VM = new() VM.ui_interact(usr) + diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 6882e5040d3..b8b0c207c17 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -147,6 +147,7 @@ flags_cover = GLASSESCOVERSEYES slot_flags = SLOT_EYES materials = list(MAT_GLASS = 250) + equip_sound = 'sound/items/handling/generic_equip4.ogg' var/vision_flags = 0 var/see_in_dark = 0 //Base human is 2 var/invis_view = SEE_INVISIBLE_LIVING @@ -438,6 +439,8 @@ BLIND // can't see anything var/cut_open = 0 body_parts_covered = FEET slot_flags = SLOT_FEET + pickup_sound = 'sound/items/handling/shoes_pickup.ogg' + drop_sound = 'sound/items/handling/shoes_drop.ogg' var/silence_steps = 0 var/blood_state = BLOOD_STATE_NOT_BLOODY @@ -502,6 +505,8 @@ BLIND // can't see anything var/fire_resist = T0C+100 allowed = list(/obj/item/tank/internals/emergency_oxygen) armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0) + drop_sound = 'sound/items/handling/cloth_drop.ogg' + pickup_sound = 'sound/items/handling/cloth_pickup.ogg' slot_flags = SLOT_OCLOTHING var/blood_overlay_type = "suit" var/suittoggled = FALSE @@ -712,6 +717,9 @@ BLIND // can't see anything permeability_coefficient = 0.90 slot_flags = SLOT_ICLOTHING armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0) + equip_sound = 'sound/items/equip/jumpsuit_equip.ogg' + drop_sound = 'sound/items/handling/cloth_drop.ogg' + pickup_sound = 'sound/items/handling/cloth_pickup.ogg' sprite_sheets = list( "Vox" = 'icons/mob/clothing/species/vox/uniform.dmi', diff --git a/code/modules/clothing/gloves/rings.dm b/code/modules/clothing/gloves/rings.dm index 17dd4f529e5..3b9e4eadab8 100644 --- a/code/modules/clothing/gloves/rings.dm +++ b/code/modules/clothing/gloves/rings.dm @@ -7,6 +7,8 @@ icon_state = "ironring" item_state = "" icon = 'icons/obj/clothing/rings.dmi' + pickup_sound = 'sound/items/handling/ring_pickup.ogg' + drop_sound = 'sound/items/handling/ring_drop.ogg' var/fluff_material = FALSE //If true, will ignore the material when examining var/material = "iron" var/stud = 0 diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index c293186f6fa..d5e89ac0c28 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -14,6 +14,8 @@ max_heat_protection_temperature = HELMET_MAX_TEMP_PROTECT strip_delay = 60 dog_fashion = /datum/dog_fashion/head/helmet + pickup_sound = 'sound/items/handling/helmet_pickup.ogg' + drop_sound = 'sound/items/handling/helmet_drop.ogg' sprite_sheets = list( "Vox" = 'icons/mob/clothing/species/vox/helmet.dmi', "Drask" = 'icons/mob/clothing/species/drask/helmet.dmi', diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 16e36877b22..5124a5c2a73 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -14,6 +14,8 @@ strip_delay = 70 put_on_delay = 70 resistance_flags = FIRE_PROOF + pickup_sound = 'sound/items/handling/boots_pickup.ogg' + drop_sound = 'sound/items/handling/boots_drop.ogg' /obj/item/clothing/shoes/magboots/atmos desc = "Magnetic boots, made to withstand gusts of space wind over 500kmph." @@ -99,6 +101,8 @@ magpulse_name = "honk-powered traction system" item_color = "clown" origin_tech = "magnets=4;syndicate=2" + pickup_sound = 'sound/items/handling/shoes_pickup.ogg' + drop_sound = 'sound/items/handling/shoes_drop.ogg' var/enabled_waddle = TRUE /obj/item/clothing/shoes/magboots/clown/Initialize(mapload) diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm index 3799976ace4..a08d13c721d 100644 --- a/code/modules/clothing/shoes/miscellaneous.dm +++ b/code/modules/clothing/shoes/miscellaneous.dm @@ -13,6 +13,8 @@ armor = list("melee" = 25, "bullet" = 25, "laser" = 25, "energy" = 25, "bomb" = 50, "bio" = 10, "rad" = 0, "fire" = 70, "acid" = 50) strip_delay = 70 resistance_flags = NONE + pickup_sound = 'sound/items/handling/boots_pickup.ogg' + drop_sound = 'sound/items/handling/boots_drop.ogg' /obj/item/clothing/shoes/combat/swat //overpowered boots for death squads name = "\improper SWAT shoes" @@ -120,6 +122,8 @@ strip_delay = 50 put_on_delay = 50 resistance_flags = NONE + pickup_sound = 'sound/items/handling/boots_pickup.ogg' + drop_sound = 'sound/items/handling/boots_drop.ogg' /obj/item/clothing/shoes/jackboots/Initialize(mapload) . = ..() @@ -143,6 +147,8 @@ desc = "Thick-soled boots for industrial work environments." can_cut_open = 1 icon_state = "workboots" + pickup_sound = 'sound/items/handling/boots_pickup.ogg' + drop_sound = 'sound/items/handling/boots_drop.ogg' /obj/item/clothing/shoes/workboots/mining name = "mining boots" @@ -317,6 +323,8 @@ desc = "A pair a' brown boots." icon_state = "cowboy_brown" item_color = "cowboy_brown" + pickup_sound = 'sound/items/handling/boots_pickup.ogg' + drop_sound = 'sound/items/handling/boots_drop.ogg' /obj/item/clothing/shoes/cowboy/black name = "black cowboy boots" diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index eb2ef4b886a..338dca4dd71 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -7,6 +7,8 @@ item_color = "bluetie" slot_flags = SLOT_TIE w_class = WEIGHT_CLASS_SMALL + pickup_sound = 'sound/items/handling/accessory_pickup.ogg' + drop_sound = 'sound/items/handling/accessory_drop.ogg' var/slot = ACCESSORY_SLOT_DECOR var/obj/item/clothing/under/has_suit = null //the suit the tie may be attached to var/image/inv_overlay = null //overlay used when attached to clothing. diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm index 710c29e612c..5931f070fe4 100644 --- a/code/modules/clothing/under/accessories/holster.dm +++ b/code/modules/clothing/under/accessories/holster.dm @@ -4,6 +4,9 @@ icon_state = "holster" item_color = "holster" slot = ACCESSORY_SLOT_UTILITY + pickup_sound = 'sound/items/handling/backpack_pickup.ogg' + equip_sound = 'sound/items/handling/backpack_equip.ogg' + drop_sound = 'sound/items/handling/backpack_drop.ogg' w_class = WEIGHT_CLASS_NORMAL actions_types = list(/datum/action/item_action/accessory/holster) var/holster_allow = /obj/item/gun diff --git a/code/modules/clothing/under/accessories/storage.dm b/code/modules/clothing/under/accessories/storage.dm index 9db9c995650..6b54e23425c 100644 --- a/code/modules/clothing/under/accessories/storage.dm +++ b/code/modules/clothing/under/accessories/storage.dm @@ -4,6 +4,9 @@ icon_state = "webbing" item_color = "webbing" slot = ACCESSORY_SLOT_UTILITY + pickup_sound = 'sound/items/handling/backpack_pickup.ogg' + equip_sound = 'sound/items/handling/backpack_equip.ogg' + drop_sound = 'sound/items/handling/backpack_drop.ogg' var/slots = 3 var/obj/item/storage/internal/hold actions_types = list(/datum/action/item_action/accessory/storage) diff --git a/code/modules/events/disease_outbreak.dm b/code/modules/events/disease_outbreak.dm index ddfa7e05d31..3f59d40402e 100644 --- a/code/modules/events/disease_outbreak.dm +++ b/code/modules/events/disease_outbreak.dm @@ -33,9 +33,6 @@ /datum/event/disease_outbreak/announce() GLOB.event_announcement.Announce("Вспышка вирусной угрозы 7-го уровня зафиксирована на борту станции [station_name()]. Всему персоналу надлежит сдержать ее распространение.", "ВНИМАНИЕ: БИОЛОГИЧЕСКАЯ УГРОЗА.", new_sound = 'sound/AI/outbreak7.ogg') - for(var/p in GLOB.dead_mob_list) - var/mob/M = p - to_chat(M, "[patient_zero] был(а) заражён(а) [D.name] ([ghost_follow_link(patient_zero, M)])") /datum/event/disease_outbreak/start() for(var/mob/living/carbon/human/H in shuffle(GLOB.alive_mob_list)) @@ -54,4 +51,8 @@ if(!D.Contract(H, is_carrier = TRUE)) continue patient_zero = H + + for(var/mob/M in GLOB.dead_mob_list) + to_chat(M, "[patient_zero] был(а) заражён(а) [D.name] ([ghost_follow_link(patient_zero, M)])") + break diff --git a/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm b/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm index a8ce07388bc..b57f6ce792a 100644 --- a/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm +++ b/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm @@ -12,6 +12,8 @@ materials = list(MAT_GLASS=500) max_integrity = 20 resistance_flags = ACID_PROOF + drop_sound = 'sound/items/handling/drinkglass_drop.ogg' + pickup_sound = 'sound/items/handling/drinkglass_pickup.ogg' /obj/item/reagent_containers/food/drinks/set_APTFT() set hidden = FALSE diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index 4a1c71c2aab..fb06e1a7f33 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -144,6 +144,8 @@ w_class = WEIGHT_CLASS_NORMAL //upped to three because books are, y'know, pretty big. (and you could hide them inside eachother recursively forever) attack_verb = list("bashed", "whacked") resistance_flags = FLAMMABLE + drop_sound = 'sound/items/handling/book_drop.ogg' + pickup_sound = 'sound/items/handling/book_pickup.ogg' var/dat // Actual page content var/due_date = 0 // Game time in 1/10th seconds diff --git a/code/modules/martial_arts/throwing_knives.dm b/code/modules/martial_arts/throwing_knives.dm index 5a2d65cf997..1c8e6476d55 100644 --- a/code/modules/martial_arts/throwing_knives.dm +++ b/code/modules/martial_arts/throwing_knives.dm @@ -30,7 +30,7 @@ attacker.visible_message(span_danger("[attacker] прикладывает нож к горлу [defender]!"), span_danger("Вы прикладываете нож к горлу [defender]!.")) if(do_after(attacker, 20, target = defender)) if(defender.blood_volume > BLOOD_VOLUME_SURVIVE) - defender.blood_volume -= BLOOD_VOLUME_NORMAL - BLOOD_VOLUME_SURVIVE + defender.blood_volume = max(0, defender.blood_volume - (BLOOD_VOLUME_NORMAL - BLOOD_VOLUME_SURVIVE)) //-70% of max blood volume for(var/i in 1 to 2) var/obj/effect/decal/cleanable/blood/B = new(defender.loc) step(B, pick(GLOB.alldirs)) @@ -40,7 +40,7 @@ attacker.drop_r_hand() var/sound = pick('sound/weapons/knife_holster/throat_slice.ogg','sound/weapons/knife_holster/throat_slice2.ogg') playsound(defender.loc, sound, 25, 1) - attacker.visible_message(span_danger("[attacker] перерезает глотку [defender]! Ахуй."), span_danger("Вы перерезаете глотку [defender]! Ахуй.")) + attacker.visible_message(span_danger("[attacker] перерезает глотку [defender]!"), span_danger("Вы перерезаете глотку [defender]!")) /datum/martial_art/throwing/explaination_footer(user) to_chat(user, "[span_notice("Работает с ножами")]: Боевой, шахтёрский, костяной, метательный") diff --git a/code/modules/mining/equipment/vendor_items.dm b/code/modules/mining/equipment/vendor_items.dm index 8868d4655b5..6e540d1098b 100644 --- a/code/modules/mining/equipment/vendor_items.dm +++ b/code/modules/mining/equipment/vendor_items.dm @@ -9,6 +9,10 @@ real = 0 sterile = 1 tint = 3 //Makes it feel more authentic when it latches on + mob_throw_hit_sound = null + equip_sound = 'sound/items/handling/generic_equip4.ogg' + drop_sound = 'sound/items/handling/generic_drop5.ogg' + pickup_sound = 'sound/items/handling/generic_pickup3.ogg' /obj/item/clothing/mask/facehugger/toy/Die() return diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm index 322018c9062..d70de526b6d 100644 --- a/code/modules/mining/ores_coins.dm +++ b/code/modules/mining/ores_coins.dm @@ -352,6 +352,8 @@ GLOBAL_LIST_INIT(sand_recipes, list(\ force = 1 throwforce = 2 w_class = WEIGHT_CLASS_TINY + pickup_sound = 'sound/items/handling/ring_pickup.ogg' + drop_sound = 'sound/items/handling/ring_drop.ogg' var/string_attached var/list/sideslist = list("heads","tails") var/cmineral = null diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index b5faf476488..3326e035087 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -487,7 +487,7 @@ * * 'invdrop' prevents stuff in belt/id/pockets/PDA slots from dropping if item was in jumpsuit slot. Only set to `FALSE` if it's going to be immediately replaced. * * 'silent' set to `TRUE` if you want to disable warning messages. */ -/mob/proc/transfer_item_to_loc(obj/item/I, atom/newloc, force = FALSE, invdrop = TRUE, silent = TRUE) +/mob/proc/transfer_item_to_loc(obj/item/I, atom/newloc, force = FALSE, invdrop = TRUE, silent = FALSE) . = do_unEquip(I, force, newloc, FALSE, invdrop, silent) I.do_drop_animation(src) diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index 88184b07300..083f558aef5 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -44,29 +44,11 @@ var/full_name = "" var/new_name = "" - if(name == "Siik'tajr") //original code by @valtor0 - var/list/syllablesRus = list("кан","тай","кир","раи","кии","мир","кра","тэк","нал","вар","хар","марр","ран","дарр", \ - "мирк","ири","дин","манг","рик","зар","раз","кель","шера","тар","кей","ар","но","маи","зир","кер","нир","ра",\ - "ми","рир","сей","эка","гир","ари","нэй","нре","ак","таир","эрай","жин","мра","зур","рин","сар","кин","рид","эра","ри","эна") - var/buffer_syllab = "" - var/apostrophe = "’" - - for(var/i = 0; i<2; i++) - for(var/x = rand(FLOOR(syllable_count/4, 1), syllable_count/2);x>0;x--) - buffer_syllab = pick(syllablesRus) - syllablesRus -= buffer_syllab - new_name += buffer_syllab - new_name += apostrophe - apostrophe = "" + for(var/i = 0;i0;x--) + new_name += pick(syllables) full_name += " [capitalize(lowertext(new_name))]" - return "[trim(full_name)]" - - else - for(var/i = 0;i0;x--) - new_name += pick(syllables) - full_name += " [capitalize(lowertext(new_name))]" return "[trim(full_name)]" /datum/language/proc/scramble(input) @@ -211,14 +193,31 @@ "ka","aasi","far","wa","baq","ara","qara","zir","sam","mak","hrar","nja","rir","khan","jun","dar","rik","kah", \ "hal","ket","jurl","mah","tul","cresh","azu","ragh") -/datum/language/tajaran/get_random_name(gender) - var/new_name = ..(gender,1) - if(prob(80)) - new_name += " [pick(list("Хадии","Кайтам","Жан-Хазан","Нъярир’Ахан"))]" - else - new_name += " [pick(list("Энай-Сэндай","Наварр-Сэндай","Року-Сэндай","Шенуар-Сэндай"))]" - return new_name +/datum/language/tajaran/get_random_name(gender) //code by @valtor0 + var/static/list/tajaran_female_endings_list = list("и","а","о","е","й","ь") // Customise this with ru_name_syllables changes. + var/static/list/ru_name_syllables = list("кан","тай","кир","раи","кии","мир","кра","тэк","нал","вар","хар","марр","ран","дарр", \ + "мирк","ири","дин","манг","рик","зар","раз","кель","шера","тар","кей","ар","но","маи","зир","кер","нир","ра",\ + "ми","рир","сей","эка","гир","ари","нэй","нре","ак","таир","эрай","жин","мра","зур","рин","сар","кин","рид","эра","ри","эна") + var/apostrophe = "’" + var/new_name = "" + var/full_name = "" + for(var/i = 0; i<2; i++) + for(var/x = rand(1,2); x>0; x--) + new_name += pick_n_take(ru_name_syllables) + new_name += apostrophe + apostrophe = "" + full_name = "[capitalize(lowertext(new_name))]" + if(gender == FEMALE) + var/ending = copytext(full_name, -2) + if(!(ending in tajaran_female_endings_list)) + full_name += "а" + //20% for "Sendai" clan; 18,75% (75%) for other regular clan; 5% for names without clan. + if(prob(75)) + full_name += " [pick(list("Хадии","Кайтам","Жан-Хазан","Нъярир’Ахан"))]" + else if(prob(80)) + full_name += " [pick(list("Энай-Сэндай","Наварр-Сэндай","Року-Сэндай","Шенуар-Сэндай"))]" + return full_name /datum/language/vulpkanin name = "Canilunzt" diff --git a/code/modules/mob/living/carbon/alien/special/facehugger.dm b/code/modules/mob/living/carbon/alien/special/facehugger.dm index b8816611845..ee817a380e0 100644 --- a/code/modules/mob/living/carbon/alien/special/facehugger.dm +++ b/code/modules/mob/living/carbon/alien/special/facehugger.dm @@ -19,6 +19,10 @@ flags_cover = MASKCOVERSMOUTH | MASKCOVERSEYES layer = MOB_LAYER max_integrity = 100 + mob_throw_hit_sound = 'sound/misc/moist_impact.ogg' + equip_sound = 'sound/items/handling/flesh_pickup.ogg' + drop_sound = 'sound/items/handling/flesh_drop.ogg' + pickup_sound = 'sound/misc/moist_impact.ogg' var/stat = CONSCIOUS //UNCONSCIOUS is the idle state in this case diff --git a/code/modules/mob/living/carbon/human/human_emote.dm b/code/modules/mob/living/carbon/human/human_emote.dm index 8b67ada6ca5..1e3ef5a2e1d 100644 --- a/code/modules/mob/living/carbon/human/human_emote.dm +++ b/code/modules/mob/living/carbon/human/human_emote.dm @@ -360,7 +360,7 @@ key = "johnny" message = "затягива%(ет,ют)%ся сигаретой и выдыха%(ет,ют)% дым в форме %(своего,их)% имени." message_param = "dummy" // Gets handled in select_param - emote_type = EMOTE_AUDIBLE + emote_type = EMOTE_AUDIBLE|EMOTE_MOUTH target_behavior = EMOTE_TARGET_BHVR_DEFAULT_TO_BASE emote_target_type = EMOTE_TARGET_MOB cooldown = 8 SECONDS @@ -1208,6 +1208,7 @@ age_based = TRUE volume = 100 cooldown = 10 SECONDS + unintentional_cooldown = 10 SECONDS sound = 'sound/goonstation/voice/howl.ogg' /datum/emote/living/carbon/human/vulpkanin/howl/run_emote(mob/user, params, type_override, intentional) @@ -1249,7 +1250,7 @@ /** * Tajaran */ -/datum/emote/living/carbon/human/tajaran/hiss +/datum/emote/living/carbon/human/tajaran species_type_whitelist_typecache = list(/datum/species/tajaran) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index cc9caf889f4..44d51f2b8ee 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -845,7 +845,7 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( if(U.action(src, user)) user.visible_message("[user] applied [U] to [src].", "You apply [U] to [src].") install_upgrade(U) - module.fix_modules() //Set up newly added items with NODROP flag. + module?.fix_modules() //Set up newly added items with NODROP flag. else W.forceMove(drop_location()) diff --git a/code/modules/mob/living/simple_animal/friendly/slugcat.dm b/code/modules/mob/living/simple_animal/friendly/slugcat.dm index 50431586c86..f5f69ac44e6 100644 --- a/code/modules/mob/living/simple_animal/friendly/slugcat.dm +++ b/code/modules/mob/living/simple_animal/friendly/slugcat.dm @@ -1,6 +1,6 @@ /mob/living/simple_animal/pet/slugcat name = "слизнекот" - desc = "Удивительное существо, напоминающая кота и слизня в одном обличии. Но это не слизь, а иной вид существа. Гордость ксенобиологии. Крайне ловкое и умное, родом с планеты с опасной средой обитания. Обожает копья, не стоит давать ему его в лапки. На нем отлично смотрятся шляпы." + desc = "Удивительное существо, напоминающее кота и слизня в одном обличии. Но это не слизь, а иной вид существа. Гордость ксенобиологии. Крайне ловкое и умное, родом с планеты с опасной средой обитания. Обожает копья, не стоит давать ему его в лапки. На нём отлично смотрятся шляпы." icon_state = "slugcat" icon_living = "slugcat" icon_dead = "slugcat_dead" @@ -15,11 +15,11 @@ melee_damage_type = STAMINA melee_damage_lower = 0 melee_damage_upper = 0 - attacktext = "бьет" + attacktext = "бьёт" mob_size = MOB_SIZE_SMALL pass_flags = PASSTABLE ventcrawler = VENTCRAWLER_ALWAYS - can_collar = 1 + can_collar = TRUE butcher_results = list(/obj/item/reagent_containers/food/snacks/meat = 5) response_help = "pets" response_disarm = "gently pushes aside" @@ -28,7 +28,7 @@ footstep_type = FOOTSTEP_MOB_SLIME tts_seed = "Narrator" faction = list("slime","neutral") - //holder_type = /obj/item/holder/cat2 + //holder_type = /obj/item/holder/cat2 //soon //Шляпы для слизнекота! var/obj/item/inventory_head @@ -46,7 +46,7 @@ /mob/living/simple_animal/pet/slugcat/monk name = "слизнекот-монах" - desc = "Удивительное существо, напоминающая кота и слизня в одном обличии. Но это не слизь, а иной вид существа. Гордость ксенобиологии. Крайне ловкое и умное, родом с планеты с опасной средой обитания. Не любит охоту и не умеет пользоваться копьями. На нем отлично смотрятся шляпы." + desc = "Удивительное существо, напоминающее кота и слизня в одном обличии. Но это не слизь, а иной вид существа. Гордость ксенобиологии. Крайне ловкое и умное, родом с планеты с опасной средой обитания. Не любит охоту и не умеет пользоваться копьями. На нём отлично смотрятся шляпы." icon_state = "slugcat_monk" icon_living = "slugcat_monk" icon_dead = "slugcat_monk_dead" @@ -58,7 +58,7 @@ /mob/living/simple_animal/pet/slugcat/hunter name = "слизнекот-охотник" - desc = "Удивительное существо, напоминающая кота и слизня в одном обличии. Но это не слизь, а иной вид существа. Гордость ксенобиологии. Крайне ловкое и умное, родом с планеты с опасной средой обитания. Обожает копья и умело управляется ими, не стоит давать ему его в лапки. На нем отлично смотрятся шляпы." + desc = "Удивительное существо, напоминающее кота и слизня в одном обличии. Но это не слизь, а иной вид существа. Гордость ксенобиологии. Крайне ловкое и умное, родом с планеты с опасной средой обитания. Обожает копья и умело управляется ими, не стоит давать ему его в лапки. На нём отлично смотрятся шляпы." icon_state = "slugcat_hunter" icon_living = "slugcat_hunter" icon_dead = "slugcat_hunter_dead" @@ -106,15 +106,15 @@ /mob/living/simple_animal/pet/slugcat/Topic(href, href_list) if(..()) - return 1 + return TRUE if(!(iscarbon(usr) || usr.incapacitated() || !Adjacent(usr))) usr << browse(null, "window=mob[UID()]") usr.unset_machine() return - if (stat == DEAD) - return 0 + if(stat == DEAD) + return FALSE if(href_list["remove_inv"]) var/remove_from = href_list["remove_inv"] @@ -123,6 +123,12 @@ remove_from_head(usr) if("hand") remove_from_hand(usr) + if("collar") + if(pcollar) + var/the_collar = pcollar + drop_item_ground(pcollar) + usr.put_in_hands(the_collar, ignore_anim = FALSE) + pcollar = null show_inv(usr) else if(href_list["add_inv"]) @@ -132,10 +138,12 @@ place_on_head(usr.get_active_hand(), usr) if("hand") place_to_hand(usr.get_active_hand(), usr) + if("collar") + add_collar(usr.get_active_hand(), usr) show_inv(usr) if(usr != src) - return 1 + return TRUE /mob/living/simple_animal/pet/slugcat/regenerate_icons() overlays.Cut() @@ -177,7 +185,7 @@ var/obj/item/twohanded/spear = inventory_hand - attacktext = "бьет копьем" + attacktext = "бьёт копьём" attack_sound = 'sound/weapons/bladeslice.ogg' melee_damage_type = BRUTE melee_damage_lower = round(spear.force_unwielded / (is_reduce_damage ? 2 : 1)) @@ -212,46 +220,46 @@ var/dat = {"
Inventory of [name]

"} dat += "
Head: [inventory_head]" : "add_inv=head'>Nothing"]" dat += "
Hand: [inventory_hand]" : "add_inv=hand'>Nothing"]" - + dat += "
Collar: [pcollar]" : "add_inv=collar'>Nothing"]" var/datum/browser/popup = new(user, "mob[UID()]", "[src]", 440, 250) popup.set_content(dat) popup.open() /mob/living/simple_animal/pet/slugcat/proc/place_on_head(obj/item/item_to_add, mob/user) if(!item_to_add) - user.visible_message("[user] похлопывает по голове [src.name].", "Вы положили руку на голову [src.name].") - if(flags_2 & HOLOGRAM_2) - return 0 - return 0 + if(flags_2 & HOLOGRAM_2) //Can't touch ephemeral dudes( + return FALSE + user.visible_message(span_notice("[user] похлопывает по голове [src.name]."), span_notice("Вы положили руку на голову [src.name].")) + return FALSE if(!istype(item_to_add, /obj/item/clothing/head)) - to_chat(user, "[item_to_add.name] нельзя надеть на голову [src.name]!") - return 0 + to_chat(user, span_warning("[item_to_add.name] нельзя надеть на голову [src.name]!")) + return FALSE if(inventory_head) if(user) - to_chat(user, "Нельзя надеть больше одного головного убора на голову [src.name]!") - return 0 + to_chat(user, span_warning("Нельзя надеть больше одного головного убора на голову [src.name]!")) + return FALSE if(user && !user.drop_transfer_item_to_loc(item_to_add, src)) - to_chat(user, "[item_to_add.name] застрял в ваших руках, вы не можете его надеть на голову [src.name]!") - return 0 + to_chat(user, span_warning("[item_to_add.name] застрял в ваших руках, вы не можете его надеть на голову [src.name]!")) + return FALSE - user.visible_message("[user] надевает [item_to_add].name на голову [real_name].", - "Вы надеваете [item_to_add.name] на голову [real_name].", - "Вы слышите как что-то нацепили.") + user.visible_message(span_notice("[user] надевает [item_to_add.name] на голову [real_name]."), + span_notice("Вы надеваете [item_to_add.name] на голову [real_name]."), + span_italics("Вы слышите как что-то нацепили.")) inventory_head = item_to_add regenerate_icons() - return 1 + return TRUE /mob/living/simple_animal/pet/slugcat/proc/remove_from_head(mob/user) if(inventory_head) if(inventory_head.flags & NODROP) - to_chat(user, "[inventory_head.name] застрял на голове [src.name]! Его невозможно снять!") + to_chat(user, span_warning("[inventory_head.name] застрял на голове [src.name]! Его невозможно снять!")) return TRUE - to_chat(user, "Вы сняли [inventory_head.name] с головы [src.name].") + to_chat(user, span_warning("Вы сняли [inventory_head.name] с головы [src.name].")) drop_item_ground(inventory_head) user.put_in_hands(inventory_head, ignore_anim = FALSE) @@ -259,7 +267,7 @@ regenerate_icons() else - to_chat(user, "На голове [src.name] нет головного убора!") + to_chat(user, span_warning("На голове [src.name] нет головного убора!")) return FALSE return TRUE @@ -278,37 +286,37 @@ /mob/living/simple_animal/pet/slugcat/proc/place_to_hand(obj/item/item_to_add, mob/user) if(!item_to_add) - user.visible_message("[user] пощупал лапки [src].", "Вы пощупали лапки [src].") - if(flags_2 & HOLOGRAM_2) - return 0 - return 0 + if(flags_2 & HOLOGRAM_2) //Can't touch ephemeral dudes( + return FALSE + user.visible_message(span_notice("[user] пощупал лапки [src]."), span_notice("Вы пощупали лапки [src].")) + return FALSE if(resting) - to_chat(user, "[src.name] спит и не принимает [item_to_add.name]!") - return 0 + to_chat(user, span_warning("[src.name] спит и не принимает [item_to_add.name]!")) + return FALSE if(!istype(item_to_add, /obj/item/twohanded/spear)) - to_chat(user, "[src.name] не принимает [item_to_add.name]!") - return 0 + to_chat(user, span_warning("[src.name] не принимает [item_to_add.name]!")) + return FALSE if(inventory_hand) if(user) - to_chat(user, "Лапки [src.name] заняты [inventory_hand.name]!") - return 0 + to_chat(user, span_warning("Лапки [src.name] заняты [inventory_hand.name]!")) + return FALSE if(user && !user.drop_item_ground(item_to_add)) - to_chat(user, "[item_to_add.name] застрял в ваших руках, вы не можете его дать [src.name]!") - return 0 + to_chat(user, span_warning("[item_to_add.name] застрял в ваших руках, вы не можете его дать [src.name]!")) + return FALSE if(is_pacifist) - to_chat(user, "[src.name] пацифист и не пользуется [item_to_add.name]!") - return 0 + to_chat(user, span_warning("[src.name] пацифист и не пользуется [item_to_add.name]!")) + return FALSE - user.visible_message("[real_name] выхватывает [item_to_add] с рук [user].", - "[real_name] выхватывает [item_to_add] с ваших рук.", - "Вы видите довольные глаза.") + user.visible_message(span_notice("[real_name] выхватывает [item_to_add] с рук [user]."), + span_notice("[real_name] выхватывает [item_to_add] с ваших рук."), + span_italics("Вы видите довольные глаза.")) move_item_to_hand(item_to_add) - return 1 + return TRUE /mob/living/simple_animal/pet/slugcat/proc/move_item_to_hand(obj/item/item_to_add) item_to_add.forceMove(src) @@ -318,10 +326,10 @@ /mob/living/simple_animal/pet/slugcat/proc/remove_from_hand(mob/user) if(inventory_hand) if(inventory_hand.flags & NODROP) - to_chat(user, "[inventory_hand.name] застрял в лапах [src]! Его невозможно отнять!") + to_chat(user, span_warning("[inventory_hand.name] застрял в лапах [src]! Его невозможно отнять!")) return TRUE - to_chat(user, "Вы забрали [inventory_hand.name] с лап [src].") + to_chat(user, span_warning("Вы забрали [inventory_hand.name] с лап [src].")) drop_item_ground(inventory_hand) user.put_in_hands(inventory_hand, ignore_anim = FALSE) @@ -329,7 +337,7 @@ regenerate_icons() else - to_chat(user, "В лапах [src] нечего отбирать!") + to_chat(user, span_warning("В лапах [src] нечего отбирать!")) return FALSE return TRUE diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm index e1b83f51f89..1bc3cf13ee2 100644 --- a/code/modules/mob/living/simple_animal/hostile/carp.dm +++ b/code/modules/mob/living/simple_animal/hostile/carp.dm @@ -13,7 +13,6 @@ butcher_results = list(/obj/item/reagent_containers/food/snacks/carpmeat = 2) response_help = "pets" response_disarm = "gently pushes aside" - response_harm = list("hits", "gnawing", "bites") emote_taunt = list("gnashes") taunt_chance = 30 speed = 0 diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 9155d6bfbc8..e6020be3b5d 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -742,60 +742,67 @@ add_spell_to_statpanel(S) // Allow admins + PR reviewers to VIEW the panel. Doesnt mean they can click things. - if((is_admin(src) || check_rights(R_VIEWRUNTIMES, FALSE)) && (client?.prefs.toggles2 & PREFTOGGLE_2_MC_TABS)) + if((is_admin(src) || check_rights(R_VIEWRUNTIMES, FALSE))) + // Shows SDQL2 list + if(length(GLOB.sdql2_queries)) + if(statpanel("SDQL2")) + stat("Access Global SDQL2 List", GLOB.sdql2_vv_statobj) + for(var/i in GLOB.sdql2_queries) + var/datum/sdql2_query/Q = i + Q.generate_stat() // Below are checks to see which MC panel you are looking at - - // Shows MC Metadata - if(statpanel("MC|M")) - stat("Info", "Showing MC metadata") - var/turf/T = get_turf(client.eye) - stat("Location:", COORD(T)) - stat("CPU:", "[Master.formatcpu(world.cpu)]") - stat("Map CPU:", "[Master.formatcpu(world.map_cpu)]") - //stat("Map CPU:", "[Master.formatcpu(world.map_cpu)]") - stat("Instances:", "[num2text(world.contents.len, 10)]") - GLOB.stat_entry() - stat("Server Time:", time_stamp()) - if(Master) - Master.stat_entry() - else - stat("Master Controller:", "ERROR") - if(Failsafe) - Failsafe.stat_entry() - else - stat("Failsafe Controller:", "ERROR") - - // Shows subsystems with SS_NO_FIRE - if(statpanel("MC|N")) - stat("Info", "Showing subsystems that do not fire") - if(Master) - for(var/datum/controller/subsystem/SS as anything in Master.subsystems) - if(SS.flags & SS_NO_FIRE) - SS.stat_entry() - - // Shows subsystems with the SS_CPUDISPLAY_LOW flag - if(statpanel("MC|L")) - stat("Info", "Showing subsystems marked as low intensity") - if(Master) - for(var/datum/controller/subsystem/SS as anything in Master.subsystems) - if((SS.cpu_display == SS_CPUDISPLAY_LOW) && !(SS.flags & SS_NO_FIRE)) - SS.stat_entry() - - // Shows subsystems with the SS_CPUDISPLAY_DEFAULT flag - if(statpanel("MC|D")) - stat("Info", "Showing subsystems marked as default intensity") - if(Master) - for(var/datum/controller/subsystem/SS as anything in Master.subsystems) - if((SS.cpu_display == SS_CPUDISPLAY_DEFAULT) && !(SS.flags & SS_NO_FIRE)) - SS.stat_entry() - - // Shows subsystems with the SS_CPUDISPLAY_HIGH flag - if(statpanel("MC|H")) - stat("Info", "Showing subsystems marked as high intensity") - if(Master) - for(var/datum/controller/subsystem/SS as anything in Master.subsystems) - if((SS.cpu_display == SS_CPUDISPLAY_HIGH) && !(SS.flags & SS_NO_FIRE)) - SS.stat_entry() + if(client?.prefs.toggles2 & PREFTOGGLE_2_MC_TABS) + // Shows MC Metadata + if(statpanel("MC|M")) + stat("Info", "Showing MC metadata") + var/turf/T = get_turf(client.eye) + stat("Location:", COORD(T)) + stat("CPU:", "[Master.formatcpu(world.cpu)]") + stat("Map CPU:", "[Master.formatcpu(world.map_cpu)]") + //stat("Map CPU:", "[Master.formatcpu(world.map_cpu)]") + stat("Instances:", "[num2text(world.contents.len, 10)]") + GLOB.stat_entry() + stat("Server Time:", time_stamp()) + if(Master) + Master.stat_entry() + else + stat("Master Controller:", "ERROR") + if(Failsafe) + Failsafe.stat_entry() + else + stat("Failsafe Controller:", "ERROR") + + // Shows subsystems with SS_NO_FIRE + if(statpanel("MC|N")) + stat("Info", "Showing subsystems that do not fire") + if(Master) + for(var/datum/controller/subsystem/SS as anything in Master.subsystems) + if(SS.flags & SS_NO_FIRE) + SS.stat_entry() + + // Shows subsystems with the SS_CPUDISPLAY_LOW flag + if(statpanel("MC|L")) + stat("Info", "Showing subsystems marked as low intensity") + if(Master) + for(var/datum/controller/subsystem/SS as anything in Master.subsystems) + if((SS.cpu_display == SS_CPUDISPLAY_LOW) && !(SS.flags & SS_NO_FIRE)) + SS.stat_entry() + + // Shows subsystems with the SS_CPUDISPLAY_DEFAULT flag + if(statpanel("MC|D")) + stat("Info", "Showing subsystems marked as default intensity") + if(Master) + for(var/datum/controller/subsystem/SS as anything in Master.subsystems) + if((SS.cpu_display == SS_CPUDISPLAY_DEFAULT) && !(SS.flags & SS_NO_FIRE)) + SS.stat_entry() + + // Shows subsystems with the SS_CPUDISPLAY_HIGH flag + if(statpanel("MC|H")) + stat("Info", "Showing subsystems marked as high intensity") + if(Master) + for(var/datum/controller/subsystem/SS as anything in Master.subsystems) + if((SS.cpu_display == SS_CPUDISPLAY_HIGH) && !(SS.flags & SS_NO_FIRE)) + SS.stat_entry() statpanel("Status") // Switch to the Status panel again, for the sake of the lazy Stat procs diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 6b93e7dc6dc..4c4bfa8ab5c 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -22,6 +22,8 @@ attack_verb = list("bapped") permeability_coefficient = 0.01 dog_fashion = /datum/dog_fashion/head + drop_sound = 'sound/items/handling/paper_drop.ogg' + pickup_sound = 'sound/items/handling/paper_pickup.ogg' var/header //Above the main body, displayed at the top var/info //What's actually written on the paper. var/footer //The bottom stuff before the stamp but after the body diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm index 2a51eb65336..1f9fe272072 100644 --- a/code/modules/paperwork/paper_bundle.dm +++ b/code/modules/paperwork/paper_bundle.dm @@ -12,6 +12,8 @@ layer = 4 pressure_resistance = 2 attack_verb = list("bapped") + drop_sound = 'sound/items/handling/paper_drop.ogg' + pickup_sound = 'sound/items/handling/paper_pickup.ogg' var/amount = 0 //Amount of items clipped to the paper. Note: If you have 2 paper, this should be 1 var/page = 1 var/screen = 0 diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index cb9c4500ea9..a94f8667c08 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -123,6 +123,8 @@ item_state = "briefcase" can_hold = list(/obj/item/photo) resistance_flags = FLAMMABLE + drop_sound = 'sound/items/handling/book_drop.ogg' + pickup_sound = 'sound/items/handling/book_pickup.ogg' /obj/item/storage/photo_album/MouseDrop(atom/over) diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm index 41aceeece1a..f7cdf440245 100644 --- a/code/modules/projectiles/ammunition.dm +++ b/code/modules/projectiles/ammunition.dm @@ -119,6 +119,8 @@ w_class = WEIGHT_CLASS_TINY throw_speed = 4 throw_range = 10 + pickup_sound = 'sound/items/handling/ammobox_pickup.ogg' + drop_sound = 'sound/items/handling/ammobox_drop.ogg' var/list/stored_ammo = list() var/ammo_type = /obj/item/ammo_casing var/max_ammo = 7 diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index b25528c5428..5514ef5c72d 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -15,6 +15,8 @@ origin_tech = "combat=1" needs_permit = 1 attack_verb = list("struck", "hit", "bashed") + pickup_sound = 'sound/items/handling/gun_pickup.ogg' + drop_sound = 'sound/items/handling/gun_drop.ogg' var/fire_sound = "gunshot" var/magin_sound = 'sound/weapons/gun_interactions/smg_magin.ogg' diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm index e74a08987b9..87cdec16388 100644 --- a/code/modules/projectiles/guns/magic.dm +++ b/code/modules/projectiles/guns/magic.dm @@ -8,6 +8,8 @@ fire_sound_text = "energy blast" flags = CONDUCT w_class = WEIGHT_CLASS_HUGE + pickup_sound = 'sound/items/handling/generic_pickup1.ogg' + drop_sound = 'sound/items/handling/generic_drop3.ogg' var/max_charges = 6 var/charges = 0 var/recharge_rate = 4 diff --git a/code/modules/projectiles/guns/projectile/toy.dm b/code/modules/projectiles/guns/projectile/toy.dm index 5d666c0d897..25a81ab57a2 100644 --- a/code/modules/projectiles/guns/projectile/toy.dm +++ b/code/modules/projectiles/guns/projectile/toy.dm @@ -12,6 +12,8 @@ can_suppress = 0 clumsy_check = 0 needs_permit = 0 + pickup_sound = 'sound/items/handling/generic_pickup1.ogg' + drop_sound = 'sound/items/handling/generic_drop3.ogg' /obj/item/gun/projectile/automatic/toy/process_chamber(eject_casing = 0, empty_chamber = 1) ..() @@ -72,6 +74,8 @@ mag_type = /obj/item/ammo_box/magazine/internal/shot/toy clumsy_check = 0 needs_permit = 0 + pickup_sound = 'sound/items/handling/generic_pickup1.ogg' + drop_sound = 'sound/items/handling/generic_drop3.ogg' /obj/item/gun/projectile/shotgun/toy/process_chamber() ..() @@ -96,6 +100,8 @@ can_suppress = 0 needs_permit = 0 mag_type = /obj/item/ammo_box/magazine/toy/smgm45 + pickup_sound = 'sound/items/handling/generic_pickup1.ogg' + drop_sound = 'sound/items/handling/generic_drop3.ogg' /obj/item/gun/projectile/automatic/c20r/toy/riot mag_type = /obj/item/ammo_box/magazine/toy/smgm45/riot @@ -111,6 +117,8 @@ can_suppress = 0 needs_permit = 0 mag_type = /obj/item/ammo_box/magazine/toy/m762 + pickup_sound = 'sound/items/handling/generic_pickup1.ogg' + drop_sound = 'sound/items/handling/generic_drop3.ogg' /obj/item/gun/projectile/automatic/l6_saw/toy/riot mag_type = /obj/item/ammo_box/magazine/toy/m762/riot @@ -137,6 +145,8 @@ needs_permit = FALSE zoomable = FALSE mag_type = /obj/item/ammo_box/magazine/toy/sniper_rounds + pickup_sound = 'sound/items/handling/generic_pickup1.ogg' + drop_sound = 'sound/items/handling/generic_drop3.ogg' /obj/item/gun/projectile/automatic/sniper_rifle/toy/update_icon() if(magazine) diff --git a/code/modules/reagents/chemistry/reagents/medicine.dm b/code/modules/reagents/chemistry/reagents/medicine.dm index 9f104dbc241..6a8e9fbe0ff 100644 --- a/code/modules/reagents/chemistry/reagents/medicine.dm +++ b/code/modules/reagents/chemistry/reagents/medicine.dm @@ -806,7 +806,7 @@ if(!M.ghost_can_reenter()) M.visible_message("[M] twitches slightly, but is otherwise unresponsive!") return - if(!M.suiciding && !(NOCLONE in M.mutations) && (!M.mind || M.mind && M.mind.is_revivable())) + if(!M.suiciding && !(NOCLONE in M.mutations) && (!M.mind || M.mind?.is_revivable())) var/time_dead = world.time - M.timeofdeath M.visible_message("[M] seems to rise from the dead!") M.adjustCloneLoss(50) @@ -828,8 +828,8 @@ O.germ_level = INFECTION_LEVEL_THREE H.update_body() + M.update_revive(TRUE, TRUE) M.grab_ghost() - M.update_revive() add_attack_logs(M, M, "Revived with strange reagent") //Yes, the logs say you revived yourself. ..() diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index 11bd9b257a9..5052fc9223b 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -12,6 +12,8 @@ consume_sound = null can_taste = FALSE antable = FALSE + pickup_sound = 'sound/items/handling/generic_small_pickup.ogg' + drop_sound = 'sound/items/handling/generic_small_drop.ogg' /obj/item/reagent_containers/food/pill/Initialize(mapload) if(!icon_state) diff --git a/code/modules/surgery/organs/augments_internal.dm b/code/modules/surgery/organs/augments_internal.dm index 49cf9d9c50e..54be1166638 100644 --- a/code/modules/surgery/organs/augments_internal.dm +++ b/code/modules/surgery/organs/augments_internal.dm @@ -5,6 +5,8 @@ var/implant_color = "#FFFFFF" var/implant_overlay tough = TRUE // Immune to damage + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/cyberimp/New(var/mob/M = null) . = ..() diff --git a/code/modules/surgery/organs/ears.dm b/code/modules/surgery/organs/ears.dm index 7dbdff71741..f068f627773 100644 --- a/code/modules/surgery/organs/ears.dm +++ b/code/modules/surgery/organs/ears.dm @@ -11,6 +11,9 @@ return var/mob/living/carbon/C = owner + if(!istype(C)) + return + // if we have non-damage related deafness like mutations, quirks or clothing (earmuffs), don't bother processing here. Ear healing from earmuffs or chems happen elsewhere if(HAS_TRAIT_NOT_FROM(C, TRAIT_DEAF, EAR_DAMAGE)) return @@ -39,6 +42,8 @@ desc = "a basic cybernetic designed to mimic the operation of ears." origin_tech = "biotech=4" status = ORGAN_ROBOT + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/ears/cybernetic/emp_act(severity) if(emp_proof) diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index b543449fdc7..02f6624c5c4 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -79,6 +79,8 @@ desc = "An electronic device designed to mimic the functions of a pair of human eyes. It has no benefits over organic eyes, but is easy to produce." origin_tech = "biotech=4" status = ORGAN_ROBOT + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/eyes/on_life() var/update_flags = STATUS_UPDATE_NONE diff --git a/code/modules/surgery/organs/heart.dm b/code/modules/surgery/organs/heart.dm index 2e11d176c1b..90870e191fc 100644 --- a/code/modules/surgery/organs/heart.dm +++ b/code/modules/surgery/organs/heart.dm @@ -146,6 +146,8 @@ icon_base = "heart-c" dead_icon = "heart-c-off" status = ORGAN_ROBOT + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/heart/cybernetic/upgraded name = "upgraded cybernetic heart" diff --git a/code/modules/surgery/organs/kidneys.dm b/code/modules/surgery/organs/kidneys.dm index a2585503e24..58de14efafc 100644 --- a/code/modules/surgery/organs/kidneys.dm +++ b/code/modules/surgery/organs/kidneys.dm @@ -25,3 +25,5 @@ desc = "An electronic device designed to mimic the functions of human kidneys. It has no benefits over a pair of organic kidneys, but is easy to produce." origin_tech = "biotech=4" status = ORGAN_ROBOT + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' diff --git a/code/modules/surgery/organs/liver.dm b/code/modules/surgery/organs/liver.dm index 799b8e8a6ab..00e8cdd7030 100644 --- a/code/modules/surgery/organs/liver.dm +++ b/code/modules/surgery/organs/liver.dm @@ -56,3 +56,5 @@ desc = "An electronic device designed to mimic the functions of a human liver. It has no benefits over an organic liver, but is easy to produce." origin_tech = "biotech=4" status = ORGAN_ROBOT + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' diff --git a/code/modules/surgery/organs/lungs.dm b/code/modules/surgery/organs/lungs.dm index 23ac61ff8b4..560e4071da0 100644 --- a/code/modules/surgery/organs/lungs.dm +++ b/code/modules/surgery/organs/lungs.dm @@ -345,6 +345,8 @@ origin_tech = "biotech=4" status = ORGAN_ROBOT var/species_state = "human" + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/lungs/cybernetic/examine(mob/user) . = ..() diff --git a/code/modules/surgery/organs/organ.dm b/code/modules/surgery/organs/organ.dm index eb61edb6904..5c27d9ea597 100644 --- a/code/modules/surgery/organs/organ.dm +++ b/code/modules/surgery/organs/organ.dm @@ -1,6 +1,8 @@ /obj/item/organ name = "organ" icon = 'icons/obj/surgery.dmi' + pickup_sound = 'sound/items/handling/flesh_pickup.ogg' + drop_sound = 'sound/items/handling/flesh_drop.ogg' var/dead_icon var/mob/living/carbon/human/owner = null var/status = 0 diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index d73ad773d87..ac076e7333e 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -431,7 +431,9 @@ Note that amputating the affected organ does in fact remove the infection from t add_attack_logs(owner, null, "Suffered fracture to [src](Damage: [damage], Organ HP: [max_damage - (brute_dam + burn_dam) ])") /obj/item/organ/external/proc/check_for_internal_bleeding(damage) - if(owner && (NO_BLOOD in owner.dna.species.species_traits)) + if(!owner) + return + if(NO_BLOOD in owner.dna.species.species_traits) return if(owner.status_flags & GODMODE) return diff --git a/code/modules/surgery/organs/subtypes/machine.dm b/code/modules/surgery/organs/subtypes/machine.dm index ad74ae054eb..bfeb53b332c 100644 --- a/code/modules/surgery/organs/subtypes/machine.dm +++ b/code/modules/surgery/organs/subtypes/machine.dm @@ -7,6 +7,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/head/ipc/New(mob/living/carbon/holder, datum/species/species_override = null) ..(holder, /datum/species/machine) // IPC heads need to be explicitly set to this since you can print them @@ -17,6 +19,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/chest/ipc/New() ..() @@ -27,6 +31,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/groin/ipc/New() ..() @@ -37,6 +43,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/arm/ipc/New() ..() @@ -57,6 +65,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/leg/ipc/New() ..() @@ -77,6 +87,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/foot/ipc/New() ..() @@ -97,6 +109,8 @@ encased = null status = ORGAN_ROBOT emp_resistant = TRUE + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/external/hand/ipc/New() ..() @@ -123,6 +137,8 @@ slot = "heart" vital = TRUE status = ORGAN_ROBOT + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/eyes/optical_sensor species_type = /datum/species/machine @@ -132,6 +148,8 @@ status = ORGAN_ROBOT // dead_icon = "camera_broken" weld_proof = 1 + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/eyes/optical_sensor/remove(var/mob/living/user,special = 0) if(!special) @@ -142,6 +160,8 @@ /obj/item/organ/internal/brain/mmi_holder/posibrain species_type = /datum/species/machine name = "positronic brain" + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/brain/mmi_holder/posibrain/New() ..() @@ -167,6 +187,8 @@ icon_state = "taperecorder_idle" status = ORGAN_ROBOT dead_icon = "taperecorder_empty" + pickup_sound = 'sound/items/handling/component_pickup.ogg' + drop_sound = 'sound/items/handling/component_drop.ogg' /obj/item/organ/internal/ears/microphone/remove(mob/living/user, special = FALSE) if(!special) diff --git a/html/changelogs/archive/2023-11.yml b/html/changelogs/archive/2023-11.yml index 7aa14fe856e..8282e1bff49 100644 --- a/html/changelogs/archive/2023-11.yml +++ b/html/changelogs/archive/2023-11.yml @@ -283,3 +283,18 @@ Zwei: - bugfix: Few Fixes (#3947) - bugfix: Correct Antags Number (#3950) +'2023-11-30': + Dimach: + - server: update tgui depts (#3955) + Etrnlmelancholy: + - bugfix: no more /list when you attack carp (#3961) + NightDawnFox: + - bugfix: chameleon hardsuit now toggles light properly (#3957) + ROdenFL: + - bugfix: undroppable heart (#3959) + SAAD: + - bugfix: A little centcom mistakes (#3956) + Zwei: + - tweak: Muzzle Emotes Runechatted (#3958) + dependabot[bot]: + - unknown: bump @babel/traverse from 7.9.5 to 7.23.5 in /tgui (#3954) diff --git a/html/changelogs/archive/2023-12.yml b/html/changelogs/archive/2023-12.yml new file mode 100644 index 00000000000..a000e464c2a --- /dev/null +++ b/html/changelogs/archive/2023-12.yml @@ -0,0 +1,26 @@ +'2023-12-01': + BeebBeebBoob: + - bugfix: Cooldown on chain-emote howl (#3965) + Dimach: + - bugfix: remove bad words (#3968) + ReloadKey: + - refactor: New tajaran random name generator (#3964) + Zwei: + - add: New Interaction Sounds (#3856) +'2023-12-02': + Daeberdir: + - bugfix: Slugcat collar unequiping. (#3982) + - bugfix: DNA injectors don't loose their sprite. (#3981) + - bugfix: strange reagent reviving. (#3977) + Dimach: + - bugfix: fix runtimes in handcufs and holodec area copy (#3980) + LiquidPotroh: + - bugfix: infected mice & runtimes (#3971) + - bugfix: throwing knives neck cut don't make two strikes (#3976) + MataVsn: + - refactor: Porting TG SDQL2. (#3946) + ROdenFL: + - tweak: spraycans in artvend (#3972) + Vladisvell: + - bugfix: fixed drasks breaking grille runtime (#3974) + - bugfix: Runtime fixes of bleeding, ears, external organs and accesses. (#3973) diff --git a/paradise.dme b/paradise.dme index 109aff9f374..e8d581c46f4 100644 --- a/paradise.dme +++ b/paradise.dme @@ -491,6 +491,7 @@ #include "code\datums\keybindings\movement.dm" #include "code\datums\keybindings\robot.dm" #include "code\datums\keybindings\silicon.dm" +#include "code\datums\looping_sounds\item_sounds.dm" #include "code\datums\looping_sounds\looping_sound.dm" #include "code\datums\looping_sounds\machinery_sounds.dm" #include "code\datums\looping_sounds\office_toy.dm" @@ -717,14 +718,14 @@ #include "code\game\gamemodes\miniantags\changeling_slug\changeling_slug.dm" #include "code\game\gamemodes\miniantags\changeling_slug\changeling_slug_event.dm" #include "code\game\gamemodes\miniantags\demons\demon.dm" -#include "code\game\gamemodes\miniantags\demons\shadow_demon\shadow_demon.dm" -#include "code\game\gamemodes\miniantags\demons\slaughter_demon\slaughter_demon.dm" #include "code\game\gamemodes\miniantags\demons\pulse_demon\cross_shock_component.dm" #include "code\game\gamemodes\miniantags\demons\pulse_demon\pulse_demon.dm" #include "code\game\gamemodes\miniantags\demons\pulse_demon\pulse_demon_abilities.dm" #include "code\game\gamemodes\miniantags\demons\pulse_demon\pulse_demon_event.dm" #include "code\game\gamemodes\miniantags\demons\pulse_demon\pulse_demon_interactions.dm" #include "code\game\gamemodes\miniantags\demons\pulse_demon\pulse_demon_objectives.dm" +#include "code\game\gamemodes\miniantags\demons\shadow_demon\shadow_demon.dm" +#include "code\game\gamemodes\miniantags\demons\slaughter_demon\slaughter_demon.dm" #include "code\game\gamemodes\miniantags\guardian\guardian.dm" #include "code\game\gamemodes\miniantags\guardian\host_actions.dm" #include "code\game\gamemodes\miniantags\guardian\types\assassin.dm" diff --git a/sound/effects/toolbox.ogg b/sound/effects/toolbox.ogg new file mode 100644 index 00000000000..c2cd1e8f2ee Binary files /dev/null and b/sound/effects/toolbox.ogg differ diff --git a/sound/items/equip/jumpsuit_equip.ogg b/sound/items/equip/jumpsuit_equip.ogg new file mode 100644 index 00000000000..bdcc2bb3a65 Binary files /dev/null and b/sound/items/equip/jumpsuit_equip.ogg differ diff --git a/sound/items/equip/toolbelt_equip.ogg b/sound/items/equip/toolbelt_equip.ogg new file mode 100644 index 00000000000..0ef67a3fd6c Binary files /dev/null and b/sound/items/equip/toolbelt_equip.ogg differ diff --git a/sound/items/handling/accessory_drop.ogg b/sound/items/handling/accessory_drop.ogg new file mode 100644 index 00000000000..92ff70346dd Binary files /dev/null and b/sound/items/handling/accessory_drop.ogg differ diff --git a/sound/items/handling/accessory_pickup.ogg b/sound/items/handling/accessory_pickup.ogg new file mode 100644 index 00000000000..a5f5ef475b4 Binary files /dev/null and b/sound/items/handling/accessory_pickup.ogg differ diff --git a/sound/items/handling/ammobox_drop.ogg b/sound/items/handling/ammobox_drop.ogg new file mode 100644 index 00000000000..13fce70fe3d Binary files /dev/null and b/sound/items/handling/ammobox_drop.ogg differ diff --git a/sound/items/handling/ammobox_pickup.ogg b/sound/items/handling/ammobox_pickup.ogg new file mode 100644 index 00000000000..9532a7697b9 Binary files /dev/null and b/sound/items/handling/ammobox_pickup.ogg differ diff --git a/sound/items/handling/backpack_drop.ogg b/sound/items/handling/backpack_drop.ogg new file mode 100644 index 00000000000..8e67fcf33fa Binary files /dev/null and b/sound/items/handling/backpack_drop.ogg differ diff --git a/sound/items/handling/backpack_equip.ogg b/sound/items/handling/backpack_equip.ogg new file mode 100644 index 00000000000..5582bd15a50 Binary files /dev/null and b/sound/items/handling/backpack_equip.ogg differ diff --git a/sound/items/handling/backpack_pickup.ogg b/sound/items/handling/backpack_pickup.ogg new file mode 100644 index 00000000000..9438c0830a4 Binary files /dev/null and b/sound/items/handling/backpack_pickup.ogg differ diff --git a/sound/items/handling/bone_drop.ogg b/sound/items/handling/bone_drop.ogg new file mode 100644 index 00000000000..e12c7f7b313 Binary files /dev/null and b/sound/items/handling/bone_drop.ogg differ diff --git a/sound/items/handling/bone_pickup.ogg b/sound/items/handling/bone_pickup.ogg new file mode 100644 index 00000000000..a207e1f5393 Binary files /dev/null and b/sound/items/handling/bone_pickup.ogg differ diff --git a/sound/items/handling/book_drop.ogg b/sound/items/handling/book_drop.ogg new file mode 100644 index 00000000000..b492b665f59 Binary files /dev/null and b/sound/items/handling/book_drop.ogg differ diff --git a/sound/items/handling/book_pickup.ogg b/sound/items/handling/book_pickup.ogg new file mode 100644 index 00000000000..120a4e4721a Binary files /dev/null and b/sound/items/handling/book_pickup.ogg differ diff --git a/sound/items/handling/boots_drop.ogg b/sound/items/handling/boots_drop.ogg new file mode 100644 index 00000000000..87176cdca23 Binary files /dev/null and b/sound/items/handling/boots_drop.ogg differ diff --git a/sound/items/handling/boots_pickup.ogg b/sound/items/handling/boots_pickup.ogg new file mode 100644 index 00000000000..f527ae2d7eb Binary files /dev/null and b/sound/items/handling/boots_pickup.ogg differ diff --git a/sound/items/handling/card_drop.ogg b/sound/items/handling/card_drop.ogg new file mode 100644 index 00000000000..7e2620d2b0b Binary files /dev/null and b/sound/items/handling/card_drop.ogg differ diff --git a/sound/items/handling/card_pickup.ogg b/sound/items/handling/card_pickup.ogg new file mode 100644 index 00000000000..44df4b32605 Binary files /dev/null and b/sound/items/handling/card_pickup.ogg differ diff --git a/sound/items/handling/cardboardbox_drop.ogg b/sound/items/handling/cardboardbox_drop.ogg new file mode 100644 index 00000000000..7070ba1c342 Binary files /dev/null and b/sound/items/handling/cardboardbox_drop.ogg differ diff --git a/sound/items/handling/cardboardbox_pickup.ogg b/sound/items/handling/cardboardbox_pickup.ogg new file mode 100644 index 00000000000..aa4e72129b0 Binary files /dev/null and b/sound/items/handling/cardboardbox_pickup.ogg differ diff --git a/sound/items/handling/cloth_drop.ogg b/sound/items/handling/cloth_drop.ogg new file mode 100644 index 00000000000..5bf734caba0 Binary files /dev/null and b/sound/items/handling/cloth_drop.ogg differ diff --git a/sound/items/handling/cloth_pickup.ogg b/sound/items/handling/cloth_pickup.ogg new file mode 100644 index 00000000000..f46988887d1 Binary files /dev/null and b/sound/items/handling/cloth_pickup.ogg differ diff --git a/sound/items/handling/component_drop.ogg b/sound/items/handling/component_drop.ogg new file mode 100644 index 00000000000..093fde7c90c Binary files /dev/null and b/sound/items/handling/component_drop.ogg differ diff --git a/sound/items/handling/crowbar_drop.ogg b/sound/items/handling/crowbar_drop.ogg new file mode 100644 index 00000000000..77464110661 Binary files /dev/null and b/sound/items/handling/crowbar_drop.ogg differ diff --git a/sound/items/handling/crowbar_pickup.ogg b/sound/items/handling/crowbar_pickup.ogg new file mode 100644 index 00000000000..79b276f8451 Binary files /dev/null and b/sound/items/handling/crowbar_pickup.ogg differ diff --git a/sound/items/handling/disk_drop.ogg b/sound/items/handling/disk_drop.ogg new file mode 100644 index 00000000000..3174b88117f Binary files /dev/null and b/sound/items/handling/disk_drop.ogg differ diff --git a/sound/items/handling/disk_pickup.ogg b/sound/items/handling/disk_pickup.ogg new file mode 100644 index 00000000000..8f67406a5fb Binary files /dev/null and b/sound/items/handling/disk_pickup.ogg differ diff --git a/sound/items/handling/drinkglass_drop.ogg b/sound/items/handling/drinkglass_drop.ogg new file mode 100644 index 00000000000..43bb732db3d Binary files /dev/null and b/sound/items/handling/drinkglass_drop.ogg differ diff --git a/sound/items/handling/drinkglass_pickup.ogg b/sound/items/handling/drinkglass_pickup.ogg new file mode 100644 index 00000000000..fcd1c7d3126 Binary files /dev/null and b/sound/items/handling/drinkglass_pickup.ogg differ diff --git a/sound/items/handling/flesh_drop.ogg b/sound/items/handling/flesh_drop.ogg new file mode 100644 index 00000000000..bb7af66a2ea Binary files /dev/null and b/sound/items/handling/flesh_drop.ogg differ diff --git a/sound/items/handling/flesh_pickup.ogg b/sound/items/handling/flesh_pickup.ogg new file mode 100644 index 00000000000..e59ddc3e0f3 Binary files /dev/null and b/sound/items/handling/flesh_pickup.ogg differ diff --git a/sound/items/handling/generic_drop1.ogg b/sound/items/handling/generic_drop1.ogg new file mode 100644 index 00000000000..c2195b1e24a Binary files /dev/null and b/sound/items/handling/generic_drop1.ogg differ diff --git a/sound/items/handling/generic_drop2.ogg b/sound/items/handling/generic_drop2.ogg new file mode 100644 index 00000000000..ac0bd3710fe Binary files /dev/null and b/sound/items/handling/generic_drop2.ogg differ diff --git a/sound/items/handling/generic_drop3.ogg b/sound/items/handling/generic_drop3.ogg new file mode 100644 index 00000000000..64f37c6dd9c Binary files /dev/null and b/sound/items/handling/generic_drop3.ogg differ diff --git a/sound/items/handling/generic_drop4.ogg b/sound/items/handling/generic_drop4.ogg new file mode 100644 index 00000000000..57092778f28 Binary files /dev/null and b/sound/items/handling/generic_drop4.ogg differ diff --git a/sound/items/handling/generic_drop5.ogg b/sound/items/handling/generic_drop5.ogg new file mode 100644 index 00000000000..be46e772422 Binary files /dev/null and b/sound/items/handling/generic_drop5.ogg differ diff --git a/sound/items/handling/generic_equip1.ogg b/sound/items/handling/generic_equip1.ogg new file mode 100644 index 00000000000..446b3e324fe Binary files /dev/null and b/sound/items/handling/generic_equip1.ogg differ diff --git a/sound/items/handling/generic_equip2.ogg b/sound/items/handling/generic_equip2.ogg new file mode 100644 index 00000000000..9def00b68ca Binary files /dev/null and b/sound/items/handling/generic_equip2.ogg differ diff --git a/sound/items/handling/generic_equip3.ogg b/sound/items/handling/generic_equip3.ogg new file mode 100644 index 00000000000..77567f3375b Binary files /dev/null and b/sound/items/handling/generic_equip3.ogg differ diff --git a/sound/items/handling/generic_equip4.ogg b/sound/items/handling/generic_equip4.ogg new file mode 100644 index 00000000000..5b2a286d316 Binary files /dev/null and b/sound/items/handling/generic_equip4.ogg differ diff --git a/sound/items/handling/generic_equip5.ogg b/sound/items/handling/generic_equip5.ogg new file mode 100644 index 00000000000..c58b0372cb6 Binary files /dev/null and b/sound/items/handling/generic_equip5.ogg differ diff --git a/sound/items/handling/generic_pickup1.ogg b/sound/items/handling/generic_pickup1.ogg new file mode 100644 index 00000000000..64f37c6dd9c Binary files /dev/null and b/sound/items/handling/generic_pickup1.ogg differ diff --git a/sound/items/handling/generic_pickup2.ogg b/sound/items/handling/generic_pickup2.ogg new file mode 100644 index 00000000000..57092778f28 Binary files /dev/null and b/sound/items/handling/generic_pickup2.ogg differ diff --git a/sound/items/handling/generic_pickup3.ogg b/sound/items/handling/generic_pickup3.ogg new file mode 100644 index 00000000000..be46e772422 Binary files /dev/null and b/sound/items/handling/generic_pickup3.ogg differ diff --git a/sound/items/handling/generic_small_drop.ogg b/sound/items/handling/generic_small_drop.ogg new file mode 100644 index 00000000000..b5526cd0615 Binary files /dev/null and b/sound/items/handling/generic_small_drop.ogg differ diff --git a/sound/items/handling/generic_small_pickup.ogg b/sound/items/handling/generic_small_pickup.ogg new file mode 100644 index 00000000000..2e8c337b3ab Binary files /dev/null and b/sound/items/handling/generic_small_pickup.ogg differ diff --git a/sound/items/handling/gun_drop.ogg b/sound/items/handling/gun_drop.ogg new file mode 100644 index 00000000000..c8ce3f36244 Binary files /dev/null and b/sound/items/handling/gun_drop.ogg differ diff --git a/sound/items/handling/gun_pickup.ogg b/sound/items/handling/gun_pickup.ogg new file mode 100644 index 00000000000..8d53adb6e2c Binary files /dev/null and b/sound/items/handling/gun_pickup.ogg differ diff --git a/sound/items/handling/helmet_drop.ogg b/sound/items/handling/helmet_drop.ogg new file mode 100644 index 00000000000..bbca1b381e2 Binary files /dev/null and b/sound/items/handling/helmet_drop.ogg differ diff --git a/sound/items/handling/helmet_pickup.ogg b/sound/items/handling/helmet_pickup.ogg new file mode 100644 index 00000000000..2d33f62a5dd Binary files /dev/null and b/sound/items/handling/helmet_pickup.ogg differ diff --git a/sound/items/handling/knife_drop.ogg b/sound/items/handling/knife_drop.ogg new file mode 100644 index 00000000000..954b611a97f Binary files /dev/null and b/sound/items/handling/knife_drop.ogg differ diff --git a/sound/items/handling/knife_pickup.ogg b/sound/items/handling/knife_pickup.ogg new file mode 100644 index 00000000000..579fed8cda3 Binary files /dev/null and b/sound/items/handling/knife_pickup.ogg differ diff --git a/sound/items/handling/matchbox_drop.ogg b/sound/items/handling/matchbox_drop.ogg new file mode 100644 index 00000000000..8e4e276c9e1 Binary files /dev/null and b/sound/items/handling/matchbox_drop.ogg differ diff --git a/sound/items/handling/matchbox_pickup.ogg b/sound/items/handling/matchbox_pickup.ogg new file mode 100644 index 00000000000..82c23410e11 Binary files /dev/null and b/sound/items/handling/matchbox_pickup.ogg differ diff --git a/sound/items/handling/multitool_drop.ogg b/sound/items/handling/multitool_drop.ogg new file mode 100644 index 00000000000..67e0a41042c Binary files /dev/null and b/sound/items/handling/multitool_drop.ogg differ diff --git a/sound/items/handling/multitool_pickup.ogg b/sound/items/handling/multitool_pickup.ogg new file mode 100644 index 00000000000..cbd598ce896 Binary files /dev/null and b/sound/items/handling/multitool_pickup.ogg differ diff --git a/sound/items/handling/paper_drop.ogg b/sound/items/handling/paper_drop.ogg new file mode 100644 index 00000000000..27ce2b3d1a7 Binary files /dev/null and b/sound/items/handling/paper_drop.ogg differ diff --git a/sound/items/handling/paper_pickup.ogg b/sound/items/handling/paper_pickup.ogg new file mode 100644 index 00000000000..55ae2b3d2db Binary files /dev/null and b/sound/items/handling/paper_pickup.ogg differ diff --git a/sound/items/handling/phone_drop.ogg b/sound/items/handling/phone_drop.ogg new file mode 100644 index 00000000000..a3fbd04639b Binary files /dev/null and b/sound/items/handling/phone_drop.ogg differ diff --git a/sound/items/handling/phone_pickup.ogg b/sound/items/handling/phone_pickup.ogg new file mode 100644 index 00000000000..f437151e261 Binary files /dev/null and b/sound/items/handling/phone_pickup.ogg differ diff --git a/sound/items/handling/pillbottle_drop.ogg b/sound/items/handling/pillbottle_drop.ogg new file mode 100644 index 00000000000..172d1b4c099 Binary files /dev/null and b/sound/items/handling/pillbottle_drop.ogg differ diff --git a/sound/items/handling/pillbottle_pickup.ogg b/sound/items/handling/pillbottle_pickup.ogg new file mode 100644 index 00000000000..c4b87c830cd Binary files /dev/null and b/sound/items/handling/pillbottle_pickup.ogg differ diff --git a/sound/items/handling/register_drop.ogg b/sound/items/handling/register_drop.ogg new file mode 100644 index 00000000000..9827dd52cc7 Binary files /dev/null and b/sound/items/handling/register_drop.ogg differ diff --git a/sound/items/handling/ring_drop.ogg b/sound/items/handling/ring_drop.ogg new file mode 100644 index 00000000000..93c84cf5606 Binary files /dev/null and b/sound/items/handling/ring_drop.ogg differ diff --git a/sound/items/handling/ring_pickup.ogg b/sound/items/handling/ring_pickup.ogg new file mode 100644 index 00000000000..41c57a3175a Binary files /dev/null and b/sound/items/handling/ring_pickup.ogg differ diff --git a/sound/items/handling/screwdriver_drop.ogg b/sound/items/handling/screwdriver_drop.ogg new file mode 100644 index 00000000000..d460fd0aeda Binary files /dev/null and b/sound/items/handling/screwdriver_drop.ogg differ diff --git a/sound/items/handling/screwdriver_pickup.ogg b/sound/items/handling/screwdriver_pickup.ogg new file mode 100644 index 00000000000..368f1bfd275 Binary files /dev/null and b/sound/items/handling/screwdriver_pickup.ogg differ diff --git a/sound/items/handling/shoes_drop.ogg b/sound/items/handling/shoes_drop.ogg new file mode 100644 index 00000000000..5dbf0c41447 Binary files /dev/null and b/sound/items/handling/shoes_drop.ogg differ diff --git a/sound/items/handling/shoes_pickup.ogg b/sound/items/handling/shoes_pickup.ogg new file mode 100644 index 00000000000..3bf4794a675 Binary files /dev/null and b/sound/items/handling/shoes_pickup.ogg differ diff --git a/sound/items/handling/standard_stamp.ogg b/sound/items/handling/standard_stamp.ogg new file mode 100644 index 00000000000..d31fdcbc228 Binary files /dev/null and b/sound/items/handling/standard_stamp.ogg differ diff --git a/sound/items/handling/tape_drop.ogg b/sound/items/handling/tape_drop.ogg new file mode 100644 index 00000000000..5379a114a77 Binary files /dev/null and b/sound/items/handling/tape_drop.ogg differ diff --git a/sound/items/handling/tape_pickup.ogg b/sound/items/handling/tape_pickup.ogg new file mode 100644 index 00000000000..77f74f19eea Binary files /dev/null and b/sound/items/handling/tape_pickup.ogg differ diff --git a/sound/items/handling/taperecorder_drop.ogg b/sound/items/handling/taperecorder_drop.ogg new file mode 100644 index 00000000000..6e3c151140e Binary files /dev/null and b/sound/items/handling/taperecorder_drop.ogg differ diff --git a/sound/items/handling/taperecorder_pickup.ogg b/sound/items/handling/taperecorder_pickup.ogg new file mode 100644 index 00000000000..941640aefd1 Binary files /dev/null and b/sound/items/handling/taperecorder_pickup.ogg differ diff --git a/sound/items/handling/toolbelt_drop.ogg b/sound/items/handling/toolbelt_drop.ogg new file mode 100644 index 00000000000..2a3c4655c49 Binary files /dev/null and b/sound/items/handling/toolbelt_drop.ogg differ diff --git a/sound/items/handling/toolbelt_pickup.ogg b/sound/items/handling/toolbelt_pickup.ogg new file mode 100644 index 00000000000..58e5d25979a Binary files /dev/null and b/sound/items/handling/toolbelt_pickup.ogg differ diff --git a/sound/items/handling/toolbox_drop.ogg b/sound/items/handling/toolbox_drop.ogg new file mode 100644 index 00000000000..abf56946278 Binary files /dev/null and b/sound/items/handling/toolbox_drop.ogg differ diff --git a/sound/items/handling/toolbox_pickup.ogg b/sound/items/handling/toolbox_pickup.ogg new file mode 100644 index 00000000000..01a4ab4b3fa Binary files /dev/null and b/sound/items/handling/toolbox_pickup.ogg differ diff --git a/sound/items/handling/weldingtool_drop.ogg b/sound/items/handling/weldingtool_drop.ogg new file mode 100644 index 00000000000..58b722ad7a7 Binary files /dev/null and b/sound/items/handling/weldingtool_drop.ogg differ diff --git a/sound/items/handling/weldingtool_pickup.ogg b/sound/items/handling/weldingtool_pickup.ogg new file mode 100644 index 00000000000..da78b06b848 Binary files /dev/null and b/sound/items/handling/weldingtool_pickup.ogg differ diff --git a/sound/items/handling/wirecutter_drop.ogg b/sound/items/handling/wirecutter_drop.ogg new file mode 100644 index 00000000000..e099870fc7d Binary files /dev/null and b/sound/items/handling/wirecutter_drop.ogg differ diff --git a/sound/items/handling/wirecutter_pickup.ogg b/sound/items/handling/wirecutter_pickup.ogg new file mode 100644 index 00000000000..078faaf4324 Binary files /dev/null and b/sound/items/handling/wirecutter_pickup.ogg differ diff --git a/sound/items/handling/wooden_drop.ogg b/sound/items/handling/wooden_drop.ogg new file mode 100644 index 00000000000..6520c7a9066 Binary files /dev/null and b/sound/items/handling/wooden_drop.ogg differ diff --git a/sound/items/handling/wooden_pickup.ogg b/sound/items/handling/wooden_pickup.ogg new file mode 100644 index 00000000000..cae604b1fd9 Binary files /dev/null and b/sound/items/handling/wooden_pickup.ogg differ diff --git a/sound/items/handling/wrench_drop.ogg b/sound/items/handling/wrench_drop.ogg new file mode 100644 index 00000000000..86020bf822c Binary files /dev/null and b/sound/items/handling/wrench_drop.ogg differ diff --git a/sound/items/handling/wrench_pickup.ogg b/sound/items/handling/wrench_pickup.ogg new file mode 100644 index 00000000000..860e0d70879 Binary files /dev/null and b/sound/items/handling/wrench_pickup.ogg differ diff --git a/sound/items/lighter/light.ogg b/sound/items/lighter/light.ogg new file mode 100644 index 00000000000..d4d6c671270 Binary files /dev/null and b/sound/items/lighter/light.ogg differ diff --git a/sound/items/lighter/plastic_close.ogg b/sound/items/lighter/plastic_close.ogg new file mode 100644 index 00000000000..0ae62cd2a81 Binary files /dev/null and b/sound/items/lighter/plastic_close.ogg differ diff --git a/sound/items/lighter/plastic_strike.ogg b/sound/items/lighter/plastic_strike.ogg new file mode 100644 index 00000000000..765bf86648f Binary files /dev/null and b/sound/items/lighter/plastic_strike.ogg differ diff --git a/sound/items/taperecorder/taperecorder_close.ogg b/sound/items/taperecorder/taperecorder_close.ogg new file mode 100644 index 00000000000..ab9f521c5f9 Binary files /dev/null and b/sound/items/taperecorder/taperecorder_close.ogg differ diff --git a/sound/items/taperecorder/taperecorder_hiss_mid.ogg b/sound/items/taperecorder/taperecorder_hiss_mid.ogg new file mode 100644 index 00000000000..50ef4f2171b Binary files /dev/null and b/sound/items/taperecorder/taperecorder_hiss_mid.ogg differ diff --git a/sound/items/taperecorder/taperecorder_hiss_start.ogg b/sound/items/taperecorder/taperecorder_hiss_start.ogg new file mode 100644 index 00000000000..fa57041a722 Binary files /dev/null and b/sound/items/taperecorder/taperecorder_hiss_start.ogg differ diff --git a/sound/items/taperecorder/taperecorder_open.ogg b/sound/items/taperecorder/taperecorder_open.ogg new file mode 100644 index 00000000000..7b7110fa58b Binary files /dev/null and b/sound/items/taperecorder/taperecorder_open.ogg differ diff --git a/sound/items/taperecorder/taperecorder_play.ogg b/sound/items/taperecorder/taperecorder_play.ogg new file mode 100644 index 00000000000..1bf4d7a3bd6 Binary files /dev/null and b/sound/items/taperecorder/taperecorder_play.ogg differ diff --git a/sound/items/taperecorder/taperecorder_stop.ogg b/sound/items/taperecorder/taperecorder_stop.ogg new file mode 100644 index 00000000000..a3b0f659928 Binary files /dev/null and b/sound/items/taperecorder/taperecorder_stop.ogg differ diff --git a/sound/machines/cardboard_box.ogg b/sound/machines/cardboard_box.ogg new file mode 100644 index 00000000000..c98e362890b Binary files /dev/null and b/sound/machines/cardboard_box.ogg differ diff --git a/sound/machines/closet_close.ogg b/sound/machines/closet_close.ogg new file mode 100644 index 00000000000..124f5d85f5e Binary files /dev/null and b/sound/machines/closet_close.ogg differ diff --git a/sound/machines/closet_open.ogg b/sound/machines/closet_open.ogg new file mode 100644 index 00000000000..86cbcea0d01 Binary files /dev/null and b/sound/machines/closet_open.ogg differ diff --git a/sound/machines/crate_close.ogg b/sound/machines/crate_close.ogg new file mode 100644 index 00000000000..5371e97ea66 Binary files /dev/null and b/sound/machines/crate_close.ogg differ diff --git a/sound/machines/crate_open.ogg b/sound/machines/crate_open.ogg new file mode 100644 index 00000000000..cd4c88161db Binary files /dev/null and b/sound/machines/crate_open.ogg differ diff --git a/sound/machines/lock_1.ogg b/sound/machines/lock_1.ogg new file mode 100644 index 00000000000..d85f6eb9cc7 Binary files /dev/null and b/sound/machines/lock_1.ogg differ diff --git a/sound/machines/lock_2.ogg b/sound/machines/lock_2.ogg new file mode 100644 index 00000000000..bfc6a46cab5 Binary files /dev/null and b/sound/machines/lock_2.ogg differ diff --git a/sound/machines/lock_3.ogg b/sound/machines/lock_3.ogg new file mode 100644 index 00000000000..cf059e39fc3 Binary files /dev/null and b/sound/machines/lock_3.ogg differ diff --git a/sound/machines/wooden_closet_close.ogg b/sound/machines/wooden_closet_close.ogg new file mode 100644 index 00000000000..b315c0d97c4 Binary files /dev/null and b/sound/machines/wooden_closet_close.ogg differ diff --git a/sound/machines/wooden_closet_open.ogg b/sound/machines/wooden_closet_open.ogg new file mode 100644 index 00000000000..1a7bda40bb9 Binary files /dev/null and b/sound/machines/wooden_closet_open.ogg differ diff --git a/sound/misc/moist_impact.ogg b/sound/misc/moist_impact.ogg new file mode 100644 index 00000000000..6ef27ac3dd2 Binary files /dev/null and b/sound/misc/moist_impact.ogg differ diff --git a/tgui/.eslintrc-harder.yml b/tgui/.eslintrc-harder.yml index eb06f5b33db..75399d2677f 100644 --- a/tgui/.eslintrc-harder.yml +++ b/tgui/.eslintrc-harder.yml @@ -4,11 +4,6 @@ rules: ## Enforce consistent brace style for blocks brace-style: [error, stroustrup, { allowSingleLine: false }] ## Enforce the consistent use of either backticks, double, or single quotes - quotes: [error, single, { - avoidEscape: true, - allowTemplateLiterals: true, - }] - react/jsx-closing-bracket-location: [error, { - selfClosing: after-props, - nonEmpty: after-props, - }] + quotes: [error, single, { avoidEscape: true, allowTemplateLiterals: true }] + react/jsx-closing-bracket-location: + [error, { selfClosing: after-props, nonEmpty: after-props }] diff --git a/tgui/.eslintrc.yml b/tgui/.eslintrc.yml index 595a6978f91..34a47789fba 100644 --- a/tgui/.eslintrc.yml +++ b/tgui/.eslintrc.yml @@ -1,4 +1,4 @@ -parser: babel-eslint +parser: '@babel/eslint-parser' parserOptions: ecmaVersion: 2019 sourceType: module @@ -10,11 +10,12 @@ env: node: true plugins: - react +extends: + - prettier settings: react: version: '16.10' rules: - ## Possible Errors ## ---------------------------------------- @@ -56,7 +57,7 @@ rules: ## Disallow unnecessary parentheses # no-extra-parens: warn ## Disallow unnecessary semicolons - no-extra-semi: error + # no-extra-semi: error ## Disallow reassigning function declarations no-func-assign: error ## Disallow assigning to imported bindings @@ -81,7 +82,7 @@ rules: ## Disallow template literal placeholder syntax in regular strings no-template-curly-in-string: error ## Disallow confusing multiline expressions - no-unexpected-multiline: error + # no-unexpected-multiline: error ## Disallow unreachable code after return, throw, continue, and break ## statements # no-unreachable: warn @@ -118,7 +119,7 @@ rules: ## Enforce default parameters to be last # default-param-last: error ## Enforce consistent newlines before and after dots - dot-location: [error, property] + # dot-location: [error, property] ## Enforce dot notation whenever possible # dot-notation: error ## Require the use of === and !== @@ -178,7 +179,7 @@ rules: ## Disallow magic numbers # no-magic-numbers: error ## Disallow multiple spaces - no-multi-spaces: warn + # no-multi-spaces: warn ## Disallow multiline strings # no-multi-str: error ## Disallow new operators outside of assignments or comparisons @@ -290,14 +291,14 @@ rules: ## Code style ## ---------------------------------------- ## Enforce linebreaks after opening and before closing array brackets - array-bracket-newline: [error, consistent] + # array-bracket-newline: [error, consistent] ## Enforce consistent spacing inside array brackets - array-bracket-spacing: [error, never] + # array-bracket-spacing: [error, never] ## Enforce line breaks after each array element # array-element-newline: error ## Disallow or enforce spaces inside of blocks after opening block and ## before closing block - block-spacing: [error, always] + # block-spacing: [error, always] ## Enforce consistent brace style for blocks # brace-style: [error, stroustrup, { allowSingleLine: false }] ## Enforce camelcase naming convention @@ -305,26 +306,26 @@ rules: ## Enforce or disallow capitalization of the first letter of a comment # capitalized-comments: error ## Require or disallow trailing commas - comma-dangle: [error, { - arrays: always-multiline, - objects: always-multiline, - imports: always-multiline, - exports: always-multiline, - functions: only-multiline, ## Optional on functions - }] + # comma-dangle: [error, { + # arrays: always-multiline, + # objects: always-multiline, + # imports: always-multiline, + # exports: always-multiline, + # functions: only-multiline, ## Optional on functions + # }] ## Enforce consistent spacing before and after commas - comma-spacing: [error, { before: false, after: true }] + # comma-spacing: [error, { before: false, after: true }] ## Enforce consistent comma style - comma-style: [error, last] + # comma-style: [error, last] ## Enforce consistent spacing inside computed property brackets - computed-property-spacing: [error, never] + # computed-property-spacing: [error, never] ## Enforce consistent naming when capturing the current execution context # consistent-this: error ## Require or disallow newline at the end of files # eol-last: error ## Require or disallow spacing between function identifiers and their ## invocations - func-call-spacing: [error, never] + # func-call-spacing: [error, never] ## Require function names to match the name of the variable or property ## to which they are assigned # func-name-matching: error @@ -346,15 +347,15 @@ rules: ## Enforce the location of arrow function bodies # implicit-arrow-linebreak: error ## Enforce consistent indentation - indent: [error, 2, { SwitchCase: 1 }] + # indent: [error, 2, { SwitchCase: 1 }] ## Enforce the consistent use of either double or single quotes in JSX ## attributes - jsx-quotes: [error, prefer-double] + # jsx-quotes: [error, prefer-double] ## Enforce consistent spacing between keys and values in object literal ## properties - key-spacing: [error, { beforeColon: false, afterColon: true }] + # key-spacing: [error, { beforeColon: false, afterColon: true }] ## Enforce consistent spacing before and after keywords - keyword-spacing: [error, { before: true, after: true }] + # keyword-spacing: [error, { before: true, after: true }] ## Enforce position of line comments # line-comment-position: error ## Enforce consistent linebreak style @@ -368,10 +369,10 @@ rules: ## Enforce a maximum line length #max-len: [error, { # code: 80, - ## Ignore imports - #ignorePattern: '^(import\s.+\sfrom\s|.*require\()', - #ignoreUrls: true, - #ignoreRegExpLiterals: true, + ## Ignore imports + #ignorePattern: '^(import\s.+\sfrom\s|.*require\()', + #ignoreUrls: true, + #ignoreRegExpLiterals: true, #}] ## Enforce a maximum number of lines per file # max-lines: error @@ -388,7 +389,7 @@ rules: ## Enforce a particular style for multiline comments # multiline-comment-style: error ## Enforce newlines between operands of ternary expressions - multiline-ternary: [error, always-multiline] + # multiline-ternary: [error, always-multiline] ## Require constructor names to begin with a capital letter # new-cap: error ## Enforce or disallow parentheses when invoking a constructor with no @@ -409,7 +410,7 @@ rules: ## Disallow mixed binary operators # no-mixed-operators: error ## Disallow mixed spaces and tabs for indentation - no-mixed-spaces-and-tabs: error + # no-mixed-spaces-and-tabs: error ## Disallow use of chained assignment expressions # no-multi-assign: error ## Disallow multiple empty lines @@ -435,13 +436,13 @@ rules: ## Disallow ternary operators when simpler alternatives exist # no-unneeded-ternary: error ## Disallow whitespace before properties - no-whitespace-before-property: error + # no-whitespace-before-property: error ## Enforce the location of single-line statements # nonblock-statement-body-position: error ## Enforce consistent line breaks inside braces # object-curly-newline: [error, { multiline: true }] ## Enforce consistent spacing inside braces - object-curly-spacing: [error, always] + # object-curly-spacing: [error, always] ## Enforce placing object properties on separate lines # object-property-newline: error ## Enforce variables to be declared either together or separately in @@ -452,7 +453,7 @@ rules: ## Require or disallow assignment operator shorthand where possible # operator-assignment: error ## Enforce consistent linebreak style for operators - operator-linebreak: [error, before] + # operator-linebreak: [error, before] ## Require or disallow padding within blocks # padded-blocks: error ## Require or disallow padding lines between statements @@ -465,25 +466,25 @@ rules: ## Enforce the consistent use of either backticks, double, or single quotes # quotes: [error, single] ## Require or disallow semicolons instead of ASI - semi: error + # semi: error ## Enforce consistent spacing before and after semicolons - semi-spacing: [error, { before: false, after: true }] + # semi-spacing: [error, { before: false, after: true }] ## Enforce location of semicolons - semi-style: [error, last] + # semi-style: [error, last] ## Require object keys to be sorted # sort-keys: error ## Require variables within the same declaration block to be sorted # sort-vars: error ## Enforce consistent spacing before blocks - space-before-blocks: [error, always] + # space-before-blocks: [error, always] ## Enforce consistent spacing before function definition opening parenthesis - space-before-function-paren: [error, { - anonymous: always, - named: never, - asyncArrow: always, - }] + # space-before-function-paren: [error, { + # anonymous: always, + # named: never, + # asyncArrow: always, + # }] ## Enforce consistent spacing inside parentheses - space-in-parens: [error, never] + # space-in-parens: [error, never] ## Require spacing around infix operators # space-infix-ops: error ## Enforce consistent spacing before or after unary operators @@ -491,9 +492,9 @@ rules: ## Enforce consistent spacing after the // or /* in a comment spaced-comment: [error, always] ## Enforce spacing around colons of switch statements - switch-colon-spacing: [error, { before: false, after: true }] + # switch-colon-spacing: [error, { before: false, after: true }] ## Require or disallow spacing between template tags and their literals - template-tag-spacing: [error, never] + # template-tag-spacing: [error, never] ## Require or disallow Unicode byte order mark (BOM) # unicode-bom: [error, never] ## Require parenthesis around regex literals @@ -504,13 +505,13 @@ rules: ## Require braces around arrow function bodies # arrow-body-style: error ## Require parentheses around arrow function arguments - arrow-parens: [error, as-needed] + # arrow-parens: [error, as-needed] ## Enforce consistent spacing before and after the arrow in arrow functions - arrow-spacing: [error, { before: true, after: true }] + # arrow-spacing: [error, { before: true, after: true }] ## Require super() calls in constructors # constructor-super: error ## Enforce consistent spacing around * operators in generator functions - generator-star-spacing: [error, { before: false, after: true }] + # generator-star-spacing: [error, { before: false, after: true }] ## Disallow reassigning class members no-class-assign: error ## Disallow arrow functions where they could be confused with comparisons @@ -567,7 +568,7 @@ rules: ## strings # template-curly-spacing: error ## Require or disallow spacing around the * in yield* expressions - yield-star-spacing: [error, { before: false, after: true }] + # yield-star-spacing: [error, { before: false, after: true }] ## React ## ---------------------------------------- @@ -580,7 +581,7 @@ rules: ## Rule enforces consistent usage of destructuring assignment in component # react/destructuring-assignment: [error, always, { ignoreClassFields: true }] ## Prevent missing displayName in a React component definition - react/display-name: error + # react/display-name: error ## Forbid certain props on Components # react/forbid-component-props: error ## Forbid certain props on DOM Nodes @@ -681,21 +682,21 @@ rules: ## expressions. # react/jsx-child-element-spacing: error ## Validate closing bracket location in JSX (fixable) - react/jsx-closing-bracket-location: [error, { - ## NOTE: Not really sure about enforcing this one - selfClosing: false, - nonEmpty: after-props, - }] + # react/jsx-closing-bracket-location: [error, { + # ## NOTE: Not really sure about enforcing this one + # selfClosing: false, + # nonEmpty: after-props, + # }] ## Validate closing tag location in JSX (fixable) - react/jsx-closing-tag-location: error + # react/jsx-closing-tag-location: error ## Enforce or disallow newlines inside of curly braces in JSX attributes and ## expressions (fixable) - react/jsx-curly-newline: error + # react/jsx-curly-newline: error ## Enforce or disallow spaces inside of curly braces in JSX attributes and ## expressions (fixable) - react/jsx-curly-spacing: error + # react/jsx-curly-spacing: error ## Enforce or disallow spaces around equal signs in JSX attributes (fixable) - react/jsx-equals-spacing: error + # react/jsx-equals-spacing: error ## Restrict file extensions that may contain JSX # react/jsx-filename-extension: error ## Enforce position of the first prop in JSX (fixable) @@ -703,11 +704,11 @@ rules: ## Enforce event handler naming conventions in JSX react/jsx-handler-names: error ## Validate JSX indentation (fixable) - react/jsx-indent: [error, 2, { - checkAttributes: true, - }] + # react/jsx-indent: [error, 2, { + # checkAttributes: true, + # }] ## Validate props indentation in JSX (fixable) - react/jsx-indent-props: [error, 2] + # react/jsx-indent-props: [error, 2] ## Validate JSX has key prop when in array or iterator react/jsx-key: error ## Validate JSX maximum depth @@ -737,7 +738,7 @@ rules: ## Enforce PascalCase for user-defined JSX components react/jsx-pascal-case: error ## Disallow multiple spaces between inline JSX props (fixable) - react/jsx-props-no-multi-spaces: error + # react/jsx-props-no-multi-spaces: error ## Disallow JSX props spreading # react/jsx-props-no-spreading: error ## Enforce default props alphabetical sorting @@ -746,10 +747,10 @@ rules: # react/jsx-sort-props: error ## Validate whitespace in and around the JSX opening and closing brackets ## (fixable) - react/jsx-tag-spacing: error + # react/jsx-tag-spacing: error ## Prevent React to be incorrectly marked as unused react/jsx-uses-react: error ## Prevent variables used in JSX to be incorrectly marked as unused react/jsx-uses-vars: error ## Prevent missing parentheses around multilines JSX (fixable) - react/jsx-wrap-multilines: error + # react/jsx-wrap-multilines: error diff --git a/tgui/babel.config.js b/tgui/babel.config.js new file mode 100644 index 00000000000..8b32d3ce491 --- /dev/null +++ b/tgui/babel.config.js @@ -0,0 +1,46 @@ +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ + +const createBabelConfig = (options) => { + const { presets = [], plugins = [], removeConsole } = options; + return { + presets: [ + [ + require.resolve('@babel/preset-env'), + { + modules: 'commonjs', + useBuiltIns: 'entry', + corejs: '3', + spec: false, + loose: true, + targets: [], + }, + ], + require.resolve('@babel/preset-react'), + ...presets, + ].filter(Boolean), + plugins: [ + [ + require.resolve('@babel/plugin-proposal-class-properties'), + { + loose: true, + }, + ], + require.resolve('@babel/plugin-transform-jscript'), + require.resolve('babel-plugin-inferno'), + removeConsole && require.resolve('babel-plugin-transform-remove-console'), + ...plugins, + ].filter(Boolean), + }; +}; + +module.exports = (api) => { + api.cache(true); + const mode = process.env.NODE_ENV; + return createBabelConfig({ mode }); +}; + +module.exports.createBabelConfig = createBabelConfig; diff --git a/tgui/package.json b/tgui/package.json index bfceeec49ec..70f17d09475 100644 --- a/tgui/package.json +++ b/tgui/package.json @@ -7,13 +7,25 @@ ], "scripts": { "build": "eslint packages && cd packages/tgui && npx webpack --mode=production", - "watch": "cd packages/tgui-dev-server && node --experimental-modules index.js", + "watch": "cd packages/tgui-dev-server && set NODE_OPTIONS=--openssl-legacy-provider --no-experimental-fetch && node --experimental-modules index.js", "analyze": "cd packages/tgui && npx webpack --mode=production --env.analyze=1", - "lint": "eslint packages" + "lint": "eslint packages", + "prettier": "prettier --check packages", + "prettier-write": "prettier --check packages --write" }, "dependencies": { - "babel-eslint": "^10.0.3", - "eslint": "^6.7.2", - "eslint-plugin-react": "^7.17.0" + "@babel/eslint-parser": "^7.22.15", + "@babel/core": "^7.23.2", + "@babel/preset-env": "^7.23.2", + "@babel/preset-react": "^7.22.15", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-transform-jscript": "^7.22.5", + "babel-plugin-inferno": "^6.7.0", + "babel-plugin-transform-remove-console": "^6.9.4", + "eslint": "^8.49.0", + "eslint-config-prettier": "^9.0.0", + "eslint-plugin-prettier": "^5.0.0", + "eslint-plugin-react": "^7.33.2", + "prettier": "^3.0.3" } } diff --git a/tgui/packages/tgui-dev-server/package.json b/tgui/packages/tgui-dev-server/package.json index e397fe3e0bb..18fcd54a417 100644 --- a/tgui/packages/tgui-dev-server/package.json +++ b/tgui/packages/tgui-dev-server/package.json @@ -7,6 +7,6 @@ "glob": "^7.1.4", "source-map": "^0.7.3", "stacktrace-parser": "^0.1.7", - "ws": "^7.1.2" + "ws": "^7.4.6" } } diff --git a/tgui/packages/tgui/interfaces/AppearanceChanger.js b/tgui/packages/tgui/interfaces/AppearanceChanger.js index 3146a47f4a8..3ca7212f0f6 100644 --- a/tgui/packages/tgui/interfaces/AppearanceChanger.js +++ b/tgui/packages/tgui/interfaces/AppearanceChanger.js @@ -251,6 +251,7 @@ const ColorContent = (props, context) => { {colorOptions.map(c => ( !!data[c.key] && ( -  K + K diff --git a/tgui/packages/tgui/interfaces/OreRedemption.js b/tgui/packages/tgui/interfaces/OreRedemption.js index 728e647a5f8..87bb0cd3762 100644 --- a/tgui/packages/tgui/interfaces/OreRedemption.js +++ b/tgui/packages/tgui/interfaces/OreRedemption.js @@ -189,6 +189,7 @@ const OreHeader = (properties, context) => { {properties.columns?.map(col => ( 1?n-1:0),r=1;r0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(6),r=n(108),i=n(19),a=n(69),c=n(112),l=n(152),s=r("wks"),d=o.Symbol,u=l?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(c&&i(d,e)?s[e]=d[e]:s[e]=u("Symbol."+e)),s[e]}},function(e,t,n){"use strict";var o=n(9),r=n(146),i=n(10),a=n(36),c=Object.defineProperty;t.f=o?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return c(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";t.__esModule=!0,t.rad2deg=t.keyOfMatchingRange=t.inRange=t.toFixed=t.round=t.scale=t.clamp01=t.clamp=void 0;t.clamp=function(e,t,n){return en?n:e};t.clamp01=function(e){return e<0?0:e>1?1:e};t.scale=function(e,t,n){return(e-t)/(n-t)};t.round=function(e,t){return!e||isNaN(e)?e:(t|=0,i=(e*=n=Math.pow(10,t))>0|-(e<0),r=Math.abs(e%1)>=.4999999999854481,o=Math.floor(e),r&&(e=o+(i>0)),(r?e:Math.round(e))/n);var n,o,r,i};t.toFixed=function(e,t){return void 0===t&&(t=0),Number(e).toFixed(Math.max(t,0))};var o=function(e,t){return t&&e>=t[0]&&e<=t[1]};t.inRange=o;t.keyOfMatchingRange=function(e,t){for(var n=0,r=Object.keys(t);n0&&(t.style=l),t};t.computeBoxProps=C;var g=function(e){var t=e.textColor||e.color,n=e.backgroundColor;return(0,o.classes)([s(t)&&"color-"+t,s(n)&&"color-bg-"+n])};t.computeBoxClassName=g;var N=function(e){var t=e.as,n=void 0===t?"div":t,o=e.className,a=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["as","className","children"]);if("function"==typeof a)return a(C(e));var l="string"==typeof o?o+" "+g(c):g(c),s=C(c);return(0,r.createVNode)(i.VNodeFlags.HtmlElement,n,l,a,i.ChildFlags.UnknownChildren,s)};t.Box=N,N.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";function o(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n",apos:"'"};return e.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},function(e,t,n){"use strict";var o=n(81),r=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===i.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";var o=n(55),r=n(68),i=n(16),a=n(12),c=n(74),l=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,d=4==e,u=6==e,p=5==e||u;return function(m,h,f,C){for(var g,N,b=i(m),V=r(b),v=o(h,f,3),x=a(V.length),y=0,k=C||c,w=t?k(m,x):n?k(m,0):undefined;x>y;y++)if((p||y in V)&&(N=v(g=V[y],y,b),e))if(t)w[y]=N;else if(N)switch(e){case 3:return!0;case 5:return g;case 6:return y;case 2:l.call(w,g)}else if(d)return!1;return u?-1:s||d?d:w}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){"use strict";var o=n(9),r=n(83),i=n(53),a=n(28),c=n(36),l=n(19),s=n(146),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(n){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function o(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}t.__esModule=!0,t.winset=t.winget=t.runCommand=t.callByondAsync=t.callByond=t.IS_IE8=void 0;var r=window.Byond,i=function(){var e=navigator.userAgent.match(/Trident\/(\d+).+?;/i);if(!e)return null;var t=e[1];return t?parseInt(t,10):null}(),a=null!==i&&i<=6;t.IS_IE8=a;var c=function(e,t){void 0===t&&(t={}),r.call(e,t)};t.callByond=c;var l=function(e,t){void 0===t&&(t={}),window.__callbacks__=window.__callbacks__||[];var n=window.__callbacks__.length,o=new Promise((function(e){window.__callbacks__.push(e)}));return r.call(e,Object.assign({},t,{callback:"__callbacks__["+n+"]"})),o};t.callByondAsync=l;t.runCommand=function(e){return c("winset",{command:e})};var s=function(){var e,t=(e=regeneratorRuntime.mark((function n(e,t){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l("winget",{id:e,property:t});case 2:return o=n.sent,n.abrupt("return",o[t]);case 4:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,l,"next",e)}function l(e){o(a,r,i,c,l,"throw",e)}c(undefined)}))});return function(e,n){return t.apply(this,arguments)}}();t.winget=s;t.winset=function(e,t,n){var o;return c("winset",((o={})[e+"."+t]=n,o))}},function(e,t,n){"use strict";t.__esModule=!0,t.zipWith=t.zip=t.uniqBy=t.reduce=t.sortBy=t.map=t.filter=t.toKeyedArray=t.toArray=void 0;t.toArray=function(e){if(Array.isArray(e))return e;if("object"==typeof e){var t=Object.prototype.hasOwnProperty,n=[];for(var o in e)t.call(e,o)&&n.push(e[o]);return n}return[]};t.toKeyedArray=function(e,t){return void 0===t&&(t="key"),o((function(e,n){var o;return Object.assign(((o={})[t]=n,o),e)}))(e)};t.filter=function(e){return function(t){if(null===t&&t===undefined)return t;if(Array.isArray(t)){for(var n=[],o=0;oc)return 1}return 0};t.sortBy=function(){for(var e=arguments.length,t=new Array(e),n=0;n"+a+""}},function(e,t,n){"use strict";var o=n(5);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(53);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:o)(e)}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var o,r,i,a=n(148),c=n(6),l=n(8),s=n(32),d=n(19),u=n(84),p=n(70),m=c.WeakMap;if(a){var h=new m,f=h.get,C=h.has,g=h.set;o=function(e,t){return g.call(h,e,t),t},r=function(e){return f.call(h,e)||{}},i=function(e){return C.call(h,e)}}else{var N=u("state");p[N]=!0,o=function(e,t){return s(e,N,t),t},r=function(e){return d(e,N)?e[N]:{}},i=function(e){return d(e,N)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var o=n(19),r=n(16),i=n(84),a=n(119),c=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),o(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){"use strict";var o=n(150),r=n(6),i=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var o=n(5);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(9),a=n(132),c=n(11),l=n(89),s=n(61),d=n(53),u=n(32),p=n(12),m=n(164),h=n(179),f=n(36),C=n(19),g=n(86),N=n(8),b=n(45),V=n(57),v=n(54).f,x=n(180),y=n(21).forEach,k=n(60),w=n(14),_=n(22),B=n(37),S=n(91),L=B.get,A=B.set,E=w.f,I=_.f,D=Math.round,T=r.RangeError,F=l.ArrayBuffer,M=l.DataView,P=c.NATIVE_ARRAY_BUFFER_VIEWS,O=c.TYPED_ARRAY_TAG,R=c.TypedArray,j=c.TypedArrayPrototype,U=c.aTypedArrayConstructor,z=c.isTypedArray,W=function(e,t){for(var n=0,o=t.length,r=new(U(e))(o);o>n;)r[n]=t[n++];return r},H=function(e,t){E(e,t,{get:function(){return L(this)[t]}})},K=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},G=function(e,t){return Y(e,t=f(t,!0))?d(2,e[t]):I(e,t)},q=function(e,t,n){return!(Y(e,t=f(t,!0))&&N(n)&&C(n,"value"))||C(n,"get")||C(n,"set")||n.configurable||C(n,"writable")&&!n.writable||C(n,"enumerable")&&!n.enumerable?E(e,t,n):(e[t]=n.value,e)};i?(P||(_.f=G,w.f=q,H(j,"buffer"),H(j,"byteOffset"),H(j,"byteLength"),H(j,"length")),o({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:G,defineProperty:q}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",l="get"+e,d="set"+e,f=r[c],C=f,g=C&&C.prototype,w={},_=function(e,t){E(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[l](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var r=L(e);n&&(o=(o=D(o))<0?0:o>255?255:255&o),r.view[d](t*i+r.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};P?a&&(C=t((function(e,t,n,o){return s(e,C,c),S(N(t)?K(t)?o!==undefined?new f(t,h(n,i),o):n!==undefined?new f(t,h(n,i)):new f(t):z(t)?W(C,t):x.call(C,t):new f(m(t)),e,C)})),V&&V(C,R),y(v(f),(function(e){e in C||u(C,e,f[e])})),C.prototype=g):(C=t((function(e,t,n,o){s(e,C,c);var r,a,l,d=0,u=0;if(N(t)){if(!K(t))return z(t)?W(C,t):x.call(C,t);r=t,u=h(n,i);var f=t.byteLength;if(o===undefined){if(f%i)throw T("Wrong length");if((a=f-u)<0)throw T("Wrong length")}else if((a=p(o)*i)+u>f)throw T("Wrong length");l=a/i}else l=m(t),r=new F(a=l*i);for(A(e,{buffer:r,byteOffset:u,byteLength:a,length:l,view:new M(r)});d=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?r-1:0),c=1;c1?o-1:0),i=1;i"+e+"<\/script>"},h=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;h=o?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):((t=s("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=r(e),n=new p,p.prototype=null,n[u]=e):n=h(),t===undefined?n:i(n,t)}},function(e,t,n){"use strict";var o=n(14).f,r=n(19),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var o=n(13),r=n(45),i=n(14),a=o("unscopables"),c=Array.prototype;c[a]==undefined&&i.f(c,a,{configurable:!0,value:r(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var o=n(10),r=n(34),i=n(13)("species");e.exports=function(e,t){var n,a=o(e).constructor;return a===undefined||(n=o(a)[i])==undefined?t:r(n)}},function(e,t,n){"use strict";t.__esModule=!0,t.timeAgo=t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.COLORS={department:{command:"#526aff",procedure:"#e3027a",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Soviet",freq:1217,color:"#f7941d"},{name:"SyndTaipan",freq:1227,color:"#ffec8b"},{name:"Spider Clan",freq:1265,color:"#3cfd1e"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"Alpha wave",freq:1522,color:"#88910f"},{name:"Beta wave",freq:1532,color:"#1d83f7"},{name:"Gamma wave",freq:1542,color:"#d46549"}];var o=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"}];t.getGasLabel=function(e,t){var n=String(e).toLowerCase(),r=o.find((function(e){return e.id===n||e.name.toLowerCase()===n}));return r&&r.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),n=o.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return n&&n.color};t.timeAgo=function(e,t){if(e>t)return"in the future";var n=(t/=10)-(e/=10);if(n>3600){var o=Math.round(n/3600);return o+" hour"+(1===o?"":"s")+" ago"}if(n>60){var r=Math.round(n/60);return r+" minute"+(1===r?"":"s")+" ago"}var i=Math.round(n);return i+" second"+(1===i?"":"s")+" ago"}},function(e,t,n){"use strict";t.__esModule=!0,t.FlexItem=t.computeFlexItemProps=t.Flex=t.computeFlexProps=void 0;var o=n(0),r=n(7),i=n(23),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.direction,o=e.wrap,a=e.align,l=e.alignContent,s=e.justify,d=e.inline,u=e.spacing,p=void 0===u?0:u,m=e.spacingPrecise,h=void 0===m?0:m,f=c(e,["className","direction","wrap","align","alignContent","justify","inline","spacing","spacingPrecise"]);return Object.assign({className:(0,r.classes)(["Flex",i.IS_IE8&&("column"===n?"Flex--ie8--column":"Flex--ie8"),d&&"Flex--inline",p>0&&"Flex--spacing--"+p,h>0&&"Flex--spacingPrecise--"+h,t]),style:Object.assign({},f.style,{"flex-direction":n,"flex-wrap":o,"align-items":a,"align-content":l,"justify-content":s})},f)};t.computeFlexProps=l;var s=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},l(e))))};t.Flex=s,s.defaultHooks=r.pureComponentHooks;var d=function(e){var t=e.className,n=e.grow,o=e.order,l=e.shrink,s=e.basis,d=void 0===s?e.width:s,u=e.align,p=c(e,["className","grow","order","shrink","basis","align"]);return Object.assign({className:(0,r.classes)(["Flex__item",i.IS_IE8&&"Flex__item--ie8",t]),style:Object.assign({},p.style,{"flex-grow":n,"flex-shrink":l,"flex-basis":(0,a.unit)(d),order:o,"align-self":u})},p)};t.computeFlexItemProps=d;var u=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},d(e))))};t.FlexItem=u,u.defaultHooks=r.pureComponentHooks,s.Item=u},function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalClose=t.modalAnswer=t.modalRegisterBodyOverride=t.modalOpen=void 0;var o=n(0),r=n(1),i=n(2),a={};t.modalOpen=function(e,t,n){var o=(0,r.useBackend)(e),i=o.act,a=o.data,c=Object.assign(a.modal?a.modal.args:{},n||{});i("modal_open",{id:t,arguments:JSON.stringify(c)})};t.modalRegisterBodyOverride=function(e,t){a[e]=t};var c=function(e,t,n,o){var i=(0,r.useBackend)(e),a=i.act,c=i.data;if(c.modal){var l=Object.assign(c.modal.args||{},o||{});a("modal_answer",{id:t,answer:n,arguments:JSON.stringify(l)})}};t.modalAnswer=c;var l=function(e,t){(0,(0,r.useBackend)(e).act)("modal_close",{id:t})};t.modalClose=l;t.ComplexModal=function(e,t){var n=(0,r.useBackend)(t).data;if(n.modal){var s,d,u=n.modal,p=u.id,m=u.text,h=u.type,f=(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),C="auto";if(a[p])d=a[p](n.modal,t);else if("input"===h){var g=n.modal.value;s=function(e){return c(t,p,g)},d=(0,o.createComponentVNode)(2,i.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e,t){g=t}}),f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return c(t,p,g)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}else if("choice"===h){var N="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;d=(0,o.createComponentVNode)(2,i.Dropdown,{options:N,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return c(t,p,e)}}),C="initial"}else"bento"===h?d=(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:r+1===parseInt(n.modal.value,10),onClick:function(){return c(t,p,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===h&&(f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return c(t,p,0)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return c(t,p,1)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,i.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:s,mx:"auto",overflowY:C,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline",children:m}),d,f]})}}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=t.RndRoute=t.RndNavButton=t.RndNavbar=t.MainMenu=t.LatheSearch=t.LatheMenu=t.LatheMaterialStorage=t.LatheMaterials=t.LatheMainMenu=t.LatheChemicalStorage=t.LatheCategory=t.DeconstructionMenu=t.DataDiskMenu=t.CurrentLevels=void 0;var o=n(618);t.CurrentLevels=o.CurrentLevels;var r=n(619);t.DataDiskMenu=r.DataDiskMenu;var i=n(620);t.DeconstructionMenu=i.DeconstructionMenu;var a=n(621);t.LatheCategory=a.LatheCategory;var c=n(622);t.LatheChemicalStorage=c.LatheChemicalStorage;var l=n(623);t.LatheMainMenu=l.LatheMainMenu;var s=n(624);t.LatheMaterials=s.LatheMaterials;var d=n(625);t.LatheMaterialStorage=d.LatheMaterialStorage;var u=n(626);t.LatheMenu=u.LatheMenu;var p=n(627);t.LatheSearch=p.LatheSearch;var m=n(628);t.MainMenu=m.MainMenu;var h=n(629);t.RndNavbar=h.RndNavbar;var f=n(630);t.RndNavButton=f.RndNavButton;var C=n(199);t.RndRoute=C.RndRoute;var g=n(631);t.SettingsMenu=g.SettingsMenu},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(151),r=n(110).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(34);e.exports=function(e,t,n){if(o(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var o=n(36),r=n(14),i=n(53);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var o=n(10),r=n(162);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():undefined)},function(e,t,n){"use strict";var o=n(70),r=n(8),i=n(19),a=n(14).f,c=n(69),l=n(78),s=c("meta"),d=0,u=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++d,weakData:{}}})},m=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!u(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!u(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return l&&m.REQUIRED&&u(e)&&!i(e,s)&&p(e),e}};o[s]=!0},function(e,t,n){"use strict";var o=n(35);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(39),r=n(14),i=n(13),a=n(9),c=i("species");e.exports=function(e){var t=o(e),n=r.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var o=n(25),r="["+n(93)+"]",i=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),c=function(e){return function(t){var n=String(o(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";t.__esModule=!0,t.logger=t.createLogger=void 0;n(182);var o=n(23),r=0,i=1,a=2,c=3,l=4,s=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i=a){var c=[t].concat(r).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;(0,o.callByond)("",{src:window.__ref__,action:"tgui:log",log:c})}},d=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),o=0;o=0||(r[n]=e[n]);return r}(e,["className","label","labelColor","color","textAlign","verticalAlign","buttons","content","children","noColon"]),g=f?"":":";return(0,o.createVNode)(1,"tr",(0,r.classes)(["LabeledList__row",t]),[(0,o.createComponentVNode)(2,i.Box,{as:"td",color:c,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__label"]),children:n?n+g:null}),(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"td",color:l,textAlign:s,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?undefined:2},C,{children:[p,m]}))),u&&(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};t.LabeledListItem=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.size?(0,i.unit)(Math.max(0,e.size-1)):0;return(0,o.createVNode)(1,"tr","LabeledList__row",(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};t.LabeledListDivider=s,s.defaultHooks=r.pureComponentHooks,c.Item=l,c.Divider=s},function(e,t,n){"use strict";function o(e){return null==e}e.exports.isNothing=o,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:o(e)?[]:[e]},e.exports.repeat=function(e,t){var n,o="";for(n=0;nd;)if((c=l[d++])!=c)return!0}else for(;s>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var o=n(5),r=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=l&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var o=n(151),r=n(110);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(8),r=n(59),i=n(13)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var o=n(5),r=n(13),i=n(113),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var o=n(26);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var o=n(10),r=n(115),i=n(12),a=n(55),c=n(116),l=n(159),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,d,u){var p,m,h,f,C,g,N,b=a(t,n,d?2:1);if(u)p=e;else{if("function"!=typeof(m=c(e)))throw TypeError("Target is not iterable");if(r(m)){for(h=0,f=i(e.length);f>h;h++)if((C=d?b(o(N=e[h])[0],N[1]):b(e[h]))&&C instanceof s)return C;return new s(!1)}p=m.call(e)}for(g=p.next;!(N=g.call(p)).done;)if("object"==typeof(C=l(p,b,N.value,d))&&C&&C instanceof s)return C;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.className,n=e.collapsing,c=e.children,l=a(e,["className","collapsing","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"table",(0,r.classes)(["Table",n&&"Table--collapsing",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Table=c,c.defaultHooks=r.pureComponentHooks;var l=function(e){var t=e.className,n=e.header,c=a(e,["className","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"tr",(0,r.classes)(["Table__row",n&&"Table__row--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(c))))};t.TableRow=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.className,n=e.collapsing,c=e.header,l=a(e,["className","collapsing","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"td",(0,r.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(l))))};t.TableCell=s,s.defaultHooks=r.pureComponentHooks,c.Row=l,c.Cell=s},function(e,t,n){"use strict";function o(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=o},function(e,t,n){"use strict";var o=n(66);e.exports=new o({include:[n(193)],implicit:[n(505),n(506)],explicit:[n(507),n(512),n(513),n(514)]})},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){"use strict";var o=n(108),r=n(69),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){"use strict";var o=n(39);e.exports=o("navigator","userAgent")||""},function(e,t,n){"use strict";var o=n(117),r=n(35),i=n(13)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var o=n(13)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},"return":function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},function(e,t,n){"use strict";var o=n(34),r=n(16),i=n(68),a=n(12),c=function(e){return function(t,n,c,l){o(n);var s=r(t),d=i(s),u=a(s.length),p=e?u-1:0,m=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=m;break}if(p+=m,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=m)p in d&&(l=n(l,d[p],p,s));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var o=n(6),r=n(9),i=n(120),a=n(32),c=n(77),l=n(5),s=n(61),d=n(33),u=n(12),p=n(164),m=n(247),h=n(38),f=n(57),C=n(54).f,g=n(14).f,N=n(114),b=n(46),V=n(37),v=V.get,x=V.set,y=o.ArrayBuffer,k=y,w=o.DataView,_=w&&w.prototype,B=Object.prototype,S=o.RangeError,L=m.pack,A=m.unpack,E=function(e){return[255&e]},I=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},T=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return L(e,23,4)},M=function(e){return L(e,52,8)},P=function(e,t){g(e.prototype,t,{get:function(){return v(this)[t]}})},O=function(e,t,n,o){var r=p(n),i=v(e);if(r+t>i.byteLength)throw S("Wrong index");var a=v(i.buffer).bytes,c=r+i.byteOffset,l=a.slice(c,c+t);return o?l:l.reverse()},R=function(e,t,n,o,r,i){var a=p(n),c=v(e);if(a+t>c.byteLength)throw S("Wrong index");for(var l=v(c.buffer).bytes,s=a+c.byteOffset,d=o(+r),u=0;uW;)(j=z[W++])in k||a(k,j,y[j]);U.constructor=k}f&&h(_)!==B&&f(_,B);var H=new w(new k(2)),K=_.setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||c(_,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){s(this,k,"ArrayBuffer");var t=p(e);x(this,{bytes:N.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},w=function(e,t,n){s(this,w,"DataView"),s(e,k,"DataView");var o=v(e).byteLength,i=d(t);if(i<0||i>o)throw S("Wrong offset");if(i+(n=n===undefined?o-i:u(n))>o)throw S("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:i}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},r&&(P(k,"byteLength"),P(w,"buffer"),P(w,"byteLength"),P(w,"byteOffset")),c(w.prototype,{getInt8:function(e){return O(this,1,e)[0]<<24>>24},getUint8:function(e){return O(this,1,e)[0]},getInt16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return A(O(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return A(O(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){R(this,1,e,E,t)},setUint8:function(e,t){R(this,1,e,E,t)},setInt16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){R(this,4,e,F,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){R(this,8,e,M,t,arguments.length>2?arguments[2]:undefined)}});b(k,"ArrayBuffer"),b(w,"DataView"),e.exports={ArrayBuffer:k,DataView:w}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(72),a=n(26),c=n(58),l=n(79),s=n(61),d=n(8),u=n(5),p=n(87),m=n(46),h=n(91);e.exports=function(e,t,n){var f=-1!==e.indexOf("Map"),C=-1!==e.indexOf("Weak"),g=f?"set":"add",N=r[e],b=N&&N.prototype,V=N,v={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return C&&!d(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof N||!(C||b.forEach&&!u((function(){(new N).entries().next()})))))V=n.getConstructor(t,e,f,g),c.REQUIRED=!0;else if(i(e,!0)){var y=new V,k=y[g](C?{}:-0,1)!=y,w=u((function(){y.has(1)})),_=p((function(e){new N(e)})),B=!C&&u((function(){for(var e=new N,t=5;t--;)e[g](t,t);return!e.has(-0)}));_||((V=t((function(t,n){s(t,V,e);var o=h(new N,t,V);return n!=undefined&&l(n,o[g],o,f),o}))).prototype=b,b.constructor=V),(w||B)&&(x("delete"),x("has"),f&&x("get")),(B||k)&&x(g),C&&b.clear&&delete b.clear}return v[e]=V,o({global:!0,forced:V!=N},v),m(V,e),C||n.setStrong(V,e,f),V}},function(e,t,n){"use strict";var o=n(8),r=n(57);e.exports=function(e,t,n){var i,a;return r&&"function"==typeof(i=t.constructor)&&i!==n&&o(a=i.prototype)&&a!==n.prototype&&r(e,a),e}},function(e,t,n){"use strict";var o=Math.expm1,r=Math.exp;e.exports=!o||o(10)>22025.465794806718||o(10)<22025.465794806718||-2e-17!=o(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:o},function(e,t,n){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var o=n(40),r=n(6),i=n(5);e.exports=o||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}))},function(e,t,n){"use strict";var o=n(10);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o,r,i=n(95),a=n(126),c=RegExp.prototype.exec,l=String.prototype.replace,s=c,d=(o=/a/,r=/b*/g,c.call(o,"a"),c.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=/()??/.exec("")[1]!==undefined;(d||p||u)&&(s=function(e){var t,n,o,r,a=this,s=u&&a.sticky,m=i.call(a),h=a.source,f=0,C=e;return s&&(-1===(m=m.replace("y","")).indexOf("g")&&(m+="g"),C=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",C=" "+C,f++),n=new RegExp("^(?:"+h+")",m)),p&&(n=new RegExp("^"+h+"$(?!\\s)",m)),d&&(t=a.lastIndex),o=c.call(s?n:a,C),s?o?(o.input=o.input.slice(f),o[0]=o[0].slice(f),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:d&&o&&(a.lastIndex=a.global?o.index+o[0].length:t),p&&o&&o.length>1&&l.call(o[0],n,(function(){for(r=1;r")})),d="$0"==="a".replace(/./,"$0"),u=i("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),m=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,u){var h=i(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),C=f&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!C||"replace"===e&&(!s||!d||p)||"split"===e&&!m){var g=/./[h],N=n(h,""[e],(function(e,t,n,o,r){return t.exec===a?f&&!r?{done:!0,value:g.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=N[0],V=N[1];o(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return V.call(e,this,t)}:function(e){return V.call(e,this)})}u&&c(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var o=n(35),r=n(96);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.AccessList=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);function c(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt?2+3*s-c:0;return((0,o.toFixed)(p,m)+" "+u+n).trim()};t.formatSiUnit=a;t.formatPower=function(e,t){return void 0===t&&(t=0),a(e,t,"W")};t.formatMoney=function(e,t){if(void 0===t&&(t=0),!Number.isFinite(e))return e;var n=(0,o.round)(e,t);t>0&&(n=(0,o.toFixed)(e,t));var r=(n=String(n)).length,i=n.indexOf(".");-1===i&&(i=r);for(var a="",c=0;c0&&c=0||(r[n]=e[n]);return r}(e,["format"]),i=new Date(this.state.value).toISOString().slice(11,19);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({as:"span"},n,{children:t?t(this.state.value,i):i})))},i}(o.Component);t.Countdown=i,i.defaultProps={rate:1e3}},function(e,t,n){"use strict";t.__esModule=!0,t.SimpleRecords=void 0;var o=n(0),r=n(1),i=n(18),a=n(43),c=n(24),l=n(2);t.SimpleRecords=function(e,t){var n=e.data.records;return(0,o.createComponentVNode)(2,l.Box,{children:n?(0,o.createComponentVNode)(2,d,{data:e.data,recordType:e.recordType}):(0,o.createComponentVNode)(2,s,{data:e.data})})};var s=function(e,t){var n=(0,r.useBackend)(t).act,s=e.data.recordsList,d=(0,r.useLocalState)(t,"searchText",""),u=d[0],p=d[1],m=function(e,t){void 0===t&&(t="");var n=(0,i.createSearch)(t,(function(e){return e.Name}));return(0,a.flow)([(0,c.filter)((function(e){return null==e?void 0:e.Name})),t&&(0,c.filter)(n),(0,c.sortBy)((function(e){return e.Name}))])(s)}(0,u);return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(e,t){return p(t)}}),m.map((function(e){return(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{content:e.Name,icon:"user",onClick:function(){return n("Records",{target:e.uid})}})},e)}))]})},d=function(e,t){var n,i=(0,r.useBackend)(t).act,a=e.data.records,c=a.general,s=a.medical,d=a.security;switch(e.recordType){case"MED":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Medical Data",children:s?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Security Data",children:d?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Criminal Status",children:d.criminal}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Crimes",children:d.mi_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.mi_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Crimes",children:d.ma_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.ma_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:d.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Security record lost!"})})}return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Button,{content:"Back",icon:"arrow-left",onClick:function(){return i("Back")}}),(0,o.createComponentVNode)(2,l.Section,{level:2,title:"General Data",children:c?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Name",children:c.name}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Sex",children:c.sex}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Species",children:c.species}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Age",children:c.age}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Rank",children:c.rank}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Fingerprint",children:c.fingerprint}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Physical Status",children:c.p_stat}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Mental Status",children:c.m_stat})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"General record lost!"})}),n]})}},function(e,t,n){"use strict";var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(r){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,n){"use strict";var o=n(6),r=n(8),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){"use strict";var o=n(6),r=n(32);e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},function(e,t,n){"use strict";var o=n(147),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var o=n(40),r=n(147);(e.exports=function(e,t){return r[e]||(r[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var o=n(39),r=n(54),i=n(111),a=n(10);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(5);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var o,r,i=n(6),a=n(85),c=i.process,l=c&&c.versions,s=l&&l.v8;s?r=(o=s.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,c=r(a>1?arguments[1]:undefined,n),l=a>2?arguments[2]:undefined,s=l===undefined?n:r(l,n);s>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var o=n(13),r=n(76),i=o("iterator"),a=Array.prototype;e.exports=function(e){return e!==undefined&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var o=n(86),r=n(76),i=n(13)("iterator");e.exports=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){"use strict";var o={};o[n(13)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t,n){"use strict";var o=n(4),r=n(232),i=n(38),a=n(57),c=n(46),l=n(32),s=n(26),d=n(13),u=n(40),p=n(76),m=n(161),h=m.IteratorPrototype,f=m.BUGGY_SAFARI_ITERATORS,C=d("iterator"),g=function(){return this};e.exports=function(e,t,n,d,m,N,b){r(n,t,d);var V,v,x,y=function(e){if(e===m&&S)return S;if(!f&&e in _)return _[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",w=!1,_=e.prototype,B=_[C]||_["@@iterator"]||m&&_[m],S=!f&&B||y(m),L="Array"==t&&_.entries||B;if(L&&(V=i(L.call(new e)),h!==Object.prototype&&V.next&&(u||i(V)===h||(a?a(V,h):"function"!=typeof V[C]&&l(V,C,g)),c(V,k,!0,!0),u&&(p[k]=g))),"values"==m&&B&&"values"!==B.name&&(w=!0,S=function(){return B.call(this)}),u&&!b||_[C]===S||l(_,C,S),p[t]=S,m)if(v={values:y("values"),keys:N?S:y("keys"),entries:y("entries")},b)for(x in v)(f||w||!(x in _))&&s(_,x,v[x]);else o({target:t,proto:!0,forced:f||w},v);return v}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var o=n(12),r=n(122),i=n(25),a=Math.ceil,c=function(e){return function(t,n,c){var l,s,d=String(i(t)),u=d.length,p=c===undefined?" ":String(c),m=o(n);return m<=u||""==p?d:(l=m-u,(s=r.call(p,a(l/p.length))).length>l&&(s=s.slice(0,l)),e?d+s:s+d)}};e.exports={start:c(!1),end:c(!0)}},function(e,t,n){"use strict";var o=n(33),r=n(25);e.exports="".repeat||function(e){var t=String(r(this)),n="",i=o(e);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var o,r,i,a=n(6),c=n(5),l=n(35),s=n(55),d=n(154),u=n(105),p=n(173),m=a.location,h=a.setImmediate,f=a.clearImmediate,C=a.process,g=a.MessageChannel,N=a.Dispatch,b=0,V={},v=function(e){if(V.hasOwnProperty(e)){var t=V[e];delete V[e],t()}},x=function(e){return function(){v(e)}},y=function(e){v(e.data)},k=function(e){a.postMessage(e+"",m.protocol+"//"+m.host)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return V[++b]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},o(b),b},f=function(e){delete V[e]},"process"==l(C)?o=function(e){C.nextTick(x(e))}:N&&N.now?o=function(e){N.now(x(e))}:g&&!p?(i=(r=new g).port2,r.port1.onmessage=y,o=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(k)||"file:"===m.protocol?o="onreadystatechange"in u("script")?function(e){d.appendChild(u("script")).onreadystatechange=function(){d.removeChild(this),v(e)}}:function(e){setTimeout(x(e),0)}:(o=k,a.addEventListener("message",y,!1))),e.exports={set:h,clear:f}},function(e,t,n){"use strict";var o=n(8),r=n(35),i=n(13)("match");e.exports=function(e){var t;return o(e)&&((t=e[i])!==undefined?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";var o=n(5);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var o=n(33),r=n(25),i=function(e){return function(t,n){var i,a,c=String(r(t)),l=o(n),s=c.length;return l<0||l>=s?e?"":undefined:(i=c.charCodeAt(l))<55296||i>56319||l+1===s||(a=c.charCodeAt(l+1))<56320||a>57343?e?c.charAt(l):i:e?c.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";var o=n(125);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var o=n(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){"use strict";var o=n(127).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){"use strict";var o=n(5),r=n(93);e.exports=function(e){return o((function(){return!!r[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||r[e].name!==e}))}},function(e,t,n){"use strict";var o=n(6),r=n(5),i=n(87),a=n(11).NATIVE_ARRAY_BUFFER_VIEWS,c=o.ArrayBuffer,l=o.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new c(2),1,undefined).length}))},function(e,t,n){"use strict";t.__esModule=!0,t.hotKeyReducer=t.hotKeyMiddleware=t.releaseHeldKeys=t.KEY_MINUS=t.KEY_EQUAL=t.KEY_Z=t.KEY_Y=t.KEY_X=t.KEY_W=t.KEY_V=t.KEY_U=t.KEY_T=t.KEY_S=t.KEY_R=t.KEY_Q=t.KEY_P=t.KEY_O=t.KEY_N=t.KEY_M=t.KEY_L=t.KEY_K=t.KEY_J=t.KEY_I=t.KEY_H=t.KEY_G=t.KEY_F=t.KEY_E=t.KEY_D=t.KEY_C=t.KEY_B=t.KEY_A=t.KEY_9=t.KEY_8=t.KEY_7=t.KEY_6=t.KEY_5=t.KEY_4=t.KEY_3=t.KEY_2=t.KEY_1=t.KEY_0=t.KEY_SPACE=t.KEY_ESCAPE=t.KEY_ALT=t.KEY_CTRL=t.KEY_SHIFT=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=void 0;var o=n(23),r=(0,n(63).createLogger)("hotkeys");t.KEY_BACKSPACE=8;t.KEY_TAB=9;t.KEY_ENTER=13;t.KEY_SHIFT=16;t.KEY_CTRL=17;t.KEY_ALT=18;t.KEY_ESCAPE=27;t.KEY_SPACE=32;t.KEY_0=48;t.KEY_1=49;t.KEY_2=50;t.KEY_3=51;t.KEY_4=52;t.KEY_5=53;t.KEY_6=54;t.KEY_7=55;t.KEY_8=56;t.KEY_9=57;t.KEY_A=65;t.KEY_B=66;t.KEY_C=67;t.KEY_D=68;t.KEY_E=69;t.KEY_F=70;t.KEY_G=71;t.KEY_H=72;t.KEY_I=73;t.KEY_J=74;t.KEY_K=75;t.KEY_L=76;t.KEY_M=77;t.KEY_N=78;t.KEY_O=79;t.KEY_P=80;t.KEY_Q=81;t.KEY_R=82;t.KEY_S=83;t.KEY_T=84;t.KEY_U=85;t.KEY_V=86;t.KEY_W=87;t.KEY_X=88;t.KEY_Y=89;t.KEY_Z=90;t.KEY_EQUAL=187;t.KEY_MINUS=189;var i=[17,18,16],a=[27,13,32,9,17,16,18],c={},l=function(e,t,n,o){var r="";return e&&(r+="Ctrl+"),t&&(r+="Alt+"),n&&(r+="Shift+"),r+=o>=48&&o<=90?String.fromCharCode(o):"["+o+"]"},s=function(e){var t=window.event?e.which:e.keyCode,n=e.ctrlKey,o=e.altKey,r=e.shiftKey;return{keyCode:t,ctrlKey:n,altKey:o,shiftKey:r,hasModifierKeys:n||o||r,keyString:l(n,o,r,t)}},d=function(e,t){if(!e.defaultPrevented){var n=e.target&&e.target.localName;if("input"!==n&&"textarea"!==n){var i=s(e),l=i.keyCode,d=i.ctrlKey,u=i.shiftKey,p=function(e){var t={16:"Shift",17:"Ctrl",18:"Alt",33:"Northeast",34:"Southeast",35:"Southwest",36:"Northwest",37:"West",38:"North",39:"East",40:"South",45:"Insert",46:"Delete"};return t[e]?t[e]:e>=48&&e<=57||e>=65&&e<=90?String.fromCharCode(e):e>=96&&e<=105?"Numpad"+(e-96):e>=112&&e<=123?"F"+(e-111):188===e?",":189===e?"-":190===e?".":void 0}(l);if(!a.includes(l)){if("keyup"===t&&c[l])return r.debug("passthrough",t,i),(0,o.callByond)("",{__keyup:p});if(!d&&!u)return"keydown"!==t||c[l]?void 0:(r.debug("passthrough",t,i),(0,o.callByond)("",{__keydown:p}))}}}},u=function(){for(var e=0,t=Object.keys(c);e=0||(r[n]=e[n]);return r}var h=(0,l.createLogger)("Button"),f=function(e){var t=e.className,n=e.fluid,l=e.icon,p=e.color,f=e.disabled,C=e.selected,g=e.tooltip,N=e.tooltipPosition,b=e.ellipsis,V=e.content,v=e.iconRotation,x=e.iconColor,y=e.iconSpin,k=e.iconRight,w=e.children,_=e.onclick,B=e.onClick,S=m(e,["className","fluid","icon","color","disabled","selected","tooltip","tooltipPosition","ellipsis","content","iconRotation","iconColor","iconSpin","iconRight","children","onclick","onClick"]),L=!(!V&&!w);return _&&h.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid",f&&"Button--disabled",C&&"Button--selected",L&&"Button--hasContent",b&&"Button--ellipsis",k&&"Button--iconRight",p&&"string"==typeof p?"Button--color--"+p:"Button--color--default",t]),tabIndex:!f&&"0",unselectable:i.IS_IE8,onclick:function(e){(0,c.refocusLayout)(),!f&&B&&B(e)},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;return t===a.KEY_SPACE||t===a.KEY_ENTER?(e.preventDefault(),void(!f&&B&&B(e))):t===a.KEY_ESCAPE?(e.preventDefault(),void(0,c.refocusLayout)()):void 0}},S,{children:[l&&!k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),V,w,l&&k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),g&&(0,o.createComponentVNode)(2,u.Tooltip,{content:g,position:N})]})))};t.Button=f,f.defaultHooks=r.pureComponentHooks;var C=function(e){var t=e.checked,n=m(e,["checked"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=C,f.Checkbox=C;var g=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}p(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,r=void 0===n?"Confirm?":n,i=t.confirmColor,a=void 0===i?"bad":i,c=t.confirmIcon,l=t.icon,s=t.color,d=t.content,u=t.onClick,p=m(t,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?r:d,icon:this.state.clickedOnce?c:l,color:this.state.clickedOnce?a:s,onClick:function(){return e.state.clickedOnce?u():e.setClickedOnce(!0)}},p)))},t}(o.Component);t.ButtonConfirm=g,f.Confirm=g;var N=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={inInput:!1},t}p(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,i=t.content,c=t.icon,l=t.iconRotation,p=t.iconSpin,h=t.tooltip,f=t.tooltipPosition,C=t.color,g=void 0===C?"default":C,N=(t.placeholder,t.maxLength,m(t,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},N,{onClick:function(){return e.setInInput(!0)},children:[c&&(0,o.createComponentVNode)(2,d.Icon,{name:c,rotation:l,spin:p}),(0,o.createVNode)(1,"div",null,i,0),(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===a.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===a.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef),h&&(0,o.createComponentVNode)(2,u.Tooltip,{content:h,position:f})]})))},t}(o.Component);t.ButtonInput=N,f.Input=N},function(e,t,n){"use strict";t.__esModule=!0,t.Icon=void 0;var o=n(0),r=n(7),i=n(17);var a=/-o$/,c=function(e){var t=e.name,n=e.size,c=e.spin,l=e.className,s=e.style,d=void 0===s?{}:s,u=e.rotation,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["name","size","spin","className","style","rotation"]);n&&(d["font-size"]=100*n+"%"),"number"==typeof u&&(d.transform="rotate("+u+"deg)");var m=a.test(t),h=t.replace(a,"");return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"i",className:(0,r.classes)([l,m?"far":"fas","fa-"+h,c&&"fa-spin"]),style:d},p)))};t.Icon=c,c.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(136),l=n(17);var s=function(e){var t,n;function s(t){var n;n=e.call(this,t)||this;var i=t.value;return n.inputRef=(0,o.createRef)(),n.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,c=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),l=n.origin-e.screenY;if(t.dragging){var s=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+l*a/c,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+s,o,i),n.origin=e.screenY}else Math.abs(l)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.prototype.render=function(){var e=this,t=this.state,n=t.dragging,s=t.editing,d=t.value,u=t.suppressingFlicker,p=this.props,m=p.className,h=p.fluid,f=p.animated,C=p.value,g=p.unit,N=p.minValue,b=p.maxValue,V=p.height,v=p.width,x=p.lineHeight,y=p.fontSize,k=p.format,w=p.onChange,_=p.onDrag,B=C;(n||u)&&(B=d);var S=function(e){return(0,o.createVNode)(1,"div","NumberInput__content",e+(g?" "+g:""),0,{unselectable:a.IS_IE8})},L=f&&!n&&!u&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B,format:k,children:S})||S(k?k(B):B);return(0,o.createComponentVNode)(2,l.Box,{className:(0,i.classes)(["NumberInput",h&&"NumberInput--fluid",m]),minWidth:v,minHeight:V,lineHeight:x,fontSize:y,onMouseDown:this.handleDragStart,children:[(0,o.createVNode)(1,"div","NumberInput__barContainer",(0,o.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,r.clamp)((B-N)/(b-N)*100,0,100)+"%"}}),2),L,(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?undefined:"none",height:V,"line-height":x,"font-size":y},onBlur:function(t){if(s){var n=(0,r.clamp)(t.target.value,N,b);e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),_&&_(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,N,b);return e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),void(_&&_(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},s}(o.Component);t.NumberInput=s,s.defaultHooks=i.pureComponentHooks,s.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var o=n(0),r=n(1),i=n(2);t.LoginInfo=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState;if(c)return(0,o.createComponentVNode)(2,i.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"Logout",color:"good",float:"right",onClick:function(){return a("login_logout")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:!l.id,content:"Eject ID",color:"good",float:"right",onClick:function(){return a("login_eject")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var o=n(0),r=n(1),i=n(2);t.LoginScreen=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState,s=c.isAI,d=c.isRobot,u=c.isAdmin;return(0,o.createComponentVNode)(2,i.Section,{title:"Welcome",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){return a("login_insert")}})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){return a("login_login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return a("login_login",{login_type:2})}}),!!d&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return a("login_login",{login_type:3})}}),!!u&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){return a("login_login",{login_type:4})}})]})})})}},function(e,t,n){"use strict";var o=n(66);e.exports=new o({explicit:[n(498),n(499),n(500)]})},function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var o=n(0),r=n(2),i=n(522),a=function(e){var t=e.beakerLoaded,n=e.beakerContents,i=void 0===n?[]:n,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!t&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===i.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),i.map((function(e,t){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:[(0,o.createComponentVNode)(2,r.Box,{color:"label",display:"inline",verticalAlign:"middle",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Box,{float:"right",display:"inline",children:a(e,t)}),(0,o.createComponentVNode)(2,r.Box,{clear:"both"})]},e.name);var n}))]})};t.BeakerContents=a,a.propTypes={beakerLoaded:i.bool,beakerContents:i.array,buttons:i.arrayOf(i.element)}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewManifest=void 0;var o=n(0),r=n(1),i=n(2),a=n(18),c=n(49).COLORS.department,l=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel"],s=function(e){return-1!==l.indexOf(e)||"Quartermaster"===e},d=function(e){return e.length>0&&(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"50%",children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"35%",children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"15%",children:"Active"})]}),e.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{color:(t=e.rank,-1!==l.indexOf(t)?"green":"Quartermaster"===t?"yellow":"orange"),bold:s(e.rank),children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.rank)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.active})]},e.name+e.rank);var t}))]})};t.CrewManifest=function(e,t){var n;(0,r.useBackend)(t).act;e.data?n=e.data:n=(0,r.useBackend)(t).data;var a=n.manifest,l=a.heads,s=a.pro,u=a.sec,p=a.eng,m=a.med,h=a.sci,f=a.ser,C=a.sup,g=a.misc;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.command,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:d(l)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.procedure,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:d(s)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.security,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:d(u)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.engineering,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:d(p)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.medical,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:d(m)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.science,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:d(h)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.service,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:d(f)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.supply,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:d(C)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:d(g)})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var o=n(0),r=n(1),i=n(2);t.TemporaryNotice=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.temp;if(l){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})))}}},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(105);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var o=n(6),r=n(106),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},function(e,t,n){"use strict";var o=n(6),r=n(107),i=o.WeakMap;e.exports="function"==typeof i&&/native code/.test(r(i))},function(e,t,n){"use strict";var o=n(19),r=n(109),i=n(22),a=n(14);e.exports=function(e,t){for(var n=r(t),c=a.f,l=i.f,s=0;sl;)o(c,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){"use strict";var o=n(112);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(10),a=n(73);e.exports=o?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),c=o.length,l=0;c>l;)r.f(e,n=o[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(39);e.exports=o("document","documentElement")},function(e,t,n){"use strict";var o=n(28),r=n(54).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(t){return a.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(13);t.f=o},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=o(this),c=i(n.length),l=r(e,c),s=r(t,c),d=arguments.length>2?arguments[2]:undefined,u=a((d===undefined?c:r(d,c))-s,c-l),p=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=p,s+=p;return n}},function(e,t,n){"use strict";var o=n(59),r=n(12),i=n(55);e.exports=function a(e,t,n,c,l,s,d,u){for(var p,m=l,h=0,f=!!d&&i(d,u,3);h0&&o(p))m=a(e,t,p,r(p.length),m,s-1)-1;else{if(m>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[m]=p}m++}h++}return m}},function(e,t,n){"use strict";var o=n(10);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&o(i.call(e)),a}}},function(e,t,n){"use strict";var o=n(28),r=n(47),i=n(76),a=n(37),c=n(118),l=a.set,s=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var o,r,i,a=n(38),c=n(32),l=n(19),s=n(13),d=n(40),u=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=a(a(i)))!==Object.prototype&&(o=r):p=!0),o==undefined&&(o={}),d||l(o,u)||c(o,u,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var o=n(28),r=n(33),i=n(12),a=n(41),c=n(27),l=Math.min,s=[].lastIndexOf,d=!!s&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0}),m=d||!u||!p;e.exports=m?function(e){if(d)return s.apply(this,arguments)||0;var t=o(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:s},function(e,t,n){"use strict";var o=n(33),r=n(12);e.exports=function(e){if(e===undefined)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var o=n(34),r=n(8),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var o=[],r=0;r1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(d.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return C(this,0===e?0:e,t)}}:{add:function(e){return C(this,e=0===e?0:e,e)}}),u&&o(d.prototype,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var o=t+" Iterator",r=f(t),i=f(o);s(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var o=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:o(1+e)}},function(e,t,n){"use strict";var o=n(8),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseInt,c=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=r(String(e));return a(n,t>>>0||(c.test(n)?16:10))}:a},function(e,t,n){"use strict";var o=n(9),r=n(73),i=n(28),a=n(83).f,c=function(e){return function(t){for(var n,c=i(t),l=r(c),s=l.length,d=0,u=[];s>d;)n=l[d++],o&&!a.call(c,n)||u.push(e?[n,c[n]]:c[n]);return u}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(6);e.exports=o.Promise},function(e,t,n){"use strict";var o=n(85);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(e,t,n){"use strict";var o,r,i,a,c,l,s,d,u=n(6),p=n(22).f,m=n(35),h=n(124).set,f=n(173),C=u.MutationObserver||u.WebKitMutationObserver,g=u.process,N=u.Promise,b="process"==m(g),V=p(u,"queueMicrotask"),v=V&&V.value;v||(o=function(){var e,t;for(b&&(e=g.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():i=undefined,n}}i=undefined,e&&e.enter()},b?a=function(){g.nextTick(o)}:C&&!f?(c=!0,l=document.createTextNode(""),new C(o).observe(l,{characterData:!0}),a=function(){l.data=c=!c}):N&&N.resolve?(s=N.resolve(undefined),d=s.then,a=function(){d.call(s,o)}):a=function(){h.call(u,o)}),e.exports=v||function(e){var t={fn:e,next:undefined};i&&(i.next=t),r||(r=t,a()),i=t}},function(e,t,n){"use strict";var o=n(10),r=n(8),i=n(176);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(34),r=function(e){var t,n;this.promise=new e((function(e,o){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";var o=n(4),r=n(96);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var o=n(85);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o)},function(e,t,n){"use strict";var o=n(376);e.exports=function(e,t){var n=o(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var o=n(16),r=n(12),i=n(116),a=n(115),c=n(55),l=n(11).aTypedArrayConstructor;e.exports=function(e){var t,n,s,d,u,p,m=o(e),h=arguments.length,f=h>1?arguments[1]:undefined,C=f!==undefined,g=i(m);if(g!=undefined&&!a(g))for(p=(u=g.call(m)).next,m=[];!(d=p.call(u)).done;)m.push(d.value);for(C&&h>2&&(f=c(f,arguments[2],2)),n=r(m.length),s=new(l(this))(n),t=0;n>t;t++)s[t]=C?f(m[t],t):m[t];return s}},function(e,t,n){"use strict";var o=n(77),r=n(58).getWeakData,i=n(10),a=n(8),c=n(61),l=n(79),s=n(21),d=n(19),u=n(37),p=u.set,m=u.getterFor,h=s.find,f=s.findIndex,C=0,g=function(e){return e.frozen||(e.frozen=new N)},N=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};N.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=f(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var u=e((function(e,o){c(e,u,t),p(e,{type:t,id:C++,frozen:undefined}),o!=undefined&&l(o,e[s],e,n)})),h=m(t),f=function(e,t,n){var o=h(e),a=r(i(t),!0);return!0===a?g(o).set(t,n):a[o.id]=n,e};return o(u.prototype,{"delete":function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t)["delete"](e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t).has(e):n&&d(n,t.id)}}),o(u.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=r(e);return!0===n?g(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return f(this,e,t)}}:{add:function(e){return f(this,e,!0)}}),u}}},function(e,t,n){"use strict";t.__esModule=!0,t.setupHotReloading=t.sendLogEntry=void 0;t.sendLogEntry=function(e,t){};t.setupHotReloading=function(){0}},function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=void 0;var o=n(418),r=n(23);function i(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var a,c,l,s,d,u=(0,n(63).createLogger)("drag"),p=!1,m=!1,h=[0,0],f=function(e){return(0,r.winget)(e,"pos").then((function(e){return[e.x,e.y]}))},C=function(e,t){return(0,r.winset)(e,"pos",t[0]+","+t[1])},g=function(){var e,t=(e=regeneratorRuntime.mark((function n(e){var t,o,r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u.log("setting up"),a=e.config.window,n.next=4,f(a);case 4:t=n.sent,h=[t[0]-window.screenLeft,t[1]-window.screenTop],o=N(t),r=o[0],i=o[1],r&&C(a,i),u.debug("current state",{ref:a,screenOffset:h});case 9:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){i(a,o,r,c,l,"next",e)}function l(e){i(a,o,r,c,l,"throw",e)}c(undefined)}))});return function(e){return t.apply(this,arguments)}}();t.setupDrag=g;var N=function(e){var t=e[0],n=e[1],o=!1;return t<0?(t=0,o=!0):t+window.innerWidth>window.screen.availWidth&&(t=window.screen.availWidth-window.innerWidth,o=!0),n<0?(n=0,o=!0):n+window.innerHeight>window.screen.availHeight&&(n=window.screen.availHeight-window.innerHeight,o=!0),[o,[t,n]]};t.dragStartHandler=function(e){u.log("drag start"),p=!0,c=[window.screenLeft-e.screenX,window.screenTop-e.screenY],document.addEventListener("mousemove",V),document.addEventListener("mouseup",b),V(e)};var b=function y(e){u.log("drag end"),V(e),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",y),p=!1},V=function(e){p&&(e.preventDefault(),C(a,(0,o.vecAdd)([e.screenX,e.screenY],h,c)))};t.resizeStartHandler=function(e,t){return function(n){l=[e,t],u.log("resize start",l),m=!0,c=[window.screenLeft-n.screenX,window.screenTop-n.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",x),document.addEventListener("mouseup",v),x(n)}};var v=function k(e){u.log("resize end",d),x(e),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",k),m=!1},x=function(e){m&&(e.preventDefault(),(d=(0,o.vecAdd)(s,(0,o.vecMultiply)(l,(0,o.vecAdd)([e.screenX,e.screenY],(0,o.vecInverse)([window.screenLeft,window.screenTop]),c,[1,1]))))[0]=Math.max(d[0],250),d[1]=Math.max(d[1],120),function(e,t){(0,r.winset)(e,"size",t[0]+","+t[1])}(a,d))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var o=n(0),r=n(7);t.Tooltip=function(e){var t=e.content,n=e.title,i=e.position,a=void 0===i?"bottom":i,c="string"==typeof t&&t.length>35,l=!(0,r.isFalsy)(n)?n+"\n \n"+t:t;return(0,o.createVNode)(1,"div",(0,r.classes)(["Tooltip",c&&"Tooltip--long",a&&"Tooltip--"+a]),null,1,{"data-tooltip":l})}},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=t.getBoundingBox=void 0;var o=n(0),r=n(7),i=n(443),a=n(23),c=n(63),l=n(17);function s(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var d=(0,c.createLogger)("ByondUi"),u=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(r[n]=e[n]);return r}(e,["className","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Dimmer"].concat(t))},a,{children:(0,o.createVNode)(1,"div","Dimmer__inner",n,0)})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var o=n(0),r=n(7);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,o.createVNode)(1,"div",(0,r.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(0),r=n(80),i=n(7);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.children,n=a(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=i.pureComponentHooks;var l=function(e){var t=e.size,n=void 0===t?1:t,i=e.style,c=a(e,["size","style"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},i)},c)))};t.GridColumn=l,c.defaultHooks=i.pureComponentHooks,c.Column=l},function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var o=n(0),r=n(15),i=n(7),a=n(136);var c=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},l=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).inputRef=(0,o.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,o=t.value,r=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:c(e,r),value:o,internalValue:o}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,l=t.stepPixelSize,s=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),d=c(e,s)-n.origin;if(t.dragging){var u=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+d*a/l,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+u,o,i),n.origin=c(e,s)}else Math.abs(d)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=this.state,n=t.dragging,i=t.editing,c=t.value,l=t.suppressingFlicker,s=this.props,d=s.animated,u=s.value,p=s.unit,m=s.minValue,h=s.maxValue,f=s.format,C=s.onChange,g=s.onDrag,N=s.children,b=s.height,V=s.lineHeight,v=s.fontSize,x=u;(n||l)&&(x=c);var y=function(e){return e+(p?" "+p:"")},k=d&&!n&&!l&&(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:x,format:f,children:y})||y(f?f(x):x),w=(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?undefined:"none",height:b,"line-height":V,"font-size":v},onBlur:function(t){if(i){var n=(0,r.clamp)(t.target.value,m,h);e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),g&&g(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,m,h);return e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),void(g&&g(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return N({dragging:n,editing:i,value:u,displayValue:x,displayElement:k,inputElement:w,handleDragStart:this.handleDragStart})},i}(o.Component);t.DraggableControl=l,l.defaultHooks=i.pureComponentHooks,l.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Slider=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.fillValue,v=e.color,x=e.ranges,y=void 0===x?{}:x,k=e.children,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),_=k!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=V!==undefined&&null!==V,h=((0,r.scale)(n,u,d),(0,r.scale)(null!=V?V:a,u,d)),f=(0,r.scale)(a,u,d),C=v||(0,r.keyOfMatchingRange)(null!=V?V:n,y)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Slider","ProgressBar","ProgressBar--color--"+C,b,(0,c.computeBoxClassName)(w)]),[(0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar__fill",m&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(h)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(h,f))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(f)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",_?k:l,0),s],0,Object.assign({},(0,c.computeBoxProps)(w),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(23),l=n(2),s=n(49),d=n(183),u=n(133),p=n(63),m=n(135);var h=(0,p.createLogger)("Window"),f=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var p=l.prototype;return p.componentDidMount=function(){(0,m.refocusLayout)()},p.render=function(){var e=this.props,t=e.resizable,n=e.theme,l=e.children,p=(0,a.useBackend)(this.context),f=p.config,C=p.debugLayout,N=f.observer?f.statusa?"average":t>c?"bad":"good"),children:[e.val,e.units]},e.entry);var t,n,r,a,c}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MessengerList=t.ActiveConversation=t.pda_messenger=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);t.pda_messenger=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data);return r.active_convo?(0,o.createComponentVNode)(2,c,{data:r}):(0,o.createComponentVNode)(2,l,{data:r})};var c=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.convo_name,s=c.convo_job,d=c.messages,u=c.active_convo,p=(0,i.useLocalState)(t,"clipboardMode",!1),m=p[0],h=p[1],f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{height:"97%",overflowY:"auto",children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{textAlign:e.sent?"right":"left",position:"relative",mb:1,children:[(0,o.createComponentVNode)(2,a.Icon,{fontSize:2.5,color:e.sent?"#3e6189":"#565656",position:"absolute",left:e.sent?null:"0px",right:e.sent?"0px":null,bottom:"-5px",style:{"z-index":"0",transform:e.sent?"scale(-1, 1)":null},name:"comment"}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,backgroundColor:e.sent?"#3e6189":"#565656",p:1,maxWidth:"100%",position:"relative",textAlign:"left",style:{"z-index":"1","border-radius":"5px","word-break":"normal","word-wrap":"break-word"},children:e.message})]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]});return m&&(f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{color:e.sent?"#2185d0":"#aaaaaa",style:{"word-break":"normal"},children:[e.sent?"You:":"Them:"," ",e.message]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]})),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),f]})};t.ActiveConversation=c;var l=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=r.convopdas,l=r.pdas,d=r.charges,u=r.silent,p=r.toff,m=(0,i.useLocalState)(t,"searchTerm",""),h=m[0],f=m[1];return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,a.Button,{selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return n("Toggle Ringer")},children:["Ringer: ",u?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return n("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"bell",onClick:function(){return n("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[!!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})}),!c.length&&!l.length&&(0,o.createComponentVNode)(2,a.Box,{children:"No current conversations"})||(0,o.createComponentVNode)(2,a.Box,{children:["Search: ",(0,o.createComponentVNode)(2,a.Input,{value:h,onInput:function(e,t){f(t)}}),(0,o.createComponentVNode)(2,s,{title:"Current Conversations",data:r,pdas:c,msgAct:"Select Conversation",searchTerm:h}),(0,o.createComponentVNode)(2,s,{title:"Other PDAs",pdas:l,msgAct:"Message",data:r,searchTerm:h})]})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Messenger Offline."})]})};t.MessengerList=l;var s=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=e.pdas,l=e.title,s=e.msgAct,d=e.searchTerm,u=r.charges,p=r.plugins;return c&&c.length?(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:c.filter((function(e){return e.Name.toLowerCase().includes(d.toLowerCase())})).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return n(s,{target:e.uid})}}),!!u&&p.map((function(t){return(0,o.createComponentVNode)(2,a.Button,{icon:t.icon,content:t.name,onClick:function(){return n("Messenger Plugin",{plugin:t.uid,target:e.uid})}},t.uid)}))]},e.uid)}))}):(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:"No PDAs found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Signaler=void 0;var o=n(0),r=n(15),i=n(1),a=n(2);t.Signaler=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.code,s=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return n("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(e,t){return n("code",{code:t})}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return n("signal")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PowerMonitorMainContent=t.PowerMonitor=void 0;var o=n(0),r=n(24),i=n(43),a=n(15),c=n(7),l=n(18),s=n(1),d=n(2),u=n(3),p=6e5;t.PowerMonitor=function(e,t){return(0,o.createComponentVNode)(2,u.Window,{resizeable:!0,children:(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,m)})})};var m=function(e,t){var n=(0,s.useBackend)(t),r=(n.act,n.data),i=r.powermonitor,a=r.can_select_monitor;return(0,o.createComponentVNode)(2,d.Box,{m:0,children:[!i&&a&&(0,o.createComponentVNode)(2,h),i&&(0,o.createComponentVNode)(2,f)]})};t.PowerMonitorMainContent=m;var h=function(e,t){var n=(0,s.useBackend)(t),r=n.act,i=n.data.powermonitors;return i?(0,o.createComponentVNode)(2,d.Section,{title:"Select Power Monitor",children:Object.keys(i).sort((function(e,t){return i[e]50?"battery-half":"battery-quarter")||"C"===t&&"bolt"||"F"===t&&"battery-full"||"M"===t&&"slash",color:"N"===t&&(n>50?"yellow":"red")||"C"===t&&"yellow"||"F"===t&&"green"||"M"===t&&"orange"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(n)+"%"})],4)};C.defaultHooks=c.pureComponentHooks;var g=function(e){var t,n;switch(e.status){case"AOn":t=!0,n=!0;break;case"AOff":t=!0,n=!1;break;case"On":t=!1,n=!0;break;case"Off":t=!1,n=!1}var r=(n?"On":"Off")+" ["+(t?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:n?"good":"bad",content:t?undefined:"M",title:r})};g.defaultHooks=c.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.RndRoute=void 0;var o=n(1);t.RndRoute=function(e,t){var n=e.render,r=(0,o.useBackend)(t).data,i=r.menu,a=r.submenu,c=function(e,t){return null===e||e===undefined||("function"==typeof e?e(t):e===t)};return c(e.menu,i)&&c(e.submenu,a)?n():null}},function(e,t,n){e.exports=n(201)},function(e,t,n){"use strict";n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(227),n(229),n(230),n(231),n(160),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(248),n(249),n(250),n(251),n(252),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(286),n(287),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(177),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414);var o=n(0),r=n(416);n(417);n(182);var i=n(1),a=n(23),c=n(183),l=n(63);n(419),n(420),n(421),n(422),n(423);var s=n(424);n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438);var d,u=n(439),p=(Date.now(),(0,s.createStore)()),m=!0,h=function(){for(p.subscribe((function(){!function(){try{var e=p.getState();m&&(l.logger.log("initial render",e),(0,c.setupDrag)(e));var t=(0,n(134).getRoutedComponent)(e),r=(0,o.createComponentVNode)(2,s.StoreProvider,{store:p,children:(0,o.createComponentVNode)(2,t)});d||(d=document.getElementById("react-root")),(0,o.render)(r,d)}catch(i){throw l.logger.error("rendering error",i),i}m&&(m=!1)}()})),(0,u.captureExternalLinks)(),window.update=function(e){var t="string"==typeof e?function(e){var t=function(e,t){return"object"==typeof t&&null!==t&&t.__number__?parseFloat(t.__number__):t};a.IS_IE8&&(t=undefined);try{return JSON.parse(e,t)}catch(o){l.logger.log(o),l.logger.log("What we got:",e);var n=o&&o.message;throw new Error("JSON parsing error: "+n)}}(e):e;p.dispatch((0,i.backendUpdate)(t))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}(0,r.loadCSS)("font-awesome.css")};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h()},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(39),a=n(40),c=n(9),l=n(112),s=n(152),d=n(5),u=n(19),p=n(59),m=n(8),h=n(10),f=n(16),C=n(28),g=n(36),N=n(53),b=n(45),V=n(73),v=n(54),x=n(155),y=n(111),k=n(22),w=n(14),_=n(83),B=n(32),S=n(26),L=n(108),A=n(84),E=n(70),I=n(69),D=n(13),T=n(156),F=n(29),M=n(46),P=n(37),O=n(21).forEach,R=A("hidden"),j=D("toPrimitive"),U=P.set,z=P.getterFor("Symbol"),W=Object.prototype,H=r.Symbol,K=i("JSON","stringify"),Y=k.f,G=w.f,q=x.f,X=_.f,J=L("symbols"),$=L("op-symbols"),Z=L("string-to-symbol-registry"),Q=L("symbol-to-string-registry"),ee=L("wks"),te=r.QObject,ne=!te||!te.prototype||!te.prototype.findChild,oe=c&&d((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=Y(W,t);o&&delete W[t],G(e,t,n),o&&e!==W&&G(W,t,o)}:G,re=function(e,t){var n=J[e]=b(H.prototype);return U(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,n){e===W&&ae($,t,n),h(e);var o=g(t,!0);return h(n),u(J,o)?(n.enumerable?(u(e,R)&&e[R][o]&&(e[R][o]=!1),n=b(n,{enumerable:N(0,!1)})):(u(e,R)||G(e,R,N(1,{})),e[R][o]=!0),oe(e,o,n)):G(e,o,n)},ce=function(e,t){h(e);var n=C(t),o=V(n).concat(pe(n));return O(o,(function(t){c&&!se.call(n,t)||ae(e,t,n[t])})),e},le=function(e,t){return t===undefined?b(e):ce(b(e),t)},se=function(e){var t=g(e,!0),n=X.call(this,t);return!(this===W&&u(J,t)&&!u($,t))&&(!(n||!u(this,t)||!u(J,t)||u(this,R)&&this[R][t])||n)},de=function(e,t){var n=C(e),o=g(t,!0);if(n!==W||!u(J,o)||u($,o)){var r=Y(n,o);return!r||!u(J,o)||u(n,R)&&n[R][o]||(r.enumerable=!0),r}},ue=function(e){var t=q(C(e)),n=[];return O(t,(function(e){u(J,e)||u(E,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=q(t?$:C(e)),o=[];return O(n,(function(e){!u(J,e)||t&&!u(W,e)||o.push(J[e])})),o};(l||(S((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,t=I(e),n=function o(e){this===W&&o.call($,e),u(this,R)&&u(this[R],t)&&(this[R][t]=!1),oe(this,t,N(1,e))};return c&&ne&&oe(W,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return z(this).tag})),S(H,"withoutSetter",(function(e){return re(I(e),e)})),_.f=se,w.f=ae,k.f=de,v.f=x.f=ue,y.f=pe,T.f=function(e){return re(D(e),e)},c&&(G(H.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||S(W,"propertyIsEnumerable",se,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),O(V(ee),(function(e){F(e)})),o({target:"Symbol",stat:!0,forced:!l},{"for":function(e){var t=String(e);if(u(Z,t))return Z[t];var n=H(t);return Z[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(u(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!c},{create:le,defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:d((function(){y.f(1)}))},{getOwnPropertySymbols:function(e){return y.f(f(e))}}),K)&&o({target:"JSON",stat:!0,forced:!l||d((function(){var e=H();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var o,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(o=t,(m(t)||e!==undefined)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!ie(t))return t}),r[1]=t,K.apply(null,r)}});H.prototype[j]||B(H.prototype,j,H.prototype.valueOf),M(H,"Symbol"),E[R]=!0},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(6),a=n(19),c=n(8),l=n(14).f,s=n(149),d=i.Symbol;if(r&&"function"==typeof d&&(!("description"in d.prototype)||d().description!==undefined)){var u={},p=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof p?new d(e):e===undefined?d():d(e);return""===e&&(u[t]=!0),t};s(p,d);var m=p.prototype=d.prototype;m.constructor=p;var h=m.toString,f="Symbol(test)"==String(d("test")),C=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=h.call(e);if(a(u,e))return"";var n=f?t.slice(7,-1):t.replace(C,"$1");return""===n?undefined:n}}),o({global:!0,forced:!0},{Symbol:p})}},function(e,t,n){"use strict";n(29)("asyncIterator")},function(e,t,n){"use strict";n(29)("hasInstance")},function(e,t,n){"use strict";n(29)("isConcatSpreadable")},function(e,t,n){"use strict";n(29)("iterator")},function(e,t,n){"use strict";n(29)("match")},function(e,t,n){"use strict";n(29)("replace")},function(e,t,n){"use strict";n(29)("search")},function(e,t,n){"use strict";n(29)("species")},function(e,t,n){"use strict";n(29)("split")},function(e,t,n){"use strict";n(29)("toPrimitive")},function(e,t,n){"use strict";n(29)("toStringTag")},function(e,t,n){"use strict";n(29)("unscopables")},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(59),a=n(8),c=n(16),l=n(12),s=n(56),d=n(74),u=n(75),p=n(13),m=n(113),h=p("isConcatSpreadable"),f=m>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),C=u("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return t!==undefined?!!t:i(e)};o({target:"Array",proto:!0,forced:!f||!C},{concat:function(e){var t,n,o,r,i,a=c(this),u=d(a,0),p=0;for(t=-1,o=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(u,p++,i)}return u.length=p,u}})},function(e,t,n){"use strict";var o=n(4),r=n(157),i=n(47);o({target:"Array",proto:!0},{copyWithin:r}),i("copyWithin")},function(e,t,n){"use strict";var o=n(4),r=n(21).every,i=n(41),a=n(27),c=i("every"),l=a("every");o({target:"Array",proto:!0,forced:!c||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(114),i=n(47);o({target:"Array",proto:!0},{fill:r}),i("fill")},function(e,t,n){"use strict";var o=n(4),r=n(21).filter,i=n(75),a=n(27),c=i("filter"),l=a("filter");o({target:"Array",proto:!0,forced:!c||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(21).find,i=n(47),a=n(27),c=!0,l=a("find");"find"in[]&&Array(1).find((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,n){"use strict";var o=n(4),r=n(21).findIndex,i=n(47),a=n(27),c=!0,l=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(33),l=n(74);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),n=a(t.length),o=l(t,0);return o.length=r(o,t,t,n,0,e===undefined?1:c(e)),o}})},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(34),l=n(74);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),o=a(n.length);return c(e),(t=l(n,0)).length=r(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},function(e,t,n){"use strict";var o=n(4),r=n(226);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var o=n(21).forEach,r=n(41),i=n(27),a=r("forEach"),c=i("forEach");e.exports=a&&c?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,n){"use strict";var o=n(4),r=n(228);o({target:"Array",stat:!0,forced:!n(87)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){"use strict";var o=n(55),r=n(16),i=n(159),a=n(115),c=n(12),l=n(56),s=n(116);e.exports=function(e){var t,n,d,u,p,m,h=r(e),f="function"==typeof this?this:Array,C=arguments.length,g=C>1?arguments[1]:undefined,N=g!==undefined,b=s(h),V=0;if(N&&(g=o(g,C>2?arguments[2]:undefined,2)),b==undefined||f==Array&&a(b))for(n=new f(t=c(h.length));t>V;V++)m=N?g(h[V],V):h[V],l(n,V,m);else for(p=(u=b.call(h)).next,n=new f;!(d=p.call(u)).done;V++)m=N?i(u,g,[d.value,V],!0):d.value,l(n,V,m);return n.length=V,n}},function(e,t,n){"use strict";var o=n(4),r=n(71).includes,i=n(47);o({target:"Array",proto:!0,forced:!n(27)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("includes")},function(e,t,n){"use strict";var o=n(4),r=n(71).indexOf,i=n(41),a=n(27),c=[].indexOf,l=!!c&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),d=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:l||!s||!d},{indexOf:function(e){return l?c.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";n(4)({target:"Array",stat:!0},{isArray:n(59)})},function(e,t,n){"use strict";var o=n(161).IteratorPrototype,r=n(45),i=n(53),a=n(46),c=n(76),l=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),a(e,s,!1,!0),c[s]=l,e}},function(e,t,n){"use strict";var o=n(4),r=n(68),i=n(28),a=n(41),c=[].join,l=r!=Object,s=a("join",",");o({target:"Array",proto:!0,forced:l||!s},{join:function(e){return c.call(i(this),e===undefined?",":e)}})},function(e,t,n){"use strict";var o=n(4),r=n(163);o({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var o=n(4),r=n(21).map,i=n(75),a=n(27),c=i("map"),l=a("map");o({target:"Array",proto:!0,forced:!c||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(56);o({target:"Array",stat:!0,forced:r((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var o=n(4),r=n(88).left,i=n(41),a=n(27),c=i("reduce"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(88).right,i=n(41),a=n(27),c=i("reduceRight"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(59),a=n(44),c=n(12),l=n(28),s=n(56),d=n(13),u=n(75),p=n(27),m=u("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),f=d("species"),C=[].slice,g=Math.max;o({target:"Array",proto:!0,forced:!m||!h},{slice:function(e,t){var n,o,d,u=l(this),p=c(u.length),m=a(e,p),h=a(t===undefined?p:t,p);if(i(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[f])&&(n=undefined):n=undefined,n===Array||n===undefined))return C.call(u,m,h);for(o=new(n===undefined?Array:n)(g(h-m,0)),d=0;m1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(34),i=n(16),a=n(5),c=n(41),l=[],s=l.sort,d=a((function(){l.sort(undefined)})),u=a((function(){l.sort(null)})),p=c("sort");o({target:"Array",proto:!0,forced:d||!u||!p},{sort:function(e){return e===undefined?s.call(i(this)):s.call(i(this),r(e))}})},function(e,t,n){"use strict";n(60)("Array")},function(e,t,n){"use strict";var o=n(4),r=n(44),i=n(33),a=n(12),c=n(16),l=n(74),s=n(56),d=n(75),u=n(27),p=d("splice"),m=u("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,f=Math.min;o({target:"Array",proto:!0,forced:!p||!m},{splice:function(e,t){var n,o,d,u,p,m,C=c(this),g=a(C.length),N=r(e,g),b=arguments.length;if(0===b?n=o=0:1===b?(n=0,o=g-N):(n=b-2,o=f(h(i(t),0),g-N)),g+n-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(C,o),u=0;ug-o+n;u--)delete C[u-1]}else if(n>o)for(u=g-o;u>N;u--)m=u+n-1,(p=u+o-1)in C?C[m]=C[p]:delete C[m];for(u=0;u>1,f=23===t?r(2,-24)-r(2,-77):0,C=e<0||0===e&&1/e<0?1:0,g=0;for((e=o(e))!=e||e===1/0?(s=e!=e?1:0,l=m):(l=i(a(e)/c),e*(d=r(2,-l))<1&&(l--,d*=2),(e+=l+h>=1?f/d:f*r(2,1-h))*d>=2&&(l++,d/=2),l+h>=m?(s=0,l=m):l+h>=1?(s=(e*d-1)*r(2,t),l+=h):(s=e*r(2,h-1)*r(2,t),l=0));t>=8;u[g++]=255&s,s/=256,t-=8);for(l=l<0;u[g++]=255&l,l/=256,p-=8);return u[--g]|=128*C,u},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<>1,l=i-7,s=o-1,d=e[s--],u=127&d;for(d>>=7;l>0;u=256*u+e[s],s--,l-=8);for(n=u&(1<<-l)-1,u>>=-l,l+=t;l>0;n=256*n+e[s],s--,l-=8);if(0===u)u=1-c;else{if(u===a)return n?NaN:d?-1/0:1/0;n+=r(2,t),u-=c}return(d?-1:1)*n*r(2,u-t)}}},function(e,t,n){"use strict";var o=n(4),r=n(11);o({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(89),a=n(10),c=n(44),l=n(12),s=n(48),d=i.ArrayBuffer,u=i.DataView,p=d.prototype.slice;o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:r((function(){return!new d(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(p!==undefined&&t===undefined)return p.call(a(this),e);for(var n=a(this).byteLength,o=c(e,n),r=c(t===undefined?n:t,n),i=new(s(this,d))(l(r-o)),m=new u(this),h=new u(i),f=0;o9999?"+":"";return n+r(i(e),n?6:4,0)+"-"+r(this.getUTCMonth()+1,2,0)+"-"+r(this.getUTCDate(),2,0)+"T"+r(this.getUTCHours(),2,0)+":"+r(this.getUTCMinutes(),2,0)+":"+r(this.getUTCSeconds(),2,0)+"."+r(t,3,0)+"Z"}:l},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(36);o({target:"Date",proto:!0,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var o=n(32),r=n(256),i=n(13)("toPrimitive"),a=Date.prototype;i in a||o(a,i,r)},function(e,t,n){"use strict";var o=n(10),r=n(36);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!==e)}},function(e,t,n){"use strict";var o=n(26),r=Date.prototype,i=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&o(r,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){"use strict";n(4)({target:"Function",proto:!0},{bind:n(165)})},function(e,t,n){"use strict";var o=n(8),r=n(14),i=n(38),a=n(13)("hasInstance"),c=Function.prototype;a in c||r.f(c,a,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var o=n(9),r=n(14).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;o&&!("name"in i)&&r(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(6);n(46)(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(167),i=Math.acosh,a=Math.log,c=Math.sqrt,l=Math.LN2;o({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+l:r(e-1+c(e-1)*c(e+1))}})},function(e,t,n){"use strict";var o=n(4),r=Math.asinh,i=Math.log,a=Math.sqrt;o({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function c(e){return isFinite(e=+e)&&0!=e?e<0?-c(-e):i(e+a(e*e+1)):e}})},function(e,t,n){"use strict";var o=n(4),r=Math.atanh,i=Math.log;o({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var o=n(4),r=n(123),i=Math.abs,a=Math.pow;o({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*a(i(e),1/3)}})},function(e,t,n){"use strict";var o=n(4),r=Math.floor,i=Math.log,a=Math.LOG2E;o({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(i(e+.5)*a):32}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.cosh,a=Math.abs,c=Math.E;o({target:"Math",stat:!0,forced:!i||i(710)===Infinity},{cosh:function(e){var t=r(a(e)-1)+1;return(t+1/(t*c*c))*(c/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92);o({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{fround:n(271)})},function(e,t,n){"use strict";var o=n(123),r=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),l=i(2,127)*(2-c),s=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=r(e),d=o(e);return il||n!=n?d*Infinity:d*n}},function(e,t,n){"use strict";var o=n(4),r=Math.hypot,i=Math.abs,a=Math.sqrt;o({target:"Math",stat:!0,forced:!!r&&r(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,o,r=0,c=0,l=arguments.length,s=0;c0?(o=n/s)*o:n;return s===Infinity?Infinity:s*a(r)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=Math.imul;o({target:"Math",stat:!0,forced:r((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=+e,o=+t,r=65535&n,i=65535&o;return 0|r*i+((65535&n>>>16)*i+r*(65535&o>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LOG10E;o({target:"Math",stat:!0},{log10:function(e){return r(e)*i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{log1p:n(167)})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LN2;o({target:"Math",stat:!0},{log2:function(e){return r(e)/i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{sign:n(123)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(92),a=Math.abs,c=Math.exp,l=Math.E;o({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(l/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.exp;o({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";n(46)(Math,"Math",!0)},function(e,t,n){"use strict";var o=n(4),r=Math.ceil,i=Math.floor;o({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:r)(e)}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(26),c=n(19),l=n(35),s=n(91),d=n(36),u=n(5),p=n(45),m=n(54).f,h=n(22).f,f=n(14).f,C=n(62).trim,g=r.Number,N=g.prototype,b="Number"==l(p(N)),V=function(e){var t,n,o,r,i,a,c,l,s=d(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=C(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;cr)return NaN;return parseInt(i,o)}return+s};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var v,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(b?u((function(){N.valueOf.call(n)})):"Number"!=l(n))?s(new g(V(t)),n,x):V(t)},y=o?m(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;y.length>k;k++)c(g,v=y[k])&&!c(x,v)&&f(x,v,h(g,v));x.prototype=N,N.constructor=x,a(r,"Number",x)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isFinite:n(285)})},function(e,t,n){"use strict";var o=n(6).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isInteger:n(168)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var o=n(4),r=n(168),i=Math.abs;o({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var o=n(4),r=n(292);o({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseFloat,c=1/a(i+"-0")!=-Infinity;e.exports=c?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var o=n(4),r=n(169);o({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o=n(4),r=n(33),i=n(295),a=n(122),c=n(5),l=1..toFixed,s=Math.floor,d=function u(e,t,n){return 0===t?n:t%2==1?u(e,t-1,n*e):u(e*e,t/2,n)};o({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){l.call({})}))},{toFixed:function(e){var t,n,o,c,l=i(this),u=r(e),p=[0,0,0,0,0,0],m="",h="0",f=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*p[n],p[n]=o%1e7,o=s(o/1e7)},C=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=s(n/e),n=n%e*1e7},g=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*d(2,69,1))-69)<0?l*d(2,-t,1):l/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),o=u;o>=7;)f(1e7,0),o-=7;for(f(d(10,o,1),0),o=t-1;o>=23;)C(1<<23),o-=23;C(1<0?m+((c=h.length)<=u?"0."+a.call("0",u-c)+h:h.slice(0,c-u)+"."+h.slice(c-u)):m+h}})},function(e,t,n){"use strict";var o=n(35);e.exports=function(e){if("number"!=typeof e&&"Number"!=o(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var o=n(4),r=n(297);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(73),a=n(111),c=n(83),l=n(16),s=n(68),d=Object.assign,u=Object.defineProperty;e.exports=!d||r((function(){if(o&&1!==d({b:1},d(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var n=l(e),r=arguments.length,d=1,u=a.f,p=c.f;r>d;)for(var m,h=s(arguments[d++]),f=u?i(h).concat(u(h)):i(h),C=f.length,g=0;C>g;)m=f[g++],o&&!p.call(h,m)||(n[m]=h[m]);return n}:d},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0,sham:!n(9)},{create:n(45)})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(a(this),e,{get:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n(153)})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(14).f})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(a(this),e,{set:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(170).entries;o({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(78),i=n(5),a=n(8),c=n(58).onFreeze,l=Object.freeze;o({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!r},{freeze:function(e){return l&&a(e)?l(c(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(79),i=n(56);o({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){i(t,e,n)}),undefined,!0),t}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(28),a=n(22).f,c=n(9),l=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!c||l,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(109),a=n(28),c=n(22),l=n(56);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=c.f,s=i(o),d={},u=0;s.length>u;)(n=r(o,t=s[u++]))!==undefined&&l(d,t,n);return d}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(155).f;o({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(38),c=n(119);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!c},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{is:n(171)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isExtensible;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isFrozen;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isSealed;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(16),i=n(73);o({target:"Object",stat:!0,forced:n(5)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.get}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.set}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.preventExtensions;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.seal;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{seal:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{setPrototypeOf:n(57)})},function(e,t,n){"use strict";var o=n(117),r=n(26),i=n(321);o||r(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var o=n(117),r=n(86);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){"use strict";var o=n(4),r=n(170).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(169);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o,r,i,a,c=n(4),l=n(40),s=n(6),d=n(39),u=n(172),p=n(26),m=n(77),h=n(46),f=n(60),C=n(8),g=n(34),N=n(61),b=n(35),V=n(107),v=n(79),x=n(87),y=n(48),k=n(124).set,w=n(174),_=n(175),B=n(325),S=n(176),L=n(326),A=n(37),E=n(72),I=n(13),D=n(113),T=I("species"),F="Promise",M=A.get,P=A.set,O=A.getterFor(F),R=u,j=s.TypeError,U=s.document,z=s.process,W=d("fetch"),H=S.f,K=H,Y="process"==b(z),G=!!(U&&U.createEvent&&s.dispatchEvent),q=E(F,(function(){if(!(V(R)!==String(R))){if(66===D)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!R.prototype["finally"])return!0;if(D>=51&&/native code/.test(R))return!1;var e=R.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[T]=t,!(e.then((function(){}))instanceof t)})),X=q||!x((function(e){R.all(e)["catch"]((function(){}))})),J=function(e){var t;return!(!C(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,n){if(!t.notified){t.notified=!0;var o=t.reactions;w((function(){for(var r=t.value,i=1==t.state,a=0;o.length>a;){var c,l,s,d=o[a++],u=i?d.ok:d.fail,p=d.resolve,m=d.reject,h=d.domain;try{u?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===u?c=r:(h&&h.enter(),c=u(r),h&&(h.exit(),s=!0)),c===d.promise?m(j("Promise-chain cycle")):(l=J(c))?l.call(c,p,m):p(c)):m(r)}catch(f){h&&!s&&h.exit(),m(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Q(e,t)}))}},Z=function(e,t,n){var o,r;G?((o=U.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),s.dispatchEvent(o)):o={promise:t,reason:n},(r=s["on"+e])?r(o):"unhandledrejection"===e&&B("Unhandled promise rejection",n)},Q=function(e,t){k.call(s,(function(){var n,o=t.value;if(ee(t)&&(n=L((function(){Y?z.emit("unhandledRejection",o,e):Z("unhandledrejection",e,o)})),t.rejection=Y||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){k.call(s,(function(){Y?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},ne=function(e,t,n,o){return function(r){e(t,n,r,o)}},oe=function(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=2,$(e,t,!0))},re=function ie(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw j("Promise can't be resolved itself");var r=J(n);r?w((function(){var o={done:!1};try{r.call(n,ne(ie,e,o,t),ne(oe,e,o,t))}catch(i){oe(e,o,i,t)}})):(t.value=n,t.state=1,$(e,t,!1))}catch(i){oe(e,{done:!1},i,t)}}};q&&(R=function(e){N(this,R,F),g(e),o.call(this);var t=M(this);try{e(ne(re,this,t),ne(oe,this,t))}catch(n){oe(this,t,n)}},(o=function(e){P(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=m(R.prototype,{then:function(e,t){var n=O(this),o=H(y(this,R));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=Y?z.domain:undefined,n.parent=!0,n.reactions.push(o),0!=n.state&&$(this,n,!1),o.promise},"catch":function(e){return this.then(undefined,e)}}),r=function(){var e=new o,t=M(e);this.promise=e,this.resolve=ne(re,e,t),this.reject=ne(oe,e,t)},S.f=H=function(e){return e===R||e===i?new r(e):K(e)},l||"function"!=typeof u||(a=u.prototype.then,p(u.prototype,"then",(function(e,t){var n=this;return new R((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _(R,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:q},{Promise:R}),h(R,F,!1,!0),f(F),i=d(F),c({target:F,stat:!0,forced:q},{reject:function(e){var t=H(this);return t.reject.call(undefined,e),t.promise}}),c({target:F,stat:!0,forced:l||q},{resolve:function(e){return _(l&&this===i?R:this,e)}}),c({target:F,stat:!0,forced:X},{all:function(e){var t=this,n=H(t),o=n.resolve,r=n.reject,i=L((function(){var n=g(t.resolve),i=[],a=0,c=1;v(e,(function(e){var l=a++,s=!1;i.push(undefined),c++,n.call(t,e).then((function(e){s||(s=!0,i[l]=e,--c||o(i))}),r)})),--c||o(i)}));return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=H(t),o=n.reject,r=L((function(){var r=g(t.resolve);v(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(e,t,n){"use strict";var o=n(6);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){"use strict";var o=n(4),r=n(40),i=n(172),a=n(5),c=n(39),l=n(48),s=n(175),d=n(26);o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=l(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof i||i.prototype["finally"]||d(i.prototype,"finally",c("Promise").prototype["finally"])},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(5),l=r("Reflect","apply"),s=Function.apply;o({target:"Reflect",stat:!0,forced:!c((function(){l((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),l?l(e,t,n):s.call(e,t,n)}})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(8),l=n(45),s=n(165),d=n(5),u=r("Reflect","construct"),p=d((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),m=!d((function(){u((function(){}))})),h=p||m;o({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(m&&!p)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(s.apply(e,o))}var r=n.prototype,d=l(c(r)?r:Object.prototype),h=Function.apply.call(e,d,t);return c(h)?h:d}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(36),c=n(14);o({target:"Reflect",stat:!0,forced:n(5)((function(){Reflect.defineProperty(c.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(e,t,n){i(e);var o=a(t,!0);i(n);try{return c.f(e,o,n),!0}catch(r){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(22).f;o({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(10),a=n(19),c=n(22),l=n(38);o({target:"Reflect",stat:!0},{get:function s(e,t){var n,o,d=arguments.length<3?e:arguments[2];return i(e)===d?e[t]:(n=c.f(e,t))?a(n,"value")?n.value:n.get===undefined?undefined:n.get.call(d):r(o=l(e))?s(o,t,d):void 0}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(22);o({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(38);o({target:"Reflect",stat:!0,sham:!n(119)},{getPrototypeOf:function(e){return i(r(e))}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=Object.isExtensible;o({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{ownKeys:n(109)})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(10);o({target:"Reflect",stat:!0,sham:!n(78)},{preventExtensions:function(e){i(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(8),a=n(19),c=n(5),l=n(14),s=n(22),d=n(38),u=n(53);o({target:"Reflect",stat:!0,forced:c((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(d(e),"a",1,e)}))},{set:function p(e,t,n){var o,c,m=arguments.length<4?e:arguments[3],h=s.f(r(e),t);if(!h){if(i(c=d(e)))return p(c,t,n,m);h=u(0)}if(a(h,"value")){if(!1===h.writable||!i(m))return!1;if(o=s.f(m,t)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,l.f(m,t,o)}else l.f(m,t,u(0,n));return!0}return h.set!==undefined&&(h.set.call(m,n),!0)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(162),a=n(57);a&&o({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(91),c=n(14).f,l=n(54).f,s=n(125),d=n(95),u=n(126),p=n(26),m=n(5),h=n(37).set,f=n(60),C=n(13)("match"),g=r.RegExp,N=g.prototype,b=/a/g,V=/a/g,v=new g(b)!==b,x=u.UNSUPPORTED_Y;if(o&&i("RegExp",!v||x||m((function(){return V[C]=!1,g(b)!=b||g(V)==V||"/a/i"!=g(b,"i")})))){for(var y=function(e,t){var n,o=this instanceof y,r=s(e),i=t===undefined;if(!o&&r&&e.constructor===y&&i)return e;v?r&&!i&&(e=e.source):e instanceof y&&(i&&(t=d.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(v?new g(e,t):g(e,t),o?this:N,y);return x&&n&&h(c,{sticky:n}),c},k=function(e){e in y||c(y,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},w=l(g),_=0;w.length>_;)k(w[_++]);N.constructor=y,y.prototype=N,p(r,"RegExp",y)}f("RegExp")},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(95),a=n(126).UNSUPPORTED_Y;o&&("g"!=/./g.flags||a)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var o=n(26),r=n(10),i=n(5),a=n(95),c=RegExp.prototype,l=c.toString,s=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d="toString"!=l.name;(s||d)&&o(RegExp.prototype,"toString",(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===undefined&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(127).codeAt;o({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var o,r=n(4),i=n(22).f,a=n(12),c=n(128),l=n(25),s=n(129),d=n(40),u="".endsWith,p=Math.min,m=s("endsWith");r({target:"String",proto:!0,forced:!!(d||m||(o=i(String.prototype,"endsWith"),!o||o.writable))&&!m},{endsWith:function(e){var t=String(l(this));c(e);var n=arguments.length>1?arguments[1]:undefined,o=a(t.length),r=n===undefined?o:p(a(n),o),i=String(e);return u?u.call(t,i,r):t.slice(r-i.length,r)===i}})},function(e,t,n){"use strict";var o=n(4),r=n(44),i=String.fromCharCode,a=String.fromCodePoint;o({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(4),r=n(128),i=n(25);o({target:"String",proto:!0,forced:!n(129)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(r(e),arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(127).charAt,r=n(37),i=n(118),a=r.set,c=r.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:undefined,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(12),a=n(25),c=n(130),l=n(98);o("match",1,(function(e,t,n){return[function(t){var n=a(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var a=r(e),s=String(this);if(!a.global)return l(a,s);var d=a.unicode;a.lastIndex=0;for(var u,p=[],m=0;null!==(u=l(a,s));){var h=String(u[0]);p[m]=h,""===h&&(a.lastIndex=c(s,i(a.lastIndex),d)),m++}return 0===m?null:p}]}))},function(e,t,n){"use strict";var o=n(4),r=n(121).end;o({target:"String",proto:!0,forced:n(178)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(121).start;o({target:"String",proto:!0,forced:n(178)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(28),i=n(12);o({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c]*>)/g,f=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var C=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=o.REPLACE_KEEPS_$0,N=C?"$":"$0";return[function(n,o){var r=l(this),i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,r,o):t.call(String(r),n,o)},function(e,o){if(!C&&g||"string"==typeof o&&-1===o.indexOf(N)){var i=n(t,e,this,o);if(i.done)return i.value}var l=r(e),m=String(this),h="function"==typeof o;h||(o=String(o));var f=l.global;if(f){var V=l.unicode;l.lastIndex=0}for(var v=[];;){var x=d(l,m);if(null===x)break;if(v.push(x),!f)break;""===String(x[0])&&(l.lastIndex=s(m,a(l.lastIndex),V))}for(var y,k="",w=0,_=0;_=w&&(k+=m.slice(w,S)+D,w=S+B.length)}return k+m.slice(w)}];function b(e,n,o,r,a,c){var l=o+e.length,s=r.length,d=f;return a!==undefined&&(a=i(a),d=h),t.call(c,d,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(l);case"<":c=a[i.slice(1,-1)];break;default:var d=+i;if(0===d)return t;if(d>s){var u=m(d/10);return 0===u?t:u<=s?r[u-1]===undefined?i.charAt(1):r[u-1]+i.charAt(1):t}c=r[d-1]}return c===undefined?"":c}))}}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(25),a=n(171),c=n(98);o("search",1,(function(e,t,n){return[function(t){var n=i(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var i=r(e),l=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var d=c(i,l);return a(i.lastIndex,s)||(i.lastIndex=s),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var o=n(97),r=n(125),i=n(10),a=n(25),c=n(48),l=n(130),s=n(12),d=n(98),u=n(96),p=n(5),m=[].push,h=Math.min,f=!p((function(){return!RegExp(4294967295,"y")}));o("split",2,(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=String(a(this)),i=n===undefined?4294967295:n>>>0;if(0===i)return[];if(e===undefined)return[o];if(!r(e))return t.call(o,e,i);for(var c,l,s,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,f=new RegExp(e.source,p+"g");(c=u.call(f,o))&&!((l=f.lastIndex)>h&&(d.push(o.slice(h,c.index)),c.length>1&&c.index=i));)f.lastIndex===c.index&&f.lastIndex++;return h===o.length?!s&&f.test("")||d.push(""):d.push(o.slice(h)),d.length>i?d.slice(0,i):d}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,r,n):o.call(String(r),t,n)},function(e,r){var a=n(o,e,this,r,o!==t);if(a.done)return a.value;var u=i(e),p=String(this),m=c(u,RegExp),C=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),N=new m(f?u:"^(?:"+u.source+")",g),b=r===undefined?4294967295:r>>>0;if(0===b)return[];if(0===p.length)return null===d(N,p)?[p]:[];for(var V=0,v=0,x=[];v1?arguments[1]:undefined,t.length)),o=String(e);return u?u.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var o=n(4),r=n(62).trim;o({target:"String",proto:!0,forced:n(131)("trim")},{trim:function(){return r(this)}})},function(e,t,n){"use strict";var o=n(4),r=n(62).end,i=n(131)("trimEnd"),a=i?function(){return r(this)}:"".trimEnd;o({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var o=n(4),r=n(62).start,i=n(131)("trimStart"),a=i?function(){return r(this)}:"".trimStart;o({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("big")},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("blink")},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("bold")},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("italics")},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("link")},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("small")},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("strike")},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sub")},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sup")},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){"use strict";n(42)("Float32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(33);e.exports=function(e){var t=o(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n(42)("Float64",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},function(e,t,n){"use strict";n(42)("Uint16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(11),r=n(157),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return r.call(i(this),e,t,arguments.length>2?arguments[2]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(114),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).filter,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("filter",(function(e){for(var t=r(a(this),e,arguments.length>1?arguments[1]:undefined),n=i(this,this.constructor),o=0,l=t.length,s=new(c(n))(l);l>o;)s[o]=t[o++];return s}))},function(e,t,n){"use strict";var o=n(11),r=n(21).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(132);(0,n(11).exportTypedArrayStaticMethod)("from",n(180),o)},function(e,t,n){"use strict";var o=n(11),r=n(71).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(71).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(160),a=n(13)("iterator"),c=o.Uint8Array,l=i.values,s=i.keys,d=i.entries,u=r.aTypedArray,p=r.exportTypedArrayMethod,m=c&&c.prototype[a],h=!!m&&("values"==m.name||m.name==undefined),f=function(){return l.call(u(this))};p("entries",(function(){return d.call(u(this))})),p("keys",(function(){return s.call(u(this))})),p("values",f,!h),p(a,f,!h)},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(r(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(163),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).map,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(c(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var o=n(11),r=n(132),i=o.aTypedArrayConstructor;(0,o.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var o=n(11),r=n(88).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(88).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=r(this).length,n=a(t/2),o=0;o1?arguments[1]:undefined,1),n=this.length,o=a(e),c=r(o.length),s=0;if(c+t>n)throw RangeError("Wrong length");for(;si;)d[i]=n[i++];return d}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var o=n(11),r=n(21).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(r(this),e)}))},function(e,t,n){"use strict";var o=n(11),r=n(12),i=n(44),a=n(48),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=c(this),o=n.length,l=i(e,o);return new(a(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((t===undefined?o:i(t,o))-l))}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(5),a=o.Int8Array,c=r.aTypedArray,l=r.exportTypedArrayMethod,s=[].toLocaleString,d=[].slice,u=!!a&&i((function(){s.call(new a(1))}));l("toLocaleString",(function(){return s.apply(u?d.call(c(this)):c(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var o=n(11).exportTypedArrayMethod,r=n(5),i=n(6).Uint8Array,a=i&&i.prototype||{},c=[].toString,l=[].join;r((function(){c.call({})}))&&(c=function(){return l.call(this)});var s=a.toString!=c;o("toString",c,s)},function(e,t,n){"use strict";var o,r=n(6),i=n(77),a=n(58),c=n(90),l=n(181),s=n(8),d=n(37).enforce,u=n(148),p=!r.ActiveXObject&&"ActiveXObject"in r,m=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},f=e.exports=c("WeakMap",h,l);if(u&&p){o=l.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var C=f.prototype,g=C["delete"],N=C.has,b=C.get,V=C.set;i(C,{"delete":function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)||t.frozen.has(e)}return N.call(this,e)},get:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(s(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new o),N.call(this,e)?V.call(this,e,t):n.frozen.set(e,t)}else V.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(90)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(181))},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(124);o({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(174),a=n(35),c=r.process,l="process"==a(c);o({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&c.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(85),a=[].slice,c=function(e){return function(t,n){var o=arguments.length>2,r=o?a.call(arguments,2):undefined;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t._CI=Se,t._HI=P,t._M=Le,t._MCCC=De,t._ME=Ee,t._MFCC=Te,t._MP=_e,t._MR=Ne,t.__render=Re,t.createComponentVNode=function(e,t,n,o,r){var a=new L(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),o,function(e,t,n){var o=(32768&e?t.render:t).defaultProps;if(i(o))return n;if(i(n))return d(o,null);return B(n,o)}(e,t,n),function(e,t,n){if(4&e)return n;var o=(32768&e?t.render:t).defaultHooks;if(i(o))return n;if(i(n))return o;return B(n,o)}(e,t,r),t);k.createVNode&&k.createVNode(a);return a},t.createFragment=I,t.createPortal=function(e,t){var n=P(e);return A(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,o,r){e||(e=t),je(n,e,o,r)}},t.createTextVNode=E,t.createVNode=A,t.directClone=D,t.findDOMfromVNode=b,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&i(e.children)&&M(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=je,t.rerender=Ye,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var o=Array.isArray;function r(e){var t=typeof e;return"string"===t||"number"===t}function i(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function l(e){return"string"==typeof e}function s(e){return null===e}function d(e,t){var n={};if(e)for(var o in e)n[o]=e[o];if(t)for(var r in t)n[r]=t[r];return n}function u(e){return!s(e)&&"object"==typeof e}var p={};t.EMPTY_OBJ=p;function m(e){return e.substr(2).toLowerCase()}function h(e,t){e.appendChild(t)}function f(e,t,n){s(n)?h(e,t):e.insertBefore(t,n)}function C(e,t){e.removeChild(t)}function g(e){for(var t=0;t0,h=s(p),f=l(p)&&"$"===p[0];m||h||f?(n=n||t.slice(0,d),(m||f)&&(u=D(u)),(h||f)&&(u.key="$"+d),n.push(u)):n&&n.push(u),u.flags|=65536}}i=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=D(t)),i=2;return e.children=n,e.childFlags=i,e}function P(e){return a(e)||r(e)?E(e,null):o(e)?I(e,0,null):16384&e.flags?D(e):e}var O="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",j={"xlink:actuate":O,"xlink:arcrole":O,"xlink:href":O,"xlink:role":O,"xlink:show":O,"xlink:title":O,"xlink:type":O,"xml:base":R,"xml:lang":R,"xml:space":R};function U(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var z=U(0),W=U(null),H=U(!0);function K(e,t){var n=t.$EV;return n||(n=t.$EV=U(null)),n[e]||1==++z[e]&&(W[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?G(t,!0,e,$(t)):t.stopPropagation()}}(e):function(e){return function(t){G(t,!1,e,$(t))}}(e);return document.addEventListener(m(e),t),t}(e)),n}function Y(e,t){var n=t.$EV;n&&n[e]&&(0==--z[e]&&(document.removeEventListener(m(e),W[e]),W[e]=null),n[e]=null)}function G(e,t,n,o){var r=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&r.disabled)return;var i=r.$EV;if(i){var a=i[n];if(a&&(o.dom=r,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}r=r.parentNode}while(!s(r))}function q(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function X(){return this.defaultPrevented}function J(){return this.cancelBubble}function $(e){var t={dom:document};return e.isDefaultPrevented=X,e.isPropagationStopped=J,e.stopPropagation=q,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function Z(e,t,n){if(e[t]){var o=e[t];o.event?o.event(o.data,n):o(n)}else{var r=t.toLowerCase();e[r]&&e[r](n)}}function Q(e,t){var n=function(n){var o=this.$V;if(o){var r=o.props||p,i=o.dom;if(l(e))Z(r,e,n);else for(var a=0;a-1&&t.options[a]&&(c=t.options[a].value),n&&i(c)&&(c=e.defaultValue),ae(o,c)}}var se,de,ue=Q("onInput",me),pe=Q("onChange");function me(e,t,n){var o=e.value,r=t.value;if(i(o)){if(n){var a=e.defaultValue;i(a)||a===r||(t.defaultValue=a,t.value=a)}}else r!==o&&(t.defaultValue=o,t.value=o)}function he(e,t,n,o,r,i){64&e?ie(o,n):256&e?le(o,n,r,t):128&e&&me(o,n,r),i&&(n.$V=t)}function fe(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",oe),ee(e,"click",re)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ce)}(t):128&e&&function(e,t){ee(e,"input",ue),t.onChange&&ee(e,"change",pe)}(t,n)}function Ce(e){return e.type&&te(e.type)?!i(e.checked):!i(e.value)}function ge(e){e&&!S(e,null)&&e.current&&(e.current=null)}function Ne(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){S(e,t)||void 0===e.current||(e.current=t)}))}function be(e,t){Ve(e),V(e,t)}function Ve(e){var t,n=e.flags,o=e.children;if(481&n){t=e.ref;var r=e.props;ge(t);var a=e.childFlags;if(!s(r))for(var l=Object.keys(r),d=0,u=l.length;d0;for(var c in a&&(i=Ce(n))&&fe(t,o,n),n)we(c,null,n[c],o,r,i,null);a&&he(t,e,o,n,!0,i)}function Be(e,t,n){var o=P(e.render(t,e.state,n)),r=n;return c(e.getChildContext)&&(r=d(n,e.getChildContext())),e.$CX=r,o}function Se(e,t,n,o,r,i){var a=new t(n,o),l=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=r,a.$L=i,e.children=a,a.$BS=!1,a.context=o,a.props===p&&(a.props=n),l)a.state=x(a,n,a.state);else if(c(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var d=a.$PS;if(!s(d)){var u=a.state;if(s(u))a.state=d;else for(var m in d)u[m]=d[m];a.$PS=null}a.$BR=!1}return a.$LI=Be(a,n,o),a}function Le(e,t,n,o,r,i){var a=e.flags|=16384;481&a?Ee(e,t,n,o,r,i):4&a?function(e,t,n,o,r,i){var a=Se(e,e.type,e.props||p,n,o,i);Le(a.$LI,t,a.$CX,o,r,i),De(e.ref,a,i)}(e,t,n,o,r,i):8&a?(!function(e,t,n,o,r,i){Le(e.children=P(function(e,t){return 32768&e.flags?e.type.render(e.props||p,e.ref,t):e.type(e.props||p,t)}(e,n)),t,n,o,r,i)}(e,t,n,o,r,i),Te(e,i)):512&a||16&a?Ae(e,t,r):8192&a?function(e,t,n,o,r,i){var a=e.children,c=e.childFlags;12&c&&0===a.length&&(c=e.childFlags=2,a=e.children=T());2===c?Le(a,n,r,o,r,i):Ie(a,n,t,o,r,i)}(e,n,t,o,r,i):1024&a&&function(e,t,n,o,r){Le(e.children,e.ref,t,!1,null,r);var i=T();Ae(i,n,o),e.dom=i.dom}(e,n,t,r,i)}function Ae(e,t,n){var o=e.dom=document.createTextNode(e.children);s(t)||f(t,o,n)}function Ee(e,t,n,o,r,a){var c=e.flags,l=e.props,d=e.className,u=e.children,p=e.childFlags,m=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,o=o||(32&c)>0);if(i(d)||""===d||(o?m.setAttribute("class",d):m.className=d),16===p)w(m,u);else if(1!==p){var h=o&&"foreignObject"!==e.type;2===p?(16384&u.flags&&(e.children=u=D(u)),Le(u,m,n,h,null,a)):8!==p&&4!==p||Ie(u,m,n,h,null,a)}s(t)||f(t,m,r),s(l)||_e(e,c,l,m,o),Ne(e.ref,m,a)}function Ie(e,t,n,o,r,i){for(var a=0;a0,s!==d){var h=s||p;if((c=d||p)!==p)for(var f in(u=(448&r)>0)&&(m=Ce(c)),c){var C=h[f],g=c[f];C!==g&&we(f,C,g,l,o,m,e)}if(h!==p)for(var N in h)i(c[N])&&!i(h[N])&&we(N,h[N],null,l,o,m,e)}var b=t.children,V=t.className;e.className!==V&&(i(V)?l.removeAttribute("class"):o?l.setAttribute("class",V):l.className=V);4096&r?function(e,t){e.textContent!==t&&(e.textContent=t)}(l,b):Me(e.childFlags,t.childFlags,e.children,b,l,n,o&&"foreignObject"!==t.type,null,e,a);u&&he(r,t,l,c,!1,m);var v=t.ref,x=e.ref;x!==v&&(ge(x),Ne(v,l,a))}(e,t,o,r,m,u):4&m?function(e,t,n,o,r,i,a){var l=t.children=e.children;if(s(l))return;l.$L=a;var u=t.props||p,m=t.ref,h=e.ref,f=l.state;if(!l.$N){if(c(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(u,o),l.$UN)return;l.$BR=!1}s(l.$PS)||(f=d(f,l.$PS),l.$PS=null)}Pe(l,f,u,n,o,r,!1,i,a),h!==m&&(ge(h),Ne(m,l,a))}(e,t,n,o,r,l,u):8&m?function(e,t,n,o,r,a,l){var s=!0,d=t.props||p,u=t.ref,m=e.props,h=!i(u),f=e.children;h&&c(u.onComponentShouldUpdate)&&(s=u.onComponentShouldUpdate(m,d));if(!1!==s){h&&c(u.onComponentWillUpdate)&&u.onComponentWillUpdate(m,d);var C=t.type,g=P(32768&t.flags?C.render(d,u,o):C(d,o));Fe(f,g,n,o,r,a,l),t.children=g,h&&c(u.onComponentDidUpdate)&&u.onComponentDidUpdate(m,d)}else t.children=f}(e,t,n,o,r,l,u):16&m?function(e,t){var n=t.children,o=t.dom=e.dom;n!==e.children&&(o.nodeValue=n)}(e,t):512&m?t.dom=e.dom:8192&m?function(e,t,n,o,r,i){var a=e.children,c=t.children,l=e.childFlags,s=t.childFlags,d=null;12&s&&0===c.length&&(s=t.childFlags=2,c=t.children=T());var u=0!=(2&s);if(12&l){var p=a.length;(8&l&&8&s||u||!u&&c.length>p)&&(d=b(a[p-1],!1).nextSibling)}Me(l,s,a,c,n,o,r,d,e,i)}(e,t,n,o,r,u):function(e,t,n,o){var r=e.ref,i=t.ref,c=t.children;if(Me(e.childFlags,t.childFlags,e.children,c,r,n,!1,null,e,o),t.dom=e.dom,r!==i&&!a(c)){var l=c.dom;C(r,l),h(i,l)}}(e,t,o,u)}function Me(e,t,n,o,r,i,a,c,l,s){switch(e){case 2:switch(t){case 2:Fe(n,o,r,i,a,c,s);break;case 1:be(n,r);break;case 16:Ve(n),w(r,o);break;default:!function(e,t,n,o,r,i){Ve(e),Ie(t,n,o,r,b(e,!0),i),V(e,n)}(n,o,r,i,a,s)}break;case 1:switch(t){case 2:Le(o,r,i,a,c,s);break;case 1:break;case 16:w(r,o);break;default:Ie(o,r,i,a,c,s)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:w(n,t))}(n,o,r);break;case 2:xe(r),Le(o,r,i,a,c,s);break;case 1:xe(r);break;default:xe(r),Ie(o,r,i,a,c,s)}break;default:switch(t){case 16:ve(n),w(r,o);break;case 2:ye(r,l,n),Le(o,r,i,a,c,s);break;case 1:ye(r,l,n);break;default:var d=0|n.length,u=0|o.length;0===d?u>0&&Ie(o,r,i,a,c,s):0===u?ye(r,l,n):8===t&&8===e?function(e,t,n,o,r,i,a,c,l,s){var d,u,p=i-1,m=a-1,h=0,f=e[h],C=t[h];e:{for(;f.key===C.key;){if(16384&C.flags&&(t[h]=C=D(C)),Fe(f,C,n,o,r,c,s),e[h]=C,++h>p||h>m)break e;f=e[h],C=t[h]}for(f=e[p],C=t[m];f.key===C.key;){if(16384&C.flags&&(t[m]=C=D(C)),Fe(f,C,n,o,r,c,s),e[p]=C,p--,m--,h>p||h>m)break e;f=e[p],C=t[m]}}if(h>p){if(h<=m)for(u=(d=m+1)m)for(;h<=p;)be(e[h++],n);else!function(e,t,n,o,r,i,a,c,l,s,d,u,p){var m,h,f,C=0,g=c,N=c,V=i-c+1,x=a-c+1,y=new Int32Array(x+1),k=V===o,w=!1,_=0,B=0;if(r<4||(V|x)<32)for(C=g;C<=i;++C)if(m=e[C],Bc?w=!0:_=c,16384&h.flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B;break}!k&&c>a&&be(m,l)}else k||be(m,l);else{var S={};for(C=N;C<=a;++C)S[t[C].key]=C;for(C=g;C<=i;++C)if(m=e[C],Bg;)be(e[g++],l);y[c-N]=C+1,_>c?w=!0:_=c,16384&(h=t[c]).flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B}else k||be(m,l);else k||be(m,l)}if(k)ye(l,u,e),Ie(t,l,n,s,d,p);else if(w){var L=function(e){var t=0,n=0,o=0,r=0,i=0,a=0,c=0,l=e.length;l>Oe&&(Oe=l,se=new Int32Array(l),de=new Int32Array(l));for(;n>1]]0&&(de[n]=se[i-1]),se[i]=n)}i=r+1;var s=new Int32Array(i);a=se[i-1];for(;i-- >0;)s[i]=a,a=de[a],se[i]=0;return s}(y);for(c=L.length-1,C=x-1;C>=0;C--)0===y[C]?(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)=0;C--)0===y[C]&&(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)a?a:i,p=0;pa)for(p=u;p=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),v(n),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;v(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:y(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=o}catch(r){Function("r","regeneratorRuntime = r")(o)}},function(e,t,n){"use strict";t.__esModule=!0,t.vecNormalize=t.vecLength=t.vecInverse=t.vecScale=t.vecDivide=t.vecMultiply=t.vecSubtract=t.vecAdd=t.vecCreate=void 0;var o=n(24);t.vecCreate=function(){for(var e=arguments.length,t=new Array(e),n=0;n3?c(a):null,b=String(a.key),V=String(a.char),v=a.location,x=a.keyCode||(a.keyCode=b)&&b.charCodeAt(0)||0,y=a.charCode||(a.charCode=V)&&V.charCodeAt(0)||0,k=a.bubbles,w=a.cancelable,_=a.repeat,B=a.locale,S=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in p)p.initKeyEvent(t,k,w,S,m,f,h,C,x,y);else if(0>>0),t=Element.prototype,n=t.querySelector,o=t.querySelectorAll;function r(t,n,o){t.setAttribute(e,null);var r=n.call(t,String(o).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,o,r){return n+"["+e+"]"+(r||" ")})));return t.removeAttribute(e),r}t.querySelector=function(e){return r(this,n,e)},t.querySelectorAll=function(e){return r(this,o,e)}}()}}(window),function(e){var t=e.WeakMap||function(){var e,t=0,n=!1,o=!1;function r(t,r,i){o=i,n=!1,e=undefined,t.dispatchEvent(r)}function i(e){this.value=e}function c(){t++,this.__ce__=new a("@DOMMap:"+t+Math.random())}return i.prototype.handleEvent=function(t){n=!0,o?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},c.prototype={constructor:c,"delete":function(e){return r(e,this.__ce__,!0),n},get:function(t){r(t,this.__ce__,!1);var n=e;return e=undefined,n},has:function(e){return r(e,this.__ce__,!1),n},set:function(e,t){return r(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new i(t),!1),this}},c}();function n(){}function o(e,t,n){function r(e){r.once&&(e.currentTarget.removeEventListener(e.type,t,r),r.removed=!0),r.passive&&(e.preventDefault=o.preventDefault),"function"==typeof r.callback?r.callback.call(this,e):r.callback&&r.callback.handleEvent(e),r.passive&&delete e.preventDefault}return r.type=e,r.callback=t,r.capture=!!n.capture,r.passive=!!n.passive,r.once=!!n.once,r.removed=!1,r}n.prototype=(Object.create||Object)(null),o.preventDefault=function(){};var r,i,a=e.CustomEvent,c=e.dispatchEvent,l=e.addEventListener,s=e.removeEventListener,d=0,u=function(){d++},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},m=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{l("_",u,{once:!0}),c(new a("_")),c(new a("_")),s("_",u,{once:!0})}catch(h){}1!==d&&(i=new t,r=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,r,a){if(a&&"boolean"!=typeof a){var c,l,s,d=i.get(this),u=m(a);d||i.set(this,d=new n),t in d||(d[t]={handler:[],wrap:[]}),l=d[t],(c=p.call(l.handler,r))<0?(c=l.handler.push(r)-1,l.wrap[c]=s=new n):s=l.wrap[c],u in s||(s[u]=o(t,r,a),e.call(this,t,s[u],s[u].capture))}else e.call(this,t,r,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,o){if(o&&"boolean"!=typeof o){var r,a,c,l,s=i.get(this);if(s&&t in s&&(c=s[t],-1<(a=p.call(c.handler,n))&&(r=m(o))in(l=c.wrap[a]))){for(r in e.call(this,t,l[r],l[r].capture),delete l[r],l)return;c.handler.splice(a,1),c.wrap.splice(a,1),0===c.handler.length&&delete s[t]}}else e.call(this,t,n,o)}}(t.removeEventListener)}},e.EventTarget?r(EventTarget):(r(e.Text),r(e.Element||e.HTMLElement),r(e.HTMLDocument),r(e.Window||{prototype:e}),r(e.XMLHttpRequest)))}(window)},function(e,t,n){"use strict";!function(t,n){var o,r,i=t.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l=0,s={};function d(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function u(e){var t=s[e._html5shiv];return t||(t={},l++,e._html5shiv=l,s[l]=t),t}function p(e,t,o){return t||(t=n),r?t.createElement(e):(o||(o=u(t)),!(i=o.cache[e]?o.cache[e].cloneNode():c.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||a.test(e)||i.tagUrn?i:o.frag.appendChild(i));var i}function m(e){e||(e=n);var t=u(e);return!h.shivCSS||o||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),o=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",o.insertBefore(n.lastChild,o.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?p(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(h,t.frag)}(e,t),e}!function(){try{var e=n.createElement("a");e.innerHTML="",o="hidden"in e,r=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){o=!0,r=!0}}();var h={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==i.shivCSS,supportsUnknownElements:r,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:m,createElement:p,createDocumentFragment:function(e,t){if(e||(e=n),r)return e.createDocumentFragment();for(var o=(t=t||u(e)).frag.cloneNode(),i=0,a=d(),c=a.length;i1?r-1:0),a=1;a1?t-1:0),o=1;o=0||(r[n]=e[n]);return r}(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";var o,r;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=o,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(o||(t.VNodeFlags=o={})),t.ChildFlags=r,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(r||(t.ChildFlags=r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.debounce=void 0;t.debounce=function(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=arguments.length,i=new Array(r),a=0;a=0||(r[n]=e[n]);return r}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),C=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var i=(0,r.zipWith)(Math.min).apply(void 0,e),a=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(i[0]=n[0],a[0]=n[1]),o!==undefined&&(i[1]=o[0],a[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,i,a,t)}))(e)}(i,C,a,l);if(g.length>0){var N=g[0],b=g[g.length-1];g.push([C[0]+h,b[1]]),g.push([C[0]+h,-h]),g.push([-h,-h]),g.push([-h,N[1]])}var V=function(e){for(var t="",n=0;n=0||(r[n]=e[n]);return r}(t,["children","color","title","buttons"]);return(0,o.createVNode)(1,"div","Collapsible",[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({fluid:!0,color:l,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},u,{children:s}))),2),d&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",d,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:a})],0)},a}(o.Component);t.Collapsible=a},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.content,n=(e.children,e.className),a=e.color,c=e.backgroundColor,l=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["content","children","className","color","backgroundColor"]);return l.color=t?null:"transparent",l.backgroundColor=a||c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,i.computeBoxClassName)(l)]),t||".",0,Object.assign({},(0,i.computeBoxProps)(l))))};t.ColorBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(0),r=n(7),i=n(17),a=n(138);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t,n;function l(t){var n;return(n=e.call(this,t)||this).state={open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},s.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},s.setSelected=function(e){this.setOpen(!1),this.props.onSelected(e)},s.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){return(0,o.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return n.length?n:"No Options Found"},s.render=function(){var e=this,t=this.props,n=t.color,l=void 0===n?"default":n,s=t.over,d=t.noscroll,u=t.nochevron,p=t.width,m=(t.onClick,t.selected),h=t.disabled,f=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled"]),C=f.className,g=c(f,["className"]),N=s?!this.state.open:this.state.open,b=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([d?"Dropdown__menu-noscroll":"Dropdown__menu",s&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:p}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({width:p,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+l,h&&"Button--disabled",C])},g,{onClick:function(){h&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,o.createVNode)(1,"span","Dropdown__selected-text",m,0),!!u||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,a.Icon,{name:N?"chevron-up":"chevron-down"}),2)]}))),b],0)},l}(o.Component);t.Dropdown=l},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){return(0,r.isFalsy)(e)?"":e},l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,i=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),i&&i(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e),this.props.autofocus&&(t.focus(),t.selectionStart=0,t.selectionEnd=t.value.length))},s.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,i=this.inputRef.current;i&&!n&&o!==r&&(i.value=c(r))},s.setEditing=function(e){this.setState({editing:e})},s.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=(e.autofocus,e.disabled),l=e.multiline,s=e.cols,d=void 0===s?32:s,u=e.rows,p=void 0===u?4:u,m=a(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"]),h=m.className,f=m.fluid,C=a(m,["className","fluid"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Input",f&&"Input--fluid",c&&"Input--disabled",h])},C,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),l?(0,o.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:t,cols:d,rows:p,disabled:c},null,this.inputRef):(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t,disabled:c},null,this.inputRef)]})))},l}(o.Component);t.Input=l},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Knob=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.style,v=e.fillValue,x=e.color,y=e.ranges,k=void 0===y?{}:y,w=e.size,_=e.bipolar,B=(e.children,e.popUpPosition),S=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=(0,r.scale)(null!=v?v:a,u,d),h=(0,r.scale)(a,u,d),f=x||(0,r.keyOfMatchingRange)(null!=v?v:n,k)||"default",C=270*(h-.5);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Knob","Knob--color--"+f,_&&"Knob--bipolar",b,(0,c.computeBoxClassName)(S)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+C+"deg)"}}),2),t&&(0,o.createVNode)(1,"div",(0,i.classes)(["Knob__popupValue",B&&"Knob__popupValue--"+B]),l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((_?2.75:2)-1.5*m)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),s],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":w+"rem"},V)},S)),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(0),r=n(50);function i(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var a=function(e){var t=e.children,n=i(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=a;a.Item=function(e){var t=e.label,n=e.children,a=i(e,["label","children"]);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:1,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},a,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var o=n(0),r=n(2),i=n(1),a=n(64),c=n(190),l=n(185);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1},u=function(e){function t(t){var n;n=e.call(this,t)||this;var o=window.innerHeight/2-256;return n.state={offsetX:0,offsetY:o,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},n.handleDragStart=function(e){n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd),d(e)},n.handleDragMove=function(e){n.setState((function(t){var n=Object.assign({},t),o=e.screenX-n.originX,r=e.screenY-n.originY;return t.dragging?(n.offsetX+=o,n.offsetY+=r,n.originX=e.screenX,n.originY=e.screenY):n.dragging=!0,n})),d(e)},n.handleDragEnd=function(e){n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),d(e)},n.handleZoom=function(e,o){n.setState((function(e){var n=Math.min(Math.max(o,1),8),r=n/e.zoom;if(1!==r){e.zoom=n;var i=document.getElementsByClassName("NanoMap__container");if(i.length){var a=(0,l.getBoundingBox)(i[0]),c=a.size[0]/2-e.offsetX,s=a.size[1]/2-e.offsetY;e.offsetX+=c-c*r,e.offsetY+=s-s*r}return t.onZoom&&t.onZoom(e.zoom),e}}))},n}return s(t,e),t.prototype.render=function(){var e=(0,i.useBackend)(this.context).config,t=this.state,n=t.dragging,a=t.offsetX,c=t.offsetY,l=t.zoom,s=void 0===l?1:l,d=this.props.children,u=510*s+"px",p={width:u,height:u,"margin-top":c+"px","margin-left":a+"px",overflow:"hidden",position:"relative","background-image":"url("+e.map+"_nanomap_z1.png)","background-size":"cover","background-repeat":"no-repeat",border:"1px solid rgba(0, 0, 0, .3)","text-align":"center",cursor:n?"move":"auto"};return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:[(0,o.createComponentVNode)(2,r.Box,{style:p,textAlign:"center",onMouseDown:this.handleDragStart,children:(0,o.createComponentVNode)(2,r.Box,{children:d})}),(0,o.createComponentVNode)(2,h,{zoom:s,onZoom:this.handleZoom})]})},t}(o.Component);t.NanoMap=u;var p,m=function(e){function t(t){var n;n=e.call(this,t)||this;var o=(0,i.useBackend)(n.props.context).act;return n.state={color:n.props.color},n.handleClick=function(e){p!==undefined&&p.setState({color:"blue"}),o("switch_camera",{name:n.props.name}),p=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),n.setState({color:"green"})},n}return s(t,e),t.prototype.render=function(){var e=2*this.props.x*this.props.zoom-this.props.zoom-3,t=2*this.props.y*this.props.zoom-this.props.zoom-3;return(0,o.createComponentVNode)(2,r.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:t+"px",left:e+"px",children:(0,o.createComponentVNode)(2,r.Tooltip,{content:this.props.tooltip})},this.props.key)},t}(o.Component);u.NanoButton=m,u.Marker=function(e){var t=e.x,n=e.y,i=e.zoom,a=void 0===i?1:i,c=e.icon,l=e.tooltip,s=e.color,d=e.onClick,u=e.size,p=void 0===u?6:u,m=2*t*a-a-3,h=2*n*a-a-3;return(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:h+"px",left:m+"px",onClick:d,children:[(0,o.createComponentVNode)(2,r.Icon,{name:c,color:s,fontSize:p+"px"}),(0,o.createComponentVNode)(2,r.Tooltip,{content:l})]}),2)};var h=function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__zoomer",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Zoom",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(e){return e+"x"},value:e.zoom,onDrag:function(t,n){return e.onZoom(t,n)}})})})})};u.Zoomer=h},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(0),r=n(7),i=n(17),a=n(186);t.Modal=function(e){var t,n=e.className,c=e.children,l=e.onEnter,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","children","onEnter"]);return l&&(t=function(e){13===e.keyCode&&l(e)}),(0,o.createComponentVNode)(2,a.Dimmer,{onKeyDown:t,children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",n,(0,i.computeBoxClassName)(s)]),c,0,Object.assign({},(0,i.computeBoxProps)(s))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.className,n=e.color,a=e.info,c=(e.warning,e.success),l=e.danger,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","color","info","warning","success","danger"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,a&&"NoticeBox--type--info",c&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",t])},s)))};t.NoticeBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBarCountdown=t.ProgressBar=void 0;var o=n(0),r=n(15),i=n(7),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.value,l=e.minValue,s=void 0===l?0:l,d=e.maxValue,u=void 0===d?1:d,p=e.color,m=e.ranges,h=void 0===m?{}:m,f=e.children,C=e.fractionDigits,g=void 0===C?0:C,N=c(e,["className","value","minValue","maxValue","color","ranges","children","fractionDigits"]),b=(0,r.scale)(n,s,u),V=f!==undefined,v=p||(0,r.keyOfMatchingRange)(n,h)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar","ProgressBar--color--"+v,t,(0,a.computeBoxClassName)(N)]),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,r.clamp01)(b)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",V?f:(0,r.toFixed)(100*b,g)+"%",0)],4,Object.assign({},(0,a.computeBoxProps)(N))))};t.ProgressBar=l,l.defaultHooks=i.pureComponentHooks;var s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:Math.max(100*t.current,0)},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=Math.max(this.state.value+this.props.rate,0);e<=0&&clearInterval(this.timer),this.setState((function(t){return{value:e}}))},i.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),this.props.rate)},i.componentWillUnmount=function(){clearInterval(this.timer)},i.render=function(){var e=this.props,t=e.start,n=(e.current,e.end),r=c(e,["start","current","end"]),i=(this.state.value/100-t)/(n-t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({value:i},r)))},r}(o.Component);t.ProgressBarCountdown=s,s.defaultProps={rate:1e3},l.Countdown=s},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(0),r=n(7),i=n(17);var a=function(e){var t=e.className,n=e.title,a=e.level,c=void 0===a?1:a,l=e.buttons,s=e.content,d=e.stretchContents,u=e.noTopPadding,p=e.children,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","title","level","buttons","content","stretchContents","noTopPadding","children"]),h=!(0,r.isFalsy)(n)||!(0,r.isFalsy)(l),f=!(0,r.isFalsy)(s)||!(0,r.isFalsy)(p);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Section","Section--level--"+c,e.flexGrow&&"Section--flex",t])},m,{children:[h&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",l,0)],4),f&&(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["Section__content",!!d&&"Section__content--stretchContents",!!u&&"Section__content--noTopPadding"]),children:[s,p]})]})))};t.Section=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(0),r=n(7),i=n(50);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.className,n=e.vertical,c=e.fill,l=a(e,["className","vertical","fill"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex,Object.assign({className:(0,r.classes)(["Stack",c&&"Stack--fill",n?"Stack--vertical":"Stack--horizontal",t]),direction:n?"column":"row"},l)))};t.Stack=c;c.Item=function(e){var t=e.className,n=a(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item",t])},n)))};c.Divider=function(e){var t=e.className,n=e.hidden,c=a(e,["className","hidden"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item","Stack__divider",n&&"Stack__divider--hidden",t])},c)))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(0),r=n(7),i=n(17),a=n(137);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.vertical,a=e.children,l=c(e,["className","vertical","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"div","Tabs__tabBox",a,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Tabs=l;l.Tab=function(e){var t=e.className,n=e.selected,i=e.altSelection,l=c(e,["className","selected","altSelection"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({className:(0,r.classes)(["Tabs__tab",n&&"Tabs__tab--selected",i&&n&&"Tabs__tab--altSelection",t]),selected:!i&&n,color:"transparent"},l)))}},function(e,t,n){"use strict";t.__esModule=!0,t.TimeDisplay=void 0;t.TimeDisplay=function(e){var t=e.totalSeconds;return function(e){return(!e||e<0)&&(e=0),[Math.floor(e/60).toString(10),(Math.floor(e)%60).toString(10)].map((function(e){return e.length<2?"0"+e:e})).join(":")}(void 0===t?0:t)}},function(e,t,n){var o={"./AICard.js":460,"./AIFixer.js":461,"./APC.js":462,"./ATM.js":463,"./AccountsUplinkTerminal.js":464,"./AgentCard.js":465,"./AiAirlock.js":466,"./AirAlarm.js":467,"./AirlockAccessController.js":468,"./AirlockElectronics.js":469,"./AppearanceChanger.js":470,"./AtmosAlertConsole.js":471,"./AtmosControl.js":472,"./AtmosFilter.js":473,"./AtmosMixer.js":474,"./AtmosPump.js":475,"./Autolathe.js":476,"./Biogenerator.js":477,"./BlueSpaceArtilleryControl.js":478,"./BluespaceRiftScanner.js":479,"./BluespaceRiftServer.js":480,"./BluespaceTap.js":481,"./BodyScanner.js":482,"./BorgPanel.js":483,"./BotClean.js":484,"./BotSecurity.js":485,"./BrigCells.js":486,"./BrigTimer.js":487,"./CameraConsole.js":488,"./Canister.js":489,"./CardComputer.js":490,"./CargoConsole.js":491,"./Changelog.js":492,"./ChemDispenser.js":521,"./ChemHeater.js":525,"./ChemMaster.js":526,"./CloningConsole.js":527,"./CommunicationsComputer.js":528,"./Contractor.js":529,"./ConveyorSwitch.js":530,"./CrewMonitor.js":531,"./Cryo.js":532,"./CryopodConsole.js":534,"./DNAModifier.js":535,"./DestinationTagger.js":536,"./DisposalBin.js":537,"./DnaVault.js":538,"./EFTPOS.js":539,"./ERTManager.js":540,"./Electropack.js":541,"./EvolutionMenu.js":542,"./ExosuitFabricator.js":543,"./ExternalAirlockController.js":544,"./FaxMachine.js":545,"./FloorPainter.js":546,"./GPS.js":547,"./GasAnalyzer.js":548,"./GasFreezer.js":550,"./GenericCrewManifest.js":551,"./GhostHudPanel.js":552,"./HandheldChemDispenser.js":553,"./Instrument.js":554,"./ItemPixelShift.js":555,"./KeycardAuth.js":556,"./LaborClaimConsole.js":557,"./LawManager.js":558,"./MechBayConsole.js":559,"./MechaControlConsole.js":560,"./MedicalRecords.js":561,"./MiningVendor.js":562,"./Multitool.js":563,"./Newscaster.js":564,"./NinjaBloodScan.js":565,"./NinjaMindScan.js":566,"./NuclearBomb.js":567,"./OperatingComputer.js":568,"./Orbit.js":569,"./OreRedemption.js":570,"./PAI.js":571,"./PDA.js":588,"./PDAPainter.js":604,"./Pacman.js":605,"./PersonalCrafting.js":606,"./Photocopier.js":607,"./PodTracking.js":608,"./PoolController.js":609,"./PortablePump.js":610,"./PortableScrubber.js":611,"./PortableTurret.js":612,"./PowerMonitor.js":198,"./RCD.js":613,"./RPD.js":614,"./Radio.js":615,"./RequestConsole.js":616,"./RequestManager.js":617,"./RndConsole.js":67,"./RobotSelfDiagnosis.js":632,"./RoboticsControlConsole.js":633,"./Safe.js":634,"./SatelliteControl.js":635,"./SecureStorage.js":636,"./SecurityRecords.js":637,"./SeedExtractor.js":638,"./ShuttleConsole.js":639,"./ShuttleManipulator.js":640,"./Sleeper.js":641,"./SlotMachine.js":642,"./Smartfridge.js":643,"./Smes.js":644,"./SolarControl.js":645,"./SpawnersMenu.js":646,"./SpiderOS.js":647,"./StationAlertConsole.js":648,"./SuitStorage.js":649,"./SupermatterMonitor.js":650,"./SyndicateComputerSimple.js":651,"./SyndieCargoConsole.js":652,"./TTSSeedsExplorer.js":653,"./TachyonArray.js":654,"./Tank.js":655,"./TankDispenser.js":656,"./TcommsCore.js":657,"./TcommsRelay.js":658,"./Teleporter.js":659,"./ThiefKit.js":660,"./TransferValve.js":661,"./Uplink.js":662,"./VampireSpecMenu.js":663,"./VampireTrophiesStatus.js":664,"./Vending.js":665,"./VolumeMixer.js":666,"./VotePanel.js":667,"./Wires.js":668,"./Workshop.js":669};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=459},function(e,t,n){"use strict";t.__esModule=!0,t.AICard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AICard=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(0===l.has_ai)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var s=null;return s=l.integrity>=75?"green":l.integrity>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,l.name,0)}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:s,value:l.integrity/100})})})}),(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===l.flushing?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wipe",children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||0===l.integrity,confirmColor:"red",content:"Wipe AI",onClick:function(){return c("wipe")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AIFixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AIFixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(null===l.occupant)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No artificial intelligence detected.",16)})})})});var s=null;s=2!==l.stat&&null!==l.stat;var d=null;d=l.integrity>=75?"green":l.integrity>=25?"yellow":"red";var u=null;return u=l.integrity>=100,(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:(0,o.createVNode)(1,"h3",null,l.occupant,0)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:d,value:l.integrity/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:s?"green":"red",children:s?"Functional":"Non-Functional"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Start Repairs",children:(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:u||l.active,content:u?"Already Repaired":"Repair",onClick:function(){return c("fix")}})})]}),(0,o.createComponentVNode)(2,i.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.APC=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.APC=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d)})})};var l={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.locked&&!d.siliconUser,p=(d.normallyLocked,l[d.externalPower]||l[0]),m=l[d.chargingStatus]||l[0],h=d.powerChannels||[],f=s[d.malfStatus]||s[0],C=d.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main Breaker",color:p.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){return a("breaker")}}),children:["[ ",p.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[h.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:!u&&(1===e.status||3===e.status),disabled:u,onClick:function(){return a("channel",t.auto)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:"On",selected:!u&&2===e.status,disabled:u,onClick:function(){return a("channel",t.on)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:!u&&0===e.status,disabled:u,onClick:function(){return a("channel",t.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Load",children:(0,o.createVNode)(1,"b",null,[d.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createFragment)([!!d.malfStatus&&(0,o.createComponentVNode)(2,i.Button,{icon:f.icon,content:f.content,color:"bad",onClick:function(){return a(f.action)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",selected:d.coverLocked,disabled:u,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",selected:d.nightshiftLights,onClick:function(){return a("toggle_nightshift")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Light Fallback",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.emergencyLights?"Engaged":"Disengaged",selected:d.emergencyLights,disabled:u,onClick:function(){return a("emergency_lighting")}})})]})})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ATM=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ATM=function(e,t){var n,m=(0,r.useBackend)(t),h=(m.act,m.data),f=h.view_screen,C=h.authenticated_account,g=h.ticks_left_locked_down,N=h.linked_db;if(g>0)n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(N)if(C)switch(f){case 1:n=(0,o.createComponentVNode)(2,l);break;case 2:n=(0,o.createComponentVNode)(2,s);break;case 3:n=(0,o.createComponentVNode)(2,p);break;default:n=(0,o.createComponentVNode)(2,d)}else n=(0,o.createComponentVNode)(2,u);else n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Section,{children:n})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.machine_id,s=c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,o.createComponentVNode)(2,i.Box,{children:"For all your monetary need!"}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:"info-circle"})," This terminal is ",(0,o.createVNode)(1,"i",null,l,0),", report this code when contacting Nanotrasen IT Support."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card",children:(0,o.createComponentVNode)(2,i.Button,{content:s,icon:"eject",onClick:function(){return a("insert_card")}})})})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.security_level;return(0,o.createComponentVNode)(2,i.Section,{title:"Select a new security level for this account",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Zero",icon:"unlock",selected:0===c,onClick:function(){return a("change_security_level",{new_security_level:0})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card and ask for a pin, but not verify the pin is correct."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"One",icon:"unlock",selected:1===c,onClick:function(){return a("change_security_level",{new_security_level:1})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Two",selected:2===c,icon:"unlock",onClick:function(){return a("change_security_level",{new_security_level:2})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"In addition to account number and pin, a card is required to access this account and process transactions."})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"targetAccNumber",0),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"fundsAmount",0),p=u[0],h=u[1],f=(0,r.useLocalState)(t,"purpose",0),C=f[0],g=f[1],N=c.money;return(0,o.createComponentVNode)(2,i.Section,{title:"Transfer Fund",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",N]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target account number",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Funds to transfer",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transaction Purpose",children:(0,o.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(e,t){return g(t)}})})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){return a("transfer",{target_acc_number:s,funds_amount:p,purpose:C})}}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"fundsAmount",0),s=l[0],d=l[1],u=c.owner_name,p=c.money;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Welcome, "+u,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){return a("logout")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",p]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Withdrawal Amount",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Withdraw Fund",icon:"sign-out-alt",onClick:function(){return a("withdrawal",{funds_amount:s})}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change account security level",icon:"lock",onClick:function(){return a("view_screen",{view_screen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){return a("view_screen",{view_screen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View transaction log",icon:"list",onClick:function(){return a("view_screen",{view_screen:3})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print balance statement",icon:"print",onClick:function(){return a("balance_statement")}})})]})],4)},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"accountID",null),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"accountPin",null),p=u[0],m=u[1];c.machine_id,c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Insert card or enter ID and pin to login",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account ID",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pin",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return m(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){return a("attempt_auth",{account_num:s,account_pin:p})}})})]})})},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.transaction_log);return(0,o.createComponentVNode)(2,i.Section,{title:"Transactions",children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Terminal"})]}),a.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{p:"1rem",children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.source_terminal})]},e)}))]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){return a("view_screen",{view_screen:0})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AccountsUplinkTerminal=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(140),d=n(141);t.AccountsUplinkTerminal=function(e,t){var n,r=(0,i.useBackend)(t),a=(r.act,r.data),c=a.loginState,p=a.currentPage;return c.logged_in?(1===p?n=(0,o.createComponentVNode)(2,u):2===p?n=(0,o.createComponentVNode)(2,h):3===p&&(n=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s.LoginInfo),n]})})):(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var u=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.accounts,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","owner_name")),h=u[0],f=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),C=f[0];f[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Flex.Item,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",children:(0,o.createComponentVNode)(2,a.Table,{className:"AccountsUplinkTerminal__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,p,{id:"owner_name",children:"Account Holder"}),(0,o.createComponentVNode)(2,p,{id:"account_number",children:"Account Number"}),(0,o.createComponentVNode)(2,p,{id:"suspended",children:"Account Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.owner_name+"|"+e.account_number+"|"+e.suspended}))).sort((function(e,t){var n=C?1:-1;return e[h].localeCompare(t[h])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{onClick:function(){return c("view_account_detail",{index:e.account_index})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.owner_name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["#",e.account_number]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.suspended})]},e.id)}))]})})})]})},p=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.is_printing,s=(0,i.useLocalState)(t,"searchText",""),d=(s[0],s[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Account",icon:"plus",onClick:function(){return r("create_new_account")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account List",disabled:l,ml:"0.25rem",onClick:function(){return r("print_records")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(e,t){return d(t)}})})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.is_printing,s=c.account_number,d=c.owner_name,u=c.money,p=c.suspended,m=c.transactions;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"#"+s+" / "+d,mt:1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account Details",disabled:l,onClick:function(){return r("print_account_details")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Balance",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Status",color:p?"red":"green",children:[p?"Suspended":"Active",(0,o.createComponentVNode)(2,a.Button,{ml:1,content:p?"Unsuspend":"Suspend",icon:p?"unlock":"lock",onClick:function(){return r("toggle_suspension")}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Transactions",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Terminal"})]}),m.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source_terminal})]},e)}))]})})],4)},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,(0,i.useLocalState)(t,"accName","")),l=c[0],s=c[1],d=(0,i.useLocalState)(t,"accDeposit",""),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Create Account",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name Here",onChange:function(e,t){return s(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"0",onChange:function(e,t){return p(t)}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){return r("finalise_create_account",{holder_name:l,starting_funds:u})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AgentCardSLSlots=t.AgentCardAppearances=t.AgentCardInfo=t.AgentCard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AgentCard=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return(0,o.createComponentVNode)(2,c)}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.registered_name,s=c.sex,d=c.age,u=c.assignment,p=c.associated_account_number,m=c.blood_type,h=c.dna_hash,f=c.fingerprint_hash,C=c.photo,g=c.ai_tracking;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Card Info",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"[UNSET]",onClick:function(){return a("change_name")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sex",children:(0,o.createComponentVNode)(2,i.Button,{iconRight:!1,content:s||"[UNSET]",onClick:function(){return a("change_sex")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Age",children:(0,o.createComponentVNode)(2,i.Button,{content:d||"[UNSET]",onClick:function(){return a("change_age")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,i.Button,{content:u||"[UNSET]",onClick:function(){return a("change_occupation")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fingerprints",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"[UNSET]",onClick:function(){return a("change_fingerprints")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Type",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"[UNSET]",onClick:function(){return a("change_blood_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"DNA Hash",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"[UNSET]",onClick:function(){return a("change_dna_hash")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Money Account",children:(0,o.createComponentVNode)(2,i.Button,{content:p||"[UNSET]",onClick:function(){return a("change_money_account")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Photo",children:(0,o.createComponentVNode)(2,i.Button,{content:C?"Update":"[UNSET]",onClick:function(){return a("change_photo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Card Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card Info",children:(0,o.createComponentVNode)(2,i.Button,{content:"Delete Card Info",onClick:function(){return a("delete_info")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access",children:(0,o.createComponentVNode)(2,i.Button,{content:"Reset Access",onClick:function(){return a("clear_access")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"AI Tracking",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Untrackable":"Trackable",onClick:function(){return a("change_ai_tracking")}})})]})})],4)};t.AgentCardInfo=c;var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.appearances;return(0,o.createComponentVNode)(2,i.Section,{title:"Card Appearance",children:c.map((function(e){return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+e.image,style:{"vertical-align":"middle",width:"64px",margin:"0px","margin-left":"0px"},onclick:function(){return a("change_appearance_new",{new_appearance:e.name})}},e.name)}))})};t.AgentCardAppearances=l;var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.saved_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.registered_name?e.registered_name+", "+e.assignment:"Slot "+e.id,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Clear",onClick:function(){return a("clear_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Save",onClick:function(){return a("save_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",disabled:!e.registered_name,onClick:function(){return a("load_slot",{slot:e.id})}})],4)},e.id)}))})})};t.AgentCardSLSlots=s},function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}};t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=c[s.power.main]||c[0],u=c[s.power.backup]||c[0],p=c[s.shock]||c[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main",color:d.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[s.power.main?"Online":"Offline"," ",s.wires.main_power?s.power.main_timeleft>0&&"["+s.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[s.power.backup?"Online":"Offline"," ",s.wires.backup_power?s.power.backup_timeleft>0&&"["+s.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Electrify",color:p.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:!(s.wires.shock&&2!==s.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock||0===s.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===s.shock?"Safe":"Electrified"," ",(s.wires.shock?s.shock_timeleft>0&&"["+s.shock_timeleft+"s]":"[Wires have been cut!]")||-1===s.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.id_scanner?"power-off":"times",content:s.id_scanner?"Enabled":"Disabled",selected:s.id_scanner,disabled:!s.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!s.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.emergency?"power-off":"times",content:s.emergency?"Enabled":"Disabled",selected:s.emergency,onClick:function(){return l("emergency-toggle")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.locked?"lock":"unlock",content:s.locked?"Lowered":"Raised",selected:s.locked,disabled:!s.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!s.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.lights?"power-off":"times",content:s.lights?"Enabled":"Disabled",selected:s.lights,disabled:!s.wires.lights,onClick:function(){return l("light-toggle")}}),children:!s.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.safe?"power-off":"times",content:s.safe?"Enabled":"Disabled",selected:s.safe,disabled:!s.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!s.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.speed?"power-off":"times",content:s.speed?"Enabled":"Disabled",selected:s.speed,disabled:!s.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!s.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.opened?"sign-out-alt":"sign-in-alt",content:s.opened?"Open":"Closed",selected:s.opened,disabled:s.locked||s.welded,onClick:function(){return l("open-close")}}),children:!(!s.locked&&!s.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),s.locked?"bolted":"",s.locked&&s.welded?" and ":"",s.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.AirAlarm=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.locked);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),!i&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u)],4)]})})};var l=function(e){return 0===e?"green":1===e?"orange":"red"},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,s=a.data,d=s.air,u=s.mode,p=s.atmos_alarm,m=s.locked,h=s.alarmActivated,f=s.rcon,C=s.target_temp;return n=0===d.danger.overall?0===p?"Optimal":"Caution: Atmos alert in area":1===d.danger.overall?"Caution":"DANGER: Internals Required",(0,o.createComponentVNode)(2,i.Section,{title:"Air Status",children:d?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.pressure),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.pressure})," kPa",!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:3===u?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:3===u,icon:"exclamation-triangle",onClick:function(){return c("mode",{mode:3===u?1:3})}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.oxygen/100,fractionDigits:"1",color:l(d.danger.oxygen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.nitrogen/100,fractionDigits:"1",color:l(d.danger.nitrogen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.co2/100,fractionDigits:"1",color:l(d.danger.co2)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxins",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.plasma/100,fractionDigits:"1",color:l(d.danger.plasma)})}),d.contents.other>.1&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.other/100,fractionDigits:"1",color:l(d.danger.other)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.temperature),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature})," K / ",(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature_c})," C\xa0",(0,o.createComponentVNode)(2,i.Button,{icon:"thermometer-full",content:C+" C",onClick:function(){return c("temperature")}}),(0,o.createComponentVNode)(2,i.Button,{content:d.thermostat_state?"On":"Off",selected:d.thermostat_state,icon:"power-off",onClick:function(){return c("thermostat_state")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Local Status",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.overall),children:[n,!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:h?"Reset Alarm":"Activate Alarm",selected:h,onClick:function(){return c(h?"atmos_reset":"atmos_alarm")}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Control Settings",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Off",selected:1===f,onClick:function(){return c("set_rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Auto",selected:2===f,onClick:function(){return c("set_rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,i.Button,{content:"On",selected:3===f,onClick:function(){return c("set_rcon",{rcon:3})}})]})]}):(0,o.createComponentVNode)(2,i.Box,{children:"Unable to acquire air sample!"})})},d=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),a=n[0],c=n[1];return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===a,onClick:function(){return c(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===a,onClick:function(){return c(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===a,onClick:function(){return c(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog"})," Mode"]},"Mode"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===a,onClick:function(){return c(3)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},u=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),i=n[0];n[1];switch(i){case 0:return(0,o.createComponentVNode)(2,p);case 1:return(0,o.createComponentVNode)(2,m);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.vents.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"release"===e.direction?"Blowing":"Siphoning",icon:"release"===e.direction?"sign-out-alt":"sign-in-alt",onClick:function(){return a("command",{cmd:"direction",val:"release"===e.direction?0:1,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure Checks",children:[(0,o.createComponentVNode)(2,i.Button,{content:"External",selected:1===e.checks,onClick:function(){return a("command",{cmd:"checks",val:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Internal",selected:2===e.checks,onClick:function(){return a("command",{cmd:"checks",val:2,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Pressure Target",children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:e.external})," kPa\xa0",(0,o.createComponentVNode)(2,i.Button,{content:"Set",icon:"cog",onClick:function(){return a("command",{cmd:"set_external_pressure",id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset",icon:"redo-alt",onClick:function(){return a("command",{cmd:"set_external_pressure",val:101.325,id_tag:e.id_tag})}})]})]})},e.name)}))},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.scrubbers.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:0===e.scrubbing?"Siphoning":"Scrubbing",icon:0===e.scrubbing?"sign-in-alt":"filter",onClick:function(){return a("command",{cmd:"scrubbing",val:0===e.scrubbing?1:0,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,i.Button,{content:e.widenet?"Extended":"Normal",selected:e.widenet,icon:"expand-arrows-alt",onClick:function(){return a("command",{cmd:"widenet",val:0===e.widenet?1:0,id_tag:e.id_tag})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filtering",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Carbon Dioxide",selected:e.filter_co2,onClick:function(){return a("command",{cmd:"co2_scrub",val:0===e.filter_co2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Plasma",selected:e.filter_toxins,onClick:function(){return a("command",{cmd:"tox_scrub",val:0===e.filter_toxins?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrous Oxide",selected:e.filter_n2o,onClick:function(){return a("command",{cmd:"n2o_scrub",val:0===e.filter_n2o?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Oxygen",selected:e.filter_o2,onClick:function(){return a("command",{cmd:"o2_scrub",val:0===e.filter_o2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrogen",selected:e.filter_n2,onClick:function(){return a("command",{cmd:"n2_scrub",val:0===e.filter_n2?1:0,id_tag:e.id_tag})}})]})]})},e.name)}))},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.modes,s=c.presets,d=c.emagged,u=c.mode,p=c.preset;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"System Mode",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){return(!e.emagonly||e.emagonly&&!!d)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===u,onClick:function(){return a("mode",{mode:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"System Presets",children:[(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,o.createComponentVNode)(2,i.Table,{mt:1,children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===p,onClick:function(){return a("preset",{preset:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})]})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.thresholds;return(0,o.createComponentVNode)(2,i.Section,{title:"Alarm Thresholds",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),e.settings.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:-1===e.selected?"Off":e.selected,onClick:function(){return a("command",{cmd:"set_threshold",env:e.env,"var":e.val})}})},e.val)}))]},e.name)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockAccessController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AirlockAccessController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.exterior_status,p=d.interior_status,m=d.processing;return n="open"===d.exterior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:m,onClick:function(){return s("force_ext")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext_door")}}),c="open"===d.interior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Interior Door",icon:"exclamation-triangle",disabled:m,color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int_door")}}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Door Status",children:"closed"===u.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Door Status",children:"closed"===p.state?"Locked":"Open"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:c})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(99);t.AirlockElectronics=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,s)]})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.unrestricted_dir;return(0,o.createComponentVNode)(2,i.Section,{title:"Access Control",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:"north"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"North"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:"south"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"South"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:"east"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"East"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:"west"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"West"})}})})]})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.selected_accesses,d=l.one_access,u=l.regions;return(0,o.createComponentVNode)(2,c.AccessList,{usedByRcd:1,rcdButtons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:d,content:"One",onClick:function(){return a("set_one_access",{access:"one"})}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,content:"All",onClick:function(){return a("set_one_access",{access:"all"})}})],4),accesses:u,selectedList:s,accessMod:function(e){return a("set",{access:e})},grantAll:function(){return a("grant_all")},denyAll:function(){return a("clear_all")},grantDep:function(e){return a("grant_region",{region:e})},denyDep:function(e){return a("deny_region",{region:e})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AppearanceChanger=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AppearanceChanger=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.change_race,u=s.species,p=s.specimen,m=s.change_gender,h=s.gender,f=s.has_gender,C=s.change_eye_color,g=s.change_skin_tone,N=s.change_skin_color,b=s.change_head_accessory_color,V=s.change_hair_color,v=s.change_secondary_hair_color,x=s.change_facial_hair_color,y=s.change_secondary_facial_hair_color,k=s.change_head_marking_color,w=s.change_body_marking_color,_=s.change_tail_marking_color,B=s.change_head_accessory,S=s.head_accessory_styles,L=s.head_accessory_style,A=s.change_hair,E=s.hair_styles,I=s.hair_style,D=s.change_hair_gradient,T=s.change_facial_hair,F=s.facial_hair_styles,M=s.facial_hair_style,P=s.change_head_markings,O=s.head_marking_styles,R=s.head_marking_style,j=s.change_body_markings,U=s.body_marking_styles,z=s.body_marking_style,W=s.change_tail_markings,H=s.tail_marking_styles,K=s.tail_marking_style,Y=s.change_body_accessory,G=s.body_accessory_styles,q=s.body_accessory_style,X=s.change_alt_head,J=s.alt_head_styles,$=s.alt_head_style,Z=!1;return(C||g||N||b||V||v||x||y||k||w||_)&&(Z=!0),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:e.specimen===p,onClick:function(){return l("race",{race:e.specimen})}},e.specimen)}))}),!!m&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Male",selected:"male"===h,onClick:function(){return l("gender",{gender:"male"})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Female",selected:"female"===h,onClick:function(){return l("gender",{gender:"female"})}}),!f&&(0,o.createComponentVNode)(2,i.Button,{content:"Genderless",selected:"plural"===h,onClick:function(){return l("gender",{gender:"plural"})}})]}),!!Z&&(0,o.createComponentVNode)(2,c),!!B&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head accessory",children:S.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headaccessorystyle,selected:e.headaccessorystyle===L,onClick:function(){return l("head_accessory",{head_accessory:e.headaccessorystyle})}},e.headaccessorystyle)}))}),!!A&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair",children:E.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.hairstyle,selected:e.hairstyle===I,onClick:function(){return l("hair",{hair:e.hairstyle})}},e.hairstyle)}))}),!!D&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Gradient",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Change Style",onClick:function(){return l("hair_gradient")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Offset",onClick:function(){return l("hair_gradient_offset")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Color",onClick:function(){return l("hair_gradient_colour")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Alpha",onClick:function(){return l("hair_gradient_alpha")}})]}),!!T&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial hair",children:F.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.facialhairstyle,selected:e.facialhairstyle===M,onClick:function(){return l("facial_hair",{facial_hair:e.facialhairstyle})}},e.facialhairstyle)}))}),!!P&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head markings",children:O.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headmarkingstyle,selected:e.headmarkingstyle===R,onClick:function(){return l("head_marking",{head_marking:e.headmarkingstyle})}},e.headmarkingstyle)}))}),!!j&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body markings",children:U.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodymarkingstyle,selected:e.bodymarkingstyle===z,onClick:function(){return l("body_marking",{body_marking:e.bodymarkingstyle})}},e.bodymarkingstyle)}))}),!!W&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail markings",children:H.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.tailmarkingstyle,selected:e.tailmarkingstyle===K,onClick:function(){return l("tail_marking",{tail_marking:e.tailmarkingstyle})}},e.tailmarkingstyle)}))}),!!Y&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body accessory",children:G.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodyaccessorystyle,selected:e.bodyaccessorystyle===q,onClick:function(){return l("body_accessory",{body_accessory:e.bodyaccessorystyle})}},e.bodyaccessorystyle)}))}),!!X&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alternate head",children:J.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.altheadstyle,selected:e.altheadstyle===$,onClick:function(){return l("alt_head",{alt_head:e.altheadstyle})}},e.altheadstyle)}))})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Colors",children:[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}].map((function(e){return!!c[e.key]&&(0,o.createComponentVNode)(2,i.Button,{content:e.text,onClick:function(){return a(e.action)}})}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.priority||[],d=l.minor||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===s.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"bad",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})),0===d.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"average",onClick:function(){return c("clear",{zone:e})}}),2,null,e)}))],0)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(80),c=n(3);t.AtmosControl=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data,(0,r.useLocalState)(t,"tabIndex",0)),d=a[0],u=a[1];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.alarms;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Access"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,a.TableCell,{children:e.name}),(0,o.createComponentVNode)(2,a.TableCell,{children:(t=e.danger,0===t?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Good"}):1===t?(0,o.createComponentVNode)(2,i.Box,{color:"orange",bold:!0,children:"Warning"}):2===t?(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"DANGER"}):void 0)}),(0,o.createComponentVNode)(2,a.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Access",onClick:function(){return c("open_alarm",{aref:e.ref})}})})]},e.name);var t}))]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=c.alarms,p=c.stationLevel;return(0,o.createComponentVNode)(2,i.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,i.NanoMap,{onZoom:function(e){return d(e)},children:u.filter((function(e){return e.z===p})).map((function(e){return(0,o.createComponentVNode)(2,i.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:"circle",tooltip:e.name,color:(t=e.danger,0===t?"green":1===t?"orange":2===t?"red":void 0),onClick:function(){return a("open_alarm",{aref:e.ref})}},e.ref);var t}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.max_pressure,p=l.filter_type,m=l.filter_type_list;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_pressure")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filter",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gas_type===p,content:e.label,onClick:function(){return c("set_filter",{filter:e.gas_type})}},e.label)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.on,u=s.pressure,p=s.max_pressure,m=s.node1_concentration,h=s.node2_concentration;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===u,width:2.2,onClick:function(){return l("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:p,value:u,onDrag:function(e,t){return l("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:u===p,width:2.2,onClick:function(){return l("max_pressure")}})]}),(0,o.createComponentVNode)(2,c,{node_name:"Node 1",node_ref:m}),(0,o.createComponentVNode)(2,c,{node_name:"Node 2",node_ref:h})]})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.node_name),l=e.node_ref;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:c,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:0===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l-10)/100})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(e,t){return a("set_node",{node_name:c,concentration:t/100})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:100===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l+10)/100})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.rate,u=l.max_rate,p=l.gas_unit,m=l.step;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_rate")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:p,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_rate",{rate:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_rate")}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Autolathe=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=n(18),d=function(e,t,n,o){return null===e.requirements||!(e.requirements.metal*o>t)&&!(e.requirements.glass*o>n)};t.Autolathe=function(e,t){var n=(0,a.useBackend)(t),u=n.act,p=n.data,m=p.total_amount,h=(p.max_amount,p.metal_amount),f=p.glass_amount,C=p.busyname,g=(p.busyamt,p.showhacked,p.buildQueue),N=p.buildQueueLen,b=p.recipes,V=p.categories,v=(0,a.useSharedState)(t,"category",0),x=v[0],y=v[1];0===x&&(x="Tools");var k=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),_=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),B=(0,a.useSharedState)(t,"search_text",""),S=B[0],L=B[1],A=(0,s.createSearch)(S,(function(e){return e.name})),E="";N>0&&(E=g.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:g[t][0],onClick:function(){return u("remove_from_queue",{remove_from_queue:g.indexOf(e)+1})}},e)},t)})));var I=(0,r.flow)([(0,i.filter)((function(e){return(e.category.indexOf(x)>-1||S)&&(p.showhacked||!e.hacked)})),S&&(0,i.filter)(A),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(b),D="Build";S?D="Results for: '"+S+"':":x&&(D="Build ("+x+")");return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Section,{title:D,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:V,selected:x,onSelected:function(e){return y(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return L(t)},mb:1}),I.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&1===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,1),onClick:function(){return u("make",{make:e.uid,multiplier:1})},children:(0,s.toTitleCase)(e.name)}),e.max_multiplier>=10&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&10===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,10),onClick:function(){return u("make",{make:e.uid,multiplier:10})},children:"10x"}),e.max_multiplier>=25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&25===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,25),onClick:function(){return u("make",{make:e.uid,multiplier:25})},children:"25x"}),e.max_multiplier>25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&p.busyamt===e.max_multiplier,disabled:!d(e,p.metal_amount,p.glass_amount,e.max_multiplier),onClick:function(){return u("make",{make:e.uid,multiplier:e.max_multiplier})},children:[e.max_multiplier,"x"]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,s.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,c.Box,{children:"No resources required."})})]},e.ref)}))]}),2,{style:{float:"left",width:"68%"}}),(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:k}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Glass",children:w}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total",children:_}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Storage",children:[p.fill_percent,"% Full"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Building",children:(0,o.createComponentVNode)(2,c.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Build Queue",children:[E,(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Clear All",disabled:!p.buildQueueLen,onClick:function(){return u("clear_queue")}}),2,{align:"right"})]})],4,{style:{float:"right",width:"30%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Biogenerator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Biogenerator=function(){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d)]})})};var c=function(e,t){if((0,r.useBackend)(t).data.processing)return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.createComponentVNode)(2,i.Flex,{mb:"30px",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,o.createVNode)(1,"br"),"The biogenerator is processing..."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.biomass,l=a.container,s=a.container_curr_reagents,d=a.container_max_reagents;return(0,o.createComponentVNode)(2,i.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"5px",children:c}),(0,o.createComponentVNode)(2,i.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex,{height:"21px",mt:"8px",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"10px",color:"silver",children:"Container:"}),l?(0,o.createComponentVNode)(2,i.ProgressBar,{value:s,maxValue:d,children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:s+" / "+d+" units"})}):(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"None"})})]})]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_plants,s=c.container;return(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-right",content:"Activate",onClick:function(){return a("activate")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!s,tooltip:s?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){return a("detach_container")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-left",content:"Eject Plants",onClick:function(){return a("eject_plants")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.biomass,s=c.product_list,d=c.container,u=(0,r.useSharedState)(t,"vendAmount",1),p=u[0],m=u[1],h=Object.entries(s).map((function(e,t){var n=Object.entries(e[1]).map((function(e){return e[1]}));return(0,o.createComponentVNode)(2,i.Collapsible,{title:e[0],open:!0,children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{py:"2px",className:"candystripe",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",ml:"2px",children:e.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"20%",children:[e.cost*p,(0,o.createComponentVNode)(2,i.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"40%",children:e.needs_container&&!d?(0,o.createComponentVNode)(2,i.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438",tooltipPosition:"top-left"}):(0,o.createComponentVNode)(2,i.Button,{content:"Vend",disabled:l0?Math.floor(c/u):0,f=d?"@?%%!\u2116@"+u:u,C=c>=u,g=p-p%5+(p%5>0?5:0);return(0,o.createComponentVNode)(2,i.Section,{title:"\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0420\u0430\u0437\u043b\u043e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:n}),(0,o.createComponentVNode)(2,i.ProgressBar,{color:0===m?"bad":m<100?"average":"good",value:a,maxValue:r,mt:1,mb:2,children:[m<=100?m:100," %"]}),(0,o.createComponentVNode)(2,i.Box,{children:["\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f: ",(0,o.createComponentVNode)(2,i.Box,{color:c?C?"good":"average":"bad",as:"span",children:Math.floor(c)}),(0,o.createComponentVNode)(2,i.Button,{icon:"atom",tooltip:"\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043e\u043d\u0434\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c "+f+" \u0434\u0430\u043d\u043d\u044b\u0445.",content:p>0?"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 "+g+" \u0441\u0435\u043a\u0443\u043d\u0434":"\u0417\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c ("+h+")",disabled:!C||p>0,onClick:function(){return l("probe",{rift_id:t})},mx:2}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",content:s?"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",disabled:s||m<100,onClick:function(){return l("reward",{rift_id:t})},mt:1.4})]})]})}(e)})),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043a\u0430\u043d\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:f&&f.map((function(e){return function(e){var t=e.scannerId,n=e.scannerName,r=e.scanStatus,a=e.canSwitch,s=e.switching,d=c[r],u="OFF"===d?[" ","silver"]:"NO_RIFTS"===d?["\u041d\u0435\u0442 \u0440\u0430\u0437\u043b\u043e\u043c\u043e\u0432","silver"]:"SOME_RIFTS"===d?["\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442","good"]:"DANGER"===d?["\u041e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c! \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u043a\u0430\u043d\u0435\u0440!","bad"]:void 0;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n,py:0,children:[s?(0,o.createComponentVNode)(2,i.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):a?(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:"OFF"===d?"bad":"good",onClick:function(){return l("toggle_scanner",{scanner_id:t})},ml:1,mr:1}):(0,o.createComponentVNode)(2,i.Icon,{name:"power-off",color:"OFF"===d?"bad":"good",ml:1.85,mr:1.79,my:.84}),"OFF"!==d&&(0,o.createComponentVNode)(2,i.Box,{as:"span",color:u[1],children:u[0]})]})}(e)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:h&&h.map((function(e){return function(e){var t=e.servName,n=e.servData;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n.length?n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{children:[e.riftName," \u2014 ",Math.floor(e.probePoints)," \u0434\u0430\u043d\u043d\u044b\u0445."]},t)})):(0,o.createComponentVNode)(2,i.Box,{children:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"})})}(e)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceTap=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.BluespaceTap=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.product||[],u=s.desiredLevel,p=s.inputLevel,m=s.points,h=s.totalPoints,f=s.powerUse,C=s.availablePower,g=s.maxLevel,N=s.emagged,b=s.safeLevels,V=s.nextLevelPower,v=u>p?"bad":"good";return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!N&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),!!(p>b)&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,o.createComponentVNode)(2,i.Collapsible,{title:"Input Management",children:(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Level",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Desired Level",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===u,tooltip:"Set to 0",onClick:function(){return l("set",{set_level:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:0===u,onClick:function(){return l("set",{set_level:p})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===u,tooltip:"Decrease one step",onClick:function(){return l("decrease")}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:u,fillValue:p,minValue:0,color:v,maxValue:g,stepPixelSize:20,step:1,onChange:function(e,t){return l("set",{set_level:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:u===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){return l("increase")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:u===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){return l("set",{set_level:g})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Power Use",children:(0,c.formatPower)(f)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power for next level",children:(0,c.formatPower)(V)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Surplus Power",children:(0,c.formatPower)(C)})]})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Points",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Points",children:h})]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"end",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{disabled:e.price>=m,onClick:function(){return l("vend",{target:e.key})},content:e.price})},e.key)}))})})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],d=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},p=function(e,t){for(var n=[],o=0;o0?e.filter((function(e){return!!e})).reduce((function(e,t){return(0,o.createFragment)([e,(0,o.createComponentVNode)(2,a.Box,{children:t},t)],0)}),null):null},h=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,i.useBackend)(t).data,r=n.occupied,a=n.occupant,l=void 0===a?{}:a,s=r?(0,o.createComponentVNode)(2,f,{occupant:l}):(0,o.createComponentVNode)(2,x);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:s})})};var f=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,C,{occupant:t}),(0,o.createComponentVNode)(2,g,{occupant:t}),(0,o.createComponentVNode)(2,N,{occupant:t}),(0,o.createComponentVNode)(2,V,{organs:t.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:t.intOrgan})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print_p")},children:"Print Report"}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return c("ejectify")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants",children:s.implant_len?(0,o.createComponentVNode)(2,a.Box,{children:s.implant.map((function(e){return e.name})).join(", ")}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"None"})})]})})},g=function(e){var t=e.occupant;return t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:s.map((function(e,n){if(t[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2]})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},N=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:p(d,(function(e,n,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,b,{value:t[e[1]],marginBottom:r100)&&"average":"bad")||!!e.status.robotic&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",q:!0,children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,mt:t>0&&"0.5rem",value:e.totalLoss/e.maxHealth,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",display:"inline",children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([!!e.internalBleeding&&"Internal bleeding",!!e.lungRuptured&&"Ruptured lung",!!e.status.broken&&e.status.broken,h(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[m([!!e.status.splinted&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Splinted"}),!!e.status.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})]),m(e.shrapnel.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:(!e.dead?e.germ_level>100&&"average":"bad")||e.robotic>0&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/e.maxHealth,mt:t>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([h(e.germ_level)])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:m([1===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),2===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Assisted"}),!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},t)}))]})})},x=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.borg||{},d=l.cell||{},u=d.charge/d.maxcharge,p=l.channels||[],m=l.modules||[],h=l.upgrades||[],f=l.ais||[],C=l.laws||[];return(0,o.createComponentVNode)(2,a.Window,{title:"Borg Panel",width:700,height:700,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:s.emagged?"check-square-o":"square-o",content:"Emagged",selected:s.emagged,onClick:function(){return c("toggle_emagged")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:s.lockdown,onClick:function(){return c("toggle_lockdown")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:s.scrambledcodes,onClick:function(){return c("toggle_scrambledcodes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset Module",onClick:function(){return c("reset_module")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge",children:[d.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,i.ProgressBar,{value:u,children:d.charge+" / "+d.maxcharge}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("set_charge")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Change",onClick:function(){return c("change_cell")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return c("remove_cell")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radio Channels",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Model",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:s.active_module===e.name?"check-square-o":"square-o",content:e.name+" module",selected:s.active_module===e.name,onClick:function(){return c("setmodule",{module:e.name})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Upgrades",children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:f.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return c("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Law Manager",selected:s.lawmanager,onClick:function(){return c("lawmanager")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:s.lawupdate,onClick:function(){return c("toggle_lawupdate")}})],4),children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotClean=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotClean=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.cleanblood;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Cleaning Settings",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){return c("blood")}})}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotSecurity=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotSecurity=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.check_id,b=l.check_weapons,V=l.check_warrant,v=l.arrest_mode,x=l.arrest_declare;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Who To Arrest",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Unidentifiable Persons",disabled:d,onClick:function(){return c("authid")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:b,content:"Unauthorized Weapons",disabled:d,onClick:function(){return c("authweapon")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return c("authwarrant")}})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Arrest Procedure",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:d,onClick:function(){return c("arrtype")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:x,content:"Announce Arrests On Radio",disabled:d,onClick:function(){return c("arrdeclare")}})]}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigCells=void 0;var o=n(0),r=n(3),i=n(2),a=n(1),c=function(e,t){var n=e.cell,r=(0,a.useBackend)(t).act,c=n.cell_id,l=n.occupant,s=n.crimes,d=n.brigged_by,u=n.time_left_seconds,p=n.time_set_seconds,m=n.ref,h="";u>0&&(h+=" BrigCells__listRow--active");return(0,o.createComponentVNode)(2,i.Table.Row,{className:h,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:c}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:d}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:p})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:u})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{type:"button",onClick:function(){r("release",{ref:m})},children:"Release"})})]})},l=function(e){var t=e.cells;return(0,o.createComponentVNode)(2,i.Table,{className:"BrigCells__list",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Cell"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Occupant"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Crimes"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Brigged By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Left"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Release"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c,{cell:e},e.ref)}))]})};t.BrigCells=function(e,t){var n=(0,a.useBackend)(t),c=(n.act,n.data.cells);return(0,o.createComponentVNode)(2,r.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:(0,o.createComponentVNode)(2,l,{cells:c})})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:l.occupant}):l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:l.occupant}));var s="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(s="exclamation-triangle"));var d=[],u=0;for(u=0;u60||!l.isAllowed,onClick:function(){return c("start")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleOldContent=t.CameraConsoleMapContent=t.CameraConsole=void 0;var o=n(0),r=n(24),i=n(43),a=n(7),c=n(18),l=n(1),s=n(2),d=n(3),u=function(e,t){var n,o;if(!t)return[];var r=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[r-1])?void 0:n.name,null==(o=e[r+1])?void 0:o.name]},p=function(e,t){void 0===t&&(t="");var n=(0,c.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)};t.CameraConsole=function(e,t){var n=(0,l.useLocalState)(t,"tabIndex",0),r=n[0],i=n[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,s.Tabs,{children:[(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:0===r,onClick:function(){return i(0)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:1===r,onClick:function(){return i(1)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"table"})," List"]},"List")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,m);case 1:return(0,o.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}(r)]})})})};var m=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,a=n.config,c=p(i.cameras),d=(0,l.useLocalState)(t,"zoom",1),m=d[0],h=d[1],f=i.mapRef,C=i.activeCamera,g=i.stationLevel,N=u(c,C),b=N[0],V=N[1];return(0,o.createComponentVNode)(2,s.Box,{height:"100%",display:"flex",children:[(0,o.createComponentVNode)(2,s.Box,{height:"100%",flex:"0 0 500px",display:"flex",children:(0,o.createComponentVNode)(2,s.NanoMap,{onZoom:function(e){return h(e)},children:c.filter((function(e){return e.z===g})).map((function(e){return(0,o.createComponentVNode)(2,s.NanoMap.NanoButton,{activeCamera:C,x:e.x,y:e.y,context:t,zoom:m,icon:"circle",tooltip:e.name,name:e.name,color:"blue",status:e.status},e.ref)}))})}),(0,o.createComponentVNode)(2,s.Box,{height:"100%",resizable:!0,className:"CameraConsole__new__right",children:[(0,o.createVNode)(1,"div","CameraConsole__header",[(0,o.createVNode)(1,"div","CameraConsole__title",[(0,o.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!b,onClick:function(){return r("switch_camera",{name:b})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}})],4)],4),(0,o.createComponentVNode)(2,s.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:f,parent:a.window,type:"map"}})]})]})};t.CameraConsoleMapContent=m;var h=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,c=n.config,m=i.mapRef,h=i.activeCamera,f=(0,l.useLocalState)(t,"searchText",""),C=f[0],g=f[1],N=p(i.cameras,C),b=u(N,h),V=b[0],v=b[1];return(0,o.createComponentVNode)(2,s.Box,{children:[(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,t){return g(t)}}),(0,o.createComponentVNode)(2,s.Section,{children:N.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid",e.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",h&&e.name===h.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,d.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!v,onClick:function(){return r("switch_camera",{name:v})}})],4),(0,o.createComponentVNode)(2,s.ByondUi,{className:"CameraConsole__map",params:{id:m,parent:c.window,type:"map"}})],4)]})};t.CameraConsoleOldContent=h},function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(100),l=n(3);t.Canister=function(e,t){var n=(0,i.useBackend)(t),s=n.act,d=n.data,u=d.portConnected,p=d.tankPressure,m=d.releasePressure,h=d.defaultReleasePressure,f=d.minReleasePressure,C=d.maxReleasePressure,g=d.valveOpen,N=d.name,b=d.canLabel,V=d.colorContainer,v=d.color_index,x=d.hasHoldingTank,y=d.holdingTank,k="";v.prim&&(k=V.prim.options[v.prim].name);var w="";v.sec&&(w=V.sec.options[v.sec].name);var _="";v.ter&&(_=V.ter.options[v.ter].name);var B="";v.quart&&(B=V.quart.options[v.quart].name);var S=[],L=[],A=[],E=[],I=0;for(I=0;Ie.current_positions&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:e.total_positions-e.current_positions})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"0"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"-",disabled:d.cooldown_time||!e.can_close,onClick:function(){return s("make_job_unavailable",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"+",disabled:d.cooldown_time||!e.can_open,onClick:function(){return s("make_job_available",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:d.priority_jobs.indexOf(e.title)>-1?"Yes":""})||(0,o.createComponentVNode)(2,i.Button,{content:"Priority",selected:d.priority_jobs.indexOf(e.title)>-1,disabled:d.cooldown_time||!e.can_prioritize,onClick:function(){return s("prioritize_job",{job:e.title})}})})]},e.title)}))]})})],4):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 2:n=d.authenticated&&d.scan_name?d.modify_name?(0,o.createComponentVNode)(2,c.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(e){return s("set",{access:e})},grantAll:function(){return s("grant_all")},denyAll:function(){return s("clear_all")},grantDep:function(e){return s("grant_region",{region:e})},denyDep:function(e){return s("deny_region",{region:e})}}):(0,o.createComponentVNode)(2,i.Section,{title:"Card Missing",color:"red",children:"No card to modify."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 3:n=d.authenticated?d.records.length?(0,o.createComponentVNode)(2,i.Section,{title:"Records",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||0===d.records.length||d.target_dept,onClick:function(){return s("wipe_all_logs")}}),children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Crewman"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Old Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"New Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Authorized By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.transferee}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.oldvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.newvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.whodidit}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.reason}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.deletedby})]},e.timestamp)}))]}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||0===d.records.length,onClick:function(){return s("wipe_my_logs")}})})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Records",children:"No records."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 4:n=d.authenticated&&d.scan_name?(0,o.createComponentVNode)(2,i.Section,{title:"Your Team",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Sec Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.crimstat}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontext,disabled:!e.demotable,onClick:function(){return s("remote_demote",{remote_demote:e.name})}})})]},e.title)}))]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;default:n=(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,p,n]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.CargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n,r,i=(0,a.useBackend)(t),l=i.act,s=i.data,d=s.is_public,u=s.points,p=s.timeleft,m=s.moving,h=s.at_station;return m||h?!m&&h?(n="Docked at the station",r="Return Shuttle"):m&&(r="In Transit...",n=1!==p?"Shuttle is en route (ETA: "+p+" minutes)":"Shuttle is en route (ETA: "+p+" minute)"):(n="Docked off-station",r="Call Shuttle"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Points Available",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Status",children:n}),0===d&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:r,disabled:m,onClick:function(){return l("moveShuttle")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Central Command Messages",onClick:function(){return l("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Points)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Changelog=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(3),l=u(n(493)),s=u(n(494)),d=u(n(520));function u(e){return e&&e.__esModule?e:{"default":e}}function p(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var m={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},h=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},t.dateChoices=[],t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=u.prototype;return h.setData=function(e){this.setState({data:e})},h.setSelectedDate=function(e){this.setState({selectedDate:e})},h.setSelectedIndex=function(e){this.setState({selectedIndex:e})},h.getData=function(e,t){void 0===t&&(t=1);var n=(0,i.useBackend)(this.context).act,o=this;if(t>6)return this.setData("Failed to load data after 6 attempts");n("get_month",{date:e}),(0,d["default"])(e+".yml").then(function(){var n,r=(n=regeneratorRuntime.mark((function i(n){var r,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:r=i.sent,/^Cannot find/.test(r)?(a=50+50*t,o.setData("Loading changelog data"+".".repeat(t+3)),setTimeout((function(){o.getData(e,t+1)}),a)):o.setData(s["default"].load(r,{schema:s["default"].CORE_SCHEMA}));case 5:case"end":return i.stop()}}),i)})),function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){p(i,o,r,a,c,"next",e)}function c(e){p(i,o,r,a,c,"throw",e)}a(undefined)}))});return function(e){return r.apply(this,arguments)}}())},h.componentDidMount=function(){var e=this,t=(0,i.useBackend)(this.context).data.dates,n=void 0===t?[]:t;n&&(n.forEach((function(t){return e.dateChoices.push((0,l["default"])(t,"mmmm yyyy",!0))})),this.setSelectedDate(this.dateChoices[0]),this.getData(n[0]))},h.render=function(){var e=this,t=this.state,n=t.data,s=t.selectedDate,d=t.selectedIndex,u=(0,i.useBackend)(this.context).data.dates,p=this.dateChoices,h=p.length>0&&(0,o.createComponentVNode)(2,a.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:0===d,icon:"chevron-left",onClick:function(){var t=d-1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{displayText:s,options:p,onSelected:function(t){var n=p.indexOf(t);return e.setData("Loading changelog data..."),e.setSelectedIndex(n),e.setSelectedDate(t),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[n])},selected:s,width:"150px"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:d===p.length-1,icon:"chevron-right",onClick:function(){var t=d+1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})})]}),f=(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createVNode)(1,"h1",null,"Paradise Station",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thanks to: ",16),(0,o.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Recent GitHub contributors can be found "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,o.createTextVNode)(".")],0),h]}),C=(0,o.createComponentVNode)(2,a.Section,{children:[h,(0,o.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Coders: ",16),(0,o.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Spriters: ",16),(0,o.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,o.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Changelog#April_2010"}),(0,o.createTextVNode)(".")],0),(0,o.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,o.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,o.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,o.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Some icons by "),(0,o.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,o.createTextVNode)(". All rights reserved. Licensed under a "),(0,o.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,o.createTextVNode)(".")],4)]}),g=/#\d+/,N="object"==typeof n&&Object.keys(n).length>0&&Object.entries(n).reverse().map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:(0,l["default"])(t,"d mmmm yyyy",!0),children:(0,o.createComponentVNode)(2,a.Box,{ml:3,children:Object.entries(n).map((function(e){var t=e[0],n=e[1];return(0,o.createFragment)([(0,o.createVNode)(1,"h4",null,[t,(0,o.createTextVNode)(" changed:")],0),(0,o.createComponentVNode)(2,a.Box,{ml:3,children:(0,o.createComponentVNode)(2,a.Table,{children:n.map((function(e){var t=Object.keys(e)[0],n=e[t],i=n.match(g),c=(0,o.createComponentVNode)(2,a.Table.Cell,{className:(0,r.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,o.createComponentVNode)(2,a.Icon,{color:m[t]?m[t].color:m.unknown.color,name:m[t]?m[t].icon:m.unknown.icon})});return null!==i&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:(0,o.createVNode)(1,"a",null,[(0,o.createTextVNode)(" "),n,(0,o.createTextVNode)(" ")],0,{href:"https://github.com/ss220-space/Paradise/pull/"+i[0].substring(1)})})]},t+n)||(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:n})]},t+n)}))})})],4,t)}))})},t)}));return(0,o.createComponentVNode)(2,c.Window,{title:"Changelog",width:675,height:650,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[f,N,"string"==typeof n&&(0,o.createVNode)(1,"p",null,n,0),C]})})},u}(o.Component);t.Changelog=h},function(e,t,n){"use strict";var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){var a,c,l,s=arguments,d=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,n,o){if(1!==s.length||"string"!==f(e)||/\d/.test(e)||(t=e,e=undefined),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(d.masks[t]||t||d.masks["default"])).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(o=!0));var i=function(){return n?"getUTC":"get"},C=function(){return e[i()+"Date"]()},g=function(){return e[i()+"Day"]()},N=function(){return e[i()+"Month"]()},b=function(){return e[i()+"FullYear"]()},V=function(){return e[i()+"Hours"]()},v=function(){return e[i()+"Minutes"]()},x=function(){return e[i()+"Seconds"]()},y=function(){return e[i()+"Milliseconds"]()},k=function(){return n?0:e.getTimezoneOffset()},w=function(){return m(e)},_=function(){return h(e)},B={d:function(){return C()},dd:function(){return u(C())},ddd:function(){return d.i18n.dayNames[g()]},DDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()],short:!0})},dddd:function(){return d.i18n.dayNames[g()+7]},DDDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()+7]})},m:function(){return N()+1},mm:function(){return u(N()+1)},mmm:function(){return d.i18n.monthNames[N()]},mmmm:function(){return d.i18n.monthNames[N()+12]},yy:function(){return String(b()).slice(2)},yyyy:function(){return u(b(),4)},h:function(){return V()%12||12},hh:function(){return u(V()%12||12)},H:function(){return V()},HH:function(){return u(V())},M:function(){return v()},MM:function(){return u(v())},s:function(){return x()},ss:function(){return u(x())},l:function(){return u(y(),3)},L:function(){return u(Math.floor(y()/10))},t:function(){return V()<12?d.i18n.timeNames[0]:d.i18n.timeNames[1]},tt:function(){return V()<12?d.i18n.timeNames[2]:d.i18n.timeNames[3]},T:function(){return V()<12?d.i18n.timeNames[4]:d.i18n.timeNames[5]},TT:function(){return V()<12?d.i18n.timeNames[6]:d.i18n.timeNames[7]},Z:function(){return o?"GMT":n?"UTC":(String(e).match(c)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+u(100*Math.floor(Math.abs(k())/60)+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+u(Math.floor(Math.abs(k())/60),2)+":"+u(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]},W:function(){return w()},WW:function(){return u(w())},N:function(){return _()}};return t.replace(a,(function(e){return e in B?B[e]():e.slice(1,e.length-1)}))});d.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},d.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var u=function(e,t){for(e=String(e),t=t||2;e.length>10),56320+(e-65536&1023))}for(var x=new Array(256),y=new Array(256),k=0;k<256;k++)x[k]=V(k)?1:0,y[k]=V(k);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function _(e,t){return new r(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function B(e,t){throw _(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,_(e,t))}var L={YAML:function(e,t,n){var o,r,i;null!==e.version&&B(e,"duplication of %YAML directive"),1!==n.length&&B(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&B(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&B(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&B(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],p.test(o)||B(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,o)&&B(e,'there is a previously declared suffix for "'+o+'" tag handle'),m.test(r)||B(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=r}};function A(e,t,n,o){var r,i,a,c;if(t1&&(e.result+=o.repeat("\n",t-1))}function P(e,t){var n,o,r=e.tag,i=e.anchor,a=[],c=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),o=e.input.charCodeAt(e.position);0!==o&&45===o&&g(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,T(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,j(e,t,3,!1,!0),a.push(e.result),T(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)B(e,"bad indentation of a sequence entry");else if(e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt)&&(j(e,t,4,!0,r)&&(f?m=e.result:h=e.result),f||(I(e,d,u,p,m,h,i,a),p=m=h=null),T(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)B(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?B(e,"repeat of an indentation width identifier"):(u=t+i-1,d=!0)}if(C(a)){do{a=e.input.charCodeAt(++e.position)}while(C(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!f(a)&&0!==a)}for(;0!==a;){for(D(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!d||e.lineIndentu&&(u=e.lineIndent),f(a))p++;else{if(e.lineIndent0){for(r=a,i=0;r>0;r--)(a=b(c=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:B(e,"expected hexadecimal character");e.result+=v(i),e.position++}else B(e,"unknown escape sequence");n=o=e.position}else f(c)?(A(e,n,o,!0),M(e,T(e,!1,t)),n=o=e.position):e.position===e.lineStart&&F(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}B(e,"unexpected end of the stream within a double quoted scalar")}(e,m)?w=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!g(o)&&!N(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||B(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],T(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,c,l,s,d,u=e.kind,p=e.result;if(g(d=e.input.charCodeAt(e.position))||N(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(g(o=e.input.charCodeAt(e.position+1))||n&&N(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==d;){if(58===d){if(g(o=e.input.charCodeAt(e.position+1))||n&&N(o))break}else if(35===d){if(g(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&F(e)||n&&N(d))break;if(f(d)){if(c=e.line,l=e.lineStart,s=e.lineIndent,T(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=c,e.lineStart=l,e.lineIndent=s;break}}a&&(A(e,r,i,!1),M(e,e.line-c),r=i=e.position,a=!1),C(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return A(e,r,i,!1),!!e.result||(e.kind=u,e.result=p,!1)}(e,m,1===n)&&(w=!0,null===e.tag&&(e.tag="?")):(w=!0,null===e.tag&&null===e.anchor||B(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===V&&(w=s&&P(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(d=0,u=e.implicitTypes.length;d tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result)?(e.result=p.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):B(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||w}function U(e){var t,n,o,r,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(r=e.input.charCodeAt(e.position))&&(T(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&B(e,"directive name must not be less than one character in length");0!==r;){for(;C(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!f(r));break}if(f(r))break;for(t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&D(e),l.call(L,n)?L[n](e,n,o):S(e,'unknown document directive "'+n+'"')}T(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,T(e,!0,-1)):a&&B(e,"directives end mark is expected"),j(e,e.lineIndent-1,4,!1,!0),T(e,!0,-1),e.checkLineBreaks&&d.test(e.input.slice(i,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,T(e,!0,-1)):e.position0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){n=" ... ",r+=5;break}for(i="",a=this.position;at/2-1){i=" ... ",a-=5;break}return c=this.buffer.slice(r,a),o.repeat(" ",e)+n+c+i+"\n"+o.repeat(" ",e+this.position-r+n.length)+"^"},r.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=r},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(65),r=n(20);function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,c=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var o=n(65),r=n(20),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,o,r;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){r.unshift(parseFloat(e,10))})),t=0,o=1,r.forEach((function(e){t+=e*o,o*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==i.exec(e))},construct:function(e){var t,n,o,a,c,l,s,d,u=0,p=null;if(null===(t=r.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,o,a));if(c=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),d=new Date(Date.UTC(n,o,a,c,l,s,u)),p&&d.setTime(d.getTime()-p),d},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var o;try{o=n(508).Buffer}catch(a){}var r=n(20),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,a=i;for(n=0;n64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,c=i,l=0,s=[];for(t=0;t>16&255),s.push(l>>8&255),s.push(255&l)),l=l<<6|c.indexOf(r.charAt(t));return 0===(n=a%4*6)?(s.push(l>>16&255),s.push(l>>8&255),s.push(255&l)):18===n?(s.push(l>>10&255),s.push(l>>2&255)):12===n&&s.push(l>>4&255),o?o.from?o.from(s):new o(s):s},predicate:function(e){return o&&o.isBuffer(e)},represent:function(e){var t,n,o="",r=0,a=e.length,c=i;for(t=0;t>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]),r=(r<<8)+e[t];return 0===(n=a%3)?(o+=c[r>>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]):2===n?(o+=c[r>>10&63],o+=c[r>>4&63],o+=c[r<<2&63],o+=c[64]):1===n&&(o+=c[r>>2&63],o+=c[r<<4&63],o+=c[64],o+=c[64]),o}})},function(e,t,n){"use strict";(function(e){var o=n(509),r=n(510),i=n(511);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,n){var o=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function C(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:N(e,t,n,o,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):N(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function N(e,t,n,o,r){var i,a=1,c=e.length,l=t.length;if(o!==undefined&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,c/=2,l/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var d=-1;for(i=n;ic&&(n=c-l),i=n;i>=0;i--){for(var u=!0,p=0;pr&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function w(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r239?4:s>223?3:s>191?2:1;if(r+u<=n)switch(u){case 1:s<128&&(d=s);break;case 2:128==(192&(i=e[r+1]))&&(l=(31&s)<<6|63&i)>127&&(d=l);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(l=(15&s)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:i=e[r+1],a=e[r+2],c=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(l=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),r+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,o,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),o===undefined&&(o=0),r===undefined&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(o,r),d=e.slice(t,n),u=0;ur)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return V(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return y(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;ro)&&(n=o);for(var r="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,r,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function D(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r>>8*(o?r:1-r)}function T(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r>>8*(o?r:3-r)&255}function F(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,o,i){return i||F(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function P(e,t,n,o,i){return i||F(e,0,n,8),r.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=t===undefined?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(r*=256);)o+=this[e+--t]*r;return o},l.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=this[e],r=1,i=0;++i=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=0,a=1,c=0;for(this[t]=255&e;++i>0)-c&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,o){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(104))},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),d=0,u=c>0?a-4:a;for(n=0;n>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,c=n-r;ac?c:a+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var r,i,a=[],c=t;c>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";t.read=function(e,t,n,o,r){var i,a,c=8*r-o-1,l=(1<>1,d=-7,u=n?r-1:0,p=n?-1:1,m=e[t+u];for(u+=p,i=m&(1<<-d)-1,m>>=-d,d+=c;d>0;i=256*i+e[t+u],u+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===i)i=1-s;else{if(i===l)return a?NaN:(m?-1:1)*Infinity;a+=Math.pow(2,o),i-=s}return(m?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,c,l,s=8*i-r-1,d=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:i-1,h=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(c=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(c=0,a=d):a+u>=1?(c=(t*l-1)*Math.pow(2,r),a+=u):(c=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+m]=255&c,m+=h,c/=256,r-=8);for(a=a<0;e[n+m]=255&a,m+=h,a/=256,s-=8);e[n+m-h]|=128*f}},function(e,t,n){"use strict";var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},function(e,t,n){"use strict";var o=n(20),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,a,c,l=[],s=e;for(t=0,n=s.length;t3)return!1;if("/"!==t[t.length-o.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),o="";return"/"===t[0]&&(n&&(o=n[1]),t=t.slice(1,t.length-o.length-1)),new RegExp(t,o)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var o;try{o=n(518)}catch(i){"undefined"!=typeof window&&(o=window.esprima)}var r=n(20);e.exports=new r("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=o.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(r){return!1}},construct:function(e){var t,n="("+e+")",r=o.parse(n,{range:!0}),i=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=r.body[0].expression.body.range,"BlockStatement"===r.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t,n){"use strict";var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(8),a=n(15);function c(e,t,n){var a=null,c=function(e,t){n&&n(e,t),a&&a.visit(e,t)},l="function"==typeof n?c:null,s=!1;if(t){s="boolean"==typeof t.comment&&t.comment;var d="boolean"==typeof t.attachComment&&t.attachComment;(s||d)&&((a=new o.CommentHandler).attach=d,t.comment=!0,l=c)}var u,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),u=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,l):new i.Parser(e,t,l);var m=p?u.parseModule():u.parseScript();return s&&a&&(m.comments=a.comments),u.config.tokens&&(m.tokens=u.tokens),u.config.tolerant&&(m.errors=u.errorHandler.errors),m}t.parse=c,t.parseModule=function(e,t,n){var o=t||{};return o.sourceType="module",c(e,o,n)},t.parseScript=function(e,t,n){var o=t||{};return o.sourceType="script",c(e,o,n)},t.tokenize=function(e,t,n){var o,r=new a.Tokenizer(e,t);o=[];try{for(;;){var i=r.getNextToken();if(!i)break;n&&(i=n(i)),o.push(i)}}catch(c){r.errorHandler.tolerate(c)}return r.errorHandler.tolerant&&(o.errors=r.errors()),o};var l=n(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===o.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var i=this.leading[r];t.end.offset>=i.start&&(n.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var o=this.trailing[n];o.start>=e.end.offset&&t.unshift(o.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&((i=this.stack[this.stack.length-1])&&i.start>=e.start.offset);)t=i.node,this.stack.pop();if(t){for(var o=(t.leadingComments?t.leadingComments.length:0)-1;o>=0;--o){var r=t.leadingComments[o];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(o,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(o=this.leading.length-1;o>=0;--o){var i;(i=this.leading[o]).start<=e.start.offset&&(n.unshift(i.comment),this.leading.splice(o,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===o.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",o={type:n,value:e.value};if(e.range&&(o.range=e.range),e.loc&&(o.loc=e.loc),this.comments.push(o),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=n(5),c=n(6),l=n(7),s=n(8),d=n(13),u=n(14);function p(e){var t;switch(e.type){case c.JSXSyntax.JSXIdentifier:t=e.name;break;case c.JSXSyntax.JSXNamespacedName:var n=e;t=p(n.namespace)+":"+p(n.name);break;case c.JSXSyntax.JSXMemberExpression:var o=e;t=p(o.object)+"."+p(o.property)}return t}d.TokenName[100]="JSXIdentifier",d.TokenName[101]="JSXText";var m=function(e){function t(t,n,o){return e.call(this,t,n,o)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,o=!1,r=!1,a=!1;!this.scanner.eof()&&n&&!o;){var c=this.scanner.source[this.scanner.index];if(c===e)break;if(o=";"===c,t+=c,++this.scanner.index,!o)switch(t.length){case 2:r="#"===c;break;case 3:r&&(n=(a="x"===c)||i.Character.isDecimalDigit(c.charCodeAt(0)),r=r&&!a);break;default:n=(n=n&&!(r&&!i.Character.isDecimalDigit(c.charCodeAt(0))))&&!(a&&!i.Character.isHexDigit(c.charCodeAt(0)))}}if(n&&o&&t.length>2){var l=t.substr(1,t.length-2);r&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):a&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):r||a||!u.XHTMLEntities[l]||(t=u.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:c=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],o="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)o+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),c=46===r&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=c.length,{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var o={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(o)),o},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,o))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(r,i))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var o=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(o,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),o=this.matchJSX("/");return o&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,o,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),o=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(n,r,o))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;i=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(i),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],o=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:o,children:n});n=r.children,o=r.closing}return this.finalize(e,new a.JSXElement(t,n,o))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(s.Parser);t.JSXParser=m},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=function(e){this.type=o.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=r;var i=function(e,t,n){this.type=o.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXElement=i;var a=function(){this.type=o.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var c=function(e){this.type=o.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=c;var l=function(e){this.type=o.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=l;var s=function(e,t){this.type=o.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=s;var d=function(e,t){this.type=o.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=d;var u=function(e,t){this.type=o.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=u;var p=function(e,t,n){this.type=o.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXOpeningElement=p;var m=function(e){this.type=o.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=m;var h=function(e,t){this.type=o.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(e){this.type=o.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=r;var i=function(e){this.type=o.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=i;var a=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.ArrowFunctionExpression=a;var c=function(e,t,n){this.type=o.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentExpression=c;var l=function(e,t){this.type=o.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=l;var s=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncArrowFunctionExpression=s;var d=function(e,t,n){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=d;var u=function(e,t,n){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=u;var p=function(e){this.type=o.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var m=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?o.Syntax.LogicalExpression:o.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BinaryExpression=m;var h=function(e){this.type=o.Syntax.BlockStatement,this.body=e};t.BlockStatement=h;var f=function(e){this.type=o.Syntax.BreakStatement,this.label=e};t.BreakStatement=f;var C=function(e,t){this.type=o.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=C;var g=function(e,t){this.type=o.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var N=function(e){this.type=o.Syntax.ClassBody,this.body=e};t.ClassBody=N;var b=function(e,t,n){this.type=o.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassDeclaration=b;var V=function(e,t,n){this.type=o.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=V;var v=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=v;var x=function(e,t,n){this.type=o.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ConditionalExpression=x;var y=function(e){this.type=o.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=y;var k=function(){this.type=o.Syntax.DebuggerStatement};t.DebuggerStatement=k;var w=function(e,t){this.type=o.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=w;var _=function(e,t){this.type=o.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=_;var B=function(){this.type=o.Syntax.EmptyStatement};t.EmptyStatement=B;var S=function(e){this.type=o.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=S;var L=function(e){this.type=o.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=L;var A=function(e,t,n){this.type=o.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportNamedDeclaration=A;var E=function(e,t){this.type=o.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=E;var I=function(e){this.type=o.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=I;var D=function(e,t,n){this.type=o.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForInStatement=D;var T=function(e,t,n){this.type=o.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForOfStatement=T;var F=function(e,t,n,r){this.type=o.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.ForStatement=F;var M=function(e,t,n,r){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionDeclaration=M;var P=function(e,t,n,r){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=P;var O=function(e){this.type=o.Syntax.Identifier,this.name=e};t.Identifier=O;var R=function(e,t,n){this.type=o.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.IfStatement=R;var j=function(e,t){this.type=o.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=j;var U=function(e){this.type=o.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var z=function(e){this.type=o.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=z;var W=function(e,t){this.type=o.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=W;var H=function(e,t){this.type=o.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=H;var K=function(e,t){this.type=o.Syntax.Literal,this.value=e,this.raw=t};t.Literal=K;var Y=function(e,t){this.type=o.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=Y;var G=function(e,t,n,r,i){this.type=o.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this["static"]=i};t.MethodDefinition=G;var q=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=q;var X=function(e,t){this.type=o.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=X;var J=function(e){this.type=o.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=J;var $=function(e){this.type=o.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=$;var Z=function(e,t,n,r,i,a){this.type=o.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=i,this.shorthand=a};t.Property=Z;var Q=function(e,t,n,r){this.type=o.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RegexLiteral=Q;var ee=function(e){this.type=o.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=o.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var ne=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=ne;var oe=function(e){this.type=o.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=oe;var re=function(e){this.type=o.Syntax.SpreadElement,this.argument=e};t.SpreadElement=re;var ie=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=ie;var ae=function(){this.type=o.Syntax.Super};t.Super=ae;var ce=function(e,t){this.type=o.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=ce;var le=function(e,t){this.type=o.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=le;var se=function(e,t){this.type=o.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=se;var de=function(e,t){this.type=o.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=de;var ue=function(e,t){this.type=o.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=ue;var pe=function(){this.type=o.Syntax.ThisExpression};t.ThisExpression=pe;var me=function(e){this.type=o.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=me;var he=function(e,t,n){this.type=o.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.TryStatement=he;var fe=function(e,t){this.type=o.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=fe;var Ce=function(e,t,n){this.type=o.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.UpdateExpression=Ce;var ge=function(e,t){this.type=o.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var Ne=function(e,t){this.type=o.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=Ne;var be=function(e,t){this.type=o.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=be;var Ve=function(e,t){this.type=o.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=Ve;var ve=function(e,t){this.type=o.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=ve},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(10),i=n(11),a=n(7),c=n(12),l=n(2),s=n(13),d=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new c.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=o,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=o||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,o=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(o,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(o,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(o,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var o=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,o},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var o=this.parseFormalParameters(),r=this.parsePropertyMethod(o);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new a.AsyncFunctionExpression(null,o.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,i.Messages.StrictOctalLiteral);var o=this.getTokenRaw(n);e=this.finalize(t,new a.Literal(n.value,o));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),o=this.lookahead,r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(3===o.type){var p=o.value;this.nextToken(),l=this.match("["),r=(u=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new a.Identifier(p))}else this.match("*")?this.nextToken():(l=this.match("["),r=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===o.type&&!u&&"get"===o.value&&m)t="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(3===o.type&&!u&&"set"===o.value&&m)t="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(7===o.type&&"*"===o.value&&m)t="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!u)!l&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0;else if(3===o.type)if(p=this.finalize(n,new a.Identifier(o.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),d=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(n,new a.AssignmentPattern(p,h))}else d=!0,c=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new a.Property(t,r,l,c,s,d))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){o.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,o=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:o},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],o=this.parseTemplateHead();for(n.push(o);!o.tail;)t.push(this.parseExpression()),o=this.parseTemplateElement(),n.push(o);return this.finalize(e,new a.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var o=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(o=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!o)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(i=0;i")){for(var l=0;l0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],i=t,c=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[i,n.value,c],s=[o];!((o=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&o<=s[s.length-1];){c=l.pop();var d=l.pop();s.pop(),i=l.pop(),r.pop();var u=this.startNode(r[r.length-1]);l.push(this.finalize(u,new a.BinaryExpression(d,i,c)))}l.push(this.nextToken().value),s.push(o),r.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;t=l[p];for(var m=r.pop();p>1;){var h=r.pop(),f=m&&m.lineStart;u=this.startNode(h,f),d=l[p-1],t=this.finalize(u,new a.BinaryExpression(d,l[p-2],t)),p-=2,m=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,o,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var s=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var u=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var m=this.startNode(t);this.expect("=>");var h=void 0;if(this.match("{")){var f=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=f}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var C=h.type!==l.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=r?this.finalize(m,new a.AsyncArrowFunctionExpression(c.params,h,C)):this.finalize(m,new a.ArrowFunctionExpression(c.params,h,C)),this.context.strict=s,this.context.allowStrictDirective=d,this.context.allowYield=u,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var g=e;this.scanner.isRestrictedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var N=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(N,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),o=this.parsePattern([],e);this.context.strict&&o.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(o.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&o.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new a.VariableDeclarator(o,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;o.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var o=this.parsePattern(e,t);return this.finalize(n,new a.RestElement(o))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var o=[];!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else{if(this.match("...")){o.push(this.parseBindingRestElement(e,t));break}o.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new a.ArrayPattern(o))},e.prototype.parsePropertyPattern=function(e,t){var n,o,r=this.createNode(),i=!1,c=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var s=this.finalize(r,new a.Identifier(l.value));if(this.match("=")){e.push(l),c=!0,this.nextToken();var d=this.parseAssignmentExpression();o=this.finalize(this.startNode(l),new a.AssignmentPattern(s,d))}else this.match(":")?(this.expect(":"),o=this.parsePatternWithDefault(e,t)):(e.push(l),c=!0,o=s)}else i=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),o=this.parsePatternWithDefault(e,t);return this.finalize(r,new a.Property("init",n,i,o,!1,c))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),o=[];for(this.expect("{");!this.match("}");)o.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new a.ObjectPattern(o))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,o=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,o=this.finalize(this.startNode(n),new a.AssignmentPattern(o,i))}return o},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new a.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(i.Messages.StrictVarName);var o=null;return this.match("=")?(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(n,o))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new a.IfStatement(o,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(n,o))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var o=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=o}return this.finalize(t,new a.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,o=null,r=null,c=null,s=!0,d=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){o=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,1===p.length&&this.matchKeyword("in")){var m=p[0];m.init&&(m.id.type===l.Syntax.ArrayPattern||m.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseExpression(),o=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){o=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(u=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=u,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseExpression(),o=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(this.consumeSemicolon(),o=this.finalize(o,new a.VariableDeclaration(p,h)))):(o=this.finalize(o,new a.Identifier(h)),this.nextToken(),e=o,t=this.parseExpression(),o=null)}else{var f=this.lookahead;if(u=this.context.allowIn,this.context.allowIn=!1,o=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword("in"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseExpression(),o=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseAssignmentExpression(),o=null,s=!1;else{if(this.match(",")){for(var C=[o];this.match(",");)this.nextToken(),C.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(f),new a.SequenceExpression(C))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(c=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===e?this.finalize(d,new a.ForStatement(o,r,c,n)):s?this.finalize(d,new a.ForInStatement(e,t,n)):this.finalize(d,new a.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var o=[],r=!1;for(this.expect("{");!this.match("}");){var c=this.parseSwitchCase();null===c.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),o.push(c)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new a.SwitchStatement(t,o))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var o=n,r="$"+o.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",o.name),this.context.labelSet[r]=!0;var c=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword("function")){var s=this.lookahead,d=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(s,i.Messages.StrictFunction):d.generator&&this.tolerateUnexpectedToken(s,i.Messages.GeneratorInLegacyContext),c=d}else c=this.parseStatement();delete this.context.labelSet[r],e=new a.LabeledStatement(o,c)}else this.consumeSemicolon(),e=new a.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),o={},r=0;r0&&this.tolerateError(i.Messages.BadGetterArity);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(i.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var o=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=o}return this.finalize(e,new a.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),o="",r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,d=!0,l=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(u=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,i.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&m?(o="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):"set"===t.value&&m&&(o="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):7===t.type&&"*"===t.value&&m&&(o="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0),!o&&r&&this.match("(")&&(o="init",c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0),o||this.throwUnexpectedToken(this.lookahead),"init"===o&&(o="method"),l||(d&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,i.Messages.StaticPrototype),!d&&this.isPropertyKey(r,"constructor")&&(("method"!==o||!s||c&&c.generator)&&this.throwUnexpectedToken(t,i.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,i.Messages.DuplicateConstructor):e.value=!0,o="constructor")),this.finalize(n,new a.MethodDefinition(r,l,c,o,d))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var o=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=n,this.finalize(t,new a.ClassDeclaration(o,r,i))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,o=null;this.matchKeyword("extends")&&(this.nextToken(),o=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(n,o,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null));else{var c=[],l=null,s=!1;for(this.expect("{");!this.match("}");)s=s||this.matchKeyword("default"),c.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):s?(o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(o,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,c,l))}return e},e}();t.Parser=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(o){Object.create&&Object.defineProperty&&(n=Object.create(o),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,o){var r="Line "+t+": "+o,i=this.constructError(r,n);return i.index=e,i.lineNumber=t,i.description=o,i},e.prototype.throwError=function(e,t,n,o){throw this.createError(e,t,n,o)},e.prototype.tolerateError=function(e,t,n,o){var r=this.createError(e,t,n,o);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(4),i=n(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function c(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,o=[];for(this.trackComment&&(o=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};o.push(a)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,o}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},o.push(a)),o},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(o))13===o&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===o){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(i)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(i)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var o=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(o)),t=!0}else{if(42!==n)break;this.index+=2,o=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(o))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,o=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(o))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,o=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(o))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,o=0;o1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=c(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+c(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+c(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var o=this.index;this.index=t,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=o}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",o=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(o=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return o||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&o.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"\uffff"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(n)}catch(r){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(a){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];o.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){a=!0;break}"["===e&&(n=!0)}return a||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,o=this.scanHexEscape("u");if(null!==o)for(e+=o;n=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),r=n(12),i=n(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(o=this.values[this.curly-4])&&!this.beforeFunctionExpression(o);else if("function"===this.values[this.curly-4]){var o;t=!(o=this.values[this.curly-5])||!this.beforeFunctionExpression(o)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),c=function(){function e(e,t){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;to&&" "!==e[u+1],u=i);else if(!C(a))return 5;p=p&&g(a)}s=s||d&&i-u-1>o&&" "!==e[u+1]}return l||s?n>9&&N(e)?5:s?4:3:p&&!r(e)?1:2}function V(e,t,n,o){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==d.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=o||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,c,e.indent,a,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n"+v(t,e.indent)+x(m(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(c=e.indexOf("\n"),c=-1!==c?c:e.length,r.lastIndex=c,y(e.slice(0,c),t)),a="\n"===e[0]||" "===e[0];var c;for(;o=r.exec(e);){var l=o[1],s=o[2];n=" "===s[0],i+=l+(a||n||""===s?"":"\n")+y(s,t),a=n}return i}(t,a),i));case 5:return'"'+function(e){for(var t,n,o,r="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(r+=u(1024*(t-55296)+n-56320+65536),i++):(o=s[t],r+=!o&&C(t)?e[i]:o||u(t));return r}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function v(e,t){var n=N(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function y(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,i=0,a=0,c=0,l="";n=r.exec(e);)(c=n.index)-i>t&&(o=a>i?a:c,l+="\n"+e.slice(i,o),i=o+1),a=c;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function k(e,t,n){var o,i,a,s,d,u;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+u+'" style');o=d.represent[u](t,u)}e.dump=o}return!0}return!1}function w(e,t,n,o,i,a){e.tag=null,e.dump=n,k(e,n,!1)||k(e,n,!0);var l=c.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>t);var s,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&d&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var i,a,c,l,s,d,u="",p=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(i=0,a=m.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,s&&(d+=h(e,t)),w(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,i),d&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,n){var o,r,i,a,c,l="",s=e.tag,d=Object.keys(n);for(o=0,r=d.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),w(e,t,a,!1,!1)&&(l+=c+=e.dump));e.tag=s,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===l){var p=e.noArrayIndent&&t>0?t-1:t;o&&0!==e.dump.length?(!function(e,t,n,o){var r,i,a="",c=e.tag;for(r=0,i=n.length;r "+e.dump)}return!0}function _(e,t){var n,o,r=[],i=[];for(function a(e,t,n){var o,r,i;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,i=e.length;r0}),(0,o.createComponentVNode)(2,p,{mode:g,bufferReagents:f}),(0,o.createComponentVNode)(2,m,{isCondiment:i,bufferNonEmpty:f.length>0}),(0,o.createComponentVNode)(2,C)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t).act,a=e.beaker,d=e.beakerReagents,u=e.bufferNonEmpty;return(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",flexGrow:"0",flexBasis:"300px",buttons:u?(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}):(0,o.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}),children:a?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:d,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!c.condi&&(0,o.createComponentVNode)(2,i.Button,{icon:c.printing?"spinner":"print",disabled:c.printing,iconSpin:!!c.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})})),(0,l.modalRegisterBodyOverride)("change_patch_style",(function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(r,a){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:a+1===parseInt(n.modal.value,10),onClick:function(){return(0,l.modalAnswer)(t,e.id,a+1)},children:(0,o.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 32px;height: 32px;background: url(bandaid"+(a+1)+".png);background-size: 160%;background-position: left -9px bottom -14px;"})})},a)}))})}))},function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(49),l=n(51),s=n(3),d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,s=e.args,d=s.activerecord,u=s.realname,p=s.health,m=s.unidentity,h=s.strucenzymes,f=p.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:f.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.oxy,display:"inline",children:f[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.toxin,display:"inline",children:f[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.brute,display:"inline",children:f[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.burn,display:"inline",children:f[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:d})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",d),(0,o.createComponentVNode)(2,s.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,p)})]})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},p=function(e,t){var n,r=(0,i.useBackend)(t).data.menu;return 1===r?n=(0,o.createComponentVNode)(2,m):2===r&&(n=(0,o.createComponentVNode)(2,h)),n},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.loading,d=l.scantemp,u=l.occupant,p=l.locked,m=l.can_brainscan,h=l.scan_mode,f=l.numberofpods,C=l.pods,g=l.selected_pod,N=p&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:N,icon:N?"toggle-on":"toggle-off",content:N?"Engaged":"Disengaged",onClick:function(){return c("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:N||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return c("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:d.color,children:d.text})}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"brain":"male",content:h?"Brain":"Body",onClick:function(){return c("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||s,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return c("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:f?C.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:g===e.pod,icon:g===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",t+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.records;return c.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},t)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},f=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.scanner,s=c.numberofpods,d=c.autoallowed,u=c.autoprocess,p=c.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[s," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CommunicationsComputer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.CommunicationsComputer=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;n=s.authenticated?s.is_ai?"AI":1===s.authenticated?"Command":2===s.authenticated?"Captain":"ERROR: Report This Bug!":"Not Logged In";var d="View ("+s.messages.length+")",u=(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.is_ai&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.authenticated?"sign-out-alt":"id-card",selected:s.authenticated,content:s.authenticated?"Log Out ("+n+")":"Log In",onClick:function(){return l("auth")}})})})}),!!s.esc_section&&(0,o.createComponentVNode)(2,i.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!s.esc_status&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s.esc_status}),!!s.esc_callable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Call Shuttle",disabled:!s.authenticated,onClick:function(){return l("callshuttle")}})}),!!s.esc_recallable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Recall Shuttle",disabled:!s.authenticated||s.is_ai,onClick:function(){return l("cancelshuttle")}})}),!!s.lastCallLoc&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Last Call/Recall From",children:s.lastCallLoc})]})})],0),p="Make Priority Announcement";s.msg_cooldown>0&&(p+=" ("+s.msg_cooldown+"s)");var m=s.emagged?"Message [UNKNOWN]":"Message CentComm",h="Request Authentication Codes";s.cc_cooldown>0&&(m+=" ("+s.cc_cooldown+"s)",h+=" ("+s.cc_cooldown+"s)");var f,C=s.str_security_level,g=s.levels.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.icon,content:e.name,disabled:!s.authmax||e.id===s.security_level,onClick:function(){return l("newalertlevel",{level:e.id})}},e.name)})),N=s.stat_display.presets.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.name===s.stat_display.type,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:e.name})}},e.name)})),b=s.stat_display.alerts.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.alert===s.stat_display.icon,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:"alert",alert:e.alert})}},e.alert)}));if(s.current_message_title)f=(0,o.createComponentVNode)(2,i.Section,{title:s.current_message_title,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Return To Message List",disabled:!s.authenticated,onClick:function(){return l("messagelist")}}),children:(0,o.createComponentVNode)(2,i.Box,{children:s.current_message})});else{var V=s.messages.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"eye",content:"View",disabled:!s.authenticated||s.current_message_title===e.title,onClick:function(){return l("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete",disabled:!s.authenticated,onClick:function(){return l("delmessage",{msgid:e.id})}})]},e.id)}));f=(0,o.createComponentVNode)(2,i.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:V})})}switch(s.menu_state){case 1:return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Captain-Only Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Alert",color:s.security_level_color,children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Change Alert",children:g}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",content:p,disabled:!s.authmax||s.msg_cooldown>0,onClick:function(){return l("announce")}})}),!!s.emagged&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",color:"red",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageSyndicate")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!s.authmax,onClick:function(){return l("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageCentcomm")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nuclear Device",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",content:h,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("nukerequest")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,i.Button,{icon:"tv",content:"Change Status Displays",disabled:!s.authenticated,onClick:function(){return l("status")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,i.Button,{icon:"folder-open",content:d,disabled:!s.authenticated,onClick:function(){return l("messagelist")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!s.authenticated,onClick:function(){return l("RestartNanoMob")}})})]})})]})});case 2:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Presets",children:N}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alerts",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_1,disabled:!s.authenticated,onClick:function(){return l("setmsg1")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_2,disabled:!s.authenticated,onClick:function(){return l("setmsg2")}})})]})})]})});case 3:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,f]})});default:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",s.menu_state,"Please report this to NT Technical Support."]})})}}},function(e,t,n){"use strict";t.__esModule=!0,t.Contractor=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(102),l=n(3);var s={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},d=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(2e4*Math.random()),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"];t.Contractor=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,s=r.data;n=s.unauthorized?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){}})}):s.load_animation_completed?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"hidden",children:1===s.page?(0,o.createComponentVNode)(2,m,{height:"100%"}):(0,o.createComponentVNode)(2,f,{height:"100%"})})],4):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:d,finishedTimeout:3e3,onFinished:function(){return c("complete_load_animation")}})});var h=(0,i.useLocalState)(t,"viewingPhoto",""),N=h[0];h[1];return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:[N&&(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Contractor",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:n})})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.tc_available,s=c.tc_paid_out,d=c.completed_contracts,u=c.rep;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Summary",buttons:(0,o.createComponentVNode)(2,a.Box,{verticalAlign:"middle",mt:"0.25rem",children:[u," Rep"]})},e,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",children:[l," TC"]}),(0,o.createComponentVNode)(2,a.Button,{disabled:l<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){return r("claim")}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Earned",children:[s," TC"]})]})}),(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:d})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.page;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Tabs,Object.assign({},e,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"suitcase"}),"Contracts"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"shopping-cart"}),"Hub"]})]})))},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,d=l.contracts,u=l.contract_active,p=l.can_extract,m=!!u&&d.filter((function(e){return 1===e.status}))[0],f=m&&m.time_left>0,C=(0,i.useLocalState)(t,"viewingPhoto",""),g=(C[0],C[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!p||f,icon:"parachute-box",content:["Call Extraction",f&&(0,o.createComponentVNode)(2,c.Countdown,{timeLeft:m.time_left,format:function(e,t){return" ("+t.substr(3)+")"}})],onClick:function(){return r("extract")}})},e,{children:d.slice().sort((function(e,t){return 1===e.status?-1:1===t.status?1:e.status-t.status})).map((function(e){var t;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",color:1===e.status&&"good",children:e.target_name}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:e.has_photo&&(0,o.createComponentVNode)(2,a.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return g("target_photo_"+e.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,o.createComponentVNode)(2,a.Box,{width:"100%",children:[!!s[e.status]&&(0,o.createComponentVNode)(2,a.Box,{color:s[e.status][1],display:"inline-block",mt:1!==e.status&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:s[e.status][0]}),1===e.status&&(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){return r("abort")}})]}),children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"2",mr:"0.5rem",children:[e.fluff_message,!!e.completed_time&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",e.completed_time]}),!!e.dead_extraction&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!e.fail_reason&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",e.fail_reason]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{flexBasis:"100%",children:[(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xa0",h(e)]}),null==(t=e.difficulties)?void 0:t.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!!u,content:t.name+" ("+t.reward+" TC)",onClick:function(){return r("activate",{uid:e.uid,difficulty:n+1})}})})),!!e.objective&&(0,o.createComponentVNode)(2,a.Box,{color:"white",bold:!0,children:[e.objective.extraction_name,(0,o.createVNode)(1,"br"),"(",(e.objective.rewards.tc||0)+" TC",",\xa0",(e.objective.rewards.credits||0)+" Credits",")"]})]})]})},e.uid)}))})))},h=function(e){if(e.objective&&!(e.status>1)){var t=e.objective.locs.user_area_id,n=e.objective.locs.user_coords,i=e.objective.locs.target_area_id,c=e.objective.locs.target_coords,l=t===i;return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:l?"dot-circle-o":"arrow-alt-circle-right-o",color:l?"green":"yellow",rotation:l?null:-(0,r.rad2deg)(Math.atan2(c[1]-n[1],c[0]-n[0])),lineHeight:l?null:"0.85",size:"1.5"})})}},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.rep,s=c.buyables;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Purchases",overflow:"auto"},e,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:e.refundable&&(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Refund ("+e.cost+" Rep)",onClick:function(){return r("refund",{uid:e.uid})}}),children:[e.description,(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:l-1&&(0,o.createComponentVNode)(2,a.Box,{as:"span",color:0===e.stock?"bad":"good",ml:"0.5rem",children:[e.stock," in stock"]})]},e.uid)}))})))},C=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={currentIndex:0,currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=this.props,t=this.state;t.currentIndex<=e.allMessages.length?(this.setState((function(e){return{currentIndex:e.currentIndex+1}})),t.currentDisplay.push(e.allMessages[t.currentIndex])):(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout))},i.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},i.componentWillUnmount=function(){clearTimeout(this.timer)},i.render=function(){return(0,o.createComponentVNode)(2,a.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component),g=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Contractor__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ConveyorSwitch=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ConveyorSwitch=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.slowFactor,d=l.oneWay,u=l.position;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Allow reverse",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,onClick:function(){return c("toggleOneWay")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Slowdown factor",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-left",onClick:function(){return c("slowFactor",{value:s-5})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-left",onClick:function(){return c("slowFactor",{value:s-1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Slider,{width:"100px",mx:"1px",value:s,fillValue:s,minValue:1,maxValue:50,step:1,format:function(e){return e+"x"},onChange:function(e,t){return c("slowFactor",{value:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-right",onClick:function(){return c("slowFactor",{value:s+1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-right",onClick:function(){return c("slowFactor",{value:s+5})}})," "]})]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitor=void 0;var o=n(0),r=n(24),i=n(18),a=n(1),c=n(2),l=n(80),s=n(49),d=n(3),u=function(e,t){return e.dead?"Deceased":parseInt(e.health,10)<=t?"Critical":1===parseInt(e.stat,10)?"Unconscious":"Living"},p=function(e,t){return e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"green"};t.CrewMonitor=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=(0,a.useLocalState)(t,"tabIndex",r.IndexToggler),l=i[0],s=i[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[r.isBS?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===l,onClick:function(){return s(0)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,r.isBP?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===l,onClick:function(){return s(1)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===l,onClick:function(){return s(2)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===l,onClick:function(){return s(3)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,f);case 1:return(0,o.createComponentVNode)(2,C);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}(l)]})})})};var m=function(e){var t=e.crewData,n=e.context,d=(0,a.useBackend)(n),m=d.act,h=d.data,f=(0,r.sortBy)((function(e){return e.name}))(t||[]),C=(0,a.useLocalState)(n,"search",""),g=C[0],N=C[1],b=(0,i.createSearch)(g,(function(e){return e.name+"|"+e.assignment+"|"+e.area}));return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(e,t){return N(t)}}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Location"})]}),f.filter(b).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{bold:!!e.is_command,children:[(0,o.createComponentVNode)(2,l.TableCell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.TableCell,{children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:p(e,h.critThreshold),children:u(e,h.critThreshold)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.oxy,children:e.oxy}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.toxin,children:e.tox}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.burn,children:e.fire}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.brute,children:e.brute}),")"]}):null]}),(0,o.createComponentVNode)(2,l.TableCell,{children:3===e.sensor_type?h.isAI?(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return m("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+")":"Not Available"})]},e.name)}))]})]})},h=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},f=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_command}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},C=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_security}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=(0,a.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?"square":"circle"},m=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?10:6},h=function(e,t){return e.is_command&&i.isBS||e.is_security&&i.isBP?e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"violet":p(e,t)};return(0,o.createComponentVNode)(2,c.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,c.NanoMap,{onZoom:function(e){return d(e)},children:i.crewmembers.filter((function(e){return 3===e.sensor_type})).map((function(e){return(0,o.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:u(e),size:m(e),tooltip:e.name+" ("+e.assignment+")",color:h(e,i.critThreshold),onClick:function(){i.isAI&&r("track",{track:e.ref})}},e.ref)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(0),r=n(533),i=n(1),a=n(2),c=n(3),l=[{label:"\u0410\u0441\u0444\u0438\u043a\u0441\u0438\u044f",type:"oxyLoss"},{label:"\u0418\u043d\u0442\u043e\u043a\u0441\u0438\u043a\u0430\u0446\u0438\u044f",type:"toxLoss"},{label:"\u0420\u0430\u043d\u044b",type:"bruteLoss"},{label:"\u041e\u0436\u043e\u0433\u0438",type:"fireLoss"}],s=[["good","\u0412 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f"],["bad","\u0422\u0420\u0423\u041f"]];t.Cryo=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,d=c.isOperating,p=c.hasOccupant,m=c.occupant,h=void 0===m?[]:m,f=c.cellTemperature,C=c.cellTemperatureStatus,g=c.isBeakerLoaded,N=c.auto_eject_healthy,b=c.auto_eject_dead;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return r("ejectOccupant")},disabled:!p,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c"}),children:p?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",children:h.name||"\u0418\u043c\u044f \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:h.health,max:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.health)})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:s[h.stat][0],children:s[h.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.bodyTemperature)}),"\xa0K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),l.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"\u041f\u0430\u0446\u0438\u0435\u043d\u0442 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d."]})})}),(0,o.createComponentVNode)(2,a.Section,{title:"\u041a\u0440\u0438\u043e\u043a\u0430\u043f\u0441\u0443\u043b\u0430",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("ejectBeaker")},disabled:!g,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c \u0451\u043c\u043a\u043e\u0441\u0442\u044c"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0438\u0442\u0430\u043d\u0438\u0435",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return r(d?"switchOff":"switchOn")},selected:d,children:d?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:C,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f}),"\xa0K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return r(N?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:N?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0451\u0440\u0442\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return r(b?"auto_eject_dead_off":"auto_eject_dead_on")},children:b?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})})]})})],4)},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.isBeakerLoaded,s=c.beakerLabel,d=c.beakerVolume;return l?(0,o.createFragment)([s?"\xab"+s+"\xbb":(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430"}),(0,o.createComponentVNode)(2,a.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d,format:function(e){var t=Math.round(e);return(0,r.declensionRu)(t,"\u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u0438\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c")+" "+t+" "+(0,r.declensionRu)(t,"\u0435\u0434\u0438\u043d\u0438\u0446\u0430","\u0435\u0434\u0438\u043d\u0438\u0446\u044b","\u0435\u0434\u0438\u043d\u0438\u0446")}}):"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u0430"})],0):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430"})}},function(e,t,n){"use strict";t.__esModule=!0,t.declensionRu=void 0;t.declensionRu=function(e,t,n,o){var r=e%100;if(r>=10&&r<=20)return o;var i=r%10;return 1===i?t:i>=2&&i<=4?n:o}},function(e,t,n){"use strict";t.__esModule=!0,t.CryopodConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18);t.CryopodConsole=function(e,t){var n=(0,r.useBackend)(t).data,c=n.account_name,d=n.allow_items;return(0,o.createComponentVNode)(2,a.Window,{title:"Cryopod Console",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Hello, "+(c||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,o.createComponentVNode)(2,l),!!d&&(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t).data.frozen_crew;return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Crew",children:n.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:e.rank},t)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored crew!"})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data.frozen_items,s=function(e){var t=e.toString();return t.startsWith("the ")&&(t=t.slice(4,t.length)),(0,c.toTitleCase)(t)};return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l.length,content:"Drop All Items",color:"red",onClick:function(){return a("all_items")}}),children:l.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:s(e.name),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){return a("one_item",{item:e.uid})}})},e)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored items!"})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(51),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],d=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,i=(0,r.useBackend)(t),l=(i.act,i.data),s=l.irradiating,d=l.dnaBlockSize,m=l.occupant;return t.dnaBlockSize=d,t.isDNAInvalid=!m.isViableSubject||!m.uniqueIdentity||!m.structuralEnzymes,s&&(n=(0,o.createComponentVNode)(2,V,{duration:s})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal),n,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.locked,d=c.hasOccupant,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,selected:s,icon:s?"toggle-on":"toggle-off",content:s?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d||s,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Divider)]})}),t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unique Enzymes",children:c.occupant.uniqueEnzymes?c.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Cell unoccupied."})})},p=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data,d=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,f)],4):"se"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f)],4):"buffer"===d?n=(0,o.createComponentVNode)(2,C):"rejuvenators"===d&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:d===e[0],onClick:function(){return c("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedUIBlock,s=c.selectedUISubBlock,d=c.selectedUITarget,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:d,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return a("changeUITarget",{value:t})}})})}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedSEBlock,s=c.selectedSESubBlock,d=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:d.structuralEnzymes,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.radiationIntensity,s=c.radiationDuration;return(0,o.createComponentVNode)(2,i.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationIntensity",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:s,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationDuration",{value:t})}})})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},C=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.buffers.map((function(e,t){return(0,o.createComponentVNode)(2,g,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,N)],4)},g=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=e.id,s=e.name,d=e.buffer,u=c.isInjectorReady,p=s+(d.data?" - "+d.label:"");return(0,o.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,i.Section,{title:p,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!d.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data||!c.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-left",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!d.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:d.owner||(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!d.data&&(0,o.createComponentVNode)(2,i.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.hasDisk,s=c.disk;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!l||!s.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?s.data?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Label",children:s.label?s.label:"No label"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:s.owner?s.owner:(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},b=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.isBeakerLoaded,s=c.beakerVolume,u=c.beakerLabel;return(0,o.createComponentVNode)(2,i.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Inject",children:[d.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:e>s,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},t)})),(0,o.createComponentVNode)(2,i.Button,{disabled:s<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:s})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,i.Box,{mb:"0.5rem",children:u||"No label"}),s?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[s," unit",1===s?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},V=function(e,t){return(0,o.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,i.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},v=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.dnaString),l=e.selectedBlock,s=e.selectedSubblock,d=e.blockSize,u=e.action,p=c.split(""),m=[],h=function(e){for(var t=e/d+1,n=[],r=function(r){var c=r+1;n.push((0,o.createComponentVNode)(2,i.Button,{selected:l===t&&s===c,content:p[e+r],mb:"0",onClick:function(){return a(u,{block:t,subblock:c})}}))},c=0;c0?"Yes":"No",selected:l.com>0,onClick:function(){return c("toggle_com")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Security",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.sec===e,content:e,onClick:function(){return c("set_sec",{set_sec:e})}},"sec"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Medical",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.med===e,content:e,onClick:function(){return c("set_med",{set_med:e})}},"med"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engineering",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.eng===e,content:e,onClick:function(){return c("set_eng",{set_eng:e})}},"eng"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Paranormal",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.par===e,content:e,onClick:function(){return c("set_par",{set_par:e})}},"par"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitor",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.jan===e,content:e,onClick:function(){return c("set_jan",{set_jan:e})}},"jan"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cyborg",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.cyb===e,content:e,onClick:function(){return c("set_cyb",{set_cyb:e})}},"cyb"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Slots",children:(0,o.createComponentVNode)(2,i.Box,{color:l.total>l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Dispatch",children:(0,o.createComponentVNode)(2,i.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){return c("dispatch_ert")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Electropack=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Electropack=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=s.power,u=s.code,p=s.frequency,m=s.minFrequency,h=s.maxFrequency;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:h/10,value:p/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onChange:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(e,t){return l("code",{code:t})}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EvolutionMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.EvolutionMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"changeling",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.can_respec;return(0,o.createComponentVNode)(2,i.Section,{title:"Evolution Points",height:5.5,children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{ml:2.5,disabled:!s,content:"Readapt",icon:"sync",onClick:function(){return a("readapt")}}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.ability_list,d=c.purchased_abilities,u=c.view_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Abilities",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){return a("set_view_mode",{mode:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){return a("set_view_mode",{mode:1})}})],4),children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{ml:.5,color:"#dedede",children:e.name}),d.includes(e.power_path)&&(0,o.createComponentVNode)(2,i.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,o.createComponentVNode)(2,i.Box,{as:"span",color:"label",children:["Cost: "," "]}),(0,o.createComponentVNode)(2,i.Box,{as:"span",bold:!0,color:"#1b945c",children:e.cost})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,o.createComponentVNode)(2,i.Button,{mr:.5,disabled:e.cost>l||d.includes(e.power_path),content:"Evolve",onClick:function(){return a("purchase",{power_path:e.power_path})}})})]}),!!u&&(0,o.createComponentVNode)(2,i.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:e.description+" "+e.helptext})]},t)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExosuitFabricator=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(2),l=n(102),s=n(3);var d={bananium:"clown",tranquillite:"mime"};t.ExosuitFabricator=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building;return(0,o.createComponentVNode)(2,s.Window,{theme:r.ui_theme,children:(0,o.createComponentVNode)(2,s.Window.Content,{className:"Exofab",children:(0,o.createComponentVNode)(2,c.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",mr:"0.5rem",width:"70%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"100%",children:(0,o.createComponentVNode)(2,p)}),i&&(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,m)})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,h)})]})})]})})})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.materials,s=i.capacity,d=Object.values(l).reduce((function(e,t){return e+t}),0);return(0,o.createComponentVNode)(2,c.Section,{title:"Materials",className:"Exofab__materials",buttons:(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.25rem",children:[(d/s*100).toPrecision(3),"% full"]}),children:["$metal","$glass","$silver","$gold","$uranium","$titanium","$plasma","$diamond","$bluespace","$bananium","$tranquillite","$plastic"].map((function(e){return(0,o.createComponentVNode)(2,f,{id:e,bold:"$metal"===e||"$glass"===e,onClick:function(){return r("withdraw",{id:e})}},e)}))})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.curCategory,d=l.categories,u=l.designs,p=l.syncing,m=(0,a.useLocalState)(t,"searchText",""),h=m[0],f=m[1],g=(0,i.createSearch)(h,(function(e){return e.name})),N=u.filter(g);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__designs",title:(0,o.createComponentVNode)(2,c.Dropdown,{selected:s,options:d,onSelected:function(e){return r("category",{cat:e})},width:"150px"}),height:"100%",buttons:(0,o.createComponentVNode)(2,c.Box,{mt:"-18px",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:"Queue all",onClick:function(){return r("queueall")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:p,iconSpin:p,icon:"sync-alt",content:p?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){return r("sync")}})]}),children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(e,t){return f(t)}}),N.map((function(e){return(0,o.createComponentVNode)(2,C,{design:e},e.id)})),0===N.length&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No designs found."})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building,s=r.buildStart,d=r.buildEnd,u=r.worldTime;return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__building",stretchContents:!0,children:(0,o.createComponentVNode)(2,c.ProgressBar.Countdown,{start:s,current:u,end:d,bold:!0,children:[(0,o.createComponentVNode)(2,c.Box,{float:"left",children:(0,o.createComponentVNode)(2,c.Icon,{name:"cog",spin:!0})}),"Building ",i,"\xa0(",(0,o.createComponentVNode)(2,l.Countdown,{current:u,timeLeft:d-u,format:function(e,t){return t.substr(3)}}),")"]})})},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.queue,s=i.processingQueue,d=Object.entries(i.queueDeficit).filter((function(e){return e[1]<0})),u=l.reduce((function(e,t){return e+t.time}),0);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__queue",title:"Queue",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:"Process",onClick:function(){return r("process")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:0===l.length,icon:"eraser",content:"Clear",onClick:function(){return r("unqueueall")}})]}),children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",direction:"column",children:0===l.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"The queue is empty."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--queue",grow:"1",overflow:"auto",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{color:e.notEnough&&"bad",children:[t+1,". ",e.name,t>0&&(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-up",onClick:function(){return r("queueswap",{from:t+1,to:t})}}),t0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--time",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Processing time:",(0,o.createComponentVNode)(2,c.Icon,{name:"clock",mx:"0.5rem"}),(0,o.createComponentVNode)(2,c.Box,{display:"inline",bold:!0,children:new Date(u/10*1e3).toISOString().substr(14,5)})]}),Object.keys(d).length>0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--deficit",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Lacking materials to complete:",d.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:-e[1],lineDisplay:!0})},e[0])}))]})],0)})})},f=function(e,t){var n=(0,a.useBackend)(t),i=(n.act,n.data),l=e.id,s=e.amount,u=e.lineDisplay,p=e.onClick,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["id","amount","lineDisplay","onClick"]),h=l.replace("$",""),f=i.materials[l]||0,C=s||f;if(!(C<=0&&"metal"!==h&&"glass"!==h)){var g=s&&s>f;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Flex,Object.assign({className:(0,r.classes)(["Exofab__material",u&&"Exofab__material--line"])},m,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,c.Button,{onClick:p,children:(0,o.createComponentVNode)(2,c.Box,{as:"img",src:"sheet-"+(d[h]||h)+".png"})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:u?(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",color:g&&"bad",children:C.toLocaleString("en-US")}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--name",children:h}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",children:[C.toLocaleString("en-US")," cm\xb3 (",Math.round(C/2e3*10)/10," sheets)"]})],4)})]})))}},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=e.design;return(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:l.notEnough||i.building,icon:"cog",content:l.name,onClick:function(){return r("build",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus-circle",onClick:function(){return r("queue",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--cost",children:Object.entries(l.cost).map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:e[1],lineDisplay:!0})},e[0])}))}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--time",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"clock"}),l.time>0?(0,o.createFragment)([l.time/10,(0,o.createTextVNode)(" seconds")],0):"Instant"]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExternalAirlockController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ExternalAirlockController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.chamber_pressure,p=(d.exterior_status,d.interior_status),m=d.processing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Chamber Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:(n=u,c="good",n<80?c="bad":n<95||n>110?c="average":n>120&&(c="bad"),c),value:u,minValue:0,maxValue:1013,children:[u," kPa"]})})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Abort",icon:"ban",color:"red",disabled:!m,onClick:function(){return s("abort")}})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FaxMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.FaxMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){return c("scan")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Authorize",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:!l.scan_name&&!l.authenticated,content:l.authenticated?"Log Out":"Log In",onClick:function(){return c("auth")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fax Menu",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:l.network}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Document",children:[(0,o.createComponentVNode)(2,i.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){return c("paper")}}),!!l.paper&&(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){return c("dept")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Action",children:(0,o.createComponentVNode)(2,i.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){return c("send")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FloorPainter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data,e.image),a=e.isSelected,c=e.onSelect;return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"border-style":a?"solid":"none","border-width":"2px","border-color":"orange",padding:a?"2px":"4px"},onClick:c})};t.FloorPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.availableStyles,u=s.selectedStyle,p=s.selectedDir,m=s.directionsPreview,h=s.allStylesPreview;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Decal setup",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",onClick:function(){return l("cycle_style",{offset:-1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Dropdown,{options:d,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:"true",onSelected:function(e){return l("select_style",{style:e})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",onClick:function(){return l("cycle_style",{offset:1})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",mb:"5px",children:(0,o.createComponentVNode)(2,i.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,c,{image:h[e],isSelected:u===e,onSelect:function(){return l("select_style",{style:e})}})},"{style}")}))})}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Direction",children:(0,o.createComponentVNode)(2,i.Table,{style:{display:"inline"},children:["north","","south"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[e+"west",e,e+"east"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:""===e?(0,o.createComponentVNode)(2,i.Icon,{name:"arrows-alt",size:3}):(0,o.createComponentVNode)(2,c,{image:m[e],isSelected:e===p,onSelect:function(){return l("select_direction",{direction:e})}})},e)}))},e)}))})})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GPS=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=function(e){return e?"("+e.join(", ")+")":"ERROR"};t.GPS=function(e,t){var n=(0,i.useBackend)(t).data,r=n.emped,l=n.active,m=n.area,h=n.position,f=n.saved;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:r?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,s,{emp:!0})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,d)}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{area:m,position:h})}),f&&(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{title:"Saved Position",position:f})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,p,{height:"100%"})})],0):(0,o.createComponentVNode)(2,s)],0)})})})};var s=function(e,t){var n=e.emp;return(0,o.createComponentVNode)(2,a.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,a.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:n?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),n?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.active,s=c.tag,d=c.same_z,u=(0,i.useLocalState)(t,"newTag",s),p=u[0],m=u[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",buttons:(0,o.createComponentVNode)(2,a.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tag",children:[(0,o.createComponentVNode)(2,a.Input,{width:"5rem",value:s,onEnter:function(){return r("tag",{newtag:p})},onInput:function(e,t){return m(t)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:s===p,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return r("tag",{newtag:p})},children:(0,o.createComponentVNode)(2,a.Icon,{name:"pen"})})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"compress":"expand",content:d?"Local Sector":"Global",onClick:function(){return r("same_z")}})})]})})},u=function(e,t){var n=e.title,r=e.area,i=e.position;return(0,o.createComponentVNode)(2,a.Section,{title:n||"Position",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",children:[r&&(0,o.createFragment)([r,(0,o.createVNode)(1,"br")],0),l(i)]})})},p=function(e,t){var n=(0,i.useBackend)(t).data,c=n.position,s=n.signals,d=n.upgraded;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Signals",overflow:"auto"},e,{children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return Object.assign({},e,{},function(e,t,n){if(e&&t){if(e[2]!==t[2]||1!==n)return null;var o=Math.atan2(t[1]-e[1],t[0]-e[0]),i=Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2));return{angle:(0,r.rad2deg)(o),distance:i}}}(c,e.position,d))})).map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:t%2==0&&"rgba(255, 255, 255, 0.05)",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:e.tag}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",color:"grey",children:e.area}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:e.distance!==undefined&&(0,o.createComponentVNode)(2,a.Box,{opacity:Math.max(1-Math.min(e.distance,100)/100,.5),children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.distance>0?"arrow-right":"circle",rotation:-e.angle}),"\xa0",Math.floor(e.distance)+"m"]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:l(e.position)})]},t)}))})})))}},function(e,t,n){"use strict";t.__esModule=!0,t.GasAnalyzer=t.GasAnalyzerHistory=t.GasAnalyzerContent=void 0;var o=n(0),r=n(1),i=n(549),a=n(2),c=n(3),l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.gasmixes,d=l.autoUpdating;return(0,o.createComponentVNode)(2,a.Section,{title:s[0].name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"unlock":"lock",onClick:function(){return c("autoscantoggle")},tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:(0,o.createComponentVNode)(2,i.GasmixParser)},s[0])};t.GasAnalyzerContent=l;var s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.historyGasmixes,s=c.historyViewMode,d=c.historyIndex;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Scan History",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){return i("clearhistory")},textAlign:"center",disabled:0===l.length}),children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"50%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"kPa",onClick:function(){return i("modekpa")},textAlign:"center",selected:"kpa"===s})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"mol",onClick:function(){return i("modemol")},textAlign:"center",selected:"mol"===s})})]})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{content:t+1+". "+("mol"===s?e[0].total_moles.toFixed(2):e[0].pressure.toFixed(2)),onClick:function(){return i("input",{target:t+1})},textAlign:"left",selected:t+1===d,fluid:!0})},e[0])}))})]})};t.GasAnalyzerHistory=s;t.GasAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{grow:!0,children:(0,o.createComponentVNode)(2,l)}),2,{style:{float:"left",width:"67%"}}),(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{width:"160px",children:(0,o.createComponentVNode)(2,s)}),2,{style:{float:"right",width:"33%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasmixParser=void 0;var o=n(0),r=n(1),i=n(2);t.GasmixParser=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.gasmixes);return a[0].total_moles?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Moles",children:(a[0].total_moles?a[0].total_moles:"-")+" mol"}),a[0].oxygen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:a[0].oxygen.toFixed(2)+" mol ("+100*(a[0].oxygen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].nitrogen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:a[0].nitrogen.toFixed(2)+" mol ("+100*(a[0].nitrogen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].carbon_dioxide?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:a[0].carbon_dioxide.toFixed(2)+" mol ("+100*(a[0].carbon_dioxide/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].toxins?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:a[0].toxins.toFixed(2)+" mol ("+100*(a[0].toxins/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].sleeping_agent?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrous Oxide",children:a[0].sleeping_agent.toFixed(2)+" mol ("+100*(a[0].sleeping_agent/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].agent_b?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Agent B",children:a[0].agent_b.toFixed(2)+" mol ("+100*(a[0].agent_b/a[0].total_moles).toFixed(2)+" %)"}):"",(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(a[0].total_moles?(a[0].temperature-273.15).toFixed(2):"-")+" \xb0C ("+(a[0].total_moles?a[0].temperature.toFixed(2):"-")+" K)"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Volume",children:(a[0].total_moles?a[0].volume:"-")+" L"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(a[0].total_moles?a[0].pressure.toFixed(2):"-")+" kPa"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Heat Capacity",children:a[0].heat_capacity+" / K"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Thermal Energy",children:a[0].thermal_energy})]}):(0,o.createComponentVNode)(2,i.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasFreezer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GasFreezer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.temperature,p=l.temperatureCelsius,m=l.min,h=l.max,f=l.target,C=l.targetCelsius,g=(u-m)/(h-m);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s?"power-off":"times",content:s?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b",selected:s,onClick:function(){return c("power")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435",children:[d," \u043a\u041f\u0430"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:g,ranges:{blue:[-Infinity,.5],red:[.5,Infinity]},children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:[g<.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"blue",ml:1,children:[u," \xb0K (",p," \xb0C)"]}),g>=.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"red",ml:1,children:[u," \xb0K (",p," \xb0C)"]})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0435\u043b\u0435\u0432\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",justify:"end",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:(f-m)/(h-m),children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:(0,o.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:[f," \xb0K (",C," \xb0C)"]})})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",title:"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:m})}}),(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(f),unit:"\xb0K",minValue:Math.round(m),maxValue:Math.round(h),step:5,stepPixelSize:3,onDrag:function(e,t){return c("temp",{temp:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:h})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GenericCrewManifest=void 0;var o=n(0),r=n(2),i=n(3),a=n(144);t.GenericCrewManifest=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{noTopPadding:!0,children:(0,o.createComponentVNode)(2,a.CrewManifest)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GhostHudPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GhostHudPanel=function(e,t){var n=(0,r.useBackend)(t).data,l=n.security,s=n.medical,d=n.diagnostic,u=n.ahud;return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,c,{label:"Medical",type:"medical",is_active:s}),(0,o.createComponentVNode)(2,c,{label:"Security",type:"security",is_active:l}),(0,o.createComponentVNode)(2,c,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,c,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t).act,a=e.label,c=e.type,l=void 0===c?null:c,s=e.is_active,d=e.act_on,u=void 0===d?"hud_on":d,p=e.act_off,m=void 0===p?"hud_off":p;return(0,o.createComponentVNode)(2,i.Flex,{pt:.3,color:"label",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{pl:.5,align:"center",width:"80%",children:a}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{mr:.6,content:s?"On":"Off",icon:s?"toggle-on":"toggle-off",selected:s,onClick:function(){return n(s?m:u,{hud_type:l})}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.HandheldChemDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=[1,5,10,20,30,50];t.HandheldChemDispenser=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.amount,d=l.energy,u=l.maxEnergy,p=l.mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d,minValue:0,maxValue:u,ranges:{good:[.5*u,Infinity],average:[.25*u,.5*u],bad:[-Infinity,.25*u]},children:[d," / ",u," Units"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:"1",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",width:"14%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:s===e,content:e,m:"0",width:"100%",onClick:function(){return a("amount",{amount:e})}})},t)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"dispense"===p,content:"Dispense",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"dispense"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"remove"===p,content:"Remove",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"remove"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"isolate"===p,content:"Isolate",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"isolate"})}})]})})]})})},s=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.chemicals,s=void 0===l?[]:l,d=c.current_reagent,u=[],p=0;p<(s.length+1)%3;p++)u.push(!0);return(0,o.createComponentVNode)(2,i.Section,{title:c.glass?"Drink Selector":"Chemical Selector",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px",width:"30%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:d===e.id,width:"100%",height:"100%",align:"flex-start",content:e.title,onClick:function(){return a("dispense",{reagent:e.id})}})},t)})),u.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Instrument=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Instrument=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u)]})]})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act;if(n.data.help)return(0,o.createComponentVNode)(2,a.Modal,{maxWidth:"75%",height:.75*window.innerHeight+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,o.createVNode)(1,"h1",null,"Making a Song",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Type:"}),(0,o.createTextVNode)("\xa0Whether the instrument is legacy or synthesized."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Current:"}),(0,o.createTextVNode)("\xa0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,o.createTextVNode)("\xa0The pitch to apply to all notes of the song.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,o.createTextVNode)("\xa0How a played note fades out."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,o.createTextVNode)("\xa0The volume threshold at which a note is fully stopped.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,o.createTextVNode)("\xa0Whether the last note should be sustained indefinitely.")],4)],4),(0,o.createComponentVNode)(2,a.Button,{color:"grey",content:"Close",onClick:function(){return r("help")}})]})})})},s=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.lines,u=l.playing,p=l.repeat,m=l.maxRepeats,h=l.tempo,f=l.minTempo,C=l.maxTempo,g=l.tickLag,N=l.volume,b=l.minVolume,V=l.maxVolume,v=l.ready;return(0,o.createComponentVNode)(2,a.Section,{title:"Instrument",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"info",content:"Help",onClick:function(){return c("help")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"file",content:"New",onClick:function(){return c("newsong")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Import",onClick:function(){return c("import")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Playback",children:[(0,o.createComponentVNode)(2,a.Button,{selected:u,disabled:0===s.length||p<0,icon:"play",content:"Play",onClick:function(){return c("play")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"stop",content:"Stop",onClick:function(){return c("stop")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Repeat",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0",maxValue:m,value:p,stepPixelSize:"59",onChange:function(e,t){return c("repeat",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tempo",children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:h>=C,content:"-",as:"span",mr:"0.5rem",onClick:function(){return c("tempo",{"new":h+g})}}),(0,r.round)(600/h)," BPM",(0,o.createComponentVNode)(2,a.Button,{disabled:h<=f,content:"+",as:"span",ml:"0.5rem",onClick:function(){return c("tempo",{"new":h-g})}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:b,maxValue:V,value:N,stepPixelSize:"6",onDrag:function(e,t){return c("setvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:v?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Ready"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,o.createComponentVNode)(2,d)]})},d=function(e,t){var n,c,l=(0,i.useBackend)(t),s=l.act,d=l.data,u=d.allowedInstrumentNames,p=d.instrumentLoaded,m=d.instrument,h=d.canNoteShift,f=d.noteShift,C=d.noteShiftMin,g=d.noteShiftMax,N=d.sustainMode,b=d.sustainLinearDuration,V=d.sustainExponentialDropoff,v=d.legacy,x=d.sustainDropoffVolume,y=d.sustainHeldNote;return 1===N?(n="Linear",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"0.1",maxValue:"5",value:b,step:"0.5",stepPixelSize:"85",format:function(e){return(0,r.round)(100*e)/100+" seconds"},onChange:function(e,t){return s("setlinearfalloff",{"new":t/10})}})):2===N&&(n="Exponential",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"1.025",maxValue:"10",value:V,step:"0.01",format:function(e){return(0,r.round)(1e3*e)/1e3+"% per decisecond"},onChange:function(e,t){return s("setexpfalloff",{"new":t})}})),u.sort(),(0,o.createComponentVNode)(2,a.Box,{my:-1,children:(0,o.createComponentVNode)(2,a.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,o.createComponentVNode)(2,a.Section,{mt:-1,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:v?"Legacy":"Synthesized"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current",children:p?(0,o.createComponentVNode)(2,a.Dropdown,{options:u,selected:m,width:"40%",onSelected:function(e){return s("switchinstrument",{name:e})}}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None!"})}),!(v||!h)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:C,maxValue:g,value:f,stepPixelSize:"2",format:function(e){return e+" keys / "+(0,r.round)(e/12*100)/100+" octaves"},onChange:function(e,t){return s("setnoteshift",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain Mode",children:[(0,o.createComponentVNode)(2,a.Dropdown,{options:["Linear","Exponential"],selected:n,onSelected:function(e){return s("setsustainmode",{"new":e})}}),c]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0.01",maxValue:"100",value:x,stepPixelSize:"6",onChange:function(e,t){return s("setdropoffvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,o.createComponentVNode)(2,a.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"Yes":"No",onClick:function(){return s("togglesustainhold")}})})],4)]}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){return s("reset")}})]})})})},u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.playing,s=c.lines,d=c.editing;return(0,o.createComponentVNode)(2,a.Section,{title:"Editor",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!d||l,icon:"plus",content:"Add Line",onClick:function(){return r("newline",{line:s.length+1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"chevron-up":"chevron-down",onClick:function(){return r("edit")}})],4),children:!!d&&(s.length>0?(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t+1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"pen",onClick:function(){return r("modifyline",{line:t+1})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"trash",onClick:function(){return r("deleteline",{line:t+1})}})],4),children:e},t)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Song is empty."}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ItemPixelShift=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ItemPixelShift=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.pixel_x,d=l.pixel_y,u=l.max_shift_x,p=l.max_shift_y,m=l.random_drop_on;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"X-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:s===-u,onClick:function(){return c("shift_left")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-u,maxValue:u,onChange:function(e,t){return c("custom_x",{pixel_x:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:s===u,onClick:function(){return c("shift_right")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Y-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:d===p,onClick:function(){return c("shift_up")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:d,minValue:-p,maxValue:p,onChange:function(e,t){return c("custom_y",{pixel_y:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:d===-p,onClick:function(){return c("shift_down")}})]})]})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){return c("move_to_top")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){return c("toggle")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=(0,o.createComponentVNode)(2,i.Section,{title:"Keycard Authentication Device",children:(0,o.createComponentVNode)(2,i.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(l.swiping||l.busy){var d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return l.hasSwiped||l.ertreason||"Emergency Response Team"!==l.event?l.hasConfirm?d=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Waiting for second person to confirm..."})):d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Fill out the reason for your ERT request."}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,"Emergency Response Team"===l.event&&(0,o.createComponentVNode)(2,i.Section,{title:"Reason for ERT Call",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){return c("ert")}})})}),(0,o.createComponentVNode)(2,i.Section,{title:l.event,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){return c("reset")}}),children:d})]})})}return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,(0,o.createComponentVNode)(2,i.Section,{title:"Choose Action",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Red Alert",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){return c("triggerevent",{triggerevent:"Red Alert"})},content:"Red Alert"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ERT",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",onClick:function(){return c("triggerevent",{triggerevent:"Emergency Response Team"})},content:"Call ERT"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},content:"Revoke"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},content:"Revoke"})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.LaborClaimConsole=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.can_go_home,s=c.emagged,d=c.id_inserted,u=c.id_name,p=c.id_points,m=c.id_goal,h=c.unclaimed_points,f=s?0:1,C=s?"ERR0R":l?"Completed!":"Insufficient";return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:!!d&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/m,ranges:{good:[f,Infinity],bad:[-Infinity,f]},children:p+" / "+m+" "+C})||!!s&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Move shuttle",disabled:!l,onClick:function(){return r("move_shuttle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unclaimed points",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!d||!h,onClick:function(){return r("claim_points")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inserted ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:d?u:"-------------",onClick:function(){return r("handle_id")}})})]})})},s=function(e,t){var n=(0,i.useBackend)(t).data.ores;return(0,o.createComponentVNode)(2,a.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LawManager=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.LawManager=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.isAdmin,p=d.isSlaved,m=d.isMalf,h=d.isAIMalf,f=d.view;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!(!u||!p)&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["This unit is slaved to ",p,"."]}),!(!m&&!h)&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Law Management",selected:0===f,onClick:function(){return s("set_view",{set_view:0})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Lawsets",selected:1===f,onClick:function(){return s("set_view",{set_view:1})}})]}),!(0!==f)&&(0,o.createComponentVNode)(2,c),!(1!==f)&&(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_zeroth_laws,d=c.zeroth_laws,u=c.has_ion_laws,p=c.ion_laws,m=c.ion_law_nr,h=c.has_inherent_laws,f=c.inherent_laws,C=c.has_supplied_laws,g=c.supplied_laws,N=c.channels,b=c.channel,V=c.isMalf,v=c.isAdmin,x=c.zeroth_law,y=c.ion_law,k=c.inherent_law,w=c.supplied_law,_=c.supplied_law_position;return(0,o.createFragment)([!!l&&(0,o.createComponentVNode)(2,s,{title:"ERR_NULL_VALUE",laws:d,ctx:t}),!!u&&(0,o.createComponentVNode)(2,s,{title:m,laws:p,ctx:t}),!!h&&(0,o.createComponentVNode)(2,s,{title:"Inherent",laws:f,ctx:t}),!!C&&(0,o.createComponentVNode)(2,s,{title:"Supplied",laws:g,ctx:t}),(0,o.createComponentVNode)(2,i.Section,{title:"Statement Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Statement Channel",children:N.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.channel,selected:e.channel===b,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,i.Button,{content:"State Laws",onClick:function(){return a("state_laws")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,i.Button,{content:"Notify",onClick:function(){return a("notify_laws")}})})]})}),!!V&&(0,o.createComponentVNode)(2,i.Section,{title:"Add Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Type"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"60%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Actions"})]}),!(!v||l)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Zero"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:x}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_zeroth_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_zeroth_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Ion"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:y}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_ion_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_ion_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:k}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_inherent_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_inherent_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:w}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:_,onClick:function(){return a("change_supplied_law_position")}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_supplied_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_supplied_law")}})]})]})]})})],0)},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.law_sets;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name+" - "+e.header,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Load Laws",icon:"download",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.laws.has_ion_laws>0&&e.laws.ion_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_zeroth_laws>0&&e.laws.zeroth_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_inherent_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_supplied_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)}))]})},e.name)}))})},s=function(e,t){var n=(0,r.useBackend)(e.ctx),a=n.act,c=n.data.isMalf;return(0,o.createComponentVNode)(2,i.Section,{title:e.title+" Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"69%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"21%",children:"State?"})]}),e.laws.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.index}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.law}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:e.state?"Yes":"No",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:e.state?0:1})}}),!!c&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("edit_law",{edit_law:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){return a("delete_law",{delete_law:e.ref})}})],4)]})]},e.law)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechBayConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.MechBayConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.recharge_port,s=l&&l.mech,d=s&&s.cell,u=s&&s.name;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Sync",onClick:function(){return c("reconnect")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||!d&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechaControlConsole=void 0;var o=n(0),r=(n(15),n(1)),i=n(2),a=n(3),c=n(18);t.MechaControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.beacons,u=s.stored_data;return u.length?(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Log",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",children:["(",e.time,")"]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,c.decodeHtmlEntities)(e.message)})]},e.time)}))})})}):(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.uid})},children:"Message"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.uid})},children:"View Log"}),(0,o.createComponentVNode)(2,i.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.uid})}})],4),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,c.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mecha beacons found."})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MedicalRecords=void 0;var o=n(0),r=n(1),i=n(2),a=n(51),c=n(3),l=n(140),s=n(141),d=n(145),u={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},p=function(e,t){(0,a.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.MedicalRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,p=u.loginState,C=u.screen;return p.logged_in?(2===C?n=(0,o.createComponentVNode)(2,m):3===C?n=(0,o.createComponentVNode)(2,h):4===C?n=(0,o.createComponentVNode)(2,f):5===C?n=(0,o.createComponentVNode)(2,N):6===C&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal),(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,d.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,s.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return a("search",{t1:t})}}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}}),(0,o.createVNode)(1,"br")],4,t)}))})],4)},h=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return n("del_all")}})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.medical,s=c.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,i.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,g)}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"spinner":"print",disabled:s,iconSpin:!!s,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},C=function(e,t){var n=(0,r.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,i.Box,{height:"20px",display:"inline-block",children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return p(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"right",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"General records lost!"})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,prewrap:!0,children:[e.value,(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return p(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,i.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,i.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return c("new")}})]})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.virus;return c.sort((function(e,t){return e.name>t.name?1:-1})),c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,t)}))},b=function(e,t){var n=(0,r.useBackend)(t).data.medbots;return 0===n.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"There are no Medbots."}):n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,i.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Offline"})})]})})},t)}))},V=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.screen;return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===c,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===c,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,t){var n=e.args;return(0,o.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:n.name||"Virus",children:(0,o.createComponentVNode)(2,i.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Number of stages",children:n.max_stages}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible cure",children:n.cure}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Notes",children:n.desc}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Severity",color:u[n.severity],children:n.severity})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.MiningVendor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);var l={Alphabetical:function(e,t){return e-t},"By availability":function(e,t){return-(e.affordable-t.affordable)},"By price":function(e,t){return e.price-t.price}};t.MiningVendor=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.has_id,s=c.id;return(0,o.createComponentVNode)(2,a.NoticeBox,{success:l,children:l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return r("logoff")}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),s=c.has_id,d=c.id,u=c.items,m=(0,i.useLocalState)(t,"search",""),h=m[0],f=(m[1],(0,i.useLocalState)(t,"sort","Alphabetical")),C=f[0],g=(f[1],(0,i.useLocalState)(t,"descending",!1)),N=g[0],b=(g[1],(0,r.createSearch)(h,(function(e){return e[0]}))),V=!1,v=Object.entries(u).map((function(e,t){var n=Object.entries(e[1]).filter(b).map((function(e){return e[1].affordable=s&&d.points>=e[1].price,e[1]})).sort(l[C]);if(0!==n.length)return N&&(n=n.reverse()),V=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:V?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),s=(c[0],c[1]),d=(0,i.useLocalState)(t,"descending",!1),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return s(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return p(!u)}})})]})})},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=e.title,s=e.items,d=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},d,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!c.has_id||c.id.points=0||(r[n]=e[n]);return r}t.Multitool=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,p=l.multitoolMenuId,v=l.buffer,x=l.bufferName,y=l.bufferTag,k=l.canBufferHaveTag,w=l.isAttachedAlreadyInBuffer,_=l.attachedName,B=!("default_no_machine"===p);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{style:{"overflow-x":"hidden","overflow-y":"auto"},grow:1,shrink:1,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Configuration menu",py:.3,children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:_,noMachine:"default_no_machine"===p,noMachineText:"No machine attached"}),function(e){switch(e){case"default_no_machine":case"no_options":return(0,o.createComponentVNode)(2,h);case"access_denied":return(0,o.createComponentVNode)(2,f);case"tag_only":return(0,o.createComponentVNode)(2,C);case"frequency_and_tag":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C)],4);case"air_sensor":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,N)],4);case"general_air_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,b)],4);case"large_tank_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,b)],4);default:return"WE SHOULDN'T BE HERE!"}}(p)]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Divider)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:w?"Added":"Add machine",icon:"save",disabled:!B||w,onClick:function(){return r("buffer_add")}}),(0,o.createComponentVNode)(2,a.Button,{mr:1,content:"Flush",icon:"times-circle",color:"red",disabled:!v,onClick:function(){return r("buffer_flush")}})],4),children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:x,noMachine:!v,noMachineElem:(0,o.createComponentVNode)(2,d,{text:""})}),!!v&&(0,o.createComponentVNode)(2,m,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:k?(0,o.createComponentVNode)(2,u,{text:y,defaultText:"",color:"silver"}):(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})};var s=function(e,t){var n=e.iconName,r=e.machineName,i=e.noMachine,c=e.noMachineText,l=e.noMachineElem,s=i?c:r||"Unknown machine",d=s===c,u=s===c||"Unknown machine"===s;return i&&l?l:(0,o.createComponentVNode)(2,a.Flex,{mt:.1,mb:1.9,children:[!i&&(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{mr:1,size:1.1,name:n})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,o.createComponentVNode)(2,a.Box,{as:"span",wordWrap:"break-word",color:d?"label":"silver",fontSize:"1.1rem",bold:!0,italic:u,children:s})})]})},d=function(e,t){var n=e.text;return(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:n})},u=function(e,t){var n=e.text,r=e.defaultText,i=l(e,["text","defaultText"]);return n?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"span",wordWrap:"break-word"},i,{children:n}))):(0,o.createComponentVNode)(2,d,{text:r})},p=function(e,t){var n=e.noConfirm,r=void 0!==n&&n,i=l(e,["noConfirm"]);return r?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({},i))):(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button.Confirm,Object.assign({},i)))},m=function(e,t){var n=e.label,r=e.wrapContent,i=e.noWrapContent,c=e.compactLabel,s=void 0!==c&&c,d=l(e,["label","wrapContent","noWrapContent","compactLabel"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},d,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:s?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:s?"auto":0,maxWidth:s?"none":20,color:"label",nowrap:!0,children:n}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:r}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:.1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:i})]})))},h=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},f=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.attachedTag;return(0,o.createComponentVNode)(2,m,{label:"ID tag",wrapContent:(0,o.createComponentVNode)(2,u,{text:c,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Set",icon:"wrench",onClick:function(){return r("set_tag")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!c,onClick:function(){return r("clear_tag")}})],4)})},g=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.frequency,d=l.minFrequency,u=l.maxFrequency,p=l.canReset;return(0,o.createComponentVNode)(2,m,{label:"Frequency",noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},onChange:function(e,t){return c("set_frequency",{frequency:10*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"",disabled:!p,tooltip:"Reset",onClick:function(){return c("reset_frequency")}})],4)})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.bolts,s=[{bitflag:1,checked:c.pressureCheck,label:"Monitor pressure"},{bitflag:2,checked:c.temperatureCheck,label:"Monitor temperature"},{bitflag:4,checked:c.oxygenCheck,label:"Monitor oxygen concentration"},{bitflag:8,checked:c.toxinsCheck,label:"Monitor plasma concentration"},{bitflag:16,checked:c.nitrogenCheck,label:"Monitor nitrogen concentration"},{bitflag:32,checked:c.carbonDioxideCheck,label:"Monitor carbon dioxide concentration"}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Floor bolts",noWrapContent:(0,o.createComponentVNode)(2,a.Button,{icon:l?"check":"times",selected:l,content:l?"YES":"NO",onClick:function(){return r("toggle_bolts")}})}),s.map((function(e){return(0,o.createComponentVNode)(2,m,{label:e.label,noWrapContent:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.checked,onClick:function(){return r("toggle_flag",{bitflag:e.bitflag})}})},e.bitflag)}))],0)},b=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.sensors;return(0,o.createComponentVNode)(2,a.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,o.createComponentVNode)(2,a.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){return r("add_sensor")}}),children:[(0,o.createComponentVNode)(2,m,{mr:0,compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:11.3})]})}),Object.keys(c).map((function(e){return(0,o.createComponentVNode)(2,m,{mr:0,label:(0,o.createComponentVNode)(2,a.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{align:"center",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:e}),c[e]?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:c[e]}):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"edit",onClick:function(){return r("change_label",{sensor_tag:e})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!c[e],onClick:function(){return r("clear_label",{sensor_tag:e})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:.5}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){return r("del_sensor",{sensor_tag:e})}})})]})},e)}))]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.inputTag,s=c.outputTag,d=c.bufferTag,h=c.bufferFitsInput,f=c.bufferFitsOutput,C=c.doNotLinkAndNotify;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Input",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:l,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!l,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:l&&d===l,disabled:!h,onClick:function(){return r("link_input")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!l,onClick:function(){return r("unlink_input")}})],4)}),(0,o.createComponentVNode)(2,m,{label:"Output",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:s,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!s,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:s&&d===s,disabled:!f,onClick:function(){return r("link_output")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!s,onClick:function(){return r("unlink_output")}})],4)})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.Newscaster=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(49),l=n(3),s=n(51),d=n(145);function u(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var p=["security","engineering","medical","science","service","supply"],m={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}};t.Newscaster=function(e,t){var n,c=(0,i.useBackend)(t),u=c.act,p=c.data,m=p.is_security,g=p.is_admin,N=p.is_silent,V=p.is_printing,v=p.screen,x=p.channels,y=p.channel_idx,k=void 0===y?-1:y,w=(0,i.useLocalState)(t,"menuOpen",!1),_=w[0],B=w[1],S=(0,i.useLocalState)(t,"viewingPhoto",""),L=S[0],A=(S[1],(0,i.useLocalState)(t,"censorMode",!1)),E=A[0],I=A[1];0===v||2===v?n=(0,o.createComponentVNode)(2,f):1===v&&(n=(0,o.createComponentVNode)(2,C));var D=x.reduce((function(e,t){return e+t.unread}),0);return(0,o.createComponentVNode)(2,l.Window,{theme:m&&"security",children:[L?(0,o.createComponentVNode)(2,b):(0,o.createComponentVNode)(2,s.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,a.Section,{stretchContents:!0,className:(0,r.classes)(["Newscaster__menu",_&&"Newscaster__menu--open"]),children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Box,{flex:"0 1 content",children:[(0,o.createComponentVNode)(2,h,{icon:"bars",title:"Toggle Menu",onClick:function(){return B(!_)}}),(0,o.createComponentVNode)(2,h,{icon:"newspaper",title:"Headlines",selected:0===v,onClick:function(){return u("headlines")},children:D>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:D>=10?"9+":D})}),(0,o.createComponentVNode)(2,h,{icon:"briefcase",title:"Job Openings",selected:1===v,onClick:function(){return u("jobs")}}),(0,o.createComponentVNode)(2,a.Divider)]}),(0,o.createComponentVNode)(2,a.Box,{flex:"2",overflowY:"auto",overflowX:"hidden",children:x.map((function(e){return(0,o.createComponentVNode)(2,h,{icon:e.icon,title:e.name,selected:2===v&&x[k-1]===e,onClick:function(){return u("channel",{uid:e.uid})},children:e.unread>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:e.unread>=10?"9+":e.unread})},e)}))}),(0,o.createComponentVNode)(2,a.Box,{width:"100%",flex:"0 0 content",children:[(0,o.createComponentVNode)(2,a.Divider),(!!m||!!g)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,h,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"wanted_notice")}}),(0,o.createComponentVNode)(2,h,{security:!0,icon:E?"minus-square":"minus-square-o",title:"Censor Mode: "+(E?"On":"Off"),mb:"0.5rem",onClick:function(){return I(!E)}}),(0,o.createComponentVNode)(2,a.Divider)],4),(0,o.createComponentVNode)(2,h,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"create_story")}}),(0,o.createComponentVNode)(2,h,{icon:"plus-circle",title:"New Channel",onClick:function(){return(0,s.modalOpen)(t,"create_channel")}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,h,{icon:V?"spinner":"print",iconSpin:V,title:V?"Printing...":"Print Newspaper",onClick:function(){return u("print_newspaper")}}),(0,o.createComponentVNode)(2,h,{icon:N?"volume-mute":"volume-up",title:"Mute: "+(N?"On":"Off"),onClick:function(){return u("toggle_mute")}})]})]})}),(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,d.TemporaryNotice),n]})]})})]})};var h=function(e,t){(0,i.useBackend)(t).act;var n=e.icon,c=void 0===n?"":n,l=e.iconSpin,s=e.selected,d=void 0!==s&&s,p=e.security,m=void 0!==p&&p,h=e.onClick,f=e.title,C=e.children,g=u(e,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Newscaster__menuButton",d&&"Newscaster__menuButton--selected",m&&"Newscaster__menuButton--security"]),onClick:h},g,{children:[d&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,o.createComponentVNode)(2,a.Icon,{name:c,spin:l,size:"2"}),(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--title",children:f}),C]})))},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.screen,d=c.is_admin,u=c.channel_idx,p=c.channel_can_manage,m=c.channels,h=c.stories,f=c.wanted,C=(0,i.useLocalState)(t,"fullStories",[]),N=C[0],b=(C[1],(0,i.useLocalState)(t,"censorMode",!1)),V=b[0],v=(b[1],2===l&&u>-1?m[u-1]:null);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!f&&(0,o.createComponentVNode)(2,g,{story:f,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:v?v.icon:"newspaper",mr:"0.5rem"}),v?v.name:"Headlines"],0),flexGrow:"1",children:h.length>0?h.slice().reverse().map((function(e){return!N.includes(e.uid)&&e.body.length+3>128?Object.assign({},e,{body_short:e.body.substr(0,124)+"..."}):e})).map((function(e){return(0,o.createComponentVNode)(2,g,{story:e},e)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no stories at this time."]})}),!!v&&(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"info-circle",mr:"0.5rem"}),(0,o.createTextVNode)("About")],4),buttons:(0,o.createFragment)([V&&(0,o.createComponentVNode)(2,a.Button,{disabled:!!v.admin&&!d,selected:v.censored,icon:v.censored?"comment-slash":"comment",content:v.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){return r("censor_channel",{uid:v.uid})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"cog",content:"Manage",onClick:function(){return(0,s.modalOpen)(t,"manage_channel",{uid:v.uid})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:v.description||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:v.author||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Public",children:v["public"]?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Views",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"eye",mr:"0.5rem"}),h.reduce((function(e,t){return e+t.view_count}),0).toLocaleString()]})]})})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.jobs,s=c.wanted,d=Object.entries(l).reduce((function(e,t){t[0];return e+t[1].length}),0);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!s&&(0,o.createComponentVNode)(2,g,{story:s,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"briefcase",mr:"0.5rem"}),(0,o.createTextVNode)("Job Openings")],4),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:d>0?p.map((function(e){return Object.assign({},m[e],{id:e,jobs:l[e]})})).filter((function(e){return!!e&&e.jobs.length>0})).map((function(e){return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+e.id]),title:e.title,buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:e.fluff_text}),children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{"class":(0,r.classes)(["Newscaster__jobOpening",!!e.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",e.title]},e.title)}))},e.id)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",children:["Interested in serving Nanotrasen?",(0,o.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,o.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=e.story,u=e.wanted,p=void 0!==u&&u,m=(0,i.useLocalState)(t,"fullStories",[]),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"censorMode",!1),g=C[0];C[1];return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__story",p&&"Newscaster__story--wanted"]),title:(0,o.createFragment)([p&&(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle",mr:"0.5rem"}),(2&d.censor_flags?"[REDACTED]":d.title)||"News from "+d.author],0),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:[!p&&g&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,o.createComponentVNode)(2,a.Button,{enabled:2&d.censor_flags,icon:2&d.censor_flags?"comment-slash":"comment",content:2&d.censor_flags?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){return l("censor_story",{uid:d.uid})}})}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",d.author," |\xa0",!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"eye"}),(0,o.createTextVNode)(" "),d.view_count.toLocaleString(),(0,o.createTextVNode)(" |\xa0")],0),(0,o.createComponentVNode)(2,a.Icon,{name:"clock"})," ",(0,c.timeAgo)(d.publish_time,s.world_time)]})]})}),children:(0,o.createComponentVNode)(2,a.Box,{children:2&d.censor_flags?"[REDACTED]":(0,o.createFragment)([!!d.has_photo&&(0,o.createComponentVNode)(2,N,{name:"story_photo_"+d.uid+".png",float:"right",ml:"0.5rem"}),(d.body_short||d.body).split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),d.body_short&&(0,o.createComponentVNode)(2,a.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){return f([].concat(h,[d.uid]))}}),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})],0)})})},N=function(e,t){var n=e.name,r=u(e,["name"]),c=(0,i.useLocalState)(t,"viewingPhoto",""),l=(c[0],c[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"img",className:"Newscaster__photo",src:n,onClick:function(){return l(n)}},r)))},b=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Newscaster__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),c=!!e.args.uid&&r.channels.filter((function(t){return t.uid===e.args.uid})).pop();if("manage_channel"!==e.id||c){var l="manage_channel"===e.id,d=!!e.args.is_admin,u=e.args.scanned_user,p=(0,i.useLocalState)(t,"author",(null==c?void 0:c.author)||u||"Unknown"),m=p[0],h=p[1],f=(0,i.useLocalState)(t,"name",(null==c?void 0:c.name)||""),C=f[0],g=f[1],N=(0,i.useLocalState)(t,"description",(null==c?void 0:c.description)||""),b=N[0],V=N[1],v=(0,i.useLocalState)(t,"icon",(null==c?void 0:c.icon)||"newspaper"),x=v[0],y=v[1],k=(0,i.useLocalState)(t,"isPublic",!!l&&!!(null==c?void 0:c["public"])),w=k[0],_=k[1],B=(0,i.useLocalState)(t,"adminLocked",1===(null==c?void 0:c.admin)||!1),S=B[0],L=B[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:l?"Manage "+c.name:"Create New Channel",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!d,width:"100%",value:m,onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:C,onInput:function(e,t){return g(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:b,onInput:function(e,t){return V(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Icon",children:[(0,o.createComponentVNode)(2,a.Input,{disabled:!d,value:x,width:"35%",mr:"0.5rem",onInput:function(e,t){return y(t)}}),(0,o.createComponentVNode)(2,a.Icon,{name:x,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Stories?",children:(0,o.createComponentVNode)(2,a.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){return _(!w)}})}),d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:S,icon:S?"lock":"lock-open",content:S?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return L(!S)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===m.trim().length||0===C.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:m,name:C.substr(0,49),description:b.substr(0,128),icon:x,"public":w?1:0,admin_locked:S?1:0}),(0,i.deleteLocalState)(t,"author","name","description","icon","public")}})]})}(0,s.modalClose)(t)};(0,s.modalRegisterBodyOverride)("create_channel",V),(0,s.modalRegisterBodyOverride)("manage_channel",V),(0,s.modalRegisterBodyOverride)("create_story",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.channels,u=c.channel_idx,p=void 0===u?-1:u,m=!!e.args.is_admin,h=e.args.scanned_user,f=d.slice().sort((function(e,t){if(p<0)return 0;var n=d[p-1];return n.uid===e.uid?-1:n.uid===t.uid?1:void 0})).filter((function(e){return m||!e.frozen&&(e.author===h||!!e["public"])})),C=(0,i.useLocalState)(t,"author",h||"Unknown"),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"channel",f.length>0?f[0].name:""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"title",""),k=y[0],w=y[1],_=(0,i.useLocalState)(t,"body",""),B=_[0],S=_[1],L=(0,i.useLocalState)(t,"adminLocked",!1),A=L[0],E=L[1];return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Create New Story",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Author",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!m,width:"100%",value:g,onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:v,options:f.map((function(e){return e.name})),mb:"0",width:"100%",onSelected:function(e){return x(e)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:k,onInput:function(e,t){return w(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:B,onInput:function(e,t){return S(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){return r(l?"eject_photo":"attach_photo")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,title:k,maxHeight:"13.5rem",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:[!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"}),B.split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})]})})}),m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:A,icon:A?"lock":"lock-open",content:A?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return E(!A)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===g.trim().length||0===v.trim().length||0===k.trim().length||0===B.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,"create_story","",{author:g,channel:v,title:k.substr(0,127),body:B.substr(0,1023),admin_locked:A?1:0}),(0,i.deleteLocalState)(t,"author","channel","title","body")}})]})})),(0,s.modalRegisterBodyOverride)("wanted_notice",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.wanted,u=!!e.args.is_admin,p=e.args.scanned_user,m=(0,i.useLocalState)(t,"author",(null==d?void 0:d.author)||p||"Unknown"),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"name",(null==d?void 0:d.title.substr(8))||""),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"description",(null==d?void 0:d.body)||""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"adminLocked",1===(null==d?void 0:d.admin_locked)||!1),k=y[0],w=y[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:"Manage Wanted Notice",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authority",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!u,width:"100%",value:h,onInput:function(e,t){return f(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",value:g,maxLength:"128",onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",value:v,maxLength:"512",rows:"4",onInput:function(e,t){return x(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){return r(l?"eject_photo":"attach_photo")}}),!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"})]}),u&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:k,icon:k?"lock":"lock-open",content:k?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return w(!k)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!d,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){r("clear_wanted_notice"),(0,s.modalClose)(t),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===h.trim().length||0===g.trim().length||0===v.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:h,name:g.substr(0,127),description:v.substr(0,511),admin_locked:k?1:0}),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaBloodScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3);t.NinjaBloodScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.vialIcons,d=l.noVialIcon,u=l.bloodOwnerNames,p=l.bloodOwnerSpecies,m=l.bloodOwnerTypes,h=l.blockButtons,f=l.scanStates,C="Button_blue",g="Button_disabled",N=["NoticeBox_red","NoticeBox","NoticeBox_blue"];return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"\u041e\u0431\u0440\u0430\u0437\u0446\u044b",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0437\u0446\u0430 \u043a\u0440\u043e\u0432\u0438. \u041c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043a\u0440\u043e\u0432\u044c\u044e \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0430\u043c \u043a\u043b\u0430\u043d. \u0420\u0435\u0430\u0433\u0435\u043d\u0442\u044b \u0438\u043c \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u043c\u0443\u0442\u0441\u044f \u0438\u043b\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c",tooltipPosition:"bottom-left"}),children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"center",children:[1,2,3].map((function(e,t){return(0,o.createComponentVNode)(2,a.FlexItem,{direction:"column",width:"33.3%",ml:t?2:0,children:[(0,o.createComponentVNode)(2,i.Section,{title:u[t]?"\u041a\u0440\u043e\u0432\u044c":"\u041d\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043d\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:N[f[t]],success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:h?g:C,height:"100%",width:"100%",disabled:h,onClick:function(){return c("vial_out",{button_num:t+1})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(s[t]||d),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:u[t]||" - ",content:"\u0420\u0430\u0441\u0430: "+(p[t]||" - ")+"\n\u0422\u0438\u043f \u043a\u0440\u043e\u0432\u0438: "+(m[t]||" - "),position:"bottom"})]})})]},t)}))}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:0===h?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:h,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043a\u0440\u043e\u0432\u044c \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u043d\u0443.",tooltipPosition:"bottom",onClick:function(){return c("scan_blood")}})})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data.progressBar;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"green",value:n,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",mt:1,children:n?"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 "+n+"%":"\u0420\u0435\u0436\u0438\u043c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f"}),2)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaMindScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NinjaMindScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.occupantIcon,s=c.occupant_name,d=c.occupant_health,u=c.scanned_occupants,p="none"===s?1:0;return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{shrink:1,alignContent:"left",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+l,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor"}})})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,alignContent:"right",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0418\u043c\u044f",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:d})]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u044b\u0442\u044c \u0438\u0437 \u0435\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u043b\u0430\u043d\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.",tooltipPosition:"bottom-left",onClick:function(){return a("scan_occupant")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e",width:"250px",textAlign:"center",disabled:p,tooltip:"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438\u0437 \u043a\u0430\u043f\u0441\u0443\u043b\u044b",tooltipPosition:"bottom-left",onClick:function(){return a("go_out")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d \u0431\u044b\u043b \u043f\u043e\u0445\u0438\u0449\u0435\u043d. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u0440\u0430\u0437\u0431\u043e\u043b\u0442\u0430\u043b \u043e \u0432\u0430\u0441.",tooltipPosition:"bottom-left",onClick:function(){return a("teleport_out")}})]})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u043c\u0438 \u043b\u044e\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,o.createComponentVNode)(2,i.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Box,{children:e.scanned_occupant})})},e.scanned_occupant)}))})})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NuclearBomb=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return l.extended?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Disk",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return c("auth")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Code",children:(0,o.createComponentVNode)(2,i.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){return c("code")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Arming & Disarming",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Bolted to floor",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authfull,content:l.anchored?"YES":"NO",onClick:function(){return c("toggle_anchor")}})}),l.authfull&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",children:(0,o.createComponentVNode)(2,i.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){return c("set_time")}})})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",color:l.timer?"red":"",children:l.time+"s"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){return c("toggle_safety")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Arm/Disarm",children:(0,o.createComponentVNode)(2,i.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){return c("toggle_armed")}})})]})})]})}):(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Deployment",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){return c("deploy")}})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(0),r=n(15),i=n(1),a=n(3),c=n(2),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.OperatingComputer=function(e,t){var n,r=(0,i.useBackend)(t),l=r.act,s=r.data,d=s.hasOccupant,u=s.choice;return n=u?(0,o.createComponentVNode)(2,h):d?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:n})]})})};var p=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:n.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[n.stat][0],children:l[n.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),s.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]])},t)},t)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:u[n.temperatureSuitability+3],children:[(0,r.round)(n.btCelsius),"\xb0C, ",(0,r.round)(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pulse",children:[n.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Current Procedures",level:"2",children:n.inSurgery?n.surgeries.map((function(e){var t=e.bodypartName,n=e.surgeryName,r=e.stepName;return(0,o.createComponentVNode)(2,c.Section,{title:t,level:"4",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Procedure",children:n}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Next Step",children:r})]})},t)})):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No procedures ongoing."})})],4)},m=function(){return(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,l=a.verbose,s=a.health,d=a.healthAlarm,u=a.oxy,p=a.oxyAlarm,m=a.crit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,c.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"On":"Off",onClick:function(){return r(s?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:d,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("health_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:p,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("oxy_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,c.Button,{selected:m,icon:m?"toggle-on":"toggle-off",content:m?"On":"Off",onClick:function(){return r(m?"critOff":"critOn")}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Orbit=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt},m=function(e,t){var n=e.name,o=t.name;if(!n||!o)return 0;var r=n.match(d),i=o.match(d);return r&&i&&n.replace(d,"")===o.replace(d,"")?parseInt(r[1],10)-parseInt(i[1],10):p(n,o)},h=function(e,t){var n=(0,i.useBackend)(t).act,r=e.searchText,c=e.source,l=e.title,s=c.filter(u(r));return s.sort(m),c.length>0&&(0,o.createComponentVNode)(2,a.Section,{title:l+" - ("+c.length+")",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return n("orbit",{ref:e.ref})}},e.name)}))})},f=function(e,t){var n=(0,i.useBackend)(t).act,r=e.color,c=e.thing;return(0,o.createComponentVNode)(2,a.Button,{color:r,onClick:function(){return n("orbit",{ref:c.ref})},children:c.name})};t.Orbit=function(e,t){for(var n,r=(0,i.useBackend)(t),s=r.act,d=r.data,C=d.alive,g=d.antagonists,N=(d.auto_observe,d.dead),b=d.ghosts,V=d.misc,v=d.npcs,x=(0,i.useLocalState)(t,"searchText",""),y=x[0],k=x[1],w={},_=l(g);!(n=_()).done;){var B=n.value;w[B.antag]===undefined&&(w[B.antag]=[]),w[B.antag].push(B)}var S=Object.entries(w);S.sort((function(e,t){return p(e[0],t[0])}));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:"search",mr:1})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:y,onInput:function(e,t){return k(t)},onEnter:function(e,t){return function(e){for(var t=0,n=[S.map((function(e){return e[0],e[1]})),C,b,N,v,V];t0&&(0,o.createComponentVNode)(2,a.Section,{title:"Antagonists",children:S.map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:t,level:2,children:n.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"bad",thing:e},e.name)}))},t)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Alive - ("+C.length+")",children:C.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"good",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Ghosts - ("+b.length+")",children:b.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"grey",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,h,{title:"Dead",source:N,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"NPCs",source:v,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"Misc",source:V,searchText:y})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemption=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3),l=function(e){return e.toLocaleString("en-US")+" pts"},s={bananium:"clown",tranquillite:"mime"};t.OreRedemption=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"content",mb:"0.5rem",children:(0,o.createComponentVNode)(2,d,{height:"100%"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",overflow:"hidden",children:[(0,o.createComponentVNode)(2,u,{height:"62%"}),(0,o.createComponentVNode)(2,p,{height:"38%"})]})]})})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.id,d=c.points,u=c.disk,p=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({},p,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"average",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID card",children:s?(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:s.name,tooltip:"Ejects the ID card.",onClick:function(){return a("eject_id")},style:{"white-space":"pre-wrap"}}):(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){return a("insert_id")}})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Mining Points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.points)})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Mining Points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.total_points)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unclaimed Points",color:d>0?"good":"grey",bold:d>0&&"good",children:l(d)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!s,icon:"hand-holding-usd",content:"Claim",onClick:function(){return a("claim")}})})]}),(0,o.createComponentVNode)(2,i.Divider),u?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Design disk",children:(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,icon:"eject",content:u.name,tooltip:"Ejects the design disk.",onClick:function(){return a("eject_disk")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stored design",children:(0,o.createComponentVNode)(2,i.Box,{color:u.design&&(u.compatible?"good":"bad"),children:u.design||"N/A"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!u.design||!u.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){return a("download")},mb:"0"})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.sheets),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,h,{ore:e},e.id)}))]})))},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.alloys),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,f,{ore:e},e.id)}))]})))},m=function(e,t){var n;return(0,o.createComponentVNode)(2,i.Box,{className:"OreHeader",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",children:e.title}),null==(n=e.columns)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:e[1],textAlign:"center",color:"label",bold:!0,children:e[0]})}))]})})},h=function(e,t){var n=(0,r.useBackend)(t).act,a=e.ore;if(!(a.value&&a.amount<=0)||["$metal","$glass"].indexOf(a.id)>-1){var c=a.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"45%",align:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+(s[c]||c)+".png",verticalAlign:"middle",ml:"0rem"}),a.name]}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",color:a.amount>0?"good":"gray",bold:a.amount>0,align:"center",children:a.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",children:a.value}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(a.amount,50),stepPixelSize:6,onChange:function(e,t){return n(a.value?"sheet":"alloy",{id:a.id,amount:t})}})})]})})}},f=function(e,t){var n=(0,r.useBackend)(t).act,c=e.ore,l=c.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"7%",align:"middle",children:(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+l+".png",verticalAlign:"middle",ml:"`0rem"})}),(0,o.createComponentVNode)(2,a.FlexItem,{basis:"30%",textAlign:"middle",align:"center",children:c.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"35%",textAlign:"middle",color:c.amount>0?"good":"gray",align:"center",children:c.description}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"10%",textAlign:"center",color:c.amount>0?"good":"gray",bold:c.amount>0,align:"center",children:c.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(c.amount,50),stepPixelSize:6,onChange:function(e,t){return n(c.value?"sheet":"alloy",{id:c.id,amount:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PAI=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(572);t.PAI=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.app_template,p=d.app_icon,m=d.app_title,h=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(u);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p,mr:1}),m,"pai_main_menu"!==u&&(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){return s("MASTER_back")}})]}),p:1,children:(0,o.createComponentVNode)(2,h)})})})}},function(e,t,n){var o={"./pai_advsecrecords.js":573,"./pai_atmosphere.js":574,"./pai_bioscan.js":575,"./pai_camera_bug.js":576,"./pai_directives.js":577,"./pai_doorjack.js":578,"./pai_encoder.js":579,"./pai_main_menu.js":580,"./pai_manifest.js":581,"./pai_medrecords.js":582,"./pai_messenger.js":583,"./pai_radio.js":584,"./pai_sec_chem.js":585,"./pai_secrecords.js":586,"./pai_signaler.js":587};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=572},function(e,t,n){"use strict";t.__esModule=!0,t.pai_advsecrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pai_advsecrecords=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Records",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_atmosphere=void 0;var o=n(0),r=n(1),i=n(195);t.pai_atmosphere=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.AtmosScan,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_bioscan=void 0;var o=n(0),r=n(1),i=n(2);t.pai_bioscan=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.app_data),c=a.holder,l=a.dead,s=a.health,d=a.brute,u=a.oxy,p=a.tox,m=a.burn,h=a.reagents,f=a.addictions,C=a.fractures,g=a.internal_bleeding;return c?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:s/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"blue",children:u})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxin Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"green",children:p})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:m})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:d})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Reagents",children:h?h.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:(0,o.createComponentVNode)(2,i.Box,{color:e.overdosed?"bad":"good",children:[" ",e.volume," ",e.overdosed?"OVERDOSED":""," "]})},e.id)})):"Reagents not found."}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Addictions",children:f?f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.addiction_name,children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[" Stage: ",e.stage," "]})},e.id)})):(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Addictions not found."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fractures",children:(0,o.createComponentVNode)(2,i.Box,{color:C?"bad":"good",children:["Fractures ",C?"":"not"," detected."]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Bleedings",children:(0,o.createComponentVNode)(2,i.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_camera_bug=void 0;var o=n(0),r=n(1),i=n(2);t.pai_camera_bug=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Monitor",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_directives=void 0;var o=n(0),r=n(1),i=n(2);t.pai_directives=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.master,s=c.dna,d=c.prime,u=c.supplemental;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master",children:l?l+" ("+s+")":"None"}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Request DNA",children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){return a("getdna")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Prime Directive",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_doorjack=void 0;var o=n(0),r=n(1),i=n(2);t.pai_doorjack=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data.app_data,d=s.cable,u=s.machine,p=s.inprogress;s.progress,s.aborted;return n=u?(0,o.createComponentVNode)(2,i.Button,{selected:!0,content:"Connected"}):(0,o.createComponentVNode)(2,i.Button,{content:d?"Extended":"Retracted",color:d?"orange":null,onClick:function(){return l("cable")}}),u&&(a=(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hack",children:[(0,o.createComponentVNode)(2,i.Box,{color:p?"green":"red",children:[" In progress: ",p?"Yes":"No"," "]}),p?(0,o.createComponentVNode)(2,i.Button,{mt:1,color:"red",content:"Abort",onClick:function(){return l("cancel")}}):(0,o.createComponentVNode)(2,i.Button,{mt:1,content:"Start",onClick:function(){return l("jack")}})]})),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cable",children:n}),a]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_encoder=void 0;var o=n(0),r=n(1),i=n(2);t.pai_encoder=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.radio_name,s=c.radio_rank;return(0,o.createComponentVNode)(2,i.Section,{title:"Your name and rank in radio channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Your current name and rank",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new name",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newname",{newname:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new rank",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newrank",{newrank:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_main_menu=void 0;var o=n(0),r=n(1),i=n(2);t.pai_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.available_software,s=c.installed_software,d=c.installed_toggles,u=c.available_ram,p=c.emotions,m=c.current_emotion,h=[];return s.map((function(e){return h[e.key]=e.name})),d.map((function(e){return h[e.key]=e.name})),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available RAM",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Software",children:[l.filter((function(e){return!h[e.key]})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name+" ("+e.cost+")",icon:e.icon,disabled:e.cost>u,onClick:function(){return a("purchaseSoftware",{key:e.key})}},e.key)})),0===l.filter((function(e){return!h[e.key]})).length&&"No software available!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Software",children:[s.filter((function(e){return"mainmenu"!==e.key})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,onClick:function(){return a("startSoftware",{software_key:e.key})}},e.key)})),0===s.length&&"No software installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Toggles",children:[d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,selected:e.active,onClick:function(){return a("setToggle",{toggle_key:e.key})}},e.key)})),0===d.length&&"No toggles installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Select Emotion",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name,selected:e.id===m,onClick:function(){return a("setEmotion",{emotion:e.id})}},e.id)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pai_manifest=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.CrewManifest,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_medrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_medrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_messenger=void 0;var o=n(0),r=n(1),i=n(196);t.pai_messenger=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return a.app_data.active_convo?(0,o.createComponentVNode)(2,i.ActiveConversation,{data:a.app_data}):(0,o.createComponentVNode)(2,i.MessengerList,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_radio=void 0;var o=n(0),r=n(1),i=n(15),a=n(2);t.pai_radio=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.app_data,s=l.minFrequency,d=l.maxFrequency,u=l.frequency,p=l.broadcasting;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(e){return(0,i.toFixed)(e,1)},onChange:function(e,t){return c("freq",{freq:t})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"Reset",icon:"undo",onClick:function(){return c("freq",{freq:"145.9"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggleBroadcast")},selected:p,content:p?"Enabled":"Disabled"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_sec_chem=void 0;var o=n(0),r=n(1),i=n(2);t.pai_sec_chem=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.holder,s=c.dead,d=c.health,u=c.current_chemicals,p=c.available_chemicals;return l?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Chemicals",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Chemicals",children:[p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name+" ("+e.cost+")",tooltip:e.desc,disabled:e.cost>u,onClick:function(){return a("secreteChemicals",{key:e.key})}},e.key)})),0===p.length&&"No chemicals available!"]})]})}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_secrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_secrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pai_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDA=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(589);t.PDA=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data),p=u.app;if(!u.owner)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var m=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(p.template);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Box,{mb:8}),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.idInserted,s=c.idLink,d=c.stationTime,u=c.cartridge_name;return(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[l?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",color:"transparent",onClick:function(){return a("Authenticate")},content:s})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No ID Inserted"}),u?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sd-card",color:"transparent",onClick:function(){return a("Eject")},content:"Eject "+u})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No Cartridge Inserted"}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"right",bold:!0,m:1,children:d})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app;return(0,o.createComponentVNode)(2,i.Box,{className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){a("Home")}})})]})})}},function(e,t,n){var o={"./pda_atmos_scan.js":590,"./pda_janitor.js":591,"./pda_main_menu.js":592,"./pda_manifest.js":593,"./pda_medical.js":594,"./pda_messenger.js":196,"./pda_mob_hunt.js":595,"./pda_mule.js":596,"./pda_notes.js":597,"./pda_power.js":598,"./pda_secbot.js":599,"./pda_security.js":600,"./pda_signaler.js":601,"./pda_status_display.js":602,"./pda_supplyrecords.js":603};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=589},function(e,t,n){"use strict";t.__esModule=!0,t.pda_atmos_scan=void 0;var o=n(0),r=n(1),i=n(195);t.pda_atmos_scan=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.AtmosScan,{data:n})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_janitor=void 0;var o=n(0),r=n(1),i=n(2);t.pda_janitor=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.janitor),c=a.user_loc,l=a.mops,s=a.buckets,d=a.cleanbots,u=a.carts;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Locations",children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Bucket Locations",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))}),d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cleanbot Locations",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_main_menu=void 0;var o=n(0),r=(n(15),n(1)),i=n(2);t.pda_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.owner,s=c.ownjob,d=c.idInserted,u=c.categories,p=c.pai,m=c.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:u.map((function(e){var t=c.apps[e];return t&&t.length?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:t.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.uid in m?e.notify_icon:e.icon,iconSpin:e.uid in m,color:e.uid in m?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.uid})}},e.uid)}))},e):null}))})}),!!p&&(0,o.createComponentVNode)(2,i.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pda_manifest=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.CrewManifest)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_medical=void 0;var o=n(0),r=n(1),i=n(103);t.pda_medical=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mob_hunt=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mob_hunt=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.connected,s=c.wild_captures,d=c.no_collection,u=c.entry;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection Status",children:l?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:["Connected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){return a("Disconnect")}})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:["Disconnected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){return a("Reconnect")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Wild Captures",children:s})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Collection",mt:2,buttons:(0,o.createComponentVNode)(2,i.Box,{children:!d&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Previous",icon:"arrow-left",onClick:function(){return a("Prev")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Next",icon:"arrow-right",onClick:function(){return a("Next")}})]})}),children:d?"Your collection is empty! Go capture some Nano-Mobs!":u?(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:u.sprite,style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[u.nickname&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nickname",children:u.nickname}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.real_name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:u.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Primary Type",children:u.type1}),u.type2&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secondary Type",children:u.type2}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sd-card",onClick:function(){return a("Transfer")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Release",icon:"arrow-up",onClick:function(){return a("Release")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){return a("Rename")}}),!!u.is_hacked&&(0,o.createComponentVNode)(2,i.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){return a("Set_Trap")}})]})]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Mob entry missing!"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mule=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mule=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.mulebot.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.mulebot.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.mulebot,s=l.botstatus,d=l.active,u=s.mode,p=s.loca,m=s.load,h=s.powr,f=s.dest,C=s.home,g=s.retn,N=s.pick;switch(u){case 0:n="Ready";break;case 1:n="Loading/Unloading";break;case 2:case 12:n="Navigating to delivery location";break;case 3:n="Navigating to Home";break;case 4:n="Waiting for clear path";break;case 5:case 6:n="Calculating navigation path";break;case 7:n="Unable to locate destination";break;default:n=u}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:[h,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Home",children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:(0,o.createComponentVNode)(2,i.Button,{content:f?f+" (Set)":"None (Set)",onClick:function(){return c("SetDest")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Load",children:(0,o.createComponentVNode)(2,i.Button,{content:m?m+" (Unload)":"None",disabled:!m,onClick:function(){return c("Unload")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Pickup",children:(0,o.createComponentVNode)(2,i.Button,{content:N?"Yes":"No",selected:N,onClick:function(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Return",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Yes":"No",selected:g,onClick:function(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Proceed",icon:"play",onClick:function(){return c("Start")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Return Home",icon:"home",onClick:function(){return c("ReturnHome")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_notes=void 0;var o=n(0),r=n(1),i=n(2);t.pda_notes=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.note;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{children:c}),(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_power=void 0;var o=n(0),r=n(1),i=n(198);t.pda_power=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.PowerMonitorMainContent)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_secbot=void 0;var o=n(0),r=n(1),i=n(2);t.pda_secbot=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.beepsky.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.beepsky.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.beepsky,s=l.botstatus,d=l.active,u=s.mode,p=s.loca;switch(u){case 0:n="Ready";break;case 1:n="Apprehending target";break;case 2:case 3:n="Arresting target";break;case 4:n="Starting patrol";break;case 5:n="On patrol";break;case 6:n="Responding to summons"}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Go",icon:"play",onClick:function(){return c("Go")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Summon",icon:"arrow-down",onClick:function(){return c("Summon")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_security=void 0;var o=n(0),r=n(1),i=n(103);t.pda_security=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pda_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_status_display=void 0;var o=n(0),r=n(1),i=n(2);t.pda_status_display=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){return a("Status",{statdisp:"alert",alert:"redalert"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){return a("Status",{statdisp:"alert",alert:"default"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){return a("Status",{statdisp:"alert",alert:"lockdown"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){return a("Status",{statdisp:"alert",alert:"biohazard"})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_supplyrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pda_supplyrecords=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.supply),c=a.shuttle_loc,l=a.shuttle_time,s=a.shuttle_moving,d=a.approved,u=a.approved_count,p=a.requests,m=a.requests_count;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:s?(0,o.createComponentVNode)(2,i.Box,{children:["In transit ",l]}):(0,o.createComponentVNode)(2,i.Box,{children:c})})}),(0,o.createComponentVNode)(2,i.Section,{mt:1,title:"Requested Orders",children:m>0&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.OrderedBy,'"']},e)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Approved Orders",children:u>0&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.ApprovedBy,'"']},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDAColorRow=t.PDAPainter=void 0;var o=n(0),r=n(1),i=n(3),a=n(2);t.PDAPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.statusLabel,u=s.pdaTypes,p=s.hasPDA,m=s.pdaIcon,h=s.pdaOwnerName,f=s.pdaJobName;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"\u041e\u0431\u0449\u0435\u0435",buttons:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:p?"eject":"exclamation-triangle",selected:p,content:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c":"-----",tooltip:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c PDA",tooltipPosition:"left",onClick:function(){return l(p?"eject_pda":"insert_pda")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0418\u043c\u044f",children:h||"\u041d/\u0414"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0414\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",children:f||"\u041d/\u0414"})]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",direction:"column",flex:"1",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"160px",src:p?"data:image/png;base64,"+m:"",style:{"-ms-interpolation-mode":"nearest-neighbor"},align:"middle"})}),(0,o.createComponentVNode)(2,a.LabeledList,{m:"5px",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:d})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{m:"5px",fluid:!0,disabled:!p,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044c PDA",confirmContent:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430 \u0437\u0430\u0432\u043e\u0434\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",tooltipPosition:"top",onClick:function(){return l("erase_pda")}})]})})})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:(0,o.createComponentVNode)(2,a.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Table,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,c,{selectedPda:e,selectedPdaImage:u[e][0]},e)}))})})})})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.hasPDA,l=e.selectedPda,s=e.selectedPdaImage;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,disabled:!c,icon:s,content:l,confirmContent:"\u041f\u043e\u043a\u0440\u0430\u0441\u0438\u0442\u044c?",textAlign:"left",onClick:function(){return i("choose_pda",{selectedPda:l,selectedPdaImage:s})}})})]})};t.PDAColorRow=c},function(e,t,n){"use strict";t.__esModule=!0,t.Pacman=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.Pacman=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.broken,u=s.anchored,p=s.active,m=s.fuel_type,h=s.fuel_usage,f=s.fuel_stored,C=s.fuel_cap,g=s.is_ai,N=s.tmp_current,b=s.tmp_max,V=s.tmp_overheat,v=s.output_max,x=s.power_gen,y=s.output_set,k=s.has_fuel,w=f/C,_=N/b,B=y*x,S=Math.round(f/h),L=Math.round(S/60),A=S>120?L+" minutes":S+" seconds";return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(d||!u)&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:[!!d&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!u&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!u&&(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!k,selected:p,onClick:function(){return l("toggle_power")}}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",className:"ml-1",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power setting",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:y,minValue:1,maxValue:v,step:1,className:"mt-1",onDrag:function(e,t){return l("change_power",{change_power:t})}}),"(",(0,c.formatPower)(B),")"]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:_,ranges:{green:[-Infinity,.33],orange:[.33,.66],red:[.66,Infinity]},children:[N," \u2103"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[V>50&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),V>20&&V<=50&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"WARNING: Overheating!"}),V>1&&V<=20&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Temperature High"}),0===V&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fuel",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:p||g||!k,onClick:function(){return l("eject_fuel")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Type",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:w,ranges:{red:[-Infinity,.33],orange:[.33,.66],green:[.66,Infinity]},children:[Math.round(f/1e3)," dm\xb3"]})})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xb3/s"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel depletion",children:[!!k&&(h?A:"N/A"),!k&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PersonalCrafting=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.busy,p=d.category,m=d.display_craftable_only,h=d.display_compact,f=d.prev_cat,C=d.next_cat,g=d.subcategory,N=d.prev_subcat,b=d.next_subcat;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!u&&(0,o.createComponentVNode)(2,i.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,o.createComponentVNode)(2,i.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){return s("toggle_recipes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Compact Mode",icon:h?"check-square-o":"square-o",selected:h,onClick:function(){return s("toggle_compact")}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:f,icon:"arrow-left",onClick:function(){return s("backwardCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:C,icon:"arrow-right",onClick:function(){return s("forwardCat")}})]}),g&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:N,icon:"arrow-left",onClick:function(){return s("backwardSubCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:b,icon:"arrow-right",onClick:function(){return s("forwardSubCat")}})]}),h?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)}))]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Photocopier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(24);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne?this.substring(0,e)+"...":this};t.Photocopier=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data;"mode_aipic"!==d.mode||d.isAI||s("mode_copy");for(var u,p,m=(0,c.sortBy)((function(e){return e.category}))(d.forms||[]),h=[],f=l(m);!(u=f()).done;){var C=u.value;h.includes(C.category)||h.push(C.category)}return p=""===d.category?m:m.filter((function(e){return e.category===d.category})),(0,o.createComponentVNode)(2,a.Window,{theme:d.ui_theme,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u0442\u043e\u043d\u0435\u0440\u0430",color:d.toner>0?"good":"bad",children:d.toner}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u043b\u043e\u0442 \u0441\u043a\u0430\u043d\u0435\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:d.isAI||null===d.copyitem,content:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c",onClick:function(){return s("remove")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e",children:[d.copies,(0,o.createComponentVNode)(2,i.Button,{icon:"minus",ml:2,disabled:!(d.copies>1),onClick:function(){return s("min")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"plus",disabled:!(d.copies<=d.toner),onClick:function(){return s("add")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043c",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"clone",disabled:0===d.toner,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",selected:"mode_copy"===d.mode?"selected":null,onClick:function(){return s("mode_copy")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"file",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c",selected:"mode_print"===d.mode?"selected":null,onClick:function(){return s("mode_print")}}),!!d.isAI&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",disabled:0===d.toner,content:"\u0424\u043e\u0442\u043e \u0438\u0437 \u0414\u0411",selected:"mode_aipic"===d.mode?"selected":null,onClick:function(){return s("mode_aipic")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c",children:["mode_copy"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.copyitem&&!d.ass,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",onClick:function(){return s("copy")}}),"mode_print"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.form,content:"\u041f\u0435\u0447\u0430\u0442\u044c",onClick:function(){return s("print_form")}}),"mode_aipic"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c \u0444\u043e\u0442\u043e",onClick:function(){return s("aipic")}})]})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0411\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044f"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u043e\u0440\u043c\u0430",children:""===d.form_id?"\u041d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u0430":d.form_id})}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b",selected:""===d.category?"selected":null,onClick:function(){return s("choose_category",{category:null})},mb:1})}),h.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:e,selected:d.category===e?"selected":null,onClick:function(){return s("choose_category",{category:e})},mb:1},e)},e)}))]})]}),(0,o.createComponentVNode)(2,i.NoticeBox,{color:d.info_box_color,children:d.info_box})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:""===d.category?"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b":d.category}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e.id+": "+e.altername.trimLongStr(30),tooltip:e.id+": "+e.altername,selected:d.form===e.path?"selected":null,onClick:function(){return s("choose_form",{path:e.path,id:e.id})},mb:1},e.path)},e.path)}))})]})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PodTracking=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PodTracking=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.pods);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Position",children:[e.podx,", ",e.pody,", ",e.podz]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Passengers",children:e.passengers})]})},e.name)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PoolController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);var c={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},l=function(e,t){var n=e.tempKey,a=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["tempKey"]),l=c[n];if(!l)return null;var s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.currentTemp,m=l.label,h=l.icon,f=n===p;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({selected:f,onClick:function(){u("setTemp",{temp:n})}},a,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:h}),m]})))};t.PoolController=function(e,t){for(var n=(0,r.useBackend)(t).data,s=n.emagged,d=n.currentTemp,u=c[d]||c.normal,p=u.label,m=u.color,h=[],f=0,C=Object.entries(c);f0?"envelope-open-text":"envelope",onClick:function(){return c("setScreen",{setScreen:6})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){return c("setScreen",{setScreen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Supplies",icon:"box",onClick:function(){return c("setScreen",{setScreen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){return c("setScreen",{setScreen:3})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){return c("setScreen",{setScreen:9})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){return c("setScreen",{setScreen:10})}})})]}),!!d&&(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){return c("setScreen",{setScreen:8})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:u?"Speaker Off":"Speaker On",selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return c("toggleSilent")}})})]})},l=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data,d=s.department;switch(e.purpose){case"ASSISTANCE":n=s.assist_dept,a="Request assistance from another department";break;case"SUPPLIES":n=s.supply_dept,a="Request supplies from another department";break;case"INFO":n=s.info_dept,a="Relay information to another department"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.filter((function(e){return e!==d})).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:[(0,o.createComponentVNode)(2,i.Button,{content:"Message",icon:"envelope",onClick:function(){return l("writeInput",{write:e,priority:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){return l("writeInput",{write:e,priority:2})}})]},e)}))})})},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act;a.data;switch(e.type){case"SUCCESS":n="Message sent successfully";break;case"FAIL":n="Request supplies from another department"}return(0,o.createComponentVNode)(2,i.Section,{title:n,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})}})})},d=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data;switch(e.type){case"MESSAGES":n=s.message_log,a="Message Log";break;case"SHIPPING":n=s.shipping_log,a="Shipping label print log"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{className:"RequestConsole__message",children:e},e)}))})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.recipient,s=c.message,d=c.msgVerified,u=c.msgStamped;return(0,o.createComponentVNode)(2,i.Section,{title:"Message Authentication",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Recipient",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",color:"green",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stamped by",color:"blue",children:u})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){return a("department",{department:l})}})]})},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.message,s=c.announceAuth;return(0,o.createComponentVNode)(2,i.Section,{title:"Station-Wide Announcement",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.Button,{content:l||"Edit Message",icon:"edit",onClick:function(){return a("writeAnnouncement")}}),s?(0,o.createComponentVNode)(2,i.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,o.createComponentVNode)(2,i.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&l),onClick:function(){return a("sendAnnouncement")}})]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.shipDest,s=c.msgVerified,d=c.ship_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Print Shipping Label",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",children:s})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(l&&s),onClick:function(){return a("printLabel")}}),(0,o.createComponentVNode)(2,i.Section,{title:"Destinations",mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,i.Button,{content:l===e?"Selected":"Select",selected:l===e,onClick:function(){return a("shipSelect",{shipSelect:e})}})},e)}))})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RequestManager=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.RequestManager=function(e,t){var n=(0,i.useBackend)(t),u=(n.act,n.data.requests),p=(0,i.useLocalState)(t,"filteredTypes",Object.fromEntries(Object.entries(l).map((function(e){var t=e[0];e[1];return[t,!0]})))),m=p[0],h=(p[1],(0,i.useLocalState)(t,"searchText")),f=h[0],C=h[1],g=u.filter((function(e){return m[e.req_type]}));if(f){var N=f.toLowerCase();g=g.filter((function(e){return(0,r.decodeHtmlEntities)(e.message).toLowerCase().includes(N)||e.owner_name.toLowerCase().includes(N)}))}return(0,o.createComponentVNode)(2,c.Window,{title:"Request Manager",width:575,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Requests",buttons:(0,o.createComponentVNode)(2,a.Input,{value:f,onInput:function(e,t){return C(t)},placeholder:"Search...",mr:1}),children:g.map((function(e){return(0,o.createVNode)(1,"div","RequestManager__row",[(0,o.createVNode)(1,"div","RequestManager__rowContents",[(0,o.createVNode)(1,"h2","RequestManager__header",[(0,o.createVNode)(1,"span","RequestManager__headerText",[e.owner_name,null===e.owner&&" [DC]"],0),(0,o.createVNode)(1,"span","RequestManager__timestamp",e.timestamp_str,0)],4),(0,o.createVNode)(1,"div","RequestManager__message",[(0,o.createComponentVNode)(2,s,{requestType:e.req_type}),(0,r.decodeHtmlEntities)(e.message)],0)],4),null!==e.owner&&(0,o.createComponentVNode)(2,d,{request:e})],0,null,e.id)}))})})})};var l={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},s=function(e){var t=e.requestType;return(0,o.createVNode)(1,"b","RequestManager__"+t,[l[t],(0,o.createTextVNode)(":")],0)},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n._,e.request);return(0,o.createVNode)(1,"div","RequestManager__controlsContainer",[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("pp",{id:c.id})},children:"PP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("vv",{id:c.id})},children:"VV"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("sm",{id:c.id})},children:"SM"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("tp",{id:c.id})},children:"TP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("logs",{id:c.id})},children:"LOGS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("bless",{id:c.id})},children:"BLESS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("smite",{id:c.id})},children:"SMITE"}),"request_prayer"!==c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("rply",{id:c.id})},children:"RPLY"}),"request_ert"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("ertreply",{id:c.id})},children:"ERTREPLY"}),"request_nuke"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("getcode",{id:c.id})},children:"GETCODE"})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CurrentLevels=void 0;var o=n(0),r=n(1),i=n(2);t.CurrentLevels=function(e,t){var n=(0,r.useBackend)(t).data.tech_levels;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),n.map((function(e,t){var n=e.name,r=e.level,a=e.desc;return(0,o.createComponentVNode)(2,i.Box,{children:[t>0?(0,o.createComponentVNode)(2,i.Divider):null,(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:["* Level: ",r]}),(0,o.createComponentVNode)(2,i.Box,{children:["* Summary: ",a]})]},n)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.DataDiskMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67),l=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;return l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:l.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_tech")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_tech")}}),(0,o.createComponentVNode)(2,u)]})]}):null},s=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;if(!l)return null;var s=l.name,d=l.lathe_types,p=l.materials,m=d.join(", ");return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:s}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lathe Types",children:m}):null,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required Materials"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["- ",(0,o.createVNode)(1,"span",null,e.name,0,{style:{"text-transform":"capitalize"}})," x ",e.amount]},e.name)})),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_design")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_design")}}),(0,o.createComponentVNode)(2,u)]})]})},d=function(e,t){var n=(0,r.useBackend)(t).data.disk_type;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"This disk is empty."}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{submenu:c.SUBMENU.DISK_COPY,icon:"arrow-down",content:"tech"===n?"Load Tech to Disk":"Load Design to Disk"}),(0,o.createComponentVNode)(2,u)]})]})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type;return l?(0,o.createComponentVNode)(2,i.Button,{content:"Eject Disk",icon:"eject",onClick:function(){c("tech"===l?"eject_tech":"eject_design")}}):null},p=function(e,t){var n=(0,r.useBackend)(t).data,a=n.disk_data,c=n.disk_type;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk Contents",children:function(){if(!a)return(0,o.createComponentVNode)(2,d);switch(c){case"design":return(0,o.createComponentVNode)(2,s);case"tech":return(0,o.createComponentVNode)(2,l);default:return null}}()})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type,s=a.to_copy;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var t=e.name,n=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:t,children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){c("tech"===l?"copy_tech":"copy_design",{id:n})}})},n)}))})})})};t.DataDiskMenu=function(e,t){return(0,r.useBackend)(t).data.disk_type?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,p)}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.DISK_COPY,render:function(){return(0,o.createComponentVNode)(2,m)}})],4):null}},function(e,t,n){"use strict";t.__esModule=!0,t.DeconstructionMenu=void 0;var o=n(0),r=n(1),i=n(2);t.DeconstructionMenu=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_item;return a.linked_destroy?l?(0,o.createComponentVNode)(2,i.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:["Name: ",l.name]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.origin_tech.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+e.name,children:[e.object_level," ",e.current_level?(0,o.createFragment)([(0,o.createTextVNode)("(Current: "),e.current_level,(0,o.createTextVNode)(")")],0):null]},e.name)}))}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Options:",16)}),(0,o.createComponentVNode)(2,i.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){c("deconstruct")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject Item",icon:"eject",onClick:function(){c("eject_item")}})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,o.createComponentVNode)(2,i.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheCategory=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheCategory=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.category,d=c.matching_designs,u=4===c.menu?"build":"imprint";return(0,o.createComponentVNode)(2,i.Section,{title:s,children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,i.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:d.map((function(e){var t=e.id,n=e.name,r=e.can_build,a=e.materials;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:n,disabled:r<1,onClick:function(){return l(u,{id:t,amount:1})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=5?(0,o.createComponentVNode)(2,i.Button,{content:"x5",onClick:function(){return l(u,{id:t,amount:5})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=10?(0,o.createComponentVNode)(2,i.Button,{content:"x10",onClick:function(){return l(u,{id:t,amount:10})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a.map((function(e){return(0,o.createFragment)([" | ",(0,o.createVNode)(1,"span",e.is_red?"color-red":null,[e.amount,(0,o.createTextVNode)(" "),e.name],0)],0)}))})]},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheChemicalStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheChemicalStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_chemicals,s=4===a.menu;return(0,o.createComponentVNode)(2,i.Section,{title:"Chemical Storage",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Purge All",icon:"trash",onClick:function(){c(s?"disposeallP":"disposeallI")}}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){var t=e.volume,n=e.name,r=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+t+" of "+n,children:(0,o.createComponentVNode)(2,i.Button,{content:"Purge",icon:"trash",onClick:function(){c(s?"disposeP":"disposeI",{id:r})}})},r)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheMainMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.menu,d=c.categories,u=4===s?"Protolathe":"Circuit Imprinter";return(0,o.createComponentVNode)(2,i.Section,{title:u+" Menu",children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,a.LatheSearch),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",content:e,onClick:function(){l("setCategory",{category:e})}})},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterials=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterials=function(e,t){var n=(0,r.useBackend)(t).data,a=n.total_materials,c=n.max_materials,l=n.max_chemicals,s=n.total_chemicals;return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,o.createComponentVNode)(2,i.Table,{width:"auto",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a}),c?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+c}):null]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),l?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+l}):null]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterialStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterialStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_materials;return(0,o.createComponentVNode)(2,i.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){var t=e.id,n=e.amount,r=e.name,l=function(e){var n=4===a.menu?"lathe_ejectsheet":"imprinter_ejectsheet";c(n,{id:t,amount:e})},s=Math.floor(n/2e3),d=n<1,u=1===s?"":"s";return(0,o.createComponentVNode)(2,i.Table.Row,{className:d?"color-grey":"color-yellow",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"210px",children:["* ",n," of ",r]}),(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"110px",children:["(",s," sheet",u,")"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:n>=2e3?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"1x",icon:"eject",onClick:function(){return l(1)}}),(0,o.createComponentVNode)(2,i.Button,{content:"C",icon:"eject",onClick:function(){return l("custom")}}),n>=1e4?(0,o.createComponentVNode)(2,i.Button,{content:"5x",icon:"eject",onClick:function(){return l(5)}}):null,(0,o.createComponentVNode)(2,i.Button,{content:"All",icon:"eject",onClick:function(){return l(50)}})],0):null})]},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMenu=void 0;var o=n(0),r=n(1),i=n(199),a=n(52),c=n(2),l=n(67);t.LatheMenu=function(e,t){var n=(0,r.useBackend)(t).data,s=n.menu,d=n.linked_lathe,u=n.linked_imprinter;return 4!==s||d?5!==s||u?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,a.LatheMainMenu)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CATEGORY,render:function(){return(0,o.createComponentVNode)(2,a.LatheCategory)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_MAT_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheMaterialStorage)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CHEM_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheChemicalStorage)}})]}):(0,o.createComponentVNode)(2,c.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,o.createComponentVNode)(2,c.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheSearch=void 0;var o=n(0),r=n(1),i=n(2);t.LatheSearch=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"Search...",onChange:function(e,t){return n("search",{to_search:t})}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.MainMenu=function(e,t){var n=(0,r.useBackend)(t).data,l=n.disk_type,s=n.linked_destroy,d=n.linked_lathe,u=n.linked_imprinter,p=n.tech_levels;return(0,o.createComponentVNode)(2,i.Section,{title:"Main Menu",children:[(0,o.createComponentVNode)(2,i.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!l,menu:c.MENU.DISK,submenu:c.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!s,menu:c.MENU.DESTROY,submenu:c.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,menu:c.MENU.LATHE,submenu:c.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!u,menu:c.MENU.IMPRINTER,submenu:c.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{menu:c.MENU.SETTINGS,submenu:c.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"12px"}),(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,o.createComponentVNode)(2,i.LabeledList,{children:p.map((function(e){var t=e.name,n=e.level;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavbar=void 0;var o=n(0),r=n(52),i=n(2),a=n(67);t.RndNavbar=function(){return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__RndNavbar",children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e!==a.MENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{menu:a.MENU.MAIN,submenu:a.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{submenu:function(e){return e!==a.SUBMENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.DISK,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.LATHE,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.IMPRINTER,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.SETTINGS,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}})]})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e===a.MENU.LATHE||e===a.MENU.IMPRINTER},submenu:a.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavButton=void 0;var o=n(0),r=n(1),i=n(2);t.RndNavButton=function(e,t){var n=e.icon,a=e.children,c=e.disabled,l=e.content,s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.menu,m=d.submenu,h=p,f=m;return null!==e.menu&&e.menu!==undefined&&(h=e.menu),null!==e.submenu&&e.submenu!==undefined&&(f=e.submenu),(0,o.createComponentVNode)(2,i.Button,{content:l,icon:n,disabled:c,onClick:function(){u("nav",{menu:h,submenu:f})},children:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.SettingsMenu=function(e,t){var n=(0,r.useBackend)(t),l=n.data,s=n.act,d=l.sync,u=l.admin,p=l.linked_destroy,m=l.linked_lathe,h=l.linked_imprinter;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Sync Database with Network",icon:"sync",disabled:!d,onClick:function(){s("sync")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Connect to Research Network",icon:"plug",disabled:d,onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,content:"Device Linkage Menu",icon:"link",menu:c.MENU.SETTINGS,submenu:c.SUBMENU.SETTINGS_DEVICES}),1===u?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){return s("maxresearch")}}):null]})})}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.SETTINGS_DEVICES,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage Menu",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){return s("find_device")}}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",children:(0,o.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[p?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"destroy"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Protolathe",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){s("disconnect",{item:"lathe"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),h?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"imprinter"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RobotSelfDiagnosis=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18),l=function(e,t){var n=e/t;return n<=.2?"good":n<=.5?"average":"bad"};t.RobotSelfDiagnosis=function(e,t){var n=(0,r.useBackend)(t).data.component_data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.capitalize)(e.name),children:e.installed<=0?(0,o.createComponentVNode)(2,i.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:-1===e.installed?"Destroyed":"Missing"})})}):(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"72%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",color:l(e.brute_damage,e.max_damage),children:e.brute_damage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",color:l(e.electronic_damage,e.max_damage),children:e.electronic_damage})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Powered",color:e.powered?"good":"bad",children:e.powered?"Yes":"No"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Enabled",color:e.status?"good":"bad",children:e.status?"Yes":"No"})]})})]})},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RoboticsControlConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.RoboticsControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.can_hack,u=s.safety,p=s.show_detonate_all,m=s.cyborgs,h=void 0===m?[]:m;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,i.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,c,{cyborgs:h,can_hack:d})]})})};var c=function(e,t){var n=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(t)),c=a.act,l=a.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return c("hackbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return c("stopbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return c("killbot",{uid:e.uid})}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,i.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,i.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,i.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.uid)})):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cyborg units detected within access parameters."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Safe=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Safe=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),u=d.dial,p=d.open;d.locked,d.contents;return(0,o.createComponentVNode)(2,a.Window,{theme:"safe",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,o.createComponentVNode)(2,i.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,o.createVNode)(1,"br"),p?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,i.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!p&&(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.dial,s=c.open,d=c.locked,u=function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:s||t&&!d,icon:"arrow-"+(t?"right":"left"),content:(t?"Right":"Left")+" "+e,iconRight:t,onClick:function(){return a(t?"turnleft":"turnright",{num:e})},style:{"z-index":10}})};return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){return a("open")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{position:"absolute",children:[u(50),u(10),u(1)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[u(1,!0),u(10,!0),u(50,!0)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--number",children:l})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.contents;return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--contents",overflow:"auto",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mb:"0.5rem",onClick:function(){return a("retrieve",{index:t+1})},children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:e.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),e.name]}),(0,o.createVNode)(1,"br")],4,e)}))})},s=function(e,t){return(0,o.createComponentVNode)(2,i.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,o.createComponentVNode)(2,i.Box,{children:["1. Turn the dial left to the first number.",(0,o.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,o.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,o.createVNode)(1,"br"),"4. Open the safe."]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.satellites,d=l.notice,u=l.meteor_shield,p=l.meteor_shield_coverage,m=l.meteor_shield_coverage_max,h=l.meteor_shield_coverage_percentage;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,i.Section,{title:"Station Shield Coverage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:h>=100?"good":"average",value:p,maxValue:m,children:[h," %"]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Satellite Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"#"+e.id,children:[e.mode," ",(0,o.createComponentVNode)(2,i.Button,{content:e.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){return c("toggle",{id:e.id})}})]},e.id)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecureStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SecureStorage=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.emagged,d=l.locked,u=l.l_set,p=l.l_setshort,m=l.current_code,h=function(e){var t=e.buttonValue,n=e.color;return n||(n="default"),(0,o.createComponentVNode)(2,i.Button,{disabled:s||p,type:"button",color:n,onClick:function(){return c("setnumber",{buttonValue:t})},children:t})};return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,i.Flex,{spacing:"1",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"Code Panel",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"1"}),(0,o.createComponentVNode)(2,h,{buttonValue:"2"}),(0,o.createComponentVNode)(2,h,{buttonValue:"3"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"4"}),(0,o.createComponentVNode)(2,h,{buttonValue:"5"}),(0,o.createComponentVNode)(2,h,{buttonValue:"6"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"7"}),(0,o.createComponentVNode)(2,h,{buttonValue:"8"}),(0,o.createComponentVNode)(2,h,{buttonValue:"9"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"R",color:"red"}),(0,o.createComponentVNode)(2,h,{buttonValue:"0"}),(0,o.createComponentVNode)(2,h,{buttonValue:"E",color:"green"})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Status",children:s||p?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:s?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),s?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secure Code",children:(0,o.createComponentVNode)(2,i.Box,{color:u?"red":"green",children:u?"*****":"NOT SET. ENTER NEW."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:d?"red":"green",children:d?"Locked":"Unlocked"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{children:m||"Waiting for input"})}),(0,o.createComponentVNode)(2,i.Button,{top:".35em",left:".5em",disabled:d,color:"red",content:"Lock",icon:"lock",onClick:function(){return c("close")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecurityRecords=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(51),d=n(140),u=n(141),p=n(145),m={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},h=function(e,t){(0,s.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.SecurityRecords=function(e,t){var n,r=(0,i.useBackend)(t),c=(r.act,r.data),m=c.loginState,h=c.currentPage;return m.logged_in?(1===h?n=(0,o.createComponentVNode)(2,C):2===h?n=(0,o.createComponentVNode)(2,b):3===h&&(n=(0,o.createComponentVNode)(2,V)),(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:[(0,o.createComponentVNode)(2,s.ComplexModal),(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,d.LoginInfo),(0,o.createComponentVNode)(2,p.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,a.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,u.LoginScreen)})})};var f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.currentPage,s=c.general;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===l,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===l,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"wrench"}),"Record Maintenance"]}),3===l&&s&&!s.empty&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===l,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"file"}),"Record: ",s.fields[0].value]})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.records,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","name")),p=u[0],h=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),f=h[0];h[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Table,{className:"SecurityRecords__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,g,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,g,{id:"id",children:"ID"}),(0,o.createComponentVNode)(2,g,{id:"rank",children:"Assignment"}),(0,o.createComponentVNode)(2,g,{id:"fingerprint",children:"Fingerprint"}),(0,o.createComponentVNode)(2,g,{id:"status",children:"Criminal Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.name+"|"+e.id+"|"+e.rank+"|"+e.fingerprint+"|"+e.status}))).sort((function(e,t){var n=f?1:-1;return e[p].localeCompare(t[p])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"SecurityRecords__listRow--"+m[e.status],onClick:function(){return c("view",{uid_gen:e.uid_gen,uid_sec:e.uid_sec})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fingerprint}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.status})]},e.id)}))]})})]})},g=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.isPrinting,d=(0,i.useLocalState)(t,"searchText",""),u=(d[0],d[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Record",icon:"plus",onClick:function(){return r("new_general")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Cell Log",ml:"0.25rem",onClick:function(){return(0,s.modalOpen)(t,"print_cell_log")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",width:"100%",onInput:function(e,t){return u(t)}})})]})},b=function(e,t){var n=(0,i.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return n("delete_security_all")},mb:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){return n("delete_cell_logs")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.isPrinting,s=c.general,d=c.security;return s&&s.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",level:2,mt:"-6px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Record",onClick:function(){return r("print_record")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated to this crew member!",tooltipPosition:"bottom-left",content:"Delete Record",onClick:function(){return r("delete_general")}})],4),children:(0,o.createComponentVNode)(2,v)}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Data",level:2,mt:"-12px",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:d.empty,content:"Delete Record",onClick:function(){return r("delete_security")}}),children:(0,o.createComponentVNode)(2,x)})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},v=function(e,t){var n=(0,i.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{float:"left",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(""+e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Box,{position:"absolute",right:"0",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},x=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",onClick:function(){return(0,s.modalOpen)(t,"comment_add")}}),children:0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:e.header||"Auto-generated"}),(0,o.createVNode)(1,"br"),e.text||e,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("comment_delete",{id:t+1})}})]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Security records lost!",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Create New Record",mt:"0.5rem",onClick:function(){return c("new_security")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SeedExtractor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3),l={title:"Seeds",plantName:"Plant",lifespan:"Lifespan",endurance:"Endurance",maturation:"Maturation",production:"Production",yield:"Yield",potency:"Potency",searchTooltip:"Search..",sortByTooltip:"Sort by",dispOneTooltip:"Dispense one",dispAllTooltip:"Dispense all",inStock:"in stock",noContents:"No seeds loaded.",emptySearchResult:"No items matching your criteria was found!"},s={plantName:function(e,t){return e.display_name!==t.display_name?e.display_name>t.display_name?1:-1:0},lifespan:function(e,t){return e.life-t.life},endurance:function(e,t){return e.endr-t.endr},maturation:function(e,t){return e.matr-t.matr},production:function(e,t){return e.prod-t.prod},yield:function(e,t){return e.yld-t.yld},potency:function(e,t){return e.potn-t.potn}};t.SeedExtractor=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),s=r.total,d=r.capacity,h=r.contents;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,u),m:0,p:0,children:(0,o.createComponentVNode)(2,p,{seedsTotal:s,seedsCapacity:d})}),h?(0,o.createVNode)(1,"div","Divider Divider__noMargin"):(0,o.createComponentVNode)(2,a.NoticeBox,{m:0,children:[" ",l.noContents," "]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:1,stretchContents:!0,mt:0,children:!!h&&(0,o.createComponentVNode)(2,m)})]})})};var d=function(e,t){var n=e.name,r=e.alpha,c=(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1}),s=c[0],d=c[1];return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,iconRight:!0,icon:s.field!==n?"":s.desc?r?"sort-alpha-down":"sort-amount-down":r?"sort-alpha-up":"sort-amount-up",color:"transparent",textColor:"white",content:l[n],tooltip:l.sortByTooltip+" "+n.toLowerCase(),tooltipPosition:"bottom",onClick:function(){s.field!==e.name?d({field:n,desc:!1}):d({field:n,desc:!s.desc})}})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]);return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",width:"50vw",style:{display:"block"},children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{name:"filter"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:l.searchTooltip,width:"100%",onInput:function(e,t){return r(t)}})})]})})},p=function(e,t){var n=e.seedsTotal,r=e.seedsCapacity;return(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",bold:!0,align:"baseline",mt:0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",children:(0,o.createComponentVNode)(2,d,{name:"plantName",alpha:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"lifespan"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"endurance"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"maturation"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"production"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"yield"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"potency"})})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,color:"average",children:[n,"/",r]})]})},m=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data.contents),d=(0,i.useLocalState)(t,"search",""),u=d[0],p=(d[1],(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1})),m=p[0],f=(p[1],(0,r.createSearch)(u,(function(e){return e.display_name+e.strain_text}))),C=c.filter(f).sort(s[m.field]);m.desc&&(C=C.reverse());var g=0===C.length;return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[!!g&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[" ",l.emptySearchResult," "]}),!g&&(0,o.createComponentVNode)(2,a.Box,{className:"SeedExtractor__Contents",children:C.map((function(e){return(0,o.createComponentVNode)(2,h,{displayName:e.display_name,descriptionText:e.strain_text,lifespanVal:e.life,enduranceVal:e.endr,maturationVal:e.life,productionVal:e.prod,yieldVal:e.yld,potencyVal:e.potn,vendIdx:e.vend,pileStock:e.quantity},e.vend)}))})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,e.key,e.displayName),s=e.descriptionText,d=e.lifespanVal,u=e.enduranceVal,p=e.maturationVal,m=e.productionVal,h=e.yieldVal,f=e.potencyVal,C=e.vendIdx,g=e.pileStock;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",className:"SeedExtractor__contents--row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",textAlign:"left",bold:!0,children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:c})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",py:1,children:(0,o.createVNode)(1,"table",null,[(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:d}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:u}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:p}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:m}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:h}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:f})]}),2),2),(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,s,0,{style:{"font-size":"90%","padding-top":"0.5em"}}),2)],4,{style:{width:"100%",border:"0"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,py:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{color:"good",children:[g," ",l.inStock]}),(0,o.createComponentVNode)(2,a.Flex.Item,{minHeight:"25px",pt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"1",tooltip:"Dispense one",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:1})}}),(0,o.createComponentVNode)(2,a.NumberInput,{width:"40px",minValue:0,value:0,maxValue:g,step:1,stepPixelSize:3,onChange:function(e,t){return r("vend",{index:C,amount:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:g})}})]})]})})]}),(0,o.createComponentVNode)(2,a.Divider)],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsoleContent=t.ShuttleConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=e.type,u=void 0===s?"shuttle":s,p=e.blind_drop,m=l.authorization_required;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:240,children:[!!m&&(0,o.createComponentVNode)(2,i.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,children:(0,o.createComponentVNode)(2,i.Icon,{name:"minus-circle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,ml:2,color:"bad",children:"shuttle"===u?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:"18px",mt:4,children:(0,o.createComponentVNode)(2,i.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return c("request")}})})]}),(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d,{type:u,blind_drop:p})})]})};var c=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.id===t})))?void 0:n.name},l=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.name===t})))?void 0:n.id},s={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=e.type,p=e.blind_drop,m=d.status,h=d.locked,f=d.authorization_required,C=d.destination,g=d.docked_location,N=d.timer_str,b=d.locations,V=void 0===b?[]:b;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:s[m]||"bad",ml:1,children:m||"Not Available"})]}),(0,o.createComponentVNode)(2,i.Section,{title:"shuttle"===u?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",buttons:"shuttle"!==u&&0===V.length&&!!p&&(0,o.createComponentVNode)(2,i.Button,{color:"bad",icon:"exclamation-triangle",disabled:f||!p,content:"Blind Drop",onClick:function(){return a("random")}}),children:0===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"bad",children:"Not Available"})||1===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"average",children:c(V,C)})||(0,o.createComponentVNode)(2,i.Dropdown,{mb:1.7,over:!0,width:"240px",options:V.map((function(e){return e.name})),disabled:h||f,selected:c(V,C)||"Select a Destination",onSelected:function(e){return a("set_destination",{destination:l(V,e)})}})})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:"Depart",disabled:!c(V,C)||h||f||"Idle"!==m,icon:"arrow-up",textAlign:"center",onClick:function(){return a("move",{shuttle_id:C})}})]})]})};t.ShuttleConsoleContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleManipulator=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},icon:"info-circle",content:"Status"},"Status"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},icon:"file-import",content:"Templates"},"Templates"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},icon:"tools",content:"Modification"},"Modification")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.shuttles;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:e.id}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Timer",children:e.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Mode",children:e.mode}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:e.status}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){return a("fast_travel",{id:e.id})}})]})]})},e.name)}))})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.templates_tabs,s=c.existing_shuttle,d=c.templates;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:e===s.id,icon:"file",content:e,onClick:function(){return a("select_template_category",{cat:e})}},e)}))}),!!s&&d[s.id].templates.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:e.description}),e.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Load Template",icon:"download",onClick:function(){return a("select_template",{shuttle_id:e.shuttle_id})}})})]})},e.name)}))]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.existing_shuttle,s=c.selected;return(0,o.createComponentVNode)(2,i.Box,{children:[l?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: "+l.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l.status}),l.timer&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Timer",children:l.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:l.id})}})})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: None"}),s?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: "+s.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Preview",icon:"eye",onClick:function(){return a("preview",{shuttle_id:s.shuttle_id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",icon:"download",onClick:function(){return a("load",{shuttle_id:s.shuttle_id})}})]})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: None"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data.hasOccupant?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,g));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[r,(0,o.createComponentVNode)(2,f)]})})};var p=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,C)],4)},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data,d=s.occupant,p=s.auto_eject_dead;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:p?"toggle-on":"toggle-off",selected:p,content:p?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(p?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxHealth,value:d.health/d.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(d.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[d.stat][0],children:l[d.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxTemp,value:d.bodyTemperature/d.maxTemp,color:u[d.temperatureSuitability+3],children:[(0,r.round)(d.btCelsius,0),"\xb0C,",(0,r.round)(d.btFaren,0),"\xb0F"]})}),!!d.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.bloodMax,value:d.bloodLevel/d.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[d.bloodPercent,"%, ",d.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[d.pulse," BPM"]})],4)]})})},h=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]],0)},t)},t)}))})})},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.hasOccupant,s=c.isBeakerLoaded,d=c.beakerMaxSpace,u=c.beakerFreeSpace,p=c.dialysis&&u>0;return(0,o.createComponentVNode)(2,a.Section,{title:"Dialysis",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!s||u<=0||!l,selected:p,icon:p?"toggle-on":"toggle-off",content:p?"Active":"Inactive",onClick:function(){return r("togglefilter")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:u/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[u,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.occupant,s=c.chemicals,d=c.maxchem,u=c.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Chemicals",flexGrow:"1",children:s.map((function(e,t){var n,i="";return e.overdosing?(i="bad",n=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(i="average",n=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:e.occ_amount/d,color:i,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[e.pretty_amount,"/",d,"u"]}),u.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+t>d||2===l.stat,icon:"syringe",content:"Inject "+t+"u",title:"Inject "+t+"u of "+e.title+" into the occupant",mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},g=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SlotMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SlotMachine=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return null===s.money?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"Could not scan your card or could not find account!"}),(0,o.createComponentVNode)(2,i.Box,{children:"Please wear or hold your ID and try again."})]})})}):(n=1===s.plays?s.plays+" player has tried their luck today!":s.plays+" players have tried their luck today!",(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{lineHeight:2,children:n}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Credits Remaining",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:s.money})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"50 credits to spin",children:(0,o.createComponentVNode)(2,i.Button,{icon:"coins",disabled:s.working,content:s.working?"Spinning...":"Spin",onClick:function(){return l("spin")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,lineHeight:2,color:s.resultlvl,children:s.result})]})})}))}},function(e,t,n){"use strict";t.__esModule=!0,t.Smartfridge=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Smartfridge=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.secure,d=l.can_dry,u=l.drying,p=l.contents;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[!!s&&(0,o.createComponentVNode)(2,i.Section,{title:"Secure",children:(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Secure Access: Please have your identification ready."})}),!!d&&(0,o.createComponentVNode)(2,i.Section,{title:"Drying rack",children:(0,o.createComponentVNode)(2,i.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){return c("drying")}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Contents",children:[!p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:" No products loaded. "}),!!p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"45%",children:e.display_name}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"25%",children:["(",e.quantity," in stock)"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){return c("vend",{index:e.vend,amount:1})}}),(0,o.createComponentVNode)(2,i.NumberInput,{width:"40px",minValue:0,value:0,maxValue:e.quantity,step:1,stepPixelSize:3,onChange:function(t,n){return c("vend",{index:e.vend,amount:n})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all. ",onClick:function(){return c("vend",{index:e.vend,amount:e.quantity})}})]})]},e)}))]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(0),r=n(1),i=n(2),a=n(100),c=n(3);t.Smes=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.capacityPercent,u=(s.capacity,s.charge),p=s.inputAttempt,m=s.inputting,h=s.inputLevel,f=s.inputLevelMax,C=s.inputAvailable,g=s.outputAttempt,N=s.outputting,b=s.outputLevel,V=s.outputLevelMax,v=s.outputUsed,x=(d>=100?"good":m&&"average")||"bad",y=(N?"good":u>0&&"average")||"bad";return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*d,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return l("tryinput")},children:p?"Auto":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:x,children:(d>=100?"Fully Charged":m&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===h,onClick:function(){return l("input",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===h,onClick:function(){return l("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:h/1e3,fillValue:C/1e3,minValue:0,maxValue:f/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("input",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:h===f,onClick:function(){return l("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:h===f,onClick:function(){return l("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(C)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return l("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:y,children:N?"Sending":u>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===b,onClick:function(){return l("output",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===b,onClick:function(){return l("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:b/1e3,minValue:0,maxValue:V/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("output",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:b===V,onClick:function(){return l("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:b===V,onClick:function(){return l("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(v)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SolarControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SolarControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.generated,d=l.generated_ratio,u=l.tracking_state,p=l.tracking_rate,m=l.connected_panels,h=l.connected_tracker,f=l.cdir,C=l.direction,g=l.rotating_direction;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return c("refresh")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar tracker",color:h?"good":"bad",children:h?"OK":"N/A"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar panels",color:m>0?"good":"bad",children:m})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{size:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:d,children:s+" W"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[f,"\xb0 (",C,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[2===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Automated "}),1===u&&(0,o.createComponentVNode)(2,i.Box,{children:[" ",p,"\xb0/h (",g,") "]}),0===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Tracker offline "})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[2!==u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:f,onDrag:function(e,t){return c("cdir",{cdir:t})}}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:0===u,onClick:function(){return c("track",{track:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"clock-o",content:"Timed",selected:1===u,onClick:function(){return c("track",{track:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:2===u,disabled:!h,onClick:function(){return c("track",{track:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[1===u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:p,format:function(e){return(Math.sign(e)>0?"+":"-")+Math.abs(e)},onDrag:function(e,t){return c("tdir",{tdir:t})}}),0===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Tracker offline "}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{mb:.5,title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){return c("jump",{ID:e.uids})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){return c("spawn",{ID:e.uids})}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:e.desc}),!!e.fluff&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:e.fluff}),!!e.important_info&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:e.important_info})]},e.name)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsole=t.SpiderOS=void 0;var o=n(0),r=n(1),i=n(2),a=n(64),c=n(3);t.SpiderOS=function(e,t){var n,a=(0,r.useBackend)(t),f=a.act,C=a.data;return 0===C.suit_tgui_state?n=(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"60%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,p)})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})]}):1===C.suit_tgui_state&&(n=(0,o.createComponentVNode)(2,i.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h,{allMessages:C.current_load_text,finishedTimeout:3e3,current_initialisation_phase:C.current_initialisation_phase,end_terminal:C.end_terminal,onFinished:function(){return f("set_UI_state",{suit_tgui_state:0})}})]})})),(0,o.createComponentVNode)(2,c.Window,{theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:n})})})};var l=function(e,t){var n=(0,r.useBackend)(t).data,a=n.allStylesPreview,c=n.style_preview_icon_state;return(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u041d\u0430\u0448\u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0430\u043c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u044f \u043e\u0431\u043e\u0440\u043e\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u043f\u0440\u0438 \u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0443\u0431\u0438\u0439\u0446\u044b.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+a[c],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})})})})},s=function(e,t){var n,a,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data,p=u.designs,m=u.design_choice,h=u.scarf_design_choice,f=u.colors,C=u.color_choice,g=u.genders,N=u.preferred_clothes_gender,b=u.suit_state,V=u.preferred_scarf_over_hood,v=u.show_charge_UI,x=u.has_martial_art,y=u.show_concentration_UI;return n=0===b?"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c":"\u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c",a=0===V?"\u041a\u0430\u043f\u044e\u0448\u043e\u043d":"\u0428\u0430\u0440\u0444",c=1===V?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c \u0448\u0430\u0440\u0444\u0430",content:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:h,onSelected:function(e){return d("set_scarf_design",{scarf_design_choice:e})}})}):null,l=x?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f",content:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{selected:y,width:"78px",textAlign:"left",content:y?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_concentration")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043b\u0438 \u0432\u044b \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u043e\u0435\u0432\u043e\u0433\u043e \u0438\u0441\u0441\u043a\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-left"})]})}):null,(0,o.createComponentVNode)(2,i.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,width:"100%",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:m,onSelected:function(e){return d("set_design",{design_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:f,selected:C,onSelected:function(e){return d("set_color",{color_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0416\u0435\u043d\u0441\u043a\u0438\u0439/\u041c\u0443\u0436\u0441\u043a\u043e\u0439",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:g,selected:N,onSelected:function(e){return d("set_gender",{preferred_clothes_gender:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041a\u0430\u043f\u044e\u0448\u043e\u043d",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===b?"":"Button_disabled",width:"78px",selected:V,disabled:b,textAlign:"left",content:a,onClick:function(){return d("toggle_scarf")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043a\u0430\u043f\u044e\u0448\u043e\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u043e\u043b\u043e\u0441\u044b. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0430\u0448\u0430 \u0433\u043e\u043b\u043e\u0432\u0430 \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430! \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u0430\u043d\u043e-\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0433\u0440\u043e\u0437\u044b \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u044f \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443! \u0423\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435: \u043d\u0430\u043d\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u0445 \u0443\u0431\u043e\u0440\u043e\u0432 \u0441 \u0446\u0435\u043b\u044c\u044e \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0435.',tooltipPosition:"top-left"})]}),c,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Button,{selected:v,width:"78px",textAlign:"left",content:v?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_charge")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u0440\u044f\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430.",tooltipPosition:"top-left"})]}),l]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+C,success:0,danger:0,mt:-1.2,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:n,tooltip:"\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 \u043d\u0451\u043c \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043b\u044e\u0431\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0441\u0442\u044e\u043c \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0437\u0430\u0440\u044f\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043d\u044f\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-left",onClick:function(){return d("initialise_suit")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t).data.allActionsPreview;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041c\u043e\u043b\u043e\u0434\u044b\u043c \u0443\u0431\u0438\u0439\u0446\u0430\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0441\u0432\u043e\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0435\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u044b\u0445 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a. \n\u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043c\u0438\u0441\u0441\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u0432\u044b\u0434\u0430\u0434\u0443\u0442 \u0438\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_teleport,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u0438 \u0448\u0430\u0442\u0442\u043b",content:"\u0412 \u0432\u0430\u0448\u0435\u043c \u0414\u043e\u0434\u0437\u0451 \u0435\u0441\u0442\u044c \u043b\u0438\u0447\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0422\u043e\u0447\u043a\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f, \u043d\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043d\u0430 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u043e\u043d\u043d\u0435\u043b\u0438 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u043c\u0430\u043b\u043e\u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0435 \u043c\u0435\u0441\u0442\u0430. \n\u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \n\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0448\u0430\u0442\u0442\u043b\u0430, \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0435\u0448\u0438\u0442\u0435 \u043f\u043e\u043b\u0435\u0442\u0435\u0442\u044c \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432\u0430\u043c, \u0447\u0442\u043e \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043a\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043b\u0430 \u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043b\u0438\u0446, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.headset_green,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a",content:"\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0439, \u043d\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043c\u043e\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0438. \u0412 \u043d\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0431\u043e\u0440\u0433\u043e\u043c \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043a\u043b\u0430\u043d\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043e\u043d \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u0438 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0438 \u0438/\u0438\u043b\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u044b \u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u0430\u043c \u043c\u0435\u0441\u0442\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0441\u0432\u044f\u0437\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438- \u0447\u0435\u0441\u043a\u0438 \u0443\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u043a\u0430\u043c\u0438 \u043f\u0440\u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0432\u0430\u043c \u0441\u0430\u043c\u0438\u043c \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c\u0438.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_sleeper,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0445\u0438\u0449\u0435\u043d\u0438\u0435 \u044d\u043a\u0438\u043f\u0430\u0436\u0430",content:"\u041f\u043e\u0440\u043e\u0439 \u043a\u043b\u0430\u043d\u0443 \u043d\u0443\u0436\u043d\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043b\u044e\u0434\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043e\u0441\u043e\u0431\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0443\u0436\u043e\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u0440\u0443\u043f\u0438\u0446\u0430\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u043f\u043e\u0445\u0438\u0449\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \n\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0445\u0438- \u0442\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435 \u0435\u0441\u0442\u044c \u0441\u043a\u0430\u0444\u0430\u043d\u0434\u0440\u044b, \u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043f\u0430\u0441 \u043d\u0430- \u0440\u0443\u0447\u043d\u0438\u043a\u043e\u0432, \u043a\u0438\u0441\u043b\u043e\u0440\u043e\u0434\u0430 \u0438 \u0431\u0430\u043b\u043b\u043e- \u043d\u043e\u0432. \n\u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043b\u044e\u0434\u0435\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043c\u043f\u0443\u043b\u044c\u0441, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u0442\u0430\u043d\u044f \u0438\u0445 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. ",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ai_face,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043d\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0430\u0431\u043e- \u0442\u0430\u0436 \u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u0440\u043e- \u0446\u0435\u0441\u0441 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u043e\u0442 \u043d\u0430\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \n\u041f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u043a\u043b\u0430\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u044f \u0437\u0430\u043a\u043e\u043d\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u044b\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439. \u0422\u0430\u043a \u0436\u0435 \u0432\u0437\u043b\u043e\u043c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u043b\u0451\u0433\u043a\u0430\u044f - \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u0435\u0441\u0442\u044c \u0432\u0435\u0437\u0434\u0435. \u0410 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f. \u041d\u0435 \u0443\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435\u0441\u044c \u0435\u0441\u043b\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0434\u0435\u0439\u0441\u0442- \u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0438\u043c \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c \u0435\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_borg,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0440\u043e\u0431\u043e\u0442\u043e\u0432",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044f \u0432\u0430\u0448\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0438\u0441\u0441\u0438\u0438 \u0434\u043b\u044f \u0438\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439, \u043c\u044b \u0434\u0430\u0451\u043c \u0432\u0430\u043c \u043e\u0441\u043e\u0431\u044b\u0439 "\u0423\u043b\u0443\u0447\u0448\u0430\u044e\u0449\u0438\u0439" \u0438\u0445 \u043f\u0440\u0438\u0431\u043e\u0440, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438. \n\u041f\u0440\u0438 \u0432\u0437\u043b\u043e\u043c\u0435 \u043a\u0438\u0431\u043e\u0440\u0433\u0430 \u0442\u0430\u043a\u0438\u043c \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u043c(\u0412\u0437\u043b\u043e\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f) \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u043d\u0443 \u0438 \u0432\u0430\u043c \u043b\u0438\u0447\u043d\u043e \u0441\u043b\u0443\u0433\u0443 \u0441\u043f\u043e\u0441\u043e\u0431- \u043d\u043e\u0433\u043e \u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u0430\u043a \u0432 \u0441\u0430\u0431\u043e\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0442\u0430\u043a \u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u0435\u0447\u0435\u043d\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0440\u043e\u0431\u043e\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043d\u0430\u0449\u0451\u043d \u043b\u0438\u0447\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043d\u043e\u0439, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u0438\u043d\u043f\u043e\u0438\u043d\u0442\u0435\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0435\u043c\u0443 \u043d\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u043e\u0432. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u043a\u0430\u0442\u0430\u043d\u0430 \u0440\u043e\u0431\u043e\u0442\u0430 \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u043e\u043a\u0430\u0446\u0438\u044e!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.server,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",content:"\u041d\u0430 \u043d\u0430\u0443\u0447\u043d\u044b\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0447\u0451\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e- \u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0445\u043e- \u0434\u0438\u0442\u0441\u044f \u0433\u0434\u0435 \u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0443- \u043f\u0430\u044e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043d\u043e \u0433\u0440\u044b\u0437\u0443\u0442\u0441\u044f \u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u044f. \u0427\u0442\u043e \u043d\u0430\u043c \u043d\u0430 \u0440\u0443\u043a\u0443. \n\u041c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0440\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u043c\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0430 \u0438\u0445 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044f\u043d\u044b. \n\u041d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u043e\u0432 \u043d\u0435 \u0434\u0440\u0435\u043c\u043b\u044e\u0442. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u0437\u043b\u043e\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0451\u043d \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0418\u0418. \u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u044d\u0442\u043e\u043c\u0443.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.buckler,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043b\u0438",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u043e\u0433\u0430\u0442\u044b\u0435 \u0448\u0438\u0448\u043a\u0438 \u043f\u043b\u0430\u0442\u044f\u0442 \u0437\u0430 \u0443\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044f\u0437\u0430\u043d \u0434\u043e\u0436\u0438\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u043c\u0435\u043d\u044b! \n * \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b! \n * \u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0442\u043e \u0438\u043b\u0438 \u0447\u0442\u043e \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u0434\u0437\u0430\u0449\u0438\u0442\u043d\u043e\u0433\u043e, \u043d\u043e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0433\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043c\u0438\u0441\u0441\u0438\u044f \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e. \u041d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044f \u0431\u0435\u0437 \u043d\u0443\u0436\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u043d\u0430 \u0432\u0430\u0441 \u0441\u0430\u043c\u0438\u0445 \u043d\u0435 \u0432\u0435\u043b\u0438 \u043e\u0445\u043e\u0442\u0443! \n\u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0430\u043d \u043d\u0435 \u043e\u0434\u043e\u0431\u0440\u044f\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b "\u0417\u0430\u0449\u0438\u0442\u044b" \u0446\u0435\u043b\u0438. \u041d\u0435\u0442 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u043b\u0435\u0442\u043a\u0443 \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043d\u0438\u043c \u0442\u0430\u043c! \u041d\u0435 \u043f\u043e\u0440\u0442\u0438\u0442\u0435 \u043d\u0430\u0448\u0443 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044e \u0432 \u0433\u043b\u0430\u0437\u0430\u0445 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.cash,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041a\u0440\u0430\u0436\u0430 \u0434\u0435\u043d\u0435\u0433",content:"\u041a\u0430\u043a \u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e. \u0418\u043d\u043e\u0433\u0434\u0430 \u043a\u043b\u0430\u043d \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u043d\u044c- \u0433\u0430\u0445. \u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b \u0437\u0430\u0434\u043e\u043b\u0436\u0430\u043b\u0438 \u043d\u0430\u043c. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u0434\u0438\u043c \u0432\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043b\u044f \u0432\u0430\u0441 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0442\u0440\u0443\u0434\u043d\u0430\u044f, \u043d\u043e \u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u043a\u0430\u0440\u043c\u0430\u043d\u043d\u044b\u0445 \u043a\u0440\u0430\u0436. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043a\u0430\u0440\u0442 \u0438 \u043e\u0431\u043d\u0430\u043b\u0438\u0447\u0438- \u0432\u0430\u043d\u0438\u044f \u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432. \u041b\u0438\u0431\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0435\u0442\u0438\u0442\u044c \u0432\u044b\u0448\u0435 \u0438 \u043e\u0433\u0440\u0430\u0431\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435. \u0414\u043e\u0441\u0442\u0430\u043d\u044c\u0442\u0435 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438!",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.handcuff,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430",content:"\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0447\u0443\u0436\u043e\u0439 \u043f\u043e\u0437\u043e\u0440 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0447\u0435\u043c \u0441\u043c\u0435\u0440\u0442\u044c. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0432\u0430\u043c \u043f\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u0440\u043e\u044f\u0432\u0438\u0442\u044c \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043f\u043e \u0437\u0430\u043a\u043e\u043d\u043d\u044b\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0443\u043f\u0435\u043a\u043b\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0446\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u043b\u0435\u0434. \u041d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0446\u0435\u043b\u0438 \u0441\u0440\u043e\u043a \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 - \u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u0435\u0442\u043e\u0434. \u0426\u0435\u043b\u044c \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u044e\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043b\u0438\u0447\u0438\u043d\u043e\u0439 \u0446\u0435\u043b\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u0441\u043b\u0438\u0448- \u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041b\u0438\u0448\u043d\u044f\u044f \u0434\u044b\u0440\u0430 \u0432 \u043e\u0431\u0448\u0438\u0432\u043a\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u0442\u0440\u0443\u043f\u044b - \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0448\u0430\u043d\u0441\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u043d\u0430.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.spider_charge,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0440\u044b\u0432 \u043e\u0442\u0434\u0435\u043b\u0430",content:"\u0421\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 \u0431\u043e\u043c\u0431\u044b. \u042d\u0444\u0444\u0435\u043a- \u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0440\u0443\u0434\u0438\u044f \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0438 \u043d\u0435\u0436\u0438\u0432\u043e\u0433\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0441\u044f\u0442 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u043e\u0431\u044c\u0435\u043a\u0442, \u043e\u043d\u0438 \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u041d\u043e \u0440\u0435\u0434\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b \u0441\u0434\u0430\u0442\u044c\u0441\u044f. \u041a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u043d\u0430 \u043f\u043e\u0434\u0440\u044b\u0432 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u0430. \n\u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0437\u0440\u044b\u0432\u0430 \u043d\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044c \u043e\u0445\u043e\u0442\u0430. \n \u041d\u0430\u0448\u0438 \u0431\u043e\u043c\u0431\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u0435\u043b\u044f\u043c\u0438. \u041d\u0438\u043a\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u0430\u0441 \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0445 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043b\u0438\u0448\u044c \u0432 \u0437\u043e\u043d\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0421\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u0442\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0441 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.BSM,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u0440\u043e\u0432\u0438",content:'"\u0417\u043d\u0430\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430" - \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438\u0441\u0442\u0438\u043d\u0430. \n\u0417\u0430 \u0433\u043e\u0434\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u043d\u0430 \u043c\u044b \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e- \u0442\u043e\u0440\u044b\u0445. \u0410 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u044b\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b. \u041a\u0440\u043e\u0432\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0430\u0448\u0438\u043c \u0443\u0447\u0451\u043d\u044b\u043c. \n\u0418\u043c\u0435\u044e\u0449\u0430\u044f\u0441\u044f \u0443 \u0432\u0430\u0441 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043d\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043b\u044f \u043a\u0440\u043e\u0432\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b \u043d\u0435 \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430\u043c. \n\u0414\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u0440\u043e\u0432\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c 3 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043f\u043e\u043c\u0435- \u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043f\u0440\u043e\u0431\u0438\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \n\u041f\u0440\u0438\u043c\u0435\u0441\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.changeling,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0413\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u044b",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043e\u0437\u043e\u043c\u043d\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044f \u0432\u044b\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u043c\u0435\u044e\u0442 \u043a\u0440\u0430\u0441\u0442\u044c \u0433\u0435\u043d\u044b \u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445. \n\u0421\u0432\u043e\u0438\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u043d\u0438 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431- \u043b\u0435\u043c, \u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u044b. \n\u042d\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043e\u043b\u044c \u0436\u0435 \u0445\u0438\u0442\u0440\u044b \u0441\u043a\u043e\u043b\u044c \u0438 \u0441\u043a\u0440\u044b\u0442\u043d\u044b. \u041d\u0435 \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043d\u0438\u043c\u0438 \u043d\u0438 \u043e \u0447\u0451\u043c! \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0436\u0435 \u043d\u0430\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0433\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u0430 \u043d\u0435 \u0437\u0430\u043f\u0438\u0445- \u043d\u0443\u0432 \u0435\u0433\u043e \u0432 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e \u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0441\u0442\u043e\u0432. \u041d\u043e \u043e\u043d\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0435\u0431\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438. \u0418 \u0442\u0430\u043a \u0436\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043b\u043e\u0436\u0430\u0442\u0441\u044f \u043d\u0430 \u0434\u043d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0438\u0445 \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0430\u0439\u0442\u0435 \u0438\u043c \u043f\u043e\u043f\u043b\u044f\u0441\u0430\u0442\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0441\u0446\u0435\u043d\u0443. \u0418 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0445\u0440\u0430\u043d\u0430 \u0443\u0436\u0435 \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u0437\u0430 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043d\u0438\u0445. \n\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c \u0441 \u044d\u0442\u0438\u043c...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.vampire,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u043c\u043f\u0438\u0440\u044b",content:"\u0414\u0435\u0448\u0451\u0432\u044b\u0435 \u0440\u043e\u043c\u0430\u043d\u044b, \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438 \u0441\u043a\u0430\u0437\u043a\u0438 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u0432\u0430\u043c\u043f\u0438\u0440\u043e\u0432 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a\u043e\u0432 \u043f\u044c\u044e\u0449\u0438\u0445 \u043a\u0440\u043e\u0432\u044c \u043b\u044e\u0434\u0435\u0439 \u0432 \u043d\u043e\u0447\u0438 \u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e- \u0449\u0438\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e- \u0441\u0442\u044f\u043c\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u0435\u0435 \u0440\u043e\u043c\u0430\u043d\u0442\u0438\u0447\u043d\u044b... \n\u041c\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043d\u043e \u043d\u0430\u0448\u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0435- \u043d\u0438\u044f \u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0439 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0422\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0432\u0430\u043c\u043f\u0438\u0440 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u0438\u043b\u0438 \u0443\u0433\u0440\u043e\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438. \u0412\u044b \u0432\u043e\u043b\u044c\u043d\u044b \u0435\u0433\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \n\u0412\u0430\u043c\u043f\u0438\u0440\u044b \u043e\u0447\u0435\u043d\u044c \u043e\u043f\u0430\u0441\u043d\u044b \u0432 \u043f\u0440\u044f\u043c\u043e\u043c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438, \u043e\u043d\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043e\u0433\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0437\u0433\u043b\u044f\u0434\u043e\u043c \u0438 \u043f\u043e\u0440\u0430\u0431\u043e\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u0443\u043c \u0441\u0432\u043e\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0438\u043c, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043c\u043d\u0438\u0442\u0435 - \u043e\u043d\u0438 \u043b\u0438\u0448\u044c \u0436\u0435\u0440\u0442\u0432\u044b \u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.syndicate,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442",content:"\u041d\u0430\u0448\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435. \u0421\u0431\u043e\u0440\u0438\u0449\u0435 \u043c\u043e\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043f\u043e\u0434\u043f\u043e\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043c\u0430\u043b\u043e... \n\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u0430\u0437\u043e\u0432. \u041d\u043e \u0441\u0430\u043c\u043e\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043e\u0439 \u044d\u0442\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b - \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u044c \u043a \u041d\u0422. \n\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0441 \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043d\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0430. \n\u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u044e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u041c\u044b \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u043c \u0438\u043c.",position:"bottom-left"})]})]})})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.allActionsPreview,s=c.blocked_TGUI_rows,d=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,o.createComponentVNode)(2,i.Section,{title:"\u041c\u043e\u0434\u0443\u043b\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u0414\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0430 3 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432",tooltipPosition:"bottom"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0440\u0438\u0437\u0440\u0430\u043a",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0421\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043e\u0432, \u043d\u0430\u043f\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043d\u0438 \u0438 \u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0440\u0438\u043c\u043e\u0439 \u0443\u0433\u0440\u043e\u0437\u043e\u0439, \u0432\u0441\u0451 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u0437\u043d\u0430\u043b! \u0411\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b \u043a\u0430\u043a \u043f\u0440\u0438\u0437\u0440\u0430\u043a!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"smoke",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.smoke,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0414\u042b\u041c\u041e\u0412\u0410\u042f \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u0445 \u0432\u0440\u0430\u0433\u043e\u0432. \n\u042d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0437\u043e\u0440\u043e\u043c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0442\u0435\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0430\u043d\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043a \u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u0433\u043e \u043f\u043e\u0436\u0435\u043b\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"ninja_cloak",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_cloak,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041d\u0415\u0412\u0418\u0414\u0418\u041c\u041e\u0421\u0422\u042c",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441\u043a\u0440\u044b\u0432\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043f\u0440\u0438\u0433\u043b\u0443\u0448\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u0425\u043e\u0442\u044c \u043f\u043e\u043b\u0435 \u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0445\u043b\u0430\u0434\u043d\u043e\u043a\u0440\u043e\u0432\u0435\u043d. \n\u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 15 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"ninja_clones",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_clones,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u041a\u041b\u041e\u041d\u042b",content:"\u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043e\u0440\u0438\u0435\u043d\u0442\u0438- \u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043f\u0430\u0440\u044b \u043c\u0435\u0442\u0440\u043e\u0432. \n\u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e. \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0435\u0440\u0435\u0442\u044c \u0432\u0430\u0441 \u0437\u0430 4-\u043c\u044f \u0441\u0442\u0435\u043d\u0430\u043c\u0438. \u0411\u0443\u0434\u044c\u0442\u0435 \u043a \u044d\u0442\u043e\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b. \n\u041a\u043b\u043e\u043d\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041a\u043b\u043e\u043d\u044b \u0438\u043c\u0435\u044e\u0442 \u0448\u0430\u043d\u0441 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u0441\u044f \u0430\u0442\u0430\u043a\u0443\u044f \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u0432. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 8 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"chameleon",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chameleon,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0425\u0410\u041c\u0415\u041b\u0415\u041e\u041d",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u0433\u043e\u043b\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438\u0441\u043a\u0430\u0436\u0430\u044e\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0441\u043b\u0443\u0445\u043e\u0432\u043e\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c. \n\u042d\u0442\u043e \u0434\u0430\u0451\u0442 \u0432\u0430\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u043f\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0438 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430 \u044d\u043a\u0438\u043f\u0430\u0436\u0430. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0430\u043c\u0435\u043b\u0435\u043e\u043d \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"ninja_spirit_form",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_spirit_form,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0424\u041e\u0420\u041c\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044b \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u044d\u0442\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438. \n\u0414\u0435\u043b\u0430\u044f \u0432\u0430\u0448\u0435 \u0442\u0435\u043b\u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u044d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0442\u0435\u043d\u044b. \n\u042d\u0442\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0441 \u043d\u0435\u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0443\u043b\u044c \u0438 \u043b\u0435\u0437\u0432\u0438\u0439! \n\u041d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u043d\u044f\u0442\u044c \u0441 \u0441\u0435\u0431\u044f \u043d\u0430\u0440\u0443\u0447\u043d\u0438\u043a\u0438, \u0431\u043e\u043b\u044b \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b\u043b\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043e\u0431\u0430 \u0438\u043b\u0438 \u044f\u0449\u0438\u043a\u0430, \u043e\u043a\u0430\u0436\u0438\u0441\u044c \u0432\u044b \u0442\u0430\u043c \u0437\u0430\u043f\u0435\u0440\u0442\u044b... \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u0430. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0434\u0443\u0445\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438! \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u044a\u0451\u043c\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 25 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0417\u043c\u0435\u0439",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435! \u0422\u0440\u044e\u043a\u0438, \u043b\u043e\u0432\u0443\u0448\u043a\u0438, \u0449\u0438\u0442\u044b. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u043e\u0439 \u0441 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0438\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u0445\u043e\u0434\u044f \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0433\u0440\u044b\u0437\u0443\u043d\u044b, \u0447\u044c\u0451 \u043b\u043e\u0433\u043e\u0432\u043e \u043d\u0430\u0432\u0435\u0441\u0442\u0438\u043b \u0437\u043c\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"kunai",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.kunai,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041e\u0415\u041d\u041d\u041e\u0415 \u0414\u0416\u041e\u0425\u042c\u0401",content:"\u0422\u0430\u043a \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a \u0428\u044d\u043d\u0431\u044f\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u041a\u0438\u043d\u0436\u0430\u043b \u043d\u0430 \u0446\u0435\u043f\u0438. \n\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u0442\u044f\u043d\u0443\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043e\u043b\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u041e\u0440\u0443\u0436\u0438\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u0438\u0445 \u0431\u043e\u0451\u0432, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0436\u0435\u0440\u0442\u0432\u044b - \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u043f\u0440\u043e\u043c\u0430\u0445\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 5 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"chem_injector",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chem_injector,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041b\u042f\u042e\u0429\u0418\u0419 \u041a\u041e\u041a\u0422\u0415\u0419\u041b\u042c",content:"\u0412\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0435\u0447\u0435\u0431\u043d\u0443\u044e \u0441\u043c\u0435\u0441\u044c. \u0421\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u0437\u0430\u043b\u0435\u0447\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043e\u0440\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u041f\u0440\u0435\u043f\u0430\u0440\u0430\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442- \n\u0432\u0435\u043d\u043d\u043e-\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u0434\u043e\u043a\u0441\u044b \u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0430! \n\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u043e\u0437\u0438\u0440\u043e\u0432\u043a\u0435 \u043e\u043d\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 30 \u0435\u0434. \u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c! \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0438\u043c\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044f\u0434\u0430. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u043e\u0432 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emergency_blink",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emergency_blink,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041a\u0421\u0422\u0420\u0415\u041d\u041d\u0410\u042f \u0422\u0415\u041b\u0415\u041f\u041e\u0420\u0422\u0410\u0426\u0418\u042f",content:"\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0437\u043e\u043d\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043c\u0435\u0442\u0440\u043e\u0432. \n\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u043e\u0437\u0433\u043e\u0432\u044b\u0435 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0432\u043e\u0438\u043d\u044b \u043a\u043b\u0430\u043d\u0430, \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043e \u0441\u043d\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"caltrop",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.caltrop,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e-\u0427\u0415\u0421\u041d\u041e\u041a",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043b\u0442\u0440\u043e\u043f\u044b, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u044a\u0435\u0441\u0442\u043d\u044b\u043c \u0447\u0435\u0441\u043d\u043e\u043a\u043e\u043c. \n\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u043f\u0440\u0435\u0441\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043b\u043e\u0432\u0443\u0448\u043a\u0438. \n\u041b\u043e\u0432\u0443\u0448\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434. \u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 - \u0435\u0441\u043b\u0438 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442\u044c. \n\u0411\u043e\u043b\u044c \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043e\u0431\u043e\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d- \u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u0412\u044b \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b \u043e\u0442 \u043d\u0438\u0445. \u041d\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0436\u0435 \u043b\u043e\u0432\u0443\u0448\u043a\u0438! \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"cloning",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.cloning,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0422\u041e\u0420\u041e\u0419 \u0428\u0410\u041d\u0421",content:"\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u043d\u043e\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0438 \u043c\u0438\u0441\u0441\u0438\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043b\u0430\u043f\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430. \u041c\u043e\u0449\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0432\u0430\u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441 \u0442\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430. \n\u042d\u0442\u0430 \u043c\u0430\u0448\u0438\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u043d\u0441, \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u0430\u0441 \u043a \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043b\u0435\u0447\u0438\u0432 \u043b\u044e\u0431\u044b\u0435 \u0442\u0440\u0430\u0432\u043c\u044b. \n\u041c\u044b \u0441\u043b\u044b\u0448\u0430\u043b\u0438 \u043f\u0440\u043e \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u043d\u0430. \u041d\u043e \u0443\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0430\u0441, \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043d\u0430 \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044e. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u043b\u044c",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u042f\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043b\u044e\u0434\u044f\u043c. \u0421\u0438\u043b\u0430, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043e\u0440\u0443\u0434\u0438\u044f \u0432\u044b\u0448\u0435 \u0438\u0445 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a \u0447\u0442\u043e \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043e\u044e \u0434\u043e\u0431\u044b\u0447\u0443. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u0432\u043a\u0443\u0441 \u0441\u0442\u0430\u043b\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"shuriken",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.shuriken,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u0421\u042e\u0420\u0418\u041a\u0415\u041d\u042b",content:"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043f\u0443\u0441\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u0432 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0430\u0445 \u043a\u043e\u0441\u0442\u044e\u043c\u0430. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u043e \u0442\u0440\u0438 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u0430, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e. \n\u0421\u044e\u0440\u0438\u043a\u0435\u043d\u044b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0438\u0437\u043d\u0443\u0440\u044f\u044e\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u043d\u0430\u043d\u043e\u0441\u044f\u0442 \u0441\u043b\u0430\u0431\u044b\u0439 \u043e\u0436\u043e\u0433\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043b\u0435\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043a\u043b\u043e, \u043a\u0430\u043a \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043b\u0430\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u043d\u0430\u0440\u044f\u0434\u044b. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 300 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"adrenal",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.adrenal,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u041f\u041b\u0415\u0421\u041a \u0410\u0414\u0420\u0415\u041d\u0410\u041b\u0418\u041d\u0410",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043c\u043e\u0449\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0443\u044e \u0432\u0430\u0441 \u0432 \u0431\u043e\u044e \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0449\u0443\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043e\u043a\u043b\u0435\u043c\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043e\u0433\u043b\u0443\u0448\u0430\u044e\u0449\u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432. \n\u041a\u043e\u0441\u0442\u044e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0440\u0430\u043d\u0430. \u0427\u0442\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0451\u0442 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0434\u0438\u044f \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0436\u0435\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0443\u0440\u0430\u043d\u0430 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emp",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emp,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e\u041c\u0410\u0413\u041d\u0418\u0422\u041d\u042b\u0419 \u0412\u0417\u0420\u042b\u0412",content:"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0435 \u0432\u043e\u043b\u043d\u044b \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e\u0442, \u043f\u043e\u0434\u0440\u044b\u0432\u0430\u044e\u0442 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0430\u044e\u0442 - \u043a\u0438\u0431\u043e\u0440\u0433\u043e\u0432, \u0434\u0440\u043e\u043d\u043e\u0432, \u041a\u041f\u0411, \u044d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0440\u0443\u0436\u0438\u0435, \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0421\u0432\u0435\u0442\u043e\u0448\u0443\u043c\u043e\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044f\u0437\u0438 \u0438 \u0442.\u0434. \n\u042d\u0442\u043e\u0442 \u0432\u0437\u0440\u044b\u0432 \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0432 \u0431\u043e\u044e, \u0442\u0430\u043a \u0438 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043d\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044c. \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c. \n\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043e \u0437\u0430\u0449\u0438\u0449\u0430\u044e\u0449\u0435\u043c \u043e\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0437\u043e\u0440\u0430. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0435 \u043e\u0441\u043b\u0435\u043f\u043d\u0443\u0442\u044c, \u043f\u0440\u0438 \u043f\u043e\u0434\u0440\u044b\u0432\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044b\u0432 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"energynet",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.energynet,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0410\u042f \u0421\u0415\u0422\u042c",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043b\u043e\u0432\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0432\u0430\u043c\u0438 \u0446\u0435\u043b\u044c \u0432 \u043e\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u043b\u043e\u0432\u0443\u0448\u043a\u0443. \n\u0418\u0437 \u043b\u043e\u0432\u0443\u0448\u043a\u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u0432 \u0435\u0451 \u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c. \n\u041e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0430\u0433\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432 \u043d\u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0445 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0445 \u0438\u043b\u0438 \u043d\u0430\u0434\u043e\u0435\u0434\u043b\u0438\u0432\u044b\u0445 \u043e\u0445\u0440\u0430\u043d\u043d\u044b\u0445 \u0431\u043e\u0442\u043e\u0432. \n\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0441\u0435\u0442\u044c \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043e\u0442\u0441\u0442\u0440\u0435\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043a \u0436\u0435 \u0441\u0435\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u0435\u0442\u0438 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"spider_red",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.spider_red,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0411\u041e\u0415\u0412\u041e\u0415 \u0418\u0421\u041a\u0423\u0421\u0421\u0422\u0412\u041e \n\u041f\u041e\u041b\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041e\u0412\u042b",content:"\u0411\u043e\u0435\u0432\u043e\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u043d\u0438\u043d\u0434\u0437\u044f \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0451\u043c\u043e\u0432. \n\u0412 \u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0438\u0451\u043c\u044b: \n\u0412\u044b\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0443\u043a\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044b\u0440\u043e\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043b\u0430\u0434\u043e\u043d\u044c\u044e - \u043e\u0442\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442 \u0432\u0430\u0441, \u043b\u0438\u0448\u0430\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0441\u0438\u044f. \n\u041f\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043d\u0438\u0435 \u0448\u0435\u0438 - \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0435\u0437\u0433\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043b\u0435\u0436\u0430\u0447\u0443\u044e \u0436\u0435\u0440\u0442\u0432\u0443 \u043a\u0430\u0442\u0430\u043d\u043e\u0439 \u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u043a\u0435. \n\u042d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0442\u043e\u0440\u043d\u0430\u0434\u043e - \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0432\u043e\u043a\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0434\u044b\u043c\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043e\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0448\u0430\u043d\u0441\u043e\u043c \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u043d\u044f\u0440\u044f\u0434\u044b \u0432\u0440\u0430\u0433\u043e\u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.",position:"right"})]})]})]})]})})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0442\u0442\u043b\u043e\u043c",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041f\u0430\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u043c \u043b\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0442\u0442\u043b\u043e\u043c. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e \u0448\u0430\u0442\u0442\u043b\u0430!",tooltipPosition:"right"}),children:(0,o.createComponentVNode)(2,i.Flex,{ml:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.status?l.status:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.player_pos}),!!l.shuttle&&(!!l.docking_ports_len&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0442\u0442\u043b",children:l.docking_ports.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",content:e.name,onClick:function(){return c("move",{move:e.id})}},e.name)}))})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"Status",color:"red",children:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e",disabled:!l.status,onClick:function(){return c("request")}})})],0))]})})})};t.ShuttleConsole=p;var m=function(e,t){var n=(0,r.useBackend)(t).data,a=n.randomPercent,c=n.allActionsPreview,l=n.color_choice;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:l,value:a,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+l,mt:1,children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+c["spider_"+l],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Loading ",a+"%"]}),2)})})},h=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={lastText:"text do be there",currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.tick=function(){var e=this.props,t=this.state;e.allMessages===t.lastText||e.end_terminal?e.end_terminal&&(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout)):(t.currentDisplay.push(e.allMessages),t.lastText=e.allMessages)},a.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},a.componentWillUnmount=function(){clearTimeout(this.timer)},a.render=function(){return(0,o.createComponentVNode)(2,i.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.StationAlertConsoleContent=t.StationAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t).data.alarms||[],a=n.Fire||[],c=n.Atmosphere||[],l=n.Power||[];return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Fire Alarms",children:(0,o.createVNode)(1,"ul",null,[0===a.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),a.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Atmospherics Alarms",children:(0,o.createVNode)(1,"ul",null,[0===c.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),c.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Alarms",children:(0,o.createVNode)(1,"ul",null,[0===l.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),l.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)})],4)};t.StationAlertConsoleContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SuitStorage=function(e,t){var n=(0,r.useBackend)(t).data.uv;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[!!n&&(0,o.createComponentVNode)(2,i.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,o.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.helmet,d=c.suit,u=c.magboots,p=c.mask,m=c.storage,h=c.open,f=c.locked;return(0,o.createComponentVNode)(2,i.Section,{title:"Stored Items",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:f?"Unlock":"Lock",icon:f?"unlock":"lock",disabled:h,onClick:function(){return a("toggle_lock")}}),(0,o.createComponentVNode)(2,i.Button,{content:h?"Close unit":"Open unit",icon:h?"times-circle":"expand",color:h?"red":"green",disabled:f,onClick:function(){return a("toggle_open")}})],4),children:h&&!f?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,l,{object:s,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,o.createComponentVNode)(2,l,{object:d,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,o.createComponentVNode)(2,l,{object:u,label:"Magboots",missingText:"magboots",eject:"dispense_magboots"}),(0,o.createComponentVNode)(2,l,{object:p,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,o.createComponentVNode)(2,l,{object:m,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:f?"lock":"exclamation-circle",size:"5",mb:3}),(0,o.createVNode)(1,"br"),f?"The unit is locked.":"The unit is closed."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.object),l=e.label,s=e.missingText,d=e.eject;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:l,children:(0,o.createComponentVNode)(2,i.Box,{my:.5,children:c?(0,o.createComponentVNode)(2,i.Button,{my:-1,icon:"eject",content:c,onClick:function(){return a(d)}}):(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",textAlign:"center",content:"Start Disinfection Cycle",disabled:c.locked,onClick:function(){return a("cook")}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SupermatterMonitor=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(80);t.SupermatterMonitor=function(e,t){var n=(0,r.useBackend)(t);n.act;return 0===n.data.active?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,s)};var l=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Detected Supermatter Shards",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Refresh",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,i.Box,{m:1,children:0===s.supermatters.length?(0,o.createVNode)(1,"h3",null,"No shards detected",16):(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.TableCell,{children:"Area"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Integrity"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Details"})]}),s.supermatters.map((function(e){return(0,o.createComponentVNode)(2,c.TableRow,{children:[(0,o.createComponentVNode)(2,c.TableCell,{children:e.area_name}),(0,o.createComponentVNode)(2,c.TableCell,{children:[e.integrity,"%"]}),(0,o.createComponentVNode)(2,c.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"View",onClick:function(){return l("view",{view:e.uid})}})})]},e)}))]})})})})})},s=function(e,t){var n,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Crystal Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"caret-square-left",content:"Back",onClick:function(){return d("back")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[95,Infinity],average:[80,94],bad:[-Infinity,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,i.Box,{color:(l=u.SM_power,l>300?"bad":l>150?"average":"good"),children:[u.SM_power," MeV/cm3"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:(c=u.SM_ambienttemp,c>5e3?"bad":c>4e3?"average":"good"),children:[u.SM_ambienttemp," K"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:(n=u.SM_ambientpressure,n>1e4?"bad":n>5e3?"average":"good"),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Gas Composition",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndicateComputerSimple=void 0;var o=n(0),r=n(1),i=n(2),a=(n(64),n(3));t.SyndicateComputerSimple=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:l.rows.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.title,buttons:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontitle,disabled:e.buttondisabled,tooltip:e.buttontooltip,tooltipPosition:"left",onClick:function(){return c(e.buttonact)}}),children:[e.status,!!e.bullets&&(0,o.createComponentVNode)(2,i.Box,{children:e.bullets.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]},e.title)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndieCargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.SyndieCargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.is_public,s=void 0===l?0:l,d=i.cash,u=i.wait_time,p=i.is_cooldown,m=i.telepads_status,h=i.adminAddCash,f=m,C="",g=0,N="";return"Pads not linked!"===m?(g=0,C="Attempts to link telepads to the console.",N="Link pads"):p?p&&(N="Cooldown...",C="Pads are cooling off...",g=1,f=1!==u?m+" (ETA: "+u+" seconds)":m+" (ETA: "+u+" second)"):(g=0,C="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",N="Teleport"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Money Available",children:[d,(0,o.createComponentVNode)(2,c.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){return r("withdraw",d)}}),(0,o.createComponentVNode)(2,c.Button,{content:h,tooltip:"Bless the players with da money!",onClick:function(){return r("add_money",d)}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Telepads Status",children:f}),0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:N,tooltip:C,disabled:g,onClick:function(){return r("teleport")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Syndicate Black Market Log",onClick:function(){return r("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Credits)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TTSSeedsExplorerContent=t.TTSSeedsExplorer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={0:"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},l={"\u041c\u0443\u0436\u0441\u043a\u043e\u0439":{icon:"mars",color:"blue"},"\u0416\u0435\u043d\u0441\u043a\u0438\u0439":{icon:"venus",color:"purple"},"\u041b\u044e\u0431\u043e\u0439":{icon:"venus-mars",color:"white"}},s=function(e,t,n,r){return void 0===r&&(r=null),e.map((function(e){var a,c=null!=(a=e[r])?a:e;return(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:t.includes(e),content:c,onClick:function(){t.includes(e)?n(t.filter((function(t){var n;return(null!=(n=t[r])?n:t)!==e}))):n([e].concat(t))}},c)}))};t.TTSSeedsExplorer=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.providers,p=d.seeds,m=d.selected_seed,h=d.phrases,f=d.donator_level,C=p.map((function(e){return e.category})).filter((function(e,t,n){return n.indexOf(e)===t})),g=p.map((function(e){return e.gender})).filter((function(e,t,n){return n.indexOf(e)===t})),N=p.map((function(e){return e.donator_level})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return c[e]})),b=(0,r.useLocalState)(t,"selectedProviders",u),V=b[0],v=b[1],x=(0,r.useLocalState)(t,"selectedGenders",g),y=x[0],k=x[1],w=(0,r.useLocalState)(t,"selectedCategories",C),_=w[0],B=w[1],S=(0,r.useLocalState)(t,"selectedDonatorLevels",N),L=S[0],A=S[1],E=(0,r.useLocalState)(t,"selectedPhrase",h[0]),I=E[0],D=E[1],T=(0,r.useLocalState)(t,"searchtext",""),F=T[0],M=T[1],P=s(u,V,v,"name"),O=s(g,y,k),R=s(C,_,B),j=s(N,L,A),U=(0,o.createComponentVNode)(2,i.Dropdown,{options:h,selected:I.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(e){return D(e)}}),z=(0,o.createComponentVNode)(2,i.Input,{placeholder:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435...",fluid:!0,onInput:function(e,t){return M(t)}}),W=p.sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return n>o?1:n0&&m!==e.name?"orange":"white",children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:m===e.name?.5:.25,textAlign:"left",children:e.category}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:m===e.name?"white":l[e.gender].color,textAlign:"left",children:(0,o.createComponentVNode)(2,i.Icon,{mx:1,size:1.2,name:l[e.gender].icon})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:e.donator_level>0&&(0,o.createFragment)([c[e.donator_level],(0,o.createComponentVNode)(2,i.Icon,{ml:1,mr:2,name:"coins"})],0)})]},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b",children:P}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u043b",children:O}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438",children:R}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438",children:j}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:U}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0438\u0441\u043a",children:z})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0413\u043e\u043b\u043e\u0441\u0430 ("+W.length+"/"+p.length+")",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Table,{children:H})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.BlockQuote,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0447\u0430\u0441\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,o.createComponentVNode)(2,i.Box,{mt:2,italic:!0,children:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c Discord-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})],4)};t.TTSSeedsExplorerContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.TachyonArrayContent=t.TachyonArray=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TachyonArray=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.records,u=void 0===d?[]:d,p=s.explosion_target,m=s.toxins_tech,h=s.printing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shift's Target",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Toxins Level",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Administration",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||h,align:"center",onClick:function(){return l("print_logs")}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){return l("delete_logs")}})]})]})}),u.length?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Records"})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records,l=void 0===c?[]:c;return(0,o.createComponentVNode)(2,i.Section,{title:"Logged Explosions",children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Epicenter"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Actual Size"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Theoretical Size"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.logged_time}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.epicenter}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.actual_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.theoretical_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return a("delete_record",{index:e.index})}})})]},e.index)}))]})})})})};t.TachyonArrayContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Tank=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return n=s.has_mask?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.connected?"check":"times",content:s.connected?"Internals On":"Internals Off",selected:s.connected,onClick:function(){return l("internals")}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tank Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.tankPressure/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:s.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Release Pressure",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:s.ReleasePressure===s.minReleasePressure,tooltip:"Min",onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,value:parseFloat(s.releasePressure),width:"65px",unit:"kPa",minValue:s.minReleasePressure,maxValue:s.maxReleasePressure,onChange:function(e,t){return l("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:s.ReleasePressure===s.maxReleasePressure,tooltip:"Max",onClick:function(){return l("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"",disabled:s.ReleasePressure===s.defaultReleasePressure,tooltip:"Reset",onClick:function(){return l("pressure",{pressure:"reset"})}})]}),n]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.o_tanks,d=l.p_tanks;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Oxygen Tank ("+s+")",disabled:0===s,icon:"arrow-circle-down",onClick:function(){return c("oxygen")}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Plasma Tank ("+d+")",disabled:0===d,icon:"arrow-circle-down",onClick:function(){return c("plasma")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsCore=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsCore=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data.ion),p=(0,r.useLocalState)(t,"tabIndex",0),m=p[0],h=p[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[1===u&&(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===m,onClick:function(){return h(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===m,onClick:function(){return h(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===m,onClick:function(){return h(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);case 2:return(0,o.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}(m)]})})};var c=function(){return(0,o.createComponentVNode)(2,i.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.active,s=c.sectors_available,d=c.nttc_toggle_jobs,u=c.nttc_toggle_job_color,p=c.nttc_toggle_name_color,m=c.nttc_toggle_command_bold,h=c.nttc_job_indicator_type,f=c.nttc_setting_language,C=c.network_id;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:l?"On":"Off",selected:l,icon:"power-off",onClick:function(){return a("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Radio Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcements",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"On":"Off",selected:d,icon:"user-tag",onClick:function(){return a("nttc_toggle_jobs")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:u?"On":"Off",selected:u,icon:"clipboard-list",onClick:function(){return a("nttc_toggle_job_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"user-tag",onClick:function(){return a("nttc_toggle_name_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Command Amplification",children:(0,o.createComponentVNode)(2,i.Button,{content:m?"On":"Off",selected:m,icon:"volume-up",onClick:function(){return a("nttc_toggle_command_bold")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Advanced",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcement Format",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"Unset",selected:h,icon:"pencil-alt",onClick:function(){return a("nttc_job_indicator_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Language Conversion",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"Unset",selected:f,icon:"globe",onClick:function(){return a("nttc_setting_language")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:C||"Unset",selected:C,icon:"server",onClick:function(){return a("network_id")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){return a("import")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){return a("export")}})]})],4)},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.link_password,s=c.relay_entries;return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linkage Password",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"Unset",selected:l,icon:"lock",onClick:function(){return a("change_password")}})})}),(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Unlink"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:1===e.status?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Online"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Offline"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",onClick:function(){return a("unlink",{addr:e.addr})}})})]},e.addr)}))]})]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.filtered_users;return(0,o.createComponentVNode)(2,i.Section,{title:"User Filtering",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Add User",icon:"user-plus",onClick:function(){return a("add_filter")}}),children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"90%"},children:"User"}),(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Remove",icon:"user-times",onClick:function(){return a("remove_filter",{user:e})}})})]},e)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsRelay=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsRelay=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.linked,p=d.active,m=d.network_id;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Relay Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"power-off",onClick:function(){return s("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){return s("network_id")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Link Status",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Linked"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Unlinked"})})]})}),1===u?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.linked_core_id,s=c.linked_core_addr,d=c.hidden_link;return(0,o.createComponentVNode)(2,i.Section,{title:"Link Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core Address",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hidden Link",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"Yes":"No",icon:d?"eye-slash":"eye",selected:d,onClick:function(){return a("toggle_hidden_link")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unlink",children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return a("unlink")}})})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.cores;return(0,o.createComponentVNode)(2,i.Section,{title:"Detected Cores",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Link"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Link",icon:"link",onClick:function(){return a("link",{addr:e.addr})}})})]},e.addr)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Teleporter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(188);t.Teleporter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.targetsTeleport?s.targetsTeleport:{},u=s.calibrated,p=s.calibrating,m=s.powerstation,h=s.regime,f=s.teleporterhub,C=s.target,g=s.locked,N=s.accuracy;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(!m||!f)&&(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:[f,!m&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Powerstation not linked "}),m&&!f&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Teleporter hub not linked "})]}),m&&f&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Regime",children:[(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to another teleport hub. ",color:1===h?"good":null,onClick:function(){return l("setregime",{regime:1})},children:"Gate"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"One-way teleport. ",color:0===h?"good":null,onClick:function(){return l("setregime",{regime:0})},children:"Teleporter"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:2===h?"good":null,disabled:!g,onClick:function(){return l("setregime",{regime:2})},children:"GPS"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Teleport target",children:[0===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),1===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),2===h&&(0,o.createComponentVNode)(2,i.Box,{children:C})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Calibration",children:["None"!==C&&(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,c.GridColumn,{size:"2",children:p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"In Progress"})||(u||N>=3)&&(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Optimal"})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Sub-Optimal"})}),(0,o.createComponentVNode)(2,c.GridColumn,{size:"3",children:(0,o.createComponentVNode)(2,i.Box,{"class":"ml-1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!(!u&&!p),onClick:function(){return l("calibrate")}})})})]}),"None"===C&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(g&&m&&f&&2===h)&&(0,o.createComponentVNode)(2,i.Section,{title:"GPS",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-around",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return l("load")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return l("eject")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ThiefKit=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ThiefKit=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.uses,d=l.possible_uses,u=l.multi_uses,p=l.kits,m=l.choosen_kits;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041d\u0430\u0431\u043e\u0440 \u0413\u0438\u043b\u044c\u0434\u0438\u0438 \u0412\u043e\u0440\u043e\u0432:",children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:[(0,o.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044f \u043a\u043e\u0440\u043e\u0431\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0433\u0438\u043b\u044c\u0434\u0438\u0438 \u0432\u043e\u0440\u043e\u0432.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,"\u041d\u0430\u0431\u043e\u0440 \u0432\u043e\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043d\u0433\u0435\u0440\u0430. \u041d\u0435\u043b\u044c\u0437\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0442\u043e \u0432 \u043d\u0451\u043c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u0448\u044c \u0432\u043d\u0443\u0442\u0440\u044c.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"p",null,(0,o.createVNode)(1,"b",null,"\u041a\u0430\u043a\u043e\u0435 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442?:",16),2),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u0432:"),(0,o.createComponentVNode)(2,i.Box,{as:"span",color:s<=0?"good":s=d,onClick:function(){return c("randomKit")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c",disabled:e.was_taken||s>=d,onClick:function(){return c("takeKit",{item:e.type})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:!e.was_taken,onClick:function(){return c("undoKit",{item:e.type})}})]}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:e.desc})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b:",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:m&&m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",onClick:function(){return c("undoKit",{item:e.type})}}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:" "})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",color:sp}),children:(0,o.createComponentVNode)(2,l.Box,{italic:!0,children:(0,a.decodeHtmlEntities)(e.desc)})},(0,a.decodeHtmlEntities)(e.name))}))})]})]})},f=function(e,t){var n=(0,c.useBackend)(t),s=(n.act,n.data.exploitable),u=(0,c.useLocalState)(t,"selectedRecord",s[0]),p=u[0],m=u[1],h=(0,c.useLocalState)(t,"searchText",""),f=h[0],C=h[1],g=function(e,t){void 0===t&&(t="");var n=(0,a.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)}(s,f);return(0,o.createComponentVNode)(2,l.Section,{title:"Exploitable Records",children:(0,o.createComponentVNode)(2,l.Flex,{children:[(0,o.createComponentVNode)(2,d.FlexItem,{basis:20,children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(e,t){return C(t)}}),(0,o.createComponentVNode)(2,l.Tabs,{vertical:!0,children:g.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:e===p,onClick:function(){return m(e)},children:e.name},e)}))})]}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l.Section,{title:"Name: "+p.name,children:[(0,o.createComponentVNode)(2,l.Box,{children:["Age: ",p.age]}),(0,o.createComponentVNode)(2,l.Box,{children:["Fingerprint: ",p.fingerprint]}),(0,o.createComponentVNode)(2,l.Box,{children:["Rank: ",p.rank]}),(0,o.createComponentVNode)(2,l.Box,{children:["Sex: ",p.sex]}),(0,o.createComponentVNode)(2,l.Box,{children:["Species: ",p.species]})]})})]})})};(0,p.modalRegisterBodyOverride)("become_contractor",(function(e,t){var n,r,i,a=(0,c.useBackend)(t).data,d=(a.contractor||{}).time_left,u=!!(null==a||null==(n=a.contractor)?void 0:n.available),m=!!(null==a||null==(r=a.contractor)?void 0:r.affordable),h=!!(null==a||null==(i=a.contractor)?void 0:i.accepted);return(0,o.createComponentVNode)(2,l.Section,{level:"2",m:"-1rem",pb:"1rem",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Icon,{name:"suitcase"}),(0,o.createTextVNode)("\xa0 Contracting Opportunity")],4),children:[(0,o.createComponentVNode)(2,l.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,o.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,o.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer."]}),(0,o.createComponentVNode)(2,l.Button.Confirm,{disabled:!u||h,italic:!u,bold:u,icon:u&&!h&&"check",color:"good",content:h?"Accepted":u?["Accept Offer",(0,o.createComponentVNode)(2,s.Countdown,{timeLeft:d,format:function(e,t){return" ("+t+")"}},"countdown")]:m?"Offer expired":"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){return(0,p.modalAnswer)(t,e.id,1)}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.VampireSpecMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VampireSpecMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,u)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Hemomancer",children:[(0,o.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Vampiric claws",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood Barrier",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood tendrils",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Sanguine pool",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Predator senses",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood eruption",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"The blood bringers rite",16),(0,o.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Hemomancer",onClick:function(){return a("hemomancer")}})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Umbrae",children:[(0,o.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Cloak of darkness",16),(0,o.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow anchor",16),(0,o.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you are forced back to the anchor. It will not teleport you between Z levels.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow snare",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensares the victim. This trap is hard to see, but withers in the light.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dark passage",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Extinguish",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,o.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Eternal darkness",16),(0,o.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. It will also cause nearby creatures to freeze.")],4),(0,o.createVNode)(1,"p",null,"In addition, you also gain permament X-ray vision.",16),(0,o.createComponentVNode)(2,i.Button,{content:"Umbrae",onClick:function(){return a("umbrae")}})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Gargantua",children:[(0,o.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rejuvenate",16),(0,o.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell",16),(0,o.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Seismic stomp",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood rush",16),(0,o.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell II",16),(0,o.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Overwhelming force",16),(0,o.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you dont have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Demonic grasp",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Charge",16),(0,o.createTextVNode)(": You gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Gargantua",onClick:function(){return a("gargantua")}})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Dantalion",children:[(0,o.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Enthrall",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall cap",16),(0,o.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall commune",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Subspace swap",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Pacify",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Decoy",16),(0,o.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rally thralls",16),(0,o.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood bond",16),(0,o.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Mass Hysteria",16),(0,o.createTextVNode)(": Casts a powerful illusion that, blinds then make everyone nearby perceive others to looks like random animals.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Dantalion",onClick:function(){return a("dantalion")}})]})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Bestia",children:[(0,o.createVNode)(1,"h3",null,"Focuses on transformations and trophies harvesting.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Check Trophies",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to check current trophies amount and all the passive effects they provide.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect",16),(0,o.createTextVNode)(": Unlocked at 150 blood, main source of gaining power, besides blood, allows you to harvest human organs, as a trophies, to passively increase your might.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect Cap",16),(0,o.createTextVNode)(": You can only harvest one organ trophie at a time. This can be increased at 600 blood and at full power to a max of 3 trophies per victim.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Infected Trophy",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to stun enemies from the safe distance and infect them with the deadly Grave Fever.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Lunge",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to rapidly close distance to a victim or escape a dangerous situation.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Mark the Prey",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to mark a victim which drastically reduces their movement speed and forces them to take spontaneous actions.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Metamorphosis - Bats",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to shapeshift into the deadly and vicious space bats swarm.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Anabiosis",16),(0,o.createTextVNode)(": Unlocked at 600 blood, ancient technique which allows you to cure almost any wounds while sleeping in a coffin.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Summon Bats",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to call extraplanar space bats to aid you in combat.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Metamorphosis - Hound",16),(0,o.createTextVNode)(": Allows you to shapeshift into the ultimate form of bluespace entity which took over your soul.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Bestia",onClick:function(){return a("bestia")}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VampireTrophiesStatus=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e){return(Math.round(10*e)/10).toFixed(1)};t.VampireTrophiesStatus=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,N)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.hearts,l=a.lungs,s=a.livers,d=a.kidneys,u=a.eyes,p=a.ears,m=a.trophies_max_gen,h=a.trophies_max_crit,f=a.icon_hearts,C=a.icon_lungs,g=a.icon_livers,N=a.icon_kidneys,b=a.icon_eyes,V=a.icon_ears;return(0,o.createComponentVNode)(2,i.Section,{title:"Trophies",color:"red",textAlign:"center",verticalAlign:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",width:"16.6%",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"data:image/jpeg;base64,"+f,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,textColor:cp;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:l.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Box,{color:(s<=0?"bad":s<=l.max_amount/2&&"average")||"good",children:[s," in stock"]})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,disabled:N,icon:g,content:C,textAlign:"left",onClick:function(){return a("vend",{inum:l.inum})}})})]})};t.Vending=function(e,t){var n,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.user,p=d.guestNotice,m=d.userMoney,h=d.chargesMoney,f=d.product_records,C=void 0===f?[]:f,g=d.coin_records,N=void 0===g?[]:g,b=d.hidden_records,V=void 0===b?[]:b,v=d.stock,x=(d.vend_ready,d.coin_name),y=d.inserted_item_name,k=d.panel_open,w=d.speaker,_=d.imagelist;return n=[].concat(C,N),d.extended_inventory&&(n=[].concat(n,V)),n=n.filter((function(e){return!!e})),(0,o.createComponentVNode)(2,a.Window,{title:"Vending Machine",resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,i.Section,{title:"User",children:u&&(0,o.createComponentVNode)(2,i.Box,{children:["Welcome, ",(0,o.createVNode)(1,"b",null,u.name,0),","," ",(0,o.createVNode)(1,"b",null,u.job||"Unemployed",0),"!",(0,o.createVNode)(1,"br"),"Your balance is ",(0,o.createVNode)(1,"b",null,[m,(0,o.createTextVNode)(" credits")],0),"."]})||(0,o.createComponentVNode)(2,i.Box,{color:"light-grey",children:p})}),!!x&&(0,o.createComponentVNode)(2,i.Section,{title:"Coin",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){return s("remove_coin",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:x})}),!!y&&(0,o.createComponentVNode)(2,i.Section,{title:"Item",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){return s("eject_item",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:y})}),!!k&&(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:(0,o.createComponentVNode)(2,i.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){return s("toggle_voice",{})}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Products",children:(0,o.createComponentVNode)(2,i.Table,{children:n.map((function(e){return(0,o.createComponentVNode)(2,c,{product:e,productStock:v[e.name],productImage:_[e.path]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VolumeMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VolumeMixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.channels;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",overflow:"auto",children:l.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.25rem",color:"label",mt:t>0&&"0.5rem",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:0})}})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",mx:"1rem",children:(0,o.createComponentVNode)(2,i.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:e.volume,onChange:function(t,n){return c("volume",{channel:e.num,volume:n})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:100})}})})})]})})],4,e.num)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VotePanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VotePanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.remaining,d=l.question,u=l.choices,p=l.user_vote,m=l.counts,h=l.show_counts,f=l.show_cancel;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:d,children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,children:["Time remaining: ",Math.round(s/10),"s"]}),u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e+(h?" ("+(m[e]||0)+")":""),onClick:function(){return c("vote",{target:e})},selected:e===p})},e)})),!!f&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Cancel",onClick:function(){return c("cancel")}})},"Cancel")]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Wires=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.wires||[],d=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return c("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Pulse",onClick:function(){return c("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return c("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!d.length&&(0,o.createComponentVNode)(2,i.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Workshop=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(102),l=n(3);var s=function(e,t,n){return null===e.requirements||!(e.requirements.brass>t)&&!(e.requirements.power>n)};t.Workshop=function(e,t){var n=(0,i.useBackend)(t),r=n.act,s=n.data,p=s.brass_amount,m=s.power_amount,h=s.building,f=s.buildStart,C=s.buildEnd,g=s.worldTime,N=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),b=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");return(0,o.createComponentVNode)(2,l.Window,{theme:"clockwork",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brass",children:[N,(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return r("dispense")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:b})]})})]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar.Countdown,{start:f,current:g,end:C,bold:!0,children:["Building ",h,"\xa0(",(0,o.createComponentVNode)(2,c.Countdown,{current:g,timeLeft:C-g,format:function(e,t){return t.substr(3)}}),")"]})})]})})};var d=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),l=(c[0],c[1],(0,i.useLocalState)(t,"descending",!1)),s=l[0],d=l[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"arrow-down":"arrow-up",height:"19px",tooltip:s?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return d(!s)}})})]})})},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.items,d=(0,i.useLocalState)(t,"search",""),u=d[0],m=(d[1],(0,i.useLocalState)(t,"sort","Alphabetical")),h=(m[0],m[1],(0,i.useLocalState)(t,"descending",!1)),f=h[0],C=(h[1],(0,r.createSearch)(u,(function(e){return e[0]}))),g=!1,N=Object.entries(l).map((function(e,t){var n=Object.entries(e[1]).filter(C).map((function(e){return e[1].affordable=s(e[1],c.brass_amount,c.power_amount),e[1]}));if(0!==n.length)return f&&(n=n.reverse()),g=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:g?N:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,d=e.title,u=e.items,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:d},p,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hammer",disabled:!s(e,l.brass_amount,l.power_amount),onClick:function(){return c("make",{cat:d,name:e.name})},children:(0,r.toTitleCase)((0,r.toTitleCase)(e.name))}),(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,r.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,a.Box,{children:"No resources required."})}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}}]); \ No newline at end of file +!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=200)}([function(e,t,n){"use strict";t.__esModule=!0;var o=n(415);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(t[e]=o[e])}))},function(e,t,n){"use strict";t.__esModule=!0,t.useSharedState=t.deleteLocalState=t.useLocalState=t.useBackend=t.backendReducer=t.backendDeleteSharedState=t.backendSetSharedState=t.backendUpdate=void 0;var o=n(23),r=n(49);t.backendUpdate=function(e){return{type:"backend/update",payload:e}};var i=function(e,t){return{type:"backend/setSharedState",payload:{key:e,nextState:t}}};t.backendSetSharedState=i;var a=function(e){return{type:"backend/deleteSharedState",payload:e}};t.backendDeleteSharedState=a;t.backendReducer=function(e,t){var n=t.type,o=t.payload;if("backend/update"===n){var i=Object.assign({},e.config,{},o.config),a=Object.assign({},e.data,{},o.static_data,{},o.data),c=Object.assign({},e.shared);if(o.shared)for(var l=0,s=Object.keys(o.shared);l1?n-1:0),r=1;r0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(6),r=n(108),i=n(19),a=n(69),c=n(112),l=n(152),s=r("wks"),d=o.Symbol,u=l?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(c&&i(d,e)?s[e]=d[e]:s[e]=u("Symbol."+e)),s[e]}},function(e,t,n){"use strict";var o=n(9),r=n(146),i=n(10),a=n(36),c=Object.defineProperty;t.f=o?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return c(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";t.__esModule=!0,t.rad2deg=t.keyOfMatchingRange=t.inRange=t.toFixed=t.round=t.scale=t.clamp01=t.clamp=void 0;t.clamp=function(e,t,n){return en?n:e};t.clamp01=function(e){return e<0?0:e>1?1:e};t.scale=function(e,t,n){return(e-t)/(n-t)};t.round=function(e,t){return!e||isNaN(e)?e:(t|=0,i=(e*=n=Math.pow(10,t))>0|-(e<0),r=Math.abs(e%1)>=.4999999999854481,o=Math.floor(e),r&&(e=o+(i>0)),(r?e:Math.round(e))/n);var n,o,r,i};t.toFixed=function(e,t){return void 0===t&&(t=0),Number(e).toFixed(Math.max(t,0))};var o=function(e,t){return t&&e>=t[0]&&e<=t[1]};t.inRange=o;t.keyOfMatchingRange=function(e,t){for(var n=0,r=Object.keys(t);n0&&(t.style=l),t};t.computeBoxProps=C;var g=function(e){var t=e.textColor||e.color,n=e.backgroundColor;return(0,o.classes)([s(t)&&"color-"+t,s(n)&&"color-bg-"+n])};t.computeBoxClassName=g;var N=function(e){var t=e.as,n=void 0===t?"div":t,o=e.className,a=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["as","className","children"]);if("function"==typeof a)return a(C(e));var l="string"==typeof o?o+" "+g(c):g(c),s=C(c);return(0,r.createVNode)(i.VNodeFlags.HtmlElement,n,l,a,i.ChildFlags.UnknownChildren,s)};t.Box=N,N.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";function o(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n",apos:"'"};return e.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},function(e,t,n){"use strict";var o=n(81),r=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===i.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";var o=n(55),r=n(68),i=n(16),a=n(12),c=n(74),l=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,d=4==e,u=6==e,p=5==e||u;return function(m,h,f,C){for(var g,N,b=i(m),V=r(b),v=o(h,f,3),x=a(V.length),y=0,k=C||c,w=t?k(m,x):n?k(m,0):undefined;x>y;y++)if((p||y in V)&&(N=v(g=V[y],y,b),e))if(t)w[y]=N;else if(N)switch(e){case 3:return!0;case 5:return g;case 6:return y;case 2:l.call(w,g)}else if(d)return!1;return u?-1:s||d?d:w}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){"use strict";var o=n(9),r=n(83),i=n(53),a=n(28),c=n(36),l=n(19),s=n(146),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(n){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function o(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}t.__esModule=!0,t.winset=t.winget=t.runCommand=t.callByondAsync=t.callByond=t.IS_IE8=void 0; +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var r=window.Byond,i=function(){var e=navigator.userAgent.match(/Trident\/(\d+).+?;/i);if(!e)return null;var t=e[1];return t?parseInt(t,10):null}(),a=null!==i&&i<=6;t.IS_IE8=a;var c=function(e,t){void 0===t&&(t={}),r.call(e,t)};t.callByond=c;var l=function(e,t){void 0===t&&(t={}),window.__callbacks__=window.__callbacks__||[];var n=window.__callbacks__.length,o=new Promise((function(e){window.__callbacks__.push(e)}));return r.call(e,Object.assign({},t,{callback:"__callbacks__["+n+"]"})),o};t.callByondAsync=l;t.runCommand=function(e){return c("winset",{command:e})};var s=function(){var e,t=(e=regeneratorRuntime.mark((function n(e,t){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l("winget",{id:e,property:t});case 2:return o=n.sent,n.abrupt("return",o[t]);case 4:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,l,"next",e)}function l(e){o(a,r,i,c,l,"throw",e)}c(undefined)}))});return function(e,n){return t.apply(this,arguments)}}();t.winget=s;t.winset=function(e,t,n){var o;return c("winset",((o={})[e+"."+t]=n,o))}},function(e,t,n){"use strict";t.__esModule=!0,t.zipWith=t.zip=t.uniqBy=t.reduce=t.sortBy=t.map=t.filter=t.toKeyedArray=t.toArray=void 0;t.toArray=function(e){if(Array.isArray(e))return e;if("object"==typeof e){var t=Object.prototype.hasOwnProperty,n=[];for(var o in e)t.call(e,o)&&n.push(e[o]);return n}return[]};t.toKeyedArray=function(e,t){return void 0===t&&(t="key"),o((function(e,n){var o;return Object.assign(((o={})[t]=n,o),e)}))(e)};t.filter=function(e){return function(t){if(null===t&&t===undefined)return t;if(Array.isArray(t)){for(var n=[],o=0;oc)return 1}return 0};t.sortBy=function(){for(var e=arguments.length,t=new Array(e),n=0;n"+a+""}},function(e,t,n){"use strict";var o=n(5);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(53);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:o)(e)}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var o,r,i,a=n(148),c=n(6),l=n(8),s=n(32),d=n(19),u=n(84),p=n(70),m=c.WeakMap;if(a){var h=new m,f=h.get,C=h.has,g=h.set;o=function(e,t){return g.call(h,e,t),t},r=function(e){return f.call(h,e)||{}},i=function(e){return C.call(h,e)}}else{var N=u("state");p[N]=!0,o=function(e,t){return s(e,N,t),t},r=function(e){return d(e,N)?e[N]:{}},i=function(e){return d(e,N)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var o=n(19),r=n(16),i=n(84),a=n(119),c=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),o(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){"use strict";var o=n(150),r=n(6),i=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var o=n(5);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(9),a=n(132),c=n(11),l=n(89),s=n(61),d=n(53),u=n(32),p=n(12),m=n(164),h=n(179),f=n(36),C=n(19),g=n(86),N=n(8),b=n(45),V=n(57),v=n(54).f,x=n(180),y=n(21).forEach,k=n(60),w=n(14),_=n(22),B=n(37),S=n(91),L=B.get,A=B.set,E=w.f,I=_.f,D=Math.round,T=r.RangeError,F=l.ArrayBuffer,M=l.DataView,P=c.NATIVE_ARRAY_BUFFER_VIEWS,O=c.TYPED_ARRAY_TAG,R=c.TypedArray,j=c.TypedArrayPrototype,U=c.aTypedArrayConstructor,z=c.isTypedArray,W=function(e,t){for(var n=0,o=t.length,r=new(U(e))(o);o>n;)r[n]=t[n++];return r},H=function(e,t){E(e,t,{get:function(){return L(this)[t]}})},K=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},G=function(e,t){return Y(e,t=f(t,!0))?d(2,e[t]):I(e,t)},q=function(e,t,n){return!(Y(e,t=f(t,!0))&&N(n)&&C(n,"value"))||C(n,"get")||C(n,"set")||n.configurable||C(n,"writable")&&!n.writable||C(n,"enumerable")&&!n.enumerable?E(e,t,n):(e[t]=n.value,e)};i?(P||(_.f=G,w.f=q,H(j,"buffer"),H(j,"byteOffset"),H(j,"byteLength"),H(j,"length")),o({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:G,defineProperty:q}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",l="get"+e,d="set"+e,f=r[c],C=f,g=C&&C.prototype,w={},_=function(e,t){E(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[l](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var r=L(e);n&&(o=(o=D(o))<0?0:o>255?255:255&o),r.view[d](t*i+r.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};P?a&&(C=t((function(e,t,n,o){return s(e,C,c),S(N(t)?K(t)?o!==undefined?new f(t,h(n,i),o):n!==undefined?new f(t,h(n,i)):new f(t):z(t)?W(C,t):x.call(C,t):new f(m(t)),e,C)})),V&&V(C,R),y(v(f),(function(e){e in C||u(C,e,f[e])})),C.prototype=g):(C=t((function(e,t,n,o){s(e,C,c);var r,a,l,d=0,u=0;if(N(t)){if(!K(t))return z(t)?W(C,t):x.call(C,t);r=t,u=h(n,i);var f=t.byteLength;if(o===undefined){if(f%i)throw T("Wrong length");if((a=f-u)<0)throw T("Wrong length")}else if((a=p(o)*i)+u>f)throw T("Wrong length");l=a/i}else l=m(t),r=new F(a=l*i);for(A(e,{buffer:r,byteOffset:u,byteLength:a,length:l,view:new M(r)});d1?r-1:0),a=1;a1?o-1:0),i=1;i"+e+"<\/script>"},h=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;h=o?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):((t=s("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=r(e),n=new p,p.prototype=null,n[u]=e):n=h(),t===undefined?n:i(n,t)}},function(e,t,n){"use strict";var o=n(14).f,r=n(19),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var o=n(13),r=n(45),i=n(14),a=o("unscopables"),c=Array.prototype;c[a]==undefined&&i.f(c,a,{configurable:!0,value:r(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var o=n(10),r=n(34),i=n(13)("species");e.exports=function(e,t){var n,a=o(e).constructor;return a===undefined||(n=o(a)[i])==undefined?t:r(n)}},function(e,t,n){"use strict";t.__esModule=!0,t.timeAgo=t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.COLORS={department:{command:"#526aff",procedure:"#e3027a",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Soviet",freq:1217,color:"#f7941d"},{name:"SyndTaipan",freq:1227,color:"#ffec8b"},{name:"Spider Clan",freq:1265,color:"#3cfd1e"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"Alpha wave",freq:1522,color:"#88910f"},{name:"Beta wave",freq:1532,color:"#1d83f7"},{name:"Gamma wave",freq:1542,color:"#d46549"}];var o=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"}];t.getGasLabel=function(e,t){var n=String(e).toLowerCase(),r=o.find((function(e){return e.id===n||e.name.toLowerCase()===n}));return r&&r.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),n=o.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return n&&n.color};t.timeAgo=function(e,t){if(e>t)return"in the future";var n=(t/=10)-(e/=10);if(n>3600){var o=Math.round(n/3600);return o+" hour"+(1===o?"":"s")+" ago"}if(n>60){var r=Math.round(n/60);return r+" minute"+(1===r?"":"s")+" ago"}var i=Math.round(n);return i+" second"+(1===i?"":"s")+" ago"}},function(e,t,n){"use strict";t.__esModule=!0,t.FlexItem=t.computeFlexItemProps=t.Flex=t.computeFlexProps=void 0;var o=n(0),r=n(7),i=n(23),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var l=function(e){var t=e.className,n=e.direction,o=e.wrap,a=e.align,l=e.alignContent,s=e.justify,d=e.inline,u=e.spacing,p=void 0===u?0:u,m=e.spacingPrecise,h=void 0===m?0:m,f=c(e,["className","direction","wrap","align","alignContent","justify","inline","spacing","spacingPrecise"]);return Object.assign({className:(0,r.classes)(["Flex",i.IS_IE8&&("column"===n?"Flex--ie8--column":"Flex--ie8"),d&&"Flex--inline",p>0&&"Flex--spacing--"+p,h>0&&"Flex--spacingPrecise--"+h,t]),style:Object.assign({},f.style,{"flex-direction":n,"flex-wrap":o,"align-items":a,"align-content":l,"justify-content":s})},f)};t.computeFlexProps=l;var s=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},l(e))))};t.Flex=s,s.defaultHooks=r.pureComponentHooks;var d=function(e){var t=e.className,n=e.grow,o=e.order,l=e.shrink,s=e.basis,d=void 0===s?e.width:s,u=e.align,p=c(e,["className","grow","order","shrink","basis","align"]);return Object.assign({className:(0,r.classes)(["Flex__item",i.IS_IE8&&"Flex__item--ie8",t]),style:Object.assign({},p.style,{"flex-grow":n,"flex-shrink":l,"flex-basis":(0,a.unit)(d),order:o,"align-self":u})},p)};t.computeFlexItemProps=d;var u=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},d(e))))};t.FlexItem=u,u.defaultHooks=r.pureComponentHooks,s.Item=u},function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalClose=t.modalAnswer=t.modalRegisterBodyOverride=t.modalOpen=void 0;var o=n(0),r=n(1),i=n(2),a={};t.modalOpen=function(e,t,n){var o=(0,r.useBackend)(e),i=o.act,a=o.data,c=Object.assign(a.modal?a.modal.args:{},n||{});i("modal_open",{id:t,arguments:JSON.stringify(c)})};t.modalRegisterBodyOverride=function(e,t){a[e]=t};var c=function(e,t,n,o){var i=(0,r.useBackend)(e),a=i.act,c=i.data;if(c.modal){var l=Object.assign(c.modal.args||{},o||{});a("modal_answer",{id:t,answer:n,arguments:JSON.stringify(l)})}};t.modalAnswer=c;var l=function(e,t){(0,(0,r.useBackend)(e).act)("modal_close",{id:t})};t.modalClose=l;t.ComplexModal=function(e,t){var n=(0,r.useBackend)(t).data;if(n.modal){var s,d,u=n.modal,p=u.id,m=u.text,h=u.type,f=(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),C="auto";if(a[p])d=a[p](n.modal,t);else if("input"===h){var g=n.modal.value;s=function(e){return c(t,p,g)},d=(0,o.createComponentVNode)(2,i.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e,t){g=t}}),f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return c(t,p,g)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}else if("choice"===h){var N="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;d=(0,o.createComponentVNode)(2,i.Dropdown,{options:N,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return c(t,p,e)}}),C="initial"}else"bento"===h?d=(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:r+1===parseInt(n.modal.value,10),onClick:function(){return c(t,p,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===h&&(f=(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return c(t,p,0)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return c(t,p,1)}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,i.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:s,mx:"auto",overflowY:C,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline",children:m}),d,f]})}}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=t.RndRoute=t.RndNavButton=t.RndNavbar=t.MainMenu=t.LatheSearch=t.LatheMenu=t.LatheMaterialStorage=t.LatheMaterials=t.LatheMainMenu=t.LatheChemicalStorage=t.LatheCategory=t.DeconstructionMenu=t.DataDiskMenu=t.CurrentLevels=void 0;var o=n(618);t.CurrentLevels=o.CurrentLevels;var r=n(619);t.DataDiskMenu=r.DataDiskMenu;var i=n(620);t.DeconstructionMenu=i.DeconstructionMenu;var a=n(621);t.LatheCategory=a.LatheCategory;var c=n(622);t.LatheChemicalStorage=c.LatheChemicalStorage;var l=n(623);t.LatheMainMenu=l.LatheMainMenu;var s=n(624);t.LatheMaterials=s.LatheMaterials;var d=n(625);t.LatheMaterialStorage=d.LatheMaterialStorage;var u=n(626);t.LatheMenu=u.LatheMenu;var p=n(627);t.LatheSearch=p.LatheSearch;var m=n(628);t.MainMenu=m.MainMenu;var h=n(629);t.RndNavbar=h.RndNavbar;var f=n(630);t.RndNavButton=f.RndNavButton;var C=n(199);t.RndRoute=C.RndRoute;var g=n(631);t.SettingsMenu=g.SettingsMenu},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(151),r=n(110).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(34);e.exports=function(e,t,n){if(o(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var o=n(36),r=n(14),i=n(53);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var o=n(10),r=n(162);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():undefined)},function(e,t,n){"use strict";var o=n(70),r=n(8),i=n(19),a=n(14).f,c=n(69),l=n(78),s=c("meta"),d=0,u=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++d,weakData:{}}})},m=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!u(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!u(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return l&&m.REQUIRED&&u(e)&&!i(e,s)&&p(e),e}};o[s]=!0},function(e,t,n){"use strict";var o=n(35);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(39),r=n(14),i=n(13),a=n(9),c=i("species");e.exports=function(e){var t=o(e),n=r.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var o=n(25),r="["+n(93)+"]",i=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),c=function(e){return function(t){var n=String(o(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";t.__esModule=!0,t.logger=t.createLogger=void 0;n(182);var o=n(23),r=0,i=1,a=2,c=3,l=4,s=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i=a){var c=[t].concat(r).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;(0,o.callByond)("",{src:window.__ref__,action:"tgui:log",log:c})}},d=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),o=0;o=0||(r[n]=e[n]);return r}(e,["className","label","labelColor","color","textAlign","verticalAlign","buttons","content","children","noColon"]),g=f?"":":";return(0,o.createVNode)(1,"tr",(0,r.classes)(["LabeledList__row",t]),[(0,o.createComponentVNode)(2,i.Box,{as:"td",color:c,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__label"]),children:n?n+g:null}),(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"td",color:l,textAlign:s,verticalAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?undefined:2},C,{children:[p,m]}))),u&&(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};t.LabeledListItem=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.size?(0,i.unit)(Math.max(0,e.size-1)):0;return(0,o.createVNode)(1,"tr","LabeledList__row",(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};t.LabeledListDivider=s,s.defaultHooks=r.pureComponentHooks,c.Item=l,c.Divider=s},function(e,t,n){"use strict";function o(e){return null==e}e.exports.isNothing=o,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:o(e)?[]:[e]},e.exports.repeat=function(e,t){var n,o="";for(n=0;nd;)if((c=l[d++])!=c)return!0}else for(;s>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var o=n(5),r=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=l&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var o=n(151),r=n(110);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(8),r=n(59),i=n(13)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var o=n(5),r=n(13),i=n(113),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var o=n(26);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var o=n(10),r=n(115),i=n(12),a=n(55),c=n(116),l=n(159),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,d,u){var p,m,h,f,C,g,N,b=a(t,n,d?2:1);if(u)p=e;else{if("function"!=typeof(m=c(e)))throw TypeError("Target is not iterable");if(r(m)){for(h=0,f=i(e.length);f>h;h++)if((C=d?b(o(N=e[h])[0],N[1]):b(e[h]))&&C instanceof s)return C;return new s(!1)}p=m.call(e)}for(g=p.next;!(N=g.call(p)).done;)if("object"==typeof(C=l(p,b,N.value,d))&&C&&C instanceof s)return C;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var c=function(e){var t=e.className,n=e.collapsing,c=e.children,l=a(e,["className","collapsing","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"table",(0,r.classes)(["Table",n&&"Table--collapsing",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Table=c,c.defaultHooks=r.pureComponentHooks;var l=function(e){var t=e.className,n=e.header,c=a(e,["className","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"tr",(0,r.classes)(["Table__row",n&&"Table__row--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(c))))};t.TableRow=l,l.defaultHooks=r.pureComponentHooks;var s=function(e){var t=e.className,n=e.collapsing,c=e.header,l=a(e,["className","collapsing","header"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"td",(0,r.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(l))))};t.TableCell=s,s.defaultHooks=r.pureComponentHooks,c.Row=l,c.Cell=s},function(e,t,n){"use strict";function o(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=o},function(e,t,n){"use strict";var o=n(66);e.exports=new o({include:[n(193)],implicit:[n(505),n(506)],explicit:[n(507),n(512),n(513),n(514)]})},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){"use strict";var o=n(108),r=n(69),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){"use strict";var o=n(39);e.exports=o("navigator","userAgent")||""},function(e,t,n){"use strict";var o=n(117),r=n(35),i=n(13)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var o=n(13)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},"return":function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},function(e,t,n){"use strict";var o=n(34),r=n(16),i=n(68),a=n(12),c=function(e){return function(t,n,c,l){o(n);var s=r(t),d=i(s),u=a(s.length),p=e?u-1:0,m=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=m;break}if(p+=m,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=m)p in d&&(l=n(l,d[p],p,s));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var o=n(6),r=n(9),i=n(120),a=n(32),c=n(77),l=n(5),s=n(61),d=n(33),u=n(12),p=n(164),m=n(247),h=n(38),f=n(57),C=n(54).f,g=n(14).f,N=n(114),b=n(46),V=n(37),v=V.get,x=V.set,y=o.ArrayBuffer,k=y,w=o.DataView,_=w&&w.prototype,B=Object.prototype,S=o.RangeError,L=m.pack,A=m.unpack,E=function(e){return[255&e]},I=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},T=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return L(e,23,4)},M=function(e){return L(e,52,8)},P=function(e,t){g(e.prototype,t,{get:function(){return v(this)[t]}})},O=function(e,t,n,o){var r=p(n),i=v(e);if(r+t>i.byteLength)throw S("Wrong index");var a=v(i.buffer).bytes,c=r+i.byteOffset,l=a.slice(c,c+t);return o?l:l.reverse()},R=function(e,t,n,o,r,i){var a=p(n),c=v(e);if(a+t>c.byteLength)throw S("Wrong index");for(var l=v(c.buffer).bytes,s=a+c.byteOffset,d=o(+r),u=0;uW;)(j=z[W++])in k||a(k,j,y[j]);U.constructor=k}f&&h(_)!==B&&f(_,B);var H=new w(new k(2)),K=_.setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||c(_,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){s(this,k,"ArrayBuffer");var t=p(e);x(this,{bytes:N.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},w=function(e,t,n){s(this,w,"DataView"),s(e,k,"DataView");var o=v(e).byteLength,i=d(t);if(i<0||i>o)throw S("Wrong offset");if(i+(n=n===undefined?o-i:u(n))>o)throw S("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:i}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},r&&(P(k,"byteLength"),P(w,"buffer"),P(w,"byteLength"),P(w,"byteOffset")),c(w.prototype,{getInt8:function(e){return O(this,1,e)[0]<<24>>24},getUint8:function(e){return O(this,1,e)[0]},getInt16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=O(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return T(O(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return A(O(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return A(O(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){R(this,1,e,E,t)},setUint8:function(e,t){R(this,1,e,E,t)},setInt16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){R(this,2,e,I,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){R(this,4,e,D,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){R(this,4,e,F,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){R(this,8,e,M,t,arguments.length>2?arguments[2]:undefined)}});b(k,"ArrayBuffer"),b(w,"DataView"),e.exports={ArrayBuffer:k,DataView:w}},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(72),a=n(26),c=n(58),l=n(79),s=n(61),d=n(8),u=n(5),p=n(87),m=n(46),h=n(91);e.exports=function(e,t,n){var f=-1!==e.indexOf("Map"),C=-1!==e.indexOf("Weak"),g=f?"set":"add",N=r[e],b=N&&N.prototype,V=N,v={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return C&&!d(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(C&&!d(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof N||!(C||b.forEach&&!u((function(){(new N).entries().next()})))))V=n.getConstructor(t,e,f,g),c.REQUIRED=!0;else if(i(e,!0)){var y=new V,k=y[g](C?{}:-0,1)!=y,w=u((function(){y.has(1)})),_=p((function(e){new N(e)})),B=!C&&u((function(){for(var e=new N,t=5;t--;)e[g](t,t);return!e.has(-0)}));_||((V=t((function(t,n){s(t,V,e);var o=h(new N,t,V);return n!=undefined&&l(n,o[g],o,f),o}))).prototype=b,b.constructor=V),(w||B)&&(x("delete"),x("has"),f&&x("get")),(B||k)&&x(g),C&&b.clear&&delete b.clear}return v[e]=V,o({global:!0,forced:V!=N},v),m(V,e),C||n.setStrong(V,e,f),V}},function(e,t,n){"use strict";var o=n(8),r=n(57);e.exports=function(e,t,n){var i,a;return r&&"function"==typeof(i=t.constructor)&&i!==n&&o(a=i.prototype)&&a!==n.prototype&&r(e,a),e}},function(e,t,n){"use strict";var o=Math.expm1,r=Math.exp;e.exports=!o||o(10)>22025.465794806718||o(10)<22025.465794806718||-2e-17!=o(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:o},function(e,t,n){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var o=n(40),r=n(6),i=n(5);e.exports=o||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}))},function(e,t,n){"use strict";var o=n(10);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o,r,i=n(95),a=n(126),c=RegExp.prototype.exec,l=String.prototype.replace,s=c,d=(o=/a/,r=/b*/g,c.call(o,"a"),c.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=/()??/.exec("")[1]!==undefined;(d||p||u)&&(s=function(e){var t,n,o,r,a=this,s=u&&a.sticky,m=i.call(a),h=a.source,f=0,C=e;return s&&(-1===(m=m.replace("y","")).indexOf("g")&&(m+="g"),C=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",C=" "+C,f++),n=new RegExp("^(?:"+h+")",m)),p&&(n=new RegExp("^"+h+"$(?!\\s)",m)),d&&(t=a.lastIndex),o=c.call(s?n:a,C),s?o?(o.input=o.input.slice(f),o[0]=o[0].slice(f),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:d&&o&&(a.lastIndex=a.global?o.index+o[0].length:t),p&&o&&o.length>1&&l.call(o[0],n,(function(){for(r=1;r")})),d="$0"==="a".replace(/./,"$0"),u=i("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),m=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,u){var h=i(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),C=f&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!C||"replace"===e&&(!s||!d||p)||"split"===e&&!m){var g=/./[h],N=n(h,""[e],(function(e,t,n,o,r){return t.exec===a?f&&!r?{done:!0,value:g.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=N[0],V=N[1];o(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return V.call(e,this,t)}:function(e){return V.call(e,this)})}u&&c(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var o=n(35),r=n(96);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.AccessList=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);function c(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt?2+3*s-c:0;return((0,o.toFixed)(p,m)+" "+u+n).trim()}; +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */t.formatSiUnit=a;t.formatPower=function(e,t){return void 0===t&&(t=0),a(e,t,"W")};t.formatMoney=function(e,t){if(void 0===t&&(t=0),!Number.isFinite(e))return e;var n=(0,o.round)(e,t);t>0&&(n=(0,o.toFixed)(e,t));var r=(n=String(n)).length,i=n.indexOf(".");-1===i&&(i=r);for(var a="",c=0;c0&&c=0||(r[n]=e[n]);return r}(e,["format"]),i=new Date(this.state.value).toISOString().slice(11,19);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({as:"span"},n,{children:t?t(this.state.value,i):i})))},i}(o.Component);t.Countdown=i,i.defaultProps={rate:1e3}},function(e,t,n){"use strict";t.__esModule=!0,t.SimpleRecords=void 0;var o=n(0),r=n(1),i=n(18),a=n(43),c=n(24),l=n(2);t.SimpleRecords=function(e,t){var n=e.data.records;return(0,o.createComponentVNode)(2,l.Box,{children:n?(0,o.createComponentVNode)(2,d,{data:e.data,recordType:e.recordType}):(0,o.createComponentVNode)(2,s,{data:e.data})})};var s=function(e,t){var n=(0,r.useBackend)(t).act,s=e.data.recordsList,d=(0,r.useLocalState)(t,"searchText",""),u=d[0],p=d[1],m=function(e,t){void 0===t&&(t="");var n=(0,i.createSearch)(t,(function(e){return e.Name}));return(0,a.flow)([(0,c.filter)((function(e){return null==e?void 0:e.Name})),t&&(0,c.filter)(n),(0,c.sortBy)((function(e){return e.Name}))])(s)}(0,u);return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(e,t){return p(t)}}),m.map((function(e){return(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{content:e.Name,icon:"user",onClick:function(){return n("Records",{target:e.uid})}})},e)}))]})},d=function(e,t){var n,i=(0,r.useBackend)(t).act,a=e.data.records,c=a.general,s=a.medical,d=a.security;switch(e.recordType){case"MED":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Medical Data",children:s?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":n=(0,o.createComponentVNode)(2,l.Section,{level:2,title:"Security Data",children:d?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Criminal Status",children:d.criminal}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Minor Crimes",children:d.mi_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.mi_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Major Crimes",children:d.ma_crim}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Details",children:d.ma_crim_d}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Important Notes",children:d.notes})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"Security record lost!"})})}return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Button,{content:"Back",icon:"arrow-left",onClick:function(){return i("Back")}}),(0,o.createComponentVNode)(2,l.Section,{level:2,title:"General Data",children:c?(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Name",children:c.name}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Sex",children:c.sex}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Species",children:c.species}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Age",children:c.age}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Rank",children:c.rank}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Fingerprint",children:c.fingerprint}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Physical Status",children:c.p_stat}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Mental Status",children:c.m_stat})]}):(0,o.createComponentVNode)(2,l.Box,{color:"red",bold:!0,children:"General record lost!"})}),n]})}},function(e,t,n){"use strict";var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(r){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,n){"use strict";var o=n(6),r=n(8),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){"use strict";var o=n(6),r=n(32);e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},function(e,t,n){"use strict";var o=n(147),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var o=n(40),r=n(147);(e.exports=function(e,t){return r[e]||(r[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var o=n(39),r=n(54),i=n(111),a=n(10);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var o=n(5);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var o,r,i=n(6),a=n(85),c=i.process,l=c&&c.versions,s=l&&l.v8;s?r=(o=s.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,c=r(a>1?arguments[1]:undefined,n),l=a>2?arguments[2]:undefined,s=l===undefined?n:r(l,n);s>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var o=n(13),r=n(76),i=o("iterator"),a=Array.prototype;e.exports=function(e){return e!==undefined&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var o=n(86),r=n(76),i=n(13)("iterator");e.exports=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){"use strict";var o={};o[n(13)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t,n){"use strict";var o=n(4),r=n(232),i=n(38),a=n(57),c=n(46),l=n(32),s=n(26),d=n(13),u=n(40),p=n(76),m=n(161),h=m.IteratorPrototype,f=m.BUGGY_SAFARI_ITERATORS,C=d("iterator"),g=function(){return this};e.exports=function(e,t,n,d,m,N,b){r(n,t,d);var V,v,x,y=function(e){if(e===m&&S)return S;if(!f&&e in _)return _[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",w=!1,_=e.prototype,B=_[C]||_["@@iterator"]||m&&_[m],S=!f&&B||y(m),L="Array"==t&&_.entries||B;if(L&&(V=i(L.call(new e)),h!==Object.prototype&&V.next&&(u||i(V)===h||(a?a(V,h):"function"!=typeof V[C]&&l(V,C,g)),c(V,k,!0,!0),u&&(p[k]=g))),"values"==m&&B&&"values"!==B.name&&(w=!0,S=function(){return B.call(this)}),u&&!b||_[C]===S||l(_,C,S),p[t]=S,m)if(v={values:y("values"),keys:N?S:y("keys"),entries:y("entries")},b)for(x in v)(f||w||!(x in _))&&s(_,x,v[x]);else o({target:t,proto:!0,forced:f||w},v);return v}},function(e,t,n){"use strict";var o=n(5);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var o=n(12),r=n(122),i=n(25),a=Math.ceil,c=function(e){return function(t,n,c){var l,s,d=String(i(t)),u=d.length,p=c===undefined?" ":String(c),m=o(n);return m<=u||""==p?d:(l=m-u,(s=r.call(p,a(l/p.length))).length>l&&(s=s.slice(0,l)),e?d+s:s+d)}};e.exports={start:c(!1),end:c(!0)}},function(e,t,n){"use strict";var o=n(33),r=n(25);e.exports="".repeat||function(e){var t=String(r(this)),n="",i=o(e);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var o,r,i,a=n(6),c=n(5),l=n(35),s=n(55),d=n(154),u=n(105),p=n(173),m=a.location,h=a.setImmediate,f=a.clearImmediate,C=a.process,g=a.MessageChannel,N=a.Dispatch,b=0,V={},v=function(e){if(V.hasOwnProperty(e)){var t=V[e];delete V[e],t()}},x=function(e){return function(){v(e)}},y=function(e){v(e.data)},k=function(e){a.postMessage(e+"",m.protocol+"//"+m.host)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return V[++b]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},o(b),b},f=function(e){delete V[e]},"process"==l(C)?o=function(e){C.nextTick(x(e))}:N&&N.now?o=function(e){N.now(x(e))}:g&&!p?(i=(r=new g).port2,r.port1.onmessage=y,o=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(k)||"file:"===m.protocol?o="onreadystatechange"in u("script")?function(e){d.appendChild(u("script")).onreadystatechange=function(){d.removeChild(this),v(e)}}:function(e){setTimeout(x(e),0)}:(o=k,a.addEventListener("message",y,!1))),e.exports={set:h,clear:f}},function(e,t,n){"use strict";var o=n(8),r=n(35),i=n(13)("match");e.exports=function(e){var t;return o(e)&&((t=e[i])!==undefined?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";var o=n(5);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var o=n(33),r=n(25),i=function(e){return function(t,n){var i,a,c=String(r(t)),l=o(n),s=c.length;return l<0||l>=s?e?"":undefined:(i=c.charCodeAt(l))<55296||i>56319||l+1===s||(a=c.charCodeAt(l+1))<56320||a>57343?e?c.charAt(l):i:e?c.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";var o=n(125);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var o=n(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){"use strict";var o=n(127).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){"use strict";var o=n(5),r=n(93);e.exports=function(e){return o((function(){return!!r[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||r[e].name!==e}))}},function(e,t,n){"use strict";var o=n(6),r=n(5),i=n(87),a=n(11).NATIVE_ARRAY_BUFFER_VIEWS,c=o.ArrayBuffer,l=o.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new c(2),1,undefined).length}))},function(e,t,n){"use strict";t.__esModule=!0,t.hotKeyReducer=t.hotKeyMiddleware=t.releaseHeldKeys=t.KEY_MINUS=t.KEY_EQUAL=t.KEY_Z=t.KEY_Y=t.KEY_X=t.KEY_W=t.KEY_V=t.KEY_U=t.KEY_T=t.KEY_S=t.KEY_R=t.KEY_Q=t.KEY_P=t.KEY_O=t.KEY_N=t.KEY_M=t.KEY_L=t.KEY_K=t.KEY_J=t.KEY_I=t.KEY_H=t.KEY_G=t.KEY_F=t.KEY_E=t.KEY_D=t.KEY_C=t.KEY_B=t.KEY_A=t.KEY_9=t.KEY_8=t.KEY_7=t.KEY_6=t.KEY_5=t.KEY_4=t.KEY_3=t.KEY_2=t.KEY_1=t.KEY_0=t.KEY_SPACE=t.KEY_ESCAPE=t.KEY_ALT=t.KEY_CTRL=t.KEY_SHIFT=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=void 0;var o=n(23),r=(0,n(63).createLogger)("hotkeys");t.KEY_BACKSPACE=8;t.KEY_TAB=9;t.KEY_ENTER=13;t.KEY_SHIFT=16;t.KEY_CTRL=17;t.KEY_ALT=18;t.KEY_ESCAPE=27;t.KEY_SPACE=32;t.KEY_0=48;t.KEY_1=49;t.KEY_2=50;t.KEY_3=51;t.KEY_4=52;t.KEY_5=53;t.KEY_6=54;t.KEY_7=55;t.KEY_8=56;t.KEY_9=57;t.KEY_A=65;t.KEY_B=66;t.KEY_C=67;t.KEY_D=68;t.KEY_E=69;t.KEY_F=70;t.KEY_G=71;t.KEY_H=72;t.KEY_I=73;t.KEY_J=74;t.KEY_K=75;t.KEY_L=76;t.KEY_M=77;t.KEY_N=78;t.KEY_O=79;t.KEY_P=80;t.KEY_Q=81;t.KEY_R=82;t.KEY_S=83;t.KEY_T=84;t.KEY_U=85;t.KEY_V=86;t.KEY_W=87;t.KEY_X=88;t.KEY_Y=89;t.KEY_Z=90;t.KEY_EQUAL=187;t.KEY_MINUS=189;var i=[17,18,16],a=[27,13,32,9,17,16,18],c={},l=function(e,t,n,o){var r="";return e&&(r+="Ctrl+"),t&&(r+="Alt+"),n&&(r+="Shift+"),r+=o>=48&&o<=90?String.fromCharCode(o):"["+o+"]"},s=function(e){var t=window.event?e.which:e.keyCode,n=e.ctrlKey,o=e.altKey,r=e.shiftKey;return{keyCode:t,ctrlKey:n,altKey:o,shiftKey:r,hasModifierKeys:n||o||r,keyString:l(n,o,r,t)}},d=function(e,t){if(!e.defaultPrevented){var n=e.target&&e.target.localName;if("input"!==n&&"textarea"!==n){var i=s(e),l=i.keyCode,d=i.ctrlKey,u=i.shiftKey,p=function(e){var t={16:"Shift",17:"Ctrl",18:"Alt",33:"Northeast",34:"Southeast",35:"Southwest",36:"Northwest",37:"West",38:"North",39:"East",40:"South",45:"Insert",46:"Delete"};return t[e]?t[e]:e>=48&&e<=57||e>=65&&e<=90?String.fromCharCode(e):e>=96&&e<=105?"Numpad"+(e-96):e>=112&&e<=123?"F"+(e-111):188===e?",":189===e?"-":190===e?".":void 0}(l);if(!a.includes(l)){if("keyup"===t&&c[l])return r.debug("passthrough",t,i),(0,o.callByond)("",{__keyup:p});if(!d&&!u)return"keydown"!==t||c[l]?void 0:(r.debug("passthrough",t,i),(0,o.callByond)("",{__keydown:p}))}}}},u=function(){for(var e=0,t=Object.keys(c);e=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var h=(0,l.createLogger)("Button"),f=function(e){var t=e.className,n=e.fluid,l=e.icon,p=e.color,f=e.disabled,C=e.selected,g=e.tooltip,N=e.tooltipPosition,b=e.ellipsis,V=e.content,v=e.iconRotation,x=e.iconColor,y=e.iconSpin,k=e.iconRight,w=e.children,_=e.onclick,B=e.onClick,S=m(e,["className","fluid","icon","color","disabled","selected","tooltip","tooltipPosition","ellipsis","content","iconRotation","iconColor","iconSpin","iconRight","children","onclick","onClick"]),L=!(!V&&!w);return _&&h.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid",f&&"Button--disabled",C&&"Button--selected",L&&"Button--hasContent",b&&"Button--ellipsis",k&&"Button--iconRight",p&&"string"==typeof p?"Button--color--"+p:"Button--color--default",t]),tabIndex:!f&&"0",unselectable:i.IS_IE8,onclick:function(e){(0,c.refocusLayout)(),!f&&B&&B(e)},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;return t===a.KEY_SPACE||t===a.KEY_ENTER?(e.preventDefault(),void(!f&&B&&B(e))):t===a.KEY_ESCAPE?(e.preventDefault(),void(0,c.refocusLayout)()):void 0}},S,{children:[l&&!k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),V,w,l&&k&&(0,o.createComponentVNode)(2,d.Icon,{name:l,color:x,rotation:v,spin:y}),g&&(0,o.createComponentVNode)(2,u.Tooltip,{content:g,position:N})]})))};t.Button=f,f.defaultHooks=r.pureComponentHooks;var C=function(e){var t=e.checked,n=m(e,["checked"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=C,f.Checkbox=C;var g=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}p(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,r=void 0===n?"Confirm?":n,i=t.confirmColor,a=void 0===i?"bad":i,c=t.confirmIcon,l=t.icon,s=t.color,d=t.content,u=t.onClick,p=m(t,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?r:d,icon:this.state.clickedOnce?c:l,color:this.state.clickedOnce?a:s,onClick:function(){return e.state.clickedOnce?u():e.setClickedOnce(!0)}},p)))},t}(o.Component);t.ButtonConfirm=g,f.Confirm=g;var N=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={inInput:!1},t}p(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,i=t.content,c=t.icon,l=t.iconRotation,p=t.iconSpin,h=t.tooltip,f=t.tooltipPosition,C=t.color,g=void 0===C?"default":C,N=(t.placeholder,t.maxLength,m(t,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Box,Object.assign({className:(0,r.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},N,{onClick:function(){return e.setInInput(!0)},children:[c&&(0,o.createComponentVNode)(2,d.Icon,{name:c,rotation:l,spin:p}),(0,o.createVNode)(1,"div",null,i,0),(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===a.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===a.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef),h&&(0,o.createComponentVNode)(2,u.Tooltip,{content:h,position:f})]})))},t}(o.Component);t.ButtonInput=N,f.Input=N},function(e,t,n){"use strict";t.__esModule=!0,t.Icon=void 0;var o=n(0),r=n(7),i=n(17); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var a=/-o$/,c=function(e){var t=e.name,n=e.size,c=e.spin,l=e.className,s=e.style,d=void 0===s?{}:s,u=e.rotation,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["name","size","spin","className","style","rotation"]);n&&(d["font-size"]=100*n+"%"),"number"==typeof u&&(d.transform="rotate("+u+"deg)");var m=a.test(t),h=t.replace(a,"");return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({as:"i",className:(0,r.classes)([l,m?"far":"fas","fa-"+h,c&&"fa-spin"]),style:d},p)))};t.Icon=c,c.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(136),l=n(17); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var s=function(e){var t,n;function s(t){var n;n=e.call(this,t)||this;var i=t.value;return n.inputRef=(0,o.createRef)(),n.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,c=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),l=n.origin-e.screenY;if(t.dragging){var s=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+l*a/c,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+s,o,i),n.origin=e.screenY}else Math.abs(l)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.prototype.render=function(){var e=this,t=this.state,n=t.dragging,s=t.editing,d=t.value,u=t.suppressingFlicker,p=this.props,m=p.className,h=p.fluid,f=p.animated,C=p.value,g=p.unit,N=p.minValue,b=p.maxValue,V=p.height,v=p.width,x=p.lineHeight,y=p.fontSize,k=p.format,w=p.onChange,_=p.onDrag,B=C;(n||u)&&(B=d);var S=function(e){return(0,o.createVNode)(1,"div","NumberInput__content",e+(g?" "+g:""),0,{unselectable:a.IS_IE8})},L=f&&!n&&!u&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B,format:k,children:S})||S(k?k(B):B);return(0,o.createComponentVNode)(2,l.Box,{className:(0,i.classes)(["NumberInput",h&&"NumberInput--fluid",m]),minWidth:v,minHeight:V,lineHeight:x,fontSize:y,onMouseDown:this.handleDragStart,children:[(0,o.createVNode)(1,"div","NumberInput__barContainer",(0,o.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,r.clamp)((B-N)/(b-N)*100,0,100)+"%"}}),2),L,(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?undefined:"none",height:V,"line-height":x,"font-size":y},onBlur:function(t){if(s){var n=(0,r.clamp)(t.target.value,N,b);e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),_&&_(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,N,b);return e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),void(_&&_(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},s}(o.Component);t.NumberInput=s,s.defaultHooks=i.pureComponentHooks,s.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var o=n(0),r=n(1),i=n(2);t.LoginInfo=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState;if(c)return(0,o.createComponentVNode)(2,i.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"Logout",color:"good",float:"right",onClick:function(){return a("login_logout")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:!l.id,content:"Eject ID",color:"good",float:"right",onClick:function(){return a("login_eject")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var o=n(0),r=n(1),i=n(2);t.LoginScreen=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.loginState,s=c.isAI,d=c.isRobot,u=c.isAdmin;return(0,o.createComponentVNode)(2,i.Section,{title:"Welcome",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){return a("login_insert")}})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){return a("login_login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return a("login_login",{login_type:2})}}),!!d&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return a("login_login",{login_type:3})}}),!!u&&(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){return a("login_login",{login_type:4})}})]})})})}},function(e,t,n){"use strict";var o=n(66);e.exports=new o({explicit:[n(498),n(499),n(500)]})},function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var o=n(0),r=n(2),i=n(522),a=function(e){var t=e.beakerLoaded,n=e.beakerContents,i=void 0===n?[]:n,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!t&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===i.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),i.map((function(e,t){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:[(0,o.createComponentVNode)(2,r.Box,{color:"label",display:"inline",verticalAlign:"middle",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Box,{float:"right",display:"inline",children:a(e,t)}),(0,o.createComponentVNode)(2,r.Box,{clear:"both"})]},e.name);var n}))]})};t.BeakerContents=a,a.propTypes={beakerLoaded:i.bool,beakerContents:i.array,buttons:i.arrayOf(i.element)}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewManifest=void 0;var o=n(0),r=n(1),i=n(2),a=n(18),c=n(49).COLORS.department,l=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel"],s=function(e){return-1!==l.indexOf(e)||"Quartermaster"===e},d=function(e){return e.length>0&&(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"50%",children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"35%",children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"15%",children:"Active"})]}),e.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{color:(t=e.rank,-1!==l.indexOf(t)?"green":"Quartermaster"===t?"yellow":"orange"),bold:s(e.rank),children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,a.decodeHtmlEntities)(e.rank)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.active})]},e.name+e.rank);var t}))]})};t.CrewManifest=function(e,t){var n;(0,r.useBackend)(t).act;e.data?n=e.data:n=(0,r.useBackend)(t).data;var a=n.manifest,l=a.heads,s=a.pro,u=a.sec,p=a.eng,m=a.med,h=a.sci,f=a.ser,C=a.sup,g=a.misc;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.command,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:d(l)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.procedure,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:d(s)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.security,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:d(u)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.engineering,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:d(p)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.medical,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:d(m)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.science,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:d(h)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.service,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:d(f)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{backgroundColor:c.supply,m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:d(C)}),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:d(g)})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var o=n(0),r=n(1),i=n(2);t.TemporaryNotice=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.temp;if(l){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})))}}},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(105);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var o=n(6),r=n(106),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},function(e,t,n){"use strict";var o=n(6),r=n(107),i=o.WeakMap;e.exports="function"==typeof i&&/native code/.test(r(i))},function(e,t,n){"use strict";var o=n(19),r=n(109),i=n(22),a=n(14);e.exports=function(e,t){for(var n=r(t),c=a.f,l=i.f,s=0;sl;)o(c,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){"use strict";var o=n(112);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(10),a=n(73);e.exports=o?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),c=o.length,l=0;c>l;)r.f(e,n=o[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(39);e.exports=o("document","documentElement")},function(e,t,n){"use strict";var o=n(28),r=n(54).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(t){return a.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(13);t.f=o},function(e,t,n){"use strict";var o=n(16),r=n(44),i=n(12),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=o(this),c=i(n.length),l=r(e,c),s=r(t,c),d=arguments.length>2?arguments[2]:undefined,u=a((d===undefined?c:r(d,c))-s,c-l),p=1;for(s0;)s in n?n[l]=n[s]:delete n[l],l+=p,s+=p;return n}},function(e,t,n){"use strict";var o=n(59),r=n(12),i=n(55);e.exports=function a(e,t,n,c,l,s,d,u){for(var p,m=l,h=0,f=!!d&&i(d,u,3);h0&&o(p))m=a(e,t,p,r(p.length),m,s-1)-1;else{if(m>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[m]=p}m++}h++}return m}},function(e,t,n){"use strict";var o=n(10);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&o(i.call(e)),a}}},function(e,t,n){"use strict";var o=n(28),r=n(47),i=n(76),a=n(37),c=n(118),l=a.set,s=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var o,r,i,a=n(38),c=n(32),l=n(19),s=n(13),d=n(40),u=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=a(a(i)))!==Object.prototype&&(o=r):p=!0),o==undefined&&(o={}),d||l(o,u)||c(o,u,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var o=n(28),r=n(33),i=n(12),a=n(41),c=n(27),l=Math.min,s=[].lastIndexOf,d=!!s&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0}),m=d||!u||!p;e.exports=m?function(e){if(d)return s.apply(this,arguments)||0;var t=o(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:s},function(e,t,n){"use strict";var o=n(33),r=n(12);e.exports=function(e){if(e===undefined)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var o=n(34),r=n(8),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var o=[],r=0;r1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(d.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return C(this,0===e?0:e,t)}}:{add:function(e){return C(this,e=0===e?0:e,e)}}),u&&o(d.prototype,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var o=t+" Iterator",r=f(t),i=f(o);s(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var o=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:o(1+e)}},function(e,t,n){"use strict";var o=n(8),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseInt,c=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=r(String(e));return a(n,t>>>0||(c.test(n)?16:10))}:a},function(e,t,n){"use strict";var o=n(9),r=n(73),i=n(28),a=n(83).f,c=function(e){return function(t){for(var n,c=i(t),l=r(c),s=l.length,d=0,u=[];s>d;)n=l[d++],o&&!a.call(c,n)||u.push(e?[n,c[n]]:c[n]);return u}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(6);e.exports=o.Promise},function(e,t,n){"use strict";var o=n(85);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(e,t,n){"use strict";var o,r,i,a,c,l,s,d,u=n(6),p=n(22).f,m=n(35),h=n(124).set,f=n(173),C=u.MutationObserver||u.WebKitMutationObserver,g=u.process,N=u.Promise,b="process"==m(g),V=p(u,"queueMicrotask"),v=V&&V.value;v||(o=function(){var e,t;for(b&&(e=g.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():i=undefined,n}}i=undefined,e&&e.enter()},b?a=function(){g.nextTick(o)}:C&&!f?(c=!0,l=document.createTextNode(""),new C(o).observe(l,{characterData:!0}),a=function(){l.data=c=!c}):N&&N.resolve?(s=N.resolve(undefined),d=s.then,a=function(){d.call(s,o)}):a=function(){h.call(u,o)}),e.exports=v||function(e){var t={fn:e,next:undefined};i&&(i.next=t),r||(r=t,a()),i=t}},function(e,t,n){"use strict";var o=n(10),r=n(8),i=n(176);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(34),r=function(e){var t,n;this.promise=new e((function(e,o){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";var o=n(4),r=n(96);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var o=n(85);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o)},function(e,t,n){"use strict";var o=n(376);e.exports=function(e,t){var n=o(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var o=n(16),r=n(12),i=n(116),a=n(115),c=n(55),l=n(11).aTypedArrayConstructor;e.exports=function(e){var t,n,s,d,u,p,m=o(e),h=arguments.length,f=h>1?arguments[1]:undefined,C=f!==undefined,g=i(m);if(g!=undefined&&!a(g))for(p=(u=g.call(m)).next,m=[];!(d=p.call(u)).done;)m.push(d.value);for(C&&h>2&&(f=c(f,arguments[2],2)),n=r(m.length),s=new(l(this))(n),t=0;n>t;t++)s[t]=C?f(m[t],t):m[t];return s}},function(e,t,n){"use strict";var o=n(77),r=n(58).getWeakData,i=n(10),a=n(8),c=n(61),l=n(79),s=n(21),d=n(19),u=n(37),p=u.set,m=u.getterFor,h=s.find,f=s.findIndex,C=0,g=function(e){return e.frozen||(e.frozen=new N)},N=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};N.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=f(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var u=e((function(e,o){c(e,u,t),p(e,{type:t,id:C++,frozen:undefined}),o!=undefined&&l(o,e[s],e,n)})),h=m(t),f=function(e,t,n){var o=h(e),a=r(i(t),!0);return!0===a?g(o).set(t,n):a[o.id]=n,e};return o(u.prototype,{"delete":function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t)["delete"](e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=r(e);return!0===n?g(t).has(e):n&&d(n,t.id)}}),o(u.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=r(e);return!0===n?g(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return f(this,e,t)}}:{add:function(e){return f(this,e,!0)}}),u}}},function(e,t,n){"use strict";t.__esModule=!0,t.setupHotReloading=t.sendLogEntry=void 0;t.sendLogEntry=function(e,t){};t.setupHotReloading=function(){0}},function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=void 0;var o=n(418),r=n(23);function i(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var a,c,l,s,d,u=(0,n(63).createLogger)("drag"),p=!1,m=!1,h=[0,0],f=function(e){return(0,r.winget)(e,"pos").then((function(e){return[e.x,e.y]}))},C=function(e,t){return(0,r.winset)(e,"pos",t[0]+","+t[1])},g=function(){var e,t=(e=regeneratorRuntime.mark((function n(e){var t,o,r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u.log("setting up"),a=e.config.window,n.next=4,f(a);case 4:t=n.sent,h=[t[0]-window.screenLeft,t[1]-window.screenTop],o=N(t),r=o[0],i=o[1],r&&C(a,i),u.debug("current state",{ref:a,screenOffset:h});case 9:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){i(a,o,r,c,l,"next",e)}function l(e){i(a,o,r,c,l,"throw",e)}c(undefined)}))});return function(e){return t.apply(this,arguments)}}();t.setupDrag=g;var N=function(e){var t=e[0],n=e[1],o=!1;return t<0?(t=0,o=!0):t+window.innerWidth>window.screen.availWidth&&(t=window.screen.availWidth-window.innerWidth,o=!0),n<0?(n=0,o=!0):n+window.innerHeight>window.screen.availHeight&&(n=window.screen.availHeight-window.innerHeight,o=!0),[o,[t,n]]};t.dragStartHandler=function(e){u.log("drag start"),p=!0,c=[window.screenLeft-e.screenX,window.screenTop-e.screenY],document.addEventListener("mousemove",V),document.addEventListener("mouseup",b),V(e)};var b=function y(e){u.log("drag end"),V(e),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",y),p=!1},V=function(e){p&&(e.preventDefault(),C(a,(0,o.vecAdd)([e.screenX,e.screenY],h,c)))};t.resizeStartHandler=function(e,t){return function(n){l=[e,t],u.log("resize start",l),m=!0,c=[window.screenLeft-n.screenX,window.screenTop-n.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",x),document.addEventListener("mouseup",v),x(n)}};var v=function k(e){u.log("resize end",d),x(e),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",k),m=!1},x=function(e){m&&(e.preventDefault(),(d=(0,o.vecAdd)(s,(0,o.vecMultiply)(l,(0,o.vecAdd)([e.screenX,e.screenY],(0,o.vecInverse)([window.screenLeft,window.screenTop]),c,[1,1]))))[0]=Math.max(d[0],250),d[1]=Math.max(d[1],120),function(e,t){(0,r.winset)(e,"size",t[0]+","+t[1])}(a,d))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var o=n(0),r=n(7);t.Tooltip=function(e){var t=e.content,n=e.title,i=e.position,a=void 0===i?"bottom":i,c="string"==typeof t&&t.length>35,l=!(0,r.isFalsy)(n)?n+"\n \n"+t:t;return(0,o.createVNode)(1,"div",(0,r.classes)(["Tooltip",c&&"Tooltip--long",a&&"Tooltip--"+a]),null,1,{"data-tooltip":l})}},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=t.getBoundingBox=void 0;var o=n(0),r=n(7),i=n(443),a=n(23),c=n(63),l=n(17);function s(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var d=(0,c.createLogger)("ByondUi"),u=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */(e,["className","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Dimmer"].concat(t))},a,{children:(0,o.createVNode)(1,"div","Dimmer__inner",n,0)})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var o=n(0),r=n(7);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,o.createVNode)(1,"div",(0,r.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(0),r=n(80),i=n(7);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var c=function(e){var t=e.children,n=a(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=i.pureComponentHooks;var l=function(e){var t=e.size,n=void 0===t?1:t,i=e.style,c=a(e,["size","style"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},i)},c)))};t.GridColumn=l,c.defaultHooks=i.pureComponentHooks,c.Column=l},function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var o=n(0),r=n(15),i=n(7),a=n(136); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var c=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},l=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).inputRef=(0,o.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,o=t.value,r=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:c(e,r),value:o,internalValue:o}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,i=n.props.onDrag;o&&i&&i(e,r)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,i=t.maxValue,a=t.step,l=t.stepPixelSize,s=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),d=c(e,s)-n.origin;if(t.dragging){var u=Number.isFinite(o)?o%a:0;n.internalValue=(0,r.clamp)(n.internalValue+d*a/l,o-a,i+a),n.value=(0,r.clamp)(n.internalValue-n.internalValue%a+u,o,i),n.origin=c(e,s)}else Math.abs(d)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,i=n.state,a=i.dragging,c=i.value,l=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),o&&o(e,c),r&&r(e,c);else if(n.inputRef){var s=n.inputRef.current;s.value=l;try{s.focus(),s.select()}catch(d){}}},n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=this.state,n=t.dragging,i=t.editing,c=t.value,l=t.suppressingFlicker,s=this.props,d=s.animated,u=s.value,p=s.unit,m=s.minValue,h=s.maxValue,f=s.format,C=s.onChange,g=s.onDrag,N=s.children,b=s.height,V=s.lineHeight,v=s.fontSize,x=u;(n||l)&&(x=c);var y=function(e){return e+(p?" "+p:"")},k=d&&!n&&!l&&(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:x,format:f,children:y})||y(f?f(x):x),w=(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?undefined:"none",height:b,"line-height":V,"font-size":v},onBlur:function(t){if(i){var n=(0,r.clamp)(t.target.value,m,h);e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),g&&g(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(t.target.value,m,h);return e.setState({editing:!1,value:n}),e.suppressFlicker(),C&&C(t,n),void(g&&g(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return N({dragging:n,editing:i,value:u,displayValue:x,displayElement:k,inputElement:w,handleDragStart:this.handleDragStart})},i}(o.Component);t.DraggableControl=l,l.defaultHooks=i.pureComponentHooks,l.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Slider=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.fillValue,v=e.color,x=e.ranges,y=void 0===x?{}:x,k=e.children,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),_=k!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=V!==undefined&&null!==V,h=((0,r.scale)(n,u,d),(0,r.scale)(null!=V?V:a,u,d)),f=(0,r.scale)(a,u,d),C=v||(0,r.keyOfMatchingRange)(null!=V?V:n,y)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Slider","ProgressBar","ProgressBar--color--"+C,b,(0,c.computeBoxClassName)(w)]),[(0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar__fill",m&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(h)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(h,f))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(f)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",_?k:l,0),s],0,Object.assign({},(0,c.computeBoxProps)(w),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(23),l=n(2),s=n(49),d=n(183),u=n(133),p=n(63),m=n(135); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var h=(0,p.createLogger)("Window"),f=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var p=l.prototype;return p.componentDidMount=function(){(0,m.refocusLayout)()},p.render=function(){var e=this.props,t=e.resizable,n=e.theme,l=e.children,p=(0,a.useBackend)(this.context),f=p.config,C=p.debugLayout,N=f.observer?f.statusa?"average":t>c?"bad":"good"),children:[e.val,e.units]},e.entry);var t,n,r,a,c}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MessengerList=t.ActiveConversation=t.pda_messenger=void 0;var o=n(0),r=n(24),i=n(1),a=n(2);t.pda_messenger=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data);return r.active_convo?(0,o.createComponentVNode)(2,c,{data:r}):(0,o.createComponentVNode)(2,l,{data:r})};var c=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.convo_name,s=c.convo_job,d=c.messages,u=c.active_convo,p=(0,i.useLocalState)(t,"clipboardMode",!1),m=p[0],h=p[1],f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{height:"97%",overflowY:"auto",children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{textAlign:e.sent?"right":"left",position:"relative",mb:1,children:[(0,o.createComponentVNode)(2,a.Icon,{fontSize:2.5,color:e.sent?"#3e6189":"#565656",position:"absolute",left:e.sent?null:"0px",right:e.sent?"0px":null,bottom:"-5px",style:{"z-index":"0",transform:e.sent?"scale(-1, 1)":null},name:"comment"}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,backgroundColor:e.sent?"#3e6189":"#565656",p:1,maxWidth:"100%",position:"relative",textAlign:"left",style:{"z-index":"1","border-radius":"5px","word-break":"normal","word-wrap":"break-word"},children:e.message})]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]});return m&&(f=(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"arrow-left",onClick:function(){return n("Back")}}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Conversation with "+l+" ("+s+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:m,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-left",onClick:function(){return h(!m)}}),height:"415px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,a.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,r.filter)((function(e){return e.target===u}))(d).map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{color:e.sent?"#2185d0":"#aaaaaa",style:{"word-break":"normal"},children:[e.sent?"You:":"Them:"," ",e.message]},t)}))}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"comment",onClick:function(){return n("Message",{target:u})},content:"Reply"})})]})]})),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),f]})};t.ActiveConversation=c;var l=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=r.convopdas,l=r.pdas,d=r.charges,u=r.silent,p=r.toff,m=(0,i.useLocalState)(t,"searchTerm",""),h=m[0],f=m[1];return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,a.Button,{selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return n("Toggle Ringer")},children:["Ringer: ",u?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return n("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"bell",onClick:function(){return n("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[!!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})}),!c.length&&!l.length&&(0,o.createComponentVNode)(2,a.Box,{children:"No current conversations"})||(0,o.createComponentVNode)(2,a.Box,{children:["Search: ",(0,o.createComponentVNode)(2,a.Input,{value:h,onInput:function(e,t){f(t)}}),(0,o.createComponentVNode)(2,s,{title:"Current Conversations",data:r,pdas:c,msgAct:"Select Conversation",searchTerm:h}),(0,o.createComponentVNode)(2,s,{title:"Other PDAs",pdas:l,msgAct:"Message",data:r,searchTerm:h})]})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Messenger Offline."})]})};t.MessengerList=l;var s=function(e,t){var n=(0,i.useBackend)(t).act,r=e.data,c=e.pdas,l=e.title,s=e.msgAct,d=e.searchTerm,u=r.charges,p=r.plugins;return c&&c.length?(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:c.filter((function(e){return e.Name.toLowerCase().includes(d.toLowerCase())})).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return n(s,{target:e.uid})}}),!!u&&p.map((function(t){return(0,o.createComponentVNode)(2,a.Button,{icon:t.icon,content:t.name,onClick:function(){return n("Messenger Plugin",{plugin:t.uid,target:e.uid})}},t.uid)}))]},e.uid)}))}):(0,o.createComponentVNode)(2,a.Section,{level:2,title:l,children:"No PDAs found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Signaler=void 0;var o=n(0),r=n(15),i=n(1),a=n(2);t.Signaler=function(e,t){var n=(0,i.useBackend)(t).act,c=e.data,l=c.code,s=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return n("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(e,t){return n("code",{code:t})}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return n("signal")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PowerMonitorMainContent=t.PowerMonitor=void 0;var o=n(0),r=n(24),i=n(43),a=n(15),c=n(7),l=n(18),s=n(1),d=n(2),u=n(3),p=6e5;t.PowerMonitor=function(e,t){return(0,o.createComponentVNode)(2,u.Window,{resizeable:!0,children:(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,m)})})};var m=function(e,t){var n=(0,s.useBackend)(t),r=(n.act,n.data),i=r.powermonitor,a=r.can_select_monitor;return(0,o.createComponentVNode)(2,d.Box,{m:0,children:[!i&&a&&(0,o.createComponentVNode)(2,h),i&&(0,o.createComponentVNode)(2,f)]})};t.PowerMonitorMainContent=m;var h=function(e,t){var n=(0,s.useBackend)(t),r=n.act,i=n.data.powermonitors;return i?(0,o.createComponentVNode)(2,d.Section,{title:"Select Power Monitor",children:Object.keys(i).sort((function(e,t){return i[e]50?"battery-half":"battery-quarter")||"C"===t&&"bolt"||"F"===t&&"battery-full"||"M"===t&&"slash",color:"N"===t&&(n>50?"yellow":"red")||"C"===t&&"yellow"||"F"===t&&"green"||"M"===t&&"orange"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(n)+"%"})],4)};C.defaultHooks=c.pureComponentHooks;var g=function(e){var t,n;switch(e.status){case"AOn":t=!0,n=!0;break;case"AOff":t=!0,n=!1;break;case"On":t=!1,n=!0;break;case"Off":t=!1,n=!1}var r=(n?"On":"Off")+" ["+(t?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:n?"good":"bad",content:t?undefined:"M",title:r})};g.defaultHooks=c.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.RndRoute=void 0;var o=n(1);t.RndRoute=function(e,t){var n=e.render,r=(0,o.useBackend)(t).data,i=r.menu,a=r.submenu,c=function(e,t){return null===e||e===undefined||("function"==typeof e?e(t):e===t)};return c(e.menu,i)&&c(e.submenu,a)?n():null}},function(e,t,n){e.exports=n(201)},function(e,t,n){"use strict";n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(227),n(229),n(230),n(231),n(160),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(248),n(249),n(250),n(251),n(252),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(286),n(287),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(177),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414);var o=n(0),r=n(416);n(417);n(182);var i=n(1),a=n(23),c=n(183),l=n(63);n(419),n(420),n(421),n(422),n(423);var s=n(424);n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438);var d,u=n(439),p=(Date.now(),(0,s.createStore)()),m=!0,h=function(){for(p.subscribe((function(){!function(){try{var e=p.getState();m&&(l.logger.log("initial render",e),(0,c.setupDrag)(e));var t=(0,n(134).getRoutedComponent)(e),r=(0,o.createComponentVNode)(2,s.StoreProvider,{store:p,children:(0,o.createComponentVNode)(2,t)});d||(d=document.getElementById("react-root")),(0,o.render)(r,d)}catch(i){throw l.logger.error("rendering error",i),i}m&&(m=!1)}()})),(0,u.captureExternalLinks)(),window.update=function(e){var t="string"==typeof e?function(e){var t=function(e,t){return"object"==typeof t&&null!==t&&t.__number__?parseFloat(t.__number__):t};a.IS_IE8&&(t=undefined);try{return JSON.parse(e,t)}catch(o){l.logger.log(o),l.logger.log("What we got:",e);var n=o&&o.message;throw new Error("JSON parsing error: "+n)}}(e):e;p.dispatch((0,i.backendUpdate)(t))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}(0,r.loadCSS)("font-awesome.css")}; +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h()},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(39),a=n(40),c=n(9),l=n(112),s=n(152),d=n(5),u=n(19),p=n(59),m=n(8),h=n(10),f=n(16),C=n(28),g=n(36),N=n(53),b=n(45),V=n(73),v=n(54),x=n(155),y=n(111),k=n(22),w=n(14),_=n(83),B=n(32),S=n(26),L=n(108),A=n(84),E=n(70),I=n(69),D=n(13),T=n(156),F=n(29),M=n(46),P=n(37),O=n(21).forEach,R=A("hidden"),j=D("toPrimitive"),U=P.set,z=P.getterFor("Symbol"),W=Object.prototype,H=r.Symbol,K=i("JSON","stringify"),Y=k.f,G=w.f,q=x.f,X=_.f,J=L("symbols"),$=L("op-symbols"),Z=L("string-to-symbol-registry"),Q=L("symbol-to-string-registry"),ee=L("wks"),te=r.QObject,ne=!te||!te.prototype||!te.prototype.findChild,oe=c&&d((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=Y(W,t);o&&delete W[t],G(e,t,n),o&&e!==W&&G(W,t,o)}:G,re=function(e,t){var n=J[e]=b(H.prototype);return U(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,n){e===W&&ae($,t,n),h(e);var o=g(t,!0);return h(n),u(J,o)?(n.enumerable?(u(e,R)&&e[R][o]&&(e[R][o]=!1),n=b(n,{enumerable:N(0,!1)})):(u(e,R)||G(e,R,N(1,{})),e[R][o]=!0),oe(e,o,n)):G(e,o,n)},ce=function(e,t){h(e);var n=C(t),o=V(n).concat(pe(n));return O(o,(function(t){c&&!se.call(n,t)||ae(e,t,n[t])})),e},le=function(e,t){return t===undefined?b(e):ce(b(e),t)},se=function(e){var t=g(e,!0),n=X.call(this,t);return!(this===W&&u(J,t)&&!u($,t))&&(!(n||!u(this,t)||!u(J,t)||u(this,R)&&this[R][t])||n)},de=function(e,t){var n=C(e),o=g(t,!0);if(n!==W||!u(J,o)||u($,o)){var r=Y(n,o);return!r||!u(J,o)||u(n,R)&&n[R][o]||(r.enumerable=!0),r}},ue=function(e){var t=q(C(e)),n=[];return O(t,(function(e){u(J,e)||u(E,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=q(t?$:C(e)),o=[];return O(n,(function(e){!u(J,e)||t&&!u(W,e)||o.push(J[e])})),o};(l||(S((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,t=I(e),n=function o(e){this===W&&o.call($,e),u(this,R)&&u(this[R],t)&&(this[R][t]=!1),oe(this,t,N(1,e))};return c&&ne&&oe(W,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return z(this).tag})),S(H,"withoutSetter",(function(e){return re(I(e),e)})),_.f=se,w.f=ae,k.f=de,v.f=x.f=ue,y.f=pe,T.f=function(e){return re(D(e),e)},c&&(G(H.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||S(W,"propertyIsEnumerable",se,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),O(V(ee),(function(e){F(e)})),o({target:"Symbol",stat:!0,forced:!l},{"for":function(e){var t=String(e);if(u(Z,t))return Z[t];var n=H(t);return Z[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(u(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!c},{create:le,defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:d((function(){y.f(1)}))},{getOwnPropertySymbols:function(e){return y.f(f(e))}}),K)&&o({target:"JSON",stat:!0,forced:!l||d((function(){var e=H();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var o,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(o=t,(m(t)||e!==undefined)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!ie(t))return t}),r[1]=t,K.apply(null,r)}});H.prototype[j]||B(H.prototype,j,H.prototype.valueOf),M(H,"Symbol"),E[R]=!0},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(6),a=n(19),c=n(8),l=n(14).f,s=n(149),d=i.Symbol;if(r&&"function"==typeof d&&(!("description"in d.prototype)||d().description!==undefined)){var u={},p=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof p?new d(e):e===undefined?d():d(e);return""===e&&(u[t]=!0),t};s(p,d);var m=p.prototype=d.prototype;m.constructor=p;var h=m.toString,f="Symbol(test)"==String(d("test")),C=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=h.call(e);if(a(u,e))return"";var n=f?t.slice(7,-1):t.replace(C,"$1");return""===n?undefined:n}}),o({global:!0,forced:!0},{Symbol:p})}},function(e,t,n){"use strict";n(29)("asyncIterator")},function(e,t,n){"use strict";n(29)("hasInstance")},function(e,t,n){"use strict";n(29)("isConcatSpreadable")},function(e,t,n){"use strict";n(29)("iterator")},function(e,t,n){"use strict";n(29)("match")},function(e,t,n){"use strict";n(29)("replace")},function(e,t,n){"use strict";n(29)("search")},function(e,t,n){"use strict";n(29)("species")},function(e,t,n){"use strict";n(29)("split")},function(e,t,n){"use strict";n(29)("toPrimitive")},function(e,t,n){"use strict";n(29)("toStringTag")},function(e,t,n){"use strict";n(29)("unscopables")},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(59),a=n(8),c=n(16),l=n(12),s=n(56),d=n(74),u=n(75),p=n(13),m=n(113),h=p("isConcatSpreadable"),f=m>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),C=u("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return t!==undefined?!!t:i(e)};o({target:"Array",proto:!0,forced:!f||!C},{concat:function(e){var t,n,o,r,i,a=c(this),u=d(a,0),p=0;for(t=-1,o=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(u,p++,i)}return u.length=p,u}})},function(e,t,n){"use strict";var o=n(4),r=n(157),i=n(47);o({target:"Array",proto:!0},{copyWithin:r}),i("copyWithin")},function(e,t,n){"use strict";var o=n(4),r=n(21).every,i=n(41),a=n(27),c=i("every"),l=a("every");o({target:"Array",proto:!0,forced:!c||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(114),i=n(47);o({target:"Array",proto:!0},{fill:r}),i("fill")},function(e,t,n){"use strict";var o=n(4),r=n(21).filter,i=n(75),a=n(27),c=i("filter"),l=a("filter");o({target:"Array",proto:!0,forced:!c||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(21).find,i=n(47),a=n(27),c=!0,l=a("find");"find"in[]&&Array(1).find((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,n){"use strict";var o=n(4),r=n(21).findIndex,i=n(47),a=n(27),c=!0,l=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),o({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(33),l=n(74);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),n=a(t.length),o=l(t,0);return o.length=r(o,t,t,n,0,e===undefined?1:c(e)),o}})},function(e,t,n){"use strict";var o=n(4),r=n(158),i=n(16),a=n(12),c=n(34),l=n(74);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),o=a(n.length);return c(e),(t=l(n,0)).length=r(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},function(e,t,n){"use strict";var o=n(4),r=n(226);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var o=n(21).forEach,r=n(41),i=n(27),a=r("forEach"),c=i("forEach");e.exports=a&&c?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,n){"use strict";var o=n(4),r=n(228);o({target:"Array",stat:!0,forced:!n(87)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){"use strict";var o=n(55),r=n(16),i=n(159),a=n(115),c=n(12),l=n(56),s=n(116);e.exports=function(e){var t,n,d,u,p,m,h=r(e),f="function"==typeof this?this:Array,C=arguments.length,g=C>1?arguments[1]:undefined,N=g!==undefined,b=s(h),V=0;if(N&&(g=o(g,C>2?arguments[2]:undefined,2)),b==undefined||f==Array&&a(b))for(n=new f(t=c(h.length));t>V;V++)m=N?g(h[V],V):h[V],l(n,V,m);else for(p=(u=b.call(h)).next,n=new f;!(d=p.call(u)).done;V++)m=N?i(u,g,[d.value,V],!0):d.value,l(n,V,m);return n.length=V,n}},function(e,t,n){"use strict";var o=n(4),r=n(71).includes,i=n(47);o({target:"Array",proto:!0,forced:!n(27)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),i("includes")},function(e,t,n){"use strict";var o=n(4),r=n(71).indexOf,i=n(41),a=n(27),c=[].indexOf,l=!!c&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),d=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:l||!s||!d},{indexOf:function(e){return l?c.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";n(4)({target:"Array",stat:!0},{isArray:n(59)})},function(e,t,n){"use strict";var o=n(161).IteratorPrototype,r=n(45),i=n(53),a=n(46),c=n(76),l=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),a(e,s,!1,!0),c[s]=l,e}},function(e,t,n){"use strict";var o=n(4),r=n(68),i=n(28),a=n(41),c=[].join,l=r!=Object,s=a("join",",");o({target:"Array",proto:!0,forced:l||!s},{join:function(e){return c.call(i(this),e===undefined?",":e)}})},function(e,t,n){"use strict";var o=n(4),r=n(163);o({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var o=n(4),r=n(21).map,i=n(75),a=n(27),c=i("map"),l=a("map");o({target:"Array",proto:!0,forced:!c||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(56);o({target:"Array",stat:!0,forced:r((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var o=n(4),r=n(88).left,i=n(41),a=n(27),c=i("reduce"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(88).right,i=n(41),a=n(27),c=i("reduceRight"),l=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!c||!l},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(59),a=n(44),c=n(12),l=n(28),s=n(56),d=n(13),u=n(75),p=n(27),m=u("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),f=d("species"),C=[].slice,g=Math.max;o({target:"Array",proto:!0,forced:!m||!h},{slice:function(e,t){var n,o,d,u=l(this),p=c(u.length),m=a(e,p),h=a(t===undefined?p:t,p);if(i(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[f])&&(n=undefined):n=undefined,n===Array||n===undefined))return C.call(u,m,h);for(o=new(n===undefined?Array:n)(g(h-m,0)),d=0;m1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(34),i=n(16),a=n(5),c=n(41),l=[],s=l.sort,d=a((function(){l.sort(undefined)})),u=a((function(){l.sort(null)})),p=c("sort");o({target:"Array",proto:!0,forced:d||!u||!p},{sort:function(e){return e===undefined?s.call(i(this)):s.call(i(this),r(e))}})},function(e,t,n){"use strict";n(60)("Array")},function(e,t,n){"use strict";var o=n(4),r=n(44),i=n(33),a=n(12),c=n(16),l=n(74),s=n(56),d=n(75),u=n(27),p=d("splice"),m=u("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,f=Math.min;o({target:"Array",proto:!0,forced:!p||!m},{splice:function(e,t){var n,o,d,u,p,m,C=c(this),g=a(C.length),N=r(e,g),b=arguments.length;if(0===b?n=o=0:1===b?(n=0,o=g-N):(n=b-2,o=f(h(i(t),0),g-N)),g+n-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(C,o),u=0;ug-o+n;u--)delete C[u-1]}else if(n>o)for(u=g-o;u>N;u--)m=u+n-1,(p=u+o-1)in C?C[m]=C[p]:delete C[m];for(u=0;u>1,f=23===t?r(2,-24)-r(2,-77):0,C=e<0||0===e&&1/e<0?1:0,g=0;for((e=o(e))!=e||e===1/0?(s=e!=e?1:0,l=m):(l=i(a(e)/c),e*(d=r(2,-l))<1&&(l--,d*=2),(e+=l+h>=1?f/d:f*r(2,1-h))*d>=2&&(l++,d/=2),l+h>=m?(s=0,l=m):l+h>=1?(s=(e*d-1)*r(2,t),l+=h):(s=e*r(2,h-1)*r(2,t),l=0));t>=8;u[g++]=255&s,s/=256,t-=8);for(l=l<0;u[g++]=255&l,l/=256,p-=8);return u[--g]|=128*C,u},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<>1,l=i-7,s=o-1,d=e[s--],u=127&d;for(d>>=7;l>0;u=256*u+e[s],s--,l-=8);for(n=u&(1<<-l)-1,u>>=-l,l+=t;l>0;n=256*n+e[s],s--,l-=8);if(0===u)u=1-c;else{if(u===a)return n?NaN:d?-1/0:1/0;n+=r(2,t),u-=c}return(d?-1:1)*n*r(2,u-t)}}},function(e,t,n){"use strict";var o=n(4),r=n(11);o({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(89),a=n(10),c=n(44),l=n(12),s=n(48),d=i.ArrayBuffer,u=i.DataView,p=d.prototype.slice;o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:r((function(){return!new d(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(p!==undefined&&t===undefined)return p.call(a(this),e);for(var n=a(this).byteLength,o=c(e,n),r=c(t===undefined?n:t,n),i=new(s(this,d))(l(r-o)),m=new u(this),h=new u(i),f=0;o9999?"+":"";return n+r(i(e),n?6:4,0)+"-"+r(this.getUTCMonth()+1,2,0)+"-"+r(this.getUTCDate(),2,0)+"T"+r(this.getUTCHours(),2,0)+":"+r(this.getUTCMinutes(),2,0)+":"+r(this.getUTCSeconds(),2,0)+"."+r(t,3,0)+"Z"}:l},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(36);o({target:"Date",proto:!0,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var o=n(32),r=n(256),i=n(13)("toPrimitive"),a=Date.prototype;i in a||o(a,i,r)},function(e,t,n){"use strict";var o=n(10),r=n(36);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!==e)}},function(e,t,n){"use strict";var o=n(26),r=Date.prototype,i=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&o(r,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){"use strict";n(4)({target:"Function",proto:!0},{bind:n(165)})},function(e,t,n){"use strict";var o=n(8),r=n(14),i=n(38),a=n(13)("hasInstance"),c=Function.prototype;a in c||r.f(c,a,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var o=n(9),r=n(14).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;o&&!("name"in i)&&r(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(6);n(46)(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(167),i=Math.acosh,a=Math.log,c=Math.sqrt,l=Math.LN2;o({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+l:r(e-1+c(e-1)*c(e+1))}})},function(e,t,n){"use strict";var o=n(4),r=Math.asinh,i=Math.log,a=Math.sqrt;o({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function c(e){return isFinite(e=+e)&&0!=e?e<0?-c(-e):i(e+a(e*e+1)):e}})},function(e,t,n){"use strict";var o=n(4),r=Math.atanh,i=Math.log;o({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var o=n(4),r=n(123),i=Math.abs,a=Math.pow;o({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*a(i(e),1/3)}})},function(e,t,n){"use strict";var o=n(4),r=Math.floor,i=Math.log,a=Math.LOG2E;o({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(i(e+.5)*a):32}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.cosh,a=Math.abs,c=Math.E;o({target:"Math",stat:!0,forced:!i||i(710)===Infinity},{cosh:function(e){var t=r(a(e)-1)+1;return(t+1/(t*c*c))*(c/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92);o({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{fround:n(271)})},function(e,t,n){"use strict";var o=n(123),r=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),l=i(2,127)*(2-c),s=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=r(e),d=o(e);return il||n!=n?d*Infinity:d*n}},function(e,t,n){"use strict";var o=n(4),r=Math.hypot,i=Math.abs,a=Math.sqrt;o({target:"Math",stat:!0,forced:!!r&&r(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,o,r=0,c=0,l=arguments.length,s=0;c0?(o=n/s)*o:n;return s===Infinity?Infinity:s*a(r)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=Math.imul;o({target:"Math",stat:!0,forced:r((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=+e,o=+t,r=65535&n,i=65535&o;return 0|r*i+((65535&n>>>16)*i+r*(65535&o>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LOG10E;o({target:"Math",stat:!0},{log10:function(e){return r(e)*i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{log1p:n(167)})},function(e,t,n){"use strict";var o=n(4),r=Math.log,i=Math.LN2;o({target:"Math",stat:!0},{log2:function(e){return r(e)/i}})},function(e,t,n){"use strict";n(4)({target:"Math",stat:!0},{sign:n(123)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(92),a=Math.abs,c=Math.exp,l=Math.E;o({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(l/2)}})},function(e,t,n){"use strict";var o=n(4),r=n(92),i=Math.exp;o({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";n(46)(Math,"Math",!0)},function(e,t,n){"use strict";var o=n(4),r=Math.ceil,i=Math.floor;o({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:r)(e)}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(26),c=n(19),l=n(35),s=n(91),d=n(36),u=n(5),p=n(45),m=n(54).f,h=n(22).f,f=n(14).f,C=n(62).trim,g=r.Number,N=g.prototype,b="Number"==l(p(N)),V=function(e){var t,n,o,r,i,a,c,l,s=d(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=C(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;cr)return NaN;return parseInt(i,o)}return+s};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var v,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(b?u((function(){N.valueOf.call(n)})):"Number"!=l(n))?s(new g(V(t)),n,x):V(t)},y=o?m(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;y.length>k;k++)c(g,v=y[k])&&!c(x,v)&&f(x,v,h(g,v));x.prototype=N,N.constructor=x,a(r,"Number",x)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isFinite:n(285)})},function(e,t,n){"use strict";var o=n(6).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isInteger:n(168)})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var o=n(4),r=n(168),i=Math.abs;o({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var o=n(4),r=n(292);o({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){"use strict";var o=n(6),r=n(62).trim,i=n(93),a=o.parseFloat,c=1/a(i+"-0")!=-Infinity;e.exports=c?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var o=n(4),r=n(169);o({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o=n(4),r=n(33),i=n(295),a=n(122),c=n(5),l=1..toFixed,s=Math.floor,d=function u(e,t,n){return 0===t?n:t%2==1?u(e,t-1,n*e):u(e*e,t/2,n)};o({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){l.call({})}))},{toFixed:function(e){var t,n,o,c,l=i(this),u=r(e),p=[0,0,0,0,0,0],m="",h="0",f=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*p[n],p[n]=o%1e7,o=s(o/1e7)},C=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=s(n/e),n=n%e*1e7},g=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*d(2,69,1))-69)<0?l*d(2,-t,1):l/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),o=u;o>=7;)f(1e7,0),o-=7;for(f(d(10,o,1),0),o=t-1;o>=23;)C(1<<23),o-=23;C(1<0?m+((c=h.length)<=u?"0."+a.call("0",u-c)+h:h.slice(0,c-u)+"."+h.slice(c-u)):m+h}})},function(e,t,n){"use strict";var o=n(35);e.exports=function(e){if("number"!=typeof e&&"Number"!=o(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var o=n(4),r=n(297);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var o=n(9),r=n(5),i=n(73),a=n(111),c=n(83),l=n(16),s=n(68),d=Object.assign,u=Object.defineProperty;e.exports=!d||r((function(){if(o&&1!==d({b:1},d(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var n=l(e),r=arguments.length,d=1,u=a.f,p=c.f;r>d;)for(var m,h=s(arguments[d++]),f=u?i(h).concat(u(h)):i(h),C=f.length,g=0;C>g;)m=f[g++],o&&!p.call(h,m)||(n[m]=h[m]);return n}:d},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0,sham:!n(9)},{create:n(45)})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(a(this),e,{get:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n(153)})},function(e,t,n){"use strict";var o=n(4),r=n(9);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(14).f})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(34),l=n(14);r&&o({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(a(this),e,{set:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var o=n(4),r=n(170).entries;o({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(78),i=n(5),a=n(8),c=n(58).onFreeze,l=Object.freeze;o({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!r},{freeze:function(e){return l&&a(e)?l(c(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(79),i=n(56);o({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){i(t,e,n)}),undefined,!0),t}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(28),a=n(22).f,c=n(9),l=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!c||l,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(109),a=n(28),c=n(22),l=n(56);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=c.f,s=i(o),d={},u=0;s.length>u;)(n=r(o,t=s[u++]))!==undefined&&l(d,t,n);return d}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(155).f;o({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(16),a=n(38),c=n(119);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!c},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{is:n(171)})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isExtensible;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isFrozen;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(5),i=n(8),a=Object.isSealed;o({target:"Object",stat:!0,forced:r((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(16),i=n(73);o({target:"Object",stat:!0,forced:n(5)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.get}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(94),a=n(16),c=n(36),l=n(38),s=n(22).f;r&&o({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),o=c(e,!0);do{if(t=s(n,o))return t.set}while(n=l(n))}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.preventExtensions;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(58).onFreeze,a=n(78),c=n(5),l=Object.seal;o({target:"Object",stat:!0,forced:c((function(){l(1)})),sham:!a},{seal:function(e){return l&&r(e)?l(i(e)):e}})},function(e,t,n){"use strict";n(4)({target:"Object",stat:!0},{setPrototypeOf:n(57)})},function(e,t,n){"use strict";var o=n(117),r=n(26),i=n(321);o||r(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var o=n(117),r=n(86);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){"use strict";var o=n(4),r=n(170).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){"use strict";var o=n(4),r=n(169);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var o,r,i,a,c=n(4),l=n(40),s=n(6),d=n(39),u=n(172),p=n(26),m=n(77),h=n(46),f=n(60),C=n(8),g=n(34),N=n(61),b=n(35),V=n(107),v=n(79),x=n(87),y=n(48),k=n(124).set,w=n(174),_=n(175),B=n(325),S=n(176),L=n(326),A=n(37),E=n(72),I=n(13),D=n(113),T=I("species"),F="Promise",M=A.get,P=A.set,O=A.getterFor(F),R=u,j=s.TypeError,U=s.document,z=s.process,W=d("fetch"),H=S.f,K=H,Y="process"==b(z),G=!!(U&&U.createEvent&&s.dispatchEvent),q=E(F,(function(){if(!(V(R)!==String(R))){if(66===D)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!R.prototype["finally"])return!0;if(D>=51&&/native code/.test(R))return!1;var e=R.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[T]=t,!(e.then((function(){}))instanceof t)})),X=q||!x((function(e){R.all(e)["catch"]((function(){}))})),J=function(e){var t;return!(!C(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,n){if(!t.notified){t.notified=!0;var o=t.reactions;w((function(){for(var r=t.value,i=1==t.state,a=0;o.length>a;){var c,l,s,d=o[a++],u=i?d.ok:d.fail,p=d.resolve,m=d.reject,h=d.domain;try{u?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===u?c=r:(h&&h.enter(),c=u(r),h&&(h.exit(),s=!0)),c===d.promise?m(j("Promise-chain cycle")):(l=J(c))?l.call(c,p,m):p(c)):m(r)}catch(f){h&&!s&&h.exit(),m(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Q(e,t)}))}},Z=function(e,t,n){var o,r;G?((o=U.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),s.dispatchEvent(o)):o={promise:t,reason:n},(r=s["on"+e])?r(o):"unhandledrejection"===e&&B("Unhandled promise rejection",n)},Q=function(e,t){k.call(s,(function(){var n,o=t.value;if(ee(t)&&(n=L((function(){Y?z.emit("unhandledRejection",o,e):Z("unhandledrejection",e,o)})),t.rejection=Y||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){k.call(s,(function(){Y?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},ne=function(e,t,n,o){return function(r){e(t,n,r,o)}},oe=function(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=2,$(e,t,!0))},re=function ie(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw j("Promise can't be resolved itself");var r=J(n);r?w((function(){var o={done:!1};try{r.call(n,ne(ie,e,o,t),ne(oe,e,o,t))}catch(i){oe(e,o,i,t)}})):(t.value=n,t.state=1,$(e,t,!1))}catch(i){oe(e,{done:!1},i,t)}}};q&&(R=function(e){N(this,R,F),g(e),o.call(this);var t=M(this);try{e(ne(re,this,t),ne(oe,this,t))}catch(n){oe(this,t,n)}},(o=function(e){P(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=m(R.prototype,{then:function(e,t){var n=O(this),o=H(y(this,R));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=Y?z.domain:undefined,n.parent=!0,n.reactions.push(o),0!=n.state&&$(this,n,!1),o.promise},"catch":function(e){return this.then(undefined,e)}}),r=function(){var e=new o,t=M(e);this.promise=e,this.resolve=ne(re,e,t),this.reject=ne(oe,e,t)},S.f=H=function(e){return e===R||e===i?new r(e):K(e)},l||"function"!=typeof u||(a=u.prototype.then,p(u.prototype,"then",(function(e,t){var n=this;return new R((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _(R,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:q},{Promise:R}),h(R,F,!1,!0),f(F),i=d(F),c({target:F,stat:!0,forced:q},{reject:function(e){var t=H(this);return t.reject.call(undefined,e),t.promise}}),c({target:F,stat:!0,forced:l||q},{resolve:function(e){return _(l&&this===i?R:this,e)}}),c({target:F,stat:!0,forced:X},{all:function(e){var t=this,n=H(t),o=n.resolve,r=n.reject,i=L((function(){var n=g(t.resolve),i=[],a=0,c=1;v(e,(function(e){var l=a++,s=!1;i.push(undefined),c++,n.call(t,e).then((function(e){s||(s=!0,i[l]=e,--c||o(i))}),r)})),--c||o(i)}));return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=H(t),o=n.reject,r=L((function(){var r=g(t.resolve);v(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(e,t,n){"use strict";var o=n(6);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){"use strict";var o=n(4),r=n(40),i=n(172),a=n(5),c=n(39),l=n(48),s=n(175),d=n(26);o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=l(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof i||i.prototype["finally"]||d(i.prototype,"finally",c("Promise").prototype["finally"])},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(5),l=r("Reflect","apply"),s=Function.apply;o({target:"Reflect",stat:!0,forced:!c((function(){l((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),l?l(e,t,n):s.call(e,t,n)}})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(34),a=n(10),c=n(8),l=n(45),s=n(165),d=n(5),u=r("Reflect","construct"),p=d((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),m=!d((function(){u((function(){}))})),h=p||m;o({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(m&&!p)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(s.apply(e,o))}var r=n.prototype,d=l(c(r)?r:Object.prototype),h=Function.apply.call(e,d,t);return c(h)?h:d}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(36),c=n(14);o({target:"Reflect",stat:!0,forced:n(5)((function(){Reflect.defineProperty(c.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(e,t,n){i(e);var o=a(t,!0);i(n);try{return c.f(e,o,n),!0}catch(r){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(22).f;o({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var o=n(4),r=n(8),i=n(10),a=n(19),c=n(22),l=n(38);o({target:"Reflect",stat:!0},{get:function s(e,t){var n,o,d=arguments.length<3?e:arguments[2];return i(e)===d?e[t]:(n=c.f(e,t))?a(n,"value")?n.value:n.get===undefined?undefined:n.get.call(d):r(o=l(e))?s(o,t,d):void 0}})},function(e,t,n){"use strict";var o=n(4),r=n(9),i=n(10),a=n(22);o({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(38);o({target:"Reflect",stat:!0,sham:!n(119)},{getPrototypeOf:function(e){return i(r(e))}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=Object.isExtensible;o({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){"use strict";n(4)({target:"Reflect",stat:!0},{ownKeys:n(109)})},function(e,t,n){"use strict";var o=n(4),r=n(39),i=n(10);o({target:"Reflect",stat:!0,sham:!n(78)},{preventExtensions:function(e){i(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(8),a=n(19),c=n(5),l=n(14),s=n(22),d=n(38),u=n(53);o({target:"Reflect",stat:!0,forced:c((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(d(e),"a",1,e)}))},{set:function p(e,t,n){var o,c,m=arguments.length<4?e:arguments[3],h=s.f(r(e),t);if(!h){if(i(c=d(e)))return p(c,t,n,m);h=u(0)}if(a(h,"value")){if(!1===h.writable||!i(m))return!1;if(o=s.f(m,t)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,l.f(m,t,o)}else l.f(m,t,u(0,n));return!0}return h.set!==undefined&&(h.set.call(m,n),!0)}})},function(e,t,n){"use strict";var o=n(4),r=n(10),i=n(162),a=n(57);a&&o({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var o=n(9),r=n(6),i=n(72),a=n(91),c=n(14).f,l=n(54).f,s=n(125),d=n(95),u=n(126),p=n(26),m=n(5),h=n(37).set,f=n(60),C=n(13)("match"),g=r.RegExp,N=g.prototype,b=/a/g,V=/a/g,v=new g(b)!==b,x=u.UNSUPPORTED_Y;if(o&&i("RegExp",!v||x||m((function(){return V[C]=!1,g(b)!=b||g(V)==V||"/a/i"!=g(b,"i")})))){for(var y=function(e,t){var n,o=this instanceof y,r=s(e),i=t===undefined;if(!o&&r&&e.constructor===y&&i)return e;v?r&&!i&&(e=e.source):e instanceof y&&(i&&(t=d.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(v?new g(e,t):g(e,t),o?this:N,y);return x&&n&&h(c,{sticky:n}),c},k=function(e){e in y||c(y,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},w=l(g),_=0;w.length>_;)k(w[_++]);N.constructor=y,y.prototype=N,p(r,"RegExp",y)}f("RegExp")},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(95),a=n(126).UNSUPPORTED_Y;o&&("g"!=/./g.flags||a)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var o=n(26),r=n(10),i=n(5),a=n(95),c=RegExp.prototype,l=c.toString,s=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d="toString"!=l.name;(s||d)&&o(RegExp.prototype,"toString",(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===undefined&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var o=n(90),r=n(166);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},function(e,t,n){"use strict";var o=n(4),r=n(127).codeAt;o({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var o,r=n(4),i=n(22).f,a=n(12),c=n(128),l=n(25),s=n(129),d=n(40),u="".endsWith,p=Math.min,m=s("endsWith");r({target:"String",proto:!0,forced:!!(d||m||(o=i(String.prototype,"endsWith"),!o||o.writable))&&!m},{endsWith:function(e){var t=String(l(this));c(e);var n=arguments.length>1?arguments[1]:undefined,o=a(t.length),r=n===undefined?o:p(a(n),o),i=String(e);return u?u.call(t,i,r):t.slice(r-i.length,r)===i}})},function(e,t,n){"use strict";var o=n(4),r=n(44),i=String.fromCharCode,a=String.fromCodePoint;o({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var o=n(4),r=n(128),i=n(25);o({target:"String",proto:!0,forced:!n(129)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(r(e),arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(127).charAt,r=n(37),i=n(118),a=r.set,c=r.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:undefined,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(12),a=n(25),c=n(130),l=n(98);o("match",1,(function(e,t,n){return[function(t){var n=a(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var a=r(e),s=String(this);if(!a.global)return l(a,s);var d=a.unicode;a.lastIndex=0;for(var u,p=[],m=0;null!==(u=l(a,s));){var h=String(u[0]);p[m]=h,""===h&&(a.lastIndex=c(s,i(a.lastIndex),d)),m++}return 0===m?null:p}]}))},function(e,t,n){"use strict";var o=n(4),r=n(121).end;o({target:"String",proto:!0,forced:n(178)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(121).start;o({target:"String",proto:!0,forced:n(178)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var o=n(4),r=n(28),i=n(12);o({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c]*>)/g,f=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var C=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=o.REPLACE_KEEPS_$0,N=C?"$":"$0";return[function(n,o){var r=l(this),i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,r,o):t.call(String(r),n,o)},function(e,o){if(!C&&g||"string"==typeof o&&-1===o.indexOf(N)){var i=n(t,e,this,o);if(i.done)return i.value}var l=r(e),m=String(this),h="function"==typeof o;h||(o=String(o));var f=l.global;if(f){var V=l.unicode;l.lastIndex=0}for(var v=[];;){var x=d(l,m);if(null===x)break;if(v.push(x),!f)break;""===String(x[0])&&(l.lastIndex=s(m,a(l.lastIndex),V))}for(var y,k="",w=0,_=0;_=w&&(k+=m.slice(w,S)+D,w=S+B.length)}return k+m.slice(w)}];function b(e,n,o,r,a,c){var l=o+e.length,s=r.length,d=f;return a!==undefined&&(a=i(a),d=h),t.call(c,d,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(l);case"<":c=a[i.slice(1,-1)];break;default:var d=+i;if(0===d)return t;if(d>s){var u=m(d/10);return 0===u?t:u<=s?r[u-1]===undefined?i.charAt(1):r[u-1]+i.charAt(1):t}c=r[d-1]}return c===undefined?"":c}))}}))},function(e,t,n){"use strict";var o=n(97),r=n(10),i=n(25),a=n(171),c=n(98);o("search",1,(function(e,t,n){return[function(t){var n=i(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var i=r(e),l=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var d=c(i,l);return a(i.lastIndex,s)||(i.lastIndex=s),null===d?-1:d.index}]}))},function(e,t,n){"use strict";var o=n(97),r=n(125),i=n(10),a=n(25),c=n(48),l=n(130),s=n(12),d=n(98),u=n(96),p=n(5),m=[].push,h=Math.min,f=!p((function(){return!RegExp(4294967295,"y")}));o("split",2,(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=String(a(this)),i=n===undefined?4294967295:n>>>0;if(0===i)return[];if(e===undefined)return[o];if(!r(e))return t.call(o,e,i);for(var c,l,s,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,f=new RegExp(e.source,p+"g");(c=u.call(f,o))&&!((l=f.lastIndex)>h&&(d.push(o.slice(h,c.index)),c.length>1&&c.index=i));)f.lastIndex===c.index&&f.lastIndex++;return h===o.length?!s&&f.test("")||d.push(""):d.push(o.slice(h)),d.length>i?d.slice(0,i):d}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,r,n):o.call(String(r),t,n)},function(e,r){var a=n(o,e,this,r,o!==t);if(a.done)return a.value;var u=i(e),p=String(this),m=c(u,RegExp),C=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),N=new m(f?u:"^(?:"+u.source+")",g),b=r===undefined?4294967295:r>>>0;if(0===b)return[];if(0===p.length)return null===d(N,p)?[p]:[];for(var V=0,v=0,x=[];v1?arguments[1]:undefined,t.length)),o=String(e);return u?u.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var o=n(4),r=n(62).trim;o({target:"String",proto:!0,forced:n(131)("trim")},{trim:function(){return r(this)}})},function(e,t,n){"use strict";var o=n(4),r=n(62).end,i=n(131)("trimEnd"),a=i?function(){return r(this)}:"".trimEnd;o({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var o=n(4),r=n(62).start,i=n(131)("trimStart"),a=i?function(){return r(this)}:"".trimStart;o({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("big")},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("blink")},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("bold")},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fixed")},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("italics")},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("link")},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("small")},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("strike")},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sub")},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var o=n(4),r=n(30);o({target:"String",proto:!0,forced:n(31)("sup")},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){"use strict";n(42)("Float32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(33);e.exports=function(e){var t=o(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n(42)("Float64",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Int32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},function(e,t,n){"use strict";n(42)("Uint16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";n(42)("Uint32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(11),r=n(157),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return r.call(i(this),e,t,arguments.length>2?arguments[2]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(114),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).filter,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("filter",(function(e){for(var t=r(a(this),e,arguments.length>1?arguments[1]:undefined),n=i(this,this.constructor),o=0,l=t.length,s=new(c(n))(l);l>o;)s[o]=t[o++];return s}))},function(e,t,n){"use strict";var o=n(11),r=n(21).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(132);(0,n(11).exportTypedArrayStaticMethod)("from",n(180),o)},function(e,t,n){"use strict";var o=n(11),r=n(71).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(71).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(160),a=n(13)("iterator"),c=o.Uint8Array,l=i.values,s=i.keys,d=i.entries,u=r.aTypedArray,p=r.exportTypedArrayMethod,m=c&&c.prototype[a],h=!!m&&("values"==m.name||m.name==undefined),f=function(){return l.call(u(this))};p("entries",(function(){return d.call(u(this))})),p("keys",(function(){return s.call(u(this))})),p("values",f,!h),p(a,f,!h)},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(r(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(163),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){return r.apply(i(this),arguments)}))},function(e,t,n){"use strict";var o=n(11),r=n(21).map,i=n(48),a=o.aTypedArray,c=o.aTypedArrayConstructor;(0,o.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(c(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var o=n(11),r=n(132),i=o.aTypedArrayConstructor;(0,o.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var o=n(11),r=n(88).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=n(88).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){return r(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=r(this).length,n=a(t/2),o=0;o1?arguments[1]:undefined,1),n=this.length,o=a(e),c=r(o.length),s=0;if(c+t>n)throw RangeError("Wrong length");for(;si;)d[i]=n[i++];return d}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var o=n(11),r=n(21).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var o=n(11),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(r(this),e)}))},function(e,t,n){"use strict";var o=n(11),r=n(12),i=n(44),a=n(48),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=c(this),o=n.length,l=i(e,o);return new(a(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((t===undefined?o:i(t,o))-l))}))},function(e,t,n){"use strict";var o=n(6),r=n(11),i=n(5),a=o.Int8Array,c=r.aTypedArray,l=r.exportTypedArrayMethod,s=[].toLocaleString,d=[].slice,u=!!a&&i((function(){s.call(new a(1))}));l("toLocaleString",(function(){return s.apply(u?d.call(c(this)):c(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var o=n(11).exportTypedArrayMethod,r=n(5),i=n(6).Uint8Array,a=i&&i.prototype||{},c=[].toString,l=[].join;r((function(){c.call({})}))&&(c=function(){return l.call(this)});var s=a.toString!=c;o("toString",c,s)},function(e,t,n){"use strict";var o,r=n(6),i=n(77),a=n(58),c=n(90),l=n(181),s=n(8),d=n(37).enforce,u=n(148),p=!r.ActiveXObject&&"ActiveXObject"in r,m=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},f=e.exports=c("WeakMap",h,l);if(u&&p){o=l.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var C=f.prototype,g=C["delete"],N=C.has,b=C.get,V=C.set;i(C,{"delete":function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)||t.frozen.has(e)}return N.call(this,e)},get:function(e){if(s(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new o),N.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(s(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new o),N.call(this,e)?V.call(this,e,t):n.frozen.set(e,t)}else V.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(90)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(181))},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(124);o({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(174),a=n(35),c=r.process,l="process"==a(c);o({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&c.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var o=n(4),r=n(6),i=n(85),a=[].slice,c=function(e){return function(t,n){var o=arguments.length>2,r=o?a.call(arguments,2):undefined;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t._CI=Se,t._HI=P,t._M=Le,t._MCCC=De,t._ME=Ee,t._MFCC=Te,t._MP=_e,t._MR=Ne,t.__render=Re,t.createComponentVNode=function(e,t,n,o,r){var a=new L(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),o,function(e,t,n){var o=(32768&e?t.render:t).defaultProps;if(i(o))return n;if(i(n))return d(o,null);return B(n,o)}(e,t,n),function(e,t,n){if(4&e)return n;var o=(32768&e?t.render:t).defaultHooks;if(i(o))return n;if(i(n))return o;return B(n,o)}(e,t,r),t);k.createVNode&&k.createVNode(a);return a},t.createFragment=I,t.createPortal=function(e,t){var n=P(e);return A(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,o,r){e||(e=t),je(n,e,o,r)}},t.createTextVNode=E,t.createVNode=A,t.directClone=D,t.findDOMfromVNode=b,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&i(e.children)&&M(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=je,t.rerender=Ye,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var o=Array.isArray;function r(e){var t=typeof e;return"string"===t||"number"===t}function i(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function l(e){return"string"==typeof e}function s(e){return null===e}function d(e,t){var n={};if(e)for(var o in e)n[o]=e[o];if(t)for(var r in t)n[r]=t[r];return n}function u(e){return!s(e)&&"object"==typeof e}var p={};t.EMPTY_OBJ=p;function m(e){return e.substr(2).toLowerCase()}function h(e,t){e.appendChild(t)}function f(e,t,n){s(n)?h(e,t):e.insertBefore(t,n)}function C(e,t){e.removeChild(t)}function g(e){for(var t=0;t0,h=s(p),f=l(p)&&"$"===p[0];m||h||f?(n=n||t.slice(0,d),(m||f)&&(u=D(u)),(h||f)&&(u.key="$"+d),n.push(u)):n&&n.push(u),u.flags|=65536}}i=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=D(t)),i=2;return e.children=n,e.childFlags=i,e}function P(e){return a(e)||r(e)?E(e,null):o(e)?I(e,0,null):16384&e.flags?D(e):e}var O="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",j={"xlink:actuate":O,"xlink:arcrole":O,"xlink:href":O,"xlink:role":O,"xlink:show":O,"xlink:title":O,"xlink:type":O,"xml:base":R,"xml:lang":R,"xml:space":R};function U(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var z=U(0),W=U(null),H=U(!0);function K(e,t){var n=t.$EV;return n||(n=t.$EV=U(null)),n[e]||1==++z[e]&&(W[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?G(t,!0,e,$(t)):t.stopPropagation()}}(e):function(e){return function(t){G(t,!1,e,$(t))}}(e);return document.addEventListener(m(e),t),t}(e)),n}function Y(e,t){var n=t.$EV;n&&n[e]&&(0==--z[e]&&(document.removeEventListener(m(e),W[e]),W[e]=null),n[e]=null)}function G(e,t,n,o){var r=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&r.disabled)return;var i=r.$EV;if(i){var a=i[n];if(a&&(o.dom=r,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}r=r.parentNode}while(!s(r))}function q(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function X(){return this.defaultPrevented}function J(){return this.cancelBubble}function $(e){var t={dom:document};return e.isDefaultPrevented=X,e.isPropagationStopped=J,e.stopPropagation=q,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function Z(e,t,n){if(e[t]){var o=e[t];o.event?o.event(o.data,n):o(n)}else{var r=t.toLowerCase();e[r]&&e[r](n)}}function Q(e,t){var n=function(n){var o=this.$V;if(o){var r=o.props||p,i=o.dom;if(l(e))Z(r,e,n);else for(var a=0;a-1&&t.options[a]&&(c=t.options[a].value),n&&i(c)&&(c=e.defaultValue),ae(o,c)}}var se,de,ue=Q("onInput",me),pe=Q("onChange");function me(e,t,n){var o=e.value,r=t.value;if(i(o)){if(n){var a=e.defaultValue;i(a)||a===r||(t.defaultValue=a,t.value=a)}}else r!==o&&(t.defaultValue=o,t.value=o)}function he(e,t,n,o,r,i){64&e?ie(o,n):256&e?le(o,n,r,t):128&e&&me(o,n,r),i&&(n.$V=t)}function fe(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",oe),ee(e,"click",re)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ce)}(t):128&e&&function(e,t){ee(e,"input",ue),t.onChange&&ee(e,"change",pe)}(t,n)}function Ce(e){return e.type&&te(e.type)?!i(e.checked):!i(e.value)}function ge(e){e&&!S(e,null)&&e.current&&(e.current=null)}function Ne(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){S(e,t)||void 0===e.current||(e.current=t)}))}function be(e,t){Ve(e),V(e,t)}function Ve(e){var t,n=e.flags,o=e.children;if(481&n){t=e.ref;var r=e.props;ge(t);var a=e.childFlags;if(!s(r))for(var l=Object.keys(r),d=0,u=l.length;d0;for(var c in a&&(i=Ce(n))&&fe(t,o,n),n)we(c,null,n[c],o,r,i,null);a&&he(t,e,o,n,!0,i)}function Be(e,t,n){var o=P(e.render(t,e.state,n)),r=n;return c(e.getChildContext)&&(r=d(n,e.getChildContext())),e.$CX=r,o}function Se(e,t,n,o,r,i){var a=new t(n,o),l=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=r,a.$L=i,e.children=a,a.$BS=!1,a.context=o,a.props===p&&(a.props=n),l)a.state=x(a,n,a.state);else if(c(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var d=a.$PS;if(!s(d)){var u=a.state;if(s(u))a.state=d;else for(var m in d)u[m]=d[m];a.$PS=null}a.$BR=!1}return a.$LI=Be(a,n,o),a}function Le(e,t,n,o,r,i){var a=e.flags|=16384;481&a?Ee(e,t,n,o,r,i):4&a?function(e,t,n,o,r,i){var a=Se(e,e.type,e.props||p,n,o,i);Le(a.$LI,t,a.$CX,o,r,i),De(e.ref,a,i)}(e,t,n,o,r,i):8&a?(!function(e,t,n,o,r,i){Le(e.children=P(function(e,t){return 32768&e.flags?e.type.render(e.props||p,e.ref,t):e.type(e.props||p,t)}(e,n)),t,n,o,r,i)}(e,t,n,o,r,i),Te(e,i)):512&a||16&a?Ae(e,t,r):8192&a?function(e,t,n,o,r,i){var a=e.children,c=e.childFlags;12&c&&0===a.length&&(c=e.childFlags=2,a=e.children=T());2===c?Le(a,n,r,o,r,i):Ie(a,n,t,o,r,i)}(e,n,t,o,r,i):1024&a&&function(e,t,n,o,r){Le(e.children,e.ref,t,!1,null,r);var i=T();Ae(i,n,o),e.dom=i.dom}(e,n,t,r,i)}function Ae(e,t,n){var o=e.dom=document.createTextNode(e.children);s(t)||f(t,o,n)}function Ee(e,t,n,o,r,a){var c=e.flags,l=e.props,d=e.className,u=e.children,p=e.childFlags,m=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,o=o||(32&c)>0);if(i(d)||""===d||(o?m.setAttribute("class",d):m.className=d),16===p)w(m,u);else if(1!==p){var h=o&&"foreignObject"!==e.type;2===p?(16384&u.flags&&(e.children=u=D(u)),Le(u,m,n,h,null,a)):8!==p&&4!==p||Ie(u,m,n,h,null,a)}s(t)||f(t,m,r),s(l)||_e(e,c,l,m,o),Ne(e.ref,m,a)}function Ie(e,t,n,o,r,i){for(var a=0;a0,s!==d){var h=s||p;if((c=d||p)!==p)for(var f in(u=(448&r)>0)&&(m=Ce(c)),c){var C=h[f],g=c[f];C!==g&&we(f,C,g,l,o,m,e)}if(h!==p)for(var N in h)i(c[N])&&!i(h[N])&&we(N,h[N],null,l,o,m,e)}var b=t.children,V=t.className;e.className!==V&&(i(V)?l.removeAttribute("class"):o?l.setAttribute("class",V):l.className=V);4096&r?function(e,t){e.textContent!==t&&(e.textContent=t)}(l,b):Me(e.childFlags,t.childFlags,e.children,b,l,n,o&&"foreignObject"!==t.type,null,e,a);u&&he(r,t,l,c,!1,m);var v=t.ref,x=e.ref;x!==v&&(ge(x),Ne(v,l,a))}(e,t,o,r,m,u):4&m?function(e,t,n,o,r,i,a){var l=t.children=e.children;if(s(l))return;l.$L=a;var u=t.props||p,m=t.ref,h=e.ref,f=l.state;if(!l.$N){if(c(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(u,o),l.$UN)return;l.$BR=!1}s(l.$PS)||(f=d(f,l.$PS),l.$PS=null)}Pe(l,f,u,n,o,r,!1,i,a),h!==m&&(ge(h),Ne(m,l,a))}(e,t,n,o,r,l,u):8&m?function(e,t,n,o,r,a,l){var s=!0,d=t.props||p,u=t.ref,m=e.props,h=!i(u),f=e.children;h&&c(u.onComponentShouldUpdate)&&(s=u.onComponentShouldUpdate(m,d));if(!1!==s){h&&c(u.onComponentWillUpdate)&&u.onComponentWillUpdate(m,d);var C=t.type,g=P(32768&t.flags?C.render(d,u,o):C(d,o));Fe(f,g,n,o,r,a,l),t.children=g,h&&c(u.onComponentDidUpdate)&&u.onComponentDidUpdate(m,d)}else t.children=f}(e,t,n,o,r,l,u):16&m?function(e,t){var n=t.children,o=t.dom=e.dom;n!==e.children&&(o.nodeValue=n)}(e,t):512&m?t.dom=e.dom:8192&m?function(e,t,n,o,r,i){var a=e.children,c=t.children,l=e.childFlags,s=t.childFlags,d=null;12&s&&0===c.length&&(s=t.childFlags=2,c=t.children=T());var u=0!=(2&s);if(12&l){var p=a.length;(8&l&&8&s||u||!u&&c.length>p)&&(d=b(a[p-1],!1).nextSibling)}Me(l,s,a,c,n,o,r,d,e,i)}(e,t,n,o,r,u):function(e,t,n,o){var r=e.ref,i=t.ref,c=t.children;if(Me(e.childFlags,t.childFlags,e.children,c,r,n,!1,null,e,o),t.dom=e.dom,r!==i&&!a(c)){var l=c.dom;C(r,l),h(i,l)}}(e,t,o,u)}function Me(e,t,n,o,r,i,a,c,l,s){switch(e){case 2:switch(t){case 2:Fe(n,o,r,i,a,c,s);break;case 1:be(n,r);break;case 16:Ve(n),w(r,o);break;default:!function(e,t,n,o,r,i){Ve(e),Ie(t,n,o,r,b(e,!0),i),V(e,n)}(n,o,r,i,a,s)}break;case 1:switch(t){case 2:Le(o,r,i,a,c,s);break;case 1:break;case 16:w(r,o);break;default:Ie(o,r,i,a,c,s)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:w(n,t))}(n,o,r);break;case 2:xe(r),Le(o,r,i,a,c,s);break;case 1:xe(r);break;default:xe(r),Ie(o,r,i,a,c,s)}break;default:switch(t){case 16:ve(n),w(r,o);break;case 2:ye(r,l,n),Le(o,r,i,a,c,s);break;case 1:ye(r,l,n);break;default:var d=0|n.length,u=0|o.length;0===d?u>0&&Ie(o,r,i,a,c,s):0===u?ye(r,l,n):8===t&&8===e?function(e,t,n,o,r,i,a,c,l,s){var d,u,p=i-1,m=a-1,h=0,f=e[h],C=t[h];e:{for(;f.key===C.key;){if(16384&C.flags&&(t[h]=C=D(C)),Fe(f,C,n,o,r,c,s),e[h]=C,++h>p||h>m)break e;f=e[h],C=t[h]}for(f=e[p],C=t[m];f.key===C.key;){if(16384&C.flags&&(t[m]=C=D(C)),Fe(f,C,n,o,r,c,s),e[p]=C,p--,m--,h>p||h>m)break e;f=e[p],C=t[m]}}if(h>p){if(h<=m)for(u=(d=m+1)m)for(;h<=p;)be(e[h++],n);else!function(e,t,n,o,r,i,a,c,l,s,d,u,p){var m,h,f,C=0,g=c,N=c,V=i-c+1,x=a-c+1,y=new Int32Array(x+1),k=V===o,w=!1,_=0,B=0;if(r<4||(V|x)<32)for(C=g;C<=i;++C)if(m=e[C],Bc?w=!0:_=c,16384&h.flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B;break}!k&&c>a&&be(m,l)}else k||be(m,l);else{var S={};for(C=N;C<=a;++C)S[t[C].key]=C;for(C=g;C<=i;++C)if(m=e[C],Bg;)be(e[g++],l);y[c-N]=C+1,_>c?w=!0:_=c,16384&(h=t[c]).flags&&(t[c]=h=D(h)),Fe(m,h,l,n,s,d,p),++B}else k||be(m,l);else k||be(m,l)}if(k)ye(l,u,e),Ie(t,l,n,s,d,p);else if(w){var L=function(e){var t=0,n=0,o=0,r=0,i=0,a=0,c=0,l=e.length;l>Oe&&(Oe=l,se=new Int32Array(l),de=new Int32Array(l));for(;n>1]]0&&(de[n]=se[i-1]),se[i]=n)}i=r+1;var s=new Int32Array(i);a=se[i-1];for(;i-- >0;)s[i]=a,a=de[a],se[i]=0;return s}(y);for(c=L.length-1,C=x-1;C>=0;C--)0===y[C]?(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)=0;C--)0===y[C]&&(16384&(h=t[_=C+N]).flags&&(t[_]=h=D(h)),Le(h,l,n,s,(f=_+1)a?a:i,p=0;pa)for(p=u;p=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),v(n),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;v(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:y(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=o}catch(r){Function("r","regeneratorRuntime = r")(o)}},function(e,t,n){"use strict";t.__esModule=!0,t.vecNormalize=t.vecLength=t.vecInverse=t.vecScale=t.vecDivide=t.vecMultiply=t.vecSubtract=t.vecAdd=t.vecCreate=void 0;var o=n(24); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */t.vecCreate=function(){for(var e=arguments.length,t=new Array(e),n=0;n3?c(a):null,b=String(a.key),V=String(a.char),v=a.location,x=a.keyCode||(a.keyCode=b)&&b.charCodeAt(0)||0,y=a.charCode||(a.charCode=V)&&V.charCodeAt(0)||0,k=a.bubbles,w=a.cancelable,_=a.repeat,B=a.locale,S=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in p)p.initKeyEvent(t,k,w,S,m,f,h,C,x,y);else if(0>>0),t=Element.prototype,n=t.querySelector,o=t.querySelectorAll;function r(t,n,o){t.setAttribute(e,null);var r=n.call(t,String(o).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,o,r){return n+"["+e+"]"+(r||" ")})));return t.removeAttribute(e),r}t.querySelector=function(e){return r(this,n,e)},t.querySelectorAll=function(e){return r(this,o,e)}}()}}(window),function(e){var t=e.WeakMap||function(){var e,t=0,n=!1,o=!1;function r(t,r,i){o=i,n=!1,e=undefined,t.dispatchEvent(r)}function i(e){this.value=e}function c(){t++,this.__ce__=new a("@DOMMap:"+t+Math.random())}return i.prototype.handleEvent=function(t){n=!0,o?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},c.prototype={constructor:c,"delete":function(e){return r(e,this.__ce__,!0),n},get:function(t){r(t,this.__ce__,!1);var n=e;return e=undefined,n},has:function(e){return r(e,this.__ce__,!1),n},set:function(e,t){return r(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new i(t),!1),this}},c}();function n(){}function o(e,t,n){function r(e){r.once&&(e.currentTarget.removeEventListener(e.type,t,r),r.removed=!0),r.passive&&(e.preventDefault=o.preventDefault),"function"==typeof r.callback?r.callback.call(this,e):r.callback&&r.callback.handleEvent(e),r.passive&&delete e.preventDefault}return r.type=e,r.callback=t,r.capture=!!n.capture,r.passive=!!n.passive,r.once=!!n.once,r.removed=!1,r}n.prototype=(Object.create||Object)(null),o.preventDefault=function(){};var r,i,a=e.CustomEvent,c=e.dispatchEvent,l=e.addEventListener,s=e.removeEventListener,d=0,u=function(){d++},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},m=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{l("_",u,{once:!0}),c(new a("_")),c(new a("_")),s("_",u,{once:!0})}catch(h){}1!==d&&(i=new t,r=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,r,a){if(a&&"boolean"!=typeof a){var c,l,s,d=i.get(this),u=m(a);d||i.set(this,d=new n),t in d||(d[t]={handler:[],wrap:[]}),l=d[t],(c=p.call(l.handler,r))<0?(c=l.handler.push(r)-1,l.wrap[c]=s=new n):s=l.wrap[c],u in s||(s[u]=o(t,r,a),e.call(this,t,s[u],s[u].capture))}else e.call(this,t,r,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,o){if(o&&"boolean"!=typeof o){var r,a,c,l,s=i.get(this);if(s&&t in s&&(c=s[t],-1<(a=p.call(c.handler,n))&&(r=m(o))in(l=c.wrap[a]))){for(r in e.call(this,t,l[r],l[r].capture),delete l[r],l)return;c.handler.splice(a,1),c.wrap.splice(a,1),0===c.handler.length&&delete s[t]}}else e.call(this,t,n,o)}}(t.removeEventListener)}},e.EventTarget?r(EventTarget):(r(e.Text),r(e.Element||e.HTMLElement),r(e.HTMLDocument),r(e.Window||{prototype:e}),r(e.XMLHttpRequest)))}(window)},function(e,t,n){"use strict"; +/** + * @file + * @copyright 2014 Alexander Farkas + * @license MIT + */!function(t,n){var o,r,i=t.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l=0,s={};function d(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function u(e){var t=s[e._html5shiv];return t||(t={},l++,e._html5shiv=l,s[l]=t),t}function p(e,t,o){return t||(t=n),r?t.createElement(e):(o||(o=u(t)),!(i=o.cache[e]?o.cache[e].cloneNode():c.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||a.test(e)||i.tagUrn?i:o.frag.appendChild(i));var i}function m(e){e||(e=n);var t=u(e);return!h.shivCSS||o||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),o=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",o.insertBefore(n.lastChild,o.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?p(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(h,t.frag)}(e,t),e}!function(){try{var e=n.createElement("a");e.innerHTML="",o="hidden"in e,r=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){o=!0,r=!0}}();var h={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==i.shivCSS,supportsUnknownElements:r,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:m,createElement:p,createDocumentFragment:function(e,t){if(e||(e=n),r)return e.createDocumentFragment();for(var o=(t=t||u(e)).frag.cloneNode(),i=0,a=d(),c=a.length;i1?r-1:0),a=1;a1?t-1:0),o=1;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";var o,r;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=o,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(o||(t.VNodeFlags=o={})),t.ChildFlags=r,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(r||(t.ChildFlags=r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.debounce=void 0;t.debounce=function(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=arguments.length,i=new Array(r),a=0;a=0||(r[n]=e[n]);return r}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),C=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var i=(0,r.zipWith)(Math.min).apply(void 0,e),a=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(i[0]=n[0],a[0]=n[1]),o!==undefined&&(i[1]=o[0],a[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,i,a,t)}))(e)}(i,C,a,l);if(g.length>0){var N=g[0],b=g[g.length-1];g.push([C[0]+h,b[1]]),g.push([C[0]+h,-h]),g.push([-h,-h]),g.push([-h,N[1]])}var V=function(e){for(var t="",n=0;n=0||(r[n]=e[n]);return r}(t,["children","color","title","buttons"]);return(0,o.createVNode)(1,"div","Collapsible",[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({fluid:!0,color:l,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},u,{children:s}))),2),d&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",d,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:a})],0)},a}(o.Component);t.Collapsible=a},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(0),r=n(7),i=n(17); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var a=function(e){var t=e.content,n=(e.children,e.className),a=e.color,c=e.backgroundColor,l=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["content","children","className","color","backgroundColor"]);return l.color=t?null:"transparent",l.backgroundColor=a||c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,i.computeBoxClassName)(l)]),t||".",0,Object.assign({},(0,i.computeBoxProps)(l))))};t.ColorBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(0),r=n(7),i=n(17),a=n(138);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var l=function(e){var t,n;function l(t){var n;return(n=e.call(this,t)||this).state={open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},s.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},s.setSelected=function(e){this.setOpen(!1),this.props.onSelected(e)},s.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){return(0,o.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return n.length?n:"No Options Found"},s.render=function(){var e=this,t=this.props,n=t.color,l=void 0===n?"default":n,s=t.over,d=t.noscroll,u=t.nochevron,p=t.width,m=(t.onClick,t.selected),h=t.disabled,f=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled"]),C=f.className,g=c(f,["className"]),N=s?!this.state.open:this.state.open,b=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([d?"Dropdown__menu-noscroll":"Dropdown__menu",s&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:p}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({width:p,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+l,h&&"Button--disabled",C])},g,{onClick:function(){h&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,o.createVNode)(1,"span","Dropdown__selected-text",m,0),!!u||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,a.Icon,{name:N?"chevron-up":"chevron-down"}),2)]}))),b],0)},l}(o.Component);t.Dropdown=l},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var o=n(0),r=n(7),i=n(17);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var c=function(e){return(0,r.isFalsy)(e)?"":e},l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,i=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),i&&i(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=l.prototype;return s.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e),this.props.autofocus&&(t.focus(),t.selectionStart=0,t.selectionEnd=t.value.length))},s.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,i=this.inputRef.current;i&&!n&&o!==r&&(i.value=c(r))},s.setEditing=function(e){this.setState({editing:e})},s.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=(e.autofocus,e.disabled),l=e.multiline,s=e.cols,d=void 0===s?32:s,u=e.rows,p=void 0===u?4:u,m=a(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"]),h=m.className,f=m.fluid,C=a(m,["className","fluid"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Input",f&&"Input--fluid",c&&"Input--disabled",h])},C,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),l?(0,o.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:t,cols:d,rows:p,disabled:c},null,this.inputRef):(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t,disabled:c},null,this.inputRef)]})))},l}(o.Component);t.Input=l},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(0),r=n(15),i=n(7),a=n(23),c=n(17),l=n(189),s=n(139);t.Knob=function(e){if(a.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,d=e.maxValue,u=e.minValue,p=e.onChange,m=e.onDrag,h=e.step,f=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,N=e.value,b=e.className,V=e.style,v=e.fillValue,x=e.color,y=e.ranges,k=void 0===y?{}:y,w=e.size,_=e.bipolar,B=(e.children,e.popUpPosition),S=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:d,minValue:u,onChange:p,onDrag:m,step:h,stepPixelSize:f,suppressFlicker:C,unit:g,value:N},{children:function(e){var t=e.dragging,n=(e.editing,e.value),a=e.displayValue,l=e.displayElement,s=e.inputElement,p=e.handleDragStart,m=(0,r.scale)(null!=v?v:a,u,d),h=(0,r.scale)(a,u,d),f=x||(0,r.keyOfMatchingRange)(null!=v?v:n,k)||"default",C=270*(h-.5);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["Knob","Knob--color--"+f,_&&"Knob--bipolar",b,(0,c.computeBoxClassName)(S)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+C+"deg)"}}),2),t&&(0,o.createVNode)(1,"div",(0,i.classes)(["Knob__popupValue",B&&"Knob__popupValue--"+B]),l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((_?2.75:2)-1.5*m)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),s],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":w+"rem"},V)},S)),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(0),r=n(50);function i(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var a=function(e){var t=e.children,n=i(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=a;a.Item=function(e){var t=e.label,n=e.children,a=i(e,["label","children"]);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:1,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},a,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var o=n(0),r=n(2),i=n(1),a=n(64),c=n(190),l=n(185);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1},u=function(e){function t(t){var n;n=e.call(this,t)||this;var o=window.innerHeight/2-256;return n.state={offsetX:0,offsetY:o,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},n.handleDragStart=function(e){n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd),d(e)},n.handleDragMove=function(e){n.setState((function(t){var n=Object.assign({},t),o=e.screenX-n.originX,r=e.screenY-n.originY;return t.dragging?(n.offsetX+=o,n.offsetY+=r,n.originX=e.screenX,n.originY=e.screenY):n.dragging=!0,n})),d(e)},n.handleDragEnd=function(e){n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),d(e)},n.handleZoom=function(e,o){n.setState((function(e){var n=Math.min(Math.max(o,1),8),r=n/e.zoom;if(1!==r){e.zoom=n;var i=document.getElementsByClassName("NanoMap__container");if(i.length){var a=(0,l.getBoundingBox)(i[0]),c=a.size[0]/2-e.offsetX,s=a.size[1]/2-e.offsetY;e.offsetX+=c-c*r,e.offsetY+=s-s*r}return t.onZoom&&t.onZoom(e.zoom),e}}))},n}return s(t,e),t.prototype.render=function(){var e=(0,i.useBackend)(this.context).config,t=this.state,n=t.dragging,a=t.offsetX,c=t.offsetY,l=t.zoom,s=void 0===l?1:l,d=this.props.children,u=510*s+"px",p={width:u,height:u,"margin-top":c+"px","margin-left":a+"px",overflow:"hidden",position:"relative","background-image":"url("+e.map+"_nanomap_z1.png)","background-size":"cover","background-repeat":"no-repeat",border:"1px solid rgba(0, 0, 0, .3)","text-align":"center",cursor:n?"move":"auto"};return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:[(0,o.createComponentVNode)(2,r.Box,{style:p,textAlign:"center",onMouseDown:this.handleDragStart,children:(0,o.createComponentVNode)(2,r.Box,{children:d})}),(0,o.createComponentVNode)(2,h,{zoom:s,onZoom:this.handleZoom})]})},t}(o.Component);t.NanoMap=u;var p,m=function(e){function t(t){var n;n=e.call(this,t)||this;var o=(0,i.useBackend)(n.props.context).act;return n.state={color:n.props.color},n.handleClick=function(e){p!==undefined&&p.setState({color:"blue"}),o("switch_camera",{name:n.props.name}),p=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),n.setState({color:"green"})},n}return s(t,e),t.prototype.render=function(){var e=2*this.props.x*this.props.zoom-this.props.zoom-3,t=2*this.props.y*this.props.zoom-this.props.zoom-3;return(0,o.createComponentVNode)(2,r.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:t+"px",left:e+"px",children:(0,o.createComponentVNode)(2,r.Tooltip,{content:this.props.tooltip})},this.props.key)},t}(o.Component);u.NanoButton=m,u.Marker=function(e){var t=e.x,n=e.y,i=e.zoom,a=void 0===i?1:i,c=e.icon,l=e.tooltip,s=e.color,d=e.onClick,u=e.size,p=void 0===u?6:u,m=2*t*a-a-3,h=2*n*a-a-3;return(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:h+"px",left:m+"px",onClick:d,children:[(0,o.createComponentVNode)(2,r.Icon,{name:c,color:s,fontSize:p+"px"}),(0,o.createComponentVNode)(2,r.Tooltip,{content:l})]}),2)};var h=function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__zoomer",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Zoom",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(e){return e+"x"},value:e.zoom,onDrag:function(t,n){return e.onZoom(t,n)}})})})})};u.Zoomer=h},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(0),r=n(7),i=n(17),a=n(186);t.Modal=function(e){var t,n=e.className,c=e.children,l=e.onEnter,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */(e,["className","children","onEnter"]);return l&&(t=function(e){13===e.keyCode&&l(e)}),(0,o.createComponentVNode)(2,a.Dimmer,{onKeyDown:t,children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",n,(0,i.computeBoxClassName)(s)]),c,0,Object.assign({},(0,i.computeBoxProps)(s))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(0),r=n(7),i=n(17); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var a=function(e){var t=e.className,n=e.color,a=e.info,c=(e.warning,e.success),l=e.danger,s=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","color","info","warning","success","danger"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,a&&"NoticeBox--type--info",c&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",t])},s)))};t.NoticeBox=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBarCountdown=t.ProgressBar=void 0;var o=n(0),r=n(15),i=n(7),a=n(17);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var l=function(e){var t=e.className,n=e.value,l=e.minValue,s=void 0===l?0:l,d=e.maxValue,u=void 0===d?1:d,p=e.color,m=e.ranges,h=void 0===m?{}:m,f=e.children,C=e.fractionDigits,g=void 0===C?0:C,N=c(e,["className","value","minValue","maxValue","color","ranges","children","fractionDigits"]),b=(0,r.scale)(n,s,u),V=f!==undefined,v=p||(0,r.keyOfMatchingRange)(n,h)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,i.classes)(["ProgressBar","ProgressBar--color--"+v,t,(0,a.computeBoxClassName)(N)]),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,r.clamp01)(b)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",V?f:(0,r.toFixed)(100*b,g)+"%",0)],4,Object.assign({},(0,a.computeBoxProps)(N))))};t.ProgressBar=l,l.defaultHooks=i.pureComponentHooks;var s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:Math.max(100*t.current,0)},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=Math.max(this.state.value+this.props.rate,0);e<=0&&clearInterval(this.timer),this.setState((function(t){return{value:e}}))},i.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),this.props.rate)},i.componentWillUnmount=function(){clearInterval(this.timer)},i.render=function(){var e=this.props,t=e.start,n=(e.current,e.end),r=c(e,["start","current","end"]),i=(this.state.value/100-t)/(n-t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({value:i},r)))},r}(o.Component);t.ProgressBarCountdown=s,s.defaultProps={rate:1e3},l.Countdown=s},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(0),r=n(7),i=n(17); +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */ +var a=function(e){var t=e.className,n=e.title,a=e.level,c=void 0===a?1:a,l=e.buttons,s=e.content,d=e.stretchContents,u=e.noTopPadding,p=e.children,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","title","level","buttons","content","stretchContents","noTopPadding","children"]),h=!(0,r.isFalsy)(n)||!(0,r.isFalsy)(l),f=!(0,r.isFalsy)(s)||!(0,r.isFalsy)(p);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,r.classes)(["Section","Section--level--"+c,e.flexGrow&&"Section--flex",t])},m,{children:[h&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",l,0)],4),f&&(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["Section__content",!!d&&"Section__content--stretchContents",!!u&&"Section__content--noTopPadding"]),children:[s,p]})]})))};t.Section=a,a.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(0),r=n(7),i=n(50);function a(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var c=function(e){var t=e.className,n=e.vertical,c=e.fill,l=a(e,["className","vertical","fill"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex,Object.assign({className:(0,r.classes)(["Stack",c&&"Stack--fill",n?"Stack--vertical":"Stack--horizontal",t]),direction:n?"column":"row"},l)))};t.Stack=c;c.Item=function(e){var t=e.className,n=a(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item",t])},n)))};c.Divider=function(e){var t=e.className,n=e.hidden,c=a(e,["className","hidden"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Flex.Item,Object.assign({className:(0,r.classes)(["Stack__item","Stack__divider",n&&"Stack__divider--hidden",t])},c)))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(0),r=n(7),i=n(17),a=n(137);function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r} +/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var l=function(e){var t=e.className,n=e.vertical,a=e.children,l=c(e,["className","vertical","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,i.computeBoxClassName)(l)]),(0,o.createVNode)(1,"div","Tabs__tabBox",a,0),2,Object.assign({},(0,i.computeBoxProps)(l))))};t.Tabs=l;l.Tab=function(e){var t=e.className,n=e.selected,i=e.altSelection,l=c(e,["className","selected","altSelection"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({className:(0,r.classes)(["Tabs__tab",n&&"Tabs__tab--selected",i&&n&&"Tabs__tab--altSelection",t]),selected:!i&&n,color:"transparent"},l)))}},function(e,t,n){"use strict";t.__esModule=!0,t.TimeDisplay=void 0;t.TimeDisplay=function(e){var t=e.totalSeconds;return function(e){return(!e||e<0)&&(e=0),[Math.floor(e/60).toString(10),(Math.floor(e)%60).toString(10)].map((function(e){return e.length<2?"0"+e:e})).join(":")}(void 0===t?0:t)}},function(e,t,n){var o={"./AICard.js":460,"./AIFixer.js":461,"./APC.js":462,"./ATM.js":463,"./AccountsUplinkTerminal.js":464,"./AgentCard.js":465,"./AiAirlock.js":466,"./AirAlarm.js":467,"./AirlockAccessController.js":468,"./AirlockElectronics.js":469,"./AppearanceChanger.js":470,"./AtmosAlertConsole.js":471,"./AtmosControl.js":472,"./AtmosFilter.js":473,"./AtmosMixer.js":474,"./AtmosPump.js":475,"./Autolathe.js":476,"./Biogenerator.js":477,"./BlueSpaceArtilleryControl.js":478,"./BluespaceRiftScanner.js":479,"./BluespaceRiftServer.js":480,"./BluespaceTap.js":481,"./BodyScanner.js":482,"./BorgPanel.js":483,"./BotClean.js":484,"./BotSecurity.js":485,"./BrigCells.js":486,"./BrigTimer.js":487,"./CameraConsole.js":488,"./Canister.js":489,"./CardComputer.js":490,"./CargoConsole.js":491,"./Changelog.js":492,"./ChemDispenser.js":521,"./ChemHeater.js":525,"./ChemMaster.js":526,"./CloningConsole.js":527,"./CommunicationsComputer.js":528,"./Contractor.js":529,"./ConveyorSwitch.js":530,"./CrewMonitor.js":531,"./Cryo.js":532,"./CryopodConsole.js":534,"./DNAModifier.js":535,"./DestinationTagger.js":536,"./DisposalBin.js":537,"./DnaVault.js":538,"./EFTPOS.js":539,"./ERTManager.js":540,"./Electropack.js":541,"./EvolutionMenu.js":542,"./ExosuitFabricator.js":543,"./ExternalAirlockController.js":544,"./FaxMachine.js":545,"./FloorPainter.js":546,"./GPS.js":547,"./GasAnalyzer.js":548,"./GasFreezer.js":550,"./GenericCrewManifest.js":551,"./GhostHudPanel.js":552,"./HandheldChemDispenser.js":553,"./Instrument.js":554,"./ItemPixelShift.js":555,"./KeycardAuth.js":556,"./LaborClaimConsole.js":557,"./LawManager.js":558,"./MechBayConsole.js":559,"./MechaControlConsole.js":560,"./MedicalRecords.js":561,"./MiningVendor.js":562,"./Multitool.js":563,"./Newscaster.js":564,"./NinjaBloodScan.js":565,"./NinjaMindScan.js":566,"./NuclearBomb.js":567,"./OperatingComputer.js":568,"./Orbit.js":569,"./OreRedemption.js":570,"./PAI.js":571,"./PDA.js":588,"./PDAPainter.js":604,"./Pacman.js":605,"./PersonalCrafting.js":606,"./Photocopier.js":607,"./PodTracking.js":608,"./PoolController.js":609,"./PortablePump.js":610,"./PortableScrubber.js":611,"./PortableTurret.js":612,"./PowerMonitor.js":198,"./RCD.js":613,"./RPD.js":614,"./Radio.js":615,"./RequestConsole.js":616,"./RequestManager.js":617,"./RndConsole.js":67,"./RobotSelfDiagnosis.js":632,"./RoboticsControlConsole.js":633,"./Safe.js":634,"./SatelliteControl.js":635,"./SecureStorage.js":636,"./SecurityRecords.js":637,"./SeedExtractor.js":638,"./ShuttleConsole.js":639,"./ShuttleManipulator.js":640,"./Sleeper.js":641,"./SlotMachine.js":642,"./Smartfridge.js":643,"./Smes.js":644,"./SolarControl.js":645,"./SpawnersMenu.js":646,"./SpiderOS.js":647,"./StationAlertConsole.js":648,"./SuitStorage.js":649,"./SupermatterMonitor.js":650,"./SyndicateComputerSimple.js":651,"./SyndieCargoConsole.js":652,"./TTSSeedsExplorer.js":653,"./TachyonArray.js":654,"./Tank.js":655,"./TankDispenser.js":656,"./TcommsCore.js":657,"./TcommsRelay.js":658,"./Teleporter.js":659,"./ThiefKit.js":660,"./TransferValve.js":661,"./Uplink.js":662,"./VampireSpecMenu.js":663,"./VampireTrophiesStatus.js":664,"./Vending.js":665,"./VolumeMixer.js":666,"./VotePanel.js":667,"./Wires.js":668,"./Workshop.js":669};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=459},function(e,t,n){"use strict";t.__esModule=!0,t.AICard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AICard=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(0===l.has_ai)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var s=null;return s=l.integrity>=75?"green":l.integrity>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,l.name,0)}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:s,value:l.integrity/100})})})}),(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===l.flushing?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wipe",children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||0===l.integrity,confirmColor:"red",content:"Wipe AI",onClick:function(){return c("wipe")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AIFixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AIFixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;if(null===l.occupant)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createVNode)(1,"h3",null,"No artificial intelligence detected.",16)})})})});var s=null;s=2!==l.stat&&null!==l.stat;var d=null;d=l.integrity>=75?"green":l.integrity>=25?"yellow":"red";var u=null;return u=l.integrity>=100,(0,o.createComponentVNode)(2,a.Window,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:(0,o.createVNode)(1,"h3",null,l.occupant,0)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:d,value:l.integrity/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:s?"green":"red",children:s?"Functional":"Non-Functional"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",children:!!l.has_laws&&(0,o.createComponentVNode)(2,i.Box,{children:l.laws.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){return c("wireless")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){return c("radio")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Start Repairs",children:(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:u||l.active,content:u?"Already Repaired":"Repair",onClick:function(){return c("fix")}})})]}),(0,o.createComponentVNode)(2,i.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.APC=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.APC=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d)})})};var l={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.locked&&!d.siliconUser,p=(d.normallyLocked,l[d.externalPower]||l[0]),m=l[d.chargingStatus]||l[0],h=d.powerChannels||[],f=s[d.malfStatus]||s[0],C=d.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main Breaker",color:p.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){return a("breaker")}}),children:["[ ",p.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[h.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:!u&&(1===e.status||3===e.status),disabled:u,onClick:function(){return a("channel",t.auto)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:"On",selected:!u&&2===e.status,disabled:u,onClick:function(){return a("channel",t.on)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:!u&&0===e.status,disabled:u,onClick:function(){return a("channel",t.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Load",children:(0,o.createVNode)(1,"b",null,[d.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createFragment)([!!d.malfStatus&&(0,o.createComponentVNode)(2,i.Button,{icon:f.icon,content:f.content,color:"bad",onClick:function(){return a(f.action)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",selected:d.coverLocked,disabled:u,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",selected:d.nightshiftLights,onClick:function(){return a("toggle_nightshift")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Light Fallback",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:d.coverLocked?"lock":"unlock",content:d.emergencyLights?"Engaged":"Disengaged",selected:d.emergencyLights,disabled:u,onClick:function(){return a("emergency_lighting")}})})]})})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ATM=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ATM=function(e,t){var n,m=(0,r.useBackend)(t),h=(m.act,m.data),f=h.view_screen,C=h.authenticated_account,g=h.ticks_left_locked_down,N=h.linked_db;if(g>0)n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(N)if(C)switch(f){case 1:n=(0,o.createComponentVNode)(2,l);break;case 2:n=(0,o.createComponentVNode)(2,s);break;case 3:n=(0,o.createComponentVNode)(2,p);break;default:n=(0,o.createComponentVNode)(2,d)}else n=(0,o.createComponentVNode)(2,u);else n=(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Section,{children:n})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.machine_id,s=c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,o.createComponentVNode)(2,i.Box,{children:"For all your monetary need!"}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:"info-circle"})," This terminal is ",(0,o.createVNode)(1,"i",null,l,0),", report this code when contacting Nanotrasen IT Support."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card",children:(0,o.createComponentVNode)(2,i.Button,{content:s,icon:"eject",onClick:function(){return a("insert_card")}})})})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.security_level;return(0,o.createComponentVNode)(2,i.Section,{title:"Select a new security level for this account",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Zero",icon:"unlock",selected:0===c,onClick:function(){return a("change_security_level",{new_security_level:0})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card and ask for a pin, but not verify the pin is correct."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"One",icon:"unlock",selected:1===c,onClick:function(){return a("change_security_level",{new_security_level:1})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:(0,o.createComponentVNode)(2,i.Button,{content:"Two",selected:2===c,icon:"unlock",onClick:function(){return a("change_security_level",{new_security_level:2})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:"In addition to account number and pin, a card is required to access this account and process transactions."})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"targetAccNumber",0),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"fundsAmount",0),p=u[0],h=u[1],f=(0,r.useLocalState)(t,"purpose",0),C=f[0],g=f[1],N=c.money;return(0,o.createComponentVNode)(2,i.Section,{title:"Transfer Fund",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",N]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target account number",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Funds to transfer",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transaction Purpose",children:(0,o.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(e,t){return g(t)}})})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){return a("transfer",{target_acc_number:s,funds_amount:p,purpose:C})}}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"fundsAmount",0),s=l[0],d=l[1],u=c.owner_name,p=c.money;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Welcome, "+u,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){return a("logout")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account Balance",children:["$",p]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Withdrawal Amount",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Withdraw Fund",icon:"sign-out-alt",onClick:function(){return a("withdrawal",{funds_amount:s})}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change account security level",icon:"lock",onClick:function(){return a("view_screen",{view_screen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){return a("view_screen",{view_screen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View transaction log",icon:"list",onClick:function(){return a("view_screen",{view_screen:3})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print balance statement",icon:"print",onClick:function(){return a("balance_statement")}})})]})],4)},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"accountID",null),s=l[0],d=l[1],u=(0,r.useLocalState)(t,"accountPin",null),p=u[0],m=u[1];c.machine_id,c.held_card_name;return(0,o.createComponentVNode)(2,i.Section,{title:"Insert card or enter ID and pin to login",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Account ID",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return d(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pin",children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"6 Digit Number",onInput:function(e,t){return m(t)}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){return a("attempt_auth",{account_num:s,account_pin:p})}})})]})})},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.transaction_log);return(0,o.createComponentVNode)(2,i.Section,{title:"Transactions",children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Terminal"})]}),a.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{p:"1rem",children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.source_terminal})]},e)}))]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,m)]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){return a("view_screen",{view_screen:0})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AccountsUplinkTerminal=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(140),d=n(141);t.AccountsUplinkTerminal=function(e,t){var n,r=(0,i.useBackend)(t),a=(r.act,r.data),c=a.loginState,p=a.currentPage;return c.logged_in?(1===p?n=(0,o.createComponentVNode)(2,u):2===p?n=(0,o.createComponentVNode)(2,h):3===p&&(n=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s.LoginInfo),n]})})):(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var u=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.accounts,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","owner_name")),h=u[0],f=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),C=f[0];f[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Flex.Item,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",children:(0,o.createComponentVNode)(2,a.Table,{className:"AccountsUplinkTerminal__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,p,{id:"owner_name",children:"Account Holder"}),(0,o.createComponentVNode)(2,p,{id:"account_number",children:"Account Number"}),(0,o.createComponentVNode)(2,p,{id:"suspended",children:"Account Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.owner_name+"|"+e.account_number+"|"+e.suspended}))).sort((function(e,t){var n=C?1:-1;return e[h].localeCompare(t[h])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{onClick:function(){return c("view_account_detail",{index:e.account_index})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.owner_name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["#",e.account_number]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.suspended})]},e.id)}))]})})})]})},p=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.is_printing,s=(0,i.useLocalState)(t,"searchText",""),d=(s[0],s[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Account",icon:"plus",onClick:function(){return r("create_new_account")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account List",disabled:l,ml:"0.25rem",onClick:function(){return r("print_records")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(e,t){return d(t)}})})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.is_printing,s=c.account_number,d=c.owner_name,u=c.money,p=c.suspended,m=c.transactions;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"#"+s+" / "+d,mt:1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Account Details",disabled:l,onClick:function(){return r("print_account_details")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Balance",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Status",color:p?"red":"green",children:[p?"Suspended":"Active",(0,o.createComponentVNode)(2,a.Button,{ml:1,content:p?"Unsuspend":"Suspend",icon:p?"unlock":"lock",onClick:function(){return r("toggle_suspension")}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Transactions",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Terminal"})]}),m.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:["$",e.amount]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source_terminal})]},e)}))]})})],4)},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,(0,i.useLocalState)(t,"accName","")),l=c[0],s=c[1],d=(0,i.useLocalState)(t,"accDeposit",""),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Create Account",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("back")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name Here",onChange:function(e,t){return s(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"0",onChange:function(e,t){return p(t)}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){return r("finalise_create_account",{holder_name:l,starting_funds:u})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AgentCardSLSlots=t.AgentCardAppearances=t.AgentCardInfo=t.AgentCard=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AgentCard=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return(0,o.createComponentVNode)(2,c)}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.registered_name,s=c.sex,d=c.age,u=c.assignment,p=c.associated_account_number,m=c.blood_type,h=c.dna_hash,f=c.fingerprint_hash,C=c.photo,g=c.ai_tracking;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Card Info",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"[UNSET]",onClick:function(){return a("change_name")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sex",children:(0,o.createComponentVNode)(2,i.Button,{iconRight:!1,content:s||"[UNSET]",onClick:function(){return a("change_sex")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Age",children:(0,o.createComponentVNode)(2,i.Button,{content:d||"[UNSET]",onClick:function(){return a("change_age")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,i.Button,{content:u||"[UNSET]",onClick:function(){return a("change_occupation")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fingerprints",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"[UNSET]",onClick:function(){return a("change_fingerprints")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Type",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"[UNSET]",onClick:function(){return a("change_blood_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"DNA Hash",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"[UNSET]",onClick:function(){return a("change_dna_hash")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Money Account",children:(0,o.createComponentVNode)(2,i.Button,{content:p||"[UNSET]",onClick:function(){return a("change_money_account")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Photo",children:(0,o.createComponentVNode)(2,i.Button,{content:C?"Update":"[UNSET]",onClick:function(){return a("change_photo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Card Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Card Info",children:(0,o.createComponentVNode)(2,i.Button,{content:"Delete Card Info",onClick:function(){return a("delete_info")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access",children:(0,o.createComponentVNode)(2,i.Button,{content:"Reset Access",onClick:function(){return a("clear_access")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"AI Tracking",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Untrackable":"Trackable",onClick:function(){return a("change_ai_tracking")}})})]})})],4)};t.AgentCardInfo=c;var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.appearances;return(0,o.createComponentVNode)(2,i.Section,{title:"Card Appearance",children:c.map((function(e){return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+e.image,style:{"vertical-align":"middle",width:"64px",margin:"0px","margin-left":"0px"},onclick:function(){return a("change_appearance_new",{new_appearance:e.name})}},e.name)}))})};t.AgentCardAppearances=l;var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.saved_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.registered_name?e.registered_name+", "+e.assignment:"Slot "+e.id,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Clear",onClick:function(){return a("clear_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Save",onClick:function(){return a("save_slot",{slot:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",disabled:!e.registered_name,onClick:function(){return a("load_slot",{slot:e.id})}})],4)},e.id)}))})})};t.AgentCardSLSlots=s},function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}};t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=c[s.power.main]||c[0],u=c[s.power.backup]||c[0],p=c[s.shock]||c[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Main",color:d.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[s.power.main?"Online":"Offline"," ",s.wires.main_power?s.power.main_timeleft>0&&"["+s.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb-o",disabled:!s.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[s.power.backup?"Online":"Offline"," ",s.wires.backup_power?s.power.backup_timeleft>0&&"["+s.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Electrify",color:p.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"wrench",disabled:!(s.wires.shock&&2!==s.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bolt",disabled:!s.wires.shock||0===s.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===s.shock?"Safe":"Electrified"," ",(s.wires.shock?s.shock_timeleft>0&&"["+s.shock_timeleft+"s]":"[Wires have been cut!]")||-1===s.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.id_scanner?"power-off":"times",content:s.id_scanner?"Enabled":"Disabled",selected:s.id_scanner,disabled:!s.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!s.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.emergency?"power-off":"times",content:s.emergency?"Enabled":"Disabled",selected:s.emergency,onClick:function(){return l("emergency-toggle")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.locked?"lock":"unlock",content:s.locked?"Lowered":"Raised",selected:s.locked,disabled:!s.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!s.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.lights?"power-off":"times",content:s.lights?"Enabled":"Disabled",selected:s.lights,disabled:!s.wires.lights,onClick:function(){return l("light-toggle")}}),children:!s.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.safe?"power-off":"times",content:s.safe?"Enabled":"Disabled",selected:s.safe,disabled:!s.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!s.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.speed?"power-off":"times",content:s.speed?"Enabled":"Disabled",selected:s.speed,disabled:!s.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!s.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,i.LabeledList.Divider),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s.opened?"sign-out-alt":"sign-in-alt",content:s.opened?"Open":"Closed",selected:s.opened,disabled:s.locked||s.welded,onClick:function(){return l("open-close")}}),children:!(!s.locked&&!s.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),s.locked?"bolted":"",s.locked&&s.welded?" and ":"",s.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(192);t.AirAlarm=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.locked);return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox),!i&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u)],4)]})})};var l=function(e){return 0===e?"green":1===e?"orange":"red"},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,s=a.data,d=s.air,u=s.mode,p=s.atmos_alarm,m=s.locked,h=s.alarmActivated,f=s.rcon,C=s.target_temp;return n=0===d.danger.overall?0===p?"Optimal":"Caution: Atmos alert in area":1===d.danger.overall?"Caution":"DANGER: Internals Required",(0,o.createComponentVNode)(2,i.Section,{title:"Air Status",children:d?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.pressure),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.pressure})," kPa",!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:3===u?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:3===u,icon:"exclamation-triangle",onClick:function(){return c("mode",{mode:3===u?1:3})}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.oxygen/100,fractionDigits:"1",color:l(d.danger.oxygen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.nitrogen/100,fractionDigits:"1",color:l(d.danger.nitrogen)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.co2/100,fractionDigits:"1",color:l(d.danger.co2)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxins",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.plasma/100,fractionDigits:"1",color:l(d.danger.plasma)})}),d.contents.other>.1&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.contents.other/100,fractionDigits:"1",color:l(d.danger.other)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.temperature),children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature})," K / ",(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.temperature_c})," C\xa0",(0,o.createComponentVNode)(2,i.Button,{icon:"thermometer-full",content:C+" C",onClick:function(){return c("temperature")}}),(0,o.createComponentVNode)(2,i.Button,{content:d.thermostat_state?"On":"Off",selected:d.thermostat_state,icon:"power-off",onClick:function(){return c("thermostat_state")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Local Status",children:(0,o.createComponentVNode)(2,i.Box,{color:l(d.danger.overall),children:[n,!m&&(0,o.createFragment)([(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,i.Button,{content:h?"Reset Alarm":"Activate Alarm",selected:h,onClick:function(){return c(h?"atmos_reset":"atmos_alarm")}})],4)]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Control Settings",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Off",selected:1===f,onClick:function(){return c("set_rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Auto",selected:2===f,onClick:function(){return c("set_rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,i.Button,{content:"On",selected:3===f,onClick:function(){return c("set_rcon",{rcon:3})}})]})]}):(0,o.createComponentVNode)(2,i.Box,{children:"Unable to acquire air sample!"})})},d=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),a=n[0],c=n[1];return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===a,onClick:function(){return c(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===a,onClick:function(){return c(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===a,onClick:function(){return c(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog"})," Mode"]},"Mode"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===a,onClick:function(){return c(3)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},u=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),i=n[0];n[1];switch(i){case 0:return(0,o.createComponentVNode)(2,p);case 1:return(0,o.createComponentVNode)(2,m);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.vents.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"release"===e.direction?"Blowing":"Siphoning",icon:"release"===e.direction?"sign-out-alt":"sign-in-alt",onClick:function(){return a("command",{cmd:"direction",val:"release"===e.direction?0:1,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure Checks",children:[(0,o.createComponentVNode)(2,i.Button,{content:"External",selected:1===e.checks,onClick:function(){return a("command",{cmd:"checks",val:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Internal",selected:2===e.checks,onClick:function(){return a("command",{cmd:"checks",val:2,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Pressure Target",children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:e.external})," kPa\xa0",(0,o.createComponentVNode)(2,i.Button,{content:"Set",icon:"cog",onClick:function(){return a("command",{cmd:"set_external_pressure",id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset",icon:"redo-alt",onClick:function(){return a("command",{cmd:"set_external_pressure",val:101.325,id_tag:e.id_tag})}})]})]})},e.name)}))},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act;return n.data.scrubbers.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return a("command",{cmd:"power",val:1===e.power?0:1,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:0===e.scrubbing?"Siphoning":"Scrubbing",icon:0===e.scrubbing?"sign-in-alt":"filter",onClick:function(){return a("command",{cmd:"scrubbing",val:0===e.scrubbing?1:0,id_tag:e.id_tag})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,i.Button,{content:e.widenet?"Extended":"Normal",selected:e.widenet,icon:"expand-arrows-alt",onClick:function(){return a("command",{cmd:"widenet",val:0===e.widenet?1:0,id_tag:e.id_tag})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filtering",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Carbon Dioxide",selected:e.filter_co2,onClick:function(){return a("command",{cmd:"co2_scrub",val:0===e.filter_co2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Plasma",selected:e.filter_toxins,onClick:function(){return a("command",{cmd:"tox_scrub",val:0===e.filter_toxins?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrous Oxide",selected:e.filter_n2o,onClick:function(){return a("command",{cmd:"n2o_scrub",val:0===e.filter_n2o?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Oxygen",selected:e.filter_o2,onClick:function(){return a("command",{cmd:"o2_scrub",val:0===e.filter_o2?1:0,id_tag:e.id_tag})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Nitrogen",selected:e.filter_n2,onClick:function(){return a("command",{cmd:"n2_scrub",val:0===e.filter_n2?1:0,id_tag:e.id_tag})}})]})]})},e.name)}))},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.modes,s=c.presets,d=c.emagged,u=c.mode,p=c.preset;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"System Mode",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){return(!e.emagonly||e.emagonly&&!!d)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===u,onClick:function(){return a("mode",{mode:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"System Presets",children:[(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,o.createComponentVNode)(2,i.Table,{mt:1,children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"right",width:1,children:(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:"cog",selected:e.id===p,onClick:function(){return a("preset",{preset:e.id})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.desc})]},e.name)}))})]})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.thresholds;return(0,o.createComponentVNode)(2,i.Section,{title:"Alarm Thresholds",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Value"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),e.settings.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:-1===e.selected?"Off":e.selected,onClick:function(){return a("command",{cmd:"set_threshold",env:e.env,"var":e.val})}})},e.val)}))]},e.name)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockAccessController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AirlockAccessController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.exterior_status,p=d.interior_status,m=d.processing;return n="open"===d.exterior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:m,onClick:function(){return s("force_ext")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext_door")}}),c="open"===d.interior_status.state?(0,o.createComponentVNode)(2,i.Button,{content:"Lock Interior Door",icon:"exclamation-triangle",disabled:m,color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}}):(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int_door")}}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Door Status",children:"closed"===u.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Door Status",children:"closed"===p.state?"Locked":"Open"})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:c})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(99);t.AirlockElectronics=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,s)]})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.unrestricted_dir;return(0,o.createComponentVNode)(2,i.Section,{title:"Access Control",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:"north"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"North"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:"south"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"South"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:"east"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"East"})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:"west"===c?"selected":null,onClick:function(){return a("unrestricted_access",{unres_dir:"West"})}})})]})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.selected_accesses,d=l.one_access,u=l.regions;return(0,o.createComponentVNode)(2,c.AccessList,{usedByRcd:1,rcdButtons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:d,content:"One",onClick:function(){return a("set_one_access",{access:"one"})}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,content:"All",onClick:function(){return a("set_one_access",{access:"all"})}})],4),accesses:u,selectedList:s,accessMod:function(e){return a("set",{access:e})},grantAll:function(){return a("grant_all")},denyAll:function(){return a("clear_all")},grantDep:function(e){return a("grant_region",{region:e})},denyDep:function(e){return a("deny_region",{region:e})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AppearanceChanger=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AppearanceChanger=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.change_race,u=s.species,p=s.specimen,m=s.change_gender,h=s.gender,f=s.has_gender,C=s.change_eye_color,g=s.change_skin_tone,N=s.change_skin_color,b=s.change_head_accessory_color,V=s.change_hair_color,v=s.change_secondary_hair_color,x=s.change_facial_hair_color,y=s.change_secondary_facial_hair_color,k=s.change_head_marking_color,w=s.change_body_marking_color,_=s.change_tail_marking_color,B=s.change_head_accessory,S=s.head_accessory_styles,L=s.head_accessory_style,A=s.change_hair,E=s.hair_styles,I=s.hair_style,D=s.change_hair_gradient,T=s.change_facial_hair,F=s.facial_hair_styles,M=s.facial_hair_style,P=s.change_head_markings,O=s.head_marking_styles,R=s.head_marking_style,j=s.change_body_markings,U=s.body_marking_styles,z=s.body_marking_style,W=s.change_tail_markings,H=s.tail_marking_styles,K=s.tail_marking_style,Y=s.change_body_accessory,G=s.body_accessory_styles,q=s.body_accessory_style,X=s.change_alt_head,J=s.alt_head_styles,$=s.alt_head_style,Z=!1;return(C||g||N||b||V||v||x||y||k||w||_)&&(Z=!0),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:e.specimen===p,onClick:function(){return l("race",{race:e.specimen})}},e.specimen)}))}),!!m&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Male",selected:"male"===h,onClick:function(){return l("gender",{gender:"male"})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Female",selected:"female"===h,onClick:function(){return l("gender",{gender:"female"})}}),!f&&(0,o.createComponentVNode)(2,i.Button,{content:"Genderless",selected:"plural"===h,onClick:function(){return l("gender",{gender:"plural"})}})]}),!!Z&&(0,o.createComponentVNode)(2,c),!!B&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head accessory",children:S.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headaccessorystyle,selected:e.headaccessorystyle===L,onClick:function(){return l("head_accessory",{head_accessory:e.headaccessorystyle})}},e.headaccessorystyle)}))}),!!A&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair",children:E.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.hairstyle,selected:e.hairstyle===I,onClick:function(){return l("hair",{hair:e.hairstyle})}},e.hairstyle)}))}),!!D&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Gradient",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Change Style",onClick:function(){return l("hair_gradient")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Offset",onClick:function(){return l("hair_gradient_offset")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Color",onClick:function(){return l("hair_gradient_colour")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Alpha",onClick:function(){return l("hair_gradient_alpha")}})]}),!!T&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial hair",children:F.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.facialhairstyle,selected:e.facialhairstyle===M,onClick:function(){return l("facial_hair",{facial_hair:e.facialhairstyle})}},e.facialhairstyle)}))}),!!P&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Head markings",children:O.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.headmarkingstyle,selected:e.headmarkingstyle===R,onClick:function(){return l("head_marking",{head_marking:e.headmarkingstyle})}},e.headmarkingstyle)}))}),!!j&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body markings",children:U.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodymarkingstyle,selected:e.bodymarkingstyle===z,onClick:function(){return l("body_marking",{body_marking:e.bodymarkingstyle})}},e.bodymarkingstyle)}))}),!!W&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail markings",children:H.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.tailmarkingstyle,selected:e.tailmarkingstyle===K,onClick:function(){return l("tail_marking",{tail_marking:e.tailmarkingstyle})}},e.tailmarkingstyle)}))}),!!Y&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Body accessory",children:G.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.bodyaccessorystyle,selected:e.bodyaccessorystyle===q,onClick:function(){return l("body_accessory",{body_accessory:e.bodyaccessorystyle})}},e.bodyaccessorystyle)}))}),!!X&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alternate head",children:J.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.altheadstyle,selected:e.altheadstyle===$,onClick:function(){return l("alt_head",{alt_head:e.altheadstyle})}},e.altheadstyle)}))})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Colors",children:[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}].map((function(e){return!!c[e.key]&&(0,o.createComponentVNode)(2,i.Button,{content:e.text,onClick:function(){return a(e.action)}},e.key)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.priority||[],d=l.minor||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===s.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"bad",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})),0===d.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:e,color:"average",onClick:function(){return c("clear",{zone:e})}}),2,null,e)}))],0)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(80),c=n(3);t.AtmosControl=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data,(0,r.useLocalState)(t,"tabIndex",0)),d=a[0],u=a[1];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.alarms;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Access"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,a.TableCell,{children:e.name}),(0,o.createComponentVNode)(2,a.TableCell,{children:(t=e.danger,0===t?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Good"}):1===t?(0,o.createComponentVNode)(2,i.Box,{color:"orange",bold:!0,children:"Warning"}):2===t?(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"DANGER"}):void 0)}),(0,o.createComponentVNode)(2,a.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Access",onClick:function(){return c("open_alarm",{aref:e.ref})}})})]},e.name);var t}))]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=(0,r.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=c.alarms,p=c.stationLevel;return(0,o.createComponentVNode)(2,i.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,i.NanoMap,{onZoom:function(e){return d(e)},children:u.filter((function(e){return e.z===p})).map((function(e){return(0,o.createComponentVNode)(2,i.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:"circle",tooltip:e.name,color:(t=e.danger,0===t?"green":1===t?"orange":2===t?"red":void 0),onClick:function(){return a("open_alarm",{aref:e.ref})}},e.ref);var t}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.max_pressure,p=l.filter_type,m=l.filter_type_list;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_pressure")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filter",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gas_type===p,content:e.label,onClick:function(){return c("set_filter",{filter:e.gas_type})}},e.label)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.on,u=s.pressure,p=s.max_pressure,m=s.node1_concentration,h=s.node2_concentration;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===u,width:2.2,onClick:function(){return l("min_pressure")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:p,value:u,onDrag:function(e,t){return l("custom_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:u===p,width:2.2,onClick:function(){return l("max_pressure")}})]}),(0,o.createComponentVNode)(2,c,{node_name:"Node 1",node_ref:m}),(0,o.createComponentVNode)(2,c,{node_name:"Node 2",node_ref:h})]})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.node_name),l=e.node_ref;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:c,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:0===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l-10)/100})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(e,t){return a("set_node",{node_name:c,concentration:t/100})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:100===l,onClick:function(){return a("set_node",{node_name:c,concentration:(l+10)/100})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.rate,u=l.max_rate,p=l.gas_unit,m=l.step;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Rate",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",textAlign:"center",disabled:0===d,width:2.2,onClick:function(){return c("min_rate")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:p,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:d,onDrag:function(e,t){return c("custom_rate",{rate:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){return c("max_rate")}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Autolathe=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=n(18),d=function(e,t,n,o){return null===e.requirements||!(e.requirements.metal*o>t)&&!(e.requirements.glass*o>n)};t.Autolathe=function(e,t){var n=(0,a.useBackend)(t),u=n.act,p=n.data,m=p.total_amount,h=(p.max_amount,p.metal_amount),f=p.glass_amount,C=p.busyname,g=(p.busyamt,p.showhacked,p.buildQueue),N=p.buildQueueLen,b=p.recipes,V=p.categories,v=(0,a.useSharedState)(t,"category",0),x=v[0],y=v[1];0===x&&(x="Tools");var k=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),_=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),B=(0,a.useSharedState)(t,"search_text",""),S=B[0],L=B[1],A=(0,s.createSearch)(S,(function(e){return e.name})),E="";N>0&&(E=g.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:g[t][0],onClick:function(){return u("remove_from_queue",{remove_from_queue:g.indexOf(e)+1})}},e)},t)})));var I=(0,r.flow)([(0,i.filter)((function(e){return(e.category.indexOf(x)>-1||S)&&(p.showhacked||!e.hacked)})),S&&(0,i.filter)(A),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(b),D="Build";S?D="Results for: '"+S+"':":x&&(D="Build ("+x+")");return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Section,{title:D,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:V,selected:x,onSelected:function(e){return y(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return L(t)},mb:1}),I.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&1===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,1),onClick:function(){return u("make",{make:e.uid,multiplier:1})},children:(0,s.toTitleCase)(e.name)}),e.max_multiplier>=10&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&10===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,10),onClick:function(){return u("make",{make:e.uid,multiplier:10})},children:"10x"}),e.max_multiplier>=25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&25===p.busyamt,disabled:!d(e,p.metal_amount,p.glass_amount,25),onClick:function(){return u("make",{make:e.uid,multiplier:25})},children:"25x"}),e.max_multiplier>25&&(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",selected:p.busyname===e.name&&p.busyamt===e.max_multiplier,disabled:!d(e,p.metal_amount,p.glass_amount,e.max_multiplier),onClick:function(){return u("make",{make:e.uid,multiplier:e.max_multiplier})},children:[e.max_multiplier,"x"]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,s.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,c.Box,{children:"No resources required."})})]},e.ref)}))]}),2,{style:{float:"left",width:"68%"}}),(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:k}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Glass",children:w}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total",children:_}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Storage",children:[p.fill_percent,"% Full"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Building",children:(0,o.createComponentVNode)(2,c.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Build Queue",children:[E,(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Clear All",disabled:!p.buildQueueLen,onClick:function(){return u("clear_queue")}}),2,{align:"right"})]})],4,{style:{float:"right",width:"30%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Biogenerator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Biogenerator=function(){return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d)]})})};var c=function(e,t){if((0,r.useBackend)(t).data.processing)return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.createComponentVNode)(2,i.Flex,{mb:"30px",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,o.createVNode)(1,"br"),"The biogenerator is processing..."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.biomass,l=a.container,s=a.container_curr_reagents,d=a.container_max_reagents;return(0,o.createComponentVNode)(2,i.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"5px",children:c}),(0,o.createComponentVNode)(2,i.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex,{height:"21px",mt:"8px",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mr:"10px",color:"silver",children:"Container:"}),l?(0,o.createComponentVNode)(2,i.ProgressBar,{value:s,maxValue:d,children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:s+" / "+d+" units"})}):(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"None"})})]})]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_plants,s=c.container;return(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-right",content:"Activate",onClick:function(){return a("activate")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",mr:"3px",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!s,tooltip:s?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){return a("detach_container")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-left",content:"Eject Plants",onClick:function(){return a("eject_plants")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.biomass,s=c.product_list,d=c.container,u=(0,r.useSharedState)(t,"vendAmount",1),p=u[0],m=u[1],h=Object.entries(s).map((function(e,t){var n=Object.entries(e[1]).map((function(e){return e[1]}));return(0,o.createComponentVNode)(2,i.Collapsible,{title:e[0],open:!0,children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{py:"2px",className:"candystripe",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",ml:"2px",children:e.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"20%",children:[e.cost*p,(0,o.createComponentVNode)(2,i.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",width:"40%",children:e.needs_container&&!d?(0,o.createComponentVNode)(2,i.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438",tooltipPosition:"top-left"}):(0,o.createComponentVNode)(2,i.Button,{content:"Vend",disabled:l0?Math.floor(c/u):0,f=d?"@?%%!\u2116@"+u:u,C=c>=u,g=p-p%5+(p%5>0?5:0);return(0,o.createComponentVNode)(2,i.Section,{title:"\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0420\u0430\u0437\u043b\u043e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:n}),(0,o.createComponentVNode)(2,i.ProgressBar,{color:0===m?"bad":m<100?"average":"good",value:a,maxValue:r,mt:1,mb:2,children:[m<=100?m:100," %"]}),(0,o.createComponentVNode)(2,i.Box,{children:["\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f: ",(0,o.createComponentVNode)(2,i.Box,{color:c?C?"good":"average":"bad",as:"span",children:Math.floor(c)}),(0,o.createComponentVNode)(2,i.Button,{icon:"atom",tooltip:"\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043e\u043d\u0434\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c "+f+" \u0434\u0430\u043d\u043d\u044b\u0445.",content:p>0?"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 "+g+" \u0441\u0435\u043a\u0443\u043d\u0434":"\u0417\u043e\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c ("+h+")",disabled:!C||p>0,onClick:function(){return l("probe",{rift_id:t})},mx:2}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,textAlign:"center",content:s?"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",disabled:s||m<100,onClick:function(){return l("reward",{rift_id:t})},mt:1.4})]})]})}(e)})),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043a\u0430\u043d\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:f&&f.map((function(e){return function(e){var t=e.scannerId,n=e.scannerName,r=e.scanStatus,a=e.canSwitch,s=e.switching,d=c[r],u="OFF"===d?[" ","silver"]:"NO_RIFTS"===d?["\u041d\u0435\u0442 \u0440\u0430\u0437\u043b\u043e\u043c\u043e\u0432","silver"]:"SOME_RIFTS"===d?["\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442","good"]:"DANGER"===d?["\u041e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c! \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u043a\u0430\u043d\u0435\u0440!","bad"]:void 0;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n,py:0,children:[s?(0,o.createComponentVNode)(2,i.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):a?(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:"OFF"===d?"bad":"good",onClick:function(){return l("toggle_scanner",{scanner_id:t})},ml:1,mr:1}):(0,o.createComponentVNode)(2,i.Icon,{name:"power-off",color:"OFF"===d?"bad":"good",ml:1.85,mr:1.79,my:.84}),"OFF"!==d&&(0,o.createComponentVNode)(2,i.Box,{as:"span",color:u[1],children:u[0]})]})}(e)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044b \u0432 \u0441\u0435\u0442\u0438",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:h&&h.map((function(e){return function(e){var t=e.servName,n=e.servData;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n.length?n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{children:[e.riftName," \u2014 ",Math.floor(e.probePoints)," \u0434\u0430\u043d\u043d\u044b\u0445."]},t)})):(0,o.createComponentVNode)(2,i.Box,{children:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"})})}(e)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceTap=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.BluespaceTap=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.product||[],u=s.desiredLevel,p=s.inputLevel,m=s.points,h=s.totalPoints,f=s.powerUse,C=s.availablePower,g=s.maxLevel,N=s.emagged,b=s.safeLevels,V=s.nextLevelPower,v=u>p?"bad":"good";return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!N&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),!!(p>b)&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,o.createComponentVNode)(2,i.Collapsible,{title:"Input Management",children:(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Level",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Desired Level",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===u,tooltip:"Set to 0",onClick:function(){return l("set",{set_level:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:0===u,onClick:function(){return l("set",{set_level:p})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===u,tooltip:"Decrease one step",onClick:function(){return l("decrease")}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:u,fillValue:p,minValue:0,color:v,maxValue:g,stepPixelSize:20,step:1,onChange:function(e,t){return l("set",{set_level:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:u===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){return l("increase")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:u===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){return l("set",{set_level:g})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Power Use",children:(0,c.formatPower)(f)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power for next level",children:(0,c.formatPower)(V)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Surplus Power",children:(0,c.formatPower)(C)})]})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Points",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Points",children:h})]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"end",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{disabled:e.price>=m,onClick:function(){return l("vend",{target:e.key})},content:e.price})},e.key)}))})})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],d=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},p=function(e,t){for(var n=[],o=0;o0?e.filter((function(e){return!!e})).reduce((function(e,t){return(0,o.createFragment)([e,(0,o.createComponentVNode)(2,a.Box,{children:t},t)],0)}),null):null},h=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,i.useBackend)(t).data,r=n.occupied,a=n.occupant,l=void 0===a?{}:a,s=r?(0,o.createComponentVNode)(2,f,{occupant:l}):(0,o.createComponentVNode)(2,x);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:s})})};var f=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,C,{occupant:t}),(0,o.createComponentVNode)(2,g,{occupant:t}),(0,o.createComponentVNode)(2,N,{occupant:t}),(0,o.createComponentVNode)(2,V,{organs:t.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:t.intOrgan})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print_p")},children:"Print Report"}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return c("ejectify")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants",children:s.implant_len?(0,o.createComponentVNode)(2,a.Box,{children:s.implant.map((function(e){return e.name})).join(", ")}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"None"})})]})})},g=function(e){var t=e.occupant;return t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:s.map((function(e,n){if(t[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2]},n)}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},N=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:p(d,(function(e,n,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,b,{value:t[e[1]],marginBottom:r100)&&"average":"bad")||!!e.status.robotic&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",q:!0,children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,mt:t>0&&"0.5rem",value:e.totalLoss/e.maxHealth,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",display:"inline",children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([!!e.internalBleeding&&"Internal bleeding",!!e.lungRuptured&&"Ruptured lung",!!e.status.broken&&e.status.broken,h(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[m([!!e.status.splinted&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Splinted"}),!!e.status.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})]),m(e.shrapnel.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:(!e.dead?e.germ_level>100&&"average":"bad")||e.robotic>0&&"label",width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/e.maxHealth,mt:t>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:t>0&&"calc(0.5rem + 2px)",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:m([h(e.germ_level)])}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:m([1===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Robotic"}),2===e.robotic&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Assisted"}),!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},t)}))]})})},x=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.borg||{},d=l.cell||{},u=d.charge/d.maxcharge,p=l.channels||[],m=l.modules||[],h=l.upgrades||[],f=l.ais||[],C=l.laws||[];return(0,o.createComponentVNode)(2,a.Window,{title:"Borg Panel",width:700,height:700,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:s.emagged?"check-square-o":"square-o",content:"Emagged",selected:s.emagged,onClick:function(){return c("toggle_emagged")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:s.lockdown,onClick:function(){return c("toggle_lockdown")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:s.scrambledcodes,onClick:function(){return c("toggle_scrambledcodes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Reset Module",onClick:function(){return c("reset_module")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge",children:[d.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,i.ProgressBar,{value:u,children:d.charge+" / "+d.maxcharge}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("set_charge")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Change",onClick:function(){return c("change_cell")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return c("remove_cell")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radio Channels",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Model",children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:s.active_module===e.name?"check-square-o":"square-o",content:e.name+" module",selected:s.active_module===e.name,onClick:function(){return c("setmodule",{module:e.name})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Upgrades",children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:f.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return c("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Laws",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Law Manager",selected:s.lawmanager,onClick:function(){return c("lawmanager")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:s.lawupdate,onClick:function(){return c("toggle_lawupdate")}})],4),children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotClean=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotClean=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.cleanblood;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Cleaning Settings",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){return c("blood")}})}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BotSecurity=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BotSecurity=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.locked,d=l.noaccess,u=l.maintpanel,p=l.on,m=l.autopatrol,h=l.canhack,f=l.emagged,C=l.remote_disabled,g=l.painame,N=l.check_id,b=l.check_weapons,V=l.check_warrant,v=l.arrest_mode,x=l.arrest_declare;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,i.Section,{title:"General Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:d,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Patrol",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:d,onClick:function(){return c("autopatrol")}})}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maintenance Panel",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Panel Open!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety System",children:(0,o.createComponentVNode)(2,i.Box,{color:f?"bad":"good",children:f?"DISABLED!":"Enabled"})}),!!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hacking",children:(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:f?"Restore Safties":"Hack",disabled:d,color:"bad",onClick:function(){return c("hack")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remote Access",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:d,onClick:function(){return c("disableremote")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Who To Arrest",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:N,content:"Unidentifiable Persons",disabled:d,onClick:function(){return c("authid")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:b,content:"Unauthorized Weapons",disabled:d,onClick:function(){return c("authweapon")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return c("authwarrant")}})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Arrest Procedure",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:d,onClick:function(){return c("arrtype")}}),(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:x,content:"Announce Arrests On Radio",disabled:d,onClick:function(){return c("arrdeclare")}})]}),g&&(0,o.createComponentVNode)(2,i.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:g,disabled:d,onClick:function(){return c("ejectpai")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigCells=void 0;var o=n(0),r=n(3),i=n(2),a=n(1),c=function(e,t){var n=e.cell,r=(0,a.useBackend)(t).act,c=n.cell_id,l=n.occupant,s=n.crimes,d=n.brigged_by,u=n.time_left_seconds,p=n.time_set_seconds,m=n.ref,h="";u>0&&(h+=" BrigCells__listRow--active");return(0,o.createComponentVNode)(2,i.Table.Row,{className:h,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:c}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:d}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:p})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.TimeDisplay,{totalSeconds:u})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{type:"button",onClick:function(){r("release",{ref:m})},children:"Release"})})]})},l=function(e){var t=e.cells;return(0,o.createComponentVNode)(2,i.Table,{className:"BrigCells__list",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Cell"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Occupant"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Crimes"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Brigged By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Time Left"}),(0,o.createComponentVNode)(2,i.Table.Cell,{header:!0,children:"Release"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c,{cell:e},e.ref)}))]})};t.BrigCells=function(e,t){var n=(0,a.useBackend)(t),c=(n.act,n.data.cells);return(0,o.createComponentVNode)(2,r.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:(0,o.createComponentVNode)(2,l,{cells:c})})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:l.occupant}):l.nameText=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:l.occupant}));var s="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(s="exclamation-triangle"));var d=[],u=0;for(u=0;u60||!l.isAllowed,onClick:function(){return c("start")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleOldContent=t.CameraConsoleMapContent=t.CameraConsole=void 0;var o=n(0),r=n(24),i=n(43),a=n(7),c=n(18),l=n(1),s=n(2),d=n(3),u=function(e,t){var n,o;if(!t)return[];var r=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[r-1])?void 0:n.name,null==(o=e[r+1])?void 0:o.name]},p=function(e,t){void 0===t&&(t="");var n=(0,c.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)};t.CameraConsole=function(e,t){var n=(0,l.useLocalState)(t,"tabIndex",0),r=n[0],i=n[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,o.createComponentVNode)(2,s.Tabs,{children:[(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:0===r,onClick:function(){return i(0)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,o.createComponentVNode)(2,s.Tabs.Tab,{selected:1===r,onClick:function(){return i(1)},children:[(0,o.createComponentVNode)(2,s.Icon,{name:"table"})," List"]},"List")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,m);case 1:return(0,o.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}(r)]})})})};var m=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,a=n.config,c=p(i.cameras),d=(0,l.useLocalState)(t,"zoom",1),m=d[0],h=d[1],f=i.mapRef,C=i.activeCamera,g=i.stationLevel,N=u(c,C),b=N[0],V=N[1];return(0,o.createComponentVNode)(2,s.Box,{height:"100%",display:"flex",children:[(0,o.createComponentVNode)(2,s.Box,{height:"100%",flex:"0 0 500px",display:"flex",children:(0,o.createComponentVNode)(2,s.NanoMap,{onZoom:function(e){return h(e)},children:c.filter((function(e){return e.z===g})).map((function(e){return(0,o.createComponentVNode)(2,s.NanoMap.NanoButton,{activeCamera:C,x:e.x,y:e.y,context:t,zoom:m,icon:"circle",tooltip:e.name,name:e.name,color:"blue",status:e.status},e.ref)}))})}),(0,o.createComponentVNode)(2,s.Box,{height:"100%",resizable:!0,className:"CameraConsole__new__right",children:[(0,o.createVNode)(1,"div","CameraConsole__header",[(0,o.createVNode)(1,"div","CameraConsole__title",[(0,o.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!b,onClick:function(){return r("switch_camera",{name:b})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}})],4)],4),(0,o.createComponentVNode)(2,s.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:f,parent:a.window,type:"map"}})]})]})};t.CameraConsoleMapContent=m;var h=function(e,t){var n=(0,l.useBackend)(t),r=n.act,i=n.data,c=n.config,m=i.mapRef,h=i.activeCamera,f=(0,l.useLocalState)(t,"searchText",""),C=f[0],g=f[1],N=p(i.cameras,C),b=u(N,h),V=b[0],v=b[1];return(0,o.createComponentVNode)(2,s.Box,{children:[(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,t){return g(t)}}),(0,o.createComponentVNode)(2,s.Section,{children:N.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid",e.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",h&&e.name===h.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,d.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-left",disabled:!V,onClick:function(){return r("switch_camera",{name:V})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"chevron-right",disabled:!v,onClick:function(){return r("switch_camera",{name:v})}})],4),(0,o.createComponentVNode)(2,s.ByondUi,{className:"CameraConsole__map",params:{id:m,parent:c.window,type:"map"}})],4)]})};t.CameraConsoleOldContent=h},function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(100),l=n(3);t.Canister=function(e,t){var n=(0,i.useBackend)(t),s=n.act,d=n.data,u=d.portConnected,p=d.tankPressure,m=d.releasePressure,h=d.defaultReleasePressure,f=d.minReleasePressure,C=d.maxReleasePressure,g=d.valveOpen,N=d.name,b=d.canLabel,V=d.colorContainer,v=d.color_index,x=d.hasHoldingTank,y=d.holdingTank,k="";v.prim&&(k=V.prim.options[v.prim].name);var w="";v.sec&&(w=V.sec.options[v.sec].name);var _="";v.ter&&(_=V.ter.options[v.ter].name);var B="";v.quart&&(B=V.quart.options[v.quart].name);var S=[],L=[],A=[],E=[],I=0;for(I=0;Ie.current_positions&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:e.total_positions-e.current_positions})||(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"0"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"-",disabled:d.cooldown_time||!e.can_close,onClick:function(){return s("make_job_unavailable",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{content:"+",disabled:d.cooldown_time||!e.can_open,onClick:function(){return s("make_job_available",{job:e.title})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:d.priority_jobs.indexOf(e.title)>-1?"Yes":""})||(0,o.createComponentVNode)(2,i.Button,{content:"Priority",selected:d.priority_jobs.indexOf(e.title)>-1,disabled:d.cooldown_time||!e.can_prioritize,onClick:function(){return s("prioritize_job",{job:e.title})}})})]},e.title)}))]})})],4):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 2:n=d.authenticated&&d.scan_name?d.modify_name?(0,o.createComponentVNode)(2,c.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(e){return s("set",{access:e})},grantAll:function(){return s("grant_all")},denyAll:function(){return s("clear_all")},grantDep:function(e){return s("grant_region",{region:e})},denyDep:function(e){return s("deny_region",{region:e})}}):(0,o.createComponentVNode)(2,i.Section,{title:"Card Missing",color:"red",children:"No card to modify."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 3:n=d.authenticated?d.records.length?(0,o.createComponentVNode)(2,i.Section,{title:"Records",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||0===d.records.length||d.target_dept,onClick:function(){return s("wipe_all_logs")}}),children:[(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Crewman"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Old Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"New Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Authorized By"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.transferee}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.oldvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.newvalue}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.whodidit}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.reason}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.deletedby})]},e.timestamp)}))]}),!!d.iscentcom&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||0===d.records.length,onClick:function(){return s("wipe_my_logs")}})})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Records",children:"No records."}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;case 4:n=d.authenticated&&d.scan_name?(0,o.createComponentVNode)(2,i.Section,{title:"Your Team",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Rank"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Sec Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.crimstat}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontext,disabled:!e.demotable,onClick:function(){return s("remote_demote",{remote_demote:e.name})}})})]},e.title)}))]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"Not logged in."});break;default:n=(0,o.createComponentVNode)(2,i.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,p,n]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.CargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n,r,i=(0,a.useBackend)(t),l=i.act,s=i.data,d=s.is_public,u=s.points,p=s.timeleft,m=s.moving,h=s.at_station;return m||h?!m&&h?(n="Docked at the station",r="Return Shuttle"):m&&(r="In Transit...",n=1!==p?"Shuttle is en route (ETA: "+p+" minutes)":"Shuttle is en route (ETA: "+p+" minute)"):(n="Docked off-station",r="Call Shuttle"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Points Available",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Status",children:n}),0===d&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:r,disabled:m,onClick:function(){return l("moveShuttle")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Central Command Messages",onClick:function(){return l("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Points)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Changelog=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(3),l=u(n(493)),s=u(n(494)),d=u(n(520));function u(e){return e&&e.__esModule?e:{"default":e}}function p(e,t,n,o,r,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(o,r)}var m={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},h=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},t.dateChoices=[],t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=u.prototype;return h.setData=function(e){this.setState({data:e})},h.setSelectedDate=function(e){this.setState({selectedDate:e})},h.setSelectedIndex=function(e){this.setState({selectedIndex:e})},h.getData=function(e,t){void 0===t&&(t=1);var n=(0,i.useBackend)(this.context).act,o=this;if(t>6)return this.setData("Failed to load data after 6 attempts");n("get_month",{date:e}),(0,d["default"])(e+".yml").then(function(){var n,r=(n=regeneratorRuntime.mark((function i(n){var r,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:r=i.sent,/^Cannot find/.test(r)?(a=50+50*t,o.setData("Loading changelog data"+".".repeat(t+3)),setTimeout((function(){o.getData(e,t+1)}),a)):o.setData(s["default"].load(r,{schema:s["default"].CORE_SCHEMA}));case 5:case"end":return i.stop()}}),i)})),function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){p(i,o,r,a,c,"next",e)}function c(e){p(i,o,r,a,c,"throw",e)}a(undefined)}))});return function(e){return r.apply(this,arguments)}}())},h.componentDidMount=function(){var e=this,t=(0,i.useBackend)(this.context).data.dates,n=void 0===t?[]:t;n&&(n.forEach((function(t){return e.dateChoices.push((0,l["default"])(t,"mmmm yyyy",!0))})),this.setSelectedDate(this.dateChoices[0]),this.getData(n[0]))},h.render=function(){var e=this,t=this.state,n=t.data,s=t.selectedDate,d=t.selectedIndex,u=(0,i.useBackend)(this.context).data.dates,p=this.dateChoices,h=p.length>0&&(0,o.createComponentVNode)(2,a.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:0===d,icon:"chevron-left",onClick:function(){var t=d-1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{displayText:s,options:p,onSelected:function(t){var n=p.indexOf(t);return e.setData("Loading changelog data..."),e.setSelectedIndex(n),e.setSelectedDate(t),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[n])},selected:s,width:"150px"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{className:"Changelog__Button",disabled:d===p.length-1,icon:"chevron-right",onClick:function(){var t=d+1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(p[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})})]}),f=(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createVNode)(1,"h1",null,"Paradise Station",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thanks to: ",16),(0,o.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Recent GitHub contributors can be found "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,o.createTextVNode)(".")],0),h]}),C=(0,o.createComponentVNode)(2,a.Section,{children:[h,(0,o.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Coders: ",16),(0,o.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Spriters: ",16),(0,o.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,o.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Changelog#April_2010"}),(0,o.createTextVNode)(".")],0),(0,o.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,o.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,o.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,o.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Some icons by "),(0,o.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,o.createTextVNode)(". All rights reserved. Licensed under a "),(0,o.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,o.createTextVNode)(".")],4)]}),g=/#\d+/,N="object"==typeof n&&Object.keys(n).length>0&&Object.entries(n).reverse().map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:(0,l["default"])(t,"d mmmm yyyy",!0),children:(0,o.createComponentVNode)(2,a.Box,{ml:3,children:Object.entries(n).map((function(e){var t=e[0],n=e[1];return(0,o.createFragment)([(0,o.createVNode)(1,"h4",null,[t,(0,o.createTextVNode)(" changed:")],0),(0,o.createComponentVNode)(2,a.Box,{ml:3,children:(0,o.createComponentVNode)(2,a.Table,{children:n.map((function(e){var t=Object.keys(e)[0],n=e[t],i=n.match(g),c=(0,o.createComponentVNode)(2,a.Table.Cell,{className:(0,r.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,o.createComponentVNode)(2,a.Icon,{color:m[t]?m[t].color:m.unknown.color,name:m[t]?m[t].icon:m.unknown.icon})});return null!==i&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:(0,o.createVNode)(1,"a",null,[(0,o.createTextVNode)(" "),n,(0,o.createTextVNode)(" ")],0,{href:"https://github.com/ss220-space/Paradise/pull/"+i[0].substring(1)})})]},t+n)||(0,o.createComponentVNode)(2,a.Table.Row,{children:[c,(0,o.createComponentVNode)(2,a.Table.Cell,{className:"Changelog__Cell",children:n})]},t+n)}))})})],4,t)}))})},t)}));return(0,o.createComponentVNode)(2,c.Window,{title:"Changelog",width:675,height:650,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[f,N,"string"==typeof n&&(0,o.createVNode)(1,"p",null,n,0),C]})})},u}(o.Component);t.Changelog=h},function(e,t,n){"use strict";var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){var a,c,l,s=arguments,d=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,n,o){if(1!==s.length||"string"!==f(e)||/\d/.test(e)||(t=e,e=undefined),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(d.masks[t]||t||d.masks["default"])).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(o=!0));var i=function(){return n?"getUTC":"get"},C=function(){return e[i()+"Date"]()},g=function(){return e[i()+"Day"]()},N=function(){return e[i()+"Month"]()},b=function(){return e[i()+"FullYear"]()},V=function(){return e[i()+"Hours"]()},v=function(){return e[i()+"Minutes"]()},x=function(){return e[i()+"Seconds"]()},y=function(){return e[i()+"Milliseconds"]()},k=function(){return n?0:e.getTimezoneOffset()},w=function(){return m(e)},_=function(){return h(e)},B={d:function(){return C()},dd:function(){return u(C())},ddd:function(){return d.i18n.dayNames[g()]},DDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()],short:!0})},dddd:function(){return d.i18n.dayNames[g()+7]},DDDD:function(){return p({y:b(),m:N(),d:C(),_:i(),dayName:d.i18n.dayNames[g()+7]})},m:function(){return N()+1},mm:function(){return u(N()+1)},mmm:function(){return d.i18n.monthNames[N()]},mmmm:function(){return d.i18n.monthNames[N()+12]},yy:function(){return String(b()).slice(2)},yyyy:function(){return u(b(),4)},h:function(){return V()%12||12},hh:function(){return u(V()%12||12)},H:function(){return V()},HH:function(){return u(V())},M:function(){return v()},MM:function(){return u(v())},s:function(){return x()},ss:function(){return u(x())},l:function(){return u(y(),3)},L:function(){return u(Math.floor(y()/10))},t:function(){return V()<12?d.i18n.timeNames[0]:d.i18n.timeNames[1]},tt:function(){return V()<12?d.i18n.timeNames[2]:d.i18n.timeNames[3]},T:function(){return V()<12?d.i18n.timeNames[4]:d.i18n.timeNames[5]},TT:function(){return V()<12?d.i18n.timeNames[6]:d.i18n.timeNames[7]},Z:function(){return o?"GMT":n?"UTC":(String(e).match(c)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+u(100*Math.floor(Math.abs(k())/60)+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+u(Math.floor(Math.abs(k())/60),2)+":"+u(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]},W:function(){return w()},WW:function(){return u(w())},N:function(){return _()}};return t.replace(a,(function(e){return e in B?B[e]():e.slice(1,e.length-1)}))});d.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},d.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var u=function(e,t){for(e=String(e),t=t||2;e.length>10),56320+(e-65536&1023))}for(var x=new Array(256),y=new Array(256),k=0;k<256;k++)x[k]=V(k)?1:0,y[k]=V(k);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function _(e,t){return new r(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function B(e,t){throw _(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,_(e,t))}var L={YAML:function(e,t,n){var o,r,i;null!==e.version&&B(e,"duplication of %YAML directive"),1!==n.length&&B(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&B(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&B(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&B(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],p.test(o)||B(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,o)&&B(e,'there is a previously declared suffix for "'+o+'" tag handle'),m.test(r)||B(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=r}};function A(e,t,n,o){var r,i,a,c;if(t1&&(e.result+=o.repeat("\n",t-1))}function P(e,t){var n,o,r=e.tag,i=e.anchor,a=[],c=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),o=e.input.charCodeAt(e.position);0!==o&&45===o&&g(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,T(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,j(e,t,3,!1,!0),a.push(e.result),T(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)B(e,"bad indentation of a sequence entry");else if(e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt?V=1:e.lineIndent===t?V=0:e.lineIndentt)&&(j(e,t,4,!0,r)&&(f?m=e.result:h=e.result),f||(I(e,d,u,p,m,h,i,a),p=m=h=null),T(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)B(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?B(e,"repeat of an indentation width identifier"):(u=t+i-1,d=!0)}if(C(a)){do{a=e.input.charCodeAt(++e.position)}while(C(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!f(a)&&0!==a)}for(;0!==a;){for(D(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!d||e.lineIndentu&&(u=e.lineIndent),f(a))p++;else{if(e.lineIndent0){for(r=a,i=0;r>0;r--)(a=b(c=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:B(e,"expected hexadecimal character");e.result+=v(i),e.position++}else B(e,"unknown escape sequence");n=o=e.position}else f(c)?(A(e,n,o,!0),M(e,T(e,!1,t)),n=o=e.position):e.position===e.lineStart&&F(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}B(e,"unexpected end of the stream within a double quoted scalar")}(e,m)?w=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!g(o)&&!N(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||B(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],T(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,c,l,s,d,u=e.kind,p=e.result;if(g(d=e.input.charCodeAt(e.position))||N(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(g(o=e.input.charCodeAt(e.position+1))||n&&N(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==d;){if(58===d){if(g(o=e.input.charCodeAt(e.position+1))||n&&N(o))break}else if(35===d){if(g(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&F(e)||n&&N(d))break;if(f(d)){if(c=e.line,l=e.lineStart,s=e.lineIndent,T(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=c,e.lineStart=l,e.lineIndent=s;break}}a&&(A(e,r,i,!1),M(e,e.line-c),r=i=e.position,a=!1),C(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return A(e,r,i,!1),!!e.result||(e.kind=u,e.result=p,!1)}(e,m,1===n)&&(w=!0,null===e.tag&&(e.tag="?")):(w=!0,null===e.tag&&null===e.anchor||B(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===V&&(w=s&&P(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(d=0,u=e.implicitTypes.length;d tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result)?(e.result=p.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):B(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||w}function U(e){var t,n,o,r,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(r=e.input.charCodeAt(e.position))&&(T(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&B(e,"directive name must not be less than one character in length");0!==r;){for(;C(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!f(r));break}if(f(r))break;for(t=e.position;0!==r&&!g(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&D(e),l.call(L,n)?L[n](e,n,o):S(e,'unknown document directive "'+n+'"')}T(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,T(e,!0,-1)):a&&B(e,"directives end mark is expected"),j(e,e.lineIndent-1,4,!1,!0),T(e,!0,-1),e.checkLineBreaks&&d.test(e.input.slice(i,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,T(e,!0,-1)):e.position0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){n=" ... ",r+=5;break}for(i="",a=this.position;at/2-1){i=" ... ",a-=5;break}return c=this.buffer.slice(r,a),o.repeat(" ",e)+n+c+i+"\n"+o.repeat(" ",e+this.position-r+n.length)+"^"},r.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=r},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(65),r=n(20);function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,c=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var o=n(65),r=n(20),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,o,r;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){r.unshift(parseFloat(e,10))})),t=0,o=1,r.forEach((function(e){t+=e*o,o*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var o=n(20),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==i.exec(e))},construct:function(e){var t,n,o,a,c,l,s,d,u=0,p=null;if(null===(t=r.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,o,a));if(c=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),d=new Date(Date.UTC(n,o,a,c,l,s,u)),p&&d.setTime(d.getTime()-p),d},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var o=n(20);e.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var o;try{o=n(508).Buffer}catch(a){}var r=n(20),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,a=i;for(n=0;n64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,c=i,l=0,s=[];for(t=0;t>16&255),s.push(l>>8&255),s.push(255&l)),l=l<<6|c.indexOf(r.charAt(t));return 0===(n=a%4*6)?(s.push(l>>16&255),s.push(l>>8&255),s.push(255&l)):18===n?(s.push(l>>10&255),s.push(l>>2&255)):12===n&&s.push(l>>4&255),o?o.from?o.from(s):new o(s):s},predicate:function(e){return o&&o.isBuffer(e)},represent:function(e){var t,n,o="",r=0,a=e.length,c=i;for(t=0;t>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]),r=(r<<8)+e[t];return 0===(n=a%3)?(o+=c[r>>18&63],o+=c[r>>12&63],o+=c[r>>6&63],o+=c[63&r]):2===n?(o+=c[r>>10&63],o+=c[r>>4&63],o+=c[r<<2&63],o+=c[64]):1===n&&(o+=c[r>>2&63],o+=c[r<<4&63],o+=c[64],o+=c[64]),o}})},function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var o=n(509),r=n(510),i=n(511);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,n){var o=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function C(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:N(e,t,n,o,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):N(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function N(e,t,n,o,r){var i,a=1,c=e.length,l=t.length;if(o!==undefined&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,c/=2,l/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var d=-1;for(i=n;ic&&(n=c-l),i=n;i>=0;i--){for(var u=!0,p=0;pr&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function w(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r239?4:s>223?3:s>191?2:1;if(r+u<=n)switch(u){case 1:s<128&&(d=s);break;case 2:128==(192&(i=e[r+1]))&&(l=(31&s)<<6|63&i)>127&&(d=l);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(l=(15&s)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:i=e[r+1],a=e[r+2],c=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(l=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),r+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,o,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),o===undefined&&(o=0),r===undefined&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(o,r),d=e.slice(t,n),u=0;ur)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return V(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return y(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;ro)&&(n=o);for(var r="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,r,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function D(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r>>8*(o?r:1-r)}function T(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r>>8*(o?r:3-r)&255}function F(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,o,i){return i||F(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function P(e,t,n,o,i){return i||F(e,0,n,8),r.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=t===undefined?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(r*=256);)o+=this[e+--t]*r;return o},l.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=this[e],r=1,i=0;++i=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=0,a=1,c=0;for(this[t]=255&e;++i>0)-c&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,o){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(104))},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),d=0,u=c>0?a-4:a;for(n=0;n>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,c=n-r;ac?c:a+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var r,i,a=[],c=t;c>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";t.read=function(e,t,n,o,r){var i,a,c=8*r-o-1,l=(1<>1,d=-7,u=n?r-1:0,p=n?-1:1,m=e[t+u];for(u+=p,i=m&(1<<-d)-1,m>>=-d,d+=c;d>0;i=256*i+e[t+u],u+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===i)i=1-s;else{if(i===l)return a?NaN:(m?-1:1)*Infinity;a+=Math.pow(2,o),i-=s}return(m?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,c,l,s=8*i-r-1,d=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:i-1,h=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(c=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(c=0,a=d):a+u>=1?(c=(t*l-1)*Math.pow(2,r),a+=u):(c=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+m]=255&c,m+=h,c/=256,r-=8);for(a=a<0;e[n+m]=255&a,m+=h,a/=256,s-=8);e[n+m-h]|=128*f}},function(e,t,n){"use strict";var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},function(e,t,n){"use strict";var o=n(20),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,a,c,l=[],s=e;for(t=0,n=s.length;t3)return!1;if("/"!==t[t.length-o.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),o="";return"/"===t[0]&&(n&&(o=n[1]),t=t.slice(1,t.length-o.length-1)),new RegExp(t,o)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var o;try{o=n(518)}catch(i){"undefined"!=typeof window&&(o=window.esprima)}var r=n(20);e.exports=new r("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=o.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(r){return!1}},construct:function(e){var t,n="("+e+")",r=o.parse(n,{range:!0}),i=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=r.body[0].expression.body.range,"BlockStatement"===r.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t,n){"use strict";var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(8),a=n(15);function c(e,t,n){var a=null,c=function(e,t){n&&n(e,t),a&&a.visit(e,t)},l="function"==typeof n?c:null,s=!1;if(t){s="boolean"==typeof t.comment&&t.comment;var d="boolean"==typeof t.attachComment&&t.attachComment;(s||d)&&((a=new o.CommentHandler).attach=d,t.comment=!0,l=c)}var u,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),u=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,l):new i.Parser(e,t,l);var m=p?u.parseModule():u.parseScript();return s&&a&&(m.comments=a.comments),u.config.tokens&&(m.tokens=u.tokens),u.config.tolerant&&(m.errors=u.errorHandler.errors),m}t.parse=c,t.parseModule=function(e,t,n){var o=t||{};return o.sourceType="module",c(e,o,n)},t.parseScript=function(e,t,n){var o=t||{};return o.sourceType="script",c(e,o,n)},t.tokenize=function(e,t,n){var o,r=new a.Tokenizer(e,t);o=[];try{for(;;){var i=r.getNextToken();if(!i)break;n&&(i=n(i)),o.push(i)}}catch(c){r.errorHandler.tolerate(c)}return r.errorHandler.tolerant&&(o.errors=r.errors()),o};var l=n(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===o.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var i=this.leading[r];t.end.offset>=i.start&&(n.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var o=this.trailing[n];o.start>=e.end.offset&&t.unshift(o.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&((i=this.stack[this.stack.length-1])&&i.start>=e.start.offset);)t=i.node,this.stack.pop();if(t){for(var o=(t.leadingComments?t.leadingComments.length:0)-1;o>=0;--o){var r=t.leadingComments[o];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(o,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(o=this.leading.length-1;o>=0;--o){var i;(i=this.leading[o]).start<=e.start.offset&&(n.unshift(i.comment),this.leading.splice(o,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===o.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",o={type:n,value:e.value};if(e.range&&(o.range=e.range),e.loc&&(o.loc=e.loc),this.comments.push(o),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=n(5),c=n(6),l=n(7),s=n(8),d=n(13),u=n(14);function p(e){var t;switch(e.type){case c.JSXSyntax.JSXIdentifier:t=e.name;break;case c.JSXSyntax.JSXNamespacedName:var n=e;t=p(n.namespace)+":"+p(n.name);break;case c.JSXSyntax.JSXMemberExpression:var o=e;t=p(o.object)+"."+p(o.property)}return t}d.TokenName[100]="JSXIdentifier",d.TokenName[101]="JSXText";var m=function(e){function t(t,n,o){return e.call(this,t,n,o)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,o=!1,r=!1,a=!1;!this.scanner.eof()&&n&&!o;){var c=this.scanner.source[this.scanner.index];if(c===e)break;if(o=";"===c,t+=c,++this.scanner.index,!o)switch(t.length){case 2:r="#"===c;break;case 3:r&&(n=(a="x"===c)||i.Character.isDecimalDigit(c.charCodeAt(0)),r=r&&!a);break;default:n=(n=n&&!(r&&!i.Character.isDecimalDigit(c.charCodeAt(0))))&&!(a&&!i.Character.isHexDigit(c.charCodeAt(0)))}}if(n&&o&&t.length>2){var l=t.substr(1,t.length-2);r&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):a&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):r||a||!u.XHTMLEntities[l]||(t=u.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:c=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],o="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)o+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),c=46===r&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=c.length,{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var o={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(o)),o},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(n,o))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(r,i))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var o=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(o,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),o=this.matchJSX("/");return o&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,o,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var n=this.parseJSXElementName(),o=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(n,r,o))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;i=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(i),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],o=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:o,children:n});n=r.children,o=r.closing}return this.finalize(e,new a.JSXElement(t,n,o))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(s.Parser);t.JSXParser=m},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=function(e){this.type=o.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=r;var i=function(e,t,n){this.type=o.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXElement=i;var a=function(){this.type=o.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var c=function(e){this.type=o.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=c;var l=function(e){this.type=o.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=l;var s=function(e,t){this.type=o.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=s;var d=function(e,t){this.type=o.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=d;var u=function(e,t){this.type=o.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=u;var p=function(e,t,n){this.type=o.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXOpeningElement=p;var m=function(e){this.type=o.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=m;var h=function(e,t){this.type=o.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=function(e){this.type=o.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=r;var i=function(e){this.type=o.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=i;var a=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.ArrowFunctionExpression=a;var c=function(e,t,n){this.type=o.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentExpression=c;var l=function(e,t){this.type=o.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=l;var s=function(e,t,n){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncArrowFunctionExpression=s;var d=function(e,t,n){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=d;var u=function(e,t,n){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=u;var p=function(e){this.type=o.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var m=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?o.Syntax.LogicalExpression:o.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BinaryExpression=m;var h=function(e){this.type=o.Syntax.BlockStatement,this.body=e};t.BlockStatement=h;var f=function(e){this.type=o.Syntax.BreakStatement,this.label=e};t.BreakStatement=f;var C=function(e,t){this.type=o.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=C;var g=function(e,t){this.type=o.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var N=function(e){this.type=o.Syntax.ClassBody,this.body=e};t.ClassBody=N;var b=function(e,t,n){this.type=o.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassDeclaration=b;var V=function(e,t,n){this.type=o.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=V;var v=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=v;var x=function(e,t,n){this.type=o.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ConditionalExpression=x;var y=function(e){this.type=o.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=y;var k=function(){this.type=o.Syntax.DebuggerStatement};t.DebuggerStatement=k;var w=function(e,t){this.type=o.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=w;var _=function(e,t){this.type=o.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=_;var B=function(){this.type=o.Syntax.EmptyStatement};t.EmptyStatement=B;var S=function(e){this.type=o.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=S;var L=function(e){this.type=o.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=L;var A=function(e,t,n){this.type=o.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportNamedDeclaration=A;var E=function(e,t){this.type=o.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=E;var I=function(e){this.type=o.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=I;var D=function(e,t,n){this.type=o.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForInStatement=D;var T=function(e,t,n){this.type=o.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForOfStatement=T;var F=function(e,t,n,r){this.type=o.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.ForStatement=F;var M=function(e,t,n,r){this.type=o.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionDeclaration=M;var P=function(e,t,n,r){this.type=o.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=P;var O=function(e){this.type=o.Syntax.Identifier,this.name=e};t.Identifier=O;var R=function(e,t,n){this.type=o.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.IfStatement=R;var j=function(e,t){this.type=o.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=j;var U=function(e){this.type=o.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var z=function(e){this.type=o.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=z;var W=function(e,t){this.type=o.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=W;var H=function(e,t){this.type=o.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=H;var K=function(e,t){this.type=o.Syntax.Literal,this.value=e,this.raw=t};t.Literal=K;var Y=function(e,t){this.type=o.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=Y;var G=function(e,t,n,r,i){this.type=o.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this["static"]=i};t.MethodDefinition=G;var q=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=q;var X=function(e,t){this.type=o.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=X;var J=function(e){this.type=o.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=J;var $=function(e){this.type=o.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=$;var Z=function(e,t,n,r,i,a){this.type=o.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=i,this.shorthand=a};t.Property=Z;var Q=function(e,t,n,r){this.type=o.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RegexLiteral=Q;var ee=function(e){this.type=o.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=o.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var ne=function(e){this.type=o.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=ne;var oe=function(e){this.type=o.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=oe;var re=function(e){this.type=o.Syntax.SpreadElement,this.argument=e};t.SpreadElement=re;var ie=function(e,t){this.type=o.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=ie;var ae=function(){this.type=o.Syntax.Super};t.Super=ae;var ce=function(e,t){this.type=o.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=ce;var le=function(e,t){this.type=o.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=le;var se=function(e,t){this.type=o.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=se;var de=function(e,t){this.type=o.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=de;var ue=function(e,t){this.type=o.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=ue;var pe=function(){this.type=o.Syntax.ThisExpression};t.ThisExpression=pe;var me=function(e){this.type=o.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=me;var he=function(e,t,n){this.type=o.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.TryStatement=he;var fe=function(e,t){this.type=o.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=fe;var Ce=function(e,t,n){this.type=o.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.UpdateExpression=Ce;var ge=function(e,t){this.type=o.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var Ne=function(e,t){this.type=o.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=Ne;var be=function(e,t){this.type=o.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=be;var Ve=function(e,t){this.type=o.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=Ve;var ve=function(e,t){this.type=o.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=ve},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(10),i=n(11),a=n(7),c=n(12),l=n(2),s=n(13),d=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new c.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=o,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,o=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=o||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,o=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(o,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(o,new a.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(o,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(o,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var o=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,o},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var o=this.parseFormalParameters(),r=this.parsePropertyMethod(o);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new a.AsyncFunctionExpression(null,o.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,i.Messages.StrictOctalLiteral);var o=this.getTokenRaw(n);e=this.finalize(t,new a.Literal(n.value,o));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),o=this.lookahead,r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(3===o.type){var p=o.value;this.nextToken(),l=this.match("["),r=(u=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new a.Identifier(p))}else this.match("*")?this.nextToken():(l=this.match("["),r=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===o.type&&!u&&"get"===o.value&&m)t="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(3===o.type&&!u&&"set"===o.value&&m)t="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(7===o.type&&"*"===o.value&&m)t="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!u)!l&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0;else if(3===o.type)if(p=this.finalize(n,new a.Identifier(o.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),d=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(n,new a.AssignmentPattern(p,h))}else d=!0,c=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new a.Property(t,r,l,c,s,d))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){o.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,o=t.cooked;return this.finalize(e,new a.TemplateElement({raw:n,cooked:o},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],o=this.parseTemplateHead();for(n.push(o);!o.tail;)t.push(this.parseExpression()),o=this.parseTemplateElement(),n.push(o);return this.finalize(e,new a.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var o=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(o=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!o)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(i=0;i")){for(var l=0;l0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],i=t,c=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[i,n.value,c],s=[o];!((o=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&o<=s[s.length-1];){c=l.pop();var d=l.pop();s.pop(),i=l.pop(),r.pop();var u=this.startNode(r[r.length-1]);l.push(this.finalize(u,new a.BinaryExpression(d,i,c)))}l.push(this.nextToken().value),s.push(o),r.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;t=l[p];for(var m=r.pop();p>1;){var h=r.pop(),f=m&&m.lineStart;u=this.startNode(h,f),d=l[p-1],t=this.finalize(u,new a.BinaryExpression(d,l[p-2],t)),p-=2,m=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,o,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var s=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var u=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var m=this.startNode(t);this.expect("=>");var h=void 0;if(this.match("{")){var f=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=f}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var C=h.type!==l.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=r?this.finalize(m,new a.AsyncArrowFunctionExpression(c.params,h,C)):this.finalize(m,new a.ArrowFunctionExpression(c.params,h,C)),this.context.strict=s,this.context.allowStrictDirective=d,this.context.allowYield=u,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var g=e;this.scanner.isRestrictedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(g.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var N=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(N,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),o=this.parsePattern([],e);this.context.strict&&o.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(o.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&o.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new a.VariableDeclarator(o,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;o.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var o=this.parsePattern(e,t);return this.finalize(n,new a.RestElement(o))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var o=[];!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else{if(this.match("...")){o.push(this.parseBindingRestElement(e,t));break}o.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new a.ArrayPattern(o))},e.prototype.parsePropertyPattern=function(e,t){var n,o,r=this.createNode(),i=!1,c=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var s=this.finalize(r,new a.Identifier(l.value));if(this.match("=")){e.push(l),c=!0,this.nextToken();var d=this.parseAssignmentExpression();o=this.finalize(this.startNode(l),new a.AssignmentPattern(s,d))}else this.match(":")?(this.expect(":"),o=this.parsePatternWithDefault(e,t)):(e.push(l),c=!0,o=s)}else i=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),o=this.parsePatternWithDefault(e,t);return this.finalize(r,new a.Property("init",n,i,o,!1,c))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),o=[];for(this.expect("{");!this.match("}");)o.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new a.ObjectPattern(o))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,o=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,o=this.finalize(this.startNode(n),new a.AssignmentPattern(o,i))}return o},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new a.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(i.Messages.StrictVarName);var o=null;return this.match("=")?(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(n,o))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new a.IfStatement(o,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var o=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(n,o))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var o=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=o}return this.finalize(t,new a.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,o=null,r=null,c=null,s=!0,d=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){o=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,1===p.length&&this.matchKeyword("in")){var m=p[0];m.init&&(m.id.type===l.Syntax.ArrayPattern||m.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseExpression(),o=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(o=this.finalize(o,new a.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){o=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(u=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=u,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseExpression(),o=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(o=this.finalize(o,new a.VariableDeclaration(p,h)),this.nextToken(),e=o,t=this.parseAssignmentExpression(),o=null,s=!1):(this.consumeSemicolon(),o=this.finalize(o,new a.VariableDeclaration(p,h)))):(o=this.finalize(o,new a.Identifier(h)),this.nextToken(),e=o,t=this.parseExpression(),o=null)}else{var f=this.lookahead;if(u=this.context.allowIn,this.context.allowIn=!1,o=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword("in"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseExpression(),o=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&o.type!==l.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(o),e=o,t=this.parseAssignmentExpression(),o=null,s=!1;else{if(this.match(",")){for(var C=[o];this.match(",");)this.nextToken(),C.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(f),new a.SequenceExpression(C))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(c=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===e?this.finalize(d,new a.ForStatement(o,r,c,n)):s?this.finalize(d,new a.ForInStatement(e,t,n)):this.finalize(d,new a.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),o="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,o)||this.throwError(i.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var o=[],r=!1;for(this.expect("{");!this.match("}");){var c=this.parseSwitchCase();null===c.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),o.push(c)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new a.SwitchStatement(t,o))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var o=n,r="$"+o.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",o.name),this.context.labelSet[r]=!0;var c=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword("function")){var s=this.lookahead,d=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(s,i.Messages.StrictFunction):d.generator&&this.tolerateUnexpectedToken(s,i.Messages.GeneratorInLegacyContext),c=d}else c=this.parseStatement();delete this.context.labelSet[r],e=new a.LabeledStatement(o,c)}else this.consumeSemicolon(),e=new a.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),o={},r=0;r0&&this.tolerateError(i.Messages.BadGetterArity);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(i.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var o=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,n.params,o,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var o=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=o}return this.finalize(e,new a.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),o="",r=null,c=null,l=!1,s=!1,d=!1,u=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,d=!0,l=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(u=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,i.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&m?(o="get",l=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):"set"===t.value&&m&&(o="set",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):7===t.type&&"*"===t.value&&m&&(o="init",l=this.match("["),r=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),s=!0),!o&&r&&this.match("(")&&(o="init",c=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),s=!0),o||this.throwUnexpectedToken(this.lookahead),"init"===o&&(o="method"),l||(d&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,i.Messages.StaticPrototype),!d&&this.isPropertyKey(r,"constructor")&&(("method"!==o||!s||c&&c.generator)&&this.throwUnexpectedToken(t,i.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,i.Messages.DuplicateConstructor):e.value=!0,o="constructor")),this.finalize(n,new a.MethodDefinition(r,l,c,o,d))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var o=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=n,this.finalize(t,new a.ClassDeclaration(o,r,i))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,o=null;this.matchKeyword("extends")&&(this.nextToken(),o=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(n,o,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(o,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(n,[],null));else{var c=[],l=null,s=!1;for(this.expect("{");!this.match("}");)s=s||this.matchKeyword("default"),c.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):s?(o=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(o,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,c,l))}return e},e}();t.Parser=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(o){Object.create&&Object.defineProperty&&(n=Object.create(o),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,o){var r="Line "+t+": "+o,i=this.constructError(r,n);return i.index=e,i.lineNumber=t,i.description=o,i},e.prototype.throwError=function(e,t,n,o){throw this.createError(e,t,n,o)},e.prototype.tolerateError=function(e,t,n,o){var r=this.createError(e,t,n,o);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(4),i=n(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function c(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,o=[];for(this.trackComment&&(o=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};o.push(a)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,o}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},o.push(a)),o},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(o))13===o&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===o){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(i)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(i)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var o=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(o)),t=!0}else{if(42!==n)break;this.index+=2,o=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(o))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,o=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(o))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,o=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(o))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,o=0;o1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=c(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+c(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+c(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var o=this.index;this.index=t,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=o}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",o=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(o=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return o||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&o.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"\uffff"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(n)}catch(r){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(a){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];o.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){a=!0;break}"["===e&&(n=!0)}return a||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,o=this.scanHexEscape("u");if(null!==o)for(e+=o;n=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),r=n(12),i=n(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(o=this.values[this.curly-4])&&!this.beforeFunctionExpression(o);else if("function"===this.values[this.curly-4]){var o;t=!(o=this.values[this.curly-5])||!this.beforeFunctionExpression(o)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),c=function(){function e(e,t){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;to&&" "!==e[u+1],u=i);else if(!C(a))return 5;p=p&&g(a)}s=s||d&&i-u-1>o&&" "!==e[u+1]}return l||s?n>9&&N(e)?5:s?4:3:p&&!r(e)?1:2}function V(e,t,n,o){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==d.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=o||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,c,e.indent,a,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n"+v(t,e.indent)+x(m(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(c=e.indexOf("\n"),c=-1!==c?c:e.length,r.lastIndex=c,y(e.slice(0,c),t)),a="\n"===e[0]||" "===e[0];var c;for(;o=r.exec(e);){var l=o[1],s=o[2];n=" "===s[0],i+=l+(a||n||""===s?"":"\n")+y(s,t),a=n}return i}(t,a),i));case 5:return'"'+function(e){for(var t,n,o,r="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(r+=u(1024*(t-55296)+n-56320+65536),i++):(o=s[t],r+=!o&&C(t)?e[i]:o||u(t));return r}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function v(e,t){var n=N(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function y(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,i=0,a=0,c=0,l="";n=r.exec(e);)(c=n.index)-i>t&&(o=a>i?a:c,l+="\n"+e.slice(i,o),i=o+1),a=c;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function k(e,t,n){var o,i,a,s,d,u;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+u+'" style');o=d.represent[u](t,u)}e.dump=o}return!0}return!1}function w(e,t,n,o,i,a){e.tag=null,e.dump=n,k(e,n,!1)||k(e,n,!0);var l=c.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>t);var s,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&d&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var i,a,c,l,s,d,u="",p=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(i=0,a=m.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,s&&(d+=h(e,t)),w(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,i),d&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,n){var o,r,i,a,c,l="",s=e.tag,d=Object.keys(n);for(o=0,r=d.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),w(e,t,a,!1,!1)&&(l+=c+=e.dump));e.tag=s,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===l){var p=e.noArrayIndent&&t>0?t-1:t;o&&0!==e.dump.length?(!function(e,t,n,o){var r,i,a="",c=e.tag;for(r=0,i=n.length;r "+e.dump)}return!0}function _(e,t){var n,o,r=[],i=[];for(function a(e,t,n){var o,r,i;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,i=e.length;r0}),(0,o.createComponentVNode)(2,p,{mode:g,bufferReagents:f}),(0,o.createComponentVNode)(2,m,{isCondiment:i,bufferNonEmpty:f.length>0}),(0,o.createComponentVNode)(2,C)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t).act,a=e.beaker,d=e.beakerReagents,u=e.bufferNonEmpty;return(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",flexGrow:"0",flexBasis:"300px",buttons:u?(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}):(0,o.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}),children:a?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:d,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,i.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!c.condi&&(0,o.createComponentVNode)(2,i.Button,{icon:c.printing?"spinner":"print",disabled:c.printing,iconSpin:!!c.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})})),(0,l.modalRegisterBodyOverride)("change_patch_style",(function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(r,a){return(0,o.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,i.Button,{selected:a+1===parseInt(n.modal.value,10),onClick:function(){return(0,l.modalAnswer)(t,e.id,a+1)},children:(0,o.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 32px;height: 32px;background: url(bandaid"+(a+1)+".png);background-size: 160%;background-position: left -9px bottom -14px;"})})},a)}))})}))},function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(49),l=n(51),s=n(3),d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,s=e.args,d=s.activerecord,u=s.realname,p=s.health,m=s.unidentity,h=s.strucenzymes,f=p.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:f.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.oxy,display:"inline",children:f[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.toxin,display:"inline",children:f[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.brute,display:"inline",children:f[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.burn,display:"inline",children:f[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:d})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",d),(0,o.createComponentVNode)(2,s.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,p)})]})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},p=function(e,t){var n,r=(0,i.useBackend)(t).data.menu;return 1===r?n=(0,o.createComponentVNode)(2,m):2===r&&(n=(0,o.createComponentVNode)(2,h)),n},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.loading,d=l.scantemp,u=l.occupant,p=l.locked,m=l.can_brainscan,h=l.scan_mode,f=l.numberofpods,C=l.pods,g=l.selected_pod,N=p&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:N,icon:N?"toggle-on":"toggle-off",content:N?"Engaged":"Disengaged",onClick:function(){return c("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:N||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return c("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:d.color,children:d.text})}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"brain":"male",content:h?"Brain":"Body",onClick:function(){return c("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||s,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return c("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:f?C.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:g===e.pod,icon:g===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",t+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.records;return c.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},t)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},f=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var s=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},s,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.scanner,s=c.numberofpods,d=c.autoallowed,u=c.autoprocess,p=c.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:s?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[s," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CommunicationsComputer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.CommunicationsComputer=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;n=s.authenticated?s.is_ai?"AI":1===s.authenticated?"Command":2===s.authenticated?"Captain":"ERROR: Report This Bug!":"Not Logged In";var d="View ("+s.messages.length+")",u=(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.is_ai&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.authenticated?"sign-out-alt":"id-card",selected:s.authenticated,content:s.authenticated?"Log Out ("+n+")":"Log In",onClick:function(){return l("auth")}})})})}),!!s.esc_section&&(0,o.createComponentVNode)(2,i.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!s.esc_status&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s.esc_status}),!!s.esc_callable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Call Shuttle",disabled:!s.authenticated,onClick:function(){return l("callshuttle")}})}),!!s.esc_recallable&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Recall Shuttle",disabled:!s.authenticated||s.is_ai,onClick:function(){return l("cancelshuttle")}})}),!!s.lastCallLoc&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Last Call/Recall From",children:s.lastCallLoc})]})})],0),p="Make Priority Announcement";s.msg_cooldown>0&&(p+=" ("+s.msg_cooldown+"s)");var m=s.emagged?"Message [UNKNOWN]":"Message CentComm",h="Request Authentication Codes";s.cc_cooldown>0&&(m+=" ("+s.cc_cooldown+"s)",h+=" ("+s.cc_cooldown+"s)");var f,C=s.str_security_level,g=s.levels.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.icon,content:e.name,disabled:!s.authmax||e.id===s.security_level,onClick:function(){return l("newalertlevel",{level:e.id})}},e.name)})),N=s.stat_display.presets.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.name===s.stat_display.type,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:e.name})}},e.name)})),b=s.stat_display.alerts.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.label,selected:e.alert===s.stat_display.icon,disabled:!s.authenticated,onClick:function(){return l("setstat",{statdisp:"alert",alert:e.alert})}},e.alert)}));if(s.current_message_title)f=(0,o.createComponentVNode)(2,i.Section,{title:s.current_message_title,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Return To Message List",disabled:!s.authenticated,onClick:function(){return l("messagelist")}}),children:(0,o.createComponentVNode)(2,i.Box,{children:s.current_message})});else{var V=s.messages.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"eye",content:"View",disabled:!s.authenticated||s.current_message_title===e.title,onClick:function(){return l("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete",disabled:!s.authenticated,onClick:function(){return l("delmessage",{msgid:e.id})}})]},e.id)}));f=(0,o.createComponentVNode)(2,i.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:V})})}switch(s.menu_state){case 1:return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Captain-Only Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Alert",color:s.security_level_color,children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Change Alert",children:g}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",content:p,disabled:!s.authmax||s.msg_cooldown>0,onClick:function(){return l("announce")}})}),!!s.emagged&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",color:"red",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageSyndicate")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!s.authmax,onClick:function(){return l("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",content:m,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("MessageCentcomm")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nuclear Device",children:(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",content:h,disabled:!s.authmax||s.cc_cooldown>0,onClick:function(){return l("nukerequest")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,i.Button,{icon:"tv",content:"Change Status Displays",disabled:!s.authenticated,onClick:function(){return l("status")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,i.Button,{icon:"folder-open",content:d,disabled:!s.authenticated,onClick:function(){return l("messagelist")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!s.authenticated,onClick:function(){return l("RestartNanoMob")}})})]})})]})});case 2:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,(0,o.createComponentVNode)(2,i.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Presets",children:N}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alerts",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_1,disabled:!s.authenticated,onClick:function(){return l("setmsg1")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:s.stat_display.line_2,disabled:!s.authenticated,onClick:function(){return l("setmsg2")}})})]})})]})});case 3:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,f]})});default:return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",s.menu_state,"Please report this to NT Technical Support."]})})}}},function(e,t,n){"use strict";t.__esModule=!0,t.Contractor=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(102),l=n(3);var s={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},d=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(2e4*Math.random()),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"];t.Contractor=function(e,t){var n,r=(0,i.useBackend)(t),c=r.act,s=r.data;n=s.unauthorized?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){}})}):s.load_animation_completed?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"hidden",children:1===s.page?(0,o.createComponentVNode)(2,m,{height:"100%"}):(0,o.createComponentVNode)(2,f,{height:"100%"})})],4):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,C,{height:"100%",allMessages:d,finishedTimeout:3e3,onFinished:function(){return c("complete_load_animation")}})});var h=(0,i.useLocalState)(t,"viewingPhoto",""),N=h[0];h[1];return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:[N&&(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Contractor",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:n})})]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.tc_available,s=c.tc_paid_out,d=c.completed_contracts,u=c.rep;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Summary",buttons:(0,o.createComponentVNode)(2,a.Box,{verticalAlign:"middle",mt:"0.25rem",children:[u," Rep"]})},e,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",children:[l," TC"]}),(0,o.createComponentVNode)(2,a.Button,{disabled:l<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){return r("claim")}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Earned",children:[s," TC"]})]})}),(0,o.createComponentVNode)(2,a.Box,{flexBasis:"50%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:d})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.page;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Tabs,Object.assign({},e,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"suitcase"}),"Contracts"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"shopping-cart"}),"Hub"]})]})))},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,d=l.contracts,u=l.contract_active,p=l.can_extract,m=!!u&&d.filter((function(e){return 1===e.status}))[0],f=m&&m.time_left>0,C=(0,i.useLocalState)(t,"viewingPhoto",""),g=(C[0],C[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!p||f,icon:"parachute-box",content:["Call Extraction",f&&(0,o.createComponentVNode)(2,c.Countdown,{timeLeft:m.time_left,format:function(e,t){return" ("+t.substr(3)+")"}})],onClick:function(){return r("extract")}})},e,{children:d.slice().sort((function(e,t){return 1===e.status?-1:1===t.status?1:e.status-t.status})).map((function(e){var t;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",color:1===e.status&&"good",children:e.target_name}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"content",children:e.has_photo&&(0,o.createComponentVNode)(2,a.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return g("target_photo_"+e.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,o.createComponentVNode)(2,a.Box,{width:"100%",children:[!!s[e.status]&&(0,o.createComponentVNode)(2,a.Box,{color:s[e.status][1],display:"inline-block",mt:1!==e.status&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:s[e.status][0]}),1===e.status&&(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){return r("abort")}})]}),children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"2",mr:"0.5rem",children:[e.fluff_message,!!e.completed_time&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",e.completed_time]}),!!e.dead_extraction&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!e.fail_reason&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",e.fail_reason]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{flexBasis:"100%",children:[(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xa0",h(e)]}),null==(t=e.difficulties)?void 0:t.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!!u,content:t.name+" ("+t.reward+" TC)",onClick:function(){return r("activate",{uid:e.uid,difficulty:n+1})}},n)})),!!e.objective&&(0,o.createComponentVNode)(2,a.Box,{color:"white",bold:!0,children:[e.objective.extraction_name,(0,o.createVNode)(1,"br"),"(",(e.objective.rewards.tc||0)+" TC",",\xa0",(e.objective.rewards.credits||0)+" Credits",")"]})]})]})},e.uid)}))})))},h=function(e){if(e.objective&&!(e.status>1)){var t=e.objective.locs.user_area_id,n=e.objective.locs.user_coords,i=e.objective.locs.target_area_id,c=e.objective.locs.target_coords,l=t===i;return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:l?"dot-circle-o":"arrow-alt-circle-right-o",color:l?"green":"yellow",rotation:l?null:-(0,r.rad2deg)(Math.atan2(c[1]-n[1],c[0]-n[0])),lineHeight:l?null:"0.85",size:"1.5"})})}},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.rep,s=c.buyables;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Available Purchases",overflow:"auto"},e,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:e.refundable&&(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Refund ("+e.cost+" Rep)",onClick:function(){return r("refund",{uid:e.uid})}}),children:[e.description,(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:l-1&&(0,o.createComponentVNode)(2,a.Box,{as:"span",color:0===e.stock?"bad":"good",ml:"0.5rem",children:[e.stock," in stock"]})]},e.uid)}))})))},C=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={currentIndex:0,currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.tick=function(){var e=this.props,t=this.state;t.currentIndex<=e.allMessages.length?(this.setState((function(e){return{currentIndex:e.currentIndex+1}})),t.currentDisplay.push(e.allMessages[t.currentIndex])):(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout))},i.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},i.componentWillUnmount=function(){clearTimeout(this.timer)},i.render=function(){return(0,o.createComponentVNode)(2,a.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component),g=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Contractor__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ConveyorSwitch=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ConveyorSwitch=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.slowFactor,d=l.oneWay,u=l.position;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Allow reverse",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:!d,onClick:function(){return c("toggleOneWay")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Slowdown factor",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-left",onClick:function(){return c("slowFactor",{value:s-5})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-left",onClick:function(){return c("slowFactor",{value:s-1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Slider,{width:"100px",mx:"1px",value:s,fillValue:s,minValue:1,maxValue:50,step:1,format:function(e){return e+"x"},onChange:function(e,t){return c("slowFactor",{value:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-right",onClick:function(){return c("slowFactor",{value:s+1})}})," "]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mx:"1px",children:[" ",(0,o.createComponentVNode)(2,i.Button,{icon:"angle-double-right",onClick:function(){return c("slowFactor",{value:s+5})}})," "]})]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitor=void 0;var o=n(0),r=n(24),i=n(18),a=n(1),c=n(2),l=n(80),s=n(49),d=n(3),u=function(e,t){return e.dead?"Deceased":parseInt(e.health,10)<=t?"Critical":1===parseInt(e.stat,10)?"Unconscious":"Living"},p=function(e,t){return e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"green"};t.CrewMonitor=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=(0,a.useLocalState)(t,"tabIndex",r.IndexToggler),l=i[0],s=i[1];return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[r.isBS?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===l,onClick:function(){return s(0)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,r.isBP?(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===l,onClick:function(){return s(1)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===l,onClick:function(){return s(2)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===l,onClick:function(){return s(3)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,f);case 1:return(0,o.createComponentVNode)(2,C);case 2:return(0,o.createComponentVNode)(2,h);case 3:return(0,o.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}(l)]})})})};var m=function(e){var t=e.crewData,n=e.context,d=(0,a.useBackend)(n),m=d.act,h=d.data,f=(0,r.sortBy)((function(e){return e.name}))(t||[]),C=(0,a.useLocalState)(n,"search",""),g=C[0],N=C[1],b=(0,i.createSearch)(g,(function(e){return e.name+"|"+e.assignment+"|"+e.area}));return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(e,t){return N(t)}}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Location"})]}),f.filter(b).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{bold:!!e.is_command,children:[(0,o.createComponentVNode)(2,l.TableCell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.TableCell,{children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:p(e,h.critThreshold),children:u(e,h.critThreshold)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.oxy,children:e.oxy}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.toxin,children:e.tox}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.burn,children:e.fire}),"|",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s.COLORS.damageType.brute,children:e.brute}),")"]}):null]}),(0,o.createComponentVNode)(2,l.TableCell,{children:3===e.sensor_type?h.isAI?(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return m("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+")":"Not Available"})]},e.name)}))]})]})},h=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},f=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_command}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},C=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.crewmembers.filter((function(e){return e.is_security}))||[]);return(0,o.createComponentVNode)(2,m,{crewData:r,context:t})},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=(0,a.useLocalState)(t,"zoom",1),s=l[0],d=l[1],u=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?"square":"circle"},m=function(e){return e.is_command&&i.isBS||e.is_security&&i.isBP?10:6},h=function(e,t){return e.is_command&&i.isBS||e.is_security&&i.isBP?e.dead?"red":parseInt(e.health,10)<=t?"orange":1===parseInt(e.stat,10)?"blue":"violet":p(e,t)};return(0,o.createComponentVNode)(2,c.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,c.NanoMap,{onZoom:function(e){return d(e)},children:i.crewmembers.filter((function(e){return 3===e.sensor_type})).map((function(e){return(0,o.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:s,icon:u(e),size:m(e),tooltip:e.name+" ("+e.assignment+")",color:h(e,i.critThreshold),onClick:function(){i.isAI&&r("track",{track:e.ref})}},e.ref)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(0),r=n(533),i=n(1),a=n(2),c=n(3),l=[{label:"\u0410\u0441\u0444\u0438\u043a\u0441\u0438\u044f",type:"oxyLoss"},{label:"\u0418\u043d\u0442\u043e\u043a\u0441\u0438\u043a\u0430\u0446\u0438\u044f",type:"toxLoss"},{label:"\u0420\u0430\u043d\u044b",type:"bruteLoss"},{label:"\u041e\u0436\u043e\u0433\u0438",type:"fireLoss"}],s=[["good","\u0412 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f"],["bad","\u0422\u0420\u0423\u041f"]];t.Cryo=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,d=c.isOperating,p=c.hasOccupant,m=c.occupant,h=void 0===m?[]:m,f=c.cellTemperature,C=c.cellTemperatureStatus,g=c.isBeakerLoaded,N=c.auto_eject_healthy,b=c.auto_eject_dead;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return r("ejectOccupant")},disabled:!p,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c"}),children:p?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",children:h.name||"\u0418\u043c\u044f \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:h.health,max:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.health)})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:s[h.stat][0],children:s[h.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),l.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(h[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"\u041f\u0430\u0446\u0438\u0435\u043d\u0442 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d."]})})}),(0,o.createComponentVNode)(2,a.Section,{title:"\u041a\u0440\u0438\u043e\u043a\u0430\u043f\u0441\u0443\u043b\u0430",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("ejectBeaker")},disabled:!g,children:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c \u0451\u043c\u043a\u043e\u0441\u0442\u044c"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u041f\u0438\u0442\u0430\u043d\u0438\u0435",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return r(d?"switchOff":"switchOn")},selected:d,children:d?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:C,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return r(N?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:N?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0410\u0432\u0442\u043e\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0451\u0440\u0442\u0432\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432",children:(0,o.createComponentVNode)(2,a.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return r(b?"auto_eject_dead_off":"auto_eject_dead_on")},children:b?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b"})})]})})],4)},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.isBeakerLoaded,s=c.beakerLabel,d=c.beakerVolume;return l?(0,o.createFragment)([s?"\xab"+s+"\xbb":(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430"}),(0,o.createComponentVNode)(2,a.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d,format:function(e){var t=Math.round(e);return(0,r.declensionRu)(t,"\u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u0438\u0441\u044c","\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c")+" "+t+" "+(0,r.declensionRu)(t,"\u0435\u0434\u0438\u043d\u0438\u0446\u0430","\u0435\u0434\u0438\u043d\u0438\u0446\u044b","\u0435\u0434\u0438\u043d\u0438\u0446")}}):"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u0430"})],0):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"\u0401\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430"})}},function(e,t,n){"use strict";t.__esModule=!0,t.declensionRu=void 0;t.declensionRu=function(e,t,n,o){var r=e%100;if(r>=10&&r<=20)return o;var i=r%10;return 1===i?t:i>=2&&i<=4?n:o}},function(e,t,n){"use strict";t.__esModule=!0,t.CryopodConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18);t.CryopodConsole=function(e,t){var n=(0,r.useBackend)(t).data,c=n.account_name,d=n.allow_items;return(0,o.createComponentVNode)(2,a.Window,{title:"Cryopod Console",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Hello, "+(c||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,o.createComponentVNode)(2,l),!!d&&(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t).data.frozen_crew;return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Crew",children:n.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:e.rank},t)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored crew!"})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data.frozen_items,s=function(e){var t=e.toString();return t.startsWith("the ")&&(t=t.slice(4,t.length)),(0,c.toTitleCase)(t)};return(0,o.createComponentVNode)(2,i.Collapsible,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l.length,content:"Drop All Items",color:"red",onClick:function(){return a("all_items")}}),children:l.length?(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:s(e.name),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){return a("one_item",{item:e.uid})}})},e)}))})}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No stored items!"})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(51),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],d=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,i=(0,r.useBackend)(t),l=(i.act,i.data),s=l.irradiating,d=l.dnaBlockSize,m=l.occupant;return t.dnaBlockSize=d,t.isDNAInvalid=!m.isViableSubject||!m.uniqueIdentity||!m.structuralEnzymes,s&&(n=(0,o.createComponentVNode)(2,V,{duration:s})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal),n,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.locked,d=c.hasOccupant,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,selected:s,icon:s?"toggle-on":"toggle-off",content:s?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d||s,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Divider)]})}),t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unique Enzymes",children:c.occupant.uniqueEnzymes?c.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Cell unoccupied."})})},p=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data,d=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?t.isDNAInvalid?(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,f)],4):"se"===d?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f)],4):"buffer"===d?n=(0,o.createComponentVNode)(2,C):"rejuvenators"===d&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:d===e[0],onClick:function(){return c("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedUIBlock,s=c.selectedUISubBlock,d=c.selectedUITarget,u=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:d,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return a("changeUITarget",{value:t})}})})}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},h=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.selectedSEBlock,s=c.selectedSESubBlock,d=c.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:d.structuralEnzymes,selectedBlock:l,selectedSubblock:s,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.radiationIntensity,s=c.radiationDuration;return(0,o.createComponentVNode)(2,i.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationIntensity",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:s,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationDuration",{value:t})}})})]}),(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},C=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.buffers.map((function(e,t){return(0,o.createComponentVNode)(2,g,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,N)],4)},g=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=e.id,s=e.name,d=e.buffer,u=c.isInjectorReady,p=s+(d.data?" - "+d.label:"");return(0,o.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,i.Section,{title:p,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!d.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d.data||!c.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-left",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!d.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:d.owner||(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!d.data&&(0,o.createComponentVNode)(2,i.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.hasDisk,s=c.disk;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button.Confirm,{disabled:!l||!s.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?s.data?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Label",children:s.label?s.label:"No label"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:s.owner?s.owner:(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},b=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.isBeakerLoaded,s=c.beakerVolume,u=c.beakerLabel;return(0,o.createComponentVNode)(2,i.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Inject",children:[d.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:e>s,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},t)})),(0,o.createComponentVNode)(2,i.Button,{disabled:s<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:s})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,i.Box,{mb:"0.5rem",children:u||"No label"}),s?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[s," unit",1===s?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},V=function(e,t){return(0,o.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,i.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},v=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.dnaString),l=e.selectedBlock,s=e.selectedSubblock,d=e.blockSize,u=e.action,p=c.split(""),m=[],h=function(e){for(var t=e/d+1,n=[],r=function(r){var c=r+1;n.push((0,o.createComponentVNode)(2,i.Button,{selected:l===t&&s===c,content:p[e+r],mb:"0",onClick:function(){return a(u,{block:t,subblock:c})}}))},c=0;c0?"Yes":"No",selected:l.com>0,onClick:function(){return c("toggle_com")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Security",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.sec===e,content:e,onClick:function(){return c("set_sec",{set_sec:e})}},"sec"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Medical",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.med===e,content:e,onClick:function(){return c("set_med",{set_med:e})}},"med"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engineering",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.eng===e,content:e,onClick:function(){return c("set_eng",{set_eng:e})}},"eng"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Paranormal",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.par===e,content:e,onClick:function(){return c("set_par",{set_par:e})}},"par"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitor",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.jan===e,content:e,onClick:function(){return c("set_jan",{set_jan:e})}},"jan"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cyborg",children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:l.cyb===e,content:e,onClick:function(){return c("set_cyb",{set_cyb:e})}},"cyb"+e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Slots",children:(0,o.createComponentVNode)(2,i.Box,{color:l.total>l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Dispatch",children:(0,o.createComponentVNode)(2,i.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){return c("dispatch_ert")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Electropack=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Electropack=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=s.power,u=s.code,p=s.frequency,m=s.minFrequency,h=s.maxFrequency;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:h/10,value:p/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onChange:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(e,t){return l("code",{code:t})}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EvolutionMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.EvolutionMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"changeling",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.can_respec;return(0,o.createComponentVNode)(2,i.Section,{title:"Evolution Points",height:5.5,children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{ml:2.5,disabled:!s,content:"Readapt",icon:"sync",onClick:function(){return a("readapt")}}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.evo_points,s=c.ability_list,d=c.purchased_abilities,u=c.view_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Abilities",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){return a("set_view_mode",{mode:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){return a("set_view_mode",{mode:1})}})],4),children:s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{ml:.5,color:"#dedede",children:e.name}),d.includes(e.power_path)&&(0,o.createComponentVNode)(2,i.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,o.createComponentVNode)(2,i.Box,{as:"span",color:"label",children:["Cost: "," "]}),(0,o.createComponentVNode)(2,i.Box,{as:"span",bold:!0,color:"#1b945c",children:e.cost})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,o.createComponentVNode)(2,i.Button,{mr:.5,disabled:e.cost>l||d.includes(e.power_path),content:"Evolve",onClick:function(){return a("purchase",{power_path:e.power_path})}})})]}),!!u&&(0,o.createComponentVNode)(2,i.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:e.description+" "+e.helptext})]},t)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExosuitFabricator=void 0;var o=n(0),r=n(7),i=n(18),a=n(1),c=n(2),l=n(102),s=n(3);var d={bananium:"clown",tranquillite:"mime"};t.ExosuitFabricator=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building;return(0,o.createComponentVNode)(2,s.Window,{theme:r.ui_theme,children:(0,o.createComponentVNode)(2,s.Window.Content,{className:"Exofab",children:(0,o.createComponentVNode)(2,c.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",mr:"0.5rem",width:"70%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"100%",children:(0,o.createComponentVNode)(2,p)}),i&&(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,o.createComponentVNode)(2,m)})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"50%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,h)})]})})]})})})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.materials,s=i.capacity,d=Object.values(l).reduce((function(e,t){return e+t}),0);return(0,o.createComponentVNode)(2,c.Section,{title:"Materials",className:"Exofab__materials",buttons:(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.25rem",children:[(d/s*100).toPrecision(3),"% full"]}),children:["$metal","$glass","$silver","$gold","$uranium","$titanium","$plasma","$diamond","$bluespace","$bananium","$tranquillite","$plastic"].map((function(e){return(0,o.createComponentVNode)(2,f,{id:e,bold:"$metal"===e||"$glass"===e,onClick:function(){return r("withdraw",{id:e})}},e)}))})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.curCategory,d=l.categories,u=l.designs,p=l.syncing,m=(0,a.useLocalState)(t,"searchText",""),h=m[0],f=m[1],g=(0,i.createSearch)(h,(function(e){return e.name})),N=u.filter(g);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__designs",title:(0,o.createComponentVNode)(2,c.Dropdown,{selected:s,options:d,onSelected:function(e){return r("category",{cat:e})},width:"150px"}),height:"100%",buttons:(0,o.createComponentVNode)(2,c.Box,{mt:"-18px",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:"Queue all",onClick:function(){return r("queueall")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:p,iconSpin:p,icon:"sync-alt",content:p?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){return r("sync")}})]}),children:[(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(e,t){return f(t)}}),N.map((function(e){return(0,o.createComponentVNode)(2,C,{design:e},e.id)})),0===N.length&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No designs found."})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.building,s=r.buildStart,d=r.buildEnd,u=r.worldTime;return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__building",stretchContents:!0,children:(0,o.createComponentVNode)(2,c.ProgressBar.Countdown,{start:s,current:u,end:d,bold:!0,children:[(0,o.createComponentVNode)(2,c.Box,{float:"left",children:(0,o.createComponentVNode)(2,c.Icon,{name:"cog",spin:!0})}),"Building ",i,"\xa0(",(0,o.createComponentVNode)(2,l.Countdown,{current:u,timeLeft:d-u,format:function(e,t){return t.substr(3)}}),")"]})})},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.queue,s=i.processingQueue,d=Object.entries(i.queueDeficit).filter((function(e){return e[1]<0})),u=l.reduce((function(e,t){return e+t.time}),0);return(0,o.createComponentVNode)(2,c.Section,{className:"Exofab__queue",title:"Queue",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:"Process",onClick:function(){return r("process")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:0===l.length,icon:"eraser",content:"Clear",onClick:function(){return r("unqueueall")}})]}),children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",direction:"column",children:0===l.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"The queue is empty."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--queue",grow:"1",overflow:"auto",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{color:e.notEnough&&"bad",children:[t+1,". ",e.name,t>0&&(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-up",onClick:function(){return r("queueswap",{from:t+1,to:t})}}),t0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--time",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Processing time:",(0,o.createComponentVNode)(2,c.Icon,{name:"clock",mx:"0.5rem"}),(0,o.createComponentVNode)(2,c.Box,{display:"inline",bold:!0,children:new Date(u/10*1e3).toISOString().substr(14,5)})]}),Object.keys(d).length>0&&(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Exofab__queue--deficit",basis:"content",shrink:"0",children:[(0,o.createComponentVNode)(2,c.Divider),"Lacking materials to complete:",d.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:-e[1],lineDisplay:!0})},e[0])}))]})],0)})})},f=function(e,t){var n=(0,a.useBackend)(t),i=(n.act,n.data),l=e.id,s=e.amount,u=e.lineDisplay,p=e.onClick,m=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["id","amount","lineDisplay","onClick"]),h=l.replace("$",""),f=i.materials[l]||0,C=s||f;if(!(C<=0&&"metal"!==h&&"glass"!==h)){var g=s&&s>f;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Flex,Object.assign({className:(0,r.classes)(["Exofab__material",u&&"Exofab__material--line"])},m,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"content",children:(0,o.createComponentVNode)(2,c.Button,{onClick:p,children:(0,o.createComponentVNode)(2,c.Box,{as:"img",src:"sheet-"+(d[h]||h)+".png"})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:u?(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",color:g&&"bad",children:C.toLocaleString("en-US")}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--name",children:h}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__material--amount",children:[C.toLocaleString("en-US")," cm\xb3 (",Math.round(C/2e3*10)/10," sheets)"]})],4)})]})))}},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=e.design;return(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:l.notEnough||i.building,icon:"cog",content:l.name,onClick:function(){return r("build",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus-circle",onClick:function(){return r("queue",{id:l.id})}}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--cost",children:Object.entries(l.cost).map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,f,{id:e[0],amount:e[1],lineDisplay:!0})},e[0])}))}),(0,o.createComponentVNode)(2,c.Box,{className:"Exofab__design--time",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"clock"}),l.time>0?(0,o.createFragment)([l.time/10,(0,o.createTextVNode)(" seconds")],0):"Instant"]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ExternalAirlockController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ExternalAirlockController=function(e,t){var n,c,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.chamber_pressure,p=(d.exterior_status,d.interior_status),m=d.processing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Information",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Chamber Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:(n=u,c="good",n<80?c="bad":n<95||n>110?c="average":n>120&&(c="bad"),c),value:u,minValue:0,maxValue:1013,children:[u," kPa"]})})})}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:m,onClick:function(){return s("cycle_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:m,onClick:function(){return s("cycle_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_ext")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:"open"===p?"red":m?"yellow":null,onClick:function(){return s("force_int")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Abort",icon:"ban",color:"red",disabled:!m,onClick:function(){return s("abort")}})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FaxMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.FaxMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){return c("scan")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Authorize",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:!l.scan_name&&!l.authenticated,content:l.authenticated?"Log Out":"Log In",onClick:function(){return c("auth")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fax Menu",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:l.network}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Document",children:[(0,o.createComponentVNode)(2,i.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){return c("paper")}}),!!l.paper&&(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){return c("dept")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Action",children:(0,o.createComponentVNode)(2,i.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){return c("send")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.FloorPainter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data,e.image),a=e.isSelected,c=e.onSelect;return(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"border-style":a?"solid":"none","border-width":"2px","border-color":"orange",padding:a?"2px":"4px"},onClick:c})};t.FloorPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.availableStyles,u=s.selectedStyle,p=s.selectedDir,m=s.directionsPreview,h=s.allStylesPreview;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Decal setup",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",onClick:function(){return l("cycle_style",{offset:-1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Dropdown,{options:d,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:"true",onSelected:function(e){return l("select_style",{style:e})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",onClick:function(){return l("cycle_style",{offset:1})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",mb:"5px",children:(0,o.createComponentVNode)(2,i.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,c,{image:h[e],isSelected:u===e,onSelect:function(){return l("select_style",{style:e})}})},"{style}")}))})}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Direction",children:(0,o.createComponentVNode)(2,i.Table,{style:{display:"inline"},children:["north","","south"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[e+"west",e,e+"east"].map((function(e){return(0,o.createComponentVNode)(2,i.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:""===e?(0,o.createComponentVNode)(2,i.Icon,{name:"arrows-alt",size:3}):(0,o.createComponentVNode)(2,c,{image:m[e],isSelected:e===p,onSelect:function(){return l("select_direction",{direction:e})}})},e)}))},e)}))})})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GPS=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=function(e){return e?"("+e.join(", ")+")":"ERROR"};t.GPS=function(e,t){var n=(0,i.useBackend)(t).data,r=n.emped,l=n.active,m=n.area,h=n.position,f=n.saved;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:r?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,s,{emp:!0})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,d)}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{area:m,position:h})}),f&&(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,u,{title:"Saved Position",position:f})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,o.createComponentVNode)(2,p,{height:"100%"})})],0):(0,o.createComponentVNode)(2,s)],0)})})})};var s=function(e,t){var n=e.emp;return(0,o.createComponentVNode)(2,a.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,o.createComponentVNode)(2,a.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:n?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),n?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.active,s=c.tag,d=c.same_z,u=(0,i.useLocalState)(t,"newTag",s),p=u[0],m=u[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",buttons:(0,o.createComponentVNode)(2,a.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tag",children:[(0,o.createComponentVNode)(2,a.Input,{width:"5rem",value:s,onEnter:function(){return r("tag",{newtag:p})},onInput:function(e,t){return m(t)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:s===p,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return r("tag",{newtag:p})},children:(0,o.createComponentVNode)(2,a.Icon,{name:"pen"})})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"compress":"expand",content:d?"Local Sector":"Global",onClick:function(){return r("same_z")}})})]})})},u=function(e,t){var n=e.title,r=e.area,i=e.position;return(0,o.createComponentVNode)(2,a.Section,{title:n||"Position",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",children:[r&&(0,o.createFragment)([r,(0,o.createVNode)(1,"br")],0),l(i)]})})},p=function(e,t){var n=(0,i.useBackend)(t).data,c=n.position,s=n.signals,d=n.upgraded;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({title:"Signals",overflow:"auto"},e,{children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return Object.assign({},e,{},function(e,t,n){if(e&&t){if(e[2]!==t[2]||1!==n)return null;var o=Math.atan2(t[1]-e[1],t[0]-e[0]),i=Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2));return{angle:(0,r.rad2deg)(o),distance:i}}}(c,e.position,d))})).map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:t%2==0&&"rgba(255, 255, 255, 0.05)",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:e.tag}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",color:"grey",children:e.area}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:e.distance!==undefined&&(0,o.createComponentVNode)(2,a.Box,{opacity:Math.max(1-Math.min(e.distance,100)/100,.5),children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.distance>0?"arrow-right":"circle",rotation:-e.angle}),"\xa0",Math.floor(e.distance)+"m"]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:l(e.position)})]},t)}))})})))}},function(e,t,n){"use strict";t.__esModule=!0,t.GasAnalyzer=t.GasAnalyzerHistory=t.GasAnalyzerContent=void 0;var o=n(0),r=n(1),i=n(549),a=n(2),c=n(3),l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.gasmixes,d=l.autoUpdating;return(0,o.createComponentVNode)(2,a.Section,{title:s[0].name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"unlock":"lock",onClick:function(){return c("autoscantoggle")},tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:(0,o.createComponentVNode)(2,i.GasmixParser)},s[0])};t.GasAnalyzerContent=l;var s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.historyGasmixes,s=c.historyViewMode,d=c.historyIndex;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Scan History",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){return i("clearhistory")},textAlign:"center",disabled:0===l.length}),children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"50%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"kPa",onClick:function(){return i("modekpa")},textAlign:"center",selected:"kpa"===s})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"mol",onClick:function(){return i("modemol")},textAlign:"center",selected:"mol"===s})})]})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{content:t+1+". "+("mol"===s?e[0].total_moles.toFixed(2):e[0].pressure.toFixed(2)),onClick:function(){return i("input",{target:t+1})},textAlign:"left",selected:t+1===d,fluid:!0})},e[0])}))})]})};t.GasAnalyzerHistory=s;t.GasAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{grow:!0,children:(0,o.createComponentVNode)(2,l)}),2,{style:{float:"left",width:"67%"}}),(0,o.createVNode)(1,"div",null,(0,o.createComponentVNode)(2,a.Section,{width:"160px",children:(0,o.createComponentVNode)(2,s)}),2,{style:{float:"right",width:"33%"}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasmixParser=void 0;var o=n(0),r=n(1),i=n(2);t.GasmixParser=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.gasmixes);return a[0].total_moles?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Moles",children:(a[0].total_moles?a[0].total_moles:"-")+" mol"}),a[0].oxygen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:a[0].oxygen.toFixed(2)+" mol ("+100*(a[0].oxygen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].nitrogen?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:a[0].nitrogen.toFixed(2)+" mol ("+100*(a[0].nitrogen/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].carbon_dioxide?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:a[0].carbon_dioxide.toFixed(2)+" mol ("+100*(a[0].carbon_dioxide/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].toxins?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:a[0].toxins.toFixed(2)+" mol ("+100*(a[0].toxins/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].sleeping_agent?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrous Oxide",children:a[0].sleeping_agent.toFixed(2)+" mol ("+100*(a[0].sleeping_agent/a[0].total_moles).toFixed(2)+" %)"}):"",a[0].agent_b?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Agent B",children:a[0].agent_b.toFixed(2)+" mol ("+100*(a[0].agent_b/a[0].total_moles).toFixed(2)+" %)"}):"",(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(a[0].total_moles?(a[0].temperature-273.15).toFixed(2):"-")+" \xb0C ("+(a[0].total_moles?a[0].temperature.toFixed(2):"-")+" K)"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Volume",children:(a[0].total_moles?a[0].volume:"-")+" L"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(a[0].total_moles?a[0].pressure.toFixed(2):"-")+" kPa"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Heat Capacity",children:a[0].heat_capacity+" / K"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Thermal Energy",children:a[0].thermal_energy})]}):(0,o.createComponentVNode)(2,i.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},function(e,t,n){"use strict";t.__esModule=!0,t.GasFreezer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GasFreezer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.on,d=l.pressure,u=l.temperature,p=l.temperatureCelsius,m=l.min,h=l.max,f=l.target,C=l.targetCelsius,g=(u-m)/(h-m);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:s?"power-off":"times",content:s?"\u0412\u043a\u043b":"\u0412\u044b\u043a\u043b",selected:s,onClick:function(){return c("power")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435",children:[d," \u043a\u041f\u0430"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:g,ranges:{blue:[-Infinity,.5],red:[.5,Infinity]},children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:[g<.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"blue",ml:1,children:[u," \xb0K (",p," \xb0C)"]}),g>=.5&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"red",ml:1,children:[u," \xb0K (",p," \xb0C)"]})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0435\u043b\u0435\u0432\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"65%",justify:"end",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:(f-m)/(h-m),children:"\xa0"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"35%",children:(0,o.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:[f," \xb0K (",C," \xb0C)"]})})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u0443\u044e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",title:"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:m})}}),(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(f),unit:"\xb0K",minValue:Math.round(m),maxValue:Math.round(h),step:5,stepPixelSize:3,onDrag:function(e,t){return c("temp",{temp:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){return c("temp",{temp:h})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GenericCrewManifest=void 0;var o=n(0),r=n(2),i=n(3),a=n(144);t.GenericCrewManifest=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{noTopPadding:!0,children:(0,o.createComponentVNode)(2,a.CrewManifest)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GhostHudPanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.GhostHudPanel=function(e,t){var n=(0,r.useBackend)(t).data,l=n.security,s=n.medical,d=n.diagnostic,u=n.ahud;return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,c,{label:"Medical",type:"medical",is_active:s}),(0,o.createComponentVNode)(2,c,{label:"Security",type:"security",is_active:l}),(0,o.createComponentVNode)(2,c,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,c,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t).act,a=e.label,c=e.type,l=void 0===c?null:c,s=e.is_active,d=e.act_on,u=void 0===d?"hud_on":d,p=e.act_off,m=void 0===p?"hud_off":p;return(0,o.createComponentVNode)(2,i.Flex,{pt:.3,color:"label",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{pl:.5,align:"center",width:"80%",children:a}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{mr:.6,content:s?"On":"Off",icon:s?"toggle-on":"toggle-off",selected:s,onClick:function(){return n(s?m:u,{hud_type:l})}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.HandheldChemDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=[1,5,10,20,30,50];t.HandheldChemDispenser=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data,s=l.amount,d=l.energy,u=l.maxEnergy,p=l.mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:d,minValue:0,maxValue:u,ranges:{good:[.5*u,Infinity],average:[.25*u,.5*u],bad:[-Infinity,.25*u]},children:[d," / ",u," Units"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:"1",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",width:"14%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:s===e,content:e,m:"0",width:"100%",onClick:function(){return a("amount",{amount:e})}})},t)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"dispense"===p,content:"Dispense",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"dispense"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"remove"===p,content:"Remove",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"remove"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"cog",selected:"isolate"===p,content:"Isolate",m:"0",width:"32%",onClick:function(){return a("mode",{mode:"isolate"})}})]})})]})})},s=function(e,t){for(var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.chemicals,s=void 0===l?[]:l,d=c.current_reagent,u=[],p=0;p<(s.length+1)%3;p++)u.push(!0);return(0,o.createComponentVNode)(2,i.Section,{title:c.glass?"Drink Selector":"Chemical Selector",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px",width:"30%",display:"inline-block",children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:d===e.id,width:"100%",height:"100%",align:"flex-start",content:e.title,onClick:function(){return a("dispense",{reagent:e.id})}})},t)})),u.map((function(e,t){return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Instrument=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3);t.Instrument=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u)]})]})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act;if(n.data.help)return(0,o.createComponentVNode)(2,a.Modal,{maxWidth:"75%",height:.75*window.innerHeight+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,o.createVNode)(1,"h1",null,"Making a Song",16),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Lines are a series of chords, separated by commas\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(,)"}),(0,o.createTextVNode)(", each with notes seperated by hyphens\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"(-)"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo"}),(0,o.createTextVNode)(" as defined above.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Notes are played by the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"names of the note"}),(0,o.createTextVNode)(", and optionally, the\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(", and/or the "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave number"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("By default, every note is\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"natural"}),(0,o.createTextVNode)(" and in\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave 3"}),(0,o.createTextVNode)(". Defining a different state for either is remembered for each "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"note"}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Example:"}),(0,o.createTextVNode)("\xa0"),(0,o.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,o.createTextVNode)(" will play a\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"good",children:"C"}),(0,o.createTextVNode)("\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"major"}),(0,o.createTextVNode)(" scale.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createTextVNode)("After a note has an\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"average",children:"accidental"}),(0,o.createTextVNode)(" or\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"bad",children:"octave"}),(0,o.createTextVNode)(" placed, it will be remembered:\xa0"),(0,o.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,o.createTextVNode)(" is "),(0,o.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],4)],4)],4),(0,o.createVNode)(1,"p",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"Chords"}),(0,o.createTextVNode)("\xa0can be played simply by seperating each note with a hyphen: "),(0,o.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("A "),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"pause"}),(0,o.createTextVNode)("\xa0may be denoted by an empty chord: "),(0,o.createVNode)(1,"i",null,"C,E,,C,G",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,o.createTextVNode)(",\xa0"),(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"highlight",children:"eg:"}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,o.createTextVNode)(".")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Combined, an example line is: "),(0,o.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,o.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,o.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,o.createVNode)(1,"ul",null,[(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Type:"}),(0,o.createTextVNode)("\xa0Whether the instrument is legacy or synthesized."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Current:"}),(0,o.createTextVNode)("\xa0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,o.createTextVNode)("\xa0The pitch to apply to all notes of the song.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,o.createTextVNode)("\xa0How a played note fades out."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,o.createTextVNode)("\xa0The volume threshold at which a note is fully stopped.")],4),(0,o.createVNode)(1,"li",null,[(0,o.createComponentVNode)(2,a.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,o.createTextVNode)("\xa0Whether the last note should be sustained indefinitely.")],4)],4),(0,o.createComponentVNode)(2,a.Button,{color:"grey",content:"Close",onClick:function(){return r("help")}})]})})})},s=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.lines,u=l.playing,p=l.repeat,m=l.maxRepeats,h=l.tempo,f=l.minTempo,C=l.maxTempo,g=l.tickLag,N=l.volume,b=l.minVolume,V=l.maxVolume,v=l.ready;return(0,o.createComponentVNode)(2,a.Section,{title:"Instrument",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"info",content:"Help",onClick:function(){return c("help")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"file",content:"New",onClick:function(){return c("newsong")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Import",onClick:function(){return c("import")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Playback",children:[(0,o.createComponentVNode)(2,a.Button,{selected:u,disabled:0===s.length||p<0,icon:"play",content:"Play",onClick:function(){return c("play")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"stop",content:"Stop",onClick:function(){return c("stop")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Repeat",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0",maxValue:m,value:p,stepPixelSize:"59",onChange:function(e,t){return c("repeat",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tempo",children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:h>=C,content:"-",as:"span",mr:"0.5rem",onClick:function(){return c("tempo",{"new":h+g})}}),(0,r.round)(600/h)," BPM",(0,o.createComponentVNode)(2,a.Button,{disabled:h<=f,content:"+",as:"span",ml:"0.5rem",onClick:function(){return c("tempo",{"new":h-g})}})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:b,maxValue:V,value:N,stepPixelSize:"6",onDrag:function(e,t){return c("setvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:v?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Ready"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,o.createComponentVNode)(2,d)]})},d=function(e,t){var n,c,l=(0,i.useBackend)(t),s=l.act,d=l.data,u=d.allowedInstrumentNames,p=d.instrumentLoaded,m=d.instrument,h=d.canNoteShift,f=d.noteShift,C=d.noteShiftMin,g=d.noteShiftMax,N=d.sustainMode,b=d.sustainLinearDuration,V=d.sustainExponentialDropoff,v=d.legacy,x=d.sustainDropoffVolume,y=d.sustainHeldNote;return 1===N?(n="Linear",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"0.1",maxValue:"5",value:b,step:"0.5",stepPixelSize:"85",format:function(e){return(0,r.round)(100*e)/100+" seconds"},onChange:function(e,t){return s("setlinearfalloff",{"new":t/10})}})):2===N&&(n="Exponential",c=(0,o.createComponentVNode)(2,a.Slider,{minValue:"1.025",maxValue:"10",value:V,step:"0.01",format:function(e){return(0,r.round)(1e3*e)/1e3+"% per decisecond"},onChange:function(e,t){return s("setexpfalloff",{"new":t})}})),u.sort(),(0,o.createComponentVNode)(2,a.Box,{my:-1,children:(0,o.createComponentVNode)(2,a.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,o.createComponentVNode)(2,a.Section,{mt:-1,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:v?"Legacy":"Synthesized"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current",children:p?(0,o.createComponentVNode)(2,a.Dropdown,{options:u,selected:m,width:"40%",onSelected:function(e){return s("switchinstrument",{name:e})}}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None!"})}),!(v||!h)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:C,maxValue:g,value:f,stepPixelSize:"2",format:function(e){return e+" keys / "+(0,r.round)(e/12*100)/100+" octaves"},onChange:function(e,t){return s("setnoteshift",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain Mode",children:[(0,o.createComponentVNode)(2,a.Dropdown,{options:["Linear","Exponential"],selected:n,onSelected:function(e){return s("setsustainmode",{"new":e})}}),c]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,minValue:"0.01",maxValue:"100",value:x,stepPixelSize:"6",onChange:function(e,t){return s("setdropoffvolume",{"new":t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,o.createComponentVNode)(2,a.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"Yes":"No",onClick:function(){return s("togglesustainhold")}})})],4)]}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){return s("reset")}})]})})})},u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.playing,s=c.lines,d=c.editing;return(0,o.createComponentVNode)(2,a.Section,{title:"Editor",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!d||l,icon:"plus",content:"Add Line",onClick:function(){return r("newline",{line:s.length+1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:!d,icon:d?"chevron-up":"chevron-down",onClick:function(){return r("edit")}})],4),children:!!d&&(s.length>0?(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t+1,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"pen",onClick:function(){return r("modifyline",{line:t+1})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:"trash",onClick:function(){return r("deleteline",{line:t+1})}})],4),children:e},t)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Song is empty."}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.ItemPixelShift=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ItemPixelShift=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.pixel_x,d=l.pixel_y,u=l.max_shift_x,p=l.max_shift_y,m=l.random_drop_on;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"X-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:s===-u,onClick:function(){return c("shift_left")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-u,maxValue:u,onChange:function(e,t){return c("custom_x",{pixel_x:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:s===u,onClick:function(){return c("shift_right")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Y-coordinates",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:d===p,onClick:function(){return c("shift_up")}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:d,minValue:-p,maxValue:p,onChange:function(e,t){return c("custom_y",{pixel_y:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:d===-p,onClick:function(){return c("shift_down")}})]})]})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){return c("move_to_top")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){return c("toggle")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=(0,o.createComponentVNode)(2,i.Section,{title:"Keycard Authentication Device",children:(0,o.createComponentVNode)(2,i.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(l.swiping||l.busy){var d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return l.hasSwiped||l.ertreason||"Emergency Response Team"!==l.event?l.hasConfirm?d=(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(d=(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Waiting for second person to confirm..."})):d=(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Fill out the reason for your ERT request."}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,"Emergency Response Team"===l.event&&(0,o.createComponentVNode)(2,i.Section,{title:"Reason for ERT Call",children:(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){return c("ert")}})})}),(0,o.createComponentVNode)(2,i.Section,{title:l.event,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){return c("reset")}}),children:d})]})})}return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[s,(0,o.createComponentVNode)(2,i.Section,{title:"Choose Action",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Red Alert",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){return c("triggerevent",{triggerevent:"Red Alert"})},content:"Red Alert"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ERT",children:(0,o.createComponentVNode)(2,i.Button,{icon:"broadcast-tower",onClick:function(){return c("triggerevent",{triggerevent:"Emergency Response Team"})},content:"Call ERT"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},content:"Revoke"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"door-open",onClick:function(){return c("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},content:"Grant"}),(0,o.createComponentVNode)(2,i.Button,{icon:"door-closed",onClick:function(){return c("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},content:"Revoke"})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.LaborClaimConsole=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.can_go_home,s=c.emagged,d=c.id_inserted,u=c.id_name,p=c.id_points,m=c.id_goal,h=c.unclaimed_points,f=s?0:1,C=s?"ERR0R":l?"Completed!":"Insufficient";return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:!!d&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/m,ranges:{good:[f,Infinity],bad:[-Infinity,f]},children:p+" / "+m+" "+C})||!!s&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Move shuttle",disabled:!l,onClick:function(){return r("move_shuttle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unclaimed points",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!d||!h,onClick:function(){return r("claim_points")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inserted ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:d?u:"-------------",onClick:function(){return r("handle_id")}})})]})})},s=function(e,t){var n=(0,i.useBackend)(t).data.ores;return(0,o.createComponentVNode)(2,a.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LawManager=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.LawManager=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.isAdmin,p=d.isSlaved,m=d.isMalf,h=d.isAIMalf,f=d.view;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!(!u||!p)&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["This unit is slaved to ",p,"."]}),!(!m&&!h)&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Law Management",selected:0===f,onClick:function(){return s("set_view",{set_view:0})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Lawsets",selected:1===f,onClick:function(){return s("set_view",{set_view:1})}})]}),!(0!==f)&&(0,o.createComponentVNode)(2,c),!(1!==f)&&(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.has_zeroth_laws,d=c.zeroth_laws,u=c.has_ion_laws,p=c.ion_laws,m=c.ion_law_nr,h=c.has_inherent_laws,f=c.inherent_laws,C=c.has_supplied_laws,g=c.supplied_laws,N=c.channels,b=c.channel,V=c.isMalf,v=c.isAdmin,x=c.zeroth_law,y=c.ion_law,k=c.inherent_law,w=c.supplied_law,_=c.supplied_law_position;return(0,o.createFragment)([!!l&&(0,o.createComponentVNode)(2,s,{title:"ERR_NULL_VALUE",laws:d,ctx:t}),!!u&&(0,o.createComponentVNode)(2,s,{title:m,laws:p,ctx:t}),!!h&&(0,o.createComponentVNode)(2,s,{title:"Inherent",laws:f,ctx:t}),!!C&&(0,o.createComponentVNode)(2,s,{title:"Supplied",laws:g,ctx:t}),(0,o.createComponentVNode)(2,i.Section,{title:"Statement Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Statement Channel",children:N.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.channel,selected:e.channel===b,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,i.Button,{content:"State Laws",onClick:function(){return a("state_laws")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,i.Button,{content:"Notify",onClick:function(){return a("notify_laws")}})})]})}),!!V&&(0,o.createComponentVNode)(2,i.Section,{title:"Add Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Type"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"60%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"20%",children:"Actions"})]}),!(!v||l)&&(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Zero"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:x}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_zeroth_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_zeroth_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Ion"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:y}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_ion_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_ion_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:k}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_inherent_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_inherent_law")}})]})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:w}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:_,onClick:function(){return a("change_supplied_law_position")}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("change_supplied_law")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Add",icon:"plus",onClick:function(){return a("add_supplied_law")}})]})]})]})})],0)},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.law_sets;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name+" - "+e.header,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Load Laws",icon:"download",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.laws.has_ion_laws>0&&e.laws.ion_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_zeroth_laws>0&&e.laws.zeroth_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_inherent_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)})),e.laws.has_supplied_laws>0&&e.laws.inherent_laws.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.index,children:e.law},e.index)}))]})},e.name)}))})},s=function(e,t){var n=(0,r.useBackend)(e.ctx),a=n.act,c=n.data.isMalf;return(0,o.createComponentVNode)(2,i.Section,{title:e.title+" Laws",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"10%",children:"Index"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"69%",children:"Law"}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"21%",children:"State?"})]}),e.laws.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.index}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.law}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{content:e.state?"Yes":"No",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:e.state?0:1})}}),!!c&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){return a("edit_law",{edit_law:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){return a("delete_law",{delete_law:e.ref})}})],4)]})]},e.law)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechBayConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.MechBayConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.recharge_port,s=l&&l.mech,d=s&&s.cell,u=s&&s.name;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Sync",onClick:function(){return c("reconnect")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mech detected."})||!d&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,i.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechaControlConsole=void 0;var o=n(0),r=(n(15),n(1)),i=n(2),a=n(3),c=n(18);t.MechaControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.beacons,u=s.stored_data;return u.length?(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Log",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",children:["(",e.time,")"]}),(0,o.createComponentVNode)(2,i.Box,{children:(0,c.decodeHtmlEntities)(e.message)})]},e.time)}))})})}):(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.uid})},children:"Message"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.uid})},children:"View Log"}),(0,o.createComponentVNode)(2,i.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.uid})}})],4),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,c.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No mecha beacons found."})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MedicalRecords=void 0;var o=n(0),r=n(1),i=n(2),a=n(51),c=n(3),l=n(140),s=n(141),d=n(145),u={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},p=function(e,t){(0,a.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.MedicalRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,p=u.loginState,C=u.screen;return p.logged_in?(2===C?n=(0,o.createComponentVNode)(2,m):3===C?n=(0,o.createComponentVNode)(2,h):4===C?n=(0,o.createComponentVNode)(2,f):5===C?n=(0,o.createComponentVNode)(2,N):6===C&&(n=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal),(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,d.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,i.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,s.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return a("search",{t1:t})}}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}}),(0,o.createVNode)(1,"br")],4,t)}))})],4)},h=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return n("del_all")}})],4)},f=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.medical,s=c.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,i.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,g)}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"spinner":"print",disabled:s,iconSpin:!!s,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},C=function(e,t){var n=(0,r.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,i.Box,{height:"20px",display:"inline-block",children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return p(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,i.Box,{width:"50%",float:"right",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"General records lost!"})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.field,prewrap:!0,children:[e.value,(0,o.createComponentVNode)(2,i.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return p(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",display:"inline",children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,i.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,i.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return c("new")}})]})},N=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.virus;return c.sort((function(e,t){return e.name>t.name?1:-1})),c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,t)}))},b=function(e,t){var n=(0,r.useBackend)(t).data.medbots;return 0===n.length?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"There are no Medbots."}):n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,i.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Offline"})})]})})},t)}))},V=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.screen;return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===c,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===c,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,t){var n=e.args;return(0,o.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:n.name||"Virus",children:(0,o.createComponentVNode)(2,i.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Number of stages",children:n.max_stages}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible cure",children:n.cure}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Notes",children:n.desc}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Severity",color:u[n.severity],children:n.severity})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.MiningVendor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);var l={Alphabetical:function(e,t){return e-t},"By availability":function(e,t){return-(e.affordable-t.affordable)},"By price":function(e,t){return e.price-t.price}};t.MiningVendor=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.has_id,s=c.id;return(0,o.createComponentVNode)(2,a.NoticeBox,{success:l,children:l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return r("logoff")}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),s=c.has_id,d=c.id,u=c.items,m=(0,i.useLocalState)(t,"search",""),h=m[0],f=(m[1],(0,i.useLocalState)(t,"sort","Alphabetical")),C=f[0],g=(f[1],(0,i.useLocalState)(t,"descending",!1)),N=g[0],b=(g[1],(0,r.createSearch)(h,(function(e){return e[0]}))),V=!1,v=Object.entries(u).map((function(e,t){var n=Object.entries(e[1]).filter(b).map((function(e){return e[1].affordable=s&&d.points>=e[1].price,e[1]})).sort(l[C]);if(0!==n.length)return N&&(n=n.reverse()),V=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:V?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),s=(c[0],c[1]),d=(0,i.useLocalState)(t,"descending",!1),u=d[0],p=d[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return s(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return p(!u)}})})]})})},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=e.title,s=e.items,d=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},d,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!c.has_id||c.id.points=0||(r[n]=e[n]);return r}t.Multitool=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,p=l.multitoolMenuId,v=l.buffer,x=l.bufferName,y=l.bufferTag,k=l.canBufferHaveTag,w=l.isAttachedAlreadyInBuffer,_=l.attachedName,B=!("default_no_machine"===p);return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{style:{"overflow-x":"hidden","overflow-y":"auto"},grow:1,shrink:1,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Configuration menu",py:.3,children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:_,noMachine:"default_no_machine"===p,noMachineText:"No machine attached"}),function(e){switch(e){case"default_no_machine":case"no_options":return(0,o.createComponentVNode)(2,h);case"access_denied":return(0,o.createComponentVNode)(2,f);case"tag_only":return(0,o.createComponentVNode)(2,C);case"frequency_and_tag":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C)],4);case"air_sensor":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,N)],4);case"general_air_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,b)],4);case"large_tank_control":return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,b)],4);default:return"WE SHOULDN'T BE HERE!"}}(p)]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Divider)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:w?"Added":"Add machine",icon:"save",disabled:!B||w,onClick:function(){return r("buffer_add")}}),(0,o.createComponentVNode)(2,a.Button,{mr:1,content:"Flush",icon:"times-circle",color:"red",disabled:!v,onClick:function(){return r("buffer_flush")}})],4),children:[(0,o.createComponentVNode)(2,s,{iconName:"tools",machineName:x,noMachine:!v,noMachineElem:(0,o.createComponentVNode)(2,d,{text:""})}),!!v&&(0,o.createComponentVNode)(2,m,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:k?(0,o.createComponentVNode)(2,u,{text:y,defaultText:"",color:"silver"}):(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})};var s=function(e,t){var n=e.iconName,r=e.machineName,i=e.noMachine,c=e.noMachineText,l=e.noMachineElem,s=i?c:r||"Unknown machine",d=s===c,u=s===c||"Unknown machine"===s;return i&&l?l:(0,o.createComponentVNode)(2,a.Flex,{mt:.1,mb:1.9,children:[!i&&(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{mr:1,size:1.1,name:n})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,o.createComponentVNode)(2,a.Box,{as:"span",wordWrap:"break-word",color:d?"label":"silver",fontSize:"1.1rem",bold:!0,italic:u,children:s})})]})},d=function(e,t){var n=e.text;return(0,o.createComponentVNode)(2,a.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:n})},u=function(e,t){var n=e.text,r=e.defaultText,i=l(e,["text","defaultText"]);return n?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"span",wordWrap:"break-word"},i,{children:n}))):(0,o.createComponentVNode)(2,d,{text:r})},p=function(e,t){var n=e.noConfirm,r=void 0!==n&&n,i=l(e,["noConfirm"]);return r?(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({},i))):(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button.Confirm,Object.assign({},i)))},m=function(e,t){var n=e.label,r=e.wrapContent,i=e.noWrapContent,c=e.compactLabel,s=void 0!==c&&c,d=l(e,["label","wrapContent","noWrapContent","compactLabel"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},d,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:s?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:s?"auto":0,maxWidth:s?"none":20,color:"label",nowrap:!0,children:n}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:r}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:.1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:i})]})))},h=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},f=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.attachedTag;return(0,o.createComponentVNode)(2,m,{label:"ID tag",wrapContent:(0,o.createComponentVNode)(2,u,{text:c,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Set",icon:"wrench",onClick:function(){return r("set_tag")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!c,onClick:function(){return r("clear_tag")}})],4)})},g=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.frequency,d=l.minFrequency,u=l.maxFrequency,p=l.canReset;return(0,o.createComponentVNode)(2,m,{label:"Frequency",noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:d/10,maxValue:u/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},onChange:function(e,t){return c("set_frequency",{frequency:10*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"",disabled:!p,tooltip:"Reset",onClick:function(){return c("reset_frequency")}})],4)})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.bolts,s=[{bitflag:1,checked:c.pressureCheck,label:"Monitor pressure"},{bitflag:2,checked:c.temperatureCheck,label:"Monitor temperature"},{bitflag:4,checked:c.oxygenCheck,label:"Monitor oxygen concentration"},{bitflag:8,checked:c.toxinsCheck,label:"Monitor plasma concentration"},{bitflag:16,checked:c.nitrogenCheck,label:"Monitor nitrogen concentration"},{bitflag:32,checked:c.carbonDioxideCheck,label:"Monitor carbon dioxide concentration"}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Floor bolts",noWrapContent:(0,o.createComponentVNode)(2,a.Button,{icon:l?"check":"times",selected:l,content:l?"YES":"NO",onClick:function(){return r("toggle_bolts")}})}),s.map((function(e){return(0,o.createComponentVNode)(2,m,{label:e.label,noWrapContent:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.checked,onClick:function(){return r("toggle_flag",{bitflag:e.bitflag})}})},e.bitflag)}))],0)},b=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data.sensors;return(0,o.createComponentVNode)(2,a.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,o.createComponentVNode)(2,a.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){return r("add_sensor")}}),children:[(0,o.createComponentVNode)(2,m,{mr:0,compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:1}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:11.3})]})}),Object.keys(c).map((function(e){return(0,o.createComponentVNode)(2,m,{mr:0,label:(0,o.createComponentVNode)(2,a.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,o.createComponentVNode)(2,a.Flex,{align:"center",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:e}),c[e]?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:c[e]}):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"edit",onClick:function(){return r("change_label",{sensor_tag:e})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!c[e],onClick:function(){return r("clear_label",{sensor_tag:e})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:.5}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:0,shrink:0,children:(0,o.createComponentVNode)(2,a.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){return r("del_sensor",{sensor_tag:e})}})})]})},e)}))]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.inputTag,s=c.outputTag,d=c.bufferTag,h=c.bufferFitsInput,f=c.bufferFitsOutput,C=c.doNotLinkAndNotify;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m,{label:"Input",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:l,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!l,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:l&&d===l,disabled:!h,onClick:function(){return r("link_input")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!l,onClick:function(){return r("unlink_input")}})],4)}),(0,o.createComponentVNode)(2,m,{label:"Output",labelWidth:6,wrapContent:(0,o.createComponentVNode)(2,u,{text:s,defaultText:"",color:"silver"}),noWrapContent:(0,o.createFragment)([(0,o.createComponentVNode)(2,p,{noConfirm:C||!s,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:s&&d===s,disabled:!f,onClick:function(){return r("link_output")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!s,onClick:function(){return r("unlink_output")}})],4)})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.Newscaster=void 0;var o=n(0),r=n(7),i=n(1),a=n(2),c=n(49),l=n(3),s=n(51),d=n(145);function u(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var p=["security","engineering","medical","science","service","supply"],m={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}};t.Newscaster=function(e,t){var n,c=(0,i.useBackend)(t),u=c.act,p=c.data,m=p.is_security,g=p.is_admin,N=p.is_silent,V=p.is_printing,v=p.screen,x=p.channels,y=p.channel_idx,k=void 0===y?-1:y,w=(0,i.useLocalState)(t,"menuOpen",!1),_=w[0],B=w[1],S=(0,i.useLocalState)(t,"viewingPhoto",""),L=S[0],A=(S[1],(0,i.useLocalState)(t,"censorMode",!1)),E=A[0],I=A[1];0===v||2===v?n=(0,o.createComponentVNode)(2,f):1===v&&(n=(0,o.createComponentVNode)(2,C));var D=x.reduce((function(e,t){return e+t.unread}),0);return(0,o.createComponentVNode)(2,l.Window,{theme:m&&"security",children:[L?(0,o.createComponentVNode)(2,b):(0,o.createComponentVNode)(2,s.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,a.Section,{stretchContents:!0,className:(0,r.classes)(["Newscaster__menu",_&&"Newscaster__menu--open"]),children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Box,{flex:"0 1 content",children:[(0,o.createComponentVNode)(2,h,{icon:"bars",title:"Toggle Menu",onClick:function(){return B(!_)}}),(0,o.createComponentVNode)(2,h,{icon:"newspaper",title:"Headlines",selected:0===v,onClick:function(){return u("headlines")},children:D>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:D>=10?"9+":D})}),(0,o.createComponentVNode)(2,h,{icon:"briefcase",title:"Job Openings",selected:1===v,onClick:function(){return u("jobs")}}),(0,o.createComponentVNode)(2,a.Divider)]}),(0,o.createComponentVNode)(2,a.Box,{flex:"2",overflowY:"auto",overflowX:"hidden",children:x.map((function(e){return(0,o.createComponentVNode)(2,h,{icon:e.icon,title:e.name,selected:2===v&&x[k-1]===e,onClick:function(){return u("channel",{uid:e.uid})},children:e.unread>0&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--unread",children:e.unread>=10?"9+":e.unread})},e)}))}),(0,o.createComponentVNode)(2,a.Box,{width:"100%",flex:"0 0 content",children:[(0,o.createComponentVNode)(2,a.Divider),(!!m||!!g)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,h,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"wanted_notice")}}),(0,o.createComponentVNode)(2,h,{security:!0,icon:E?"minus-square":"minus-square-o",title:"Censor Mode: "+(E?"On":"Off"),mb:"0.5rem",onClick:function(){return I(!E)}}),(0,o.createComponentVNode)(2,a.Divider)],4),(0,o.createComponentVNode)(2,h,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){return(0,s.modalOpen)(t,"create_story")}}),(0,o.createComponentVNode)(2,h,{icon:"plus-circle",title:"New Channel",onClick:function(){return(0,s.modalOpen)(t,"create_channel")}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,h,{icon:V?"spinner":"print",iconSpin:V,title:V?"Printing...":"Print Newspaper",onClick:function(){return u("print_newspaper")}}),(0,o.createComponentVNode)(2,h,{icon:N?"volume-mute":"volume-up",title:"Mute: "+(N?"On":"Off"),onClick:function(){return u("toggle_mute")}})]})]})}),(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,d.TemporaryNotice),n]})]})})]})};var h=function(e,t){(0,i.useBackend)(t).act;var n=e.icon,c=void 0===n?"":n,l=e.iconSpin,s=e.selected,d=void 0!==s&&s,p=e.security,m=void 0!==p&&p,h=e.onClick,f=e.title,C=e.children,g=u(e,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Newscaster__menuButton",d&&"Newscaster__menuButton--selected",m&&"Newscaster__menuButton--security"]),onClick:h},g,{children:[d&&(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,o.createComponentVNode)(2,a.Icon,{name:c,spin:l,size:"2"}),(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__menuButton--title",children:f}),C]})))},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.screen,d=c.is_admin,u=c.channel_idx,p=c.channel_can_manage,m=c.channels,h=c.stories,f=c.wanted,C=(0,i.useLocalState)(t,"fullStories",[]),N=C[0],b=(C[1],(0,i.useLocalState)(t,"censorMode",!1)),V=b[0],v=(b[1],2===l&&u>-1?m[u-1]:null);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!f&&(0,o.createComponentVNode)(2,g,{story:f,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:v?v.icon:"newspaper",mr:"0.5rem"}),v?v.name:"Headlines"],0),flexGrow:"1",children:h.length>0?h.slice().reverse().map((function(e){return!N.includes(e.uid)&&e.body.length+3>128?Object.assign({},e,{body_short:e.body.substr(0,124)+"..."}):e})).map((function(e){return(0,o.createComponentVNode)(2,g,{story:e},e)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no stories at this time."]})}),!!v&&(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"info-circle",mr:"0.5rem"}),(0,o.createTextVNode)("About")],4),buttons:(0,o.createFragment)([V&&(0,o.createComponentVNode)(2,a.Button,{disabled:!!v.admin&&!d,selected:v.censored,icon:v.censored?"comment-slash":"comment",content:v.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){return r("censor_channel",{uid:v.uid})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!p,icon:"cog",content:"Manage",onClick:function(){return(0,s.modalOpen)(t,"manage_channel",{uid:v.uid})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:v.description||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:v.author||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Public",children:v["public"]?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Views",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"eye",mr:"0.5rem"}),h.reduce((function(e,t){return e+t.view_count}),0).toLocaleString()]})]})})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.jobs,s=c.wanted,d=Object.entries(l).reduce((function(e,t){t[0];return e+t[1].length}),0);return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:[!!s&&(0,o.createComponentVNode)(2,g,{story:s,wanted:!0}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"briefcase",mr:"0.5rem"}),(0,o.createTextVNode)("Job Openings")],4),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:d>0?p.map((function(e){return Object.assign({},m[e],{id:e,jobs:l[e]})})).filter((function(e){return!!e&&e.jobs.length>0})).map((function(e){return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+e.id]),title:e.title,buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",color:"label",children:e.fluff_text}),children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{"class":(0,r.classes)(["Newscaster__jobOpening",!!e.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",e.title]},e.title)}))},e.id)})):(0,o.createComponentVNode)(2,a.Box,{className:"Newscaster__emptyNotice",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"times",size:"3"}),(0,o.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,o.createComponentVNode)(2,a.Section,{flexShrink:"1",children:["Interested in serving Nanotrasen?",(0,o.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,o.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(e,t){var n=(0,i.useBackend)(t),l=n.act,s=n.data,d=e.story,u=e.wanted,p=void 0!==u&&u,m=(0,i.useLocalState)(t,"fullStories",[]),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"censorMode",!1),g=C[0];C[1];return(0,o.createComponentVNode)(2,a.Section,{className:(0,r.classes)(["Newscaster__story",p&&"Newscaster__story--wanted"]),title:(0,o.createFragment)([p&&(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle",mr:"0.5rem"}),(2&d.censor_flags?"[REDACTED]":d.title)||"News from "+d.author],0),buttons:(0,o.createComponentVNode)(2,a.Box,{mt:"0.25rem",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:[!p&&g&&(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:(0,o.createComponentVNode)(2,a.Button,{enabled:2&d.censor_flags,icon:2&d.censor_flags?"comment-slash":"comment",content:2&d.censor_flags?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){return l("censor_story",{uid:d.uid})}})}),(0,o.createComponentVNode)(2,a.Box,{display:"inline",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",d.author," |\xa0",!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"eye"}),(0,o.createTextVNode)(" "),d.view_count.toLocaleString(),(0,o.createTextVNode)(" |\xa0")],0),(0,o.createComponentVNode)(2,a.Icon,{name:"clock"})," ",(0,c.timeAgo)(d.publish_time,s.world_time)]})]})}),children:(0,o.createComponentVNode)(2,a.Box,{children:2&d.censor_flags?"[REDACTED]":(0,o.createFragment)([!!d.has_photo&&(0,o.createComponentVNode)(2,N,{name:"story_photo_"+d.uid+".png",float:"right",ml:"0.5rem"}),(d.body_short||d.body).split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),d.body_short&&(0,o.createComponentVNode)(2,a.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){return f([].concat(h,[d.uid]))}}),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})],0)})})},N=function(e,t){var n=e.name,r=u(e,["name"]),c=(0,i.useLocalState)(t,"viewingPhoto",""),l=(c[0],c[1]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({as:"img",className:"Newscaster__photo",src:n,onClick:function(){return l(n)}},r)))},b=function(e,t){var n=(0,i.useLocalState)(t,"viewingPhoto",""),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Modal,{className:"Newscaster__photoZoom",children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",src:r}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return c("")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),c=!!e.args.uid&&r.channels.filter((function(t){return t.uid===e.args.uid})).pop();if("manage_channel"!==e.id||c){var l="manage_channel"===e.id,d=!!e.args.is_admin,u=e.args.scanned_user,p=(0,i.useLocalState)(t,"author",(null==c?void 0:c.author)||u||"Unknown"),m=p[0],h=p[1],f=(0,i.useLocalState)(t,"name",(null==c?void 0:c.name)||""),C=f[0],g=f[1],N=(0,i.useLocalState)(t,"description",(null==c?void 0:c.description)||""),b=N[0],V=N[1],v=(0,i.useLocalState)(t,"icon",(null==c?void 0:c.icon)||"newspaper"),x=v[0],y=v[1],k=(0,i.useLocalState)(t,"isPublic",!!l&&!!(null==c?void 0:c["public"])),w=k[0],_=k[1],B=(0,i.useLocalState)(t,"adminLocked",1===(null==c?void 0:c.admin)||!1),S=B[0],L=B[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:l?"Manage "+c.name:"Create New Channel",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!d,width:"100%",value:m,onInput:function(e,t){return h(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:C,onInput:function(e,t){return g(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:b,onInput:function(e,t){return V(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Icon",children:[(0,o.createComponentVNode)(2,a.Input,{disabled:!d,value:x,width:"35%",mr:"0.5rem",onInput:function(e,t){return y(t)}}),(0,o.createComponentVNode)(2,a.Icon,{name:x,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Stories?",children:(0,o.createComponentVNode)(2,a.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){return _(!w)}})}),d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:S,icon:S?"lock":"lock-open",content:S?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return L(!S)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===m.trim().length||0===C.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:m,name:C.substr(0,49),description:b.substr(0,128),icon:x,"public":w?1:0,admin_locked:S?1:0}),(0,i.deleteLocalState)(t,"author","name","description","icon","public")}})]})}(0,s.modalClose)(t)};(0,s.modalRegisterBodyOverride)("create_channel",V),(0,s.modalRegisterBodyOverride)("manage_channel",V),(0,s.modalRegisterBodyOverride)("create_story",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.channels,u=c.channel_idx,p=void 0===u?-1:u,m=!!e.args.is_admin,h=e.args.scanned_user,f=d.slice().sort((function(e,t){if(p<0)return 0;var n=d[p-1];return n.uid===e.uid?-1:n.uid===t.uid?1:void 0})).filter((function(e){return m||!e.frozen&&(e.author===h||!!e["public"])})),C=(0,i.useLocalState)(t,"author",h||"Unknown"),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"channel",f.length>0?f[0].name:""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"title",""),k=y[0],w=y[1],_=(0,i.useLocalState)(t,"body",""),B=_[0],S=_[1],L=(0,i.useLocalState)(t,"adminLocked",!1),A=L[0],E=L[1];return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Create New Story",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Author",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!m,width:"100%",value:g,onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:v,options:f.map((function(e){return e.name})),mb:"0",width:"100%",onSelected:function(e){return x(e)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:k,onInput:function(e,t){return w(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:B,onInput:function(e,t){return S(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){return r(l?"eject_photo":"attach_photo")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,title:k,maxHeight:"13.5rem",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:[!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"}),B.split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e||(0,o.createVNode)(1,"br")},e)})),(0,o.createComponentVNode)(2,a.Box,{clear:"right"})]})})}),m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:A,icon:A?"lock":"lock-open",content:A?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return E(!A)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===g.trim().length||0===v.trim().length||0===k.trim().length||0===B.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,"create_story","",{author:g,channel:v,title:k.substr(0,127),body:B.substr(0,1023),admin_locked:A?1:0}),(0,i.deleteLocalState)(t,"author","channel","title","body")}})]})})),(0,s.modalRegisterBodyOverride)("wanted_notice",(function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.photo,d=c.wanted,u=!!e.args.is_admin,p=e.args.scanned_user,m=(0,i.useLocalState)(t,"author",(null==d?void 0:d.author)||p||"Unknown"),h=m[0],f=m[1],C=(0,i.useLocalState)(t,"name",(null==d?void 0:d.title.substr(8))||""),g=C[0],b=C[1],V=(0,i.useLocalState)(t,"description",(null==d?void 0:d.body)||""),v=V[0],x=V[1],y=(0,i.useLocalState)(t,"adminLocked",1===(null==d?void 0:d.admin_locked)||!1),k=y[0],w=y[1];return(0,o.createComponentVNode)(2,a.Section,{level:"2",m:"-1rem",pb:"1rem",title:"Manage Wanted Notice",children:[(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authority",children:(0,o.createComponentVNode)(2,a.Input,{disabled:!u,width:"100%",value:h,onInput:function(e,t){return f(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",value:g,maxLength:"128",onInput:function(e,t){return b(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{multiline:!0,width:"100%",value:v,maxLength:"512",rows:"4",onInput:function(e,t){return x(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"image",selected:l,content:l?"Eject: "+l.name:"Insert Photo",tooltip:!l&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){return r(l?"eject_photo":"attach_photo")}}),!!l&&(0,o.createComponentVNode)(2,N,{name:"inserted_photo_"+l.uid+".png",float:"right"})]}),u&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Button,{selected:k,icon:k?"lock":"lock-open",content:k?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return w(!k)}})})]})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!d,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){r("clear_wanted_notice"),(0,s.modalClose)(t),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:0===h.trim().length||0===g.trim().length||0===v.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,s.modalAnswer)(t,e.id,"",{author:h,name:g.substr(0,127),description:v.substr(0,511),admin_locked:k?1:0}),(0,i.deleteLocalState)(t,"author","name","description","admin_locked")}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaBloodScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3);t.NinjaBloodScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.vialIcons,d=l.noVialIcon,u=l.bloodOwnerNames,p=l.bloodOwnerSpecies,m=l.bloodOwnerTypes,h=l.blockButtons,f=l.scanStates,C="Button_blue",g="Button_disabled",N=["NoticeBox_red","NoticeBox","NoticeBox_blue"];return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"\u041e\u0431\u0440\u0430\u0437\u0446\u044b",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0437\u0446\u0430 \u043a\u0440\u043e\u0432\u0438. \u041c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043a\u0440\u043e\u0432\u044c\u044e \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0430\u043c \u043a\u043b\u0430\u043d. \u0420\u0435\u0430\u0433\u0435\u043d\u0442\u044b \u0438\u043c \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u043c\u0443\u0442\u0441\u044f \u0438\u043b\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c",tooltipPosition:"bottom-left"}),children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"center",children:[1,2,3].map((function(e,t){return(0,o.createComponentVNode)(2,a.FlexItem,{direction:"column",width:"33.3%",ml:t?2:0,children:[(0,o.createComponentVNode)(2,i.Section,{title:u[t]?"\u041a\u0440\u043e\u0432\u044c":"\u041d\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043d\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:N[f[t]],success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:h?g:C,height:"100%",width:"100%",disabled:h,onClick:function(){return c("vial_out",{button_num:t+1})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(s[t]||d),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:u[t]||" - ",content:"\u0420\u0430\u0441\u0430: "+(p[t]||" - ")+"\n\u0422\u0438\u043f \u043a\u0440\u043e\u0432\u0438: "+(m[t]||" - "),position:"bottom"})]})})]},t)}))}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{className:0===h?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:h,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043a\u0440\u043e\u0432\u044c \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u043d\u0443.",tooltipPosition:"bottom",onClick:function(){return c("scan_blood")}})})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data.progressBar;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"green",value:n,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",mt:1,children:n?"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 "+n+"%":"\u0420\u0435\u0436\u0438\u043c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f"}),2)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NinjaMindScan=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NinjaMindScan=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"spider_clan",children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.occupantIcon,s=c.occupant_name,d=c.occupant_health,u=c.scanned_occupants,p="none"===s?1:0;return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0430\u0446\u0438\u0435\u043d\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{shrink:1,alignContent:"left",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+l,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor"}})})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,alignContent:"right",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0418\u043c\u044f",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435",children:d})]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u044b\u0442\u044c \u0438\u0437 \u0435\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u043b\u0430\u043d\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.",tooltipPosition:"bottom-left",onClick:function(){return a("scan_occupant")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e",width:"250px",textAlign:"center",disabled:p,tooltip:"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438\u0437 \u043a\u0430\u043f\u0441\u0443\u043b\u044b",tooltipPosition:"bottom-left",onClick:function(){return a("go_out")}}),(0,o.createComponentVNode)(2,i.Button,{className:0===p?"":"Button_disabled",content:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430",width:"250px",textAlign:"center",disabled:p,tooltip:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d \u0431\u044b\u043b \u043f\u043e\u0445\u0438\u0449\u0435\u043d. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u0440\u0430\u0437\u0431\u043e\u043b\u0442\u0430\u043b \u043e \u0432\u0430\u0441.",tooltipPosition:"bottom-left",onClick:function(){return a("teleport_out")}})]})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u043c\u0438 \u043b\u044e\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,o.createComponentVNode)(2,i.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Box,{children:e.scanned_occupant})})},e.scanned_occupant)}))})})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.NuclearBomb=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return l.extended?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Authorization",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Disk",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return c("auth")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auth Code",children:(0,o.createComponentVNode)(2,i.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){return c("code")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Arming & Disarming",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Bolted to floor",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authfull,content:l.anchored?"YES":"NO",onClick:function(){return c("toggle_anchor")}})}),l.authfull&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",children:(0,o.createComponentVNode)(2,i.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){return c("set_time")}})})||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time Left",color:l.timer?"red":"",children:l.time+"s"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safety",children:(0,o.createComponentVNode)(2,i.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){return c("toggle_safety")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Arm/Disarm",children:(0,o.createComponentVNode)(2,i.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){return c("toggle_armed")}})})]})})]})}):(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Deployment",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){return c("deploy")}})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(0),r=n(15),i=n(1),a=n(3),c=n(2),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.OperatingComputer=function(e,t){var n,r=(0,i.useBackend)(t),l=r.act,s=r.data,d=s.hasOccupant,u=s.choice;return n=u?(0,o.createComponentVNode)(2,h):d?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:n})]})})};var p=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:n.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[n.stat][0],children:l[n.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),s.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]])},t)},t)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:u[n.temperatureSuitability+3],children:[(0,r.round)(n.btCelsius),"\xb0C, ",(0,r.round)(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pulse",children:[n.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Current Procedures",level:"2",children:n.inSurgery?n.surgeries.map((function(e){var t=e.bodypartName,n=e.surgeryName,r=e.stepName;return(0,o.createComponentVNode)(2,c.Section,{title:t,level:"4",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Procedure",children:n}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Next Step",children:r})]})},t)})):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No procedures ongoing."})})],4)},m=function(){return(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,l=a.verbose,s=a.health,d=a.healthAlarm,u=a.oxy,p=a.oxyAlarm,m=a.crit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,c.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"On":"Off",onClick:function(){return r(s?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:d,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("health_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:p,stepPixelSize:"5",ml:"0",onChange:function(e,t){return r("oxy_adj",{"new":t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,c.Button,{selected:m,icon:m?"toggle-on":"toggle-off",content:m?"On":"Off",onClick:function(){return r(m?"critOff":"critOn")}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Orbit=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);nt},m=function(e,t){var n=e.name,o=t.name;if(!n||!o)return 0;var r=n.match(d),i=o.match(d);return r&&i&&n.replace(d,"")===o.replace(d,"")?parseInt(r[1],10)-parseInt(i[1],10):p(n,o)},h=function(e,t){var n=(0,i.useBackend)(t).act,r=e.searchText,c=e.source,l=e.title,s=c.filter(u(r));return s.sort(m),c.length>0&&(0,o.createComponentVNode)(2,a.Section,{title:l+" - ("+c.length+")",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return n("orbit",{ref:e.ref})}},e.name)}))})},f=function(e,t){var n=(0,i.useBackend)(t).act,r=e.color,c=e.thing;return(0,o.createComponentVNode)(2,a.Button,{color:r,onClick:function(){return n("orbit",{ref:c.ref})},children:c.name})};t.Orbit=function(e,t){for(var n,r=(0,i.useBackend)(t),s=r.act,d=r.data,C=d.alive,g=d.antagonists,N=(d.auto_observe,d.dead),b=d.ghosts,V=d.misc,v=d.npcs,x=(0,i.useLocalState)(t,"searchText",""),y=x[0],k=x[1],w={},_=l(g);!(n=_()).done;){var B=n.value;w[B.antag]===undefined&&(w[B.antag]=[]),w[B.antag].push(B)}var S=Object.entries(w);S.sort((function(e,t){return p(e[0],t[0])}));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:"search",mr:1})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:y,onInput:function(e,t){return k(t)},onEnter:function(e,t){return function(e){for(var t=0,n=[S.map((function(e){return e[0],e[1]})),C,b,N,v,V];t0&&(0,o.createComponentVNode)(2,a.Section,{title:"Antagonists",children:S.map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Section,{title:t,level:2,children:n.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"bad",thing:e},e.name)}))},t)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Alive - ("+C.length+")",children:C.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"good",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Ghosts - ("+b.length+")",children:b.filter(u(y)).sort(m).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"grey",thing:e},e.name)}))}),(0,o.createComponentVNode)(2,h,{title:"Dead",source:N,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"NPCs",source:v,searchText:y}),(0,o.createComponentVNode)(2,h,{title:"Misc",source:V,searchText:y})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemption=void 0;var o=n(0),r=n(1),i=n(2),a=n(50),c=n(3),l=function(e){return e.toLocaleString("en-US")+" pts"},s={bananium:"clown",tranquillite:"mime"};t.OreRedemption=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"content",mb:"0.5rem",children:(0,o.createComponentVNode)(2,d,{height:"100%"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",overflow:"hidden",children:[(0,o.createComponentVNode)(2,u,{height:"62%"}),(0,o.createComponentVNode)(2,p,{height:"38%"})]})]})})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.id,d=c.points,u=c.disk,p=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({},p,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"average",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID card",children:s?(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:s.name,tooltip:"Ejects the ID card.",onClick:function(){return a("eject_id")},style:{"white-space":"pre-wrap"}}):(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){return a("insert_id")}})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Mining Points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.points)})}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Mining Points",children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:l(s.total_points)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unclaimed Points",color:d>0?"good":"grey",bold:d>0&&"good",children:l(d)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!s,icon:"hand-holding-usd",content:"Claim",onClick:function(){return a("claim")}})})]}),(0,o.createComponentVNode)(2,i.Divider),u?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Design disk",children:(0,o.createComponentVNode)(2,i.Button,{selected:!0,bold:!0,icon:"eject",content:u.name,tooltip:"Ejects the design disk.",onClick:function(){return a("eject_disk")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stored design",children:(0,o.createComponentVNode)(2,i.Box,{color:u.design&&(u.compatible?"good":"bad"),children:u.design||"N/A"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{children:(0,o.createComponentVNode)(2,i.Button,{disabled:!u.design||!u.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){return a("download")},mb:"0"})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.sheets),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,h,{ore:e},e.id)}))]})))},p=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.alloys),c=Object.assign({},e);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Section,Object.assign({className:"OreRedemption__Ores",p:"0"},c,{children:[(0,o.createComponentVNode)(2,m,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),a.map((function(e){return(0,o.createComponentVNode)(2,f,{ore:e},e.id)}))]})))},m=function(e,t){var n;return(0,o.createComponentVNode)(2,i.Box,{className:"OreHeader",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",children:e.title}),null==(n=e.columns)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:e[1],textAlign:"center",color:"label",bold:!0,children:e[0]},e[1])}))]})})},h=function(e,t){var n=(0,r.useBackend)(t).act,a=e.ore;if(!(a.value&&a.amount<=0)||["$metal","$glass"].indexOf(a.id)>-1){var c=a.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"45%",align:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+(s[c]||c)+".png",verticalAlign:"middle",ml:"0rem"}),a.name]}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",color:a.amount>0?"good":"gray",bold:a.amount>0,align:"center",children:a.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",children:a.value}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(a.amount,50),stepPixelSize:6,onChange:function(e,t){return n(a.value?"sheet":"alloy",{id:a.id,amount:t})}})})]})})}},f=function(e,t){var n=(0,r.useBackend)(t).act,c=e.ore,l=c.id.replace("$","");return(0,o.createComponentVNode)(2,i.Box,{className:"SheetLine",children:(0,o.createComponentVNode)(2,i.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"7%",align:"middle",children:(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"sheet-"+l+".png",verticalAlign:"middle",ml:"`0rem"})}),(0,o.createComponentVNode)(2,a.FlexItem,{basis:"30%",textAlign:"middle",align:"center",children:c.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"35%",textAlign:"middle",color:c.amount>0?"good":"gray",align:"center",children:c.description}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"10%",textAlign:"center",color:c.amount>0?"good":"gray",bold:c.amount>0,align:"center",children:c.amount.toLocaleString("en-US")}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:0,minValue:0,maxValue:Math.min(c.amount,50),stepPixelSize:6,onChange:function(e,t){return n(c.value?"sheet":"alloy",{id:c.id,amount:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PAI=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(572);t.PAI=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.app_template,p=d.app_icon,m=d.app_title,h=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(u);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p,mr:1}),m,"pai_main_menu"!==u&&(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){return s("MASTER_back")}})]}),p:1,children:(0,o.createComponentVNode)(2,h)})})})}},function(e,t,n){var o={"./pai_advsecrecords.js":573,"./pai_atmosphere.js":574,"./pai_bioscan.js":575,"./pai_camera_bug.js":576,"./pai_directives.js":577,"./pai_doorjack.js":578,"./pai_encoder.js":579,"./pai_main_menu.js":580,"./pai_manifest.js":581,"./pai_medrecords.js":582,"./pai_messenger.js":583,"./pai_radio.js":584,"./pai_sec_chem.js":585,"./pai_secrecords.js":586,"./pai_signaler.js":587};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=572},function(e,t,n){"use strict";t.__esModule=!0,t.pai_advsecrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pai_advsecrecords=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Records",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_atmosphere=void 0;var o=n(0),r=n(1),i=n(195);t.pai_atmosphere=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.AtmosScan,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_bioscan=void 0;var o=n(0),r=n(1),i=n(2);t.pai_bioscan=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.app_data),c=a.holder,l=a.dead,s=a.health,d=a.brute,u=a.oxy,p=a.tox,m=a.burn,h=a.reagents,f=a.addictions,C=a.fractures,g=a.internal_bleeding;return c?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:s/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"blue",children:u})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxin Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"green",children:p})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:m})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:d})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Reagents",children:h?h.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.title,children:(0,o.createComponentVNode)(2,i.Box,{color:e.overdosed?"bad":"good",children:[" ",e.volume," ",e.overdosed?"OVERDOSED":""," "]})},e.id)})):"Reagents not found."}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Addictions",children:f?f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.addiction_name,children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[" Stage: ",e.stage," "]})},e.id)})):(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Addictions not found."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fractures",children:(0,o.createComponentVNode)(2,i.Box,{color:C?"bad":"good",children:["Fractures ",C?"":"not"," detected."]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Bleedings",children:(0,o.createComponentVNode)(2,i.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_camera_bug=void 0;var o=n(0),r=n(1),i=n(2);t.pai_camera_bug=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Special Syndicate options:",children:(0,o.createComponentVNode)(2,i.Button,{content:"Select Monitor",onClick:function(){return a("ui_interact")}})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_directives=void 0;var o=n(0),r=n(1),i=n(2);t.pai_directives=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.master,s=c.dna,d=c.prime,u=c.supplemental;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master",children:l?l+" ("+s+")":"None"}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Request DNA",children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){return a("getdna")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Prime Directive",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_doorjack=void 0;var o=n(0),r=n(1),i=n(2);t.pai_doorjack=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data.app_data,d=s.cable,u=s.machine,p=s.inprogress;s.progress,s.aborted;return n=u?(0,o.createComponentVNode)(2,i.Button,{selected:!0,content:"Connected"}):(0,o.createComponentVNode)(2,i.Button,{content:d?"Extended":"Retracted",color:d?"orange":null,onClick:function(){return l("cable")}}),u&&(a=(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hack",children:[(0,o.createComponentVNode)(2,i.Box,{color:p?"green":"red",children:[" In progress: ",p?"Yes":"No"," "]}),p?(0,o.createComponentVNode)(2,i.Button,{mt:1,color:"red",content:"Abort",onClick:function(){return l("cancel")}}):(0,o.createComponentVNode)(2,i.Button,{mt:1,content:"Start",onClick:function(){return l("jack")}})]})),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cable",children:n}),a]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_encoder=void 0;var o=n(0),r=n(1),i=n(2);t.pai_encoder=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.radio_name,s=c.radio_rank;return(0,o.createComponentVNode)(2,i.Section,{title:"Your name and rank in radio channels",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Your current name and rank",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new name",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newname",{newname:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Set new rank",children:(0,o.createComponentVNode)(2,i.Input,{onInput:function(e,t){return a("set_newrank",{newrank:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_main_menu=void 0;var o=n(0),r=n(1),i=n(2);t.pai_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.available_software,s=c.installed_software,d=c.installed_toggles,u=c.available_ram,p=c.emotions,m=c.current_emotion,h=[];return s.map((function(e){return h[e.key]=e.name})),d.map((function(e){return h[e.key]=e.name})),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available RAM",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Software",children:[l.filter((function(e){return!h[e.key]})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name+" ("+e.cost+")",icon:e.icon,disabled:e.cost>u,onClick:function(){return a("purchaseSoftware",{key:e.key})}},e.key)})),0===l.filter((function(e){return!h[e.key]})).length&&"No software available!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Software",children:[s.filter((function(e){return"mainmenu"!==e.key})).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,onClick:function(){return a("startSoftware",{software_key:e.key})}},e.key)})),0===s.length&&"No software installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Installed Toggles",children:[d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,icon:e.icon,selected:e.active,onClick:function(){return a("setToggle",{toggle_key:e.key})}},e.key)})),0===d.length&&"No toggles installed!"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Select Emotion",children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:e.syndi?"red":"default",content:e.name,selected:e.id===m,onClick:function(){return a("setEmotion",{emotion:e.id})}},e.id)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pai_manifest=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.CrewManifest,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_medrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_medrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_messenger=void 0;var o=n(0),r=n(1),i=n(196);t.pai_messenger=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return a.app_data.active_convo?(0,o.createComponentVNode)(2,i.ActiveConversation,{data:a.app_data}):(0,o.createComponentVNode)(2,i.MessengerList,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_radio=void 0;var o=n(0),r=n(1),i=n(15),a=n(2);t.pai_radio=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.app_data,s=l.minFrequency,d=l.maxFrequency,u=l.frequency,p=l.broadcasting;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(e){return(0,i.toFixed)(e,1)},onChange:function(e,t){return c("freq",{freq:t})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"Reset",icon:"undo",onClick:function(){return c("freq",{freq:"145.9"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggleBroadcast")},selected:p,content:p?"Enabled":"Disabled"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_sec_chem=void 0;var o=n(0),r=n(1),i=n(2);t.pai_sec_chem=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app_data,l=c.holder,s=c.dead,d=c.health,u=c.current_chemicals,p=c.available_chemicals;return l?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"red",children:"Dead"}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"green",children:"Alive"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Chemicals",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available Chemicals",children:[p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name+" ("+e.cost+")",tooltip:e.desc,disabled:e.cost>u,onClick:function(){return a("secreteChemicals",{key:e.key})}},e.key)})),0===p.length&&"No chemicals available!"]})]})}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Error: No biological host found."})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_secrecords=void 0;var o=n(0),r=n(1),i=n(103);t.pai_secrecords=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n.app_data,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pai_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pai_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a.app_data})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDA=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(134),l=n(589);t.PDA=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data),p=u.app;if(!u.owner)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var m=function(e){var t;try{t=l("./"+e+".js")}catch(o){if("MODULE_NOT_FOUND"===o.code)return(0,c.routingError)("notFound",e);throw o}var n=t[e];return n||(0,c.routingError)("missingExport",e)}(p.template);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Box,{mb:8}),(0,o.createComponentVNode)(2,d)]})})};var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.idInserted,s=c.idLink,d=c.stationTime,u=c.cartridge_name;return(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[l?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"id-card",color:"transparent",onClick:function(){return a("Authenticate")},content:s})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No ID Inserted"}),u?(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sd-card",color:"transparent",onClick:function(){return a("Eject")},content:"Eject "+u})}):(0,o.createComponentVNode)(2,i.Flex.Item,{m:1,color:"grey",children:"No Cartridge Inserted"}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"right",bold:!0,m:1,children:d})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.app;return(0,o.createComponentVNode)(2,i.Box,{className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){a("Home")}})})]})})}},function(e,t,n){var o={"./pda_atmos_scan.js":590,"./pda_janitor.js":591,"./pda_main_menu.js":592,"./pda_manifest.js":593,"./pda_medical.js":594,"./pda_messenger.js":196,"./pda_mob_hunt.js":595,"./pda_mule.js":596,"./pda_notes.js":597,"./pda_power.js":598,"./pda_secbot.js":599,"./pda_security.js":600,"./pda_signaler.js":601,"./pda_status_display.js":602,"./pda_supplyrecords.js":603};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=589},function(e,t,n){"use strict";t.__esModule=!0,t.pda_atmos_scan=void 0;var o=n(0),r=n(1),i=n(195);t.pda_atmos_scan=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.AtmosScan,{data:n})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_janitor=void 0;var o=n(0),r=n(1),i=n(2);t.pda_janitor=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.janitor),c=a.user_loc,l=a.mops,s=a.buckets,d=a.cleanbots,u=a.carts;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Locations",children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mop Bucket Locations",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))}),d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cleanbot Locations",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)}))}),u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_main_menu=void 0;var o=n(0),r=(n(15),n(1)),i=n(2);t.pda_main_menu=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.owner,s=c.ownjob,d=c.idInserted,u=c.categories,p=c.pai,m=c.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",s]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:u.map((function(e){var t=c.apps[e];return t&&t.length?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:t.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.uid in m?e.notify_icon:e.icon,iconSpin:e.uid in m,color:e.uid in m?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.uid})}},e.uid)}))},e):null}))})}),!!p&&(0,o.createComponentVNode)(2,i.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_manifest=void 0;var o=n(0),r=n(1),i=n(144);t.pda_manifest=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.CrewManifest)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_medical=void 0;var o=n(0),r=n(1),i=n(103);t.pda_medical=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"MED"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mob_hunt=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mob_hunt=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.connected,s=c.wild_captures,d=c.no_collection,u=c.entry;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection Status",children:l?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:["Connected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){return a("Disconnect")}})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:["Disconnected",(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){return a("Reconnect")}})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Total Wild Captures",children:s})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Collection",mt:2,buttons:(0,o.createComponentVNode)(2,i.Box,{children:!d&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"Previous",icon:"arrow-left",onClick:function(){return a("Prev")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Next",icon:"arrow-right",onClick:function(){return a("Next")}})]})}),children:d?"Your collection is empty! Go capture some Nano-Mobs!":u?(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:u.sprite,style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[u.nickname&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nickname",children:u.nickname}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:u.real_name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:u.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Primary Type",children:u.type1}),u.type2&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secondary Type",children:u.type2}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Transfer",icon:"sd-card",onClick:function(){return a("Transfer")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Release",icon:"arrow-up",onClick:function(){return a("Release")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){return a("Rename")}}),!!u.is_hacked&&(0,o.createComponentVNode)(2,i.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){return a("Set_Trap")}})]})]})})]}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Mob entry missing!"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_mule=void 0;var o=n(0),r=n(1),i=n(2);t.pda_mule=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.mulebot.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.mulebot.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.mulebot,s=l.botstatus,d=l.active,u=s.mode,p=s.loca,m=s.load,h=s.powr,f=s.dest,C=s.home,g=s.retn,N=s.pick;switch(u){case 0:n="Ready";break;case 1:n="Loading/Unloading";break;case 2:case 12:n="Navigating to delivery location";break;case 3:n="Navigating to Home";break;case 4:n="Waiting for clear path";break;case 5:case 6:n="Calculating navigation path";break;case 7:n="Unable to locate destination";break;default:n=u}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:[h,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Home",children:C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:(0,o.createComponentVNode)(2,i.Button,{content:f?f+" (Set)":"None (Set)",onClick:function(){return c("SetDest")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Load",children:(0,o.createComponentVNode)(2,i.Button,{content:m?m+" (Unload)":"None",disabled:!m,onClick:function(){return c("Unload")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Pickup",children:(0,o.createComponentVNode)(2,i.Button,{content:N?"Yes":"No",selected:N,onClick:function(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Auto Return",children:(0,o.createComponentVNode)(2,i.Button,{content:g?"Yes":"No",selected:g,onClick:function(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Proceed",icon:"play",onClick:function(){return c("Start")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Return Home",icon:"home",onClick:function(){return c("ReturnHome")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_notes=void 0;var o=n(0),r=n(1),i=n(2);t.pda_notes=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.note;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{children:c}),(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_power=void 0;var o=n(0),r=n(1),i=n(198);t.pda_power=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.PowerMonitorMainContent)}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_secbot=void 0;var o=n(0),r=n(1),i=n(2);t.pda_secbot=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.beepsky.active);return(0,o.createComponentVNode)(2,i.Box,{children:l?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,a)})};var a=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.beepsky.bots;return(0,o.createComponentVNode)(2,i.Box,{children:[c.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e.Name,icon:"cog",onClick:function(){return a("AccessBot",{uid:e.uid})}})},e.Name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){return a("Rescan")}})})]})},c=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act,l=a.data.beepsky,s=l.botstatus,d=l.active,u=s.mode,p=s.loca;switch(u){case 0:n="Ready";break;case 1:n="Apprehending target";break;case 2:case 3:n="Arresting target";break;case 4:n="Starting patrol";break;case 5:n="On patrol";break;case 6:n="Responding to summons"}return(0,o.createComponentVNode)(2,i.Section,{title:d,children:[-1===u&&(0,o.createComponentVNode)(2,i.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:n}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Go",icon:"play",onClick:function(){return c("Go")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Stop",icon:"stop",onClick:function(){return c("Stop")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Summon",icon:"arrow-down",onClick:function(){return c("Summon")}})]})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_security=void 0;var o=n(0),r=n(1),i=n(103);t.pda_security=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,i.SimpleRecords,{data:n,recordType:"SEC"})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_signaler=void 0;var o=n(0),r=n(1),i=n(197);t.pda_signaler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,i.Signaler,{data:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_status_display=void 0;var o=n(0),r=n(1),i=n(2);t.pda_status_display=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){return a("Status",{statdisp:"alert",alert:"redalert"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){return a("Status",{statdisp:"alert",alert:"default"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){return a("Status",{statdisp:"alert",alert:"lockdown"})}}),(0,o.createComponentVNode)(2,i.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){return a("Status",{statdisp:"alert",alert:"biohazard"})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,i.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.pda_supplyrecords=void 0;var o=n(0),r=n(1),i=n(2);t.pda_supplyrecords=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.supply),c=a.shuttle_loc,l=a.shuttle_time,s=a.shuttle_moving,d=a.approved,u=a.approved_count,p=a.requests,m=a.requests_count;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:s?(0,o.createComponentVNode)(2,i.Box,{children:["In transit ",l]}):(0,o.createComponentVNode)(2,i.Box,{children:c})})}),(0,o.createComponentVNode)(2,i.Section,{mt:1,title:"Requested Orders",children:m>0&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.OrderedBy,'"']},e)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Approved Orders",children:u>0&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["#",e.Number,' - "',e.Name,'" for "',e.ApprovedBy,'"']},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PDAColorRow=t.PDAPainter=void 0;var o=n(0),r=n(1),i=n(3),a=n(2);t.PDAPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.statusLabel,u=s.pdaTypes,p=s.hasPDA,m=s.pdaIcon,h=s.pdaOwnerName,f=s.pdaJobName;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"\u041e\u0431\u0449\u0435\u0435",buttons:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:p?"eject":"exclamation-triangle",selected:p,content:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c":"-----",tooltip:p?"\u0418\u0437\u0432\u043b\u0435\u0447\u044c PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c PDA",tooltipPosition:"left",onClick:function(){return l(p?"eject_pda":"insert_pda")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0418\u043c\u044f",children:h||"\u041d/\u0414"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0414\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",children:f||"\u041d/\u0414"})]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",direction:"column",flex:"1",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"160px",src:p?"data:image/png;base64,"+m:"",style:{"-ms-interpolation-mode":"nearest-neighbor"},align:"middle"})}),(0,o.createComponentVNode)(2,a.LabeledList,{m:"5px",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:d})}),(0,o.createComponentVNode)(2,a.Button.Confirm,{m:"5px",fluid:!0,disabled:!p,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044c PDA",confirmContent:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430 \u0437\u0430\u0432\u043e\u0434\u0441\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",tooltipPosition:"top",onClick:function(){return l("erase_pda")}})]})})})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",flex:"1",children:(0,o.createComponentVNode)(2,a.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Table,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,c,{selectedPda:e,selectedPdaImage:u[e][0]},e)}))})})})})]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.hasPDA,l=e.selectedPda,s=e.selectedPdaImage;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,disabled:!c,icon:s,content:l,confirmContent:"\u041f\u043e\u043a\u0440\u0430\u0441\u0438\u0442\u044c?",textAlign:"left",onClick:function(){return i("choose_pda",{selectedPda:l,selectedPdaImage:s})}})})]})};t.PDAColorRow=c},function(e,t,n){"use strict";t.__esModule=!0,t.Pacman=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(100);t.Pacman=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.broken,u=s.anchored,p=s.active,m=s.fuel_type,h=s.fuel_usage,f=s.fuel_stored,C=s.fuel_cap,g=s.is_ai,N=s.tmp_current,b=s.tmp_max,V=s.tmp_overheat,v=s.output_max,x=s.power_gen,y=s.output_set,k=s.has_fuel,w=f/C,_=N/b,B=y*x,S=Math.round(f/h),L=Math.round(S/60),A=S>120?L+" minutes":S+" seconds";return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(d||!u)&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:[!!d&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!u&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!u&&(0,o.createVNode)(1,"div",null,[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",content:p?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!k,selected:p,onClick:function(){return l("toggle_power")}}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",className:"ml-1",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power setting",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:y,minValue:1,maxValue:v,step:1,className:"mt-1",onDrag:function(e,t){return l("change_power",{change_power:t})}}),"(",(0,c.formatPower)(B),")"]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:_,ranges:{green:[-Infinity,.33],orange:[.33,.66],red:[.66,Infinity]},children:[N," \u2103"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:[V>50&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),V>20&&V<=50&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"WARNING: Overheating!"}),V>1&&V<=20&&(0,o.createComponentVNode)(2,i.Box,{color:"orange",children:"Temperature High"}),0===V&&(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Fuel",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:p||g||!k,onClick:function(){return l("eject_fuel")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Type",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:w,ranges:{red:[-Infinity,.33],orange:[.33,.66],green:[.66,Infinity]},children:[Math.round(f/1e3)," dm\xb3"]})})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xb3/s"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Fuel depletion",children:[!!k&&(h?A:"N/A"),!k&&(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PersonalCrafting=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.busy,p=d.category,m=d.display_craftable_only,h=d.display_compact,f=d.prev_cat,C=d.next_cat,g=d.subcategory,N=d.prev_subcat,b=d.next_subcat;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!u&&(0,o.createComponentVNode)(2,i.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,o.createComponentVNode)(2,i.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){return s("toggle_recipes")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Compact Mode",icon:h?"check-square-o":"square-o",selected:h,onClick:function(){return s("toggle_compact")}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:f,icon:"arrow-left",onClick:function(){return s("backwardCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:C,icon:"arrow-right",onClick:function(){return s("forwardCat")}})]}),g&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{content:N,icon:"arrow-left",onClick:function(){return s("backwardSubCat")}}),(0,o.createComponentVNode)(2,i.Button,{content:b,icon:"arrow-right",onClick:function(){return s("forwardSubCat")}})]}),h?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),e.catalyst_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,o.createComponentVNode)(2,i.Button,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)}))]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.display_craftable_only,s=c.can_craft,d=c.cant_craft;return(0,o.createComponentVNode)(2,i.Box,{mt:1,children:[s.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",onClick:function(){return a("make",{make:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)})),!l&&d.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalysts",children:e.catalyst_text}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Photocopier=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(24);function l(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne?this.substring(0,e)+"...":this};t.Photocopier=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data;"mode_aipic"!==d.mode||d.isAI||s("mode_copy");for(var u,p,m=(0,c.sortBy)((function(e){return e.category}))(d.forms||[]),h=[],f=l(m);!(u=f()).done;){var C=u.value;h.includes(C.category)||h.push(C.category)}return p=""===d.category?m:m.filter((function(e){return e.category===d.category})),(0,o.createComponentVNode)(2,a.Window,{theme:d.ui_theme,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:24,shrink:0,children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u0442\u043e\u043d\u0435\u0440\u0430",color:d.toner>0?"good":"bad",children:d.toner}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u043b\u043e\u0442 \u0441\u043a\u0430\u043d\u0435\u0440\u0430",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",disabled:d.isAI||null===d.copyitem,content:"\u0418\u0437\u0432\u043b\u0435\u0447\u044c",onClick:function(){return s("remove")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e",children:[d.copies,(0,o.createComponentVNode)(2,i.Button,{icon:"minus",ml:2,disabled:!(d.copies>1),onClick:function(){return s("min")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"plus",disabled:!(d.copies<=d.toner),onClick:function(){return s("add")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043c",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"clone",disabled:0===d.toner,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",selected:"mode_copy"===d.mode?"selected":null,onClick:function(){return s("mode_copy")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"file",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c",selected:"mode_print"===d.mode?"selected":null,onClick:function(){return s("mode_print")}}),!!d.isAI&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",disabled:0===d.toner,content:"\u0424\u043e\u0442\u043e \u0438\u0437 \u0414\u0411",selected:"mode_aipic"===d.mode?"selected":null,onClick:function(){return s("mode_aipic")}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c",children:["mode_copy"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.copyitem&&!d.ass,content:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",onClick:function(){return s("copy")}}),"mode_print"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner||null===d.form,content:"\u041f\u0435\u0447\u0430\u0442\u044c",onClick:function(){return s("print_form")}}),"mode_aipic"===d.mode&&(0,o.createComponentVNode)(2,i.Button,{icon:"print",disabled:0===d.toner,content:"\u041f\u0435\u0447\u0430\u0442\u044c \u0444\u043e\u0442\u043e",onClick:function(){return s("aipic")}})]})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"\u0411\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044f"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u043e\u0440\u043c\u0430",children:""===d.form_id?"\u041d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u0430":d.form_id})}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b",selected:""===d.category?"selected":null,onClick:function(){return s("choose_category",{category:null})},mb:1})}),h.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-right",content:e,selected:d.category===e?"selected":null,onClick:function(){return s("choose_category",{category:e})},mb:1},e)},e)}))]})]}),(0,o.createComponentVNode)(2,i.NoticeBox,{color:d.info_box_color,children:d.info_box})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:27,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:""===d.category?"\u0412\u0441\u0435 \u0444\u043e\u0440\u043c\u044b":d.category}),(0,o.createComponentVNode)(2,i.Flex,{direction:"column",mt:2,children:p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e.id+": "+e.altername.trimLongStr(30),tooltip:e.id+": "+e.altername,selected:d.form===e.path?"selected":null,onClick:function(){return s("choose_form",{path:e.path,id:e.id})},mb:1},e.path)},e.path)}))})]})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PodTracking=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.PodTracking=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.pods);return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Position",children:[e.podx,", ",e.pody,", ",e.podz]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pilot",children:e.pilot}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Passengers",children:e.passengers})]})},e.name)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PoolController=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);var c={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},l=function(e,t){var n=e.tempKey,a=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["tempKey"]),l=c[n];if(!l)return null;var s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.currentTemp,m=l.label,h=l.icon,f=n===p;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({selected:f,onClick:function(){u("setTemp",{temp:n})}},a,{children:[(0,o.createComponentVNode)(2,i.Icon,{name:h}),m]})))};t.PoolController=function(e,t){for(var n=(0,r.useBackend)(t).data,s=n.emagged,d=n.currentTemp,u=c[d]||c.normal,p=u.label,m=u.color,h=[],f=0,C=Object.entries(c);f0?"envelope-open-text":"envelope",onClick:function(){return c("setScreen",{setScreen:6})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){return c("setScreen",{setScreen:1})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Request Supplies",icon:"box",onClick:function(){return c("setScreen",{setScreen:2})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){return c("setScreen",{setScreen:3})}})})]}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){return c("setScreen",{setScreen:9})}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){return c("setScreen",{setScreen:10})}})})]}),!!d&&(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){return c("setScreen",{setScreen:8})}})}),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button,{content:u?"Speaker Off":"Speaker On",selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return c("toggleSilent")}})})]})},l=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data,d=s.department;switch(e.purpose){case"ASSISTANCE":n=s.assist_dept,a="Request assistance from another department";break;case"SUPPLIES":n=s.supply_dept,a="Request supplies from another department";break;case"INFO":n=s.info_dept,a="Relay information to another department"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:n.filter((function(e){return e!==d})).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:[(0,o.createComponentVNode)(2,i.Button,{content:"Message",icon:"envelope",onClick:function(){return l("writeInput",{write:e,priority:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){return l("writeInput",{write:e,priority:2})}})]},e)}))})})},s=function(e,t){var n,a=(0,r.useBackend)(t),c=a.act;a.data;switch(e.type){case"SUCCESS":n="Message sent successfully";break;case"FAIL":n="Request supplies from another department"}return(0,o.createComponentVNode)(2,i.Section,{title:n,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return c("setScreen",{setScreen:0})}})})},d=function(e,t){var n,a,c=(0,r.useBackend)(t),l=c.act,s=c.data;switch(e.type){case"MESSAGES":n=s.message_log,a="Message Log";break;case"SHIPPING":n=s.shipping_log,a="Shipping label print log"}return(0,o.createComponentVNode)(2,i.Section,{title:a,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return l("setScreen",{setScreen:0})}}),children:n.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{className:"RequestConsole__message",children:e},e)}))})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.recipient,s=c.message,d=c.msgVerified,u=c.msgStamped;return(0,o.createComponentVNode)(2,i.Section,{title:"Message Authentication",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Recipient",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",color:"green",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stamped by",color:"blue",children:u})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){return a("department",{department:l})}})]})},p=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.message,s=c.announceAuth;return(0,o.createComponentVNode)(2,i.Section,{title:"Station-Wide Announcement",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.Button,{content:l||"Edit Message",icon:"edit",onClick:function(){return a("writeAnnouncement")}}),s?(0,o.createComponentVNode)(2,i.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,o.createComponentVNode)(2,i.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&l),onClick:function(){return a("sendAnnouncement")}})]})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.shipDest,s=c.msgVerified,d=c.ship_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Print Shipping Label",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"arrow-left",onClick:function(){return a("setScreen",{setScreen:0})}}),children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated by",children:s})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(l&&s),onClick:function(){return a("printLabel")}}),(0,o.createComponentVNode)(2,i.Section,{title:"Destinations",mt:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,i.Button,{content:l===e?"Selected":"Select",selected:l===e,onClick:function(){return a("shipSelect",{shipSelect:e})}})},e)}))})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RequestManager=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3);t.RequestManager=function(e,t){var n=(0,i.useBackend)(t),u=(n.act,n.data.requests),p=(0,i.useLocalState)(t,"filteredTypes",Object.fromEntries(Object.entries(l).map((function(e){var t=e[0];e[1];return[t,!0]})))),m=p[0],h=(p[1],(0,i.useLocalState)(t,"searchText")),f=h[0],C=h[1],g=u.filter((function(e){return m[e.req_type]}));if(f){var N=f.toLowerCase();g=g.filter((function(e){return(0,r.decodeHtmlEntities)(e.message).toLowerCase().includes(N)||e.owner_name.toLowerCase().includes(N)}))}return(0,o.createComponentVNode)(2,c.Window,{title:"Request Manager",width:575,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Requests",buttons:(0,o.createComponentVNode)(2,a.Input,{value:f,onInput:function(e,t){return C(t)},placeholder:"Search...",mr:1}),children:g.map((function(e){return(0,o.createVNode)(1,"div","RequestManager__row",[(0,o.createVNode)(1,"div","RequestManager__rowContents",[(0,o.createVNode)(1,"h2","RequestManager__header",[(0,o.createVNode)(1,"span","RequestManager__headerText",[e.owner_name,null===e.owner&&" [DC]"],0),(0,o.createVNode)(1,"span","RequestManager__timestamp",e.timestamp_str,0)],4),(0,o.createVNode)(1,"div","RequestManager__message",[(0,o.createComponentVNode)(2,s,{requestType:e.req_type}),(0,r.decodeHtmlEntities)(e.message)],0)],4),null!==e.owner&&(0,o.createComponentVNode)(2,d,{request:e})],0,null,e.id)}))})})})};var l={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},s=function(e){var t=e.requestType;return(0,o.createVNode)(1,"b","RequestManager__"+t,[l[t],(0,o.createTextVNode)(":")],0)},d=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n._,e.request);return(0,o.createVNode)(1,"div","RequestManager__controlsContainer",[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("pp",{id:c.id})},children:"PP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("vv",{id:c.id})},children:"VV"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("sm",{id:c.id})},children:"SM"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("tp",{id:c.id})},children:"TP"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("logs",{id:c.id})},children:"LOGS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("bless",{id:c.id})},children:"BLESS"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("smite",{id:c.id})},children:"SMITE"}),"request_prayer"!==c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("rply",{id:c.id})},children:"RPLY"}),"request_ert"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("ertreply",{id:c.id})},children:"ERTREPLY"}),"request_nuke"===c.req_type&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("getcode",{id:c.id})},children:"GETCODE"})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CurrentLevels=void 0;var o=n(0),r=n(1),i=n(2);t.CurrentLevels=function(e,t){var n=(0,r.useBackend)(t).data.tech_levels;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),n.map((function(e,t){var n=e.name,r=e.level,a=e.desc;return(0,o.createComponentVNode)(2,i.Box,{children:[t>0?(0,o.createComponentVNode)(2,i.Divider):null,(0,o.createComponentVNode)(2,i.Box,{children:n}),(0,o.createComponentVNode)(2,i.Box,{children:["* Level: ",r]}),(0,o.createComponentVNode)(2,i.Box,{children:["* Summary: ",a]})]},n)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.DataDiskMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67),l=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;return l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:l.level}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_tech")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_tech")}}),(0,o.createComponentVNode)(2,u)]})]}):null},s=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_data;if(!l)return null;var s=l.name,d=l.lathe_types,p=l.materials,m=d.join(", ");return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:s}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lathe Types",children:m}):null,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required Materials"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:["- ",(0,o.createVNode)(1,"span",null,e.name,0,{style:{"text-transform":"capitalize"}})," x ",e.amount]},e.name)})),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return c("updt_design")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Clear Disk",icon:"trash",onClick:function(){return c("clear_design")}}),(0,o.createComponentVNode)(2,u)]})]})},d=function(e,t){var n=(0,r.useBackend)(t).data.disk_type;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"This disk is empty."}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{submenu:c.SUBMENU.DISK_COPY,icon:"arrow-down",content:"tech"===n?"Load Tech to Disk":"Load Design to Disk"}),(0,o.createComponentVNode)(2,u)]})]})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type;return l?(0,o.createComponentVNode)(2,i.Button,{content:"Eject Disk",icon:"eject",onClick:function(){c("tech"===l?"eject_tech":"eject_design")}}):null},p=function(e,t){var n=(0,r.useBackend)(t).data,a=n.disk_data,c=n.disk_type;return(0,o.createComponentVNode)(2,i.Section,{title:"Data Disk Contents",children:function(){if(!a)return(0,o.createComponentVNode)(2,d);switch(c){case"design":return(0,o.createComponentVNode)(2,s);case"tech":return(0,o.createComponentVNode)(2,l);default:return null}}()})},m=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.disk_type,s=a.to_copy;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var t=e.name,n=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:t,children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){c("tech"===l?"copy_tech":"copy_design",{id:n})}})},n)}))})})})};t.DataDiskMenu=function(e,t){return(0,r.useBackend)(t).data.disk_type?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,p)}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.DISK_COPY,render:function(){return(0,o.createComponentVNode)(2,m)}})],4):null}},function(e,t,n){"use strict";t.__esModule=!0,t.DeconstructionMenu=void 0;var o=n(0),r=n(1),i=n(2);t.DeconstructionMenu=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_item;return a.linked_destroy?l?(0,o.createComponentVNode)(2,i.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:["Name: ",l.name]}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.origin_tech.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+e.name,children:[e.object_level," ",e.current_level?(0,o.createFragment)([(0,o.createTextVNode)("(Current: "),e.current_level,(0,o.createTextVNode)(")")],0):null]},e.name)}))}),(0,o.createComponentVNode)(2,i.Box,{mt:"10px",children:(0,o.createVNode)(1,"h3",null,"Options:",16)}),(0,o.createComponentVNode)(2,i.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){c("deconstruct")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject Item",icon:"eject",onClick:function(){c("eject_item")}})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,o.createComponentVNode)(2,i.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheCategory=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheCategory=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.category,d=c.matching_designs,u=4===c.menu?"build":"imprint";return(0,o.createComponentVNode)(2,i.Section,{title:s,children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,i.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:d.map((function(e){var t=e.id,n=e.name,r=e.can_build,a=e.materials;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:n,disabled:r<1,onClick:function(){return l(u,{id:t,amount:1})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=5?(0,o.createComponentVNode)(2,i.Button,{content:"x5",onClick:function(){return l(u,{id:t,amount:5})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:r>=10?(0,o.createComponentVNode)(2,i.Button,{content:"x10",onClick:function(){return l(u,{id:t,amount:10})}}):null}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a.map((function(e){return(0,o.createFragment)([" | ",(0,o.createVNode)(1,"span",e.is_red?"color-red":null,[e.amount,(0,o.createTextVNode)(" "),e.name],0)],0)}))})]},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheChemicalStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheChemicalStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_chemicals,s=4===a.menu;return(0,o.createComponentVNode)(2,i.Section,{title:"Chemical Storage",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Purge All",icon:"trash",onClick:function(){c(s?"disposeallP":"disposeallI")}}),(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){var t=e.volume,n=e.name,r=e.id;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* "+t+" of "+n,children:(0,o.createComponentVNode)(2,i.Button,{content:"Purge",icon:"trash",onClick:function(){c(s?"disposeP":"disposeI",{id:r})}})},r)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52);t.LatheMainMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,s=c.menu,d=c.categories,u=4===s?"Protolathe":"Circuit Imprinter";return(0,o.createComponentVNode)(2,i.Section,{title:u+" Menu",children:[(0,o.createComponentVNode)(2,a.LatheMaterials),(0,o.createComponentVNode)(2,a.LatheSearch),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",content:e,onClick:function(){l("setCategory",{category:e})}})},e)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterials=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterials=function(e,t){var n=(0,r.useBackend)(t).data,a=n.total_materials,c=n.max_materials,l=n.max_chemicals,s=n.total_chemicals;return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,o.createComponentVNode)(2,i.Table,{width:"auto",children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:a}),c?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+c}):null]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:s}),l?(0,o.createComponentVNode)(2,i.Table.Cell,{children:" / "+l}):null]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMaterialStorage=void 0;var o=n(0),r=n(1),i=n(2);t.LatheMaterialStorage=function(e,t){var n=(0,r.useBackend)(t),a=n.data,c=n.act,l=a.loaded_materials;return(0,o.createComponentVNode)(2,i.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){var t=e.id,n=e.amount,r=e.name,l=function(e){var n=4===a.menu?"lathe_ejectsheet":"imprinter_ejectsheet";c(n,{id:t,amount:e})},s=Math.floor(n/2e3),d=n<1,u=1===s?"":"s";return(0,o.createComponentVNode)(2,i.Table.Row,{className:d?"color-grey":"color-yellow",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"210px",children:["* ",n," of ",r]}),(0,o.createComponentVNode)(2,i.Table.Cell,{minWidth:"110px",children:["(",s," sheet",u,")"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:n>=2e3?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"1x",icon:"eject",onClick:function(){return l(1)}}),(0,o.createComponentVNode)(2,i.Button,{content:"C",icon:"eject",onClick:function(){return l("custom")}}),n>=1e4?(0,o.createComponentVNode)(2,i.Button,{content:"5x",icon:"eject",onClick:function(){return l(5)}}):null,(0,o.createComponentVNode)(2,i.Button,{content:"All",icon:"eject",onClick:function(){return l(50)}})],0):null})]},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheMenu=void 0;var o=n(0),r=n(1),i=n(199),a=n(52),c=n(2),l=n(67);t.LatheMenu=function(e,t){var n=(0,r.useBackend)(t).data,s=n.menu,d=n.linked_lathe,u=n.linked_imprinter;return 4!==s||d?5!==s||u?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,a.LatheMainMenu)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CATEGORY,render:function(){return(0,o.createComponentVNode)(2,a.LatheCategory)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_MAT_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheMaterialStorage)}}),(0,o.createComponentVNode)(2,i.RndRoute,{submenu:l.SUBMENU.LATHE_CHEM_STORAGE,render:function(){return(0,o.createComponentVNode)(2,a.LatheChemicalStorage)}})]}):(0,o.createComponentVNode)(2,c.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,o.createComponentVNode)(2,c.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"})}},function(e,t,n){"use strict";t.__esModule=!0,t.LatheSearch=void 0;var o=n(0),r=n(1),i=n(2);t.LatheSearch=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"Search...",onChange:function(e,t){return n("search",{to_search:t})}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MainMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.MainMenu=function(e,t){var n=(0,r.useBackend)(t).data,l=n.disk_type,s=n.linked_destroy,d=n.linked_lathe,u=n.linked_imprinter,p=n.tech_levels;return(0,o.createComponentVNode)(2,i.Section,{title:"Main Menu",children:[(0,o.createComponentVNode)(2,i.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!l,menu:c.MENU.DISK,submenu:c.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!s,menu:c.MENU.DESTROY,submenu:c.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,menu:c.MENU.LATHE,submenu:c.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!u,menu:c.MENU.IMPRINTER,submenu:c.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,o.createComponentVNode)(2,a.RndNavButton,{menu:c.MENU.SETTINGS,submenu:c.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,o.createComponentVNode)(2,i.Box,{mt:"12px"}),(0,o.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,o.createComponentVNode)(2,i.LabeledList,{children:p.map((function(e){var t=e.name,n=e.level;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t,children:n},t)}))})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavbar=void 0;var o=n(0),r=n(52),i=n(2),a=n(67);t.RndNavbar=function(){return(0,o.createComponentVNode)(2,i.Box,{className:"RndConsole__RndNavbar",children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e!==a.MENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{menu:a.MENU.MAIN,submenu:a.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{submenu:function(e){return e!==a.SUBMENU.MAIN},render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.DISK,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.LATHE,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.IMPRINTER,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:a.MENU.SETTINGS,render:function(){return(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}})]})}}),(0,o.createComponentVNode)(2,r.RndRoute,{menu:function(e){return e===a.MENU.LATHE||e===a.MENU.IMPRINTER},submenu:a.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,o.createComponentVNode)(2,r.RndNavButton,{submenu:a.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RndNavButton=void 0;var o=n(0),r=n(1),i=n(2);t.RndNavButton=function(e,t){var n=e.icon,a=e.children,c=e.disabled,l=e.content,s=(0,r.useBackend)(t),d=s.data,u=s.act,p=d.menu,m=d.submenu,h=p,f=m;return null!==e.menu&&e.menu!==undefined&&(h=e.menu),null!==e.submenu&&e.submenu!==undefined&&(f=e.submenu),(0,o.createComponentVNode)(2,i.Button,{content:l,icon:n,disabled:c,onClick:function(){u("nav",{menu:h,submenu:f})},children:a})}},function(e,t,n){"use strict";t.__esModule=!0,t.SettingsMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(52),c=n(67);t.SettingsMenu=function(e,t){var n=(0,r.useBackend)(t),l=n.data,s=n.act,d=l.sync,u=l.admin,p=l.linked_destroy,m=l.linked_lathe,h=l.linked_imprinter;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.MAIN,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",align:"flex-start",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Sync Database with Network",icon:"sync",disabled:!d,onClick:function(){s("sync")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Connect to Research Network",icon:"plug",disabled:d,onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!d,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){s("togglesync")}}),(0,o.createComponentVNode)(2,a.RndNavButton,{disabled:!d,content:"Device Linkage Menu",icon:"link",menu:c.MENU.SETTINGS,submenu:c.SUBMENU.SETTINGS_DEVICES}),1===u?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){return s("maxresearch")}}):null]})})}}),(0,o.createComponentVNode)(2,a.RndRoute,{submenu:c.SUBMENU.SETTINGS_DEVICES,render:function(){return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage Menu",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){return s("find_device")}}),(0,o.createComponentVNode)(2,i.Box,{mt:"5px",children:(0,o.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[p?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"destroy"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Protolathe",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){s("disconnect",{item:"lathe"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),h?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",content:"Unlink",onClick:function(){return s("disconnect",{item:"imprinter"})}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.RobotSelfDiagnosis=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(18),l=function(e,t){var n=e/t;return n<=.2?"good":n<=.5?"average":"bad"};t.RobotSelfDiagnosis=function(e,t){var n=(0,r.useBackend)(t).data.component_data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:n.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.capitalize)(e.name),children:e.installed<=0?(0,o.createComponentVNode)(2,i.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:-1===e.installed?"Destroyed":"Missing"})})}):(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"72%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Brute Damage",color:l(e.brute_damage,e.max_damage),children:e.brute_damage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Burn Damage",color:l(e.electronic_damage,e.max_damage),children:e.electronic_damage})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"50%",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Powered",color:e.powered?"good":"bad",children:e.powered?"Yes":"No"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Enabled",color:e.status?"good":"bad",children:e.status?"Yes":"No"})]})})]})},t)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RoboticsControlConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.RoboticsControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.can_hack,u=s.safety,p=s.show_detonate_all,m=s.cyborgs,h=void 0===m?[]:m;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,i.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,c,{cyborgs:h,can_hack:d})]})})};var c=function(e,t){var n=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(t)),c=a.act,l=a.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,i.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return c("hackbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return c("stopbot",{uid:e.uid})}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return c("killbot",{uid:e.uid})}})],0),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,i.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,i.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,i.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,i.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.uid)})):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No cyborg units detected within access parameters."})}},function(e,t,n){"use strict";t.__esModule=!0,t.Safe=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Safe=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),u=d.dial,p=d.open;d.locked,d.contents;return(0,o.createComponentVNode)(2,a.Window,{theme:"safe",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,o.createComponentVNode)(2,i.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,o.createVNode)(1,"br"),p?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,i.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!p&&(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.dial,s=c.open,d=c.locked,u=function(e,t){return(0,o.createComponentVNode)(2,i.Button,{disabled:s||t&&!d,icon:"arrow-"+(t?"right":"left"),content:(t?"Right":"Left")+" "+e,iconRight:t,onClick:function(){return a(t?"turnleft":"turnright",{num:e})},style:{"z-index":10}})};return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){return a("open")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,i.Box,{position:"absolute",children:[u(50),u(10),u(1)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[u(1,!0),u(10,!0),u(50,!0)]}),(0,o.createComponentVNode)(2,i.Box,{className:"Safe--dialer--number",children:l})]})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.contents;return(0,o.createComponentVNode)(2,i.Box,{className:"Safe--contents",overflow:"auto",children:c.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mb:"0.5rem",onClick:function(){return a("retrieve",{index:t+1})},children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:e.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),e.name]}),(0,o.createVNode)(1,"br")],4,e)}))})},s=function(e,t){return(0,o.createComponentVNode)(2,i.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,o.createComponentVNode)(2,i.Box,{children:["1. Turn the dial left to the first number.",(0,o.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,o.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,o.createVNode)(1,"br"),"4. Open the safe."]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.satellites,d=l.notice,u=l.meteor_shield,p=l.meteor_shield_coverage,m=l.meteor_shield_coverage_max,h=l.meteor_shield_coverage_percentage;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,i.Section,{title:"Station Shield Coverage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:h>=100?"good":"average",value:p,maxValue:m,children:[h," %"]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Satellite Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[d&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"#"+e.id,children:[e.mode," ",(0,o.createComponentVNode)(2,i.Button,{content:e.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){return c("toggle",{id:e.id})}})]},e.id)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecureStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SecureStorage=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.emagged,d=l.locked,u=l.l_set,p=l.l_setshort,m=l.current_code,h=function(e){var t=e.buttonValue,n=e.color;return n||(n="default"),(0,o.createComponentVNode)(2,i.Button,{disabled:s||p,type:"button",color:n,onClick:function(){return c("setnumber",{buttonValue:t})},children:t})};return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,i.Flex,{spacing:"1",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Section,{title:"Code Panel",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"1"}),(0,o.createComponentVNode)(2,h,{buttonValue:"2"}),(0,o.createComponentVNode)(2,h,{buttonValue:"3"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"4"}),(0,o.createComponentVNode)(2,h,{buttonValue:"5"}),(0,o.createComponentVNode)(2,h,{buttonValue:"6"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"7"}),(0,o.createComponentVNode)(2,h,{buttonValue:"8"}),(0,o.createComponentVNode)(2,h,{buttonValue:"9"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,h,{buttonValue:"R",color:"red"}),(0,o.createComponentVNode)(2,h,{buttonValue:"0"}),(0,o.createComponentVNode)(2,h,{buttonValue:"E",color:"green"})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Status",children:s||p?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:s?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),s?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Secure Code",children:(0,o.createComponentVNode)(2,i.Box,{color:u?"red":"green",children:u?"*****":"NOT SET. ENTER NEW."})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lock Status",children:(0,o.createComponentVNode)(2,i.Box,{color:d?"red":"green",children:d?"Locked":"Unlocked"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Input Code",children:(0,o.createComponentVNode)(2,i.Box,{children:m||"Waiting for input"})}),(0,o.createComponentVNode)(2,i.Button,{top:".35em",left:".5em",disabled:d,color:"red",content:"Lock",icon:"lock",onClick:function(){return c("close")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SecurityRecords=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(50),l=n(3),s=n(51),d=n(140),u=n(141),p=n(145),m={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},h=function(e,t){(0,s.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.SecurityRecords=function(e,t){var n,r=(0,i.useBackend)(t),c=(r.act,r.data),m=c.loginState,h=c.currentPage;return m.logged_in?(1===h?n=(0,o.createComponentVNode)(2,C):2===h?n=(0,o.createComponentVNode)(2,b):3===h&&(n=(0,o.createComponentVNode)(2,V)),(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:[(0,o.createComponentVNode)(2,s.ComplexModal),(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,d.LoginInfo),(0,o.createComponentVNode)(2,p.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,a.Section,{height:"100%",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,l.Window,{theme:"security",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,u.LoginScreen)})})};var f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.currentPage,s=c.general;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===l,onClick:function(){return r("page",{page:1})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===l,onClick:function(){return r("page",{page:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"wrench"}),"Record Maintenance"]}),3===l&&s&&!s.empty&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===l,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"file"}),"Record: ",s.fields[0].value]})]})},C=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.records,s=(0,i.useLocalState)(t,"searchText",""),d=s[0],u=(s[1],(0,i.useLocalState)(t,"sortId","name")),p=u[0],h=(u[1],(0,i.useLocalState)(t,"sortOrder",!0)),f=h[0];h[1];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Table,{className:"SecurityRecords__list",children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,g,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,g,{id:"id",children:"ID"}),(0,o.createComponentVNode)(2,g,{id:"rank",children:"Assignment"}),(0,o.createComponentVNode)(2,g,{id:"fingerprint",children:"Fingerprint"}),(0,o.createComponentVNode)(2,g,{id:"status",children:"Criminal Status"})]}),l.filter((0,r.createSearch)(d,(function(e){return e.name+"|"+e.id+"|"+e.rank+"|"+e.fingerprint+"|"+e.status}))).sort((function(e,t){var n=f?1:-1;return e[p].localeCompare(t[p])*n})).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"SecurityRecords__listRow--"+m[e.status],onClick:function(){return c("view",{uid_gen:e.uid_gen,uid_sec:e.uid_sec})},children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user"})," ",e.name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fingerprint}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.status})]},e.id)}))]})})]})},g=function(e,t){var n=(0,i.useLocalState)(t,"sortId","name"),r=n[0],c=n[1],l=(0,i.useLocalState)(t,"sortOrder",!0),s=l[0],d=l[1],u=e.id,p=e.children;return(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{color:r!==u&&"transparent",width:"100%",onClick:function(){r===u?d(!s):(c(u),d(!0))},children:[p,r===u&&(0,o.createComponentVNode)(2,a.Icon,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})},N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data.isPrinting,d=(0,i.useLocalState)(t,"searchText",""),u=(d[0],d[1]);return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,c.FlexItem,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"New Record",icon:"plus",onClick:function(){return r("new_general")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Cell Log",ml:"0.25rem",onClick:function(){return(0,s.modalOpen)(t,"print_cell_log")}})]}),(0,o.createComponentVNode)(2,c.FlexItem,{grow:"1",ml:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",width:"100%",onInput:function(e,t){return u(t)}})})]})},b=function(e,t){var n=(0,i.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return n("delete_security_all")},mb:"0.5rem"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){return n("delete_cell_logs")}})]})},V=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.isPrinting,s=c.general,d=c.security;return s&&s.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",level:2,mt:"-6px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:l,icon:l?"spinner":"print",iconSpin:!!l,content:"Print Record",onClick:function(){return r("print_record")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated to this crew member!",tooltipPosition:"bottom-left",content:"Delete Record",onClick:function(){return r("delete_general")}})],4),children:(0,o.createComponentVNode)(2,v)}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Data",level:2,mt:"-12px",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:d.empty,content:"Delete Record",onClick:function(){return r("delete_security")}}),children:(0,o.createComponentVNode)(2,x)})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},v=function(e,t){var n=(0,i.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{float:"left",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(""+e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Box,{position:"absolute",right:"0",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e,style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},x=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,prewrap:!0,children:[(0,r.decodeHtmlEntities)(e.value),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return h(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",onClick:function(){return(0,s.modalOpen)(t,"comment_add")}}),children:0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{prewrap:!0,children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:e.header||"Auto-generated"}),(0,o.createVNode)(1,"br"),e.text||e,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("comment_delete",{id:t+1})}})]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Security records lost!",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Create New Record",mt:"0.5rem",onClick:function(){return c("new_security")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SeedExtractor=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(3),l={title:"Seeds",plantName:"Plant",lifespan:"Lifespan",endurance:"Endurance",maturation:"Maturation",production:"Production",yield:"Yield",potency:"Potency",searchTooltip:"Search..",sortByTooltip:"Sort by",dispOneTooltip:"Dispense one",dispAllTooltip:"Dispense all",inStock:"in stock",noContents:"No seeds loaded.",emptySearchResult:"No items matching your criteria was found!"},s={plantName:function(e,t){return e.display_name!==t.display_name?e.display_name>t.display_name?1:-1:0},lifespan:function(e,t){return e.life-t.life},endurance:function(e,t){return e.endr-t.endr},maturation:function(e,t){return e.matr-t.matr},production:function(e,t){return e.prod-t.prod},yield:function(e,t){return e.yld-t.yld},potency:function(e,t){return e.potn-t.potn}};t.SeedExtractor=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data),s=r.total,d=r.capacity,h=r.contents;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,u),m:0,p:0,children:(0,o.createComponentVNode)(2,p,{seedsTotal:s,seedsCapacity:d})}),h?(0,o.createVNode)(1,"div","Divider Divider__noMargin"):(0,o.createComponentVNode)(2,a.NoticeBox,{m:0,children:[" ",l.noContents," "]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:1,stretchContents:!0,mt:0,children:!!h&&(0,o.createComponentVNode)(2,m)})]})})};var d=function(e,t){var n=e.name,r=e.alpha,c=(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1}),s=c[0],d=c[1];return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,iconRight:!0,icon:s.field!==n?"":s.desc?r?"sort-alpha-down":"sort-amount-down":r?"sort-alpha-up":"sort-amount-up",color:"transparent",textColor:"white",content:l[n],tooltip:l.sortByTooltip+" "+n.toLowerCase(),tooltipPosition:"bottom",onClick:function(){s.field!==e.name?d({field:n,desc:!1}):d({field:n,desc:!s.desc})}})},u=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]);return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",width:"50vw",style:{display:"block"},children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{name:"filter"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:l.searchTooltip,width:"100%",onInput:function(e,t){return r(t)}})})]})})},p=function(e,t){var n=e.seedsTotal,r=e.seedsCapacity;return(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",bold:!0,align:"baseline",mt:0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",children:(0,o.createComponentVNode)(2,d,{name:"plantName",alpha:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"lifespan"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"endurance"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"maturation"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"production"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"yield"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:(0,o.createComponentVNode)(2,d,{name:"potency"})})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,color:"average",children:[n,"/",r]})]})},m=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data.contents),d=(0,i.useLocalState)(t,"search",""),u=d[0],p=(d[1],(0,i.useLocalState)(t,"sort",{field:"plantName",desc:!1})),m=p[0],f=(p[1],(0,r.createSearch)(u,(function(e){return e.display_name+e.strain_text}))),C=c.filter(f).sort(s[m.field]);m.desc&&(C=C.reverse());var g=0===C.length;return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[!!g&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[" ",l.emptySearchResult," "]}),!g&&(0,o.createComponentVNode)(2,a.Box,{className:"SeedExtractor__Contents",children:C.map((function(e){return(0,o.createComponentVNode)(2,h,{displayName:e.display_name,descriptionText:e.strain_text,lifespanVal:e.life,enduranceVal:e.endr,maturationVal:e.life,productionVal:e.prod,yieldVal:e.yld,potencyVal:e.potn,vendIdx:e.vend,pileStock:e.quantity},e.vend)}))})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=(n.data,e.key,e.displayName),s=e.descriptionText,d=e.lifespanVal,u=e.enduranceVal,p=e.maturationVal,m=e.productionVal,h=e.yieldVal,f=e.potencyVal,C=e.vendIdx,g=e.pileStock;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",className:"SeedExtractor__contents--row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"15vw",textAlign:"left",bold:!0,children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:c})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"65vw",py:1,children:(0,o.createVNode)(1,"table",null,[(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Flex,{direction:"row",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:d}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:u}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:p}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:m}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:h}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,children:f})]}),2),2),(0,o.createVNode)(1,"tr",null,(0,o.createVNode)(1,"td",null,s,0,{style:{"font-size":"90%","padding-top":"0.5em"}}),2)],4,{style:{width:"100%",border:"0"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,shrink:1,py:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{color:"good",children:[g," ",l.inStock]}),(0,o.createComponentVNode)(2,a.Flex.Item,{minHeight:"25px",pt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"1",tooltip:"Dispense one",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:1})}}),(0,o.createComponentVNode)(2,a.NumberInput,{width:"40px",minValue:0,value:0,maxValue:g,step:1,stepPixelSize:3,onChange:function(e,t){return r("vend",{index:C,amount:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all",tooltipPosition:"bottom-left",onClick:function(){return r("vend",{index:C,amount:g})}})]})]})})]}),(0,o.createComponentVNode)(2,a.Divider)],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsoleContent=t.ShuttleConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=e.type,u=void 0===s?"shuttle":s,p=e.blind_drop,m=l.authorization_required;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:240,children:[!!m&&(0,o.createComponentVNode)(2,i.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,children:(0,o.createComponentVNode)(2,i.Icon,{name:"minus-circle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2,ml:2,color:"bad",children:"shuttle"===u?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:"18px",mt:4,children:(0,o.createComponentVNode)(2,i.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return c("request")}})})]}),(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,d,{type:u,blind_drop:p})})]})};var c=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.id===t})))?void 0:n.name},l=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.name===t})))?void 0:n.id},s={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=e.type,p=e.blind_drop,m=d.status,h=d.locked,f=d.authorization_required,C=d.destination,g=d.docked_location,N=d.timer_str,b=d.locations,V=void 0===b?[]:b;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:s[m]||"bad",ml:1,children:m||"Not Available"})]}),(0,o.createComponentVNode)(2,i.Section,{title:"shuttle"===u?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destination",buttons:"shuttle"!==u&&0===V.length&&!!p&&(0,o.createComponentVNode)(2,i.Button,{color:"bad",icon:"exclamation-triangle",disabled:f||!p,content:"Blind Drop",onClick:function(){return a("random")}}),children:0===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"bad",children:"Not Available"})||1===V.length&&(0,o.createComponentVNode)(2,i.Box,{mb:1.7,color:"average",children:c(V,C)})||(0,o.createComponentVNode)(2,i.Dropdown,{mb:1.7,over:!0,width:"240px",options:V.map((function(e){return e.name})),disabled:h||f,selected:c(V,C)||"Select a Destination",onSelected:function(e){return a("set_destination",{destination:l(V,e)})}})})]}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:"Depart",disabled:!c(V,C)||h||f||"Idle"!==m,icon:"arrow-up",textAlign:"center",onClick:function(){return a("move",{shuttle_id:C})}})]})]})};t.ShuttleConsoleContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulator=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ShuttleManipulator=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),d=n[0],u=n[1];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===d,onClick:function(){return u(0)},icon:"info-circle",content:"Status"},"Status"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===d,onClick:function(){return u(1)},icon:"file-import",content:"Templates"},"Templates"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===d,onClick:function(){return u(2)},icon:"tools",content:"Modification"},"Modification")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,c);case 1:return(0,o.createComponentVNode)(2,l);case 2:return(0,o.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}(d)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.shuttles;return(0,o.createComponentVNode)(2,i.Box,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ID",children:e.id}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Timer",children:e.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Mode",children:e.mode}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle Status",children:e.status}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){return a("fast_travel",{id:e.id})}})]})]})},e.name)}))})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.templates_tabs,s=c.existing_shuttle,d=c.templates;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:e===s.id,icon:"file",content:e,onClick:function(){return a("select_template_category",{cat:e})}},e)}))}),!!s&&d[s.id].templates.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:e.description}),e.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Load Template",icon:"download",onClick:function(){return a("select_template",{shuttle_id:e.shuttle_id})}})})]})},e.name)}))]})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.existing_shuttle,s=c.selected;return(0,o.createComponentVNode)(2,i.Box,{children:[l?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: "+l.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:l.status}),l.timer&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Timer",children:l.timeleft}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){return a("jump_to",{type:"mobile",id:l.id})}})})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Shuttle: None"}),s?(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: "+s.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[s.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Preview",icon:"eye",onClick:function(){return a("preview",{shuttle_id:s.shuttle_id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",icon:"download",onClick:function(){return a("load",{shuttle_id:s.shuttle_id})}})]})]})}):(0,o.createComponentVNode)(2,i.Section,{title:"Selected Template: None"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(0),r=n(15),i=n(1),a=n(2),c=n(3),l=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],d={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data.hasOccupant?(0,o.createComponentVNode)(2,p):(0,o.createComponentVNode)(2,g));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[r,(0,o.createComponentVNode)(2,f)]})})};var p=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,C)],4)},m=function(e,t){var n=(0,i.useBackend)(t),c=n.act,s=n.data,d=s.occupant,p=s.auto_eject_dead;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:p?"toggle-on":"toggle-off",selected:p,content:p?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(p?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxHealth,value:d.health/d.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(d.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[d.stat][0],children:l[d.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.maxTemp,value:d.bodyTemperature/d.maxTemp,color:u[d.temperatureSuitability+3],children:[(0,r.round)(d.btCelsius,0),"\xb0C,",(0,r.round)(d.btFaren,0),"\xb0F"]})}),!!d.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d.bloodMax,value:d.bloodLevel/d.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[d.bloodPercent,"%, ",d.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[d.pulse," BPM"]})],4)]})})},h=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:d,children:(0,r.round)(n[e[1]],0)},t)},t)}))})})},f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.hasOccupant,s=c.isBeakerLoaded,d=c.beakerMaxSpace,u=c.beakerFreeSpace,p=c.dialysis&&u>0;return(0,o.createComponentVNode)(2,a.Section,{title:"Dialysis",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!s||u<=0||!l,selected:p,icon:p?"toggle-on":"toggle-off",content:p?"Active":"Inactive",onClick:function(){return r("togglefilter")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:u/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[u,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,c=n.data,l=c.occupant,s=c.chemicals,d=c.maxchem,u=c.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Chemicals",flexGrow:"1",children:s.map((function(e,t){var n,i="";return e.overdosing?(i="bad",n=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(i="average",n=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:e.occ_amount/d,color:i,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[e.pretty_amount,"/",d,"u"]}),u.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+t>d||2===l.stat,icon:"syringe",content:"Inject "+t+"u",title:"Inject "+t+"u of "+e.title+" into the occupant",mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},g=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SlotMachine=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SlotMachine=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return null===s.money?(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"Could not scan your card or could not find account!"}),(0,o.createComponentVNode)(2,i.Box,{children:"Please wear or hold your ID and try again."})]})})}):(n=1===s.plays?s.plays+" player has tried their luck today!":s.plays+" players have tried their luck today!",(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{lineHeight:2,children:n}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Credits Remaining",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:s.money})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"50 credits to spin",children:(0,o.createComponentVNode)(2,i.Button,{icon:"coins",disabled:s.working,content:s.working?"Spinning...":"Spin",onClick:function(){return l("spin")}})})]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,lineHeight:2,color:s.resultlvl,children:s.result})]})})}))}},function(e,t,n){"use strict";t.__esModule=!0,t.Smartfridge=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Smartfridge=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.secure,d=l.can_dry,u=l.drying,p=l.contents;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[!!s&&(0,o.createComponentVNode)(2,i.Section,{title:"Secure",children:(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Secure Access: Please have your identification ready."})}),!!d&&(0,o.createComponentVNode)(2,i.Section,{title:"Drying rack",children:(0,o.createComponentVNode)(2,i.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){return c("drying")}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Contents",children:[!p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:" No products loaded. "}),!!p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"45%",children:e.display_name}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"25%",children:["(",e.quantity," in stock)"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){return c("vend",{index:e.vend,amount:1})}}),(0,o.createComponentVNode)(2,i.NumberInput,{width:"40px",minValue:0,value:0,maxValue:e.quantity,step:1,stepPixelSize:3,onChange:function(t,n){return c("vend",{index:e.vend,amount:n})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-down",content:"All",tooltip:"Dispense all. ",onClick:function(){return c("vend",{index:e.vend,amount:e.quantity})}})]})]},e)}))]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(0),r=n(1),i=n(2),a=n(100),c=n(3);t.Smes=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.capacityPercent,u=(s.capacity,s.charge),p=s.inputAttempt,m=s.inputting,h=s.inputLevel,f=s.inputLevelMax,C=s.inputAvailable,g=s.outputAttempt,N=s.outputting,b=s.outputLevel,V=s.outputLevelMax,v=s.outputUsed,x=(d>=100?"good":m&&"average")||"bad",y=(N?"good":u>0&&"average")||"bad";return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*d,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Input",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return l("tryinput")},children:p?"Auto":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:x,children:(d>=100?"Fully Charged":m&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===h,onClick:function(){return l("input",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===h,onClick:function(){return l("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:h/1e3,fillValue:C/1e3,minValue:0,maxValue:f/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("input",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:h===f,onClick:function(){return l("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:h===f,onClick:function(){return l("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(C)})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Output",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return l("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,i.Box,{color:y,children:N?"Sending":u>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,i.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===b,onClick:function(){return l("output",{target:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===b,onClick:function(){return l("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:b/1e3,minValue:0,maxValue:V/1e3,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*e,1)},onChange:function(e,t){return l("output",{target:1e3*t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:b===V,onClick:function(){return l("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:b===V,onClick:function(){return l("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(v)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SolarControl=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SolarControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.generated,d=l.generated_ratio,u=l.tracking_state,p=l.tracking_rate,m=l.connected_panels,h=l.connected_tracker,f=l.cdir,C=l.direction,g=l.rotating_direction;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return c("refresh")}}),children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar tracker",color:h?"good":"bad",children:h?"OK":"N/A"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Solar panels",color:m>0?"good":"bad",children:m})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{size:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:d,children:s+" W"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[f,"\xb0 (",C,")"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[2===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Automated "}),1===u&&(0,o.createComponentVNode)(2,i.Box,{children:[" ",p,"\xb0/h (",g,") "]}),0===u&&(0,o.createComponentVNode)(2,i.Box,{children:" Tracker offline "})]})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Panel orientation",children:[2!==u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:f,onDrag:function(e,t){return c("cdir",{cdir:t})}}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker status",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:0===u,onClick:function(){return c("track",{track:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"clock-o",content:"Timed",selected:1===u,onClick:function(){return c("track",{track:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:2===u,disabled:!h,onClick:function(){return c("track",{track:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracker rotation",children:[1===u&&(0,o.createComponentVNode)(2,i.NumberInput,{unit:"\xb0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:p,format:function(e){return(Math.sign(e)>0?"+":"-")+Math.abs(e)},onDrag:function(e,t){return c("tdir",{tdir:t})}}),0===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Tracker offline "}),2===u&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{mb:.5,title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){return c("jump",{ID:e.uids})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){return c("spawn",{ID:e.uids})}})],4),children:[(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:e.desc}),!!e.fluff&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:e.fluff}),!!e.important_info&&(0,o.createComponentVNode)(2,i.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:e.important_info})]},e.name)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsole=t.SpiderOS=void 0;var o=n(0),r=n(1),i=n(2),a=n(64),c=n(3);t.SpiderOS=function(e,t){var n,a=(0,r.useBackend)(t),f=a.act,C=a.data;return 0===C.suit_tgui_state?n=(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex,{direction:"column",width:"60%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,o.createComponentVNode)(2,p)})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s)]})]}):1===C.suit_tgui_state&&(n=(0,o.createComponentVNode)(2,i.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,o.createComponentVNode)(2,i.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h,{allMessages:C.current_load_text,finishedTimeout:3e3,current_initialisation_phase:C.current_initialisation_phase,end_terminal:C.end_terminal,onFinished:function(){return f("set_UI_state",{suit_tgui_state:0})}})]})})),(0,o.createComponentVNode)(2,c.Window,{theme:"spider_clan",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",spacing:1,children:n})})})};var l=function(e,t){var n=(0,r.useBackend)(t).data,a=n.allStylesPreview,c=n.style_preview_icon_state;return(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u041d\u0430\u0448\u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0430\u043c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u044f \u043e\u0431\u043e\u0440\u043e\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u043f\u0440\u0438 \u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0443\u0431\u0438\u0439\u0446\u044b.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,o.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+a[c],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})})})})},s=function(e,t){var n,a,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data,p=u.designs,m=u.design_choice,h=u.scarf_design_choice,f=u.colors,C=u.color_choice,g=u.genders,N=u.preferred_clothes_gender,b=u.suit_state,V=u.preferred_scarf_over_hood,v=u.show_charge_UI,x=u.has_martial_art,y=u.show_concentration_UI;return n=0===b?"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c":"\u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c",a=0===V?"\u041a\u0430\u043f\u044e\u0448\u043e\u043d":"\u0428\u0430\u0440\u0444",c=1===V?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c \u0448\u0430\u0440\u0444\u0430",content:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:h,onSelected:function(e){return d("set_scarf_design",{scarf_design_choice:e})}})}):null,l=x?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f",content:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{selected:y,width:"78px",textAlign:"left",content:y?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_concentration")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043b\u0438 \u0432\u044b \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u043e\u0435\u0432\u043e\u0433\u043e \u0438\u0441\u0441\u043a\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-left"})]})}):null,(0,o.createComponentVNode)(2,i.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,width:"100%",children:[(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0421\u0442\u0438\u043b\u044c",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:p,selected:m,onSelected:function(e){return d("set_design",{design_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:f,selected:C,onSelected:function(e){return d("set_color",{color_choice:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0416\u0435\u043d\u0441\u043a\u0438\u0439/\u041c\u0443\u0436\u0441\u043a\u043e\u0439",children:(0,o.createComponentVNode)(2,i.Dropdown,{options:g,selected:N,onSelected:function(e){return d("set_gender",{preferred_clothes_gender:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041a\u0430\u043f\u044e\u0448\u043e\u043d",children:[(0,o.createComponentVNode)(2,i.Button,{className:0===b?"":"Button_disabled",width:"78px",selected:V,disabled:b,textAlign:"left",content:a,onClick:function(){return d("toggle_scarf")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043a\u0430\u043f\u044e\u0448\u043e\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u043e\u043b\u043e\u0441\u044b. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0430\u0448\u0430 \u0433\u043e\u043b\u043e\u0432\u0430 \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430! \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435 \u043d\u0430\u043d\u043e-\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0433\u0440\u043e\u0437\u044b \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u044f \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443! \u0423\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435: \u043d\u0430\u043d\u043e\u0432\u043e\u043b\u043e\u043a\u043d\u0430 \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u0445 \u0443\u0431\u043e\u0440\u043e\u0432 \u0441 \u0446\u0435\u043b\u044c\u044e \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0435.',tooltipPosition:"top-left"})]}),c,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0417\u0430\u0440\u044f\u0434 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",children:[(0,o.createComponentVNode)(2,i.Button,{selected:v,width:"78px",textAlign:"left",content:v?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:function(){return d("toggle_ui_charge")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u0440\u044f\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430.",tooltipPosition:"top-left"})]}),l]})}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+C,success:0,danger:0,mt:-1.2,align:"center",children:(0,o.createComponentVNode)(2,i.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:n,tooltip:"\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 \u043d\u0451\u043c \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043b\u044e\u0431\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0441\u0442\u044e\u043c \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0437\u0430\u0440\u044f\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044e\u043c \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043d\u044f\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d. \n\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0441\u0442\u044e\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-left",onClick:function(){return d("initialise_suit")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t).data.allActionsPreview;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u043e\u0432\u0435\u0442\u044b \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041c\u043e\u043b\u043e\u0434\u044b\u043c \u0443\u0431\u0438\u0439\u0446\u0430\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0441\u0432\u043e\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0435\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u044b\u0445 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a. \n\u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043c\u0438\u0441\u0441\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u0432\u044b\u0434\u0430\u0434\u0443\u0442 \u0438\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443.",tooltipPosition:"bottom-left"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,o.createComponentVNode)(2,i.Flex.Item,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_teleport,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0422\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044f \u0438 \u0448\u0430\u0442\u0442\u043b",content:"\u0412 \u0432\u0430\u0448\u0435\u043c \u0414\u043e\u0434\u0437\u0451 \u0435\u0441\u0442\u044c \u043b\u0438\u0447\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0422\u043e\u0447\u043a\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f, \u043d\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043d\u0430 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u043e\u043d\u043d\u0435\u043b\u0438 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u043c\u0430\u043b\u043e\u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0435 \u043c\u0435\u0441\u0442\u0430. \n\u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \n\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0448\u0430\u0442\u0442\u043b\u0430, \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0435\u0448\u0438\u0442\u0435 \u043f\u043e\u043b\u0435\u0442\u0435\u0442\u044c \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0432\u0430\u043c, \u0447\u0442\u043e \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043a\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043b\u0430 \u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043b\u0438\u0446, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.headset_green,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a",content:"\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0439, \u043d\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043c\u043e\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0438. \u0412 \u043d\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0431\u043e\u0440\u0433\u043e\u043c \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043a\u043b\u0430\u043d\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043e\u043d \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u0438 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0438 \u0438/\u0438\u043b\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u044b \u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u0430\u043c \u043c\u0435\u0441\u0442\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0441\u0432\u044f\u0437\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u0430\u0448 \u043d\u0430\u0443\u0448\u043d\u0438\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438- \u0447\u0435\u0441\u043a\u0438 \u0443\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u043a\u0430\u043c\u0438 \u043f\u0440\u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0432\u0430\u043c \u0441\u0430\u043c\u0438\u043c \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c\u0438.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_sleeper,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0445\u0438\u0449\u0435\u043d\u0438\u0435 \u044d\u043a\u0438\u043f\u0430\u0436\u0430",content:"\u041f\u043e\u0440\u043e\u0439 \u043a\u043b\u0430\u043d\u0443 \u043d\u0443\u0436\u043d\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043b\u044e\u0434\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043e\u0441\u043e\u0431\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0443\u0436\u043e\u0433\u043e \u0440\u0430\u0437\u0443\u043c\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u0440\u0443\u043f\u0438\u0446\u0430\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u043f\u043e\u0445\u0438\u0449\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \n\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0445\u0438- \u0442\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043d\u0430 \u0448\u0430\u0442\u0442\u043b\u0435 \u0435\u0441\u0442\u044c \u0441\u043a\u0430\u0444\u0430\u043d\u0434\u0440\u044b, \u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043f\u0430\u0441 \u043d\u0430- \u0440\u0443\u0447\u043d\u0438\u043a\u043e\u0432, \u043a\u0438\u0441\u043b\u043e\u0440\u043e\u0434\u0430 \u0438 \u0431\u0430\u043b\u043b\u043e- \u043d\u043e\u0432. \n\u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043b\u044e\u0434\u0435\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043c\u043f\u0443\u043b\u044c\u0441, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u0442\u0430\u043d\u044f \u0438\u0445 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. ",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ai_face,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043d\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0430\u0431\u043e- \u0442\u0430\u0436 \u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u0440\u043e- \u0446\u0435\u0441\u0441 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u043e\u0442 \u043d\u0430\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \n\u041f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u043a\u043b\u0430\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u044f \u0437\u0430\u043a\u043e\u043d\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u044b\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441 \u0432 \u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439. \u0422\u0430\u043a \u0436\u0435 \u0432\u0437\u043b\u043e\u043c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u043b\u0451\u0433\u043a\u0430\u044f - \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u0435\u0441\u0442\u044c \u0432\u0435\u0437\u0434\u0435. \u0410 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f. \u041d\u0435 \u0443\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435\u0441\u044c \u0435\u0441\u043b\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0434\u0435\u0439\u0441\u0442- \u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448\u0438\u043c \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c \u0435\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.ninja_borg,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0440\u043e\u0431\u043e\u0442\u043e\u0432",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u044f \u0432\u0430\u0448\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0438\u0441\u0441\u0438\u0438 \u0434\u043b\u044f \u0438\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439, \u043c\u044b \u0434\u0430\u0451\u043c \u0432\u0430\u043c \u043e\u0441\u043e\u0431\u044b\u0439 "\u0423\u043b\u0443\u0447\u0448\u0430\u044e\u0449\u0438\u0439" \u0438\u0445 \u043f\u0440\u0438\u0431\u043e\u0440, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438. \n\u041f\u0440\u0438 \u0432\u0437\u043b\u043e\u043c\u0435 \u043a\u0438\u0431\u043e\u0440\u0433\u0430 \u0442\u0430\u043a\u0438\u043c \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u043c(\u0412\u0437\u043b\u043e\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f) \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u043d\u0443 \u0438 \u0432\u0430\u043c \u043b\u0438\u0447\u043d\u043e \u0441\u043b\u0443\u0433\u0443 \u0441\u043f\u043e\u0441\u043e\u0431- \u043d\u043e\u0433\u043e \u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u0430\u043a \u0432 \u0441\u0430\u0431\u043e\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0442\u0430\u043a \u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u0435\u0447\u0435\u043d\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0440\u043e\u0431\u043e\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u043d\u0430\u0449\u0451\u043d \u043b\u0438\u0447\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043d\u043e\u0439, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u0438\u043d\u043f\u043e\u0438\u043d\u0442\u0435\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0435\u043c\u0443 \u043d\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u043e\u0432. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u043a\u0430\u0442\u0430\u043d\u0430 \u0440\u043e\u0431\u043e\u0442\u0430 \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u043e\u043a\u0430\u0446\u0438\u044e!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.server,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0430\u0431\u043e\u0442\u0430\u0436 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439",content:"\u041d\u0430 \u043d\u0430\u0443\u0447\u043d\u044b\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0447\u0451\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e- \u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0445\u043e- \u0434\u0438\u0442\u0441\u044f \u0433\u0434\u0435 \u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0443- \u043f\u0430\u044e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043d\u043e \u0433\u0440\u044b\u0437\u0443\u0442\u0441\u044f \u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u044f. \u0427\u0442\u043e \u043d\u0430\u043c \u043d\u0430 \u0440\u0443\u043a\u0443. \n\u041c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0440\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u043c\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0430 \u0438\u0445 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044f\u043d\u044b. \n\u041d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u0449\u0438\u0442\u044b \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u043e\u0432 \u043d\u0435 \u0434\u0440\u0435\u043c\u043b\u044e\u0442. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u0437\u043b\u043e\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0451\u043d \u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0418\u0418. \u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u044d\u0442\u043e\u043c\u0443.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.buckler,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043b\u0438",content:'\u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u043e\u0433\u0430\u0442\u044b\u0435 \u0448\u0438\u0448\u043a\u0438 \u043f\u043b\u0430\u0442\u044f\u0442 \u0437\u0430 \u0443\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044f\u0437\u0430\u043d \u0434\u043e\u0436\u0438\u0442\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u043c\u0435\u043d\u044b! \n * \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u044b\u0439 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b! \n * \u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0442\u043e \u0438\u043b\u0438 \u0447\u0442\u043e \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u0434\u0437\u0430\u0449\u0438\u0442\u043d\u043e\u0433\u043e, \u043d\u043e \u0434\u043b\u044f \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0433\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043c\u0438\u0441\u0441\u0438\u044f \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e. \u041d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044f \u0431\u0435\u0437 \u043d\u0443\u0436\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u043d\u0430 \u0432\u0430\u0441 \u0441\u0430\u043c\u0438\u0445 \u043d\u0435 \u0432\u0435\u043b\u0438 \u043e\u0445\u043e\u0442\u0443! \n\u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0430\u043d \u043d\u0435 \u043e\u0434\u043e\u0431\u0440\u044f\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b "\u0417\u0430\u0449\u0438\u0442\u044b" \u0446\u0435\u043b\u0438. \u041d\u0435\u0442 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u043b\u0435\u0442\u043a\u0443 \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043d\u0438\u043c \u0442\u0430\u043c! \u041d\u0435 \u043f\u043e\u0440\u0442\u0438\u0442\u0435 \u043d\u0430\u0448\u0443 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044e \u0432 \u0433\u043b\u0430\u0437\u0430\u0445 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.cash,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041a\u0440\u0430\u0436\u0430 \u0434\u0435\u043d\u0435\u0433",content:"\u041a\u0430\u043a \u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e. \u0418\u043d\u043e\u0433\u0434\u0430 \u043a\u043b\u0430\u043d \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u043d\u044c- \u0433\u0430\u0445. \u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b \u0437\u0430\u0434\u043e\u043b\u0436\u0430\u043b\u0438 \u043d\u0430\u043c. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u0434\u0438\u043c \u0432\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043b\u044f \u0432\u0430\u0441 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0442\u0440\u0443\u0434\u043d\u0430\u044f, \u043d\u043e \u0432\u0440\u0435\u043c\u044f\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u043a\u0430\u0440\u043c\u0430\u043d\u043d\u044b\u0445 \u043a\u0440\u0430\u0436. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043a\u0430\u0440\u0442 \u0438 \u043e\u0431\u043d\u0430\u043b\u0438\u0447\u0438- \u0432\u0430\u043d\u0438\u044f \u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432. \u041b\u0438\u0431\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0435\u0442\u0438\u0442\u044c \u0432\u044b\u0448\u0435 \u0438 \u043e\u0433\u0440\u0430\u0431\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435. \u0414\u043e\u0441\u0442\u0430\u043d\u044c\u0442\u0435 \u044d\u0442\u0438 \u0434\u0435\u043d\u044c\u0433\u0438!",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.handcuff,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430",content:"\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0447\u0443\u0436\u043e\u0439 \u043f\u043e\u0437\u043e\u0440 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0447\u0435\u043c \u0441\u043c\u0435\u0440\u0442\u044c. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0432\u0430\u043c \u043f\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u0440\u043e\u044f\u0432\u0438\u0442\u044c \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043f\u043e \u0437\u0430\u043a\u043e\u043d\u043d\u044b\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0443\u043f\u0435\u043a\u043b\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0421\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0446\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u043b\u0435\u0434. \u041d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0446\u0435\u043b\u0438 \u0441\u0440\u043e\u043a \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 - \u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u0435\u0442\u043e\u0434. \u0426\u0435\u043b\u044c \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u044e\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043b\u0438\u0447\u0438\u043d\u043e\u0439 \u0446\u0435\u043b\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u0441\u043b\u0438\u0448- \u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041b\u0438\u0448\u043d\u044f\u044f \u0434\u044b\u0440\u0430 \u0432 \u043e\u0431\u0448\u0438\u0432\u043a\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0438\u043b\u0438 \u0442\u0440\u0443\u043f\u044b - \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0448\u0430\u043d\u0441\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u043d\u0430.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.spider_charge,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041f\u043e\u0434\u0440\u044b\u0432 \u043e\u0442\u0434\u0435\u043b\u0430",content:"\u0421\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 \u0431\u043e\u043c\u0431\u044b. \u042d\u0444\u0444\u0435\u043a- \u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0440\u0443\u0434\u0438\u044f \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0438 \u043d\u0435\u0436\u0438\u0432\u043e\u0433\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0441\u044f\u0442 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u043e\u0431\u044c\u0435\u043a\u0442, \u043e\u043d\u0438 \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u041d\u043e \u0440\u0435\u0434\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b \u0441\u0434\u0430\u0442\u044c\u0441\u044f. \u041a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u043d\u0430 \u043f\u043e\u0434\u0440\u044b\u0432 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u0430. \n\u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0437\u0440\u044b\u0432\u0430 \u043d\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044c \u043e\u0445\u043e\u0442\u0430. \n \u041d\u0430\u0448\u0438 \u0431\u043e\u043c\u0431\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u0435\u043b\u044f\u043c\u0438. \u041d\u0438\u043a\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u0430\u0441 \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0445 \u043f\u043e\u0434\u043e\u0440\u0432\u0430\u0442\u044c \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043b\u0438\u0448\u044c \u0432 \u0437\u043e\u043d\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0421\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u0442\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0441 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.BSM,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u0440\u043e\u0432\u0438",content:'"\u0417\u043d\u0430\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430" - \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438\u0441\u0442\u0438\u043d\u0430. \n\u0417\u0430 \u0433\u043e\u0434\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u043d\u0430 \u043c\u044b \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e- \u0442\u043e\u0440\u044b\u0445. \u0410 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u044b\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b. \u041a\u0440\u043e\u0432\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0430\u0448\u0438\u043c \u0443\u0447\u0451\u043d\u044b\u043c. \n\u0418\u043c\u0435\u044e\u0449\u0430\u044f\u0441\u044f \u0443 \u0432\u0430\u0441 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043d\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043b\u044f \u043a\u0440\u043e\u0432\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437\u0446\u044b \u043d\u0435 \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430\u043c. \n\u0414\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u0440\u043e\u0432\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c 3 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043f\u043e\u043c\u0435- \u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043f\u0440\u043e\u0431\u0438\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \n\u041f\u0440\u0438\u043c\u0435\u0441\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.changeling,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0413\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u044b",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043e\u0437\u043e\u043c\u043d\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044f \u0432\u044b\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u043c\u0435\u044e\u0442 \u043a\u0440\u0430\u0441\u0442\u044c \u0433\u0435\u043d\u044b \u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445. \n\u0421\u0432\u043e\u0438\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u043d\u0438 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431- \u043b\u0435\u043c, \u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u044b. \n\u042d\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043e\u043b\u044c \u0436\u0435 \u0445\u0438\u0442\u0440\u044b \u0441\u043a\u043e\u043b\u044c \u0438 \u0441\u043a\u0440\u044b\u0442\u043d\u044b. \u041d\u0435 \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043d\u0438\u043c\u0438 \u043d\u0438 \u043e \u0447\u0451\u043c! \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0436\u0435 \u043d\u0430\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0433\u0435\u043d\u043e\u043a\u0440\u0430\u0434\u0430 \u043d\u0435 \u0437\u0430\u043f\u0438\u0445- \u043d\u0443\u0432 \u0435\u0433\u043e \u0432 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e \u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0441\u0442\u043e\u0432. \u041d\u043e \u043e\u043d\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0435\u0431\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438. \u0418 \u0442\u0430\u043a \u0436\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043b\u043e\u0436\u0430\u0442\u0441\u044f \u043d\u0430 \u0434\u043d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0438\u0445 \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0430\u0439\u0442\u0435 \u0438\u043c \u043f\u043e\u043f\u043b\u044f\u0441\u0430\u0442\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0441\u0446\u0435\u043d\u0443. \u0418 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043e \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442\u0435. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0445\u0440\u0430\u043d\u0430 \u0443\u0436\u0435 \u043e\u0445\u043e\u0442\u0438\u0442\u0441\u044f \u0437\u0430 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043d\u0438\u0445. \n\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c \u0441 \u044d\u0442\u0438\u043c...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.vampire,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0430\u043c\u043f\u0438\u0440\u044b",content:"\u0414\u0435\u0448\u0451\u0432\u044b\u0435 \u0440\u043e\u043c\u0430\u043d\u044b, \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438 \u0441\u043a\u0430\u0437\u043a\u0438 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u0432\u0430\u043c\u043f\u0438\u0440\u043e\u0432 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a\u043e\u0432 \u043f\u044c\u044e\u0449\u0438\u0445 \u043a\u0440\u043e\u0432\u044c \u043b\u044e\u0434\u0435\u0439 \u0432 \u043d\u043e\u0447\u0438 \u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e- \u0449\u0438\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e- \u0441\u0442\u044f\u043c\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u0435\u0435 \u0440\u043e\u043c\u0430\u043d\u0442\u0438\u0447\u043d\u044b... \n\u041c\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043d\u043e \u043d\u0430\u0448\u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0435- \u043d\u0438\u044f \u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0439 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0422\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0432\u0430\u043c\u043f\u0438\u0440 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u0438\u043b\u0438 \u0443\u0433\u0440\u043e\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438. \u0412\u044b \u0432\u043e\u043b\u044c\u043d\u044b \u0435\u0433\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \n\u0412\u0430\u043c\u043f\u0438\u0440\u044b \u043e\u0447\u0435\u043d\u044c \u043e\u043f\u0430\u0441\u043d\u044b \u0432 \u043f\u0440\u044f\u043c\u043e\u043c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438, \u043e\u043d\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043e\u0433\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0437\u0433\u043b\u044f\u0434\u043e\u043c \u0438 \u043f\u043e\u0440\u0430\u0431\u043e\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u0443\u043c \u0441\u0432\u043e\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0438\u043c, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043c\u043d\u0438\u0442\u0435 - \u043e\u043d\u0438 \u043b\u0438\u0448\u044c \u0436\u0435\u0440\u0442\u0432\u044b \u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u044e \u043f\u043e\u043b\u044c\u0437\u0443...",position:"bottom-left"})]}),(0,o.createComponentVNode)(2,i.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,o.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+n.syndicate,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442",content:"\u041d\u0430\u0448\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435. \u0421\u0431\u043e\u0440\u0438\u0449\u0435 \u043c\u043e\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043f\u043e\u0434\u043f\u043e\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043c\u0430\u043b\u043e... \n\u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u0430\u0437\u043e\u0432. \u041d\u043e \u0441\u0430\u043c\u043e\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043e\u0439 \u044d\u0442\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b - \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u044c \u043a \u041d\u0422. \n\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0441 \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u0421\u0438\u043d\u0434\u0438\u043a\u0430\u0442\u0430 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043d\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0430. \n\u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u044e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u041c\u044b \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u043c \u0438\u043c.",position:"bottom-left"})]})]})})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.allActionsPreview,s=c.blocked_TGUI_rows,d=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,o.createComponentVNode)(2,i.Section,{title:"\u041c\u043e\u0434\u0443\u043b\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0430! \u0414\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0430 3 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0441\u0442\u044e\u043c\u0430, \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432",tooltipPosition:"bottom"}),children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041f\u0440\u0438\u0437\u0440\u0430\u043a",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0421\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043e\u0432, \u043d\u0430\u043f\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043d\u0438 \u0438 \u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0440\u0438\u043c\u043e\u0439 \u0443\u0433\u0440\u043e\u0437\u043e\u0439, \u0432\u0441\u0451 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043c\u0438\u0441\u0441\u0438\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u0437\u043d\u0430\u043b! \u0411\u0443\u0434\u044c\u0442\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u044b \u043a\u0430\u043a \u043f\u0440\u0438\u0437\u0440\u0430\u043a!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"smoke",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.smoke,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0414\u042b\u041c\u041e\u0412\u0410\u042f \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u0445 \u0432\u0440\u0430\u0433\u043e\u0432. \n\u042d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0437\u043e\u0440\u043e\u043c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0442\u0435\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0430\u043d\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043a \u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u0433\u043e \u043f\u043e\u0436\u0435\u043b\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"ninja_cloak",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_cloak,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u041d\u0415\u0412\u0418\u0414\u0418\u041c\u041e\u0421\u0422\u042c",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441\u043a\u0440\u044b\u0432\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043f\u0440\u0438\u0433\u043b\u0443\u0448\u0430- \u044e\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u0425\u043e\u0442\u044c \u043f\u043e\u043b\u0435 \u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0445\u043b\u0430\u0434\u043d\u043e\u043a\u0440\u043e\u0432\u0435\u043d. \n\u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 15 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"ninja_clones",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_clones,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u041a\u041b\u041e\u041d\u042b",content:"\u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043e\u0440\u0438\u0435\u043d\u0442\u0438- \u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 \n\u0422\u0430\u043a \u0436\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u043e\u043d\u043e\u0432 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043f\u0430\u0440\u044b \u043c\u0435\u0442\u0440\u043e\u0432. \n\u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e. \u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0435\u0440\u0435\u0442\u044c \u0432\u0430\u0441 \u0437\u0430 4-\u043c\u044f \u0441\u0442\u0435\u043d\u0430\u043c\u0438. \u0411\u0443\u0434\u044c\u0442\u0435 \u043a \u044d\u0442\u043e\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b. \n\u041a\u043b\u043e\u043d\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041a\u043b\u043e\u043d\u044b \u0438\u043c\u0435\u044e\u0442 \u0448\u0430\u043d\u0441 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u0441\u044f \u0430\u0442\u0430\u043a\u0443\u044f \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u0432. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 8 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"chameleon",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chameleon,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0425\u0410\u041c\u0415\u041b\u0415\u041e\u041d",content:"\u0412\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0435\u0431\u044f \u0433\u043e\u043b\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438\u0441\u043a\u0430\u0436\u0430\u044e\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0441\u043b\u0443\u0445\u043e\u0432\u043e\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c. \n\u042d\u0442\u043e \u0434\u0430\u0451\u0442 \u0432\u0430\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u043f\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0438 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430 \u044d\u043a\u0438\u043f\u0430\u0436\u0430. \n\u041f\u043e\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0437\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043b\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0430\u043c\u0435\u043b\u0435\u043e\u043d \u0441\u043b\u0430\u0431\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].blue,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"ninja_spirit_form",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.ninja_spirit_form,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0424\u041e\u0420\u041c\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044b \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u044d\u0442\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438. \n\u0414\u0435\u043b\u0430\u044f \u0432\u0430\u0448\u0435 \u0442\u0435\u043b\u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u044d\u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0442\u0435\u043d\u044b. \n\u042d\u0442\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0441 \u043d\u0435\u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0443\u043b\u044c \u0438 \u043b\u0435\u0437\u0432\u0438\u0439! \n\u041d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0441\u043d\u044f\u0442\u044c \u0441 \u0441\u0435\u0431\u044f \u043d\u0430\u0440\u0443\u0447\u043d\u0438\u043a\u0438, \u0431\u043e\u043b\u044b \u0438 \u0434\u0430\u0436\u0435 \u0432\u044b\u043b\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043e\u0431\u0430 \u0438\u043b\u0438 \u044f\u0449\u0438\u043a\u0430, \u043e\u043a\u0430\u0436\u0438\u0441\u044c \u0432\u044b \u0442\u0430\u043c \u0437\u0430\u043f\u0435\u0440\u0442\u044b... \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u0430. \n\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0434\u0443\u0445\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u044d\u043d\u0435\u0440\u0433\u0438\u0438! \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u044a\u0451\u043c\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 25 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0417\u043c\u0435\u0439",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435! \u0422\u0440\u044e\u043a\u0438, \u043b\u043e\u0432\u0443\u0448\u043a\u0438, \u0449\u0438\u0442\u044b. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u043e\u0439 \u0441 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0438\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u0445\u043e\u0434\u044f \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0433\u0440\u044b\u0437\u0443\u043d\u044b, \u0447\u044c\u0451 \u043b\u043e\u0433\u043e\u0432\u043e \u043d\u0430\u0432\u0435\u0441\u0442\u0438\u043b \u0437\u043c\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"kunai",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.kunai,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041e\u0415\u041d\u041d\u041e\u0415 \u0414\u0416\u041e\u0425\u042c\u0401",content:"\u0422\u0430\u043a \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a \u0428\u044d\u043d\u0431\u044f\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u041a\u0438\u043d\u0436\u0430\u043b \u043d\u0430 \u0446\u0435\u043f\u0438. \n\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u0442\u044f\u043d\u0443\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043e\u043b\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \n\u041e\u0440\u0443\u0436\u0438\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u0438\u0445 \u0431\u043e\u0451\u0432, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0436\u0435\u0440\u0442\u0432\u044b - \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u043f\u0440\u043e\u043c\u0430\u0445\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 5 \u0441\u0435\u043a\u0443\u043d\u0434.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"chem_injector",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.chem_injector,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041b\u042f\u042e\u0429\u0418\u0419 \u041a\u041e\u041a\u0422\u0415\u0419\u041b\u042c",content:"\u0412\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0435\u0447\u0435\u0431\u043d\u0443\u044e \u0441\u043c\u0435\u0441\u044c. \u0421\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u0437\u0430\u043b\u0435\u0447\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043e\u0440\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u041f\u0440\u0435\u043f\u0430\u0440\u0430\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442- \n\u0432\u0435\u043d\u043d\u043e-\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u0434\u043e\u043a\u0441\u044b \u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0430! \n\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u043e\u0437\u0438\u0440\u043e\u0432\u043a\u0435 \u043e\u043d\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u043f\u0430\u0441\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 30 \u0435\u0434. \u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c! \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0438\u043c\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044f\u0434\u0430. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0431\u043b\u044e\u0441\u043f\u0435\u0439\u0441 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u043e\u0432 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emergency_blink",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emergency_blink,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041a\u0421\u0422\u0420\u0415\u041d\u041d\u0410\u042f \u0422\u0415\u041b\u0415\u041f\u041e\u0420\u0422\u0410\u0426\u0418\u042f",content:"\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0437\u043e\u043d\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043c\u0435\u0442\u0440\u043e\u0432. \n\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u043e\u0437\u0433\u043e\u0432\u044b\u0435 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0432\u043e\u0438\u043d\u044b \u043a\u043b\u0430\u043d\u0430, \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043e \u0441\u043d\u0435. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"caltrop",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.caltrop,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e-\u0427\u0415\u0421\u041d\u041e\u041a",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043b\u0442\u0440\u043e\u043f\u044b, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u044a\u0435\u0441\u0442\u043d\u044b\u043c \u0447\u0435\u0441\u043d\u043e\u043a\u043e\u043c. \n\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u043f\u0440\u0435\u0441\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043b\u043e\u0432\u0443\u0448\u043a\u0438. \n\u041b\u043e\u0432\u0443\u0448\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434. \u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 - \u0435\u0441\u043b\u0438 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442\u044c. \n\u0411\u043e\u043b\u044c \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043e\u0431\u043e\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d- \u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438. \n\u0412\u044b \u043d\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b \u043e\u0442 \u043d\u0438\u0445. \u041d\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0436\u0435 \u043b\u043e\u0432\u0443\u0448\u043a\u0438! \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].green,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"cloning",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.cloning,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0422\u041e\u0420\u041e\u0419 \u0428\u0410\u041d\u0421",content:"\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u043d\u043e\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044b \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0438 \u043c\u0438\u0441\u0441\u0438\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043b\u0430\u043f\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430. \u041c\u043e\u0449\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0432\u0430\u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441 \u0442\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430. \n\u042d\u0442\u0430 \u043c\u0430\u0448\u0438\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u043d\u0441, \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u0430\u0441 \u043a \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043b\u0435\u0447\u0438\u0432 \u043b\u044e\u0431\u044b\u0435 \u0442\u0440\u0430\u0432\u043c\u044b. \n\u041c\u044b \u0441\u043b\u044b\u0448\u0430\u043b\u0438 \u043f\u0440\u043e \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u043d\u0430. \u041d\u043e \u0443\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0430\u0441, \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043d\u0430 \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u044e. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"33%",shrink:1,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u0421\u0442\u0430\u043b\u044c",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u042f\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043b\u044e\u0434\u044f\u043c. \u0421\u0438\u043b\u0430, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043e\u0440\u0443\u0434\u0438\u044f \u0432\u044b\u0448\u0435 \u0438\u0445 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a \u0445\u0438\u0449\u043d\u0438\u043a \u0447\u0442\u043e \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043e\u044e \u0434\u043e\u0431\u044b\u0447\u0443. \u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u0432\u043a\u0443\u0441 \u0441\u0442\u0430\u043b\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{className:s[0]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[0],onClick:function(){return a("give_ability",{style:"shuriken",row:"1"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.shuriken,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u0421\u042e\u0420\u0418\u041a\u0415\u041d\u042b",content:"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043f\u0443\u0441\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u0432 \u043f\u0435\u0440\u0447\u0430\u0442\u043a\u0430\u0445 \u043a\u043e\u0441\u0442\u044e\u043c\u0430. \n\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u043e \u0442\u0440\u0438 \u0441\u044e\u0440\u0438\u043a\u0435\u043d\u0430, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e. \n\u0421\u044e\u0440\u0438\u043a\u0435\u043d\u044b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0438\u0437\u043d\u0443\u0440\u044f\u044e\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u043d\u0430\u043d\u043e\u0441\u044f\u0442 \u0441\u043b\u0430\u0431\u044b\u0439 \u043e\u0436\u043e\u0433\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u043d. \n\u0422\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u043b\u0435\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043a\u043b\u043e, \u043a\u0430\u043a \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043b\u0430\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u043d\u0430\u0440\u044f\u0434\u044b. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430: 300 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[1]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[1],onClick:function(){return a("give_ability",{style:"adrenal",row:"2"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.adrenal,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0412\u0421\u041f\u041b\u0415\u0421\u041a \u0410\u0414\u0420\u0415\u041d\u0410\u041b\u0418\u041d\u0410",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043c\u043e\u0449\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0443\u044e \u0432\u0430\u0441 \u0432 \u0431\u043e\u044e \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0449\u0443\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043e\u043a\u043b\u0435\u043c\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043e\u0433\u043b\u0443\u0448\u0430\u044e\u0449\u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432. \n\u041a\u043e\u0441\u0442\u044e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0441\u044b\u0432\u043e\u0440\u043e\u0442\u043a\u0443 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0440\u0430\u043d\u0430. \u0427\u0442\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u0451\u0442 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0434\u0438\u044f \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \n\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0430\u0442\u044b \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0436\u0435\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0443\u0440\u0430\u043d\u0430 \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0441\u0442\u044e\u043c.",position:"bottom-right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[2]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[2],onClick:function(){return a("give_ability",{style:"emp",row:"3"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.emp,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041b\u0415\u041a\u0422\u0420\u041e\u041c\u0410\u0413\u041d\u0418\u0422\u041d\u042b\u0419 \u0412\u0417\u0420\u042b\u0412",content:"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0435 \u0432\u043e\u043b\u043d\u044b \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e\u0442, \u043f\u043e\u0434\u0440\u044b\u0432\u0430\u044e\u0442 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0430\u044e\u0442 - \u043a\u0438\u0431\u043e\u0440\u0433\u043e\u0432, \u0434\u0440\u043e\u043d\u043e\u0432, \u041a\u041f\u0411, \u044d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0440\u0443\u0436\u0438\u0435, \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0421\u0432\u0435\u0442\u043e\u0448\u0443\u043c\u043e\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044f\u0437\u0438 \u0438 \u0442.\u0434. \n\u042d\u0442\u043e\u0442 \u0432\u0437\u0440\u044b\u0432 \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0432 \u0431\u043e\u044e, \u0442\u0430\u043a \u0438 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043d\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044c. \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c. \n\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043e \u0437\u0430\u0449\u0438\u0449\u0430\u044e\u0449\u0435\u043c \u043e\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0437\u043e\u0440\u0430. \u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0435 \u043e\u0441\u043b\u0435\u043f\u043d\u0443\u0442\u044c, \u043f\u0440\u0438 \u043f\u043e\u0434\u0440\u044b\u0432\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044b\u0432 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u041f\u0435\u0440\u0435\u0437\u0430\u0440\u044f\u0434\u043a\u0430: 4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[3]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[3],onClick:function(){return a("give_ability",{style:"energynet",row:"4"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.energynet,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u042d\u041d\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041a\u0410\u042f \u0421\u0415\u0422\u042c",content:"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043b\u043e\u0432\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0432\u0430\u043c\u0438 \u0446\u0435\u043b\u044c \u0432 \u043e\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u043b\u043e\u0432\u0443\u0448\u043a\u0443. \n\u0418\u0437 \u043b\u043e\u0432\u0443\u0448\u043a\u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u0432 \u0435\u0451 \u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c. \n\u041e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0430\u0433\u0430. \n\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432 \u043d\u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0445 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0445 \u0438\u043b\u0438 \u043d\u0430\u0434\u043e\u0435\u0434\u043b\u0438\u0432\u044b\u0445 \u043e\u0445\u0440\u0430\u043d\u043d\u044b\u0445 \u0431\u043e\u0442\u043e\u0432. \n\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0441\u0435\u0442\u044c \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043e\u0442\u0441\u0442\u0440\u0435\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043a \u0436\u0435 \u0441\u0435\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u0435\u0442\u0438 - \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0430\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c. \n\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044d\u043d\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,o.createComponentVNode)(2,i.Button,{className:s[4]?d[0].disabled:d[0].red,height:"64px",width:"100%",disabled:s[4],onClick:function(){return a("give_ability",{style:"spider_red",row:"5"})},children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+l.spider_red,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Tooltip,{title:"\u0411\u041e\u0415\u0412\u041e\u0415 \u0418\u0421\u041a\u0423\u0421\u0421\u0422\u0412\u041e \n\u041f\u041e\u041b\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041e\u0412\u042b",content:"\u0411\u043e\u0435\u0432\u043e\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u043d\u0438\u043d\u0434\u0437\u044f \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0451\u043c\u043e\u0432. \n\u0412 \u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0438\u0451\u043c\u044b: \n\u0412\u044b\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0443\u043a\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044b\u0440\u043e\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043b\u0430\u0434\u043e\u043d\u044c\u044e - \u043e\u0442\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442 \u0432\u0430\u0441, \u043b\u0438\u0448\u0430\u044f \u0440\u0430\u0432\u043d\u043e\u0432\u0435\u0441\u0438\u044f. \n\u041f\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043d\u0438\u0435 \u0448\u0435\u0438 - \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0435\u0437\u0433\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043b\u0435\u0436\u0430\u0447\u0443\u044e \u0436\u0435\u0440\u0442\u0432\u0443 \u043a\u0430\u0442\u0430\u043d\u043e\u0439 \u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u043a\u0435. \n\u042d\u043d\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0442\u043e\u0440\u043d\u0430\u0434\u043e - \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0432\u043e\u043a\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u043b\u0430\u043a\u043e \u0434\u044b\u043c\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0434\u044b\u043c\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u044d\u043d\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043e\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0448\u0430\u043d\u0441\u043e\u043c \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u043d\u044f\u0440\u044f\u0434\u044b \u0432\u0440\u0430\u0433\u043e\u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.",position:"right"})]})]})]})]})})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Section,{title:"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0442\u0442\u043b\u043e\u043c",style:{"text-align":"center"},buttons:(0,o.createComponentVNode)(2,i.Button,{content:"?",tooltip:"\u041f\u0430\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u043c \u043b\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0442\u0442\u043b\u043e\u043c. \u0422\u0430\u043a \u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e \u0448\u0430\u0442\u0442\u043b\u0430!",tooltipPosition:"right"}),children:(0,o.createComponentVNode)(2,i.Flex,{ml:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.status?l.status:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f",children:l.player_pos}),!!l.shuttle&&(!!l.docking_ports_len&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0442\u0442\u043b",children:l.docking_ports.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",content:e.name,onClick:function(){return c("move",{move:e.id})}},e.name)}))})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"Status",color:"red",children:(0,o.createComponentVNode)(2,i.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,o.createComponentVNode)(2,a.LabeledListItem,{label:"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f",children:(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e",disabled:!l.status,onClick:function(){return c("request")}})})],0))]})})})};t.ShuttleConsole=p;var m=function(e,t){var n=(0,r.useBackend)(t).data,a=n.randomPercent,c=n.allActionsPreview,l=n.color_choice;return(0,o.createComponentVNode)(2,i.Section,{stretchContents:!0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:l,value:a,minValue:0,maxValue:100,children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,i.NoticeBox,{className:"NoticeBox_"+l,mt:1,children:[(0,o.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+c["spider_"+l],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Loading ",a+"%"]}),2)})})},h=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={lastText:"text do be there",currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.tick=function(){var e=this.props,t=this.state;e.allMessages===t.lastText||e.end_terminal?e.end_terminal&&(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout)):(t.currentDisplay.push(e.allMessages),t.lastText=e.allMessages)},a.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},a.componentWillUnmount=function(){clearTimeout(this.timer)},a.render=function(){return(0,o.createComponentVNode)(2,i.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.StationAlertConsoleContent=t.StationAlertConsole=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t).data.alarms||[],a=n.Fire||[],c=n.Atmosphere||[],l=n.Power||[];return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Fire Alarms",children:(0,o.createVNode)(1,"ul",null,[0===a.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),a.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Atmospherics Alarms",children:(0,o.createVNode)(1,"ul",null,[0===c.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),c.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)}),(0,o.createComponentVNode)(2,i.Section,{title:"Power Alarms",children:(0,o.createVNode)(1,"ul",null,[0===l.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),l.map((function(e){return(0,o.createVNode)(1,"li","color-average",e,0,null,e)}))],0)})],4)};t.StationAlertConsoleContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorage=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.SuitStorage=function(e,t){var n=(0,r.useBackend)(t).data.uv;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{display:"flex",className:"Layout__content--flexColumn",children:[!!n&&(0,o.createComponentVNode)(2,i.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,o.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,s)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,s=c.helmet,d=c.suit,u=c.magboots,p=c.mask,m=c.storage,h=c.open,f=c.locked;return(0,o.createComponentVNode)(2,i.Section,{title:"Stored Items",flexGrow:"1",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:f?"Unlock":"Lock",icon:f?"unlock":"lock",disabled:h,onClick:function(){return a("toggle_lock")}}),(0,o.createComponentVNode)(2,i.Button,{content:h?"Close unit":"Open unit",icon:h?"times-circle":"expand",color:h?"red":"green",disabled:f,onClick:function(){return a("toggle_open")}})],4),children:h&&!f?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,l,{object:s,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,o.createComponentVNode)(2,l,{object:d,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,o.createComponentVNode)(2,l,{object:u,label:"Magboots",missingText:"magboots",eject:"dispense_magboots"}),(0,o.createComponentVNode)(2,l,{object:p,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,o.createComponentVNode)(2,l,{object:m,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:f?"lock":"exclamation-circle",size:"5",mb:3}),(0,o.createVNode)(1,"br"),f?"The unit is locked.":"The unit is closed."]})})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=(n.data,e.object),l=e.label,s=e.missingText,d=e.eject;return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:l,children:(0,o.createComponentVNode)(2,i.Box,{my:.5,children:c?(0,o.createComponentVNode)(2,i.Button,{my:-1,icon:"eject",content:c,onClick:function(){return a(d)}}):(0,o.createComponentVNode)(2,i.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"cog",textAlign:"center",content:"Start Disinfection Cycle",disabled:c.locked,onClick:function(){return a("cook")}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SupermatterMonitor=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(80);t.SupermatterMonitor=function(e,t){var n=(0,r.useBackend)(t);n.act;return 0===n.data.active?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,s)};var l=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Detected Supermatter Shards",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Refresh",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,i.Box,{m:1,children:0===s.supermatters.length?(0,o.createVNode)(1,"h3",null,"No shards detected",16):(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.TableCell,{children:"Area"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Integrity"}),(0,o.createComponentVNode)(2,c.TableCell,{children:"Details"})]}),s.supermatters.map((function(e){return(0,o.createComponentVNode)(2,c.TableRow,{children:[(0,o.createComponentVNode)(2,c.TableCell,{children:e.area_name}),(0,o.createComponentVNode)(2,c.TableCell,{children:[e.integrity,"%"]}),(0,o.createComponentVNode)(2,c.TableCell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"View",onClick:function(){return l("view",{view:e.uid})}})})]},e)}))]})})})})})},s=function(e,t){var n,c,l,s=(0,r.useBackend)(t),d=s.act,u=s.data;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Crystal Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"caret-square-left",content:"Back",onClick:function(){return d("back")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[95,Infinity],average:[80,94],bad:[-Infinity,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,i.Box,{color:(l=u.SM_power,l>300?"bad":l>150?"average":"good"),children:[u.SM_power," MeV/cm3"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{color:(c=u.SM_ambienttemp,c>5e3?"bad":c>4e3?"average":"good"),children:[u.SM_ambienttemp," K"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,i.Box,{color:(n=u.SM_ambientpressure,n>1e4?"bad":n>5e3?"average":"good"),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Gas Composition",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndicateComputerSimple=void 0;var o=n(0),r=n(1),i=n(2),a=(n(64),n(3));t.SyndicateComputerSimple=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,a.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:l.rows.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.title,buttons:(0,o.createComponentVNode)(2,i.Button,{content:e.buttontitle,disabled:e.buttondisabled,tooltip:e.buttontooltip,tooltipPosition:"left",onClick:function(){return c(e.buttonact)}}),children:[e.status,!!e.bullets&&(0,o.createComponentVNode)(2,i.Box,{children:e.bullets.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]},e.title)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SyndieCargoConsole=void 0;var o=n(0),r=n(43),i=n(24),a=n(1),c=n(2),l=n(3),s=(n(64),n(18));t.SyndieCargoConsole=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m)]})})};var d=function(e,t){var n=(0,a.useLocalState)(t,"contentsModal",null),r=n[0],i=n[1],l=(0,a.useLocalState)(t,"contentsModalTitle",null),s=l[0],d=l[1];return null!==r&&null!==s?(0,o.createComponentVNode)(2,c.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{width:"100%",bold:!0,children:(0,o.createVNode)(1,"h1",null,[s,(0,o.createTextVNode)(" contents:")],0)}),(0,o.createComponentVNode)(2,c.Box,{children:r.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:["- ",e]},e)}))}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){i(null),d(null)}})})]}):void 0},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.is_public,s=void 0===l?0:l,d=i.cash,u=i.wait_time,p=i.is_cooldown,m=i.telepads_status,h=i.adminAddCash,f=m,C="",g=0,N="";return"Pads not linked!"===m?(g=0,C="Attempts to link telepads to the console.",N="Link pads"):p?p&&(N="Cooldown...",C="Pads are cooling off...",g=1,f=1!==u?m+" (ETA: "+u+" seconds)":m+" (ETA: "+u+" second)"):(g=0,C="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",N="Teleport"),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Money Available",children:[d,(0,o.createComponentVNode)(2,c.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){return r("withdraw",d)}}),(0,o.createComponentVNode)(2,c.Button,{content:h,tooltip:"Bless the players with da money!",onClick:function(){return r("add_money",d)}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Telepads Status",children:f}),0===s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{content:N,tooltip:C,disabled:g,onClick:function(){return r("teleport")}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Syndicate Black Market Log",onClick:function(){return r("showMessages")}})]})]})})},p=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.categories,p=d.supply_packs,m=(0,a.useSharedState)(t,"category","Emergency"),h=m[0],f=m[1],C=(0,a.useSharedState)(t,"search_text",""),g=C[0],N=C[1],b=(0,a.useLocalState)(t,"contentsModal",null),V=(b[0],b[1]),v=(0,a.useLocalState)(t,"contentsModalTitle",null),x=(v[0],v[1]),y=(0,s.createSearch)(g,(function(e){return e.name})),k=(0,r.flow)([(0,i.filter)((function(e){return e.cat===u.filter((function(e){return e.name===h}))[0].category||g})),g&&(0,i.filter)(y),(0,i.sortBy)((function(e){return e.name.toLowerCase()}))])(p),w="Crate Catalogue";return g?w="Results for '"+g+"':":h&&(w="Browsing "+h),(0,o.createComponentVNode)(2,c.Section,{title:w,buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"190px",options:u.map((function(e){return e.name})),selected:h,onSelected:function(e){return f(e)}}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return N(t)},mb:1}),(0,o.createComponentVNode)(2,c.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:k.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:[e.name," (",e.cost," Credits)"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){return l("order",{crate:e.ref,multiple:0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){return l("order",{crate:e.ref,multiple:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"View Contents",icon:"search",onClick:function(){V(e.contents),x(e.name)}})]})]},e.name)}))})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.requests,s=i.canapprove,d=i.orders;return(0,o.createComponentVNode)(2,c.Section,{title:"Details",children:(0,o.createComponentVNode)(2,c.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Requests"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",pr:1,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){return r("approve",{ordernum:e.ordernum})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Deny",color:"red",onClick:function(){return r("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)}))}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"Confirmed Orders"}),(0,o.createComponentVNode)(2,c.Table,{m:"0.5rem",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,o.createVNode)(1,"b",null,e.orderedby,0)]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TTSSeedsExplorerContent=t.TTSSeedsExplorer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c={0:"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},l={"\u041c\u0443\u0436\u0441\u043a\u043e\u0439":{icon:"mars",color:"blue"},"\u0416\u0435\u043d\u0441\u043a\u0438\u0439":{icon:"venus",color:"purple"},"\u041b\u044e\u0431\u043e\u0439":{icon:"venus-mars",color:"white"}},s=function(e,t,n,r){return void 0===r&&(r=null),e.map((function(e){var a,c=null!=(a=e[r])?a:e;return(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:t.includes(e),content:c,onClick:function(){t.includes(e)?n(t.filter((function(t){var n;return(null!=(n=t[r])?n:t)!==e}))):n([e].concat(t))}},c)}))};t.TTSSeedsExplorer=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.providers,p=d.seeds,m=d.selected_seed,h=d.phrases,f=d.donator_level,C=p.map((function(e){return e.category})).filter((function(e,t,n){return n.indexOf(e)===t})),g=p.map((function(e){return e.gender})).filter((function(e,t,n){return n.indexOf(e)===t})),N=p.map((function(e){return e.donator_level})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return c[e]})),b=(0,r.useLocalState)(t,"selectedProviders",u),V=b[0],v=b[1],x=(0,r.useLocalState)(t,"selectedGenders",g),y=x[0],k=x[1],w=(0,r.useLocalState)(t,"selectedCategories",C),_=w[0],B=w[1],S=(0,r.useLocalState)(t,"selectedDonatorLevels",N),L=S[0],A=S[1],E=(0,r.useLocalState)(t,"selectedPhrase",h[0]),I=E[0],D=E[1],T=(0,r.useLocalState)(t,"searchtext",""),F=T[0],M=T[1],P=s(u,V,v,"name"),O=s(g,y,k),R=s(C,_,B),j=s(N,L,A),U=(0,o.createComponentVNode)(2,i.Dropdown,{options:h,selected:I.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(e){return D(e)}}),z=(0,o.createComponentVNode)(2,i.Input,{placeholder:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435...",fluid:!0,onInput:function(e,t){return M(t)}}),W=p.sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return n>o?1:n0&&m!==e.name?"orange":"white",children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:m===e.name?.5:.25,textAlign:"left",children:e.category}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:m===e.name?"white":l[e.gender].color,textAlign:"left",children:(0,o.createComponentVNode)(2,i.Icon,{mx:1,size:1.2,name:l[e.gender].icon})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:e.donator_level>0&&(0,o.createFragment)([c[e.donator_level],(0,o.createComponentVNode)(2,i.Icon,{ml:1,mr:2,name:"coins"})],0)})]},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b",children:P}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u043b",children:O}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438",children:R}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438",children:j}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:U}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"\u041f\u043e\u0438\u0441\u043a",children:z})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0413\u043e\u043b\u043e\u0441\u0430 ("+W.length+"/"+p.length+")",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Table,{children:H})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.BlockQuote,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0447\u0430\u0441\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,o.createComponentVNode)(2,i.Box,{mt:2,italic:!0,children:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c Discord-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})],4)};t.TTSSeedsExplorerContent=d},function(e,t,n){"use strict";t.__esModule=!0,t.TachyonArrayContent=t.TachyonArray=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TachyonArray=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.records,u=void 0===d?[]:d,p=s.explosion_target,m=s.toxins_tech,h=s.printing;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shift's Target",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Toxins Level",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Administration",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||h,align:"center",onClick:function(){return l("print_logs")}}),(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){return l("delete_logs")}})]})]})}),u.length?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Records"})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.records,l=void 0===c?[]:c;return(0,o.createComponentVNode)(2,i.Section,{title:"Logged Explosions",children:(0,o.createComponentVNode)(2,i.Flex,{children:(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Time"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Epicenter"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Actual Size"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Theoretical Size"})]}),l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.logged_time}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.epicenter}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.actual_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.theoretical_size_message}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return a("delete_record",{index:e.index})}})})]},e.index)}))]})})})})};t.TachyonArrayContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Tank=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,s=c.data;return n=s.has_mask?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,i.Button,{icon:s.connected?"check":"times",content:s.connected?"Internals On":"Internals Off",selected:s.connected,onClick:function(){return l("internals")}})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tank Pressure",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:s.tankPressure/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:s.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Release Pressure",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:s.ReleasePressure===s.minReleasePressure,tooltip:"Min",onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,value:parseFloat(s.releasePressure),width:"65px",unit:"kPa",minValue:s.minReleasePressure,maxValue:s.maxReleasePressure,onChange:function(e,t){return l("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:s.ReleasePressure===s.maxReleasePressure,tooltip:"Max",onClick:function(){return l("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"",disabled:s.ReleasePressure===s.defaultReleasePressure,tooltip:"Reset",onClick:function(){return l("pressure",{pressure:"reset"})}})]}),n]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.o_tanks,d=l.p_tanks;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Oxygen Tank ("+s+")",disabled:0===s,icon:"arrow-circle-down",onClick:function(){return c("oxygen")}})}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Dispense Plasma Tank ("+d+")",disabled:0===d,icon:"arrow-circle-down",onClick:function(){return c("plasma")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsCore=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsCore=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data.ion),p=(0,r.useLocalState)(t,"tabIndex",0),m=p[0],h=p[1];return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[1===u&&(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===m,onClick:function(){return h(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===m,onClick:function(){return h(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===m,onClick:function(){return h(2)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,l);case 1:return(0,o.createComponentVNode)(2,s);case 2:return(0,o.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}(m)]})})};var c=function(){return(0,o.createComponentVNode)(2,i.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.active,s=c.sectors_available,d=c.nttc_toggle_jobs,u=c.nttc_toggle_job_color,p=c.nttc_toggle_name_color,m=c.nttc_toggle_command_bold,h=c.nttc_job_indicator_type,f=c.nttc_setting_language,C=c.network_id;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:l?"On":"Off",selected:l,icon:"power-off",onClick:function(){return a("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Radio Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcements",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"On":"Off",selected:d,icon:"user-tag",onClick:function(){return a("nttc_toggle_jobs")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:u?"On":"Off",selected:u,icon:"clipboard-list",onClick:function(){return a("nttc_toggle_job_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name Departmentalisation",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"user-tag",onClick:function(){return a("nttc_toggle_name_color")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Command Amplification",children:(0,o.createComponentVNode)(2,i.Button,{content:m?"On":"Off",selected:m,icon:"volume-up",onClick:function(){return a("nttc_toggle_command_bold")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Advanced",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Job Announcement Format",children:(0,o.createComponentVNode)(2,i.Button,{content:h||"Unset",selected:h,icon:"pencil-alt",onClick:function(){return a("nttc_job_indicator_type")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Language Conversion",children:(0,o.createComponentVNode)(2,i.Button,{content:f||"Unset",selected:f,icon:"globe",onClick:function(){return a("nttc_setting_language")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:C||"Unset",selected:C,icon:"server",onClick:function(){return a("network_id")}})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){return a("import")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){return a("export")}})]})],4)},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.link_password,s=c.relay_entries;return(0,o.createComponentVNode)(2,i.Section,{title:"Device Linkage",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linkage Password",children:(0,o.createComponentVNode)(2,i.Button,{content:l||"Unset",selected:l,icon:"lock",onClick:function(){return a("change_password")}})})}),(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Unlink"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:1===e.status?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Online"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Offline"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",onClick:function(){return a("unlink",{addr:e.addr})}})})]},e.addr)}))]})]})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.filtered_users;return(0,o.createComponentVNode)(2,i.Section,{title:"User Filtering",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Add User",icon:"user-plus",onClick:function(){return a("add_filter")}}),children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"90%"},children:"User"}),(0,o.createComponentVNode)(2,i.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Remove",icon:"user-times",onClick:function(){return a("remove_filter",{user:e})}})})]},e)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TcommsRelay=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.TcommsRelay=function(e,t){var n=(0,r.useBackend)(t),s=n.act,d=n.data,u=d.linked,p=d.active,m=d.network_id;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Relay Configuration",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Machine Power",children:(0,o.createComponentVNode)(2,i.Button,{content:p?"On":"Off",selected:p,icon:"power-off",onClick:function(){return s("toggle_active")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network ID",children:(0,o.createComponentVNode)(2,i.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){return s("network_id")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Link Status",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"green",children:"Linked"}):(0,o.createComponentVNode)(2,i.Box,{color:"red",children:"Unlinked"})})]})}),1===u?(0,o.createComponentVNode)(2,c):(0,o.createComponentVNode)(2,l)]})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data,l=c.linked_core_id,s=c.linked_core_addr,d=c.hidden_link;return(0,o.createComponentVNode)(2,i.Section,{title:"Link Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Linked Core Address",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hidden Link",children:(0,o.createComponentVNode)(2,i.Button,{content:d?"Yes":"No",icon:d?"eye-slash":"eye",selected:d,onClick:function(){return a("toggle_hidden_link")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unlink",children:(0,o.createComponentVNode)(2,i.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return a("unlink")}})})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.cores;return(0,o.createComponentVNode)(2,i.Section,{title:"Detected Cores",children:(0,o.createComponentVNode)(2,i.Table,{m:"0.5rem",children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network Address"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Network ID"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Sector"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Link"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.addr}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.net_id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.sector}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Link",icon:"link",onClick:function(){return a("link",{addr:e.addr})}})})]},e.addr)}))]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Teleporter=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=n(188);t.Teleporter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,s=n.data,d=s.targetsTeleport?s.targetsTeleport:{},u=s.calibrated,p=s.calibrating,m=s.powerstation,h=s.regime,f=s.teleporterhub,C=s.target,g=s.locked,N=s.accuracy;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(!m||!f)&&(0,o.createComponentVNode)(2,i.Section,{title:"Error",children:[f,!m&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Powerstation not linked "}),m&&!f&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:" Teleporter hub not linked "})]}),m&&f&&(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Regime",children:[(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to another teleport hub. ",color:1===h?"good":null,onClick:function(){return l("setregime",{regime:1})},children:"Gate"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"One-way teleport. ",color:0===h?"good":null,onClick:function(){return l("setregime",{regime:0})},children:"Teleporter"}),(0,o.createComponentVNode)(2,i.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:2===h?"good":null,disabled:!g,onClick:function(){return l("setregime",{regime:2})},children:"GPS"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Teleport target",children:[0===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),1===h&&(0,o.createComponentVNode)(2,i.Dropdown,{width:"220px",selected:C,options:Object.keys(d),color:"None"!==C?"default":"bad",onSelected:function(e){return l("settarget",{x:d[e].x,y:d[e].y,z:d[e].z})}}),2===h&&(0,o.createComponentVNode)(2,i.Box,{children:C})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Calibration",children:["None"!==C&&(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,c.GridColumn,{size:"2",children:p&&(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"In Progress"})||(u||N>=3)&&(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Optimal"})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Sub-Optimal"})}),(0,o.createComponentVNode)(2,c.GridColumn,{size:"3",children:(0,o.createComponentVNode)(2,i.Box,{"class":"ml-1",children:(0,o.createComponentVNode)(2,i.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!(!u&&!p),onClick:function(){return l("calibrate")}})})})]}),"None"===C&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(g&&m&&f&&2===h)&&(0,o.createComponentVNode)(2,i.Section,{title:"GPS",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"row",justify:"space-around",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return l("load")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return l("eject")}})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ThiefKit=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.ThiefKit=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.uses,d=l.possible_uses,u=l.multi_uses,p=l.kits,m=l.choosen_kits;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"\u041d\u0430\u0431\u043e\u0440 \u0413\u0438\u043b\u044c\u0434\u0438\u0438 \u0412\u043e\u0440\u043e\u0432:",children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:[(0,o.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044f \u043a\u043e\u0440\u043e\u0431\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0433\u0438\u043b\u044c\u0434\u0438\u0438 \u0432\u043e\u0440\u043e\u0432.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,"\u041d\u0430\u0431\u043e\u0440 \u0432\u043e\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043d\u0433\u0435\u0440\u0430. \u041d\u0435\u043b\u044c\u0437\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0442\u043e \u0432 \u043d\u0451\u043c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u0448\u044c \u0432\u043d\u0443\u0442\u0440\u044c.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"p",null,(0,o.createVNode)(1,"b",null,"\u041a\u0430\u043a\u043e\u0435 \u0441\u043d\u0430\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442?:",16),2),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u0432:"),(0,o.createComponentVNode)(2,i.Box,{as:"span",color:s<=0?"good":s=d,onClick:function(){return c("randomKit")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:p&&p.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"upload",content:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c",disabled:e.was_taken||s>=d,onClick:function(){return c("takeKit",{item:e.type})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:!e.was_taken,onClick:function(){return c("undoKit",{item:e.type})}})]}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:e.desc})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b:",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:m&&m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",onClick:function(){return c("undoKit",{item:e.type})}}),children:(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:" "})},e.type)}))})}),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",color:sp}),children:(0,o.createComponentVNode)(2,l.Box,{italic:!0,children:(0,a.decodeHtmlEntities)(e.desc)})},(0,a.decodeHtmlEntities)(e.name))}))})]})]})},f=function(e,t){var n=(0,c.useBackend)(t),s=(n.act,n.data.exploitable),u=(0,c.useLocalState)(t,"selectedRecord",s[0]),p=u[0],m=u[1],h=(0,c.useLocalState)(t,"searchText",""),f=h[0],C=h[1],g=function(e,t){void 0===t&&(t="");var n=(0,a.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)}(s,f);return(0,o.createComponentVNode)(2,l.Section,{title:"Exploitable Records",children:(0,o.createComponentVNode)(2,l.Flex,{children:[(0,o.createComponentVNode)(2,d.FlexItem,{basis:20,children:[(0,o.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(e,t){return C(t)}}),(0,o.createComponentVNode)(2,l.Tabs,{vertical:!0,children:g.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:e===p,onClick:function(){return m(e)},children:e.name},e)}))})]}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l.Section,{title:"Name: "+p.name,children:[(0,o.createComponentVNode)(2,l.Box,{children:["Age: ",p.age]}),(0,o.createComponentVNode)(2,l.Box,{children:["Fingerprint: ",p.fingerprint]}),(0,o.createComponentVNode)(2,l.Box,{children:["Rank: ",p.rank]}),(0,o.createComponentVNode)(2,l.Box,{children:["Sex: ",p.sex]}),(0,o.createComponentVNode)(2,l.Box,{children:["Species: ",p.species]})]})})]})})};(0,p.modalRegisterBodyOverride)("become_contractor",(function(e,t){var n,r,i,a=(0,c.useBackend)(t).data,d=(a.contractor||{}).time_left,u=!!(null==a||null==(n=a.contractor)?void 0:n.available),m=!!(null==a||null==(r=a.contractor)?void 0:r.affordable),h=!!(null==a||null==(i=a.contractor)?void 0:i.accepted);return(0,o.createComponentVNode)(2,l.Section,{level:"2",m:"-1rem",pb:"1rem",title:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Icon,{name:"suitcase"}),(0,o.createTextVNode)("\xa0 Contracting Opportunity")],4),children:[(0,o.createComponentVNode)(2,l.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,o.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,o.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer."]}),(0,o.createComponentVNode)(2,l.Button.Confirm,{disabled:!u||h,italic:!u,bold:u,icon:u&&!h&&"check",color:"good",content:h?"Accepted":u?["Accept Offer",(0,o.createComponentVNode)(2,s.Countdown,{timeLeft:d,format:function(e,t){return" ("+t+")"}},"countdown")]:m?"Offer expired":"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){return(0,p.modalAnswer)(t,e.id,1)}})]})}))},function(e,t,n){"use strict";t.__esModule=!0,t.VampireSpecMenu=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VampireSpecMenu=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,i.Divider,{vertical:1}),(0,o.createComponentVNode)(2,u)]})})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Hemomancer",children:[(0,o.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Vampiric claws",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood Barrier",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood tendrils",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Sanguine pool",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Predator senses",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood eruption",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"The blood bringers rite",16),(0,o.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Hemomancer",onClick:function(){return a("hemomancer")}})]})})},l=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Umbrae",children:[(0,o.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Cloak of darkness",16),(0,o.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow anchor",16),(0,o.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you are forced back to the anchor. It will not teleport you between Z levels.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Shadow snare",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensares the victim. This trap is hard to see, but withers in the light.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dark passage",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Extinguish",16),(0,o.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,o.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Eternal darkness",16),(0,o.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. It will also cause nearby creatures to freeze.")],4),(0,o.createVNode)(1,"p",null,"In addition, you also gain permament X-ray vision.",16),(0,o.createComponentVNode)(2,i.Button,{content:"Umbrae",onClick:function(){return a("umbrae")}})]})})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Gargantua",children:[(0,o.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rejuvenate",16),(0,o.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell",16),(0,o.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Seismic stomp",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood rush",16),(0,o.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood swell II",16),(0,o.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Overwhelming force",16),(0,o.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you dont have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Demonic grasp",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Charge",16),(0,o.createTextVNode)(": You gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Gargantua",onClick:function(){return a("gargantua")}})]})})},d=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Dantalion",children:[(0,o.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Enthrall",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall cap",16),(0,o.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thrall commune",16),(0,o.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Subspace swap",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Pacify",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Decoy",16),(0,o.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Rally thralls",16),(0,o.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Blood bond",16),(0,o.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Mass Hysteria",16),(0,o.createTextVNode)(": Casts a powerful illusion that, blinds then make everyone nearby perceive others to looks like random animals.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Dantalion",onClick:function(){return a("dantalion")}})]})})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act;n.data.subclasses;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Bestia",children:[(0,o.createVNode)(1,"h3",null,"Focuses on transformations and trophies harvesting.",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Check Trophies",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to check current trophies amount and all the passive effects they provide.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect",16),(0,o.createTextVNode)(": Unlocked at 150 blood, main source of gaining power, besides blood, allows you to harvest human organs, as a trophies, to passively increase your might.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Dissect Cap",16),(0,o.createTextVNode)(": You can only harvest one organ trophie at a time. This can be increased at 600 blood and at full power to a max of 3 trophies per victim.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Infected Trophy",16),(0,o.createTextVNode)(": Unlocked at 150 blood, allows you to stun enemies from the safe distance and infect them with the deadly Grave Fever.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Lunge",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to rapidly close distance to a victim or escape a dangerous situation.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Mark the Prey",16),(0,o.createTextVNode)(": Unlocked at 250 blood, allows you to mark a victim which drastically reduces their movement speed and forces them to take spontaneous actions.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Metamorphosis - Bats",16),(0,o.createTextVNode)(": Unlocked at 400 blood, allows you to shapeshift into the deadly and vicious space bats swarm.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Anabiosis",16),(0,o.createTextVNode)(": Unlocked at 600 blood, ancient technique which allows you to cure almost any wounds while sleeping in a coffin.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Summon Bats",16),(0,o.createTextVNode)(": Unlocked at 800 blood, allows you to call extraplanar space bats to aid you in combat.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Full Power",16),(0,o.createComponentVNode)(2,i.Divider),(0,o.createVNode)(1,"b",null,"Metamorphosis - Hound",16),(0,o.createTextVNode)(": Allows you to shapeshift into the ultimate form of bluespace entity which took over your soul.")],4),(0,o.createComponentVNode)(2,i.Button,{content:"Bestia",onClick:function(){return a("bestia")}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VampireTrophiesStatus=void 0;var o=n(0),r=n(1),i=n(2),a=n(3),c=function(e){return(Math.round(10*e)/10).toFixed(1)};t.VampireTrophiesStatus=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{theme:"nologo",children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,N)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),c=a.hearts,l=a.lungs,s=a.livers,d=a.kidneys,u=a.eyes,p=a.ears,m=a.trophies_max_gen,h=a.trophies_max_crit,f=a.icon_hearts,C=a.icon_lungs,g=a.icon_livers,N=a.icon_kidneys,b=a.icon_eyes,V=a.icon_ears;return(0,o.createComponentVNode)(2,i.Section,{title:"Trophies",color:"red",textAlign:"center",verticalAlign:"middle",children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",width:"16.6%",children:[(0,o.createComponentVNode)(2,i.Box,{as:"img",src:"data:image/jpeg;base64,"+f,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,textColor:cp;return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,children:l.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Box,{color:(s<=0?"bad":s<=l.max_amount/2&&"average")||"good",children:[s," in stock"]})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,disabled:N,icon:g,content:C,textAlign:"left",onClick:function(){return a("vend",{inum:l.inum})}})})]})};t.Vending=function(e,t){var n,l=(0,r.useBackend)(t),s=l.act,d=l.data,u=d.user,p=d.guestNotice,m=d.userMoney,h=d.chargesMoney,f=d.product_records,C=void 0===f?[]:f,g=d.coin_records,N=void 0===g?[]:g,b=d.hidden_records,V=void 0===b?[]:b,v=d.stock,x=(d.vend_ready,d.coin_name),y=d.inserted_item_name,k=d.panel_open,w=d.speaker,_=d.imagelist;return n=[].concat(C,N),d.extended_inventory&&(n=[].concat(n,V)),n=n.filter((function(e){return!!e})),(0,o.createComponentVNode)(2,a.Window,{title:"Vending Machine",resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,i.Section,{title:"User",children:u&&(0,o.createComponentVNode)(2,i.Box,{children:["Welcome, ",(0,o.createVNode)(1,"b",null,u.name,0),","," ",(0,o.createVNode)(1,"b",null,u.job||"Unemployed",0),"!",(0,o.createVNode)(1,"br"),"Your balance is ",(0,o.createVNode)(1,"b",null,[m,(0,o.createTextVNode)(" credits")],0),"."]})||(0,o.createComponentVNode)(2,i.Box,{color:"light-grey",children:p})}),!!x&&(0,o.createComponentVNode)(2,i.Section,{title:"Coin",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){return s("remove_coin",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:x})}),!!y&&(0,o.createComponentVNode)(2,i.Section,{title:"Item",buttons:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){return s("eject_item",{})}}),children:(0,o.createComponentVNode)(2,i.Box,{children:y})}),!!k&&(0,o.createComponentVNode)(2,i.Section,{title:"Maintenance",children:(0,o.createComponentVNode)(2,i.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){return s("toggle_voice",{})}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Products",children:(0,o.createComponentVNode)(2,i.Table,{children:n.map((function(e){return(0,o.createComponentVNode)(2,c,{product:e,productStock:v[e.name],productImage:_[e.path]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VolumeMixer=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VolumeMixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.channels;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{height:"100%",overflow:"auto",children:l.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.25rem",color:"label",mt:t>0&&"0.5rem",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:0})}})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",mx:"1rem",children:(0,o.createComponentVNode)(2,i.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:e.volume,onChange:function(t,n){return c("volume",{channel:e.num,volume:n})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{width:"24px",color:"transparent",children:(0,o.createComponentVNode)(2,i.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){return c("volume",{channel:e.num,volume:100})}})})})]})})],4,e.num)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.VotePanel=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.VotePanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.remaining,d=l.question,u=l.choices,p=l.user_vote,m=l.counts,h=l.show_counts,f=l.show_cancel;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:d,children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,children:["Time remaining: ",Math.round(s/10),"s"]}),u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:e+(h?" ("+(m[e]||0)+")":""),onClick:function(){return c("vote",{target:e})},selected:e===p})},e)})),!!f&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Cancel",onClick:function(){return c("cancel")}})},"Cancel")]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var o=n(0),r=n(1),i=n(2),a=n(3);t.Wires=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.wires||[],d=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return c("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Pulse",onClick:function(){return c("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,i.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return c("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!d.length&&(0,o.createComponentVNode)(2,i.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Workshop=void 0;var o=n(0),r=n(18),i=n(1),a=n(2),c=n(102),l=n(3);var s=function(e,t,n){return null===e.requirements||!(e.requirements.brass>t)&&!(e.requirements.power>n)};t.Workshop=function(e,t){var n=(0,i.useBackend)(t),r=n.act,s=n.data,p=s.brass_amount,m=s.power_amount,h=s.building,f=s.buildStart,C=s.buildEnd,g=s.worldTime,N=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),b=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");return(0,o.createComponentVNode)(2,l.Window,{theme:"clockwork",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brass",children:[N,(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return r("dispense")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:b})]})})]}),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Flex,{mb:"0.5rem",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar.Countdown,{start:f,current:g,end:C,bold:!0,children:["Building ",h,"\xa0(",(0,o.createComponentVNode)(2,c.Countdown,{current:g,timeLeft:C-g,format:function(e,t){return t.substr(3)}}),")"]})})]})})};var d=function(e,t){var n=(0,i.useLocalState)(t,"search",""),r=(n[0],n[1]),c=(0,i.useLocalState)(t,"sort",""),l=(c[0],c[1],(0,i.useLocalState)(t,"descending",!1)),s=l[0],d=l[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"arrow-down":"arrow-up",height:"19px",tooltip:s?"Descending order":"Ascending order",tooltipPosition:"bottom-left",ml:"0.5rem",onClick:function(){return d(!s)}})})]})})},u=function(e,t){var n=(0,i.useBackend)(t),c=(n.act,n.data),l=c.items,d=(0,i.useLocalState)(t,"search",""),u=d[0],m=(d[1],(0,i.useLocalState)(t,"sort","Alphabetical")),h=(m[0],m[1],(0,i.useLocalState)(t,"descending",!1)),f=h[0],C=(h[1],(0,r.createSearch)(u,(function(e){return e[0]}))),g=!1,N=Object.entries(l).map((function(e,t){var n=Object.entries(e[1]).filter(C).map((function(e){return e[1].affordable=s(e[1],c.brass_amount,c.power_amount),e[1]}));if(0!==n.length)return f&&(n=n.reverse()),g=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{children:g?N:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,d=e.title,u=e.items,p=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:d},p,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+e.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hammer",disabled:!s(e,l.brass_amount,l.power_amount),onClick:function(){return c("make",{cat:d,name:e.name})},children:(0,r.toTitleCase)((0,r.toTitleCase)(e.name))}),(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,r.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,a.Box,{children:"No resources required."})}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}}]); \ No newline at end of file diff --git a/tgui/packages/tgui/webpack.config.js b/tgui/packages/tgui/webpack.config.js index c9ed58e0651..04400d51f84 100644 --- a/tgui/packages/tgui/webpack.config.js +++ b/tgui/packages/tgui/webpack.config.js @@ -6,10 +6,9 @@ const webpack = require('webpack'); const path = require('path'); -const BuildNotifierPlugin = require('webpack-build-notifier'); const ExtractCssChunks = require('extract-css-chunks-webpack-plugin'); -const createStats = verbose => ({ +const createStats = (verbose) => ({ assets: verbose, builtAt: verbose, cached: false, @@ -27,16 +26,16 @@ module.exports = (env = {}, argv) => { mode: argv.mode === 'production' ? 'production' : 'development', context: __dirname, entry: { - tgui: [ - path.resolve(__dirname, './index.js'), - ], + tgui: [path.resolve(__dirname, './index.js')], }, output: { - path: argv.mode === 'production' - ? path.resolve(__dirname, './public') - : path.resolve(__dirname, './public/.tmp'), + path: + argv.mode === 'production' + ? path.resolve(__dirname, './public') + : path.resolve(__dirname, './public/.tmp'), filename: '[name].bundle.js', chunkFilename: '[name].chunk.js', + hashFunction: 'SHA256', }, resolve: { extensions: ['.mjs', '.js', '.jsx'], @@ -51,16 +50,19 @@ module.exports = (env = {}, argv) => { loader: 'babel-loader', options: { presets: [ - ['@babel/preset-env', { - modules: 'commonjs', - useBuiltIns: 'entry', - corejs: '3', - spec: false, - loose: true, - targets: { - ie: '8', + [ + '@babel/preset-env', + { + modules: 'commonjs', + useBuiltIns: 'entry', + corejs: '3', + spec: false, + loose: true, + targets: { + ie: '8', + }, }, - }], + ], ], plugins: [ '@babel/plugin-transform-jscript', @@ -127,10 +129,7 @@ module.exports = (env = {}, argv) => { // Add a bundle analyzer to the plugins array if (argv.analyze) { const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); - config.plugins = [ - ...config.plugins, - new BundleAnalyzerPlugin(), - ]; + config.plugins = [...config.plugins, new BundleAnalyzerPlugin()]; } // Production specific options @@ -144,7 +143,6 @@ module.exports = (env = {}, argv) => { ie8: true, output: { ascii_only: true, - comments: false, }, }, }), @@ -155,11 +153,14 @@ module.exports = (env = {}, argv) => { assetNameRegExp: /\.css$/g, cssProcessor: require('cssnano'), cssProcessorPluginOptions: { - preset: ['default', { - discardComments: { - removeAll: true, + preset: [ + 'default', + { + discardComments: { + removeAll: true, + }, }, - }], + ], }, canPrint: true, }), @@ -168,12 +169,6 @@ module.exports = (env = {}, argv) => { // Development specific options if (argv.mode !== 'production') { - config.plugins = [ - ...config.plugins, - new BuildNotifierPlugin({ - suppressSuccess: true, - }), - ]; if (argv.hot) { config.plugins.push(new webpack.HotModuleReplacementPlugin()); } diff --git a/tgui/yarn.lock b/tgui/yarn.lock index 6c5f160affd..6349be1ef72 100644 --- a/tgui/yarn.lock +++ b/tgui/yarn.lock @@ -2,13 +2,39 @@ # yarn lockfile v1 -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": +"@aashutoshrathi/word-wrap@^1.2.3": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" + integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== + +"@ampproject/remapping@^2.2.0": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" + integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@babel/code-frame@^7.22.13", "@babel/code-frame@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244" + integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA== + dependencies: + "@babel/highlight" "^7.23.4" + chalk "^2.4.2" + +"@babel/code-frame@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== dependencies: "@babel/highlight" "^7.8.3" +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98" + integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== + "@babel/compat-data@^7.8.6", "@babel/compat-data@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.9.0.tgz#04815556fc90b0c174abd2c0c1bb966faa036a6c" @@ -18,6 +44,27 @@ invariant "^2.2.4" semver "^5.5.0" +"@babel/core@^7.23.2": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.5.tgz#6e23f2acbcb77ad283c5ed141f824fd9f70101c7" + integrity sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.5" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helpers" "^7.23.5" + "@babel/parser" "^7.23.5" + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.23.5" + "@babel/types" "^7.23.5" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + "@babel/core@^7.6.2": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.9.0.tgz#ac977b538b77e132ff706f3b8a4dbad09c03c56e" @@ -40,7 +87,26 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/generator@^7.9.0", "@babel/generator@^7.9.5": +"@babel/eslint-parser@^7.22.15": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.23.3.tgz#7bf0db1c53b54da0c8a12627373554a0828479ca" + integrity sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw== + dependencies: + "@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1" + eslint-visitor-keys "^2.1.0" + semver "^6.3.1" + +"@babel/generator@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.5.tgz#17d0a1ea6b62f351d281350a5f80b87a810c4755" + integrity sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA== + dependencies: + "@babel/types" "^7.23.5" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + +"@babel/generator@^7.9.0": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.9.5.tgz#27f0917741acc41e6eaaced6d68f96c3fa9afaf9" integrity sha512-GbNIxVB3ZJe3tLeDm1HSn2AhuD/mVcyLDpgtLXa5tplmWrJdF/elxB56XNqCuD6szyNkDi6wuoKXln3QeBmCHQ== @@ -50,6 +116,13 @@ lodash "^4.17.13" source-map "^0.5.0" +"@babel/helper-annotate-as-pure@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882" + integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== + dependencies: + "@babel/types" "^7.22.5" + "@babel/helper-annotate-as-pure@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz#60bc0bc657f63a0924ff9a4b4a0b24a13cf4deee" @@ -57,6 +130,13 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-builder-binary-assignment-operator-visitor@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz#5426b109cf3ad47b91120f8328d8ab1be8b0b956" + integrity sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw== + dependencies: + "@babel/types" "^7.22.15" + "@babel/helper-builder-binary-assignment-operator-visitor@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz#c84097a427a061ac56a1c30ebf54b7b22d241503" @@ -65,6 +145,17 @@ "@babel/helper-explode-assignable-expression" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.6": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52" + integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw== + dependencies: + "@babel/compat-data" "^7.22.9" + "@babel/helper-validator-option" "^7.22.15" + browserslist "^4.21.9" + lru-cache "^5.1.1" + semver "^6.3.1" + "@babel/helper-compilation-targets@^7.8.7": version "7.8.7" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.8.7.tgz#dac1eea159c0e4bd46e309b5a1b04a66b53c1dde" @@ -76,6 +167,30 @@ levenary "^1.1.1" semver "^5.5.0" +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.22.15": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.5.tgz#2a8792357008ae9ce8c0f2b78b9f646ac96b314b" + integrity sha512-QELlRWxSpgdwdJzSJn4WAhKC+hvw/AtHbbrIoncKHkhKKR/luAlKkgBDcri1EzWAo8f8VvYVryEHN4tax/V67A== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-member-expression-to-functions" "^7.23.0" + "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-replace-supers" "^7.22.20" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + semver "^6.3.1" + +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.15", "@babel/helper-create-regexp-features-plugin@^7.22.5": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz#5ee90093914ea09639b01c711db0d6775e558be1" + integrity sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + regexpu-core "^5.3.1" + semver "^6.3.1" + "@babel/helper-create-regexp-features-plugin@^7.8.3", "@babel/helper-create-regexp-features-plugin@^7.8.8": version "7.8.8" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz#5d84180b588f560b7864efaeea89243e58312087" @@ -94,6 +209,22 @@ "@babel/types" "^7.8.3" lodash "^4.17.13" +"@babel/helper-define-polyfill-provider@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz#a71c10f7146d809f4a256c373f462d9bba8cf6ba" + integrity sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug== + dependencies: + "@babel/helper-compilation-targets" "^7.22.6" + "@babel/helper-plugin-utils" "^7.22.5" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + +"@babel/helper-environment-visitor@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" + integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== + "@babel/helper-explode-assignable-expression@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz#a728dc5b4e89e30fc2dfc7d04fa28a930653f982" @@ -102,6 +233,14 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-function-name@^7.22.5", "@babel/helper-function-name@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" + integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== + dependencies: + "@babel/template" "^7.22.15" + "@babel/types" "^7.23.0" + "@babel/helper-function-name@^7.8.3", "@babel/helper-function-name@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz#2b53820d35275120e1874a82e5aabe1376920a5c" @@ -118,6 +257,13 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-hoist-variables@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" + integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== + dependencies: + "@babel/types" "^7.22.5" + "@babel/helper-hoist-variables@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz#1dbe9b6b55d78c9b4183fc8cdc6e30ceb83b7134" @@ -125,6 +271,13 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-member-expression-to-functions@^7.22.15", "@babel/helper-member-expression-to-functions@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366" + integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA== + dependencies: + "@babel/types" "^7.23.0" + "@babel/helper-member-expression-to-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz#659b710498ea6c1d9907e0c73f206eee7dadc24c" @@ -132,6 +285,13 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-module-imports@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz#16146307acdc40cc00c3b2c647713076464bdbf0" + integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w== + dependencies: + "@babel/types" "^7.22.15" + "@babel/helper-module-imports@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz#7fe39589b39c016331b6b8c3f441e8f0b1419498" @@ -139,6 +299,17 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-module-transforms@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1" + integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.20" + "@babel/helper-module-transforms@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz#43b34dfe15961918707d247327431388e9fe96e5" @@ -152,6 +323,13 @@ "@babel/types" "^7.9.0" lodash "^4.17.13" +"@babel/helper-optimise-call-expression@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e" + integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw== + dependencies: + "@babel/types" "^7.22.5" + "@babel/helper-optimise-call-expression@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz#7ed071813d09c75298ef4f208956006b6111ecb9" @@ -164,6 +342,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670" integrity sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ== +"@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" + integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== + "@babel/helper-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.8.3.tgz#139772607d51b93f23effe72105b319d2a4c6965" @@ -171,6 +354,15 @@ dependencies: lodash "^4.17.13" +"@babel/helper-remap-async-to-generator@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz#7b68e1cb4fa964d2996fd063723fb48eca8498e0" + integrity sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-wrap-function" "^7.22.20" + "@babel/helper-remap-async-to-generator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz#273c600d8b9bf5006142c1e35887d555c12edd86" @@ -182,6 +374,15 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-replace-supers@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793" + integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-member-expression-to-functions" "^7.22.15" + "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-replace-supers@^7.8.3", "@babel/helper-replace-supers@^7.8.6": version "7.8.6" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz#5ada744fd5ad73203bf1d67459a27dcba67effc8" @@ -192,6 +393,13 @@ "@babel/traverse" "^7.8.6" "@babel/types" "^7.8.6" +"@babel/helper-simple-access@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz#4938357dc7d782b80ed6dbb03a0fba3d22b1d5de" + integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w== + dependencies: + "@babel/types" "^7.22.5" + "@babel/helper-simple-access@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz#7f8109928b4dab4654076986af575231deb639ae" @@ -200,6 +408,20 @@ "@babel/template" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-skip-transparent-expression-wrappers@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847" + integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-split-export-declaration@^7.22.6": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" + integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== + dependencies: + "@babel/types" "^7.22.5" + "@babel/helper-split-export-declaration@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9" @@ -207,11 +429,35 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-string-parser@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83" + integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ== + +"@babel/helper-validator-identifier@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" + integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== + "@babel/helper-validator-identifier@^7.9.0", "@babel/helper-validator-identifier@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80" integrity sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g== +"@babel/helper-validator-option@^7.22.15", "@babel/helper-validator-option@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" + integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== + +"@babel/helper-wrap-function@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz#15352b0b9bfb10fc9c76f79f6342c00e3411a569" + integrity sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw== + dependencies: + "@babel/helper-function-name" "^7.22.5" + "@babel/template" "^7.22.15" + "@babel/types" "^7.22.19" + "@babel/helper-wrap-function@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz#9dbdb2bb55ef14aaa01fe8c99b629bd5352d8610" @@ -222,6 +468,15 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helpers@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.5.tgz#52f522840df8f1a848d06ea6a79b79eefa72401e" + integrity sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg== + dependencies: + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.23.5" + "@babel/types" "^7.23.5" + "@babel/helpers@^7.9.0": version "7.9.2" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.9.2.tgz#b42a81a811f1e7313b88cba8adc66b3d9ae6c09f" @@ -231,6 +486,15 @@ "@babel/traverse" "^7.9.0" "@babel/types" "^7.9.0" +"@babel/highlight@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b" + integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A== + dependencies: + "@babel/helper-validator-identifier" "^7.22.20" + chalk "^2.4.2" + js-tokens "^4.0.0" + "@babel/highlight@^7.8.3": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.9.0.tgz#4e9b45ccb82b79607271b2979ad82c7b68163079" @@ -240,11 +504,40 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.7.0", "@babel/parser@^7.8.6", "@babel/parser@^7.9.0": +"@babel/parser@^7.22.15", "@babel/parser@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.5.tgz#37dee97c4752af148e1d38c34b856b2507660563" + integrity sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ== + +"@babel/parser@^7.8.6", "@babel/parser@^7.9.0": version "7.9.4" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.4.tgz#68a35e6b0319bbc014465be43828300113f2f2e8" integrity sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA== +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz#5cd1c87ba9380d0afb78469292c954fee5d2411a" + integrity sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz#f6652bb16b94f8f9c20c50941e16e9756898dc5d" + integrity sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-transform-optional-chaining" "^7.23.3" + +"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz#20c60d4639d18f7da8602548512e9d3a4c8d7098" + integrity sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-proposal-async-generator-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz#bad329c670b382589721b27540c7d288601c6e6f" @@ -254,6 +547,14 @@ "@babel/helper-remap-async-to-generator" "^7.8.3" "@babel/plugin-syntax-async-generators" "^7.8.0" +"@babel/plugin-proposal-class-properties@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" + integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-proposal-dynamic-import@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz#38c4fe555744826e97e2ae930b0fb4cc07e66054" @@ -311,6 +612,11 @@ "@babel/helper-plugin-utils" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.0" +"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2": + version "7.21.0-placeholder-for-preset-env.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703" + integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== + "@babel/plugin-proposal-unicode-property-regex@^7.4.4", "@babel/plugin-proposal-unicode-property-regex@^7.8.3": version "7.8.8" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz#ee3a95e90cdc04fe8cd92ec3279fa017d68a0d1d" @@ -319,21 +625,63 @@ "@babel/helper-create-regexp-features-plugin" "^7.8.8" "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-async-generators@^7.8.0": +"@babel/plugin-syntax-async-generators@^7.8.0", "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-dynamic-import@^7.8.0": +"@babel/plugin-syntax-class-properties@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + +"@babel/plugin-syntax-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-json-strings@^7.8.0": +"@babel/plugin-syntax-export-namespace-from@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" + integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-syntax-import-assertions@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz#9c05a7f592982aff1a2768260ad84bcd3f0c77fc" + integrity sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-syntax-import-attributes@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz#992aee922cf04512461d7dae3ff6951b90a2dc06" + integrity sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-syntax-import-meta@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.0", "@babel/plugin-syntax-json-strings@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== @@ -347,13 +695,34 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0": +"@babel/plugin-syntax-jsx@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz#8f2e4f8a9b5f9aa16067e142c1ac9cd9f810f473" + integrity sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-numeric-separator@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-numeric-separator@^7.8.0", "@babel/plugin-syntax-numeric-separator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz#0e3fb63e09bea1b11e96467271c8308007e7c41f" @@ -361,27 +730,41 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-object-rest-spread@^7.8.0": +"@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-catch-binding@^7.8.0": +"@babel/plugin-syntax-optional-catch-binding@^7.8.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-chaining@^7.8.0": +"@babel/plugin-syntax-optional-chaining@^7.8.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-top-level-await@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-top-level-await@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz#3acdece695e6b13aaf57fc291d1a800950c71391" @@ -389,6 +772,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-syntax-unicode-sets-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" + integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-arrow-functions@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz#94c6dcfd731af90f27a79509f9ab7fb2120fc38b" + integrity sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-arrow-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz#82776c2ed0cd9e1a49956daeb896024c9473b8b6" @@ -396,6 +794,25 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-async-generator-functions@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz#93ac8e3531f347fba519b4703f9ff2a75c6ae27a" + integrity sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-remap-async-to-generator" "^7.22.20" + "@babel/plugin-syntax-async-generators" "^7.8.4" + +"@babel/plugin-transform-async-to-generator@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz#d1f513c7a8a506d43f47df2bf25f9254b0b051fa" + integrity sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw== + dependencies: + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-remap-async-to-generator" "^7.22.20" + "@babel/plugin-transform-async-to-generator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz#4308fad0d9409d71eafb9b1a6ee35f9d64b64086" @@ -405,6 +822,13 @@ "@babel/helper-plugin-utils" "^7.8.3" "@babel/helper-remap-async-to-generator" "^7.8.3" +"@babel/plugin-transform-block-scoped-functions@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz#fe1177d715fb569663095e04f3598525d98e8c77" + integrity sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-block-scoped-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz#437eec5b799b5852072084b3ae5ef66e8349e8a3" @@ -412,6 +836,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-block-scoping@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz#b2d38589531c6c80fbe25e6b58e763622d2d3cf5" + integrity sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-block-scoping@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz#97d35dab66857a437c166358b91d09050c868f3a" @@ -420,6 +851,38 @@ "@babel/helper-plugin-utils" "^7.8.3" lodash "^4.17.13" +"@babel/plugin-transform-class-properties@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz#35c377db11ca92a785a718b6aa4e3ed1eb65dc48" + integrity sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-class-static-block@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz#2a202c8787a8964dd11dfcedf994d36bfc844ab5" + integrity sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + +"@babel/plugin-transform-classes@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz#e7a75f815e0c534cc4c9a39c56636c84fc0d64f2" + integrity sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-replace-supers" "^7.22.20" + "@babel/helper-split-export-declaration" "^7.22.6" + globals "^11.1.0" + "@babel/plugin-transform-classes@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.5.tgz#800597ddb8aefc2c293ed27459c1fcc935a26c2c" @@ -434,6 +897,14 @@ "@babel/helper-split-export-declaration" "^7.8.3" globals "^11.1.0" +"@babel/plugin-transform-computed-properties@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz#652e69561fcc9d2b50ba4f7ac7f60dcf65e86474" + integrity sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/template" "^7.22.15" + "@babel/plugin-transform-computed-properties@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz#96d0d28b7f7ce4eb5b120bb2e0e943343c86f81b" @@ -441,6 +912,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-destructuring@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz#8c9ee68228b12ae3dff986e56ed1ba4f3c446311" + integrity sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-destructuring@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.9.5.tgz#72c97cf5f38604aea3abf3b935b0e17b1db76a50" @@ -448,6 +926,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-dotall-regex@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz#3f7af6054882ede89c378d0cf889b854a993da50" + integrity sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-dotall-regex@^7.4.4", "@babel/plugin-transform-dotall-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz#c3c6ec5ee6125c6993c5cbca20dc8621a9ea7a6e" @@ -456,6 +942,13 @@ "@babel/helper-create-regexp-features-plugin" "^7.8.3" "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-duplicate-keys@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz#664706ca0a5dfe8d066537f99032fc1dc8b720ce" + integrity sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-duplicate-keys@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz#8d12df309aa537f272899c565ea1768e286e21f1" @@ -463,6 +956,22 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-dynamic-import@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz#c7629e7254011ac3630d47d7f34ddd40ca535143" + integrity sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + +"@babel/plugin-transform-exponentiation-operator@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz#ea0d978f6b9232ba4722f3dbecdd18f450babd18" + integrity sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-exponentiation-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz#581a6d7f56970e06bf51560cd64f5e947b70d7b7" @@ -471,6 +980,21 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.8.3" "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-export-namespace-from@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz#084c7b25e9a5c8271e987a08cf85807b80283191" + integrity sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + +"@babel/plugin-transform-for-of@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz#afe115ff0fbce735e02868d41489093c63e15559" + integrity sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-for-of@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz#0f260e27d3e29cd1bb3128da5e76c761aa6c108e" @@ -478,6 +1002,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-function-name@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz#8f424fcd862bf84cb9a1a6b42bc2f47ed630f8dc" + integrity sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw== + dependencies: + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-function-name@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz#279373cb27322aaad67c2683e776dfc47196ed8b" @@ -493,6 +1026,28 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-jscript@^7.22.5": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-jscript/-/plugin-transform-jscript-7.23.3.tgz#a5fa3b1678d6fab049f8c18162b72145d35633f6" + integrity sha512-hjF2jWkJ0HL2g6DUyWvlNRSYrqKLp9NKwdgd0XY2wi1qHl++bKBjXLv+HqulcDt/SFhfkIY7OjX0Y/YZ+VPVbw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-json-strings@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz#a871d9b6bd171976efad2e43e694c961ffa3714d" + integrity sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-json-strings" "^7.8.3" + +"@babel/plugin-transform-literals@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz#8214665f00506ead73de157eba233e7381f3beb4" + integrity sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz#aef239823d91994ec7b68e55193525d76dbd5dc1" @@ -500,6 +1055,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-logical-assignment-operators@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz#e599f82c51d55fac725f62ce55d3a0886279ecb5" + integrity sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + +"@babel/plugin-transform-member-expression-literals@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz#e37b3f0502289f477ac0e776b05a833d853cabcc" + integrity sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-member-expression-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz#963fed4b620ac7cbf6029c755424029fa3a40410" @@ -507,6 +1077,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-modules-amd@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz#e19b55436a1416829df0a1afc495deedfae17f7d" + integrity sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw== + dependencies: + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-modules-amd@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.0.tgz#19755ee721912cf5bb04c07d50280af3484efef4" @@ -516,6 +1094,15 @@ "@babel/helper-plugin-utils" "^7.8.3" babel-plugin-dynamic-import-node "^2.3.0" +"@babel/plugin-transform-modules-commonjs@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz#661ae831b9577e52be57dd8356b734f9700b53b4" + integrity sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA== + dependencies: + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-simple-access" "^7.22.5" + "@babel/plugin-transform-modules-commonjs@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.0.tgz#e3e72f4cbc9b4a260e30be0ea59bdf5a39748940" @@ -526,6 +1113,16 @@ "@babel/helper-simple-access" "^7.8.3" babel-plugin-dynamic-import-node "^2.3.0" +"@babel/plugin-transform-modules-systemjs@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz#fa7e62248931cb15b9404f8052581c302dd9de81" + integrity sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ== + dependencies: + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" + "@babel/plugin-transform-modules-systemjs@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.9.0.tgz#e9fd46a296fc91e009b64e07ddaa86d6f0edeb90" @@ -536,6 +1133,14 @@ "@babel/helper-plugin-utils" "^7.8.3" babel-plugin-dynamic-import-node "^2.3.0" +"@babel/plugin-transform-modules-umd@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz#5d4395fccd071dfefe6585a4411aa7d6b7d769e9" + integrity sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg== + dependencies: + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-modules-umd@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz#e909acae276fec280f9b821a5f38e1f08b480697" @@ -544,6 +1149,14 @@ "@babel/helper-module-transforms" "^7.9.0" "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-named-capturing-groups-regex@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz#67fe18ee8ce02d57c855185e27e3dc959b2e991f" + integrity sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.22.5" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-named-capturing-groups-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz#a2a72bffa202ac0e2d0506afd0939c5ecbc48c6c" @@ -551,6 +1164,13 @@ dependencies: "@babel/helper-create-regexp-features-plugin" "^7.8.3" +"@babel/plugin-transform-new-target@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz#5491bb78ed6ac87e990957cea367eab781c4d980" + integrity sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-new-target@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz#60cc2ae66d85c95ab540eb34babb6434d4c70c43" @@ -558,6 +1178,41 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-nullish-coalescing-operator@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz#45556aad123fc6e52189ea749e33ce090637346e" + integrity sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + +"@babel/plugin-transform-numeric-separator@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz#03d08e3691e405804ecdd19dd278a40cca531f29" + integrity sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + +"@babel/plugin-transform-object-rest-spread@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz#2b9c2d26bf62710460bdc0d1730d4f1048361b83" + integrity sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g== + dependencies: + "@babel/compat-data" "^7.23.3" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.23.3" + +"@babel/plugin-transform-object-super@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz#81fdb636dcb306dd2e4e8fd80db5b2362ed2ebcd" + integrity sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-replace-supers" "^7.22.20" + "@babel/plugin-transform-object-super@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz#ebb6a1e7a86ffa96858bd6ac0102d65944261725" @@ -566,6 +1221,30 @@ "@babel/helper-plugin-utils" "^7.8.3" "@babel/helper-replace-supers" "^7.8.3" +"@babel/plugin-transform-optional-catch-binding@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz#318066de6dacce7d92fa244ae475aa8d91778017" + integrity sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + +"@babel/plugin-transform-optional-chaining@^7.23.3", "@babel/plugin-transform-optional-chaining@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz#6acf61203bdfc4de9d4e52e64490aeb3e52bd017" + integrity sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + +"@babel/plugin-transform-parameters@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz#83ef5d1baf4b1072fa6e54b2b0999a7b2527e2af" + integrity sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-parameters@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.5.tgz#173b265746f5e15b2afe527eeda65b73623a0795" @@ -574,6 +1253,31 @@ "@babel/helper-get-function-arity" "^7.8.3" "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-private-methods@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz#b2d7a3c97e278bfe59137a978d53b2c2e038c0e4" + integrity sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-private-property-in-object@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz#3ec711d05d6608fd173d9b8de39872d8dbf68bf5" + integrity sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-create-class-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + +"@babel/plugin-transform-property-literals@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz#54518f14ac4755d22b92162e4a852d308a560875" + integrity sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-property-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz#33194300d8539c1ed28c62ad5087ba3807b98263" @@ -581,6 +1285,47 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-react-display-name@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.23.3.tgz#70529f034dd1e561045ad3c8152a267f0d7b6200" + integrity sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-react-jsx-development@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.22.5.tgz#e716b6edbef972a92165cd69d92f1255f7e73e87" + integrity sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A== + dependencies: + "@babel/plugin-transform-react-jsx" "^7.22.5" + +"@babel/plugin-transform-react-jsx@^7.22.15", "@babel/plugin-transform-react-jsx@^7.22.5": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz#393f99185110cea87184ea47bcb4a7b0c2e39312" + integrity sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-jsx" "^7.23.3" + "@babel/types" "^7.23.4" + +"@babel/plugin-transform-react-pure-annotations@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.23.3.tgz#fabedbdb8ee40edf5da96f3ecfc6958e3783b93c" + integrity sha512-qMFdSS+TUhB7Q/3HVPnEdYJDQIk57jkntAwSuz9xfSE4n+3I+vHYCli3HoHawN1Z3RfCz/y1zXA/JXjG6cVImQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-regenerator@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz#141afd4a2057298602069fce7f2dc5173e6c561c" + integrity sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + regenerator-transform "^0.15.2" + "@babel/plugin-transform-regenerator@^7.8.7": version "7.8.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz#5e46a0dca2bee1ad8285eb0527e6abc9c37672f8" @@ -588,6 +1333,13 @@ dependencies: regenerator-transform "^0.14.2" +"@babel/plugin-transform-reserved-words@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz#4130dcee12bd3dd5705c587947eb715da12efac8" + integrity sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-reserved-words@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz#9a0635ac4e665d29b162837dd3cc50745dfdf1f5" @@ -595,6 +1347,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-shorthand-properties@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz#97d82a39b0e0c24f8a981568a8ed851745f59210" + integrity sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-shorthand-properties@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz#28545216e023a832d4d3a1185ed492bcfeac08c8" @@ -602,6 +1361,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-spread@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz#41d17aacb12bde55168403c6f2d6bdca563d362c" + integrity sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-transform-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz#9c8ffe8170fdfb88b114ecb920b82fb6e95fe5e8" @@ -609,6 +1376,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-sticky-regex@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz#dec45588ab4a723cb579c609b294a3d1bd22ff04" + integrity sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-sticky-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz#be7a1290f81dae767475452199e1f76d6175b100" @@ -617,6 +1391,13 @@ "@babel/helper-plugin-utils" "^7.8.3" "@babel/helper-regex" "^7.8.3" +"@babel/plugin-transform-template-literals@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz#5f0f028eb14e50b5d0f76be57f90045757539d07" + integrity sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-template-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz#7bfa4732b455ea6a43130adc0ba767ec0e402a80" @@ -625,6 +1406,13 @@ "@babel/helper-annotate-as-pure" "^7.8.3" "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-typeof-symbol@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz#9dfab97acc87495c0c449014eb9c547d8966bca4" + integrity sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-typeof-symbol@^7.8.4": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz#ede4062315ce0aaf8a657a920858f1a2f35fc412" @@ -632,6 +1420,29 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-unicode-escapes@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz#1f66d16cab01fab98d784867d24f70c1ca65b925" + integrity sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-unicode-property-regex@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz#19e234129e5ffa7205010feec0d94c251083d7ad" + integrity sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-transform-unicode-regex@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz#26897708d8f42654ca4ce1b73e96140fbad879dc" + integrity sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-transform-unicode-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz#0cef36e3ba73e5c57273effb182f46b91a1ecaad" @@ -640,6 +1451,100 @@ "@babel/helper-create-regexp-features-plugin" "^7.8.3" "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-transform-unicode-sets-regex@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz#4fb6f0a719c2c5859d11f6b55a050cc987f3799e" + integrity sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/preset-env@^7.23.2": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.5.tgz#350a3aedfa9f119ad045b068886457e895ba0ca1" + integrity sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A== + dependencies: + "@babel/compat-data" "^7.23.5" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-validator-option" "^7.23.5" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.23.3" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.23.3" + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.23.3" + "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-syntax-import-assertions" "^7.23.3" + "@babel/plugin-syntax-import-attributes" "^7.23.3" + "@babel/plugin-syntax-import-meta" "^7.10.4" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" + "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" + "@babel/plugin-transform-arrow-functions" "^7.23.3" + "@babel/plugin-transform-async-generator-functions" "^7.23.4" + "@babel/plugin-transform-async-to-generator" "^7.23.3" + "@babel/plugin-transform-block-scoped-functions" "^7.23.3" + "@babel/plugin-transform-block-scoping" "^7.23.4" + "@babel/plugin-transform-class-properties" "^7.23.3" + "@babel/plugin-transform-class-static-block" "^7.23.4" + "@babel/plugin-transform-classes" "^7.23.5" + "@babel/plugin-transform-computed-properties" "^7.23.3" + "@babel/plugin-transform-destructuring" "^7.23.3" + "@babel/plugin-transform-dotall-regex" "^7.23.3" + "@babel/plugin-transform-duplicate-keys" "^7.23.3" + "@babel/plugin-transform-dynamic-import" "^7.23.4" + "@babel/plugin-transform-exponentiation-operator" "^7.23.3" + "@babel/plugin-transform-export-namespace-from" "^7.23.4" + "@babel/plugin-transform-for-of" "^7.23.3" + "@babel/plugin-transform-function-name" "^7.23.3" + "@babel/plugin-transform-json-strings" "^7.23.4" + "@babel/plugin-transform-literals" "^7.23.3" + "@babel/plugin-transform-logical-assignment-operators" "^7.23.4" + "@babel/plugin-transform-member-expression-literals" "^7.23.3" + "@babel/plugin-transform-modules-amd" "^7.23.3" + "@babel/plugin-transform-modules-commonjs" "^7.23.3" + "@babel/plugin-transform-modules-systemjs" "^7.23.3" + "@babel/plugin-transform-modules-umd" "^7.23.3" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" + "@babel/plugin-transform-new-target" "^7.23.3" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.23.4" + "@babel/plugin-transform-numeric-separator" "^7.23.4" + "@babel/plugin-transform-object-rest-spread" "^7.23.4" + "@babel/plugin-transform-object-super" "^7.23.3" + "@babel/plugin-transform-optional-catch-binding" "^7.23.4" + "@babel/plugin-transform-optional-chaining" "^7.23.4" + "@babel/plugin-transform-parameters" "^7.23.3" + "@babel/plugin-transform-private-methods" "^7.23.3" + "@babel/plugin-transform-private-property-in-object" "^7.23.4" + "@babel/plugin-transform-property-literals" "^7.23.3" + "@babel/plugin-transform-regenerator" "^7.23.3" + "@babel/plugin-transform-reserved-words" "^7.23.3" + "@babel/plugin-transform-shorthand-properties" "^7.23.3" + "@babel/plugin-transform-spread" "^7.23.3" + "@babel/plugin-transform-sticky-regex" "^7.23.3" + "@babel/plugin-transform-template-literals" "^7.23.3" + "@babel/plugin-transform-typeof-symbol" "^7.23.3" + "@babel/plugin-transform-unicode-escapes" "^7.23.3" + "@babel/plugin-transform-unicode-property-regex" "^7.23.3" + "@babel/plugin-transform-unicode-regex" "^7.23.3" + "@babel/plugin-transform-unicode-sets-regex" "^7.23.3" + "@babel/preset-modules" "0.1.6-no-external-plugins" + babel-plugin-polyfill-corejs2 "^0.4.6" + babel-plugin-polyfill-corejs3 "^0.8.5" + babel-plugin-polyfill-regenerator "^0.5.3" + core-js-compat "^3.31.0" + semver "^6.3.1" + "@babel/preset-env@^7.6.2": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.9.5.tgz#8ddc76039bc45b774b19e2fc548f6807d8a8919f" @@ -706,6 +1611,15 @@ levenary "^1.1.1" semver "^5.5.0" +"@babel/preset-modules@0.1.6-no-external-plugins": + version "0.1.6-no-external-plugins" + resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a" + integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/types" "^7.4.4" + esutils "^2.0.2" + "@babel/preset-modules@^0.1.3": version "0.1.3" resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.3.tgz#13242b53b5ef8c883c3cf7dddd55b36ce80fbc72" @@ -717,13 +1631,22 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/runtime-corejs3@^7.8.3": - version "7.9.2" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.9.2.tgz#26fe4aa77e9f1ecef9b776559bbb8e84d34284b7" - integrity sha512-HHxmgxbIzOfFlZ+tdeRKtaxWOMUoCG5Mu3wKeUmOxjYrwb3AAHgnmtCUbPPK11/raIWLIBK250t8E2BPO0p7jA== +"@babel/preset-react@^7.22.15": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.23.3.tgz#f73ca07e7590f977db07eb54dbe46538cc015709" + integrity sha512-tbkHOS9axH6Ysf2OUEqoSZ6T3Fa2SrNH6WTWSPBboxKzdxNc9qOICeLXkNG0ZEwbQ1HY8liwOce4aN/Ceyuq6w== dependencies: - core-js-pure "^3.0.0" - regenerator-runtime "^0.13.4" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-validator-option" "^7.22.15" + "@babel/plugin-transform-react-display-name" "^7.23.3" + "@babel/plugin-transform-react-jsx" "^7.22.15" + "@babel/plugin-transform-react-jsx-development" "^7.22.5" + "@babel/plugin-transform-react-pure-annotations" "^7.23.3" + +"@babel/regjsgen@^0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" + integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== "@babel/runtime@^7.8.4": version "7.9.2" @@ -732,6 +1655,15 @@ dependencies: regenerator-runtime "^0.13.4" +"@babel/template@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" + integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== + dependencies: + "@babel/code-frame" "^7.22.13" + "@babel/parser" "^7.22.15" + "@babel/types" "^7.22.15" + "@babel/template@^7.8.3", "@babel/template@^7.8.6": version "7.8.6" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.6.tgz#86b22af15f828dfb086474f964dcc3e39c43ce2b" @@ -741,22 +1673,23 @@ "@babel/parser" "^7.8.6" "@babel/types" "^7.8.6" -"@babel/traverse@^7.7.0", "@babel/traverse@^7.8.3", "@babel/traverse@^7.8.6", "@babel/traverse@^7.9.0": - version "7.9.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.5.tgz#6e7c56b44e2ac7011a948c21e283ddd9d9db97a2" - integrity sha512-c4gH3jsvSuGUezlP6rzSJ6jf8fYjLj3hsMZRx/nX0h+fmHN0w+ekubRrHPqnMec0meycA2nwCsJ7dC8IPem2FQ== - dependencies: - "@babel/code-frame" "^7.8.3" - "@babel/generator" "^7.9.5" - "@babel/helper-function-name" "^7.9.5" - "@babel/helper-split-export-declaration" "^7.8.3" - "@babel/parser" "^7.9.0" - "@babel/types" "^7.9.5" +"@babel/traverse@^7.23.5", "@babel/traverse@^7.8.3", "@babel/traverse@^7.8.6", "@babel/traverse@^7.9.0": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.5.tgz#f546bf9aba9ef2b042c0e00d245990c15508e7ec" + integrity sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w== + dependencies: + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.5" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.23.5" + "@babel/types" "^7.23.5" debug "^4.1.0" globals "^11.1.0" - lodash "^4.17.13" -"@babel/types@^7", "@babel/types@^7.4.4", "@babel/types@^7.7.0", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5": +"@babel/types@^7", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.5.tgz#89231f82915a8a566a703b3b20133f73da6b9444" integrity sha512-XjnvNqenk818r5zMaba+sLQjnbda31UfUURv3ei0qPQw4u+j2jMyJ5b11y8ZHYTRSI3NnInQkkkRT4fLqqPdHg== @@ -765,6 +1698,138 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.4", "@babel/types@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.5.tgz#48d730a00c95109fa4393352705954d74fb5b602" + integrity sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w== + dependencies: + "@babel/helper-string-parser" "^7.23.4" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + +"@eslint-community/eslint-utils@^4.2.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.6.1": + version "4.10.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== + +"@eslint/eslintrc@^2.1.3": + version "2.1.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.3.tgz#797470a75fe0fbd5a53350ee715e85e87baff22d" + integrity sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + +"@eslint/js@8.54.0": + version "8.54.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.54.0.tgz#4fab9a2ff7860082c304f750e94acd644cf984cf" + integrity sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ== + +"@humanwhocodes/config-array@^0.11.13": + version "0.11.13" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297" + integrity sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ== + dependencies: + "@humanwhocodes/object-schema" "^2.0.1" + debug "^4.1.1" + minimatch "^3.0.5" + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044" + integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw== + +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" + integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + +"@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.20" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz#72e45707cf240fa6b081d0366f8265b0cd10197f" + integrity sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": + version "5.1.1-v1" + resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" + integrity sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg== + dependencies: + eslint-scope "5.1.1" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@pkgr/utils@^2.3.1": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@pkgr/utils/-/utils-2.4.2.tgz#9e638bbe9a6a6f165580dc943f138fd3309a2cbc" + integrity sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw== + dependencies: + cross-spawn "^7.0.3" + fast-glob "^3.3.0" + is-glob "^4.0.3" + open "^9.1.0" + picocolors "^1.0.0" + tslib "^2.6.0" + "@types/color-name@^1.1.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" @@ -775,6 +1840,11 @@ resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8" integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw== +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== + "@webassemblyjs/ast@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964" @@ -938,10 +2008,10 @@ accepts@~1.3.8: mime-types "~2.1.34" negotiator "0.6.3" -acorn-jsx@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe" - integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ== +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== acorn-walk@^7.1.1: version "7.1.1" @@ -958,6 +2028,11 @@ acorn@^7.1.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.1.tgz#e35668de0b402f359de515c5482a1ab9f89a69bf" integrity sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg== +acorn@^8.9.0: + version "8.11.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" + integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== + aggregate-error@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz#db2fe7246e536f40d9b5442a39e117d7dd6a24e0" @@ -976,7 +2051,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== -ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.0: +ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.0, ajv@^6.12.4: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -991,19 +2066,12 @@ alphanum-sort@^1.0.0: resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= -ansi-escapes@^4.2.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" - integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA== - dependencies: - type-fest "^0.11.0" - ansi-regex@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== -ansi-regex@^5.0.0: +ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== @@ -1051,6 +2119,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + arr-diff@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" @@ -1066,25 +2139,79 @@ arr-union@^3.1.0: resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= +array-buffer-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" + integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== + dependencies: + call-bind "^1.0.2" + is-array-buffer "^3.0.1" + array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= -array-includes@^3.0.3, array-includes@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.1.tgz#cdd67e6852bdf9c1215460786732255ed2459348" - integrity sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ== +array-includes@^3.1.6: + version "3.1.7" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.7.tgz#8cd2e01b26f7a3086cbc87271593fe921c62abda" + integrity sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ== dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0" - is-string "^1.0.5" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-string "^1.0.7" array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= +array.prototype.flat@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" + integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +array.prototype.flatmap@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz#c9a7c6831db8e719d6ce639190146c24bbd3e527" + integrity sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +array.prototype.tosorted@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz#620eff7442503d66c799d95503f82b475745cefd" + integrity sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.2.1" + +arraybuffer.prototype.slice@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" + integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-array-buffer "^3.0.2" + is-shared-array-buffer "^1.0.2" + asn1.js@^4.0.0: version "4.10.1" resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" @@ -1127,11 +2254,6 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= -astral-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" - integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== - async-each@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" @@ -1142,22 +2264,22 @@ async-limiter@~1.0.0: resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== +asynciterator.prototype@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz#8c5df0514936cdd133604dfcc9d3fb93f09b2b62" + integrity sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg== + dependencies: + has-symbols "^1.0.3" + atob@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -babel-eslint@^10.0.3: - version "10.1.0" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" - integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== - dependencies: - "@babel/code-frame" "^7.0.0" - "@babel/parser" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" - eslint-visitor-keys "^1.0.0" - resolve "^1.12.0" +available-typed-arrays@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" + integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== babel-loader@^8.0.6: version "8.1.0" @@ -1185,6 +2307,38 @@ babel-plugin-inferno@^6.1.0: "@babel/plugin-syntax-jsx" "^7" "@babel/types" "^7" +babel-plugin-inferno@^6.7.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/babel-plugin-inferno/-/babel-plugin-inferno-6.7.0.tgz#a51aeecef9664167e725678e2996c79de2482365" + integrity sha512-CLDNIoctex09NRbPP3GOq+B18Tj0luQOOevTAQzKWkwa45SqeoeFCY1XBq7p2TXrmifUAXbuCRrFKmA05codAA== + dependencies: + "@babel/plugin-syntax-jsx" "^7" + "@babel/types" "^7" + +babel-plugin-polyfill-corejs2@^0.4.6: + version "0.4.6" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz#b2df0251d8e99f229a8e60fc4efa9a68b41c8313" + integrity sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q== + dependencies: + "@babel/compat-data" "^7.22.6" + "@babel/helper-define-polyfill-provider" "^0.4.3" + semver "^6.3.1" + +babel-plugin-polyfill-corejs3@^0.8.5: + version "0.8.6" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz#25c2d20002da91fe328ff89095c85a391d6856cf" + integrity sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.4.3" + core-js-compat "^3.33.1" + +babel-plugin-polyfill-regenerator@^0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz#d4c49e4b44614607c13fb769bcd85c72bb26a4a5" + integrity sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.4.3" + babel-plugin-transform-remove-console@^6.9.4: version "6.9.4" resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz#b980360c067384e24b357a588d807d3c83527780" @@ -1223,6 +2377,11 @@ bfj@^6.1.1: hoopy "^0.1.4" tryer "^1.0.1" +big-integer@^1.6.44: + version "1.6.52" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.52.tgz#60a887f3047614a8e1bffe5d7173490a97dc8c85" + integrity sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg== + big.js@^5.2.2: version "5.2.2" resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" @@ -1288,6 +2447,13 @@ boolbase@^1.0.0, boolbase@~1.0.0: resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= +bplist-parser@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.2.0.tgz#43a9d183e5bf9d545200ceac3e712f79ebbe8d0e" + integrity sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw== + dependencies: + big-integer "^1.6.44" + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -1312,7 +2478,7 @@ braces@^2.3.1, braces@^2.3.2: split-string "^3.0.2" to-regex "^3.0.1" -braces@~3.0.2: +braces@^3.0.2, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -1403,6 +2569,16 @@ browserslist@^4.0.0, browserslist@^4.8.5, browserslist@^4.9.1: node-releases "^1.1.53" pkg-up "^2.0.0" +browserslist@^4.21.9, browserslist@^4.22.1: + version "4.22.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.1.tgz#ba91958d1a59b87dab6fed8dfbcb3da5e2e9c619" + integrity sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ== + dependencies: + caniuse-lite "^1.0.30001541" + electron-to-chromium "^1.4.535" + node-releases "^2.0.13" + update-browserslist-db "^1.0.13" + buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" @@ -1427,6 +2603,13 @@ builtin-status-codes@^3.0.0: resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= +bundle-name@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bundle-name/-/bundle-name-3.0.0.tgz#ba59bcc9ac785fb67ccdbf104a2bf60c099f0e1a" + integrity sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw== + dependencies: + run-applescript "^5.0.0" + bytes@3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" @@ -1500,6 +2683,15 @@ call-bind@^1.0.0: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-bind@^1.0.2, call-bind@^1.0.4, call-bind@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" + integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== + dependencies: + function-bind "^1.1.2" + get-intrinsic "^1.2.1" + set-function-length "^1.1.1" + caller-callsite@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" @@ -1544,7 +2736,12 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001038: resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001270.tgz" integrity sha512-TcIC7AyNWXhcOmv2KftOl1ShFAaHQYcB/EPL/hEyMrcS7ZX0/DvV1aoy6BzV0+16wTpoAyTMGDNAJfSqS/rz7A== -chalk@2.4.2, chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.1: +caniuse-lite@^1.0.30001541: + version "1.0.30001565" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz#a528b253c8a2d95d2b415e11d8b9942acc100c4f" + integrity sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w== + +chalk@2.4.2, chalk@^2.0.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1553,19 +2750,14 @@ chalk@2.4.2, chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.1: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" - integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== +chalk@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: ansi-styles "^4.1.0" supports-color "^7.1.0" -chardet@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" - integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== - check-types@^8.0.3: version "8.0.3" resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552" @@ -1638,19 +2830,7 @@ class-utils@^0.3.5: clean-stack@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" - integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== - -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-width@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" - integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== cliui@^5.0.0: version "5.0.0" @@ -1786,6 +2966,11 @@ convert-source-map@^1.7.0: dependencies: safe-buffer "~5.1.1" +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + cookie-signature@1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" @@ -1813,6 +2998,13 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= +core-js-compat@^3.31.0, core-js-compat@^3.33.1: + version "3.33.3" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.33.3.tgz#ec678b772c5a2d8a7c60a91c3a81869aa704ae01" + integrity sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow== + dependencies: + browserslist "^4.22.1" + core-js-compat@^3.6.2: version "3.6.5" resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c" @@ -1821,11 +3013,6 @@ core-js-compat@^3.6.2: browserslist "^4.8.5" semver "7.0.0" -core-js-pure@^3.0.0: - version "3.6.5" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.5.tgz#c79e75f5e38dbc85a662d91eea52b8256d53b813" - integrity sha512-lacdXOimsiD0QyNf9BC/mxivNJ/ybBGJXQFKzRekp1WTHoVUWsUHEn+2T8GJAzzIhyOuXA+gOxCVN3l+5PLPUA== - core-js@^3.2.1: version "3.6.5" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.5.tgz#7395dc273af37fb2e50e9bd3d9fe841285231d1a" @@ -1877,7 +3064,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: +cross-spawn@6.0.5, cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -1888,6 +3075,15 @@ cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" +cross-spawn@^7.0.2, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + crypto-browserify@^3.11.0: version "3.12.0" resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" @@ -2070,13 +3266,20 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3: dependencies: ms "2.0.0" -debug@^4.0.1, debug@^4.1.0: +debug@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== dependencies: ms "^2.1.1" +debug@^4.1.1, debug@^4.3.2: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -2087,10 +3290,42 @@ decode-uri-component@^0.2.0: resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== -deep-is@~0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" - integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +default-browser-id@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/default-browser-id/-/default-browser-id-3.0.0.tgz#bee7bbbef1f4e75d31f98f4d3f1556a14cea790c" + integrity sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA== + dependencies: + bplist-parser "^0.2.0" + untildify "^4.0.0" + +default-browser@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/default-browser/-/default-browser-4.0.0.tgz#53c9894f8810bf86696de117a6ce9085a3cbc7da" + integrity sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA== + dependencies: + bundle-name "^3.0.0" + default-browser-id "^3.0.0" + execa "^7.1.1" + titleize "^3.0.0" + +define-data-property@^1.0.1, define-data-property@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" + integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== + dependencies: + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +define-lazy-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz#dbb19adfb746d7fc6d734a06b72f4a00d021255f" + integrity sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg== define-properties@^1.1.2, define-properties@^1.1.3: version "1.1.3" @@ -2099,6 +3334,15 @@ define-properties@^1.1.2, define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +define-properties@^1.1.4, define-properties@^1.2.0, define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -2242,6 +3486,11 @@ electron-to-chromium@^1.3.390: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.410.tgz#00e0ec61c22933daa8b4de172c03932678783adc" integrity sha512-DbCBdwtARI0l3e3m6ZIxVaTNahb6dSsmGjuag/twiVcWuM4MSpL5IfsJsJSyqLqxosE/m0CXlZaBmxegQW/dAg== +electron-to-chromium@^1.4.535: + version "1.4.596" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.596.tgz#6752d1aa795d942d49dfc5d3764d6ea283fab1d7" + integrity sha512-zW3zbZ40Icb2BCWjm47nxwcFGYlIgdXkAx85XDO7cyky9J4QQfq8t0W19/TLZqq3JPQXtlv8BPIGmfa9Jb4scg== + elliptic@^6.0.0: version "6.5.3" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" @@ -2273,11 +3522,6 @@ emoji-regex@^7.0.1: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" @@ -2337,7 +3581,7 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.17.0, es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.5: +es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.5: version "1.17.5" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.5.tgz#d8c9d1d66c8981fb9200e2251d799eee92774ae9" integrity sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg== @@ -2354,6 +3598,87 @@ es-abstract@^1.17.0, es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstrac string.prototype.trimleft "^2.1.1" string.prototype.trimright "^2.1.1" +es-abstract@^1.22.1: + version "1.22.3" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" + integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== + dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.2" + available-typed-arrays "^1.0.5" + call-bind "^1.0.5" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.6" + get-intrinsic "^1.2.2" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.12" + is-weakref "^1.0.2" + object-inspect "^1.13.1" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.1" + safe-array-concat "^1.0.1" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.8" + string.prototype.trimend "^1.0.7" + string.prototype.trimstart "^1.0.7" + typed-array-buffer "^1.0.0" + typed-array-byte-length "^1.0.0" + typed-array-byte-offset "^1.0.0" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.13" + +es-iterator-helpers@^1.0.12: + version "1.0.15" + resolved "https://registry.yarnpkg.com/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz#bd81d275ac766431d19305923707c3efd9f1ae40" + integrity sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g== + dependencies: + asynciterator.prototype "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.1" + es-abstract "^1.22.1" + es-set-tostringtag "^2.0.1" + function-bind "^1.1.1" + get-intrinsic "^1.2.1" + globalthis "^1.0.3" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + iterator.prototype "^1.1.2" + safe-array-concat "^1.0.1" + +es-set-tostringtag@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" + integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== + dependencies: + get-intrinsic "^1.2.2" + has-tostringtag "^1.0.0" + hasown "^2.0.0" + +es-shim-unscopables@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" + integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== + dependencies: + hasown "^2.0.0" + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -2368,6 +3693,11 @@ es6-object-assign@^1.1.0: resolved "https://registry.yarnpkg.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz#c2c3582656247c39ea107cb1e6652b6f9f24523c" integrity sha1-wsNYJlYkfDnqEHyx5mUrb58kUjw= +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -2378,23 +3708,53 @@ escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -eslint-plugin-react@^7.17.0: - version "7.19.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.19.0.tgz#6d08f9673628aa69c5559d33489e855d83551666" - integrity sha512-SPT8j72CGuAP+JFbT0sJHOB80TX/pu44gQ4vXH/cq+hQTiY2PuZ6IHkqXJV6x1b28GDdo1lbInjKUrrdUf0LOQ== +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +eslint-config-prettier@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f" + integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw== + +eslint-plugin-prettier@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz#a3b399f04378f79f066379f544e42d6b73f11515" + integrity sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg== + dependencies: + prettier-linter-helpers "^1.0.0" + synckit "^0.8.5" + +eslint-plugin-react@^7.33.2: + version "7.33.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz#69ee09443ffc583927eafe86ffebb470ee737608" + integrity sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw== dependencies: - array-includes "^3.1.1" + array-includes "^3.1.6" + array.prototype.flatmap "^1.3.1" + array.prototype.tosorted "^1.1.1" doctrine "^2.1.0" - has "^1.0.3" - jsx-ast-utils "^2.2.3" - object.entries "^1.1.1" - object.fromentries "^2.0.2" - object.values "^1.1.1" - prop-types "^15.7.2" - resolve "^1.15.1" - semver "^6.3.0" - string.prototype.matchall "^4.0.2" - xregexp "^4.3.0" + es-iterator-helpers "^1.0.12" + estraverse "^5.3.0" + jsx-ast-utils "^2.4.1 || ^3.0.0" + minimatch "^3.1.2" + object.entries "^1.1.6" + object.fromentries "^2.0.6" + object.hasown "^1.1.2" + object.values "^1.1.6" + prop-types "^15.8.1" + resolve "^2.0.0-next.4" + semver "^6.3.1" + string.prototype.matchall "^4.0.8" + +eslint-scope@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" eslint-scope@^4.0.3: version "4.0.3" @@ -2404,87 +3764,86 @@ eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-scope@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" - integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== - dependencies: - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint-utils@^1.4.3: - version "1.4.3" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" - integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== dependencies: - eslint-visitor-keys "^1.1.0" + esrecurse "^4.3.0" + estraverse "^5.2.0" -eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" - integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== - -eslint@^6.7.2: - version "6.8.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" - integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== - dependencies: - "@babel/code-frame" "^7.0.0" - ajv "^6.10.0" - chalk "^2.1.0" - cross-spawn "^6.0.5" - debug "^4.0.1" +eslint-visitor-keys@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint@^8.49.0: + version "8.54.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.54.0.tgz#588e0dd4388af91a2e8fa37ea64924074c783537" + integrity sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.3" + "@eslint/js" "8.54.0" + "@humanwhocodes/config-array" "^0.11.13" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + "@ungap/structured-clone" "^1.2.0" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" doctrine "^3.0.0" - eslint-scope "^5.0.0" - eslint-utils "^1.4.3" - eslint-visitor-keys "^1.1.0" - espree "^6.1.2" - esquery "^1.0.1" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" esutils "^2.0.2" - file-entry-cache "^5.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.0.0" - globals "^12.1.0" - ignore "^4.0.6" - import-fresh "^3.0.0" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" imurmurhash "^0.1.4" - inquirer "^7.0.0" is-glob "^4.0.0" - js-yaml "^3.13.1" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.3.0" - lodash "^4.17.14" - minimatch "^3.0.4" - mkdirp "^0.5.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" natural-compare "^1.4.0" - optionator "^0.8.3" - progress "^2.0.0" - regexpp "^2.0.1" - semver "^6.1.2" - strip-ansi "^5.2.0" - strip-json-comments "^3.0.1" - table "^5.2.3" + optionator "^0.9.3" + strip-ansi "^6.0.1" text-table "^0.2.0" - v8-compile-cache "^2.0.3" -espree@^6.1.2: - version "6.2.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" - integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== dependencies: - acorn "^7.1.1" - acorn-jsx "^5.2.0" - eslint-visitor-keys "^1.1.0" + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.0.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57" - integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== +esquery@^1.4.2: + version "1.5.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== dependencies: estraverse "^5.1.0" @@ -2495,6 +3854,13 @@ esrecurse@^4.1.0: dependencies: estraverse "^4.1.0" +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + estraverse@^4.1.0, estraverse@^4.1.1: version "4.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" @@ -2505,6 +3871,11 @@ estraverse@^5.1.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642" integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw== +estraverse@^5.2.0, estraverse@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -2541,6 +3912,36 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +execa@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-7.2.0.tgz#657e75ba984f42a70f38928cedc87d6f2d4fe4e9" + integrity sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^4.3.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" + expand-brackets@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" @@ -2613,15 +4014,6 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: assign-symbols "^1.0.0" is-extendable "^1.0.1" -external-editor@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" - integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== - dependencies: - chardet "^0.7.0" - iconv-lite "^0.4.24" - tmp "^0.0.33" - extglob@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" @@ -2652,15 +4044,43 @@ fast-deep-equal@^3.1.1: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4" integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== +fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-diff@^1.1.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== + +fast-glob@^3.3.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -fast-levenshtein@~2.0.6: +fast-levenshtein@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fastq@^1.6.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a" + integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== + dependencies: + reusify "^1.0.4" fg-loadcss@^2.1.0: version "2.1.0" @@ -2672,19 +4092,12 @@ figgy-pudding@^3.5.1: resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e" integrity sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw== -figures@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" - integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== - dependencies: - escape-string-regexp "^1.0.5" - -file-entry-cache@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" - integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: - flat-cache "^2.0.1" + flat-cache "^3.0.4" file-loader@^6.0.0: version "6.0.0" @@ -2774,6 +4187,14 @@ find-up@^4.0.0: locate-path "^5.0.0" path-exists "^4.0.0" +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + findup-sync@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1" @@ -2784,19 +4205,19 @@ findup-sync@3.0.0: micromatch "^3.0.4" resolve-dir "^1.0.1" -flat-cache@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" - integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== +flat-cache@^3.0.4: + version "3.2.0" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" + integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== dependencies: - flatted "^2.0.0" - rimraf "2.6.3" - write "1.0.3" + flatted "^3.2.9" + keyv "^4.5.3" + rimraf "^3.0.2" -flatted@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" - integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== +flatted@^3.2.9: + version "3.2.9" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf" + integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== flush-write-stream@^1.0.0: version "1.1.1" @@ -2806,6 +4227,13 @@ flush-write-stream@^1.0.0: inherits "^2.0.3" readable-stream "^2.3.6" +for-each@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" + integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== + dependencies: + is-callable "^1.1.3" + for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" @@ -2885,16 +4313,36 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +function.prototype.name@^1.1.5, function.prototype.name@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" + integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + functions-have-names "^1.2.3" + +functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== gensync@^1.0.0-beta.1: version "1.0.0-beta.1" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269" integrity sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg== +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + get-caller-file@^2.0.1: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" @@ -2909,6 +4357,16 @@ get-intrinsic@^1.0.2: has "^1.0.3" has-symbols "^1.0.3" +get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" + integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== + dependencies: + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + get-stream@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" @@ -2916,6 +4374,19 @@ get-stream@^4.0.0: dependencies: pump "^3.0.0" +get-stream@^6.0.0, get-stream@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" @@ -2929,7 +4400,21 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" -glob-parent@^5.0.0, glob-parent@~5.1.0: +glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob-parent@~5.1.0: version "5.1.1" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ== @@ -2989,22 +4474,36 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globals@^12.1.0: - version "12.4.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" - integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== +globals@^13.19.0: + version "13.23.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.23.0.tgz#ef31673c926a0976e1f61dab4dca57e0c0a8af02" + integrity sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA== + dependencies: + type-fest "^0.20.2" + +globalthis@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== dependencies: - type-fest "^0.8.1" + get-intrinsic "^1.1.3" graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2: version "4.2.3" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== -growly@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" - integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== gzip-size@^5.0.0: version "5.1.1" @@ -3014,6 +4513,11 @@ gzip-size@^5.0.0: duplexer "^0.1.1" pify "^4.0.1" +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -3024,16 +4528,35 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== +has-property-descriptors@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" + integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== + dependencies: + get-intrinsic "^1.2.2" + +has-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" + integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== + has-symbols@^1.0.0, has-symbols@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== -has-symbols@^1.0.3: +has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== + dependencies: + has-symbols "^1.0.2" + has-value@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" @@ -3088,6 +4611,13 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +hasown@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" + integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== + dependencies: + function-bind "^1.1.2" + hex-color-regex@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" @@ -3145,7 +4675,17 @@ https-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= -iconv-lite@0.4.24, iconv-lite@^0.4.24: +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +human-signals@^4.3.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" + integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== + +iconv-lite@0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== @@ -3169,10 +4709,10 @@ iferr@^0.1.5: resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE= -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== +ignore@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.0.tgz#67418ae40d34d6999c95ff56016759c718c82f78" + integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg== import-fresh@^2.0.0: version "2.0.0" @@ -3182,10 +4722,10 @@ import-fresh@^2.0.0: caller-path "^2.0.0" resolve-from "^3.0.0" -import-fresh@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" - integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ== +import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== dependencies: parent-module "^1.0.0" resolve-from "^4.0.0" @@ -3265,33 +4805,14 @@ ini@^1.3.4, ini@^1.3.5: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -inquirer@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.1.0.tgz#1298a01859883e17c7264b82870ae1034f92dd29" - integrity sha512-5fJMWEmikSYu0nv/flMc475MhGbB7TSPd/2IpFV4I4rMklboCH2rQjYY5kKiYGHqUF9gvaambupcJFFG9dvReg== - dependencies: - ansi-escapes "^4.2.1" - chalk "^3.0.0" - cli-cursor "^3.1.0" - cli-width "^2.0.0" - external-editor "^3.0.3" - figures "^3.0.0" - lodash "^4.17.15" - mute-stream "0.0.8" - run-async "^2.4.0" - rxjs "^6.5.3" - string-width "^4.1.0" - strip-ansi "^6.0.0" - through "^2.3.6" - -internal-slot@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.2.tgz#9c2e9fb3cd8e5e4256c6f45fe310067fcfa378a3" - integrity sha512-2cQNfwhAfJIkU4KZPkDI+Gj5yNNnbqi40W9Gge6dfnk4TocEVm00B3bdiL+JINrbGJil2TeHvM4rETGzk/f/0g== +internal-slot@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" + integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== dependencies: - es-abstract "^1.17.0-next.1" - has "^1.0.3" - side-channel "^1.0.2" + get-intrinsic "^1.2.2" + hasown "^2.0.0" + side-channel "^1.0.4" interpret@1.2.0: version "1.2.0" @@ -3339,6 +4860,15 @@ is-arguments@^1.0.4: resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.0.4.tgz#3faf966c7cba0ff437fb31f6250082fcf0448cf3" integrity sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA== +is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" + integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + is-typed-array "^1.1.10" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -3349,6 +4879,20 @@ is-arrayish@^0.3.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== +is-async-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-async-function/-/is-async-function-2.0.0.tgz#8e4418efd3e5d3a6ebb0164c05ef5afb69aa9646" + integrity sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA== + dependencies: + has-tostringtag "^1.0.0" + +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + is-binary-path@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" @@ -3363,11 +4907,24 @@ is-binary-path@~2.1.0: dependencies: binary-extensions "^2.0.0" +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== +is-callable@^1.1.3, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + is-callable@^1.1.4, is-callable@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" @@ -3385,6 +4942,13 @@ is-color-stop@^1.0.0: rgb-regex "^1.0.1" rgba-regex "^1.0.0" +is-core-module@^2.13.0: + version "2.13.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" + integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== + dependencies: + hasown "^2.0.0" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -3404,6 +4968,13 @@ is-date-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== +is-date-object@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + is-descriptor@^0.1.0: version "0.1.6" resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" @@ -3427,6 +4998,16 @@ is-directory@^0.3.1: resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= +is-docker@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + +is-docker@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200" + integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ== + is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" @@ -3444,15 +5025,24 @@ is-extglob@^2.1.0, is-extglob@^2.1.1: resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= +is-finalizationregistry@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz#c8749b65f17c133313e661b1289b95ad3dbd62e6" + integrity sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw== + dependencies: + call-bind "^1.0.2" + is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== +is-generator-function@^1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" + integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== + dependencies: + has-tostringtag "^1.0.0" is-generator-function@^1.0.7: version "1.0.7" @@ -3473,6 +5063,25 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-inside-container@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-inside-container/-/is-inside-container-1.0.0.tgz#e81fba699662eb31dbdaf26766a61d4814717ea4" + integrity sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA== + dependencies: + is-docker "^3.0.0" + +is-map@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" + integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== + is-nan@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/is-nan/-/is-nan-1.3.0.tgz#85d1f5482f7051c2019f5673ccebdb06f3b0db03" @@ -3480,6 +5089,18 @@ is-nan@^1.2.1: dependencies: define-properties "^1.1.3" +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" @@ -3497,6 +5118,11 @@ is-obj@^2.0.0: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== +is-path-inside@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== + is-plain-obj@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -3509,11 +5135,6 @@ is-plain-object@^2.0.3, is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= - is-regex@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" @@ -3521,21 +5142,58 @@ is-regex@^1.0.5: dependencies: has "^1.0.3" +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-resolvable@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" integrity sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg== +is-set@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec" + integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== + +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + is-string@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.5.tgz#40493ed198ef3ff477b8c7f92f644ec82a5cd3a6" integrity sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ== +is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + is-svg@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75" @@ -3550,6 +5208,40 @@ is-symbol@^1.0.2: dependencies: has-symbols "^1.0.1" +is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + +is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.9: + version "1.1.12" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" + integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== + dependencies: + which-typed-array "^1.1.11" + +is-weakmap@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2" + integrity sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA== + +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-weakset@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.2.tgz#4569d67a747a1ce5a994dfd4ef6dcea76e7c0a1d" + integrity sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + is-windows@^1.0.1, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" @@ -3560,16 +5252,23 @@ is-wsl@^1.1.0: resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= -is-wsl@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.1.1.tgz#4a1c152d429df3d441669498e2486d3596ebaf1d" - integrity sha512-umZHcSrwlDHo2TGMXv0DZ8dIUGunZ2Iv68YZnrmCiBPkZ4aaOhtv7pXJKeki9k3qJ3RJr0cDyitcl5wEH3AYog== +is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -3587,6 +5286,17 @@ isobject@^3.0.0, isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= +iterator.prototype@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.2.tgz#5e29c8924f01916cb9335f1ff80619dcff22b0c0" + integrity sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w== + dependencies: + define-properties "^1.2.1" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + reflect.getprototypeof "^1.0.4" + set-function-name "^2.0.1" + jest-worker@^25.1.0: version "25.2.6" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-25.2.6.tgz#d1292625326794ce187c38f51109faced3846c58" @@ -3608,6 +5318,13 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -3618,6 +5335,11 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" @@ -3647,6 +5369,11 @@ json5@^2.1.2: dependencies: minimist "^1.2.5" +json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -3654,13 +5381,22 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" -jsx-ast-utils@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz#8a9364e402448a3ce7f14d357738310d9248054f" - integrity sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA== +"jsx-ast-utils@^2.4.1 || ^3.0.0": + version "3.3.5" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a" + integrity sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ== dependencies: - array-includes "^3.0.3" - object.assign "^4.1.0" + array-includes "^3.1.6" + array.prototype.flat "^1.3.1" + object.assign "^4.1.4" + object.values "^1.1.6" + +keyv@^4.5.3: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" @@ -3713,13 +5449,13 @@ levenary@^1.1.1: dependencies: leven "^3.1.0" -levn@^0.3.0, levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" + prelude-ls "^1.2.1" + type-check "~0.4.0" loader-runner@^2.4.0: version "2.4.0" @@ -3781,17 +5517,34 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== + lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.5: +lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.5: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -3903,6 +5656,11 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -3927,6 +5685,14 @@ micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" +micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + miller-rabin@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" @@ -3969,6 +5735,11 @@ mimic-fn@^2.0.0, mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -3979,7 +5750,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= -minimatch@^3.0.4: +minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -4067,20 +5838,15 @@ ms@2.0.0: resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= -ms@2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -ms@^2.1.1: +ms@2.1.2, ms@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -mute-stream@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" - integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== +ms@2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== nan@^2.12.1: version "2.14.0" @@ -4153,22 +5919,16 @@ node-libs-browser@^2.2.1: util "^0.11.0" vm-browserify "^1.0.1" -node-notifier@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-6.0.0.tgz#cea319e06baa16deec8ce5cd7f133c4a46b68e12" - integrity sha512-SVfQ/wMw+DesunOm5cKqr6yDcvUTDl/yc97ybGHMrteNEY6oekXpNpS3lZwgLlwz0FLgHoiW28ZpmBHUDg37cw== - dependencies: - growly "^1.3.0" - is-wsl "^2.1.1" - semver "^6.3.0" - shellwords "^0.1.1" - which "^1.3.1" - node-releases@^1.1.53: version "1.1.53" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.53.tgz#2d821bfa499ed7c5dffc5e2f28c88e78a08ee3f4" integrity sha512-wp8zyQVwef2hpZ/dJH7SfSrIPD6YoJz6BDQDpGEkcA0s3LpAQoxBIYmfIq6QAhC1DhwsyCgTaTTcONwX8qzCuQ== +node-releases@^2.0.13: + version "2.0.13" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" + integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== + normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" @@ -4203,6 +5963,20 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.1.0.tgz#bc62f7f3f6952d9894bd08944ba011a6ee7b7e00" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== + dependencies: + path-key "^4.0.0" + nth-check@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" @@ -4224,6 +5998,11 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" +object-inspect@^1.13.1: + version "1.13.1" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" + integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== + object-inspect@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" @@ -4264,25 +6043,33 @@ object.assign@^4.1.0: has-symbols "^1.0.0" object-keys "^1.0.11" -object.entries@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.1.tgz#ee1cf04153de02bb093fec33683900f57ce5399b" - integrity sha512-ilqR7BgdyZetJutmDPfXCDffGa0/Yzl2ivVNpbx/g4UeWrCdRnFDUBrKJGLhGieRHDATnyZXWBeCb29k9CJysQ== +object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0-next.1" - function-bind "^1.1.1" - has "^1.0.3" + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" -object.fromentries@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.2.tgz#4a09c9b9bb3843dd0f89acdb517a794d4f355ac9" - integrity sha512-r3ZiBH7MQppDJVLx6fhD618GKNG40CZYH9wgwdhKxBDDbQgjeWGGd4AtkZad84d291YxvWe7bJGuE65Anh0dxQ== +object.entries@^1.1.6: + version "1.1.7" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.7.tgz#2b47760e2a2e3a752f39dd874655c61a7f03c131" + integrity sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA== dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0-next.1" - function-bind "^1.1.1" - has "^1.0.3" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + +object.fromentries@^2.0.6: + version "2.0.7" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.7.tgz#71e95f441e9a0ea6baf682ecaaf37fa2a8d7e616" + integrity sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" object.getownpropertydescriptors@^2.1.0: version "2.1.0" @@ -4292,6 +6079,14 @@ object.getownpropertydescriptors@^2.1.0: define-properties "^1.1.3" es-abstract "^1.17.0-next.1" +object.hasown@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.3.tgz#6a5f2897bb4d3668b8e79364f98ccf971bda55ae" + integrity sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA== + dependencies: + define-properties "^1.2.0" + es-abstract "^1.22.1" + object.pick@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" @@ -4299,7 +6094,7 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" -object.values@^1.1.0, object.values@^1.1.1: +object.values@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e" integrity sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA== @@ -4309,6 +6104,15 @@ object.values@^1.1.0, object.values@^1.1.1: function-bind "^1.1.1" has "^1.0.3" +object.values@^1.1.6: + version "1.1.7" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.7.tgz#617ed13272e7e1071b43973aa1655d9291b8442a" + integrity sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -4323,13 +6127,30 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" - integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q== +onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + +open@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/open/-/open-9.1.0.tgz#684934359c90ad25742f5a26151970ff8c6c80b6" + integrity sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg== + dependencies: + default-browser "^4.0.0" + define-lazy-prop "^3.0.0" + is-inside-container "^1.0.0" + is-wsl "^2.2.0" + opencollective-postinstall@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89" @@ -4348,17 +6169,17 @@ optimize-css-assets-webpack-plugin@^5.0.3: cssnano "^4.1.10" last-call-webpack-plugin "^3.0.0" -optionator@^0.8.3: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== +optionator@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64" + integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" + "@aashutoshrathi/word-wrap" "^1.2.3" + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" os-browserify@^0.3.0: version "0.3.0" @@ -4374,11 +6195,6 @@ os-locale@^3.1.0: lcid "^2.0.0" mem "^4.0.0" -os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= - p-defer@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" @@ -4408,6 +6224,13 @@ p-limit@^2.0.0, p-limit@^2.2.0, p-limit@^2.2.2: dependencies: p-try "^2.0.0" +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + p-locate@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" @@ -4429,6 +6252,13 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + p-map@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz#d704d9af8a2ba684e2600d9a215983d4141a979d" @@ -4543,11 +6373,26 @@ path-key@^2.0.0, path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + path-parse@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" @@ -4569,11 +6414,21 @@ picocolors@^0.2.1: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + picomatch@^2.0.4, picomatch@^2.0.7: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== +picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + pify@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" @@ -4928,16 +6783,28 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.2 picocolors "^0.2.1" source-map "^0.6.1" -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== prepend-http@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e" + integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw== + private@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" @@ -4953,24 +6820,19 @@ process@^0.11.10: resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= -progress@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - promise-inflight@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM= -prop-types@^15.7.2: - version "15.7.2" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" - integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== +prop-types@^15.8.1: + version "15.8.1" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" + integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== dependencies: loose-envify "^1.4.0" object-assign "^4.1.1" - react-is "^16.8.1" + react-is "^16.13.1" proxy-addr@~2.0.7: version "2.0.7" @@ -5067,6 +6929,11 @@ querystring@0.2.0: resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" @@ -5097,7 +6964,7 @@ raw-body@2.5.1: iconv-lite "0.4.24" unpipe "1.0.0" -react-is@^16.8.1: +react-is@^16.13.1: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== @@ -5140,6 +7007,25 @@ readdirp@~3.3.0: dependencies: picomatch "^2.0.7" +reflect.getprototypeof@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz#aaccbf41aca3821b87bb71d9dcbc7ad0ba50a3f3" + integrity sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + globalthis "^1.0.3" + which-builtin-type "^1.1.3" + +regenerate-unicode-properties@^10.1.0: + version "10.1.1" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz#6b0e05489d9076b04c436f318d9b067bba459480" + integrity sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec" @@ -5152,6 +7038,11 @@ regenerate@^1.4.0: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg== +regenerate@^1.4.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" + integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== + regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4: version "0.13.5" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697" @@ -5165,6 +7056,13 @@ regenerator-transform@^0.14.2: "@babel/runtime" "^7.8.4" private "^0.1.8" +regenerator-transform@^0.15.2: + version "0.15.2" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4" + integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg== + dependencies: + "@babel/runtime" "^7.8.4" + regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -5173,18 +7071,14 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexp.prototype.flags@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz#7aba89b3c13a64509dabcf3ca8d9fbb9bdf5cb75" - integrity sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ== +regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" + integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0-next.1" - -regexpp@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" - integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + call-bind "^1.0.2" + define-properties "^1.2.0" + set-function-name "^2.0.0" regexpu-core@^4.7.0: version "4.7.0" @@ -5198,6 +7092,18 @@ regexpu-core@^4.7.0: unicode-match-property-ecmascript "^1.0.4" unicode-match-property-value-ecmascript "^1.2.0" +regexpu-core@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b" + integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ== + dependencies: + "@babel/regjsgen" "^0.8.0" + regenerate "^1.4.2" + regenerate-unicode-properties "^10.1.0" + regjsparser "^0.9.1" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.1.0" + regjsgen@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz#48f0bf1a5ea205196929c0d9798b42d1ed98443c" @@ -5210,6 +7116,13 @@ regjsparser@^0.6.4: dependencies: jsesc "~0.5.0" +regjsparser@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" + integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== + dependencies: + jsesc "~0.5.0" + remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" @@ -5265,26 +7178,41 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= -resolve@^1.12.0, resolve@^1.15.1, resolve@^1.3.2: +resolve@^1.14.2: + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +resolve@^1.3.2: version "1.16.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.16.0.tgz#063dc704fa3413e13ac1d0d1756a7cbfe95dd1a7" integrity sha512-LarL/PIKJvc09k1jaeT4kQb/8/7P+qV4qSnN2K80AES+OHdfZELAKVOBjxsvtToT/uLOfFbvYvKfZmV8cee7nA== dependencies: path-parse "^1.0.6" -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== +resolve@^2.0.0-next.4: + version "2.0.0-next.5" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.5.tgz#6b0ec3107e671e52b68cd068ef327173b90dc03c" + integrity sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA== dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rewrite-imports@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/rewrite-imports/-/rewrite-imports-2.0.3.tgz#210fc05ebda6a6c6a2e396608b0146003d510dda" @@ -5300,13 +7228,6 @@ rgba-regex@^1.0.0: resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM= -rimraf@2.6.3: - version "2.6.3" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - rimraf@^2.5.4, rimraf@^2.6.3, rimraf@^2.7.1: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" @@ -5314,6 +7235,13 @@ rimraf@^2.5.4, rimraf@^2.6.3, rimraf@^2.7.1: dependencies: glob "^7.1.3" +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -5322,12 +7250,19 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -run-async@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.0.tgz#e59054a5b86876cfae07f431d18cbaddc594f1e8" - integrity sha512-xJTbh/d7Lm7SBhc1tNvTpeCHaEzoyxPrqNlvSdMfBTYwaY++UJFyXUOxAtsRUXjlqOfj8luNaR9vjCh4KeV+pg== +run-applescript@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/run-applescript/-/run-applescript-5.0.0.tgz#e11e1c932e055d5c6b40d98374e0268d9b11899c" + integrity sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg== + dependencies: + execa "^5.0.0" + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== dependencies: - is-promise "^2.1.0" + queue-microtask "^1.2.2" run-queue@^1.0.0, run-queue@^1.0.3: version "1.0.3" @@ -5336,12 +7271,15 @@ run-queue@^1.0.0, run-queue@^1.0.3: dependencies: aproba "^1.1.1" -rxjs@^6.5.3: - version "6.5.5" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec" - integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ== +safe-array-concat@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c" + integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q== dependencies: - tslib "^1.9.0" + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + isarray "^2.0.5" safe-buffer@5.2.1, safe-buffer@^5.2.1: version "5.2.1" @@ -5358,6 +7296,15 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" + safe-regex@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" @@ -5420,7 +7367,7 @@ semver@^5.4.1, semver@^5.5.0, semver@^5.6.0: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== -semver@^6.0.0, semver@^6.1.2, semver@^6.3.0: +semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== @@ -5464,6 +7411,25 @@ set-blocking@^2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= +set-function-length@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" + integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== + dependencies: + define-data-property "^1.1.1" + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +set-function-name@^2.0.0, set-function-name@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" + integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== + dependencies: + define-data-property "^1.0.1" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.0" + set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" @@ -5506,23 +7472,22 @@ shebang-command@^1.2.0: dependencies: shebang-regex "^1.0.0" +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= -shellwords@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" - integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== - -side-channel@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.2.tgz#df5d1abadb4e4bf4af1cd8852bf132d2f7876947" - integrity sha512-7rL9YlPHg7Ancea1S96Pa8/QWb4BtXL/TZvS6B8XFetGBeuhAsfmUspK6DokBeZ64+Kj9TCNRD/30pVz1BvQNA== - dependencies: - es-abstract "^1.17.0-next.1" - object-inspect "^1.7.0" +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== side-channel@^1.0.4: version "1.0.4" @@ -5533,11 +7498,16 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.0, signal-exit@^3.0.2: +signal-exit@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== +signal-exit@^3.0.3, signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + simple-swizzle@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" @@ -5545,15 +7515,6 @@ simple-swizzle@^0.2.2: dependencies: is-arrayish "^0.3.1" -slice-ansi@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== - dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" - snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -5733,26 +7694,29 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string-width@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== +string.prototype.matchall@^4.0.8: + version "4.0.10" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz#a1553eb532221d4180c51581d6072cd65d1ee100" + integrity sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ== dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + regexp.prototype.flags "^1.5.0" + set-function-name "^2.0.0" + side-channel "^1.0.4" -string.prototype.matchall@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.2.tgz#48bb510326fb9fdeb6a33ceaa81a6ea04ef7648e" - integrity sha512-N/jp6O5fMf9os0JU3E72Qhf590RSRZU/ungsL/qJUYVTNv7hTG0P/dbPjxINVN9jpscu3nzYwKESU3P3RY5tOg== +string.prototype.trim@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd" + integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ== dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0" - has-symbols "^1.0.1" - internal-slot "^1.0.2" - regexp.prototype.flags "^1.3.0" - side-channel "^1.0.2" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" string.prototype.trimend@^1.0.0: version "1.0.1" @@ -5762,6 +7726,15 @@ string.prototype.trimend@^1.0.0: define-properties "^1.1.3" es-abstract "^1.17.5" +string.prototype.trimend@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" + integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string.prototype.trimleft@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz#4408aa2e5d6ddd0c9a80739b087fbc067c03b3cc" @@ -5788,6 +7761,15 @@ string.prototype.trimstart@^1.0.0: define-properties "^1.1.3" es-abstract "^1.17.5" +string.prototype.trimstart@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" + integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -5809,22 +7791,32 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: - ansi-regex "^5.0.0" + ansi-regex "^5.0.1" strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= -strip-json-comments@^3.0.1: - version "3.1.0" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.0.tgz#7638d31422129ecf4457440009fba03f9f9ac180" - integrity sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w== +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + +strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== style-loader@^1.0.0: version "1.1.4" @@ -5864,6 +7856,11 @@ supports-color@^7.0.0, supports-color@^7.1.0: dependencies: has-flag "^4.0.0" +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + svgo@^1.0.0: version "1.3.2" resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167" @@ -5883,15 +7880,13 @@ svgo@^1.0.0: unquote "~1.1.1" util.promisify "~1.0.0" -table@^5.2.3: - version "5.4.6" - resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" - integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== +synckit@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb559437f9f167eb6bc46b3c9818fa3" + integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q== dependencies: - ajv "^6.10.2" - lodash "^4.17.14" - slice-ansi "^2.1.0" - string-width "^3.0.0" + "@pkgr/utils" "^2.3.1" + tslib "^2.5.0" tapable@^1.0.0, tapable@^1.1.3: version "1.1.3" @@ -5950,11 +7945,6 @@ through2@^2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" -through@^2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= - timers-browserify@^2.0.4: version "2.0.11" resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.11.tgz#800b1f3eee272e5bc53ee465a04d0e804c31211f" @@ -5967,12 +7957,10 @@ timsort@^0.3.0: resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== - dependencies: - os-tmpdir "~1.0.2" +titleize@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/titleize/-/titleize-3.0.0.tgz#71c12eb7fdd2558aa8a44b0be83b8a76694acd53" + integrity sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ== to-arraybuffer@^1.0.0: version "1.0.1" @@ -6031,33 +8019,33 @@ tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35" integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA== +tslib@^2.5.0, tslib@^2.6.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + tty-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY= -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== dependencies: - prelude-ls "~1.1.2" + prelude-ls "^1.2.1" -type-fest@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" - integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== type-fest@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48" integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" @@ -6066,11 +8054,60 @@ type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +typed-array-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" + integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + is-typed-array "^1.1.10" + +typed-array-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" + integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" + integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-length@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" + integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + is-typed-array "^1.1.9" + typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + unfetch@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be" @@ -6081,6 +8118,11 @@ unicode-canonical-property-names-ecmascript@^1.0.4: resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" integrity sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ== +unicode-canonical-property-names-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" + integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== + unicode-match-property-ecmascript@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" @@ -6089,16 +8131,34 @@ unicode-match-property-ecmascript@^1.0.4: unicode-canonical-property-names-ecmascript "^1.0.4" unicode-property-aliases-ecmascript "^1.0.4" +unicode-match-property-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" + integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== + dependencies: + unicode-canonical-property-names-ecmascript "^2.0.0" + unicode-property-aliases-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz#0d91f600eeeb3096aa962b1d6fc88876e64ea531" integrity sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ== +unicode-match-property-value-ecmascript@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0" + integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA== + unicode-property-aliases-ecmascript@^1.0.4: version "1.1.0" resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4" integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg== +unicode-property-aliases-ecmascript@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" + integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== + union-value@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" @@ -6156,11 +8216,24 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" +untildify@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" + integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== + upath@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== +update-browserslist-db@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" + integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + uri-js@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" @@ -6244,11 +8317,6 @@ v8-compile-cache@2.0.3: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz#00f7494d2ae2b688cfe2899df6ed2c54bef91dbe" integrity sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w== -v8-compile-cache@^2.0.3: - version "2.1.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" - integrity sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g== - vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" @@ -6273,14 +8341,6 @@ watchpack@^1.6.0: graceful-fs "^4.1.2" neo-async "^2.5.0" -webpack-build-notifier@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/webpack-build-notifier/-/webpack-build-notifier-2.0.0.tgz#4e2012f939dd3124d397fb881dbf3dc973596065" - integrity sha512-0UquMIN02i05ZlEEKe4QRvqlDHSYx79YLcXu3XP7PjMFCIZxNCotfQO1mv+6uGske26f0lhai8X9umTI9RcRpg== - dependencies: - node-notifier "6.0.0" - strip-ansi "^5.2.0" - webpack-bundle-analyzer@^3.5.1: version "3.7.0" resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.7.0.tgz#84da434e89442899b884d9ad38e466d0db02a56f" @@ -6365,11 +8425,61 @@ webpack@^4.40.2: watchpack "^1.6.0" webpack-sources "^1.4.1" +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + +which-builtin-type@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/which-builtin-type/-/which-builtin-type-1.1.3.tgz#b1b8443707cc58b6e9bf98d32110ff0c2cbd029b" + integrity sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw== + dependencies: + function.prototype.name "^1.1.5" + has-tostringtag "^1.0.0" + is-async-function "^2.0.0" + is-date-object "^1.0.5" + is-finalizationregistry "^1.0.2" + is-generator-function "^1.0.10" + is-regex "^1.1.4" + is-weakref "^1.0.2" + isarray "^2.0.5" + which-boxed-primitive "^1.0.2" + which-collection "^1.0.1" + which-typed-array "^1.1.9" + +which-collection@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.1.tgz#70eab71ebbbd2aefaf32f917082fc62cdcb70906" + integrity sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A== + dependencies: + is-map "^2.0.1" + is-set "^2.0.1" + is-weakmap "^2.0.1" + is-weakset "^2.0.1" + which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= +which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.9: + version "1.1.13" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" + integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.4" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.0" + which@^1.2.14, which@^1.2.9, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" @@ -6377,10 +8487,12 @@ which@^1.2.14, which@^1.2.9, which@^1.3.1: dependencies: isexe "^2.0.0" -word-wrap@~1.2.3: - version "1.2.4" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f" - integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA== +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" worker-farm@^1.7.0: version "1.7.0" @@ -6403,13 +8515,6 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= -write@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" - integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== - dependencies: - mkdirp "^0.5.1" - ws@^6.0.0: version "6.2.1" resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" @@ -6417,17 +8522,10 @@ ws@^6.0.0: dependencies: async-limiter "~1.0.0" -ws@^7.1.2: - version "7.2.3" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.3.tgz#a5411e1fb04d5ed0efee76d26d5c46d830c39b46" - integrity sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ== - -xregexp@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-4.3.0.tgz#7e92e73d9174a99a59743f67a4ce879a04b5ae50" - integrity sha512-7jXDIFXh5yJ/orPn4SXjuVrWWoi4Cr8jfV1eHv9CixKSbU+jY4mxfrBwAuDvupPNKpMUY+FeIqsVw/JLT9+B8g== - dependencies: - "@babel/runtime-corejs3" "^7.8.3" +ws@^7.4.6: + version "7.5.9" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" + integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== xtend@^4.0.0, xtend@~4.0.1: version "4.0.2" @@ -6473,3 +8571,8 @@ yargs@13.2.4: which-module "^2.0.0" y18n "^4.0.0" yargs-parser "^13.1.0" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==