diff --git a/client.lua b/client.lua index bfd9b48..9931595 100644 --- a/client.lua +++ b/client.lua @@ -111,6 +111,13 @@ local function sendUIUpdateMessage(data) }) end +local function sendUILang() + SendNUIMessage({ + action = 'setLang', + lang = GetConvar('qb_locale', 'en') + }) +end + local function HandleSetupResource() QBCore.Functions.TriggerCallback('hud:server:getRank', function(isAdminOrGreater) if isAdminOrGreater then @@ -126,6 +133,7 @@ local function HandleSetupResource() sendUIUpdateMessage(UIConfig) end end + sendUILang() end RegisterNetEvent("QBCore:Client:OnPlayerLoaded", function() @@ -254,7 +262,7 @@ RegisterNUICallback('openMenuSounds', function(data, cb) Menu.isOpenMenuSoundsChecked = true else Menu.isOpenMenuSoundsChecked = false - end + end TriggerEvent("hud:client:playHudChecklistSound") end) @@ -867,7 +875,7 @@ end CreateThread(function() local wasInVehicle = false - while true do + while true do if LocalPlayer.state.isLoggedIn then Wait(500) @@ -875,7 +883,7 @@ CreateThread(function() local player = PlayerPedId() local playerId = PlayerId() local weapon = GetSelectedPedWeapon(player) - + -- Player hud if not IsWhitelistedWeaponArmed(weapon) then -- weapon ~= 0 fixes unarmed on Offroad vehicle Blzer Aqua showing armed bug @@ -893,13 +901,13 @@ CreateThread(function() if not IsEntityInWater(player) then oxygen = 100 - GetPlayerSprintStaminaRemaining(playerId) end - + -- Oxygen if IsEntityInWater(player) then oxygen = GetPlayerUnderwaterTimeRemaining(playerId) * 10 end - -- Voice setup + -- Voice setup local talking = NetworkIsPlayerTalking(playerId) local voice = 0 if LocalPlayer.state['proximity'] then @@ -957,7 +965,7 @@ CreateThread(function() end wasInVehicle = true - + updatePlayerHud({ show, GetEntityHealth(player) - 100, @@ -1304,9 +1312,9 @@ CreateThread(function() else heading = tostring(round(360.0 - GetEntityHeading(player))) end - - if heading == '360' then - heading = '0' + + if heading == '360' then + heading = '0' end local playerInVehcile = IsPedInAnyVehicle(player) @@ -1314,9 +1322,9 @@ CreateThread(function() if heading ~= lastHeading or lastInVehicle ~= playerInVehcile then if playerInVehcile then local crossroads = getCrossroads(player) - SendNUIMessage ({ - action = 'update', - value = heading + SendNUIMessage ({ + action = 'update', + value = heading }) updateBaseplateHud({ show, @@ -1330,9 +1338,9 @@ CreateThread(function() lastInVehicle = true else if not Menu.isOutCompassChecked then - SendNUIMessage ({ - action = 'update', - value = heading + SendNUIMessage ({ + action = 'update', + value = heading }) SendNUIMessage ({ action = 'baseplate', diff --git a/html/en.json b/html/en.json new file mode 100644 index 0000000..a45729f --- /dev/null +++ b/html/en.json @@ -0,0 +1,95 @@ +{ + "hudSettings": "HUD Settings", + "statusIcons": "Status Icons", + "resetHud": "Reset HUD", + "resetSettings": "Reset Settings", + "resettingHud": "Resetting Hud...", + "resetHudDescription": "If your hud is acting up, give it a good ol' reset! Or you can do /resethud", + "resetSettingsDescriptionLine1": "If you want to reset your settings back to default; click this shiny button!", + "resetSettingsDescriptionLine2": "(you will have to relog for your menu to reset changes successfully)", + "optionsMenu": "Options", + "minimapVehicleCheckBoxPrimary": "Show Minimap Only in Vehicle", + "minimapVehicleCheckBoxSecondary": "Disabling this will always keep your minimap on your screen", + "compassVehicleCheckBoxPrimary": "Show Compass Only in Vehicle", + "compassVehicleCheckBoxSecondary": "Disabling this will always keep your compass on your screen", + "compassFollowCheckBoxPrimary": "Show Compass Follow Cam", + "compassFollowCheckBoxSecondary": "Disabling this will make it so you can no longer use your mouse to rotate the compass around", + "notificationsMenu": "Notifications", + "menuSoundEffectsEnabled": "Menu Sound Effect Enabled", + "resetSoundEffectsEnabled": "Reset Hud Sound Effects Enabled", + "guiSoundEffectsEnabled": "GUI Sound Effects Enabled", + "mapNotificationsEnabled": "Map Notifications Enabled", + "lowFuelNotificationsEnabled": "Low Fuel Alert Enabled", + "cinematicModeNotificationEnabled": "Cinematic Mode Notifications", + "statusMenu": "Status", + "showHealthAlways": "Show Health Always", + "showArmorAlways": "Show Armor Always", + "showHungerAlways": "Show Hunger Always", + "showThirstAlways": "Show Thirst Always", + "showStressAlways": "Show Stress Always", + "showOxygenAlways": "Show Oxygen Always", + "vehicleMenu": "Vehicle", + "minimapTypeCircle": "Minimap Circle", + "minimapTypeSquare": "Minimap Square", + "minimapTypeDescription": "Whether it's square or circle you desire, you have the ability to choose!", + "minimapEnabled": "Minimap Enabled", + "minimapBordersEnabled": "Minimap Borders Enabled", + "showEngineAlways": "Show Engine Always", + "showNitroAlways": "Show Nitro Always", + "compassMenu": "Compass", + "compassEnabled": "Compass Enabled", + "compassEnabledDescription": "Disabling this will make it so you can't see the compass navigation", + "showStreetNamesEnabled": "Show Street Names Enabled", + "showStreetNamesDescription": "Disabling this will make it so you can't see the street names / locations", + "showCompassPointerEnabled": "Show Compass Pointer Enabled", + "showCompassPointerDescription": "Disabling this will make it so you can't see your pointer index to pinpoint your exact cardinal directions", + "cinematicMenu": "Cinematic Mode", + "showCinematicBarsEnabled": "Show Cinematic Bars Enabled", + "statusIconsSettings": "Status Icons Settings", + "designMode": "Design Mode", + "resetStatusIconSettings": "Reset Status Icon Settings", + "saveChangesToServer": "Save Changes To Server", + "globalStatusIconsSettings": "Global Status Icons Settings", + "iconShape": "Icon Shape", + "globalSizeAndPositionSection": "Global Size & Position Section", + "widthSize": "Width Size", + "heightSize": "Height Size", + "ringSize": "Ring Size", + "showProgressOutline": "Show Progress Outline", + "xAxisPosition": "X-Axis Position", + "yAxisPosition": "Y-Axis Position", + "rotation": "Rotation", + "iconXAxisPosition": "Icon X-Axis Position", + "iconYAxisPosition": "Icon Y-Axis Position", + "iconSize": "Icon Size", + "xAxisCurve": "X-Axis Curve", + "yAxisCurve": "Y-Axis Curve", + "globalColorSection": "Global Color Section", + "progressColor": "Progress Color", + "progressContrast": "Progress Contrast", + "progressShadow": "Progress Shadow", + "iconColor": "Icon Color", + "iconContrast": "Icon Contrast", + "iconShadow": "Icon Shadow", + "outlineColor": "Outline Color", + "outlineContrast": "Outline Contrast", + "outlineShadow": "Outline Shadow", + "innerColor": "Inner Color", + "singleStatusIconSettings": "Single Status Icon Settings", + "iconStatusToEdit": "Icon Status To Edit", + "singleIconSizeAndPositionSection": "Single Icon Size & Position Section", + "singleIconColorSection": "Single Icon Color Section", + "globalStatusIconLayoutSettings": "Global Status Icon Layout Settings", + "iconLayout": "Icon Layout", + "iconState": "Icon State", + "betweenIconSpacing": "Between Icon Spacing", + "yAxisSpacing": "Y-Axis Spacing", + "xAxisSpacing": "X-Axis Spacing", + "utilityFunctions": "Utility Functions", + "copyProgressColorsToIconsColors": "Copy Progress Colors To Icon Colors", + "customizationProfiles": "Customization Profiles", + "addNewProfile": "Add New Profile", + "saveHudToProfile": "Save HUD To Profile", + "applyProfileToHud": "Apply Profile To HUD", + "deleteProfile": "Delete Profile" +} \ No newline at end of file diff --git a/html/index.js b/html/index.js index 961e91c..ce4cd71 100644 --- a/html/index.js +++ b/html/index.js @@ -1,156 +1,152 @@ -var ir=Object.defineProperty,lr=Object.defineProperties;var rr=Object.getOwnPropertyDescriptors;var Bo=Object.getOwnPropertySymbols;var bi=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable;var Zo=(n,e,t)=>e in n?ir(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,sn=(n,e)=>{for(var t in e||(e={}))bi.call(e,t)&&Zo(n,t,e[t]);if(Bo)for(var t of Bo(e))ki.call(e,t)&&Zo(n,t,e[t]);return n},Et=(n,e)=>lr(n,rr(e));var Do=(n,e)=>{var t={};for(var o in n)bi.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&Bo)for(var o of Bo(n))e.indexOf(o)<0&&ki.call(n,o)&&(t[o]=n[o]);return t};var We=(n,e,t)=>(Zo(n,typeof e!="symbol"?e+"":e,t),t);import{w as Rt,g as ut,f as sr,a as Si,b as ar,c as ur,d as fr,e as cr,h as hr,i as gr,j as dr,k as mr,l as _r,m as ii,n as wr,o as br,p as kr,q as Sr,r as Wl,s as pr,t as Cr,u as vr,v as Dr,x as Ar,y as Tr,z as Ir,A as yr,B as Pt,C as Jl,S as ue,D as fe,E as ce,F as Fe,G as A,H as P,I as y,J as O,K as r,L as R,M as H,N as m,O as B,P as C,Q as T,R as E,T as U,U as de,V as nn,W as pn,X as te,Y as be,Z as un,_ as he,$ as ge,a0 as Ao,a1 as dn,a2 as mn,a3 as _n,a4 as wn,a5 as Mt,a6 as Yn,a7 as qn,a8 as Mr,a9 as so,aa as Yr,ab as Ke,ac as Te,ad as Xr,ae as Ro,af as oe,ag as ie,ah as St,ai as Or,aj as Fr,ak as Er,al as pi,am as Ci,an as Vr,ao as No,ap as Hr,aq as Rr,ar as Pr,as as Br,at as Ur,au as vi,av as Ko,aw as Zl,ax as zr,ay as Lr,az as qr,aA as Nr,aB as jr,aC as Gr,aD as Wr,aE as Jr,aF as Zr}from"./vendor.js";const Kr=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(i){if(i.ep)return;i.ep=!0;const l=t(i);fetch(i.href,l)}};Kr();const Qr=()=>{const n={heading:1,show:!1,street1:"",street2:"",showCompass:!0,showStreets:!0,showPointer:!0,showDegress:!0},{subscribe:e,set:t,update:o}=Rt(n);return sn({subscribe:e,set:t,update:o},{receiveCompassMessage(l){o(s=>(s.show=l.show,s.showCompass=l.showCompass,s.street1=l.street1,s.street2=l.street2,s.showStreets=l.showStreets,s.showPointer=l.showPointer,s.showDegress=l.showDegress,s))},receiveCompassCloseMessage(l){o(s=>(s.show=l.show,s))},receiveCompassOpenMessage(l){o(s=>(s.show=l.show,s.showCompass=l.showCompass,s))},receiveHeadingMessage(l){o(s=>(s.heading=l.value-90,s))}})};var Eo=Qr();const xr=()=>{const n={cash:0,bank:0,amount:0,plus:!1,minus:!1,showCash:!1,showBank:!1,showUpdate:!1},{subscribe:e,set:t,update:o}=Rt(n),i={finishShowingUpdate(){o(l=>(l.showUpdate=!1,l))},finishShowingMoney(l){o(s=>(l=="cash"?s.showCash=!1:s.showBank=!1,s))},formatMoney(l){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(l)},receiveShowConstantMessage(l){o(s=>(s.showCash=!0,s.showBank=!0,s.cash=l.cash,s.bank=l.bank,s))},receiveUpdateMessage(l){o(s=>(s.showUpdate=!0,s.amount=l.amount,s.bank=l.bank,s.cash=l.cash,s.minus=l.minus,s.plus=!l.minus,l.type=="cash"?s.showCash=!0:l.type=="bank"&&(s.showBank=!0),setTimeout(()=>i.finishShowingUpdate(),3e3),setTimeout(()=>i.finishShowingMoney(l.type),4e3),s))},receiveShowAccountsMessage(l){o(s=>(l.type=="cash"&&!s.showCash?(s.showCash=!0,s.cash=l.cash):l.type=="bank"&&!s.showBank&&(s.showBank=!0,s.bank=l.bank),setTimeout(()=>i.finishShowingMoney(l.type),3500),s))}};return sn({subscribe:e,set:t,update:o},i)};var Lo=xr();const li=["voice","health","armor","hunger","thirst","stress","oxygen","armed","parachute","engine","harness","cruise","nitro","dev"],$r=["standard","bottom-right-row","center-bottom-row","left-bottom-column","right-bottom-column","top-left-row","top-right-row"],Kl=["badge","circle-ring","circle-ring-whole","circle-circle-fill","circle-square-fill","circle-whole","diamond-ring","diamond-whole","hexagon-ring","hexagon-whole","horizontal-bar","icon-percentage","pill-ring","pill-whole","square-circular-fill","square-ring","square-whole","star-ring","triangle-ring"];class jo{constructor(e,{icon:t=null,isShowing:o=!1,name:i="",progressValue:l=100}={}){We(this,"height",50);We(this,"icon",null);We(this,"iconScaling",.4);We(this,"iconTranslateX",0);We(this,"iconTranslateY",0);We(this,"isShowing",!0);We(this,"name","");We(this,"progressValue",100);We(this,"shape","circle-whole");We(this,"rotateDegree",0);We(this,"translateX",0);We(this,"translateY",0);We(this,"width",50);switch(e){case"circle-circle-fill":case"circle-square-fill":case"circle-whole":this.iconScaling=.55;break;case"diamond-whole":this.height=60,this.width=60,this.iconScaling=.35;break;case"hexagon-whole":this.iconScaling=.45;break;case"horizontal-bar":this.iconScaling=.6;break}this.shape=e,this.icon=t,this.isShowing=o,this.name=i,this.progressValue=l}}class Ql extends jo{constructor(e,t={}){super(e,t);We(this,"displayOutline",!0);We(this,"iconRotateDegree",0);We(this,"ringSize",4);switch(e){case"circle-ring":case"circle-ring-whole":this.iconScaling=.4,this.ringSize=6;break;case"diamond-ring":this.height=60,this.width=60,this.iconScaling=.3,this.ringSize=1.5;break;case"hexagon-ring":this.iconScaling=.4,this.ringSize=2;break;case"square-ring":this.ringSize=12;break;case"star-ring":this.height=55,this.width=55,this.ringSize=3,this.iconScaling=.35,this.iconTranslateY=.06;break;case"triangle-ring":this.height=55,this.width=55,this.iconScaling=.3,this.iconTranslateY=.09,this.ringSize=3;break}}}const xl=[67,111,112,121,114,105,103,104,116,32,169,32,50,48,50,50,32,80,114,111,106,101,99,116,32,83,108,111,116,104,46,32,65,108,108,32,114,105,103,104,116,115,32,114,101,115,101,114,118,101,100,46];class es extends jo{constructor(e,t={}){super(e,t);We(this,"xAxisRound",5);We(this,"yAxisRound",20);switch(e){case"badge":this.height=4,this.width=35,this.iconScaling=1.4,this.xAxisRound=2,this.yAxisRound=2;break;case"pill-whole":this.height=75,this.width=42,this.iconScaling=.55,this.xAxisRound=25,this.yAxisRound=25;break}}}class ns extends Ql{constructor(e,t={}){super(e,t);We(this,"xAxisRound",5);We(this,"yAxisRound",20);switch(e){case"pill-ring":this.height=80,this.width=50,this.iconScaling=.4,this.xAxisRound=18,this.yAxisRound=18,this.ringSize=6.5}}}function Vo(n,e={}){switch(n){case"badge":case"pill-whole":return new es(n,e);case"circle-circle-fill":case"circle-square-fill":case"circle-whole":case"diamond-whole":case"hexagon-whole":case"horizontal-bar":case"square-circular-fill":return new jo(n,e);case"circle-ring":case"circle-ring-whole":case"diamond-ring":case"hexagon-ring":case"square-ring":case"star-ring":case"triangle-ring":case"square-whole":return new Ql(n,e);case"pill-ring":return new ns(n,e);default:return new jo(n,e)}}const $l="circle-ring";function Vn(n="",e=!1,t=null){return Vo($l,{isShowing:e,icon:t,name:n})}const ts=n=>{const e=Math.max(0,Math.min(100,n));return Math.round(e/100*255).toString(16).padStart(2,"0").toUpperCase()};function Je(n,e,t="",o="#FFFFFFFF",i="#212121FF"){return{iconColor:o,iconContrast:100,iconDropShadowAmount:0,innerColor:i,name:n,outlineColor:t||e+ts(40),outlineContrast:100,outlineDropShadowAmount:0,progressColor:e,progressContrast:100,progressDropShadowAmount:0}}function Hn(){return qo($l)}function qo(n){let e={};switch(n){case"badge":case"circle-ring":case"diamond-ring":case"hexagon-ring":case"pill-ring":case"square-ring":case"square-whole":case"star-ring":case"triangle-ring":e.innerColor=!0;break}return e}const Qo="PSHudMenu",$o="PSHudPlayerStatus",ei="PSHudLayout",ni="PSHudColor",er="PSHudProfile";function et(n){return Math.min(n,100)}const os=()=>{let n=localStorage.getItem(ni),e={};n&&(e=JSON.parse(n));function t(a,c){return e&&e[a]!=null?e[a]:c}function o(){return{globalColorSettings:t("globalColorSettings",{editableColors:Hn(),editSingleIconName:"voice",editSingleIconStage:0,iconColor:"",iconContrast:100,iconDropShadowAmount:0,innerColor:"",outlineColor:"",outlineContrast:100,outlineDropShadowAmount:0,progressColor:"",progressContrast:100,progressDropShadowAmount:0}),icons:{voice:t("voice",{currentEffect:0,colorEffects:[Je("not-talking","#FFFFFF"),Je("talking","#FFFF3E"),Je("radio-talking","#D64763")],editableColors:Hn()}),health:t("health",{currentEffect:0,colorEffects:[Je("alive","#21ab61"),Je("dead","#ff0000")],editableColors:Hn()}),armor:t("armor",{currentEffect:0,colorEffects:[Je("armor","#326dbf"),Je("no-armor","#ff0000")],editableColors:Hn()}),hunger:t("hunger",{currentEffect:0,colorEffects:[Je("normal","#dd6e14"),Je("starving","#ff0000")],editableColors:Hn()}),thirst:t("thirst",{currentEffect:0,colorEffects:[Je("normal","#1a7cad"),Je("thirsty","#ff0000")],editableColors:Hn()}),stress:t("stress",{currentEffect:0,colorEffects:[Je("normal","#dc0606")],editableColors:Hn()}),oxygen:t("oxygen",{currentEffect:0,colorEffects:[Je("normal","#8aa8bd")],editableColors:Hn()}),armed:t("armed",{currentEffect:0,colorEffects:[Je("normal","#ff4885")],editableColors:Hn()}),parachute:t("parachute",{currentEffect:0,colorEffects:[Je("normal","#b9ff28")],editableColors:Hn()}),engine:t("engine",{currentEffect:0,colorEffects:[Je("no-damage","#3FA554"),Je("minor-damage","#dd6e14"),Je("major-damage","#ff0000")],editableColors:Hn()}),harness:t("harness",{currentEffect:0,colorEffects:[Je("normal","#b648ff")],editableColors:Hn()}),cruise:t("cruise",{currentEffect:0,colorEffects:[Je("normal","#ff4885")],editableColors:Hn()}),nitro:t("nitro",{currentEffect:0,colorEffects:[Je("no-nitro","#ffffff"),Je("active-nitro","#D64763")],editableColors:Hn()}),dev:t("dev",{currentEffect:0,colorEffects:[Je("normal","#000000")],editableColors:Hn()})}}}const i=o(),{subscribe:l,set:s,update:f}=Rt(i);return sn({subscribe:l,set:s,update:f},{resetColorEffects(){e={},localStorage.removeItem(ni),s(o())},receiveUIUpdateMessage(a){if(!a||!Object.keys(a).length)return;let c=ut(ne);f(d=>{let h,_;for([h,_]of Object.entries(a))d.icons[h]={currentEffect:0,editableColors:qo(c.icons[h].shape),colorEffects:_.colorEffects};return d})},updateAllDefaultEffectColorSetting(a,c){f(d=>{for(let h of Object.keys(d.icons))switch(a){case"progressDropShadowAmount":case"iconDropShadowAmount":case"outlineDropShadowAmount":for(let _ of d.icons[h].colorEffects)_[a]=c;break;default:d.icons[h].colorEffects[0][a]=c;break}return d.globalColorSettings[a]=c,d})},updateAllIconShapeEditableColor(a){f(c=>{let d=qo(a);for(let h in c.icons)c.icons[h].editableColors=d;return c.globalColorSettings.editableColors=d,c})},updateDefaultEffectColorSetting(a,c,d){f(h=>(h.icons[a].colorEffects[0][c]=d,h))},updateIconColorToProgressColor(){f(a=>{for(const c of Object.values(a.icons))for(const d of c.colorEffects)d.iconColor=d.progressColor;return a})},updateIconEffectStage(a,c){f(d=>(c<0||c>d.icons[a].colorEffects.length-1||(d.icons[a].currentEffect=c),d))},updateIconShapeEditableColor(a,c){f(d=>(d.icons[a].editableColors=qo(c),d))},updateColorSetting(a,c,d,h){f(_=>(c<0||c>_.icons[a].colorEffects.length-1||(_.icons[a].colorEffects[c][d]=h),_))},updateProgressColor(a,c,d){f(h=>(c<0||c>h.icons[a].colorEffects.length-1||(h.icons[a].colorEffects[c].progressColor=d),h))}})};var re=os();const is=()=>{let n=localStorage.getItem($o),e={};n&&(e=JSON.parse(n));function t(a,c){return e&&e[a]!=null?e[a]:c}function o(){return{designMode:!1,designProgress:0,globalIconSettings:t("globalIconSettings",(k=>{var b=k,{isShowing:a,name:c,icon:d,progressValue:h}=b,_=Do(b,["isShowing","name","icon","progressValue"]);return _})(Vn())),icons:{voice:t("voice",Vn("voice",!0,Si)),health:t("health",Vn("health",!1,ar)),armor:t("armor",Vn("armor",!1,ur)),hunger:t("hunger",Vn("hunger",!1,fr)),thirst:t("thirst",Vn("thirst",!1,cr)),stress:t("stress",Vn("stress",!1,hr)),oxygen:t("oxygen",Vn("oxygen",!1,gr)),armed:t("armed",Vn("armed",!1,dr)),parachute:t("parachute",Vn("parachute",!1,mr)),engine:t("engine",Vn("engine",!1,_r)),harness:t("harness",Vn("harness",!1,ii)),cruise:t("cruise",Vn("cruise",!1,wr)),nitro:t("nitro",Vn("nitro",!1,br)),dev:t("dev",Vn("dev",!1,kr))},dynamicIcons:t("dynamicIcons",{armor:!1,engine:!1,health:!1,hunger:!1,nitro:!1,oxygen:!1,stress:!1,thirst:!1}),saveUIState:"ready",show:!1,showingOrder:["voice","health","armor","hunger","thirst","stress","oxygen","armed","parachute","engine","harness","cruise","nitro","dev"]}}const i=o(),{subscribe:l,set:s,update:f}=Rt(i),u={resetPlayerStatusIcons(){e={},localStorage.removeItem($o),s(Et(sn({},o()),{show:!0}))},updateAllIconsSettings(a,c){f(d=>{for(let h in d.icons)a in d.icons[h]&&(d.icons[h][a]=c);return d})},updateAllDisplayOutline(a){u.updateAllIconsSettings("displayOutline",a)},updateAllHeight(a){u.updateAllIconsSettings("height",a)},updateAllIconScale(a){u.updateAllIconsSettings("iconScaling",a)},updateAllRingSize(a){u.updateAllIconsSettings("ringSize",a)},updateAllRoundXAxis(a){u.updateAllIconsSettings("xAxisRound",a)},updateAllRoundYAxis(a){u.updateAllIconsSettings("yAxisRound",a)},updateAllRotateDegree(a){u.updateAllIconsSettings("rotateDegree",a)},updateAllShapes(a){f(c=>{for(let d in c.icons){let h=Vo(a,{icon:c.icons[d].icon,isShowing:c.icons[d].isShowing,name:c.icons[d].name,progressValue:c.icons[d].progressValue});c.icons[d]=h}return c.globalIconSettings=(w=>{var g=w,{isShowing:d,name:h,icon:_,progressValue:k}=g,b=Do(g,["isShowing","name","icon","progressValue"]);return b})(Vo(a,{icon:c.globalIconSettings.icon,isShowing:c.globalIconSettings.isShowing,name:c.globalIconSettings.name})),c})},updateAllTranslateIconX(a){u.updateAllIconsSettings("iconTranslateX",a)},updateAllTranslateIconY(a){u.updateAllIconsSettings("iconTranslateY",a)},updateAllTranslateX(a){u.updateAllIconsSettings("translateX",a)},updateAllTranslateY(a){u.updateAllIconsSettings("translateY",a)},updateAllWidth(a){u.updateAllIconsSettings("width",a)},updateIconShape(a,c){f(d=>{let h=Vo(c,{icon:d.icons[a].icon,isShowing:d.icons[a].isShowing,name:d.icons[a].name,progressValue:d.icons[a].progressValue});return d.icons[a]=h,d.icons[a].shape=c,d})},updateIconSetting(a,c,d){f(h=>(h.icons[a][c]=d,h))},updateShowingDynamicIcon(a,c){let d=!1;return f(h=>{switch(a){case"armor":h.icons.armor.isShowing=u.staticGenericZeroHandleShow(c,h.icons.armor.progressValue),d=h.icons.armor.isShowing;break;case"engine":h.icons.engine.isShowing=u.staticEngineHandleShow(c,h.icons.engine.progressValue),d=h.icons.engine.isShowing;break;case"health":h.icons.health.isShowing=u.staticGenericHundredHandleShow(c,h.icons.health.progressValue),d=h.icons.health.isShowing;break;case"hunger":h.icons.hunger.isShowing=u.staticGenericHundredHandleShow(c,h.icons.hunger.progressValue),d=h.icons.hunger.isShowing;break;case"nitro":h.icons.nitro.isShowing=u.staticNitroHandleShow(c,h.icons.nitro.progressValue,h.icons.engine.progressValue),d=h.icons.nitro.isShowing;break;case"oxygen":h.icons.oxygen.isShowing=u.staticGenericHundredHandleShow(c,h.icons.oxygen.progressValue),d=h.icons.oxygen.isShowing;break;case"stress":h.icons.stress.isShowing=u.staticGenericZeroHandleShow(c,h.icons.stress.progressValue),d=h.icons.stress.isShowing;break;case"thirst":h.icons.thirst.isShowing=u.staticGenericHundredHandleShow(c,h.icons.thirst.progressValue),d=h.icons.thirst.isShowing;break}return h}),d},updateAllShowingDynamicIcons(a){f(c=>{for(const d in c.dynamicIcons)c.dynamicIcons[d]=a,c.icons[d].isShowing=u.updateShowingDynamicIcon(d,a);return c})},receiveShowMessage(a){f(c=>(c.show=a.show,c))},receiveStatusUpdateMessage(a){f(c=>(c.show=a.show,c.icons.health.progressValue=et(a.health),c.icons.armor.progressValue=et(a.armor),c.icons.thirst.progressValue=et(a.thirst),c.icons.hunger.progressValue=et(a.hunger),c.icons.stress.progressValue=et(a.stress),c.icons.voice.progressValue=et(a.voice*16.6),c.icons.oxygen.progressValue=et(a.oxygen),c.icons.parachute.progressValue=et(a.parachute),c.icons.engine.progressValue=et(a.engine),c.icons.harness.progressValue=et(a.hp*5),c.icons.cruise.progressValue=et(a.speed),c.icons.nitro.progressValue=et(a.nos||0),c.icons.health.isShowing=u.staticGenericHundredHandleShow(c.dynamicIcons.health,c.icons.health.progressValue),a.playerDead?(re.updateIconEffectStage("health",1),c.icons.health.progressValue=100):re.updateIconEffectStage("health",0),c.icons.armor.isShowing=u.staticGenericZeroHandleShow(c.dynamicIcons.armor,c.icons.armor.progressValue),a.armor<=0?re.updateIconEffectStage("armor",1):re.updateIconEffectStage("armor",0),c.icons.hunger.isShowing=u.staticGenericHundredHandleShow(c.dynamicIcons.hunger,c.icons.hunger.progressValue),a.hunger<=30?re.updateIconEffectStage("hunger",1):re.updateIconEffectStage("hunger",0),c.icons.thirst.isShowing=u.staticGenericHundredHandleShow(c.dynamicIcons.thirst,c.icons.thirst.progressValue),a.thirst<=30?re.updateIconEffectStage("thirst",1):re.updateIconEffectStage("thirst",0),c.icons.stress.isShowing=u.staticGenericZeroHandleShow(c.dynamicIcons.stress,c.icons.stress.progressValue),c.icons.oxygen.isShowing=u.staticGenericHundredHandleShow(c.dynamicIcons.oxygen,c.icons.oxygen.progressValue),c.icons.engine.isShowing=u.staticEngineHandleShow(c.dynamicIcons.engine,c.icons.engine.progressValue),a.engine<=45?re.updateIconEffectStage("engine",2):a.engine<=75&&a.engine>=46?re.updateIconEffectStage("engine",1):a.engine<=100&&re.updateIconEffectStage("engine",0),c.icons.nitro.isShowing=u.staticNitroHandleShow(c.dynamicIcons.nitro,c.icons.nitro.progressValue,c.icons.engine.progressValue),a.nitroActive?re.updateIconEffectStage("nitro",1):re.updateIconEffectStage("nitro",0),a.talking?a.radioTalking?re.updateIconEffectStage("voice",2):re.updateIconEffectStage("voice",1):re.updateIconEffectStage("voice",0),a.radioChannel&&a.radioChannel>0?c.icons.voice.icon=sr:c.icons.voice.icon=Si,a.cruise?c.icons.cruise.isShowing=!0:c.icons.cruise.isShowing=!1,a.harness?c.icons.harness.isShowing=!0:c.icons.harness.isShowing=!1,a.armed?c.icons.armed.isShowing=!0:c.icons.armed.isShowing=!1,a.parachute>=0?c.icons.parachute.isShowing=!0:c.icons.parachute.isShowing=!1,a.dev?c.icons.dev.isShowing=!0:c.icons.dev.isShowing=!1,c))},receiveUIUpdateMessage(a){!a||!Object.keys(a).length||f(c=>{let d,h;for([d,h]of Object.entries(a))c.icons[d]=sn(sn({},Vo(h.shape,{icon:c.icons[d].icon,isShowing:c.icons[d].isShowing,name:c.icons[d].name,progressValue:c.icons[d].progressValue})),h);return c.saveUIState="ready",c})},receiveProfileData(a){u.receiveUIUpdateMessage(a.icons),f(c=>(c.globalIconSettings=a.globalIconSettings,c.showingOrder=a.showingOrder,c))},staticGenericZeroHandleShow(a,c){return a?!0:c!=0},staticEngineHandleShow(a,c){return a?!(c<0):c>=95?!1:!(c<0)},staticGenericHundredHandleShow(a,c){return a?!0:!(c>=100)},staticNitroHandleShow(a,c,d){return a?d>0:!(c<=0)}};return sn({subscribe:l,set:s,update:f},u)};var ne=is();const ls={biohazard:pr,database:Cr,dollarsign:vr,dumbbell:Dr,exclamation:Wl,lightbulb:Ar,locationarrow:Tr,swimming:Ir,wind:yr};function rs(n){return ls[n]||Wl}const ss=()=>{const n={},{subscribe:e,set:t,update:o}=Rt(n);return sn({subscribe:e,set:t,update:o},{receiveBuffStatusMessage(l){const s=l.buffName;o(f=>{if(!f[s]){const a=ut(ne).icons.health;let c=Et(sn({},a),{icon:rs(l.iconName),isShowing:l.display||!0,name:s,progressValue:l.progressValue||0}),d=l.progressColor||"#FFD700",h=l.outlineColor,_=l.iconColor||"#FFFFFF";if(!h){let b=Sr(d);b.opacity=.4,h=b.formatHex8()}let k=Et(sn({},c),{iconColor:_,outlineColor:h,progressColor:d});return f[s]=k,f}return!isNaN(l.progressValue)&&l.progressValue>=0?f[s].progressValue=l.progressValue:l.display!=null&&l.display!=null&&!l.display?f=delete f[s]&&f:console.error("PS-Buffs error: Buff State Message malformed!"),f})},receiveEnhancementStatusMessage(l){const s=l.enhancementName;if(!s){console.error("PS-Buffs error: Enchancement Message name malformed:",l.enhancementName);return}const f=s.replace("super-","");if(!li.includes(f)){console.error("PS-Buffs error: Enhancement Message name not valid:",l.enhancementName);return}o(u=>{if(!u[f]&&l.display&&l.iconColor)u[f]={iconColor:l.iconColor};else if(l.display===!1){if(!u[f])return console.error("PS-Buffs error: Enchancement name not found:",l.enhancementName),u;u=delete u[f]&&u}else console.error("PS-Buffs error: Enhancement Message malformed:",l);return u})}})};var ti=ss();const as=()=>{let n=localStorage.getItem(ei),e={};n&&(e=JSON.parse(n));function t(a,c){return e&&e[a]!=null?e[a]:c}function o(){return{layout:t("layout","standard"),iconBetweenSpacing:t("iconBetweenSpacing",2),xAxisSpacing:t("xAxisSpacing",0),yAxisSpacing:t("yAxisSpacing",0)}}const i=o(),{subscribe:l,set:s,update:f}=Rt(i);return sn({subscribe:l,set:s,update:f},{resetLayout(){e={},localStorage.removeItem(ei),s(o())},receiveUIUpdateMessage(a){f(c=>(c.layout=a.layout,c.iconBetweenSpacing=a.iconBetweenSpacing,c.xAxisSpacing=a.xAxisSpacing,c.yAxisSpacing=a.yAxisSpacing,c))},updateLayout(a){f(c=>(c.layout=a,c))}})};var ft=as();const us=()=>{const n={fuelColor:"#FFFFFF",altitude:0,fuel:0,speed:0,show:!1,showAltitude:!1,showSeatBelt:!1,showSquare:!1,showSquareBorder:!1,ShowCircle:!1,showCircleBorder:!1,seatbeltColor:"#e85b14"},{subscribe:e,set:t,update:o}=Rt(n);return sn({subscribe:e,set:t,update:o},{receiveShowMessage(l){o(s=>(s.show=l.show,s.showSeatBelt=l.seatbelt,s))},receiveUpdateMessage(l){o(s=>(s.show=l.show,s.speed=l.speed,s.altitude=l.altitude,s.fuel=et(l.fuel),s.showSeatBelt=l.showSeatbelt,s.showAltitude=l.showAltitude,s.showSquareBorder=l.showSquareB,s.showCircleBorder=l.showCircleB,l.seatbelt?s.showSeatBelt=!1:s.showSeatBelt=!0,l.fuel<=20?s.fuelColor="#ff0000":l.fuel<=30?s.fuelColor="#dd6e14":s.fuelColor="#FFFFFF",l.isPaused&&(s.show=!1),s))}})};var Go=us();const fs=()=>{let n=localStorage.getItem(er),e={};n&&(e=JSON.parse(n));function t(a,c){return e&&e[a]!=null?e[a]:c}function o(){return t("profiles",[])}const i=o(),{subscribe:l,set:s,update:f}=Rt(i);return sn({subscribe:l,set:s,update:f},{addNewProfile(){f(a=>{let c=a.length+1,d="Profile#"+c;return a=[...a,{name:d,editingName:!1,savedData:""}],a})},applyProfileToHud(a){f(c=>{if(c[a]&&c[a].savedData){let d=JSON.parse(c[a].savedData);ne.receiveProfileData(d.playerStatusIconData),re.receiveUIUpdateMessage(d.colorData.icons),ft.receiveUIUpdateMessage(d.layoutData)}return c})},deleteProfile(a){f(c=>(c=[...c.slice(0,a),...c.slice(a+1)],c))},saveHUDToProfile(a){const c=ut(ne),d=ut(re),h=ut(ft);let _={playerStatusIconData:c,colorData:d,layoutData:h};f(k=>(k[a].savedData=JSON.stringify(_),k))}})};var Vt=fs();function cs(){function n(e){switch(e.data.action){case"baseplate":switch(e.data.topic){case"compassupdate":Eo.receiveCompassMessage(e.data);break;case"opencompass":Eo.receiveCompassOpenMessage(e.data);break;case"closecompass":Eo.receiveCompassCloseMessage(e.data);break}break;case"car":switch(e.data.topic){case"display":Go.receiveShowMessage(e.data);break;case"status":Go.receiveUpdateMessage(e.data);break}break;case"externalstatus":switch(e.data.topic){case"buff":ti.receiveBuffStatusMessage(e.data);break;case"enhancement":ti.receiveEnhancementStatusMessage(e.data);break}break;case"hudtick":switch(e.data.topic){case"display":ne.receiveShowMessage(e.data);break;case"status":ne.receiveStatusUpdateMessage(e.data);break;default:ne.receiveStatusUpdateMessage(e.data);break}break;case"menu":switch(e.data.topic){case"adminonly":Ye.receiveAdminMessage(e.data);break;case"restart":Ye.receiveRestartMessage();break}break;case"open":Ye.receiveMessage();break;case"show":Lo.receiveShowAccountsMessage(e.data);break;case"showconstant":Lo.receiveShowConstantMessage(e.data);break;case"update":Eo.receiveHeadingMessage(e.data);break;case"updatemoney":Lo.receiveUpdateMessage(e.data);break;case"updateUISettings":if(!e.data.icons||!e.data.layout||!e.data.colors)return;ne.receiveUIUpdateMessage(e.data.icons),ft.receiveUIUpdateMessage(e.data.layout),re.receiveUIUpdateMessage(e.data.colors);break}}Pt(()=>window.addEventListener("message",n)),Jl(()=>window.removeEventListener("message",n))}async function Me(n,e={}){const t={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(e)},o="ps-hud";try{return await(await fetch(`https://${o}/${n}`,t)).json()}catch{}}function hs(n){let e={};for(const[t,o]of Object.entries(n)){let i=(c=>{var d=c,{icon:l,isShowing:s,name:f,progressValue:u}=d,a=Do(d,["icon","isShowing","name","progressValue"]);return a})(o);e[t]=i}return e}function gs(n){let e={};for(const[t,o]of Object.entries(n)){let i=(u=>{var a=u,{currentEffect:l,editableColors:s}=a,f=Do(a,["currentEffect","editableColors"]);return f})(o);e[t]=i}return e}function ds(){const n=ut(ne),e=ut(re),t=ut(ft),o=hs(n.icons),i=gs(e.icons);Me("saveUISettings",{icons:o,layout:t,colors:i})}async function ms(){const n=ut(ne),e=ut(re),t=ut(ft),o=ut(Vt);localStorage.setItem(ni,JSON.stringify(Et(sn({},e.icons),{globalColorSettings:e.globalColorSettings}))),localStorage.setItem($o,JSON.stringify(Et(sn({},n.icons),{globalIconSettings:n.globalIconSettings,dynamicIcons:n.dynamicIcons}))),localStorage.setItem(ei,JSON.stringify(t)),localStorage.setItem(er,JSON.stringify({profiles:o}))}const An=!1,_s=()=>{let n=localStorage.getItem(Qo),e={};n&&(e=JSON.parse(n));function t(a,c){return e&&e[a]!=null?e[a]:c}function o(){return{show:An,isRestarting:!1,adminOnly:An,isAdmin:An,isCineamticModeChecked:t("isCineamticModeChecked",!1),isCinematicNotifyChecked:t("isCinematicNotifChecked",!0),isCompassFollowChecked:t("isCompassFollowChecked",!0),isMapEnabledChecked:t("isHideMapChecked",!0),isListSoundsChecked:t("isListSoundsChecked",!0),isLowFuelAlertChecked:t("isLowFuelChecked",!0),isMapNotifyChecked:t("isMapNotifChecked",!0),isOpenMenuSoundsChecked:t("isOpenMenuSoundsChecked",!0),isOutCompassChecked:t("isOutCompassChecked",!0),isOutMapChecked:t("isOutMapChecked",!0),isPointerShowChecked:t("isPointerShowChecked",!0),isResetSoundsChecked:t("isResetSoundsChecked",!0),isShowCompassChecked:t("isShowCompassChecked",!0),isShowStreetsChecked:t("isShowStreetsChecked",!0),isToggleMapBordersChecked:t("isToggleMapBordersChecked",!0),isToggleMapShapeChecked:t("isToggleMapShapeChecked","circle")}}const i=o(),{subscribe:l,set:s,update:f}=Rt(i);l(a=>{let c=sn({},a);delete c.show,delete c.isAdmin,delete c.isRestarting,localStorage.setItem(Qo,JSON.stringify(c))});const u={closeMenu(){f(a=>(a.show=!1,a)),Me("closeMenu")},handleKeyUp(a){a.key=="Escape"&&(ms(),u.closeMenu())},openMenu(){f(a=>(a.show=!0,a))},receiveMessage(){u.openMenu()},receiveAdminMessage(a){f(c=>(c.adminOnly=a.adminOnly,c.isAdmin=a.isAdmin,c))},receiveRestartMessage(){f(a=>(a.isRestarting=!1,a))},resetHudMenuSetting(){e={},localStorage.removeItem(Qo),f(a=>(a=Et(sn({},o()),{show:!0,adminOnly:a.adminOnly,isAdmin:a.isAdmin}),a)),ne.updateAllShowingDynamicIcons(!1)},sendMenuSettingsToClient(){f(a=>(Me("updateMenuSettingsToClient",{isOutMapChecked:a.isOutMapChecked,isOutCompassChecked:a.isOutCompassChecked,isCompassFollowChecked:a.isCompassFollowChecked,isOpenMenuSoundsChecked:a.isOpenMenuSoundsChecked,isResetSoundsChecked:a.isResetSoundsChecked,isListSoundsChecked:a.isListSoundsChecked,isMapNotifyChecked:a.isMapNotifyChecked,isLowFuelAlertChecked:a.isLowFuelAlertChecked,isCinematicNotifyChecked:a.isCinematicNotifyChecked,isToggleMapShapeChecked:a.isToggleMapShapeChecked,isMapEnabledChecked:a.isMapEnabledChecked,isToggleMapBordersChecked:a.isToggleMapBordersChecked,isShowCompassChecked:a.isShowCompassChecked,isShowStreetsChecked:a.isShowStreetsChecked,isPointerShowChecked:a.isPointerShowChecked,isCineamticModeChecked:a.isCineamticModeChecked}),a))}};return u.sendMenuSettingsToClient(),sn({subscribe:l,set:s,update:f},u)};var Ye=_s();function ws(n){let e,t,o,i,l,s,f,u,a,c,d;return o=new Fe({props:{class:"mb-3",icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+(n[2]?n[2]:n[12])}}),{c(){e=A("div"),t=A("div"),P(o.$$.fragment),i=y(),l=O("svg"),s=O("rect"),a=O("rect"),r(t,"class","flex flex-col justify-center"),R(t,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(s,"width",f=n[17]-.2),r(s,"height",u=n[0]-.2),r(s,"fill",n[9]),r(s,"rx",n[18]),r(s,"ry",n[19]),R(s,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),R(s,"overflow","visible"),r(a,"width",n[20]),r(a,"height",n[0]),r(a,"fill",n[12]),r(a,"rx",n[18]),r(a,"ry",n[19]),R(a,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(l,"height",n[0]),r(l,"width",n[17]),r(l,"transform",c=` - `+(n[15]|n[16]?"translate("+n[15]+" "+n[16]+")":"")),r(e,"class","flex flex-col justify-center px-1 pb-2 pt-4 rounded-lg"),R(e,"background-color",n[8])},m(h,_){H(h,e,_),m(e,t),B(o,t,null),m(e,i),m(e,l),m(l,s),m(l,a),d=!0},p(h,[_]){const k={};_&2&&(k.icon=h[1]),_&32&&(k.scale=h[5]),_&64&&(k.translateX=h[6]),_&128&&(k.translateY=h[7]),_&4100&&(k.style="color:"+(h[2]?h[2]:h[12])),o.$set(k),(!d||_&28)&&R(t,"filter",(h[4]?"drop-shadow(0px 0px "+h[4]+"px "+h[2]+")":"")+" "+("contrast("+h[3]+"%)")),(!d||_&131072&&f!==(f=h[17]-.2))&&r(s,"width",f),(!d||_&1&&u!==(u=h[0]-.2))&&r(s,"height",u),(!d||_&512)&&r(s,"fill",h[9]),(!d||_&262144)&&r(s,"rx",h[18]),(!d||_&524288)&&r(s,"ry",h[19]),(!d||_&3584)&&R(s,"filter",(h[11]?"drop-shadow(0px 0px "+h[11]+"px "+h[9]+")":"")+" "+("contrast("+h[10]+"%)")),(!d||_&1048576)&&r(a,"width",h[20]),(!d||_&1)&&r(a,"height",h[0]),(!d||_&4096)&&r(a,"fill",h[12]),(!d||_&262144)&&r(a,"rx",h[18]),(!d||_&524288)&&r(a,"ry",h[19]),(!d||_&28672)&&R(a,"filter",(h[14]?"drop-shadow(0px 0px "+h[14]+"px "+h[12]+")":"")+" "+("contrast("+h[13]+"%)")),(!d||_&1)&&r(l,"height",h[0]),(!d||_&131072)&&r(l,"width",h[17]),(!d||_&98304&&c!==(c=` - `+(h[15]|h[16]?"translate("+h[15]+" "+h[16]+")":"")))&&r(l,"transform",c),(!d||_&256)&&R(e,"background-color",h[8])},i(h){d||(C(o.$$.fragment,h),d=!0)},o(h){T(o.$$.fragment,h),d=!1},d(h){h&&E(e),U(o)}}}function bs(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{innerColor:h="#212121"}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,{xAxisRound:j=5}=e,{yAxisRound:x=20}=e,{name:V=""}=e,Q=0;const M=nn(D,{duration:600,easing:pn});return de(n,M,X=>t(25,o=X)),n.$$set=X=>{"height"in X&&t(0,i=X.height),"icon"in X&&t(1,l=X.icon),"iconColor"in X&&t(2,s=X.iconColor),"iconContrast"in X&&t(3,f=X.iconContrast),"iconDropShadowAmount"in X&&t(4,u=X.iconDropShadowAmount),"iconScaling"in X&&t(5,a=X.iconScaling),"iconTranslateX"in X&&t(6,c=X.iconTranslateX),"iconTranslateY"in X&&t(7,d=X.iconTranslateY),"innerColor"in X&&t(8,h=X.innerColor),"outlineColor"in X&&t(9,_=X.outlineColor),"outlineContrast"in X&&t(10,k=X.outlineContrast),"outlineDropShadowAmount"in X&&t(11,b=X.outlineDropShadowAmount),"progressColor"in X&&t(12,w=X.progressColor),"progressContrast"in X&&t(13,g=X.progressContrast),"progressDropShadowAmount"in X&&t(14,S=X.progressDropShadowAmount),"progressValue"in X&&t(22,D=X.progressValue),"rotateDegree"in X&&t(23,Y=X.rotateDegree),"translateX"in X&&t(15,$=X.translateX),"translateY"in X&&t(16,W=X.translateY),"width"in X&&t(17,q=X.width),"xAxisRound"in X&&t(18,j=X.xAxisRound),"yAxisRound"in X&&t(19,x=X.yAxisRound),"name"in X&&t(24,V=X.name)},n.$$.update=()=>{n.$$.dirty&4194304&&M.set(D),n.$$.dirty&4194304&&M.set(D),n.$$.dirty&33685504&&t(20,Q=o/100*q)},[i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,$,W,q,j,x,Q,M,D,Y,V,o]}class ks extends ue{constructor(e){super();fe(this,e,bs,ws,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:22,rotateDegree:23,translateX:15,translateY:16,width:17,xAxisRound:18,yAxisRound:19,name:24})}}function Ss(n){let e,t,o,i,l,s,f,u,a,c,d;return f=new Fe({props:{icon:n[0],scale:n[4],translateX:n[5],translateY:n[6],style:"color:"+n[1]}}),{c(){e=O("svg"),t=O("g"),o=O("circle"),i=O("circle"),s=O("g"),P(f.$$.fragment),r(o,"fill","transparent"),r(o,"stroke",n[7]),r(o,"stroke-width",n[16]),r(o,"r",n[17]),r(o,"cx",n[15]),r(o,"cy",n[15]),R(o,"filter",(n[9]?"drop-shadow(0px 0px "+n[9]+"px "+n[7]+")":"")+" "+("contrast("+n[8]+"%)")),r(i,"fill",n[10]),r(i,"r",n[18]),r(i,"cx",n[15]),r(i,"cy",n[15]),R(i,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)")),r(t,"transform",l="translate("+n[13]+" "+n[14]+")"),R(s,"filter",(n[3]?"drop-shadow(0px 0px "+n[3]+"px "+n[1]+")":"")+" "+("contrast("+n[2]+"%)")),r(e,"width",u=n[15]*2),r(e,"height",a=n[15]*2),r(e,"viewBox",c="0 0 "+n[15]*2+" "+n[15]*2),r(e,"overflow","visible")},m(h,_){H(h,e,_),m(e,t),m(t,o),m(t,i),m(e,s),B(f,s,null),d=!0},p(h,[_]){(!d||_&128)&&r(o,"stroke",h[7]),(!d||_&65536)&&r(o,"stroke-width",h[16]),(!d||_&131072)&&r(o,"r",h[17]),(!d||_&32768)&&r(o,"cx",h[15]),(!d||_&32768)&&r(o,"cy",h[15]),(!d||_&896)&&R(o,"filter",(h[9]?"drop-shadow(0px 0px "+h[9]+"px "+h[7]+")":"")+" "+("contrast("+h[8]+"%)")),(!d||_&1024)&&r(i,"fill",h[10]),(!d||_&262144)&&r(i,"r",h[18]),(!d||_&32768)&&r(i,"cx",h[15]),(!d||_&32768)&&r(i,"cy",h[15]),(!d||_&7168)&&R(i,"filter",(h[12]?"drop-shadow(0px 0px "+h[12]+"px "+h[10]+")":"")+" "+("contrast("+h[11]+"%)")),(!d||_&24576&&l!==(l="translate("+h[13]+" "+h[14]+")"))&&r(t,"transform",l);const k={};_&1&&(k.icon=h[0]),_&16&&(k.scale=h[4]),_&32&&(k.translateX=h[5]),_&64&&(k.translateY=h[6]),_&2&&(k.style="color:"+h[1]),f.$set(k),(!d||_&14)&&R(s,"filter",(h[3]?"drop-shadow(0px 0px "+h[3]+"px "+h[1]+")":"")+" "+("contrast("+h[2]+"%)")),(!d||_&32768&&u!==(u=h[15]*2))&&r(e,"width",u),(!d||_&32768&&a!==(a=h[15]*2))&&r(e,"height",a),(!d||_&32768&&c!==(c="0 0 "+h[15]*2+" "+h[15]*2))&&r(e,"viewBox",c)},i(h){d||(C(f.$$.fragment,h),d=!0)},o(h){T(f.$$.fragment,h),d=!1},d(h){h&&E(e),U(f)}}}function ps(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,j=25,x=25,V=i,Q=j-x/2,M=0;const X=nn(D,{duration:600,easing:pn});return de(n,X,p=>t(26,o=p)),n.$$set=p=>{"height"in p&&t(20,i=p.height),"icon"in p&&t(0,l=p.icon),"iconColor"in p&&t(1,s=p.iconColor),"iconContrast"in p&&t(2,f=p.iconContrast),"iconDropShadowAmount"in p&&t(3,u=p.iconDropShadowAmount),"iconScaling"in p&&t(4,a=p.iconScaling),"iconTranslateX"in p&&t(5,c=p.iconTranslateX),"iconTranslateY"in p&&t(6,d=p.iconTranslateY),"name"in p&&t(21,h=p.name),"outlineColor"in p&&t(7,_=p.outlineColor),"outlineContrast"in p&&t(8,k=p.outlineContrast),"outlineDropShadowAmount"in p&&t(9,b=p.outlineDropShadowAmount),"progressColor"in p&&t(10,w=p.progressColor),"progressContrast"in p&&t(11,g=p.progressContrast),"progressDropShadowAmount"in p&&t(12,S=p.progressDropShadowAmount),"progressValue"in p&&t(22,D=p.progressValue),"rotateDegree"in p&&t(23,Y=p.rotateDegree),"translateX"in p&&t(13,$=p.translateX),"translateY"in p&&t(14,W=p.translateY),"width"in p&&t(24,q=p.width)},n.$$.update=()=>{n.$$.dirty&4194304&&X.set(D),n.$$.dirty&51478528&&(t(25,V=i>q?i:q),t(15,j=V/2),t(16,x=j),t(17,Q=j-x/2)),n.$$.dirty&67141632&&t(18,M=o/100*j)},[l,s,f,u,a,c,d,_,k,b,w,g,S,$,W,j,x,Q,M,X,i,h,D,Y,q,V,o]}class Cs extends ue{constructor(e){super();fe(this,e,ps,Ss,ce,{height:20,icon:0,iconColor:1,iconContrast:2,iconDropShadowAmount:3,iconScaling:4,iconTranslateX:5,iconTranslateY:6,name:21,outlineColor:7,outlineContrast:8,outlineDropShadowAmount:9,progressColor:10,progressContrast:11,progressDropShadowAmount:12,progressValue:22,rotateDegree:23,translateX:13,translateY:14,width:24})}}function Di(n){let e,t,o,i;return{c(){e=O("circle"),r(e,"fill","transparent"),r(e,"stroke",n[9]),r(e,"stroke-dashoffset",t=0),r(e,"stroke-dasharray",o=n[21]+" "+n[21]),r(e,"stroke-width",n[15]),r(e,"r",n[20]),r(e,"cx",n[19]),r(e,"cy",n[19]),r(e,"transform",i="rotate(-90, "+n[19]+", "+n[19]+")"),R(e,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)"))},m(l,s){H(l,e,s)},p(l,s){s&512&&r(e,"stroke",l[9]),s&2097152&&o!==(o=l[21]+" "+l[21])&&r(e,"stroke-dasharray",o),s&32768&&r(e,"stroke-width",l[15]),s&1048576&&r(e,"r",l[20]),s&524288&&r(e,"cx",l[19]),s&524288&&r(e,"cy",l[19]),s&524288&&i!==(i="rotate(-90, "+l[19]+", "+l[19]+")")&&r(e,"transform",i),s&3584&&R(e,"filter",(l[11]?"drop-shadow(0px 0px "+l[11]+"px "+l[9]+")":"")+" "+("contrast("+l[10]+"%)"))},d(l){l&&E(e)}}}function vs(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S=n[0]&&Di(n);return _=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=O("svg"),t=O("g"),o=O("circle"),S&&S.c(),u=O("circle"),h=O("g"),P(_.$$.fragment),r(o,"fill",n[8]),r(o,"stroke","transparent"),r(o,"stroke-dashoffset",0),r(o,"stroke-dasharray",i=n[21]+" "+n[21]),r(o,"stroke-width",l=n[15]-.6),r(o,"r",s=n[20]-n[15]/2+.1),r(o,"cx",n[19]),r(o,"cy",n[19]),r(o,"transform",f="rotate(-90, "+n[19]+", "+n[19]+")"),r(u,"stroke",n[12]),r(u,"fill","transparent"),r(u,"stroke-dashoffset",n[22]),r(u,"stroke-dasharray",a=n[21]+" "+n[21]),r(u,"stroke-width",n[15]),r(u,"r",n[20]),r(u,"cx",n[19]),r(u,"cy",n[19]),r(u,"transform",c="rotate(-90, "+n[19]+", "+n[19]+")"),R(u,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(t,"transform",d=` - `+(n[16]>0?"rotate("+n[16]+" "+n[19]+" "+n[19]+")":"")+` - `+("translate("+n[17]+" "+n[18]+")")),R(h,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",k=n[19]*2),r(e,"height",b=n[19]*2),r(e,"viewBox",w="0 0 "+n[19]*2+" "+n[19]*2),r(e,"overflow","visible")},m(D,Y){H(D,e,Y),m(e,t),m(t,o),S&&S.m(t,null),m(t,u),m(e,h),B(_,h,null),g=!0},p(D,[Y]){(!g||Y&256)&&r(o,"fill",D[8]),(!g||Y&2097152&&i!==(i=D[21]+" "+D[21]))&&r(o,"stroke-dasharray",i),(!g||Y&32768&&l!==(l=D[15]-.6))&&r(o,"stroke-width",l),(!g||Y&1081344&&s!==(s=D[20]-D[15]/2+.1))&&r(o,"r",s),(!g||Y&524288)&&r(o,"cx",D[19]),(!g||Y&524288)&&r(o,"cy",D[19]),(!g||Y&524288&&f!==(f="rotate(-90, "+D[19]+", "+D[19]+")"))&&r(o,"transform",f),D[0]?S?S.p(D,Y):(S=Di(D),S.c(),S.m(t,u)):S&&(S.d(1),S=null),(!g||Y&4096)&&r(u,"stroke",D[12]),(!g||Y&4194304)&&r(u,"stroke-dashoffset",D[22]),(!g||Y&2097152&&a!==(a=D[21]+" "+D[21]))&&r(u,"stroke-dasharray",a),(!g||Y&32768)&&r(u,"stroke-width",D[15]),(!g||Y&1048576)&&r(u,"r",D[20]),(!g||Y&524288)&&r(u,"cx",D[19]),(!g||Y&524288)&&r(u,"cy",D[19]),(!g||Y&524288&&c!==(c="rotate(-90, "+D[19]+", "+D[19]+")"))&&r(u,"transform",c),(!g||Y&28672)&&R(u,"filter",(D[14]?"drop-shadow(0px 0px "+D[14]+"px "+D[12]+")":"")+" "+("contrast("+D[13]+"%)")),(!g||Y&983040&&d!==(d=` - `+(D[16]>0?"rotate("+D[16]+" "+D[19]+" "+D[19]+")":"")+` - `+("translate("+D[17]+" "+D[18]+")")))&&r(t,"transform",d);const $={};Y&2&&($.icon=D[1]),Y&32&&($.scale=D[5]),Y&64&&($.translateX=D[6]),Y&128&&($.translateY=D[7]),Y&4&&($.style="color:"+D[2]),_.$set($),(!g||Y&28)&&R(h,"filter",(D[4]?"drop-shadow(0px 0px "+D[4]+"px "+D[2]+")":"")+" "+("contrast("+D[3]+"%)")),(!g||Y&524288&&k!==(k=D[19]*2))&&r(e,"width",k),(!g||Y&524288&&b!==(b=D[19]*2))&&r(e,"height",b),(!g||Y&524288&&w!==(w="0 0 "+D[19]*2+" "+D[19]*2))&&r(e,"viewBox",w)},i(D){g||(C(_.$$.fragment,D),g=!0)},o(D){T(_.$$.fragment,D),g=!1},d(D){D&&E(e),S&&S.d(),U(_)}}}function Ds(n,e,t){let o,{displayOutline:i=!0}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{innerColor:k="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:g=100}=e,{outlineDropShadowAmount:S=0}=e,{progressColor:D="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:$=0}=e,{progressValue:W=100}=e,{ringSize:q=4}=e,{rotateDegree:j=0}=e,{translateX:x=0}=e,{translateY:V=0}=e,{width:Q=50}=e,M=25;const X=nn(W,{duration:600,easing:pn});de(n,X,v=>t(29,o=v));let p=M-q/2,z=p*2*Math.PI,J=z-o/100*z;return n.$$set=v=>{"displayOutline"in v&&t(0,i=v.displayOutline),"height"in v&&t(24,l=v.height),"icon"in v&&t(1,s=v.icon),"iconColor"in v&&t(2,f=v.iconColor),"iconContrast"in v&&t(3,u=v.iconContrast),"iconDropShadowAmount"in v&&t(4,a=v.iconDropShadowAmount),"iconRotateDegree"in v&&t(25,c=v.iconRotateDegree),"iconScaling"in v&&t(5,d=v.iconScaling),"iconTranslateX"in v&&t(6,h=v.iconTranslateX),"iconTranslateY"in v&&t(7,_=v.iconTranslateY),"innerColor"in v&&t(8,k=v.innerColor),"name"in v&&t(26,b=v.name),"outlineColor"in v&&t(9,w=v.outlineColor),"outlineContrast"in v&&t(10,g=v.outlineContrast),"outlineDropShadowAmount"in v&&t(11,S=v.outlineDropShadowAmount),"progressColor"in v&&t(12,D=v.progressColor),"progressContrast"in v&&t(13,Y=v.progressContrast),"progressDropShadowAmount"in v&&t(14,$=v.progressDropShadowAmount),"progressValue"in v&&t(27,W=v.progressValue),"ringSize"in v&&t(15,q=v.ringSize),"rotateDegree"in v&&t(16,j=v.rotateDegree),"translateX"in v&&t(17,x=v.translateX),"translateY"in v&&t(18,V=v.translateY),"width"in v&&t(28,Q=v.width)},n.$$.update=()=>{n.$$.dirty&134217728&&X.set(W),n.$$.dirty&285212672&&t(19,M=l>Q?l/2:Q/2),n.$$.dirty&1605632&&(t(20,p=M-q/2),t(21,z=p*2*Math.PI)),n.$$.dirty&538968064&&t(22,J=z-o/100*z)},[i,s,f,u,a,d,h,_,k,w,g,S,D,Y,$,q,j,x,V,M,p,z,J,X,l,c,b,W,Q,o]}class As extends ue{constructor(e){super();fe(this,e,Ds,vs,ce,{displayOutline:0,height:24,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconRotateDegree:25,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,name:26,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:27,ringSize:15,rotateDegree:16,translateX:17,translateY:18,width:28})}}function Ai(n){let e,t,o,i;return{c(){e=O("circle"),r(e,"fill","transparent"),r(e,"stroke",n[8]),r(e,"stroke-dashoffset",t=0),r(e,"stroke-dasharray",o=n[20]+" "+n[20]),r(e,"stroke-width",n[14]),r(e,"r",n[19]),r(e,"cx",n[18]),r(e,"cy",n[18]),r(e,"transform",i="rotate(-90, "+n[18]+", "+n[18]+")"),R(e,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)"))},m(l,s){H(l,e,s)},p(l,s){s[0]&256&&r(e,"stroke",l[8]),s[0]&1048576&&o!==(o=l[20]+" "+l[20])&&r(e,"stroke-dasharray",o),s[0]&16384&&r(e,"stroke-width",l[14]),s[0]&524288&&r(e,"r",l[19]),s[0]&262144&&r(e,"cx",l[18]),s[0]&262144&&r(e,"cy",l[18]),s[0]&262144&&i!==(i="rotate(-90, "+l[18]+", "+l[18]+")")&&r(e,"transform",i),s[0]&1792&&R(e,"filter",(l[10]?"drop-shadow(0px 0px "+l[10]+"px "+l[8]+")":"")+" "+("contrast("+l[9]+"%)"))},d(l){l&&E(e)}}}function Ts(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w=n[0]&&Ai(n);return d=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=O("svg"),t=O("g"),w&&w.c(),o=O("circle"),s=O("circle"),c=O("g"),P(d.$$.fragment),r(o,"fill","transparent"),r(o,"stroke",n[11]),r(o,"stroke-opacity",.6),r(o,"stroke-dashoffset",n[25]),r(o,"stroke-dasharray",i=n[23]+" "+n[23]),r(o,"stroke-width",n[21]),r(o,"r",n[22]),r(o,"cx",n[18]),r(o,"cy",n[18]),r(o,"transform",l="rotate(-90, "+n[18]+", "+n[18]+")"),r(s,"stroke",n[11]),r(s,"fill","transparent"),r(s,"stroke-dashoffset",n[24]),r(s,"stroke-dasharray",f=n[20]+" "+n[20]),r(s,"stroke-width",n[14]),r(s,"r",n[19]),r(s,"cx",n[18]),r(s,"cy",n[18]),r(s,"transform",u="rotate(-90, "+n[18]+", "+n[18]+")"),R(s,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(t,"transform",a=` - `+(n[15]>0?"rotate("+n[15]+" "+n[18]+" "+n[18]+")":"")+` - `+("translate("+n[16]+" "+n[17]+")")),R(c,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",h=n[18]*2),r(e,"height",_=n[18]*2),r(e,"viewBox",k="0 0 "+n[18]*2+" "+n[18]*2),r(e,"overflow","visible")},m(g,S){H(g,e,S),m(e,t),w&&w.m(t,null),m(t,o),m(t,s),m(e,c),B(d,c,null),b=!0},p(g,S){g[0]?w?w.p(g,S):(w=Ai(g),w.c(),w.m(t,o)):w&&(w.d(1),w=null),(!b||S[0]&2048)&&r(o,"stroke",g[11]),(!b||S[0]&33554432)&&r(o,"stroke-dashoffset",g[25]),(!b||S[0]&8388608&&i!==(i=g[23]+" "+g[23]))&&r(o,"stroke-dasharray",i),(!b||S[0]&2097152)&&r(o,"stroke-width",g[21]),(!b||S[0]&4194304)&&r(o,"r",g[22]),(!b||S[0]&262144)&&r(o,"cx",g[18]),(!b||S[0]&262144)&&r(o,"cy",g[18]),(!b||S[0]&262144&&l!==(l="rotate(-90, "+g[18]+", "+g[18]+")"))&&r(o,"transform",l),(!b||S[0]&2048)&&r(s,"stroke",g[11]),(!b||S[0]&16777216)&&r(s,"stroke-dashoffset",g[24]),(!b||S[0]&1048576&&f!==(f=g[20]+" "+g[20]))&&r(s,"stroke-dasharray",f),(!b||S[0]&16384)&&r(s,"stroke-width",g[14]),(!b||S[0]&524288)&&r(s,"r",g[19]),(!b||S[0]&262144)&&r(s,"cx",g[18]),(!b||S[0]&262144)&&r(s,"cy",g[18]),(!b||S[0]&262144&&u!==(u="rotate(-90, "+g[18]+", "+g[18]+")"))&&r(s,"transform",u),(!b||S[0]&14336)&&R(s,"filter",(g[13]?"drop-shadow(0px 0px "+g[13]+"px "+g[11]+")":"")+" "+("contrast("+g[12]+"%)")),(!b||S[0]&491520&&a!==(a=` - `+(g[15]>0?"rotate("+g[15]+" "+g[18]+" "+g[18]+")":"")+` - `+("translate("+g[16]+" "+g[17]+")")))&&r(t,"transform",a);const D={};S[0]&2&&(D.icon=g[1]),S[0]&32&&(D.scale=g[5]),S[0]&64&&(D.translateX=g[6]),S[0]&128&&(D.translateY=g[7]),S[0]&4&&(D.style="color:"+g[2]),d.$set(D),(!b||S[0]&28)&&R(c,"filter",(g[4]?"drop-shadow(0px 0px "+g[4]+"px "+g[2]+")":"")+" "+("contrast("+g[3]+"%)")),(!b||S[0]&262144&&h!==(h=g[18]*2))&&r(e,"width",h),(!b||S[0]&262144&&_!==(_=g[18]*2))&&r(e,"height",_),(!b||S[0]&262144&&k!==(k="0 0 "+g[18]*2+" "+g[18]*2))&&r(e,"viewBox",k)},i(g){b||(C(d.$$.fragment,g),b=!0)},o(g){T(d.$$.fragment,g),b=!1},d(g){g&&E(e),w&&w.d(),U(d)}}}function Is(n,e,t){let o,{displayOutline:i=!0}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{name:k=""}=e,{outlineColor:b="red"}=e,{outlineContrast:w=100}=e,{outlineDropShadowAmount:g=0}=e,{progressColor:S="red"}=e,{progressContrast:D=100}=e,{progressDropShadowAmount:Y=0}=e,{progressValue:$=100}=e,{ringSize:W=4}=e,{rotateDegree:q=0}=e,{translateX:j=0}=e,{translateY:x=0}=e,{width:V=50}=e,Q=25;const M=nn($,{duration:600,easing:pn});de(n,M,K=>t(32,o=K));let X=Q-W/2,p=X*2*Math.PI,z=p-o/100*p,J=Q*.8,v=J-J/2,ae=v*2*Math.PI,ee=ae-o/100*ae;return n.$$set=K=>{"displayOutline"in K&&t(0,i=K.displayOutline),"height"in K&&t(27,l=K.height),"icon"in K&&t(1,s=K.icon),"iconColor"in K&&t(2,f=K.iconColor),"iconContrast"in K&&t(3,u=K.iconContrast),"iconDropShadowAmount"in K&&t(4,a=K.iconDropShadowAmount),"iconRotateDegree"in K&&t(28,c=K.iconRotateDegree),"iconScaling"in K&&t(5,d=K.iconScaling),"iconTranslateX"in K&&t(6,h=K.iconTranslateX),"iconTranslateY"in K&&t(7,_=K.iconTranslateY),"name"in K&&t(29,k=K.name),"outlineColor"in K&&t(8,b=K.outlineColor),"outlineContrast"in K&&t(9,w=K.outlineContrast),"outlineDropShadowAmount"in K&&t(10,g=K.outlineDropShadowAmount),"progressColor"in K&&t(11,S=K.progressColor),"progressContrast"in K&&t(12,D=K.progressContrast),"progressDropShadowAmount"in K&&t(13,Y=K.progressDropShadowAmount),"progressValue"in K&&t(30,$=K.progressValue),"ringSize"in K&&t(14,W=K.ringSize),"rotateDegree"in K&&t(15,q=K.rotateDegree),"translateX"in K&&t(16,j=K.translateX),"translateY"in K&&t(17,x=K.translateY),"width"in K&&t(31,V=K.width)},n.$$.update=()=>{n.$$.dirty[0]&1073741824&&M.set($),n.$$.dirty[0]&134217728|n.$$.dirty[1]&1&&t(18,Q=l>V?l/2:V/2),n.$$.dirty[0]&7094272&&(t(19,X=Q-W/2),t(20,p=X*2*Math.PI),t(21,J=(Q-W)*.8),t(22,v=J-J/2),t(23,ae=v*2*Math.PI)),n.$$.dirty[0]&9437184|n.$$.dirty[1]&2&&(t(24,z=p-o/100*p),t(25,ee=ae-o/100*ae))},[i,s,f,u,a,d,h,_,b,w,g,S,D,Y,W,q,j,x,Q,X,p,J,v,ae,z,ee,M,l,c,k,$,V,o]}class ys extends ue{constructor(e){super();fe(this,e,Is,Ts,ce,{displayOutline:0,height:27,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconRotateDegree:28,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:29,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:30,ringSize:14,rotateDegree:15,translateX:16,translateY:17,width:31},null,[-1,-1])}}function Ms(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b;return d=new Fe({props:{icon:n[0],scale:n[4],translateX:n[5],translateY:n[6],style:"color:"+n[1]}}),{c(){e=O("svg"),t=O("g"),o=O("circle"),s=O("circle"),c=O("g"),P(d.$$.fragment),r(o,"fill","transparent"),r(o,"stroke",n[7]),r(o,"stroke-dashoffset",0),r(o,"stroke-dasharray",i=n[19]+" "+n[19]),r(o,"stroke-width",n[17]),r(o,"r",n[18]),r(o,"cx",n[16]),r(o,"cy",n[16]),r(o,"transform",l="rotate(-90, "+n[16]+", "+n[16]+")"),R(o,"filter",(n[9]?"drop-shadow(0px 0px "+n[9]+"px "+n[7]+")":"")+" "+("contrast("+n[8]+"%)")),r(s,"stroke",n[10]),r(s,"fill","transparent"),r(s,"stroke-dashoffset",n[20]),r(s,"stroke-dasharray",f=n[19]+" "+n[19]),r(s,"stroke-width",n[17]),r(s,"r",n[18]),r(s,"cx",n[16]),r(s,"cy",n[16]),r(s,"transform",u="rotate(-90, "+n[16]+", "+n[16]+")"),R(s,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)")),r(t,"transform",a=` - `+(n[13]>0?"rotate("+n[13]+" "+n[16]+" "+n[16]+")":"")+` - `+("translate("+n[14]+" "+n[15]+")")),R(c,"filter",(n[3]?"drop-shadow(0px 0px "+n[3]+"px "+n[1]+")":"")+" "+("contrast("+n[2]+"%)")),r(e,"width",h=n[16]*2),r(e,"height",_=n[16]*2),r(e,"viewBox",k="0 0 "+n[16]*2+" "+n[16]*2),r(e,"overflow","visible")},m(w,g){H(w,e,g),m(e,t),m(t,o),m(t,s),m(e,c),B(d,c,null),b=!0},p(w,[g]){(!b||g&128)&&r(o,"stroke",w[7]),(!b||g&524288&&i!==(i=w[19]+" "+w[19]))&&r(o,"stroke-dasharray",i),(!b||g&131072)&&r(o,"stroke-width",w[17]),(!b||g&262144)&&r(o,"r",w[18]),(!b||g&65536)&&r(o,"cx",w[16]),(!b||g&65536)&&r(o,"cy",w[16]),(!b||g&65536&&l!==(l="rotate(-90, "+w[16]+", "+w[16]+")"))&&r(o,"transform",l),(!b||g&896)&&R(o,"filter",(w[9]?"drop-shadow(0px 0px "+w[9]+"px "+w[7]+")":"")+" "+("contrast("+w[8]+"%)")),(!b||g&1024)&&r(s,"stroke",w[10]),(!b||g&1048576)&&r(s,"stroke-dashoffset",w[20]),(!b||g&524288&&f!==(f=w[19]+" "+w[19]))&&r(s,"stroke-dasharray",f),(!b||g&131072)&&r(s,"stroke-width",w[17]),(!b||g&262144)&&r(s,"r",w[18]),(!b||g&65536)&&r(s,"cx",w[16]),(!b||g&65536)&&r(s,"cy",w[16]),(!b||g&65536&&u!==(u="rotate(-90, "+w[16]+", "+w[16]+")"))&&r(s,"transform",u),(!b||g&7168)&&R(s,"filter",(w[12]?"drop-shadow(0px 0px "+w[12]+"px "+w[10]+")":"")+" "+("contrast("+w[11]+"%)")),(!b||g&122880&&a!==(a=` - `+(w[13]>0?"rotate("+w[13]+" "+w[16]+" "+w[16]+")":"")+` - `+("translate("+w[14]+" "+w[15]+")")))&&r(t,"transform",a);const S={};g&1&&(S.icon=w[0]),g&16&&(S.scale=w[4]),g&32&&(S.translateX=w[5]),g&64&&(S.translateY=w[6]),g&2&&(S.style="color:"+w[1]),d.$set(S),(!b||g&14)&&R(c,"filter",(w[3]?"drop-shadow(0px 0px "+w[3]+"px "+w[1]+")":"")+" "+("contrast("+w[2]+"%)")),(!b||g&65536&&h!==(h=w[16]*2))&&r(e,"width",h),(!b||g&65536&&_!==(_=w[16]*2))&&r(e,"height",_),(!b||g&65536&&k!==(k="0 0 "+w[16]*2+" "+w[16]*2))&&r(e,"viewBox",k)},i(w){b||(C(d.$$.fragment,w),b=!0)},o(w){T(d.$$.fragment,w),b=!1},d(w){w&&E(e),U(d)}}}function Ys(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,j=25,x=25,V=j-x/2,Q=V*2*Math.PI,M=0;const X=nn(D,{duration:600,easing:pn});return de(n,X,p=>t(26,o=p)),n.$$set=p=>{"height"in p&&t(22,i=p.height),"icon"in p&&t(0,l=p.icon),"iconColor"in p&&t(1,s=p.iconColor),"iconContrast"in p&&t(2,f=p.iconContrast),"iconDropShadowAmount"in p&&t(3,u=p.iconDropShadowAmount),"iconScaling"in p&&t(4,a=p.iconScaling),"iconTranslateX"in p&&t(5,c=p.iconTranslateX),"iconTranslateY"in p&&t(6,d=p.iconTranslateY),"name"in p&&t(23,h=p.name),"outlineColor"in p&&t(7,_=p.outlineColor),"outlineContrast"in p&&t(8,k=p.outlineContrast),"outlineDropShadowAmount"in p&&t(9,b=p.outlineDropShadowAmount),"progressColor"in p&&t(10,w=p.progressColor),"progressContrast"in p&&t(11,g=p.progressContrast),"progressDropShadowAmount"in p&&t(12,S=p.progressDropShadowAmount),"progressValue"in p&&t(24,D=p.progressValue),"rotateDegree"in p&&t(13,Y=p.rotateDegree),"translateX"in p&&t(14,$=p.translateX),"translateY"in p&&t(15,W=p.translateY),"width"in p&&t(25,q=p.width)},n.$$.update=()=>{n.$$.dirty&16777216&&X.set(D),n.$$.dirty&105840640&&(t(16,j=i>q?i/2:q/2),t(17,x=j),t(18,V=j-x/2),t(19,Q=V*2*Math.PI),t(20,M=Q-o/100*Q))},[l,s,f,u,a,c,d,_,k,b,w,g,S,Y,$,W,j,x,V,Q,M,X,i,h,D,q,o]}class Xs extends ue{constructor(e){super();fe(this,e,Ys,Ms,ce,{height:22,icon:0,iconColor:1,iconContrast:2,iconDropShadowAmount:3,iconScaling:4,iconTranslateX:5,iconTranslateY:6,name:23,outlineColor:7,outlineContrast:8,outlineDropShadowAmount:9,progressColor:10,progressContrast:11,progressDropShadowAmount:12,progressValue:24,rotateDegree:13,translateX:14,translateY:15,width:25})}}function Os(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w;return h=new Fe({props:{icon:n[0],scale:n[4],translateX:n[5],translateY:n[6],style:"color:"+n[1]}}),{c(){e=O("svg"),t=O("defs"),o=O("clipPath"),i=O("circle"),s=O("g"),f=O("circle"),u=O("line"),d=O("g"),P(h.$$.fragment),r(i,"stroke-width",n[18]),r(i,"r",n[17]),r(i,"cx",n[17]),r(i,"cy",n[17]),r(o,"id",l=n[7]+"-cut-out-circle"),r(f,"stroke",n[8]),r(f,"fill","transparent"),r(f,"stroke-width",n[18]),r(f,"r",n[20]),r(f,"cx",n[17]),r(f,"cy",n[17]),r(f,"shape-rendering","geometricPrecision"),R(f,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)")),r(u,"x1","50%"),r(u,"y1","100%"),r(u,"x2","50%"),r(u,"y2","0%"),r(u,"stroke",n[11]),r(u,"stroke-dasharray",n[19]),r(u,"stroke-dashoffset",n[21]),r(u,"stroke-width",n[19]),r(u,"clip-path",a="url(#"+(n[7]+"-cut-out-circle")+")"),r(u,"shape-rendering","geometricPrecision"),R(u,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(s,"transform",c=` - `+(n[14]>0?"rotate("+n[14]+" "+n[17]+" "+n[17]+")":"")+` - `+("translate("+n[15]+" "+n[16]+")")),R(d,"filter",(n[3]?"drop-shadow(0px 0px "+n[3]+"px "+n[1]+")":"")+" "+("contrast("+n[2]+"%)")),r(e,"width",_=n[17]*2),r(e,"height",k=n[17]*2),r(e,"viewBox",b="0 0 "+n[17]*2+" "+n[17]*2),r(e,"overflow","visible")},m(g,S){H(g,e,S),m(e,t),m(t,o),m(o,i),m(e,s),m(s,f),m(s,u),m(e,d),B(h,d,null),w=!0},p(g,[S]){(!w||S&262144)&&r(i,"stroke-width",g[18]),(!w||S&131072)&&r(i,"r",g[17]),(!w||S&131072)&&r(i,"cx",g[17]),(!w||S&131072)&&r(i,"cy",g[17]),(!w||S&128&&l!==(l=g[7]+"-cut-out-circle"))&&r(o,"id",l),(!w||S&256)&&r(f,"stroke",g[8]),(!w||S&262144)&&r(f,"stroke-width",g[18]),(!w||S&1048576)&&r(f,"r",g[20]),(!w||S&131072)&&r(f,"cx",g[17]),(!w||S&131072)&&r(f,"cy",g[17]),(!w||S&1792)&&R(f,"filter",(g[10]?"drop-shadow(0px 0px "+g[10]+"px "+g[8]+")":"")+" "+("contrast("+g[9]+"%)")),(!w||S&2048)&&r(u,"stroke",g[11]),(!w||S&524288)&&r(u,"stroke-dasharray",g[19]),(!w||S&2097152)&&r(u,"stroke-dashoffset",g[21]),(!w||S&524288)&&r(u,"stroke-width",g[19]),(!w||S&128&&a!==(a="url(#"+(g[7]+"-cut-out-circle")+")"))&&r(u,"clip-path",a),(!w||S&14336)&&R(u,"filter",(g[13]?"drop-shadow(0px 0px "+g[13]+"px "+g[11]+")":"")+" "+("contrast("+g[12]+"%)")),(!w||S&245760&&c!==(c=` - `+(g[14]>0?"rotate("+g[14]+" "+g[17]+" "+g[17]+")":"")+` - `+("translate("+g[15]+" "+g[16]+")")))&&r(s,"transform",c);const D={};S&1&&(D.icon=g[0]),S&16&&(D.scale=g[4]),S&32&&(D.translateX=g[5]),S&64&&(D.translateY=g[6]),S&2&&(D.style="color:"+g[1]),h.$set(D),(!w||S&14)&&R(d,"filter",(g[3]?"drop-shadow(0px 0px "+g[3]+"px "+g[1]+")":"")+" "+("contrast("+g[2]+"%)")),(!w||S&131072&&_!==(_=g[17]*2))&&r(e,"width",_),(!w||S&131072&&k!==(k=g[17]*2))&&r(e,"height",k),(!w||S&131072&&b!==(b="0 0 "+g[17]*2+" "+g[17]*2))&&r(e,"viewBox",b)},i(g){w||(C(h.$$.fragment,g),w=!0)},o(g){T(h.$$.fragment,g),w=!1},d(g){g&&E(e),U(h)}}}function Fs(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,j=25,x=25,V=i,Q=j-x/2,M=0;const X=nn(D,{duration:600,easing:pn});return de(n,X,p=>t(26,o=p)),n.$$set=p=>{"height"in p&&t(23,i=p.height),"icon"in p&&t(0,l=p.icon),"iconColor"in p&&t(1,s=p.iconColor),"iconContrast"in p&&t(2,f=p.iconContrast),"iconDropShadowAmount"in p&&t(3,u=p.iconDropShadowAmount),"iconScaling"in p&&t(4,a=p.iconScaling),"iconTranslateX"in p&&t(5,c=p.iconTranslateX),"iconTranslateY"in p&&t(6,d=p.iconTranslateY),"name"in p&&t(7,h=p.name),"outlineColor"in p&&t(8,_=p.outlineColor),"outlineContrast"in p&&t(9,k=p.outlineContrast),"outlineDropShadowAmount"in p&&t(10,b=p.outlineDropShadowAmount),"progressColor"in p&&t(11,w=p.progressColor),"progressContrast"in p&&t(12,g=p.progressContrast),"progressDropShadowAmount"in p&&t(13,S=p.progressDropShadowAmount),"progressValue"in p&&t(24,D=p.progressValue),"rotateDegree"in p&&t(14,Y=p.rotateDegree),"translateX"in p&&t(15,$=p.translateX),"translateY"in p&&t(16,W=p.translateY),"width"in p&&t(25,q=p.width)},n.$$.update=()=>{n.$$.dirty&16777216&&X.set(D),n.$$.dirty&43909120&&(t(19,V=i>q?i:q),t(17,j=V/2),t(18,x=j),t(20,Q=j-x/2)),n.$$.dirty&67633152&&t(21,M=V-o/100*V)},[l,s,f,u,a,c,d,h,_,k,b,w,g,S,Y,$,W,j,x,V,Q,M,X,i,D,q,o]}class Es extends ue{constructor(e){super();fe(this,e,Fs,Os,ce,{height:23,icon:0,iconColor:1,iconContrast:2,iconDropShadowAmount:3,iconScaling:4,iconTranslateX:5,iconTranslateY:6,name:7,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:24,rotateDegree:14,translateX:15,translateY:16,width:25})}}function Ti(n){let e,t,o;return{c(){e=O("path"),r(e,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(e,"fill","transparent"),r(e,"stroke",n[10]),r(e,"stroke-width",n[16]),r(e,"stroke-dasharray",t=n[21]+" "+n[21]),r(e,"stroke-dashoffset",o=0),R(e,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)"))},m(i,l){H(i,e,l)},p(i,l){l&1024&&r(e,"stroke",i[10]),l&65536&&r(e,"stroke-width",i[16]),l&2097152&&t!==(t=i[21]+" "+i[21])&&r(e,"stroke-dasharray",t),l&7168&&R(e,"filter",(i[12]?"drop-shadow(0px 0px "+i[12]+"px "+i[10]+")":"")+" "+("contrast("+i[11]+"%)"))},d(i){i&&E(e)}}}function Vs(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k=n[0]&&Ti(n);return h=new Fe({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],flip:"horizontal",style:"color:"+n[3]}}),{c(){e=A("div"),t=O("svg"),o=O("g"),k&&k.c(),i=O("svg"),l=O("path"),u=O("path"),d=O("g"),P(h.$$.fragment),r(l,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(l,"stroke-width",s=n[16]-.3),r(l,"fill",n[9]),r(l,"stroke","transparent"),r(l,"stroke-dasharray",f=n[21]+" "+n[21]),r(l,"stroke-dashoffset",0),r(i,"viewBox","-1.5 4.5 19 7"),r(u,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(u,"class","stroke-cap-round stroke-join-round"),r(u,"stroke",n[13]),r(u,"stroke-width",n[16]),r(u,"fill","transparent"),r(u,"stroke-dasharray",a=n[21]+" "+n[21]),r(u,"stroke-dashoffset",n[22]),R(u,"filter",(n[15]?"drop-shadow(0px 0px "+n[15]+"px "+n[13]+")":"")+" "+("contrast("+n[14]+"%)")),r(o,"transform",c=` - `+(n[17]>0?"rotate("+n[17]+" "+8+" "+8+")":"")+` - `+("translate("+n[18]+" "+n[19]+")")),R(d,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(t,"version","1.1"),r(t,"width",n[20]),r(t,"height",n[1]),r(t,"viewBox","0 0 16 16"),r(t,"transform","scale(-1,1)"),r(e,"class","mx-[-7px]")},m(b,w){H(b,e,w),m(e,t),m(t,o),k&&k.m(o,null),m(o,i),m(i,l),m(o,u),n[29](u),m(t,d),B(h,d,null),_=!0},p(b,[w]){b[0]?k?k.p(b,w):(k=Ti(b),k.c(),k.m(o,i)):k&&(k.d(1),k=null),(!_||w&65536&&s!==(s=b[16]-.3))&&r(l,"stroke-width",s),(!_||w&512)&&r(l,"fill",b[9]),(!_||w&2097152&&f!==(f=b[21]+" "+b[21]))&&r(l,"stroke-dasharray",f),(!_||w&8192)&&r(u,"stroke",b[13]),(!_||w&65536)&&r(u,"stroke-width",b[16]),(!_||w&2097152&&a!==(a=b[21]+" "+b[21]))&&r(u,"stroke-dasharray",a),(!_||w&4194304)&&r(u,"stroke-dashoffset",b[22]),(!_||w&57344)&&R(u,"filter",(b[15]?"drop-shadow(0px 0px "+b[15]+"px "+b[13]+")":"")+" "+("contrast("+b[14]+"%)")),(!_||w&917504&&c!==(c=` - `+(b[17]>0?"rotate("+b[17]+" "+8+" "+8+")":"")+` - `+("translate("+b[18]+" "+b[19]+")")))&&r(o,"transform",c);const g={};w&4&&(g.icon=b[2]),w&64&&(g.scale=b[6]),w&128&&(g.translateX=b[7]),w&256&&(g.translateY=b[8]),w&8&&(g.style="color:"+b[3]),h.$set(g),(!_||w&56)&&R(d,"filter",(b[5]?"drop-shadow(0px 0px "+b[5]+"px "+b[3]+")":"")+" "+("contrast("+b[4]+"%)")),(!_||w&1048576)&&r(t,"width",b[20]),(!_||w&2)&&r(t,"height",b[1])},i(b){_||(C(h.$$.fragment,b),_=!0)},o(b){T(h.$$.fragment,b),_=!1},d(b){b&&E(e),k&&k.d(),n[29](null),U(h)}}}function Hs(n,e,t){let o,{displayOutline:i=!0}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{innerColor:k="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:g=100}=e,{outlineDropShadowAmount:S=0}=e,{progressColor:D="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:$=0}=e,{progressValue:W=100}=e,{ringSize:q=4}=e,{rotateDegree:j=0}=e,{translateX:x=0}=e,{translateY:V=0}=e,{width:Q=50}=e,M=10;const X=nn(W,{duration:600,easing:pn});de(n,X,v=>t(28,o=v));let p,z;Pt(()=>{try{t(21,z=p.getTotalLength())}catch{console.log("Error: PS-Hud: Diamond-Ring-Icon should not be mounting when hiding icons")}});function J(v){te[v?"unshift":"push"](()=>{p=v,t(23,p)})}return n.$$set=v=>{"displayOutline"in v&&t(0,i=v.displayOutline),"height"in v&&t(1,l=v.height),"icon"in v&&t(2,s=v.icon),"iconColor"in v&&t(3,f=v.iconColor),"iconContrast"in v&&t(4,u=v.iconContrast),"iconDropShadowAmount"in v&&t(5,a=v.iconDropShadowAmount),"iconRotateDegree"in v&&t(25,c=v.iconRotateDegree),"iconScaling"in v&&t(6,d=v.iconScaling),"iconTranslateX"in v&&t(7,h=v.iconTranslateX),"iconTranslateY"in v&&t(8,_=v.iconTranslateY),"innerColor"in v&&t(9,k=v.innerColor),"name"in v&&t(26,b=v.name),"outlineColor"in v&&t(10,w=v.outlineColor),"outlineContrast"in v&&t(11,g=v.outlineContrast),"outlineDropShadowAmount"in v&&t(12,S=v.outlineDropShadowAmount),"progressColor"in v&&t(13,D=v.progressColor),"progressContrast"in v&&t(14,Y=v.progressContrast),"progressDropShadowAmount"in v&&t(15,$=v.progressDropShadowAmount),"progressValue"in v&&t(27,W=v.progressValue),"ringSize"in v&&t(16,q=v.ringSize),"rotateDegree"in v&&t(17,j=v.rotateDegree),"translateX"in v&&t(18,x=v.translateX),"translateY"in v&&t(19,V=v.translateY),"width"in v&&t(20,Q=v.width)},n.$$.update=()=>{n.$$.dirty&134217728&&X.set(W),n.$$.dirty&270532608&&t(22,M=z-o/100*z)},[i,l,s,f,u,a,d,h,_,k,w,g,S,D,Y,$,q,j,x,V,Q,z,M,p,X,c,b,W,o,J]}class Rs extends ue{constructor(e){super();fe(this,e,Hs,Vs,ce,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:25,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:26,outlineColor:10,outlineContrast:11,outlineDropShadowAmount:12,progressColor:13,progressContrast:14,progressDropShadowAmount:15,progressValue:27,ringSize:16,rotateDegree:17,translateX:18,translateY:19,width:20})}}function Ps(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k;return _=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=A("div"),t=O("svg"),o=O("defs"),i=O("clipPath"),l=O("path"),f=O("g"),u=O("path"),a=O("line"),h=O("g"),P(_.$$.fragment),r(l,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(l,"fill","transparent"),r(i,"id",s=n[8]+"-cut-out-diamond"),r(u,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(u,"fill",n[9]),r(u,"stroke","transparent"),R(u,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(a,"x1","50%"),r(a,"y1","100%"),r(a,"x2","50%"),r(a,"y2",0),r(a,"stroke",n[12]),r(a,"stroke-dasharray",16),r(a,"stroke-dashoffset",n[19]),r(a,"stroke-width",n[18]),r(a,"clip-path",c="url(#"+n[8]+"-cut-out-diamond)"),R(a,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(f,"transform",d=` - `+(n[15]>0?"rotate("+n[15]+" "+8+" "+8+")":"")+` - `+("translate("+n[16]+" "+n[17]+")")),R(h,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(t,"version","1.1"),r(t,"width",n[18]),r(t,"height",n[0]),r(t,"viewBox","0 0 16 16"),r(e,"class","mx-[-7px]")},m(b,w){H(b,e,w),m(e,t),m(t,o),m(o,i),m(i,l),m(t,f),m(f,u),m(f,a),m(t,h),B(_,h,null),k=!0},p(b,[w]){(!k||w&256&&s!==(s=b[8]+"-cut-out-diamond"))&&r(i,"id",s),(!k||w&512)&&r(u,"fill",b[9]),(!k||w&3584)&&R(u,"filter",(b[11]?"drop-shadow(0px 0px "+b[11]+"px "+b[9]+")":"")+" "+("contrast("+b[10]+"%)")),(!k||w&4096)&&r(a,"stroke",b[12]),(!k||w&524288)&&r(a,"stroke-dashoffset",b[19]),(!k||w&262144)&&r(a,"stroke-width",b[18]),(!k||w&256&&c!==(c="url(#"+b[8]+"-cut-out-diamond)"))&&r(a,"clip-path",c),(!k||w&28672)&&R(a,"filter",(b[14]?"drop-shadow(0px 0px "+b[14]+"px "+b[12]+")":"")+" "+("contrast("+b[13]+"%)")),(!k||w&229376&&d!==(d=` - `+(b[15]>0?"rotate("+b[15]+" "+8+" "+8+")":"")+` - `+("translate("+b[16]+" "+b[17]+")")))&&r(f,"transform",d);const g={};w&2&&(g.icon=b[1]),w&32&&(g.scale=b[5]),w&64&&(g.translateX=b[6]),w&128&&(g.translateY=b[7]),w&4&&(g.style="color:"+b[2]),_.$set(g),(!k||w&28)&&R(h,"filter",(b[4]?"drop-shadow(0px 0px "+b[4]+"px "+b[2]+")":"")+" "+("contrast("+b[3]+"%)")),(!k||w&262144)&&r(t,"width",b[18]),(!k||w&1)&&r(t,"height",b[0])},i(b){k||(C(_.$$.fragment,b),k=!0)},o(b){T(_.$$.fragment,b),k=!1},d(b){b&&E(e),U(_)}}}function Bs(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,j=10;const x=nn(D,{duration:600,easing:pn});return de(n,x,V=>t(22,o=V)),n.$$set=V=>{"height"in V&&t(0,i=V.height),"icon"in V&&t(1,l=V.icon),"iconColor"in V&&t(2,s=V.iconColor),"iconContrast"in V&&t(3,f=V.iconContrast),"iconDropShadowAmount"in V&&t(4,u=V.iconDropShadowAmount),"iconScaling"in V&&t(5,a=V.iconScaling),"iconTranslateX"in V&&t(6,c=V.iconTranslateX),"iconTranslateY"in V&&t(7,d=V.iconTranslateY),"name"in V&&t(8,h=V.name),"outlineColor"in V&&t(9,_=V.outlineColor),"outlineContrast"in V&&t(10,k=V.outlineContrast),"outlineDropShadowAmount"in V&&t(11,b=V.outlineDropShadowAmount),"progressColor"in V&&t(12,w=V.progressColor),"progressContrast"in V&&t(13,g=V.progressContrast),"progressDropShadowAmount"in V&&t(14,S=V.progressDropShadowAmount),"progressValue"in V&&t(21,D=V.progressValue),"rotateDegree"in V&&t(15,Y=V.rotateDegree),"translateX"in V&&t(16,$=V.translateX),"translateY"in V&&t(17,W=V.translateY),"width"in V&&t(18,q=V.width)},n.$$.update=()=>{n.$$.dirty&2097152&&x.set(D),n.$$.dirty&4194304&&t(19,j=16-o/100*16)},[i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,Y,$,W,q,j,x,D,o]}class Us extends ue{constructor(e){super();fe(this,e,Bs,Ps,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:21,rotateDegree:15,translateX:16,translateY:17,width:18})}}function Ii(n){let e,t,o,i,l;return{c(){e=O("rect"),r(e,"fill","transparent"),r(e,"stroke",n[10]),r(e,"width",t=n[20]-10),r(e,"height",o=n[1]-10),r(e,"stroke-dasharray",i=n[24]+" "+n[24]),r(e,"stroke-dashoffset",l=0),r(e,"stroke-width",n[16]),r(e,"rx",n[21]),r(e,"ry",n[22]),r(e,"x","5"),r(e,"y","5"),R(e,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)"))},m(s,f){H(s,e,f)},p(s,f){f[0]&1024&&r(e,"stroke",s[10]),f[0]&1048576&&t!==(t=s[20]-10)&&r(e,"width",t),f[0]&2&&o!==(o=s[1]-10)&&r(e,"height",o),f[0]&16777216&&i!==(i=s[24]+" "+s[24])&&r(e,"stroke-dasharray",i),f[0]&65536&&r(e,"stroke-width",s[16]),f[0]&2097152&&r(e,"rx",s[21]),f[0]&4194304&&r(e,"ry",s[22]),f[0]&7168&&R(e,"filter",(s[12]?"drop-shadow(0px 0px "+s[12]+"px "+s[10]+")":"")+" "+("contrast("+s[11]+"%)"))},d(s){s&&E(e)}}}function zs(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w=n[0]&&Ii(n);return _=new Fe({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],style:"color:"+n[3]}}),{c(){e=O("svg"),t=O("rect"),w&&w.c(),u=O("rect"),h=O("g"),P(_.$$.fragment),r(t,"fill",n[9]),r(t,"width",o=n[20]-10-n[16]/2),r(t,"height",i=n[1]-10-n[16]/2),r(t,"stroke-dasharray",l=n[24]+" "+n[24]),r(t,"stroke-dashoffset",0),r(t,"stroke-width",n[16]),r(t,"rx",n[21]),r(t,"ry",n[22]),r(t,"x",s=5+n[16]/4),r(t,"y",f=5+n[16]/4),r(u,"fill","transparent"),r(u,"stroke",n[13]),r(u,"width",a=n[20]-10),r(u,"height",c=n[1]-10),r(u,"stroke-dasharray",d=n[24]+" "+n[24]),r(u,"stroke-dashoffset",n[25]),r(u,"stroke-width",n[16]),r(u,"rx",n[21]),r(u,"ry",n[22]),r(u,"x","5"),r(u,"y","5"),R(u,"filter",(n[15]?"drop-shadow(0px 0px "+n[15]+"px "+n[13]+")":"")+" "+("contrast("+n[14]+"%)")),R(h,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"height",n[1]),r(e,"width",n[20]),r(e,"transform",k=` - `+(n[17]>0?"rotate("+n[17]+" "+0+" "+0+")":"")+` - `+("translate("+n[18]+" "+n[19]+")"))},m(g,S){H(g,e,S),m(e,t),w&&w.m(e,null),m(e,u),n[31](u),m(e,h),B(_,h,null),b=!0},p(g,S){(!b||S[0]&512)&&r(t,"fill",g[9]),(!b||S[0]&1114112&&o!==(o=g[20]-10-g[16]/2))&&r(t,"width",o),(!b||S[0]&65538&&i!==(i=g[1]-10-g[16]/2))&&r(t,"height",i),(!b||S[0]&16777216&&l!==(l=g[24]+" "+g[24]))&&r(t,"stroke-dasharray",l),(!b||S[0]&65536)&&r(t,"stroke-width",g[16]),(!b||S[0]&2097152)&&r(t,"rx",g[21]),(!b||S[0]&4194304)&&r(t,"ry",g[22]),(!b||S[0]&65536&&s!==(s=5+g[16]/4))&&r(t,"x",s),(!b||S[0]&65536&&f!==(f=5+g[16]/4))&&r(t,"y",f),g[0]?w?w.p(g,S):(w=Ii(g),w.c(),w.m(e,u)):w&&(w.d(1),w=null),(!b||S[0]&8192)&&r(u,"stroke",g[13]),(!b||S[0]&1048576&&a!==(a=g[20]-10))&&r(u,"width",a),(!b||S[0]&2&&c!==(c=g[1]-10))&&r(u,"height",c),(!b||S[0]&16777216&&d!==(d=g[24]+" "+g[24]))&&r(u,"stroke-dasharray",d),(!b||S[0]&33554432)&&r(u,"stroke-dashoffset",g[25]),(!b||S[0]&65536)&&r(u,"stroke-width",g[16]),(!b||S[0]&2097152)&&r(u,"rx",g[21]),(!b||S[0]&4194304)&&r(u,"ry",g[22]),(!b||S[0]&57344)&&R(u,"filter",(g[15]?"drop-shadow(0px 0px "+g[15]+"px "+g[13]+")":"")+" "+("contrast("+g[14]+"%)"));const D={};S[0]&4&&(D.icon=g[2]),S[0]&64&&(D.scale=g[6]),S[0]&128&&(D.translateX=g[7]),S[0]&256&&(D.translateY=g[8]),S[0]&8&&(D.style="color:"+g[3]),_.$set(D),(!b||S[0]&56)&&R(h,"filter",(g[5]?"drop-shadow(0px 0px "+g[5]+"px "+g[3]+")":"")+" "+("contrast("+g[4]+"%)")),(!b||S[0]&2)&&r(e,"height",g[1]),(!b||S[0]&1048576)&&r(e,"width",g[20]),(!b||S[0]&917504&&k!==(k=` - `+(g[17]>0?"rotate("+g[17]+" "+0+" "+0+")":"")+` - `+("translate("+g[18]+" "+g[19]+")")))&&r(e,"transform",k)},i(g){b||(C(_.$$.fragment,g),b=!0)},o(g){T(_.$$.fragment,g),b=!1},d(g){g&&E(e),w&&w.d(),n[31](null),U(_)}}}function Ls(n,e,t){let o,{displayOutline:i=!0}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{innerColor:k="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:g=100}=e,{outlineDropShadowAmount:S=0}=e,{progressColor:D="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:$=0}=e,{progressValue:W=100}=e,{ringSize:q=4}=e,{rotateDegree:j=0}=e,{translateX:x=0}=e,{translateY:V=0}=e,{width:Q=50}=e,{xAxisRound:M=18}=e,{yAxisRound:X=18}=e,p=10,z=null,J=0;const v=nn(W,{duration:600,easing:pn});de(n,v,ee=>t(30,o=ee)),Pt(()=>{try{t(24,J=z.getTotalLength())}catch{console.log("Error: PS-Hud: Pill-Ring-Icon should not be mounting when hiding icons")}});function ae(ee){te[ee?"unshift":"push"](()=>{z=ee,t(23,z)})}return n.$$set=ee=>{"displayOutline"in ee&&t(0,i=ee.displayOutline),"height"in ee&&t(1,l=ee.height),"icon"in ee&&t(2,s=ee.icon),"iconColor"in ee&&t(3,f=ee.iconColor),"iconContrast"in ee&&t(4,u=ee.iconContrast),"iconDropShadowAmount"in ee&&t(5,a=ee.iconDropShadowAmount),"iconRotateDegree"in ee&&t(27,c=ee.iconRotateDegree),"iconScaling"in ee&&t(6,d=ee.iconScaling),"iconTranslateX"in ee&&t(7,h=ee.iconTranslateX),"iconTranslateY"in ee&&t(8,_=ee.iconTranslateY),"innerColor"in ee&&t(9,k=ee.innerColor),"name"in ee&&t(28,b=ee.name),"outlineColor"in ee&&t(10,w=ee.outlineColor),"outlineContrast"in ee&&t(11,g=ee.outlineContrast),"outlineDropShadowAmount"in ee&&t(12,S=ee.outlineDropShadowAmount),"progressColor"in ee&&t(13,D=ee.progressColor),"progressContrast"in ee&&t(14,Y=ee.progressContrast),"progressDropShadowAmount"in ee&&t(15,$=ee.progressDropShadowAmount),"progressValue"in ee&&t(29,W=ee.progressValue),"ringSize"in ee&&t(16,q=ee.ringSize),"rotateDegree"in ee&&t(17,j=ee.rotateDegree),"translateX"in ee&&t(18,x=ee.translateX),"translateY"in ee&&t(19,V=ee.translateY),"width"in ee&&t(20,Q=ee.width),"xAxisRound"in ee&&t(21,M=ee.xAxisRound),"yAxisRound"in ee&&t(22,X=ee.yAxisRound)},n.$$.update=()=>{n.$$.dirty[0]&536870912&&v.set(W),n.$$.dirty[0]&15728642&&l&&Q&&M>=0&&X>=0&&t(24,J=(z==null?void 0:z.getTotalLength())+5),n.$$.dirty[0]&1090519040&&t(25,p=J-o/100*J)},[i,l,s,f,u,a,d,h,_,k,w,g,S,D,Y,$,q,j,x,V,Q,M,X,z,J,p,v,c,b,W,o,ae]}class qs extends ue{constructor(e){super();fe(this,e,Ls,zs,ce,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:27,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:28,outlineColor:10,outlineContrast:11,outlineDropShadowAmount:12,progressColor:13,progressContrast:14,progressDropShadowAmount:15,progressValue:29,ringSize:16,rotateDegree:17,translateX:18,translateY:19,width:20,xAxisRound:21,yAxisRound:22},null,[-1,-1])}}function Ns(n){let e,t,o,i,l,s,f,u,a,c,d,h;return c=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=O("svg"),t=O("defs"),o=O("clipPath"),i=O("rect"),s=O("rect"),f=O("line"),a=O("g"),P(c.$$.fragment),r(i,"stroke",n[12]),r(i,"width",n[18]),r(i,"height",n[0]),r(i,"rx",n[19]),r(i,"ry",n[20]),r(o,"id",l=n[8]+"-cut-out-pillwhole"),r(s,"fill",n[9]),r(s,"width",n[18]),r(s,"height",n[0]),r(s,"stroke","transparent"),r(s,"stroke-width",n[0]),r(s,"rx",n[19]),r(s,"ry",n[20]),R(s,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(f,"x1","50%"),r(f,"y1","100%"),r(f,"x2","50%"),r(f,"y2","0%"),r(f,"stroke",n[12]),r(f,"stroke-dasharray",n[0]),r(f,"stroke-dashoffset",n[21]),r(f,"stroke-width",n[22]),r(f,"clip-path",u="url(#"+n[8]+"-cut-out-pillwhole)"),R(f,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),R(a,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"height",n[0]),r(e,"width",n[18]),r(e,"transform",d=` - `+(n[15]>0?"rotate("+n[15]+" "+0+" "+0+")":"")+` - `+("translate("+n[16]+" "+n[17]+")"))},m(_,k){H(_,e,k),m(e,t),m(t,o),m(o,i),m(e,s),m(e,f),m(e,a),B(c,a,null),h=!0},p(_,[k]){(!h||k&4096)&&r(i,"stroke",_[12]),(!h||k&262144)&&r(i,"width",_[18]),(!h||k&1)&&r(i,"height",_[0]),(!h||k&524288)&&r(i,"rx",_[19]),(!h||k&1048576)&&r(i,"ry",_[20]),(!h||k&256&&l!==(l=_[8]+"-cut-out-pillwhole"))&&r(o,"id",l),(!h||k&512)&&r(s,"fill",_[9]),(!h||k&262144)&&r(s,"width",_[18]),(!h||k&1)&&r(s,"height",_[0]),(!h||k&1)&&r(s,"stroke-width",_[0]),(!h||k&524288)&&r(s,"rx",_[19]),(!h||k&1048576)&&r(s,"ry",_[20]),(!h||k&3584)&&R(s,"filter",(_[11]?"drop-shadow(0px 0px "+_[11]+"px "+_[9]+")":"")+" "+("contrast("+_[10]+"%)")),(!h||k&4096)&&r(f,"stroke",_[12]),(!h||k&1)&&r(f,"stroke-dasharray",_[0]),(!h||k&2097152)&&r(f,"stroke-dashoffset",_[21]),(!h||k&4194304)&&r(f,"stroke-width",_[22]),(!h||k&256&&u!==(u="url(#"+_[8]+"-cut-out-pillwhole)"))&&r(f,"clip-path",u),(!h||k&28672)&&R(f,"filter",(_[14]?"drop-shadow(0px 0px "+_[14]+"px "+_[12]+")":"")+" "+("contrast("+_[13]+"%)"));const b={};k&2&&(b.icon=_[1]),k&32&&(b.scale=_[5]),k&64&&(b.translateX=_[6]),k&128&&(b.translateY=_[7]),k&4&&(b.style="color:"+_[2]),c.$set(b),(!h||k&28)&&R(a,"filter",(_[4]?"drop-shadow(0px 0px "+_[4]+"px "+_[2]+")":"")+" "+("contrast("+_[3]+"%)")),(!h||k&1)&&r(e,"height",_[0]),(!h||k&262144)&&r(e,"width",_[18]),(!h||k&229376&&d!==(d=` - `+(_[15]>0?"rotate("+_[15]+" "+0+" "+0+")":"")+` - `+("translate("+_[16]+" "+_[17]+")")))&&r(e,"transform",d)},i(_){h||(C(c.$$.fragment,_),h=!0)},o(_){T(c.$$.fragment,_),h=!1},d(_){_&&E(e),U(c)}}}function js(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{ringSize:Y=4}=e,{rotateDegree:$=0}=e,{translateX:W=0}=e,{translateY:q=0}=e,{width:j=50}=e,{xAxisRound:x=18}=e,{yAxisRound:V=18}=e,Q=10,M=i;const X=nn(D,{duration:600,easing:pn});return de(n,X,p=>t(26,o=p)),n.$$set=p=>{"height"in p&&t(0,i=p.height),"icon"in p&&t(1,l=p.icon),"iconColor"in p&&t(2,s=p.iconColor),"iconContrast"in p&&t(3,f=p.iconContrast),"iconDropShadowAmount"in p&&t(4,u=p.iconDropShadowAmount),"iconScaling"in p&&t(5,a=p.iconScaling),"iconTranslateX"in p&&t(6,c=p.iconTranslateX),"iconTranslateY"in p&&t(7,d=p.iconTranslateY),"name"in p&&t(8,h=p.name),"outlineColor"in p&&t(9,_=p.outlineColor),"outlineContrast"in p&&t(10,k=p.outlineContrast),"outlineDropShadowAmount"in p&&t(11,b=p.outlineDropShadowAmount),"progressColor"in p&&t(12,w=p.progressColor),"progressContrast"in p&&t(13,g=p.progressContrast),"progressDropShadowAmount"in p&&t(14,S=p.progressDropShadowAmount),"progressValue"in p&&t(24,D=p.progressValue),"ringSize"in p&&t(25,Y=p.ringSize),"rotateDegree"in p&&t(15,$=p.rotateDegree),"translateX"in p&&t(16,W=p.translateX),"translateY"in p&&t(17,q=p.translateY),"width"in p&&t(18,j=p.width),"xAxisRound"in p&&t(19,x=p.xAxisRound),"yAxisRound"in p&&t(20,V=p.yAxisRound)},n.$$.update=()=>{n.$$.dirty&16777216&&X.set(D),n.$$.dirty&262145&&t(22,M=i>j?i:j),n.$$.dirty&67108865&&t(21,Q=i-o/100*i)},[i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,$,W,q,j,x,V,Q,M,X,D,Y,o]}class Gs extends ue{constructor(e){super();fe(this,e,js,Ns,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:24,ringSize:25,rotateDegree:15,translateX:16,translateY:17,width:18,xAxisRound:19,yAxisRound:20})}}function yi(n){let e,t,o;return t=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=O("g"),P(t.$$.fragment),R(e,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)"))},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,l){const s={};l&2&&(s.icon=i[1]),l&32&&(s.scale=i[5]),l&64&&(s.translateX=i[6]),l&128&&(s.translateY=i[7]),l&4&&(s.style="color:"+i[2]),t.$set(s),(!o||l&28)&&R(e,"filter",(i[4]?"drop-shadow(0px 0px "+i[4]+"px "+i[2]+")":"")+" "+("contrast("+i[3]+"%)"))},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Mi(n){let e,t,o,i,l,s,f;return o=new Fe({props:{icon:n[1],scale:n[5]*2,translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=A("div"),t=A("div"),P(o.$$.fragment),i=y(),l=A("span"),s=be(n[18]),r(l,"class","ml-2"),r(t,"class","flex justify-center items-center h-full text-xl text-white"),r(e,"class","absolute top-0 left-0 w-full h-full")},m(u,a){H(u,e,a),m(e,t),B(o,t,null),m(t,i),m(t,l),m(l,s),f=!0},p(u,a){const c={};a&2&&(c.icon=u[1]),a&32&&(c.scale=u[5]*2),a&64&&(c.translateX=u[6]),a&128&&(c.translateY=u[7]),a&4&&(c.style="color:"+u[2]),o.$set(c),(!f||a&262144)&&un(s,u[18])},i(u){f||(C(o.$$.fragment,u),f=!0)},o(u){T(o.$$.fragment,u),f=!1},d(u){u&&E(e),U(o)}}}function Ws(n){let e,t,o,i,l,s,f,u,a,c,d,h,_=!n[18]&&yi(n),k=n[18]&&Mi(n);return{c(){e=A("div"),t=O("svg"),o=O("g"),i=O("line"),l=O("line"),f=O("g"),_&&_.c(),u=O("span"),a=be(n[18]),d=y(),k&&k.c(),r(i,"stroke",n[8]),r(i,"x1","0%"),r(i,"y1","50%"),r(i,"x2","100%"),r(i,"y2","50%"),r(i,"stroke-width",n[17]),R(i,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)")),r(l,"x1","0%"),r(l,"y1","50%"),r(l,"x2","100%"),r(l,"y2","50%"),r(l,"stroke",n[11]),r(l,"fill","transparent"),r(l,"stroke-dasharray",n[17]),r(l,"stroke-dashoffset",n[19]),r(l,"stroke-width",n[17]),R(l,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(o,"transform",s=` - rotate( `+n[14]+" "+n[0]/2+" "+n[17]/4+`) - `+("translate("+n[15]+" "+n[16]+")")),r(f,"dominant-baseline","middle"),r(t,"height",c=n[0]-8),r(t,"width",n[17]),r(e,"class","border-4 border-black relative")},m(b,w){H(b,e,w),m(e,t),m(t,o),m(o,i),m(o,l),m(t,f),_&&_.m(f,null),m(f,u),m(u,a),m(e,d),k&&k.m(e,null),h=!0},p(b,[w]){(!h||w&256)&&r(i,"stroke",b[8]),(!h||w&131072)&&r(i,"stroke-width",b[17]),(!h||w&1792)&&R(i,"filter",(b[10]?"drop-shadow(0px 0px "+b[10]+"px "+b[8]+")":"")+" "+("contrast("+b[9]+"%)")),(!h||w&2048)&&r(l,"stroke",b[11]),(!h||w&131072)&&r(l,"stroke-dasharray",b[17]),(!h||w&524288)&&r(l,"stroke-dashoffset",b[19]),(!h||w&131072)&&r(l,"stroke-width",b[17]),(!h||w&14336)&&R(l,"filter",(b[13]?"drop-shadow(0px 0px "+b[13]+"px "+b[11]+")":"")+" "+("contrast("+b[12]+"%)")),(!h||w&245761&&s!==(s=` - rotate( `+b[14]+" "+b[0]/2+" "+b[17]/4+`) - `+("translate("+b[15]+" "+b[16]+")")))&&r(o,"transform",s),b[18]?_&&(he(),T(_,1,1,()=>{_=null}),ge()):_?(_.p(b,w),w&262144&&C(_,1)):(_=yi(b),_.c(),C(_,1),_.m(f,u)),(!h||w&262144)&&un(a,b[18]),(!h||w&1&&c!==(c=b[0]-8))&&r(t,"height",c),(!h||w&131072)&&r(t,"width",b[17]),b[18]?k?(k.p(b,w),w&262144&&C(k,1)):(k=Mi(b),k.c(),C(k,1),k.m(e,null)):k&&(he(),T(k,1,1,()=>{k=null}),ge())},i(b){h||(C(_),C(k),h=!0)},o(b){T(_),T(k),h=!1},d(b){b&&E(e),_&&_.d(),k&&k.d()}}}function Js(n,e,t){let o,{conditionalText:i=null}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:c=.45}=e,{iconTranslateX:d=0}=e,{iconTranslateY:h=0}=e,{name:_=""}=e,{outlineColor:k="red"}=e,{outlineContrast:b=100}=e,{outlineDropShadowAmount:w=0}=e,{progressColor:g="red"}=e,{progressContrast:S=100}=e,{progressDropShadowAmount:D=0}=e,{progressValue:Y=100}=e,{rotateDegree:$=0}=e,{translateX:W=0}=e,{translateY:q=0}=e,{width:j=50}=e,x=10,V="";const Q=nn(Y,{duration:600,easing:pn});return de(n,Q,M=>t(24,o=M)),n.$$set=M=>{"conditionalText"in M&&t(21,i=M.conditionalText),"height"in M&&t(0,l=M.height),"icon"in M&&t(1,s=M.icon),"iconColor"in M&&t(2,f=M.iconColor),"iconContrast"in M&&t(3,u=M.iconContrast),"iconDropShadowAmount"in M&&t(4,a=M.iconDropShadowAmount),"iconScaling"in M&&t(5,c=M.iconScaling),"iconTranslateX"in M&&t(6,d=M.iconTranslateX),"iconTranslateY"in M&&t(7,h=M.iconTranslateY),"name"in M&&t(22,_=M.name),"outlineColor"in M&&t(8,k=M.outlineColor),"outlineContrast"in M&&t(9,b=M.outlineContrast),"outlineDropShadowAmount"in M&&t(10,w=M.outlineDropShadowAmount),"progressColor"in M&&t(11,g=M.progressColor),"progressContrast"in M&&t(12,S=M.progressContrast),"progressDropShadowAmount"in M&&t(13,D=M.progressDropShadowAmount),"progressValue"in M&&t(23,Y=M.progressValue),"rotateDegree"in M&&t(14,$=M.rotateDegree),"translateX"in M&&t(15,W=M.translateX),"translateY"in M&&t(16,q=M.translateY),"width"in M&&t(17,j=M.width)},n.$$.update=()=>{n.$$.dirty&8388608&&Q.set(Y),n.$$.dirty&16908288&&t(19,x=j-o/100*j),n.$$.dirty&10747904&&(t(18,V),t(21,i),t(23,Y),i&&t(18,V=i(Y)))},[l,s,f,u,a,c,d,h,k,b,w,g,S,D,$,W,q,j,V,x,Q,i,_,Y,o]}class Zs extends ue{constructor(e){super();fe(this,e,Js,Ws,ce,{conditionalText:21,height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:22,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:23,rotateDegree:14,translateX:15,translateY:16,width:17})}}function Yi(n){let e,t,o;return{c(){e=O("rect"),r(e,"stroke",n[10]),r(e,"width",n[20]),r(e,"height",n[1]),r(e,"stroke-width",n[16]),r(e,"stroke-dasharray",t=n[21]+" "+n[21]),r(e,"shape-rendering","geometricPrecision"),r(e,"stroke-dashoffset",o=0),r(e,"fill","transparent")},m(i,l){H(i,e,l)},p(i,l){l&1024&&r(e,"stroke",i[10]),l&1048576&&r(e,"width",i[20]),l&2&&r(e,"height",i[1]),l&65536&&r(e,"stroke-width",i[16]),l&2097152&&t!==(t=i[21]+" "+i[21])&&r(e,"stroke-dasharray",t)},d(i){i&&E(e)}}}function Ks(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b=n[0]&&Yi(n);return h=new Fe({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],style:"color:"+n[3]}}),{c(){e=O("svg"),t=O("g"),b&&b.c(),o=O("rect"),u=O("rect"),d=O("g"),P(h.$$.fragment),r(o,"fill",n[9]),r(o,"transform",i="translate("+(n[16]/2-.1)+" "+(n[16]/2-.3)+")"),r(o,"stroke","transparent"),r(o,"shape-rendering","geometricPrecision"),r(o,"width",l=n[20]-n[16]+.2),r(o,"height",s=n[1]-n[16]+.2),r(o,"stroke-width",n[16]),r(o,"stroke-dasharray",f=n[21]+" "+n[21]),r(o,"stroke-dashoffset",0),R(o,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)")),r(u,"stroke",n[13]),r(u,"fill","transparent"),r(u,"width",n[20]),r(u,"height",n[1]),r(u,"stroke-width",a=n[16]-.1),r(u,"stroke-dasharray",c=n[21]+" "+n[21]),r(u,"stroke-dashoffset",n[22]),R(u,"filter",(n[15]?"drop-shadow(0px 0px "+n[15]+"px "+n[13]+")":"")+" "+("contrast("+n[14]+"%)")),R(d,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"width",n[20]),r(e,"height",n[1]),r(e,"transform",_=` - `+(n[17]>0?"rotate("+n[17]+" "+0+" "+0+")":"")+` - `+("translate("+n[18]+" "+n[19]+")"))},m(w,g){H(w,e,g),m(e,t),b&&b.m(t,null),m(t,o),m(t,u),m(e,d),B(h,d,null),k=!0},p(w,[g]){w[0]?b?b.p(w,g):(b=Yi(w),b.c(),b.m(t,o)):b&&(b.d(1),b=null),(!k||g&512)&&r(o,"fill",w[9]),(!k||g&65536&&i!==(i="translate("+(w[16]/2-.1)+" "+(w[16]/2-.3)+")"))&&r(o,"transform",i),(!k||g&1114112&&l!==(l=w[20]-w[16]+.2))&&r(o,"width",l),(!k||g&65538&&s!==(s=w[1]-w[16]+.2))&&r(o,"height",s),(!k||g&65536)&&r(o,"stroke-width",w[16]),(!k||g&2097152&&f!==(f=w[21]+" "+w[21]))&&r(o,"stroke-dasharray",f),(!k||g&7168)&&R(o,"filter",(w[12]?"drop-shadow(0px 0px "+w[12]+"px "+w[10]+")":"")+" "+("contrast("+w[11]+"%)")),(!k||g&8192)&&r(u,"stroke",w[13]),(!k||g&1048576)&&r(u,"width",w[20]),(!k||g&2)&&r(u,"height",w[1]),(!k||g&65536&&a!==(a=w[16]-.1))&&r(u,"stroke-width",a),(!k||g&2097152&&c!==(c=w[21]+" "+w[21]))&&r(u,"stroke-dasharray",c),(!k||g&4194304)&&r(u,"stroke-dashoffset",w[22]),(!k||g&57344)&&R(u,"filter",(w[15]?"drop-shadow(0px 0px "+w[15]+"px "+w[13]+")":"")+" "+("contrast("+w[14]+"%)"));const S={};g&4&&(S.icon=w[2]),g&64&&(S.scale=w[6]),g&128&&(S.translateX=w[7]),g&256&&(S.translateY=w[8]),g&8&&(S.style="color:"+w[3]),h.$set(S),(!k||g&56)&&R(d,"filter",(w[5]?"drop-shadow(0px 0px "+w[5]+"px "+w[3]+")":"")+" "+("contrast("+w[4]+"%)")),(!k||g&1048576)&&r(e,"width",w[20]),(!k||g&2)&&r(e,"height",w[1]),(!k||g&917504&&_!==(_=` - `+(w[17]>0?"rotate("+w[17]+" "+0+" "+0+")":"")+` - `+("translate("+w[18]+" "+w[19]+")")))&&r(e,"transform",_)},i(w){k||(C(h.$$.fragment,w),k=!0)},o(w){T(h.$$.fragment,w),k=!1},d(w){w&&E(e),b&&b.d(),U(h)}}}function Qs(n,e,t){let o,{displayOutline:i=!0}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{innerColor:k="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:g=100}=e,{outlineDropShadowAmount:S=0}=e,{progressColor:D="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:$=0}=e,{progressValue:W=100}=e,{ringSize:q=4}=e,{rotateDegree:j=0}=e,{translateX:x=0}=e,{translateY:V=0}=e,{width:Q=50}=e,M=(Q+l)*2,X=10;const p=nn(W,{duration:600,easing:pn});return de(n,p,z=>t(27,o=z)),n.$$set=z=>{"displayOutline"in z&&t(0,i=z.displayOutline),"height"in z&&t(1,l=z.height),"icon"in z&&t(2,s=z.icon),"iconColor"in z&&t(3,f=z.iconColor),"iconContrast"in z&&t(4,u=z.iconContrast),"iconDropShadowAmount"in z&&t(5,a=z.iconDropShadowAmount),"iconRotateDegree"in z&&t(24,c=z.iconRotateDegree),"iconScaling"in z&&t(6,d=z.iconScaling),"iconTranslateX"in z&&t(7,h=z.iconTranslateX),"iconTranslateY"in z&&t(8,_=z.iconTranslateY),"innerColor"in z&&t(9,k=z.innerColor),"name"in z&&t(25,b=z.name),"outlineColor"in z&&t(10,w=z.outlineColor),"outlineContrast"in z&&t(11,g=z.outlineContrast),"outlineDropShadowAmount"in z&&t(12,S=z.outlineDropShadowAmount),"progressColor"in z&&t(13,D=z.progressColor),"progressContrast"in z&&t(14,Y=z.progressContrast),"progressDropShadowAmount"in z&&t(15,$=z.progressDropShadowAmount),"progressValue"in z&&t(26,W=z.progressValue),"ringSize"in z&&t(16,q=z.ringSize),"rotateDegree"in z&&t(17,j=z.rotateDegree),"translateX"in z&&t(18,x=z.translateX),"translateY"in z&&t(19,V=z.translateY),"width"in z&&t(20,Q=z.width)},n.$$.update=()=>{n.$$.dirty&1048578&&t(21,M=(Q+l)*2),n.$$.dirty&67108864&&p.set(W),n.$$.dirty&136314880&&t(22,X=M-o/100*M)},[i,l,s,f,u,a,d,h,_,k,w,g,S,D,Y,$,q,j,x,V,Q,M,X,p,c,b,W,o]}class xs extends ue{constructor(e){super();fe(this,e,Qs,Ks,ce,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:24,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:25,outlineColor:10,outlineContrast:11,outlineDropShadowAmount:12,progressColor:13,progressContrast:14,progressDropShadowAmount:15,progressValue:26,ringSize:16,rotateDegree:17,translateX:18,translateY:19,width:20})}}function Xi(n){let e,t,o,i,l;return{c(){e=O("path"),r(e,"d",`M36.042,13.909c-0.123-0.377-0.456-0.646-0.85-0.688l-11.549-1.172L18.96,1.43c-0.16-0.36-0.519-0.596-0.915-0.596 - s-0.755,0.234-0.915,0.598L12.446,12.05L0.899,13.221c-0.394,0.04-0.728,0.312-0.85,0.688c-0.123,0.377-0.011,0.791,0.285,1.055 - l8.652,7.738L6.533,34.045c-0.083,0.387,0.069,0.787,0.39,1.02c0.175,0.127,0.381,0.191,0.588,0.191 - c0.173,0,0.347-0.045,0.503-0.137l10.032-5.84l10.03,5.84c0.342,0.197,0.77,0.178,1.091-0.059c0.32-0.229,0.474-0.633,0.391-1.02 - l-2.453-11.344l8.653-7.737C36.052,14.699,36.165,14.285,36.042,13.909z`),r(e,"stroke",n[11]),r(e,"fill",n[9]),r(e,"stroke-width",t=n[17]-.6),r(e,"stroke-dasharray",o=n[22]+" "+n[22]),r(e,"stroke-dashoffset",i=0),r(e,"transform",l="rotate(-72, "+20+", "+20+")"),R(e,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)"))},m(s,f){H(s,e,f)},p(s,f){f&2048&&r(e,"stroke",s[11]),f&512&&r(e,"fill",s[9]),f&131072&&t!==(t=s[17]-.6)&&r(e,"stroke-width",t),f&4194304&&o!==(o=s[22]+" "+s[22])&&r(e,"stroke-dasharray",o),f&14336&&R(e,"filter",(s[13]?"drop-shadow(0px 0px "+s[13]+"px "+s[11]+")":"")+" "+("contrast("+s[12]+"%)"))},d(s){s&&E(e)}}}function $s(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b=n[0]&&Xi(n);return _=new Fe({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],flip:"horizontal",style:"color:"+n[3]}}),{c(){e=O("svg"),t=O("g"),o=O("clipPath"),i=O("path"),f=O("rect"),b&&b.c(),a=O("path"),h=O("g"),P(_.$$.fragment),r(i,"d",`M36.042,13.909c-0.123-0.377-0.456-0.646-0.85-0.688l-11.549-1.172L18.96,1.43c-0.16-0.36-0.519-0.596-0.915-0.596 - s-0.755,0.234-0.915,0.598L12.446,12.05L0.899,13.221c-0.394,0.04-0.728,0.312-0.85,0.688c-0.123,0.377-0.011,0.791,0.285,1.055 - l8.652,7.738L6.533,34.045c-0.083,0.387,0.069,0.787,0.39,1.02c0.175,0.127,0.381,0.191,0.588,0.191 - c0.173,0,0.347-0.045,0.503-0.137l10.032-5.84l10.03,5.84c0.342,0.197,0.77,0.178,1.091-0.059c0.32-0.229,0.474-0.633,0.391-1.02 - l-2.453-11.344l8.653-7.737C36.052,14.699,36.165,14.285,36.042,13.909z`),r(i,"stroke",n[11]),r(i,"fill",n[9]),r(i,"stroke-width",l=n[17]+10),r(i,"transform","rotate(-72, "+20+", "+20+")"),r(i,"height",n[1]),r(i,"width",n[21]),r(o,"id",s=n[10]+"-cut-out-star"),r(f,"stroke",n[14]),r(f,"stroke-width",n[17]),r(f,"width",n[21]),r(f,"height",n[1]),r(f,"clip-path",u="url(#"+n[10]+"-cut-out-star)"),r(a,"d",`M36.042,13.909c-0.123-0.377-0.456-0.646-0.85-0.688l-11.549-1.172L18.96,1.43c-0.16-0.36-0.519-0.596-0.915-0.596 - s-0.755,0.234-0.915,0.598L12.446,12.05L0.899,13.221c-0.394,0.04-0.728,0.312-0.85,0.688c-0.123,0.377-0.011,0.791,0.285,1.055 - l8.652,7.738L6.533,34.045c-0.083,0.387,0.069,0.787,0.39,1.02c0.175,0.127,0.381,0.191,0.588,0.191 - c0.173,0,0.347-0.045,0.503-0.137l10.032-5.84l10.03,5.84c0.342,0.197,0.77,0.178,1.091-0.059c0.32-0.229,0.474-0.633,0.391-1.02 - l-2.453-11.344l8.653-7.737C36.052,14.699,36.165,14.285,36.042,13.909z`),r(a,"class","stroke-cap-round"),r(a,"stroke",n[14]),r(a,"stroke-width",n[17]),r(a,"fill","transparent"),r(a,"stroke-dasharray",c=n[22]+" "+n[22]),r(a,"stroke-dashoffset",n[24]),r(a,"transform","rotate(-72, "+20+", "+20+")"),R(a,"filter",(n[16]?"drop-shadow(0px 0px "+n[16]+"px "+n[14]+")":"")+" "+("contrast("+n[15]+"%)")),r(t,"transform",d=` - `+(n[18]>0?"rotate("+n[18]+" "+19.35+" "+22+")":"")+` - `+("translate("+n[19]+" "+n[20]+")")),R(h,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"width",n[21]),r(e,"height",n[1]),r(e,"viewBox","0 0 38 40"),r(e,"transform","scale(-1,1)"),r(e,"overflow","visible")},m(w,g){H(w,e,g),m(e,t),m(t,o),m(o,i),m(t,f),b&&b.m(t,null),m(t,a),n[29](a),m(e,h),B(_,h,null),k=!0},p(w,[g]){(!k||g&2048)&&r(i,"stroke",w[11]),(!k||g&512)&&r(i,"fill",w[9]),(!k||g&131072&&l!==(l=w[17]+10))&&r(i,"stroke-width",l),(!k||g&2)&&r(i,"height",w[1]),(!k||g&2097152)&&r(i,"width",w[21]),(!k||g&1024&&s!==(s=w[10]+"-cut-out-star"))&&r(o,"id",s),(!k||g&16384)&&r(f,"stroke",w[14]),(!k||g&131072)&&r(f,"stroke-width",w[17]),(!k||g&2097152)&&r(f,"width",w[21]),(!k||g&2)&&r(f,"height",w[1]),(!k||g&1024&&u!==(u="url(#"+w[10]+"-cut-out-star)"))&&r(f,"clip-path",u),w[0]?b?b.p(w,g):(b=Xi(w),b.c(),b.m(t,a)):b&&(b.d(1),b=null),(!k||g&16384)&&r(a,"stroke",w[14]),(!k||g&131072)&&r(a,"stroke-width",w[17]),(!k||g&4194304&&c!==(c=w[22]+" "+w[22]))&&r(a,"stroke-dasharray",c),(!k||g&16777216)&&r(a,"stroke-dashoffset",w[24]),(!k||g&114688)&&R(a,"filter",(w[16]?"drop-shadow(0px 0px "+w[16]+"px "+w[14]+")":"")+" "+("contrast("+w[15]+"%)")),(!k||g&1835008&&d!==(d=` - `+(w[18]>0?"rotate("+w[18]+" "+19.35+" "+22+")":"")+` - `+("translate("+w[19]+" "+w[20]+")")))&&r(t,"transform",d);const S={};g&4&&(S.icon=w[2]),g&64&&(S.scale=w[6]),g&128&&(S.translateX=w[7]),g&256&&(S.translateY=w[8]),g&8&&(S.style="color:"+w[3]),_.$set(S),(!k||g&56)&&R(h,"filter",(w[5]?"drop-shadow(0px 0px "+w[5]+"px "+w[3]+")":"")+" "+("contrast("+w[4]+"%)")),(!k||g&2097152)&&r(e,"width",w[21]),(!k||g&2)&&r(e,"height",w[1])},i(w){k||(C(_.$$.fragment,w),k=!0)},o(w){T(_.$$.fragment,w),k=!1},d(w){w&&E(e),b&&b.d(),n[29](null),U(_)}}}function ea(n,e,t){let o,i,{displayOutline:l=!0}=e,{height:s=50}=e,{icon:f=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:c=0}=e,{iconRotateDegree:d=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:_=0}=e,{iconTranslateY:k=0}=e,{innerColor:b="#212121"}=e,{name:w=""}=e,{outlineColor:g="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:D=0}=e,{progressColor:Y="red"}=e,{progressContrast:$=100}=e,{progressDropShadowAmount:W=0}=e,{progressValue:q=100}=e,{ringSize:j=4}=e,{rotateDegree:x=0}=e,{translateX:V=0}=e,{translateY:Q=0}=e,{width:M=50}=e;const X=nn(q,{duration:600,easing:pn});de(n,X,v=>t(28,i=v));let p,z;Pt(()=>{try{t(22,z=p.getTotalLength())}catch{}});function J(v){te[v?"unshift":"push"](()=>{p=v,t(23,p)})}return n.$$set=v=>{"displayOutline"in v&&t(0,l=v.displayOutline),"height"in v&&t(1,s=v.height),"icon"in v&&t(2,f=v.icon),"iconColor"in v&&t(3,u=v.iconColor),"iconContrast"in v&&t(4,a=v.iconContrast),"iconDropShadowAmount"in v&&t(5,c=v.iconDropShadowAmount),"iconRotateDegree"in v&&t(26,d=v.iconRotateDegree),"iconScaling"in v&&t(6,h=v.iconScaling),"iconTranslateX"in v&&t(7,_=v.iconTranslateX),"iconTranslateY"in v&&t(8,k=v.iconTranslateY),"innerColor"in v&&t(9,b=v.innerColor),"name"in v&&t(10,w=v.name),"outlineColor"in v&&t(11,g=v.outlineColor),"outlineContrast"in v&&t(12,S=v.outlineContrast),"outlineDropShadowAmount"in v&&t(13,D=v.outlineDropShadowAmount),"progressColor"in v&&t(14,Y=v.progressColor),"progressContrast"in v&&t(15,$=v.progressContrast),"progressDropShadowAmount"in v&&t(16,W=v.progressDropShadowAmount),"progressValue"in v&&t(27,q=v.progressValue),"ringSize"in v&&t(17,j=v.ringSize),"rotateDegree"in v&&t(18,x=v.rotateDegree),"translateX"in v&&t(19,V=v.translateX),"translateY"in v&&t(20,Q=v.translateY),"width"in v&&t(21,M=v.width)},n.$$.update=()=>{n.$$.dirty&134217728&&X.set(q),n.$$.dirty&272629760&&t(24,o=z-i/100*z)},[l,s,f,u,a,c,h,_,k,b,w,g,S,D,Y,$,W,j,x,V,Q,M,z,p,o,X,d,q,i,J]}class na extends ue{constructor(e){super();fe(this,e,ea,$s,ce,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:26,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:10,outlineColor:11,outlineContrast:12,outlineDropShadowAmount:13,progressColor:14,progressContrast:15,progressDropShadowAmount:16,progressValue:27,ringSize:17,rotateDegree:18,translateX:19,translateY:20,width:21})}}function ta(n){let e,t,o,i,l,s,f,u,a;return f=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],flip:"horizontal",style:"color:"+n[2]}}),{c(){e=O("svg"),t=O("path"),i=O("path"),s=O("g"),P(f.$$.fragment),r(t,"d","M21.87,19.29l-9-15.58a1,1,0,0,0-1.74,0l-9,15.58a1,1,0,0,0,0,1,1,1,0,0,0,.87.5H21a1,1,0,0,0,.87-.9"),r(t,"class","stroke-cap-round stroke-join-round"),r(t,"stroke",n[9]),r(t,"fill",n[8]),r(t,"stroke-width",n[15]),r(t,"stroke-dasharray",o=n[20]+" "+n[20]),r(t,"stroke-dashoffset",0),R(t,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(i,"d","M21.87,19.29l-9-15.58a1,1,0,0,0-1.74,0l-9,15.58a1,1,0,0,0,0,1,1,1,0,0,0,.87.5H21a1,1,0,0,0,.87-.9"),r(i,"class","stroke-cap-round"),r(i,"stroke",n[12]),r(i,"fill","transparent"),r(i,"stroke-width",n[15]),r(i,"stroke-dasharray",l=n[20]+" "+n[20]),r(i,"stroke-dashoffset",n[22]),r(i,"transform","rotate(-120, "+12+", "+14.5+")"),R(i,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),R(s,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",n[19]),r(e,"height",n[0]),r(e,"viewBox","0 0 24 24"),r(e,"transform",u=` - scale(-1,1) - `+(n[16]>0?"rotate("+n[16]+" "+12+" "+14.5+")":"")+` - `+("translate("+n[17]+" "+n[18]+")")),r(e,"overflow","visible")},m(c,d){H(c,e,d),m(e,t),m(e,i),n[28](i),m(e,s),B(f,s,null),a=!0},p(c,[d]){(!a||d&512)&&r(t,"stroke",c[9]),(!a||d&256)&&r(t,"fill",c[8]),(!a||d&32768)&&r(t,"stroke-width",c[15]),(!a||d&1048576&&o!==(o=c[20]+" "+c[20]))&&r(t,"stroke-dasharray",o),(!a||d&3584)&&R(t,"filter",(c[11]?"drop-shadow(0px 0px "+c[11]+"px "+c[9]+")":"")+" "+("contrast("+c[10]+"%)")),(!a||d&4096)&&r(i,"stroke",c[12]),(!a||d&32768)&&r(i,"stroke-width",c[15]),(!a||d&1048576&&l!==(l=c[20]+" "+c[20]))&&r(i,"stroke-dasharray",l),(!a||d&4194304)&&r(i,"stroke-dashoffset",c[22]),(!a||d&28672)&&R(i,"filter",(c[14]?"drop-shadow(0px 0px "+c[14]+"px "+c[12]+")":"")+" "+("contrast("+c[13]+"%)"));const h={};d&2&&(h.icon=c[1]),d&32&&(h.scale=c[5]),d&64&&(h.translateX=c[6]),d&128&&(h.translateY=c[7]),d&4&&(h.style="color:"+c[2]),f.$set(h),(!a||d&28)&&R(s,"filter",(c[4]?"drop-shadow(0px 0px "+c[4]+"px "+c[2]+")":"")+" "+("contrast("+c[3]+"%)")),(!a||d&524288)&&r(e,"width",c[19]),(!a||d&1)&&r(e,"height",c[0]),(!a||d&458752&&u!==(u=` - scale(-1,1) - `+(c[16]>0?"rotate("+c[16]+" "+12+" "+14.5+")":"")+` - `+("translate("+c[17]+" "+c[18]+")")))&&r(e,"transform",u)},i(c){a||(C(f.$$.fragment,c),a=!0)},o(c){T(f.$$.fragment,c),a=!1},d(c){c&&E(e),n[28](null),U(f)}}}function oa(n,e,t){let o,i,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{innerColor:k="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:g=100}=e,{outlineDropShadowAmount:S=0}=e,{progressColor:D="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:$=0}=e,{progressValue:W=100}=e,{ringSize:q=4}=e,{rotateDegree:j=0}=e,{translateX:x=0}=e,{translateY:V=0}=e,{width:Q=50}=e;const M=nn(W,{duration:600,easing:pn});de(n,M,J=>t(27,i=J));let X,p;Pt(()=>{try{t(20,p=X.getTotalLength())}catch{console.log("Error: PS-Hud: Triangle-Ring-Icon should not be mounting when hiding icons")}});function z(J){te[J?"unshift":"push"](()=>{X=J,t(21,X)})}return n.$$set=J=>{"height"in J&&t(0,l=J.height),"icon"in J&&t(1,s=J.icon),"iconColor"in J&&t(2,f=J.iconColor),"iconContrast"in J&&t(3,u=J.iconContrast),"iconDropShadowAmount"in J&&t(4,a=J.iconDropShadowAmount),"iconRotateDegree"in J&&t(24,c=J.iconRotateDegree),"iconScaling"in J&&t(5,d=J.iconScaling),"iconTranslateX"in J&&t(6,h=J.iconTranslateX),"iconTranslateY"in J&&t(7,_=J.iconTranslateY),"innerColor"in J&&t(8,k=J.innerColor),"name"in J&&t(25,b=J.name),"outlineColor"in J&&t(9,w=J.outlineColor),"outlineContrast"in J&&t(10,g=J.outlineContrast),"outlineDropShadowAmount"in J&&t(11,S=J.outlineDropShadowAmount),"progressColor"in J&&t(12,D=J.progressColor),"progressContrast"in J&&t(13,Y=J.progressContrast),"progressDropShadowAmount"in J&&t(14,$=J.progressDropShadowAmount),"progressValue"in J&&t(26,W=J.progressValue),"ringSize"in J&&t(15,q=J.ringSize),"rotateDegree"in J&&t(16,j=J.rotateDegree),"translateX"in J&&t(17,x=J.translateX),"translateY"in J&&t(18,V=J.translateY),"width"in J&&t(19,Q=J.width)},n.$$.update=()=>{n.$$.dirty&67108864&&M.set(W),n.$$.dirty&135266304&&t(22,o=p-i/100*p)},[l,s,f,u,a,d,h,_,k,w,g,S,D,Y,$,q,j,x,V,Q,p,X,o,M,c,b,W,i,z]}class ia extends ue{constructor(e){super();fe(this,e,oa,ta,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconRotateDegree:24,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,name:25,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:26,ringSize:15,rotateDegree:16,translateX:17,translateY:18,width:19})}}function Oi(n){let e,t,o,i;return{c(){e=O("path"),r(e,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(e,"class","stroke-cap-round"),r(e,"stroke",n[11]),r(e,"fill",t="transparent"),r(e,"stroke-width",n[17]),r(e,"stroke-dasharray",o=n[20]+" "+n[20]),r(e,"stroke-dashoffset",i=0),R(e,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)"))},m(l,s){H(l,e,s)},p(l,s){s&2048&&r(e,"stroke",l[11]),s&131072&&r(e,"stroke-width",l[17]),s&1048576&&o!==(o=l[20]+" "+l[20])&&r(e,"stroke-dasharray",o),s&14336&&R(e,"filter",(l[13]?"drop-shadow(0px 0px "+l[13]+"px "+l[11]+")":"")+" "+("contrast("+l[12]+"%)"))},d(l){l&&E(e)}}}function la(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g=n[0]&&Oi(n);return b=new Fe({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],flip:"horizontal",style:"color:"+n[3]}}),{c(){e=O("svg"),t=O("defs"),o=O("clipPath"),i=O("path"),s=O("g"),g&&g.c(),f=O("path"),a=O("svg"),c=O("path"),k=O("g"),P(b.$$.fragment),r(i,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(i,"class","stroke-cap-round"),r(o,"viewBox","0 0 12 12"),r(o,"id",l=n[10]+"-cut-out-hexring"),r(f,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(f,"class","stroke-cap-round"),r(f,"stroke",n[14]),r(f,"fill","transparent"),r(f,"stroke-width",n[17]),r(f,"stroke-dasharray",u=n[20]+" "+n[20]),r(f,"stroke-dashoffset",n[21]),R(f,"filter",(n[16]?"drop-shadow(0px 0px "+n[16]+"px "+n[14]+")":"")+" "+("contrast("+n[15]+"%)")),r(c,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(c,"class","stroke-cap-round"),r(c,"fill",n[9]),r(c,"transform",d="translate("+(.45+n[17]/2.5)+", "+(.45+n[17]/2.5)+")"),r(a,"viewBox",h="0 0 "+(24+n[17]+.38)+" "+(24+n[17]+.38)),r(s,"transform",_=` - `+(n[18]>0?"rotate("+n[18]+" "+12+" "+12+")":"")),R(k,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"width",n[19]),r(e,"height",n[1]),r(e,"viewBox","0 0 24 24"),r(e,"overflow","visible")},m(S,D){H(S,e,D),m(e,t),m(t,o),m(o,i),m(e,s),g&&g.m(s,null),m(s,f),n[29](f),m(s,a),m(a,c),m(e,k),B(b,k,null),w=!0},p(S,[D]){(!w||D&1024&&l!==(l=S[10]+"-cut-out-hexring"))&&r(o,"id",l),S[0]?g?g.p(S,D):(g=Oi(S),g.c(),g.m(s,f)):g&&(g.d(1),g=null),(!w||D&16384)&&r(f,"stroke",S[14]),(!w||D&131072)&&r(f,"stroke-width",S[17]),(!w||D&1048576&&u!==(u=S[20]+" "+S[20]))&&r(f,"stroke-dasharray",u),(!w||D&2097152)&&r(f,"stroke-dashoffset",S[21]),(!w||D&114688)&&R(f,"filter",(S[16]?"drop-shadow(0px 0px "+S[16]+"px "+S[14]+")":"")+" "+("contrast("+S[15]+"%)")),(!w||D&512)&&r(c,"fill",S[9]),(!w||D&131072&&d!==(d="translate("+(.45+S[17]/2.5)+", "+(.45+S[17]/2.5)+")"))&&r(c,"transform",d),(!w||D&131072&&h!==(h="0 0 "+(24+S[17]+.38)+" "+(24+S[17]+.38)))&&r(a,"viewBox",h),(!w||D&262144&&_!==(_=` - `+(S[18]>0?"rotate("+S[18]+" "+12+" "+12+")":"")))&&r(s,"transform",_);const Y={};D&4&&(Y.icon=S[2]),D&64&&(Y.scale=S[6]),D&128&&(Y.translateX=S[7]),D&256&&(Y.translateY=S[8]),D&8&&(Y.style="color:"+S[3]),b.$set(Y),(!w||D&56)&&R(k,"filter",(S[5]?"drop-shadow(0px 0px "+S[5]+"px "+S[3]+")":"")+" "+("contrast("+S[4]+"%)")),(!w||D&524288)&&r(e,"width",S[19]),(!w||D&2)&&r(e,"height",S[1])},i(S){w||(C(b.$$.fragment,S),w=!0)},o(S){T(b.$$.fragment,S),w=!1},d(S){S&&E(e),g&&g.d(),n[29](null),U(b)}}}function ra(n,e,t){let o,{displayOutline:i=!0}=e,{height:l=50}=e,{icon:s=null}=e,{iconColor:f="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:d=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:_=0}=e,{innerColor:k="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:g=100}=e,{outlineDropShadowAmount:S=0}=e,{progressColor:D="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:$=0}=e,{progressValue:W=100}=e,{ringSize:q=4}=e,{rotateDegree:j=0}=e,{translateX:x=0}=e,{translateY:V=0}=e,{width:Q=50}=e,M=10;const X=nn(W,{duration:600,easing:pn});de(n,X,v=>t(28,o=v));let p,z;Pt(()=>{try{t(20,z=p.getTotalLength())}catch{}});function J(v){te[v?"unshift":"push"](()=>{p=v,t(22,p)})}return n.$$set=v=>{"displayOutline"in v&&t(0,i=v.displayOutline),"height"in v&&t(1,l=v.height),"icon"in v&&t(2,s=v.icon),"iconColor"in v&&t(3,f=v.iconColor),"iconContrast"in v&&t(4,u=v.iconContrast),"iconDropShadowAmount"in v&&t(5,a=v.iconDropShadowAmount),"iconRotateDegree"in v&&t(24,c=v.iconRotateDegree),"iconScaling"in v&&t(6,d=v.iconScaling),"iconTranslateX"in v&&t(7,h=v.iconTranslateX),"iconTranslateY"in v&&t(8,_=v.iconTranslateY),"innerColor"in v&&t(9,k=v.innerColor),"name"in v&&t(10,b=v.name),"outlineColor"in v&&t(11,w=v.outlineColor),"outlineContrast"in v&&t(12,g=v.outlineContrast),"outlineDropShadowAmount"in v&&t(13,S=v.outlineDropShadowAmount),"progressColor"in v&&t(14,D=v.progressColor),"progressContrast"in v&&t(15,Y=v.progressContrast),"progressDropShadowAmount"in v&&t(16,$=v.progressDropShadowAmount),"progressValue"in v&&t(25,W=v.progressValue),"ringSize"in v&&t(17,q=v.ringSize),"rotateDegree"in v&&t(18,j=v.rotateDegree),"translateX"in v&&t(26,x=v.translateX),"translateY"in v&&t(27,V=v.translateY),"width"in v&&t(19,Q=v.width)},n.$$.update=()=>{n.$$.dirty&33554432&&X.set(W),n.$$.dirty&269484032&&t(21,M=z-o/100*z)},[i,l,s,f,u,a,d,h,_,k,b,w,g,S,D,Y,$,q,j,Q,z,M,p,X,c,W,x,V,o,J]}class sa extends ue{constructor(e){super();fe(this,e,ra,la,ce,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:24,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:10,outlineColor:11,outlineContrast:12,outlineDropShadowAmount:13,progressColor:14,progressContrast:15,progressDropShadowAmount:16,progressValue:25,ringSize:17,rotateDegree:18,translateX:26,translateY:27,width:19})}}function aa(n){let e,t,o,i,l,s,f,u,a,c,d,h;return d=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],flip:"horizontal",style:"color:"+n[2]}}),{c(){e=O("svg"),t=O("g"),o=O("path"),i=O("clipPath"),l=O("path"),f=O("line"),c=O("g"),P(d.$$.fragment),r(o,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(o,"fill",n[9]),r(o,"stroke","transparent"),r(o,"stroke-width",n[22]),R(o,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(l,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(i,"id",s=n[8]+"-cut-out-hexwhole"),r(f,"x1","50%"),r(f,"y1",24),r(f,"x2","50%"),r(f,"y2",0),r(f,"stroke",n[12]),r(f,"stroke-dasharray",n[19]),r(f,"stroke-dashoffset",n[20]),r(f,"stroke-width",n[19]),r(f,"clip-path",u="url(#"+n[8]+"-cut-out-hexwhole)"),R(f,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(t,"transform",a=` - `+(n[15]>0?"rotate("+n[15]+" "+12+" "+12+")":"")+` - `+("translate("+n[16]+" "+n[17]+")")),R(c,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",n[18]),r(e,"height",n[0]),r(e,"viewBox","0 0 24 24")},m(_,k){H(_,e,k),m(e,t),m(t,o),m(t,i),m(i,l),m(t,f),n[26](f),m(e,c),B(d,c,null),h=!0},p(_,[k]){(!h||k&512)&&r(o,"fill",_[9]),(!h||k&4194304)&&r(o,"stroke-width",_[22]),(!h||k&3584)&&R(o,"filter",(_[11]?"drop-shadow(0px 0px "+_[11]+"px "+_[9]+")":"")+" "+("contrast("+_[10]+"%)")),(!h||k&256&&s!==(s=_[8]+"-cut-out-hexwhole"))&&r(i,"id",s),(!h||k&4096)&&r(f,"stroke",_[12]),(!h||k&524288)&&r(f,"stroke-dasharray",_[19]),(!h||k&1048576)&&r(f,"stroke-dashoffset",_[20]),(!h||k&524288)&&r(f,"stroke-width",_[19]),(!h||k&256&&u!==(u="url(#"+_[8]+"-cut-out-hexwhole)"))&&r(f,"clip-path",u),(!h||k&28672)&&R(f,"filter",(_[14]?"drop-shadow(0px 0px "+_[14]+"px "+_[12]+")":"")+" "+("contrast("+_[13]+"%)")),(!h||k&229376&&a!==(a=` - `+(_[15]>0?"rotate("+_[15]+" "+12+" "+12+")":"")+` - `+("translate("+_[16]+" "+_[17]+")")))&&r(t,"transform",a);const b={};k&2&&(b.icon=_[1]),k&32&&(b.scale=_[5]),k&64&&(b.translateX=_[6]),k&128&&(b.translateY=_[7]),k&4&&(b.style="color:"+_[2]),d.$set(b),(!h||k&28)&&R(c,"filter",(_[4]?"drop-shadow(0px 0px "+_[4]+"px "+_[2]+")":"")+" "+("contrast("+_[3]+"%)")),(!h||k&262144)&&r(e,"width",_[18]),(!h||k&1)&&r(e,"height",_[0])},i(_){h||(C(d.$$.fragment,_),h=!0)},o(_){T(d.$$.fragment,_),h=!1},d(_){_&&E(e),n[26](null),U(d)}}}function ua(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,j=10,x=null,V=0,Q=i;Pt(()=>{try{t(19,V=x.getTotalLength())}catch{console.log("Error: PS-Hud: Hexagon-Whole-Icon should not be mounting when hiding icons")}});const M=nn(D,{duration:600,easing:pn});de(n,M,p=>t(25,o=p));function X(p){te[p?"unshift":"push"](()=>{x=p,t(21,x)})}return n.$$set=p=>{"height"in p&&t(0,i=p.height),"icon"in p&&t(1,l=p.icon),"iconColor"in p&&t(2,s=p.iconColor),"iconContrast"in p&&t(3,f=p.iconContrast),"iconDropShadowAmount"in p&&t(4,u=p.iconDropShadowAmount),"iconScaling"in p&&t(5,a=p.iconScaling),"iconTranslateX"in p&&t(6,c=p.iconTranslateX),"iconTranslateY"in p&&t(7,d=p.iconTranslateY),"name"in p&&t(8,h=p.name),"outlineColor"in p&&t(9,_=p.outlineColor),"outlineContrast"in p&&t(10,k=p.outlineContrast),"outlineDropShadowAmount"in p&&t(11,b=p.outlineDropShadowAmount),"progressColor"in p&&t(12,w=p.progressColor),"progressContrast"in p&&t(13,g=p.progressContrast),"progressDropShadowAmount"in p&&t(14,S=p.progressDropShadowAmount),"progressValue"in p&&t(24,D=p.progressValue),"rotateDegree"in p&&t(15,Y=p.rotateDegree),"translateX"in p&&t(16,$=p.translateX),"translateY"in p&&t(17,W=p.translateY),"width"in p&&t(18,q=p.width)},n.$$.update=()=>{n.$$.dirty&262145&&t(22,Q=i>q?i:q),n.$$.dirty&16777216&&M.set(D),n.$$.dirty&34078720&&t(20,j=V-o/100*V)},[i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,Y,$,W,q,V,j,x,Q,M,D,o,X]}class fa extends ue{constructor(e){super();fe(this,e,ua,aa,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:24,rotateDegree:15,translateX:16,translateY:17,width:18})}}function ca(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b;return _=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=O("svg"),t=O("g"),o=O("circle"),f=O("circle"),h=O("g"),P(_.$$.fragment),r(o,"stroke",n[8]),r(o,"fill","transparent"),r(o,"stroke-dashoffset",0),r(o,"stroke-dasharray",i=n[20]+" "+n[20]),r(o,"stroke-width",l=n[19]*2),r(o,"r",n[19]),r(o,"cx",n[18]),r(o,"cy",n[18]),r(o,"transform",s="rotate(-90, "+n[18]+", "+n[18]+")"),R(o,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)")),r(f,"stroke",n[11]),r(f,"fill","transparent"),r(f,"stroke-dashoffset",n[21]),r(f,"stroke-dasharray",u=n[20]+" "+n[20]),r(f,"stroke-width",a=n[19]*2),r(f,"r",n[19]),r(f,"cx",n[18]),r(f,"cy",n[18]),r(f,"transform",c="rotate(-90, "+n[18]+", "+n[18]+")"),R(f,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(t,"transform",d=` - `+(n[14]>0?"rotate("+n[14]+" "+n[17]+" "+n[0]+")":"")+` - `+("translate("+n[15]+" "+n[16]+")")),R(h,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",n[18]),r(e,"height",n[18]),r(e,"viewBox",k="0 0 "+n[18]*2+" "+n[18]*2)},m(w,g){H(w,e,g),m(e,t),m(t,o),m(t,f),m(e,h),B(_,h,null),b=!0},p(w,[g]){(!b||g&256)&&r(o,"stroke",w[8]),(!b||g&1048576&&i!==(i=w[20]+" "+w[20]))&&r(o,"stroke-dasharray",i),(!b||g&524288&&l!==(l=w[19]*2))&&r(o,"stroke-width",l),(!b||g&524288)&&r(o,"r",w[19]),(!b||g&262144)&&r(o,"cx",w[18]),(!b||g&262144)&&r(o,"cy",w[18]),(!b||g&262144&&s!==(s="rotate(-90, "+w[18]+", "+w[18]+")"))&&r(o,"transform",s),(!b||g&1792)&&R(o,"filter",(w[10]?"drop-shadow(0px 0px "+w[10]+"px "+w[8]+")":"")+" "+("contrast("+w[9]+"%)")),(!b||g&2048)&&r(f,"stroke",w[11]),(!b||g&2097152)&&r(f,"stroke-dashoffset",w[21]),(!b||g&1048576&&u!==(u=w[20]+" "+w[20]))&&r(f,"stroke-dasharray",u),(!b||g&524288&&a!==(a=w[19]*2))&&r(f,"stroke-width",a),(!b||g&524288)&&r(f,"r",w[19]),(!b||g&262144)&&r(f,"cx",w[18]),(!b||g&262144)&&r(f,"cy",w[18]),(!b||g&262144&&c!==(c="rotate(-90, "+w[18]+", "+w[18]+")"))&&r(f,"transform",c),(!b||g&14336)&&R(f,"filter",(w[13]?"drop-shadow(0px 0px "+w[13]+"px "+w[11]+")":"")+" "+("contrast("+w[12]+"%)")),(!b||g&245761&&d!==(d=` - `+(w[14]>0?"rotate("+w[14]+" "+w[17]+" "+w[0]+")":"")+` - `+("translate("+w[15]+" "+w[16]+")")))&&r(t,"transform",d);const S={};g&2&&(S.icon=w[1]),g&32&&(S.scale=w[5]),g&64&&(S.translateX=w[6]),g&128&&(S.translateY=w[7]),g&4&&(S.style="color:"+w[2]),_.$set(S),(!b||g&28)&&R(h,"filter",(w[4]?"drop-shadow(0px 0px "+w[4]+"px "+w[2]+")":"")+" "+("contrast("+w[3]+"%)")),(!b||g&262144)&&r(e,"width",w[18]),(!b||g&262144)&&r(e,"height",w[18]),(!b||g&262144&&k!==(k="0 0 "+w[18]*2+" "+w[18]*2))&&r(e,"viewBox",k)},i(w){b||(C(_.$$.fragment,w),b=!0)},o(w){T(_.$$.fragment,w),b=!1},d(w){w&&E(e),U(_)}}}function ha(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{outlineColor:_="red"}=e,{outlineContrast:k=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:g=100}=e,{progressDropShadowAmount:S=0}=e,{progressValue:D=100}=e,{rotateDegree:Y=0}=e,{translateX:$=0}=e,{translateY:W=0}=e,{width:q=50}=e,j=25;const x=nn(D,{duration:600,easing:pn});de(n,x,X=>t(25,o=X));let V=j,Q=V*2*Math.PI,M=Q-o/100*Q;return n.$$set=X=>{"height"in X&&t(0,i=X.height),"icon"in X&&t(1,l=X.icon),"iconColor"in X&&t(2,s=X.iconColor),"iconContrast"in X&&t(3,f=X.iconContrast),"iconDropShadowAmount"in X&&t(4,u=X.iconDropShadowAmount),"iconScaling"in X&&t(5,a=X.iconScaling),"iconTranslateX"in X&&t(6,c=X.iconTranslateX),"iconTranslateY"in X&&t(7,d=X.iconTranslateY),"name"in X&&t(23,h=X.name),"outlineColor"in X&&t(8,_=X.outlineColor),"outlineContrast"in X&&t(9,k=X.outlineContrast),"outlineDropShadowAmount"in X&&t(10,b=X.outlineDropShadowAmount),"progressColor"in X&&t(11,w=X.progressColor),"progressContrast"in X&&t(12,g=X.progressContrast),"progressDropShadowAmount"in X&&t(13,S=X.progressDropShadowAmount),"progressValue"in X&&t(24,D=X.progressValue),"rotateDegree"in X&&t(14,Y=X.rotateDegree),"translateX"in X&&t(15,$=X.translateX),"translateY"in X&&t(16,W=X.translateY),"width"in X&&t(17,q=X.width)},n.$$.update=()=>{n.$$.dirty&16777216&&x.set(D),n.$$.dirty&35520513&&(t(18,j=i>q?i:q),t(19,V=j),t(20,Q=V*2*Math.PI),t(21,M=Q-o/100*Q))},[i,l,s,f,u,a,c,d,_,k,b,w,g,S,Y,$,W,q,j,V,Q,M,x,h,D,o]}class ga extends ue{constructor(e){super();fe(this,e,ha,ca,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:23,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:24,rotateDegree:14,translateX:15,translateY:16,width:17})}}function da(n){let e,t,o,i,l,s,f,u,a,c,d,h;return a=new Fe({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]+";"}}),{c(){e=O("svg"),t=O("g"),o=O("line"),i=O("line"),l=O("line"),u=O("g"),P(a.$$.fragment),r(o,"stroke",n[9]),r(o,"x1","50%"),r(o,"y1","100%"),r(o,"x2","50%"),r(o,"y2","0%"),r(o,"stroke-width",n[19]),R(o,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(i,"x1","50%"),r(i,"y1","100%"),r(i,"x2","50%"),r(i,"y2","0%"),r(i,"stroke",n[12]),r(i,"fill","transparent"),r(i,"stroke-dasharray",n[0]),r(i,"stroke-dashoffset",n[20]),r(i,"stroke-width",n[19]),R(i,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(l,"stroke",n[8]),r(l,"x1","50%"),r(l,"y1",s=n[0]-n[15]),r(l,"x2","50%"),r(l,"y2",n[15]),r(l,"stroke-width",f=n[19]-n[15]*2),r(u,"transform",c="rotate( "+-n[16]+" "+n[0]/2+" "+n[19]/2+")"),R(u,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"height",n[0]),r(e,"width",n[19]),r(e,"overflow","visible"),r(e,"transform",d=` - `+(n[16]>0?"rotate("+n[16]+" "+0+" "+0+")":"")+` - `+("translate("+n[17]+" "+n[18]+")"))},m(_,k){H(_,e,k),m(e,t),m(t,o),m(t,i),m(t,l),m(e,u),B(a,u,null),h=!0},p(_,[k]){(!h||k&512)&&r(o,"stroke",_[9]),(!h||k&524288)&&r(o,"stroke-width",_[19]),(!h||k&3584)&&R(o,"filter",(_[11]?"drop-shadow(0px 0px "+_[11]+"px "+_[9]+")":"")+" "+("contrast("+_[10]+"%)")),(!h||k&4096)&&r(i,"stroke",_[12]),(!h||k&1)&&r(i,"stroke-dasharray",_[0]),(!h||k&1048576)&&r(i,"stroke-dashoffset",_[20]),(!h||k&524288)&&r(i,"stroke-width",_[19]),(!h||k&28672)&&R(i,"filter",(_[14]?"drop-shadow(0px 0px "+_[14]+"px "+_[12]+")":"")+" "+("contrast("+_[13]+"%)")),(!h||k&256)&&r(l,"stroke",_[8]),(!h||k&32769&&s!==(s=_[0]-_[15]))&&r(l,"y1",s),(!h||k&32768)&&r(l,"y2",_[15]),(!h||k&557056&&f!==(f=_[19]-_[15]*2))&&r(l,"stroke-width",f);const b={};k&2&&(b.icon=_[1]),k&32&&(b.scale=_[5]),k&64&&(b.translateX=_[6]),k&128&&(b.translateY=_[7]),k&4&&(b.style="color:"+_[2]+";"),a.$set(b),(!h||k&589825&&c!==(c="rotate( "+-_[16]+" "+_[0]/2+" "+_[19]/2+")"))&&r(u,"transform",c),(!h||k&28)&&R(u,"filter",(_[4]?"drop-shadow(0px 0px "+_[4]+"px "+_[2]+")":"")+" "+("contrast("+_[3]+"%)")),(!h||k&1)&&r(e,"height",_[0]),(!h||k&524288)&&r(e,"width",_[19]),(!h||k&458752&&d!==(d=` - `+(_[16]>0?"rotate("+_[16]+" "+0+" "+0+")":"")+` - `+("translate("+_[17]+" "+_[18]+")")))&&r(e,"transform",d)},i(_){h||(C(a.$$.fragment,_),h=!0)},o(_){T(a.$$.fragment,_),h=!1},d(_){_&&E(e),U(a)}}}function ma(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{innerColor:h="#212121"}=e,{name:_=""}=e,{outlineColor:k="red"}=e,{outlineContrast:b=100}=e,{outlineDropShadowAmount:w=0}=e,{progressColor:g="red"}=e,{progressContrast:S=100}=e,{progressDropShadowAmount:D=0}=e,{progressValue:Y=100}=e,{ringSize:$=4}=e,{rotateDegree:W=0}=e,{translateX:q=0}=e,{translateY:j=0}=e,{width:x=50}=e,V=10;const Q=nn(Y,{duration:600,easing:pn});return de(n,Q,M=>t(24,o=M)),n.$$set=M=>{"height"in M&&t(0,i=M.height),"icon"in M&&t(1,l=M.icon),"iconColor"in M&&t(2,s=M.iconColor),"iconContrast"in M&&t(3,f=M.iconContrast),"iconDropShadowAmount"in M&&t(4,u=M.iconDropShadowAmount),"iconScaling"in M&&t(5,a=M.iconScaling),"iconTranslateX"in M&&t(6,c=M.iconTranslateX),"iconTranslateY"in M&&t(7,d=M.iconTranslateY),"innerColor"in M&&t(8,h=M.innerColor),"name"in M&&t(22,_=M.name),"outlineColor"in M&&t(9,k=M.outlineColor),"outlineContrast"in M&&t(10,b=M.outlineContrast),"outlineDropShadowAmount"in M&&t(11,w=M.outlineDropShadowAmount),"progressColor"in M&&t(12,g=M.progressColor),"progressContrast"in M&&t(13,S=M.progressContrast),"progressDropShadowAmount"in M&&t(14,D=M.progressDropShadowAmount),"progressValue"in M&&t(23,Y=M.progressValue),"ringSize"in M&&t(15,$=M.ringSize),"rotateDegree"in M&&t(16,W=M.rotateDegree),"translateX"in M&&t(17,q=M.translateX),"translateY"in M&&t(18,j=M.translateY),"width"in M&&t(19,x=M.width)},n.$$.update=()=>{n.$$.dirty&8388608&&Q.set(Y),n.$$.dirty&16777217&&t(20,V=i-o/100*i)},[i,l,s,f,u,a,c,d,h,k,b,w,g,S,D,$,W,q,j,x,V,Q,_,Y,o]}class _a extends ue{constructor(e){super();fe(this,e,ma,da,ce,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,name:22,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:23,ringSize:15,rotateDegree:16,translateX:17,translateY:18,width:19})}}function wa(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q=Math.round(n[9])+"%",M,X,p;return x=new Fe({props:{icon:n[2],scale:n[5],translateX:n[6],translateY:n[7]||.2,style:"color:"+n[0]}}),{c(){e=O("svg"),t=O("filter"),o=O("feOffset"),i=O("feGaussianBlur"),l=O("feColorMatrix"),s=O("feOffset"),f=O("feGaussianBlur"),u=O("feColorMatrix"),a=O("feOffset"),c=O("feGaussianBlur"),d=O("feColorMatrix"),h=O("feOffset"),_=O("feGaussianBlur"),k=O("feColorMatrix"),b=O("feOffset"),w=O("feGaussianBlur"),g=O("feColorMatrix"),S=O("feMerge"),D=O("feMergeNode"),Y=O("feMergeNode"),$=O("feMergeNode"),W=O("feMergeNode"),q=O("feMergeNode"),j=O("g"),P(x.$$.fragment),V=O("text"),M=be(Q),r(o,"in","SourceAlpha"),r(o,"result","shadowOffsetOuter1"),r(i,"in","shadowOffsetOuter1"),r(i,"result","shadowBlurOuter1"),r(i,"stdDeviation","5"),r(l,"in","shadowBlurOuter1"),r(l,"result","shadowMatrixOuter1"),r(l,"values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"),r(s,"dy","1"),r(s,"in","SourceAlpha"),r(s,"result","shadowOffsetOuter2"),r(f,"in","shadowOffsetOuter2"),r(f,"result","shadowBlurOuter2"),r(f,"stdDeviation","7"),r(u,"in","shadowBlurOuter2"),r(u,"result","shadowMatrixOuter2"),r(u,"values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0"),r(a,"dy","2"),r(a,"in","SourceAlpha"),r(a,"result","shadowOffsetOuter3"),r(c,"in","shadowOffsetOuter3"),r(c,"result","shadowBlurOuter3"),r(c,"stdDeviation","10"),r(d,"in","shadowBlurOuter3"),r(d,"result","shadowMatrixOuter3"),r(d,"values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"),r(h,"dx","2"),r(h,"dy","2"),r(h,"in","SourceAlpha"),r(h,"result","shadowOffsetOuter4"),r(_,"in","shadowOffsetOuter4"),r(_,"result","shadowBlurOuter4"),r(_,"stdDeviation","1"),r(k,"in","shadowBlurOuter4"),r(k,"result","shadowMatrixOuter4"),r(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.69678442 0"),r(b,"dy","2"),r(b,"in","SourceAlpha"),r(b,"result","shadowOffsetOuter5"),r(w,"in","shadowOffsetOuter5"),r(w,"result","shadowBlurOuter5"),r(w,"stdDeviation","8"),r(g,"in","shadowBlurOuter5"),r(g,"result","shadowMatrixOuter5"),r(g,"values","0 0 0 0 0.314369351 0 0 0 0 0.8883757 0 0 0 0 0.759899616 0 0 0 0.649371603 0"),r(D,"in","shadowMatrixOuter1"),r(Y,"in","shadowMatrixOuter2"),r($,"in","shadowMatrixOuter3"),r(W,"in","shadowMatrixOuter4"),r(q,"in","shadowMatrixOuter5"),r(t,"id","glow"),r(t,"width","100%"),r(t,"height","100%"),r(t,"x","0"),r(t,"y","0"),r(t,"filterUnits","userSpaceOnUse"),r(j,"class","glow svelte-1vo34hh"),R(j,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[0]+")":"")+" "+("contrast("+n[3]+"%)")),r(V,"class","font-semibold text-lg"),r(V,"fill","white"),r(V,"x","55%"),r(V,"y","20%"),r(V,"dominant-baseline","middle"),r(V,"text-anchor","middle"),r(e,"width",n[8]),r(e,"height",n[1]),r(e,"viewBox",X="0 0 "+n[8]+" "+n[1])},m(z,J){H(z,e,J),m(e,t),m(t,o),m(t,i),m(t,l),m(t,s),m(t,f),m(t,u),m(t,a),m(t,c),m(t,d),m(t,h),m(t,_),m(t,k),m(t,b),m(t,w),m(t,g),m(t,S),m(S,D),m(S,Y),m(S,$),m(S,W),m(S,q),m(e,j),B(x,j,null),m(e,V),m(V,M),p=!0},p(z,[J]){const v={};J&4&&(v.icon=z[2]),J&32&&(v.scale=z[5]),J&64&&(v.translateX=z[6]),J&128&&(v.translateY=z[7]||.2),J&1&&(v.style="color:"+z[0]),x.$set(v),(!p||J&25)&&R(j,"filter",(z[4]?"drop-shadow(0px 0px "+z[4]+"px "+z[0]+")":"")+" "+("contrast("+z[3]+"%)")),(!p||J&512)&&Q!==(Q=Math.round(z[9])+"%")&&un(M,Q),(!p||J&256)&&r(e,"width",z[8]),(!p||J&2)&&r(e,"height",z[1]),(!p||J&258&&X!==(X="0 0 "+z[8]+" "+z[1]))&&r(e,"viewBox",X)},i(z){p||(C(x.$$.fragment,z),p=!0)},o(z){T(x.$$.fragment,z),p=!1},d(z){z&&E(e),U(x)}}}function ba(n,e,t){let o,{height:i=50}=e,{icon:l=null}=e,{iconColor:s="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:u=0}=e,{iconScaling:a=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:d=0}=e,{name:h=""}=e,{progressColor:_="red"}=e,{progressValue:k=100}=e,{rotateDegree:b=0}=e,{translateX:w=0}=e,{translateY:g=0}=e,{width:S=50}=e;const D=nn(k,{duration:600,easing:Ao});return de(n,D,Y=>t(9,o=Y)),n.$$set=Y=>{"height"in Y&&t(1,i=Y.height),"icon"in Y&&t(2,l=Y.icon),"iconColor"in Y&&t(0,s=Y.iconColor),"iconContrast"in Y&&t(3,f=Y.iconContrast),"iconDropShadowAmount"in Y&&t(4,u=Y.iconDropShadowAmount),"iconScaling"in Y&&t(5,a=Y.iconScaling),"iconTranslateX"in Y&&t(6,c=Y.iconTranslateX),"iconTranslateY"in Y&&t(7,d=Y.iconTranslateY),"name"in Y&&t(11,h=Y.name),"progressColor"in Y&&t(12,_=Y.progressColor),"progressValue"in Y&&t(13,k=Y.progressValue),"rotateDegree"in Y&&t(14,b=Y.rotateDegree),"translateX"in Y&&t(15,w=Y.translateX),"translateY"in Y&&t(16,g=Y.translateY),"width"in Y&&t(8,S=Y.width)},n.$$.update=()=>{n.$$.dirty&8192&&D.set(k),n.$$.dirty&4097&&s=="white"&&t(0,s=_)},[s,i,l,f,u,a,c,d,S,o,D,h,_,k,b,w,g]}class ka extends ue{constructor(e){super();fe(this,e,ba,wa,ce,{height:1,icon:2,iconColor:0,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:11,progressColor:12,progressValue:13,rotateDegree:14,translateX:15,translateY:16,width:8})}}function Sa(n){let e,t;const o=[n[1]];let i={};for(let l=0;l{s[c]=null}),ge()),~e?(t=s[e],t?t.p(u,a):(t=s[e]=l[e](u),t.c()),C(t,1),t.m(o.parentNode,o)):t=null)},i(u){i||(C(t),i=!0)},o(u){T(t),i=!1},d(u){~e&&s[e].d(u),u&&E(o)}}}function Ua(n,e,t){let{hudIconInfo:o={}}=e,i;return n.$$set=l=>{"hudIconInfo"in l&&t(0,o=l.hudIconInfo)},n.$$.update=()=>{n.$$.dirty&1&&t(1,i=(u=>{var a=u,{shape:l,isShowing:s}=a,f=Do(a,["shape","isShowing"]);return f})(o))},[o,i]}class nr extends ue{constructor(e){super();fe(this,e,Ua,Ba,ce,{hudIconInfo:0})}}function Fi(n,e,t){const o=n.slice();return o[10]=e[t][0],o[11]=e[t][1],o}function Ei(n,e,t){const o=n.slice();o[10]=e[t];const i=o[2].designMode?o[4]==o[10]?o[3].globalColorSettings.editSingleIconStage:0:o[3].icons[o[10]].currentEffect;o[14]=i;const l=o[3].icons[o[10]].colorEffects[o[14]];o[15]=l;const s=o[5][o[10]];return o[16]=s,o}function Vi(n){let e,t,o,i;return t=new nr({props:{hudIconInfo:Et(sn({},n[2].icons[n[10]]),{progressColor:n[15].progressColor,progressContrast:n[15].progressContrast,progressDropShadowAmount:n[15].progressDropShadowAmount,progressValue:n[2].designMode?n[2].designProgress:n[2].icons[n[10]].progressValue,iconColor:n[16]?n[16].iconColor:n[15].iconColor,iconContrast:n[15].iconContrast,iconDropShadowAmount:n[15].iconDropShadowAmount,outlineColor:n[15].outlineColor,outlineContrast:n[15].outlineContrast,outlineDropShadowAmount:n[15].outlineDropShadowAmount,innerColor:n[15].innerColor})}}),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","my-auto")},m(l,s){H(l,e,s),B(t,e,null),i=!0},p(l,s){const f={};s&61&&(f.hudIconInfo=Et(sn({},l[2].icons[l[10]]),{progressColor:l[15].progressColor,progressContrast:l[15].progressContrast,progressDropShadowAmount:l[15].progressDropShadowAmount,progressValue:l[2].designMode?l[2].designProgress:l[2].icons[l[10]].progressValue,iconColor:l[16]?l[16].iconColor:l[15].iconColor,iconContrast:l[15].iconContrast,iconDropShadowAmount:l[15].iconDropShadowAmount,outlineColor:l[15].outlineColor,outlineContrast:l[15].outlineContrast,outlineDropShadowAmount:l[15].outlineDropShadowAmount,innerColor:l[15].innerColor})),t.$set(f)},i(l){i||(C(t.$$.fragment,l),l&&Mt(()=>{o||(o=Yn(e,qn,{duration:1e3},!0)),o.run(1)}),i=!0)},o(l){T(t.$$.fragment,l),l&&(o||(o=Yn(e,qn,{duration:1e3},!1)),o.run(0)),i=!1},d(l){l&&E(e),U(t),l&&o&&o.end()}}}function Hi(n){let e=n[2].icons[n[10]].isShowing&&!n[1].includes(n[10])||n[2].designMode,t,o,i=e&&Vi(n);return{c(){i&&i.c(),t=dn()},m(l,s){i&&i.m(l,s),H(l,t,s),o=!0},p(l,s){s&7&&(e=l[2].icons[l[10]].isShowing&&!l[1].includes(l[10])||l[2].designMode),e?i?(i.p(l,s),s&7&&C(i,1)):(i=Vi(l),i.c(),C(i,1),i.m(t.parentNode,t)):i&&(he(),T(i,1,1,()=>{i=null}),ge())},i(l){o||(C(i),o=!0)},o(l){T(i),o=!1},d(l){i&&i.d(l),l&&E(t)}}}function Ri(n){let e,t,o,i,l=(n[11].isShowing||n[2].designMode)&&Pi(n);return{c(){e=A("div"),l&&l.c(),t=y(),r(e,"class","my-auto")},m(s,f){H(s,e,f),l&&l.m(e,null),m(e,t),i=!0},p(s,f){s[11].isShowing||s[2].designMode?l?(l.p(s,f),f&36&&C(l,1)):(l=Pi(s),l.c(),C(l,1),l.m(e,t)):l&&(he(),T(l,1,1,()=>{l=null}),ge())},i(s){i||(C(l),s&&Mt(()=>{o||(o=Yn(e,qn,{duration:1e3},!0)),o.run(1)}),i=!0)},o(s){T(l),s&&(o||(o=Yn(e,qn,{duration:1e3},!1)),o.run(0)),i=!1},d(s){s&&E(e),l&&l.d(),s&&o&&o.end()}}}function Pi(n){let e,t;return e=new nr({props:{hudIconInfo:n[11]}}),{c(){P(e.$$.fragment)},m(o,i){B(e,o,i),t=!0},p(o,i){const l={};i&32&&(l.hudIconInfo=o[11]),e.$set(l)},i(o){t||(C(e.$$.fragment,o),t=!0)},o(o){T(e.$$.fragment,o),t=!1},d(o){U(e,o)}}}function Bi(n,e){let t,o,i,l=e[11].name&&Ri(e);return{key:n,first:null,c(){t=dn(),l&&l.c(),o=dn(),this.first=t},m(s,f){H(s,t,f),l&&l.m(s,f),H(s,o,f),i=!0},p(s,f){e=s,e[11].name?l?(l.p(e,f),f&32&&C(l,1)):(l=Ri(e),l.c(),C(l,1),l.m(o.parentNode,o)):l&&(he(),T(l,1,1,()=>{l=null}),ge())},i(s){i||(C(l),i=!0)},o(s){T(l),i=!1},d(s){s&&E(t),l&&l.d(s),s&&E(o)}}}function za(n){let e,t=[],o=new Map,i,l,s=n[0].length?n[0]:n[6],f=[];for(let d=0;dT(f[d],1,1,()=>{f[d]=null});let a=Object.entries(n[5]);const c=d=>d[10];for(let d=0;dt(2,i=_)),de(n,re,_=>t(3,l=_)),de(n,ti,_=>t(5,s=_));let{isReversed:f=!1}=e,{iconsToShow:u=[]}=e,{iconsToNotShow:a=[]}=e,{options:c={}}=e,{optionsForAll:d={}}=e,h=i.showingOrder;return n.$$set=_=>{"isReversed"in _&&t(7,f=_.isReversed),"iconsToShow"in _&&t(0,u=_.iconsToShow),"iconsToNotShow"in _&&t(1,a=_.iconsToNotShow),"options"in _&&t(8,c=_.options),"optionsForAll"in _&&t(9,d=_.optionsForAll)},n.$$.update=()=>{if(n.$$.dirty&8&&t(4,o=l.globalColorSettings.editSingleIconName),n.$$.dirty&132){let _=i.showingOrder;f&&(_=_.reverse())}},[u,a,i,l,o,s,h,f,c,d]}class ao extends ue{constructor(e){super();fe(this,e,La,za,ce,{isReversed:7,iconsToShow:0,iconsToNotShow:1,options:8,optionsForAll:9})}}function Ui(n){let e,t,o,i;const l=[Za,Ja,Wa,Ga,ja,Na,qa],s=[];function f(u,a){return u[1]=="center-bottom-row"?0:u[1]=="bottom-right-row"?1:u[1]=="left-bottom-column"?2:u[1]=="right-bottom-column"?3:u[1]=="top-left-row"?4:u[1]=="top-right-row"?5:u[1]=="standard"?6:-1}return~(e=f(n))&&(t=s[e]=l[e](n)),{c(){t&&t.c(),o=dn()},m(u,a){~e&&s[e].m(u,a),H(u,o,a),i=!0},p(u,a){let c=e;e=f(u),e===c?~e&&s[e].p(u,a):(t&&(he(),T(s[c],1,1,()=>{s[c]=null}),ge()),~e?(t=s[e],t?t.p(u,a):(t=s[e]=l[e](u),t.c()),C(t,1),t.m(o.parentNode,o)):t=null)},i(u){i||(C(t),i=!0)},o(u){T(t),i=!1},d(u){~e&&s[e].d(u),u&&E(o)}}}function qa(n){let e,t,o;return t=new ao({}),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","absolute bottom-[0.3vw] left-[0.3vw] flex flex-row standard-layout svelte-1w35tm2"),R(e,"gap",n[0].iconBetweenSpacing+"px"),R(e,"margin-bottom",n[0].yAxisSpacing+"px"),R(e,"margin-left",n[0].xAxisSpacing+"px")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,l){(!o||l&1)&&R(e,"gap",i[0].iconBetweenSpacing+"px"),(!o||l&1)&&R(e,"margin-bottom",i[0].yAxisSpacing+"px"),(!o||l&1)&&R(e,"margin-left",i[0].xAxisSpacing+"px")},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Na(n){let e,t,o;return t=new ao({}),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","absolute top-[0.3vw] right-[0.3vw] flex flex-row"),R(e,"gap",n[0].iconBetweenSpacing+"px"),R(e,"margin-bottom",n[0].yAxisSpacing+"px"),R(e,"margin-left",n[0].xAxisSpacing+"px")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,l){(!o||l&1)&&R(e,"gap",i[0].iconBetweenSpacing+"px"),(!o||l&1)&&R(e,"margin-bottom",i[0].yAxisSpacing+"px"),(!o||l&1)&&R(e,"margin-left",i[0].xAxisSpacing+"px")},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function ja(n){let e,t,o;return t=new ao({}),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","absolute top-[0.3vw] left-[0.3vw] flex flex-row"),R(e,"gap",n[0].iconBetweenSpacing+"px"),R(e,"margin-bottom",n[0].yAxisSpacing+"px"),R(e,"margin-left",n[0].xAxisSpacing+"px")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,l){(!o||l&1)&&R(e,"gap",i[0].iconBetweenSpacing+"px"),(!o||l&1)&&R(e,"margin-bottom",i[0].yAxisSpacing+"px"),(!o||l&1)&&R(e,"margin-left",i[0].xAxisSpacing+"px")},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Ga(n){let e,t,o,i;return o=new ao({}),{c(){e=A("div"),t=A("div"),P(o.$$.fragment),r(t,"class","static flex flex-col"),R(t,"gap",n[0].iconBetweenSpacing+"px"),R(t,"margin-bottom",n[0].yAxisSpacing+"px"),R(t,"margin-left",n[0].xAxisSpacing+"px"),r(e,"class","absolute bottom-[0.3vw] right-[1vh]")},m(l,s){H(l,e,s),m(e,t),B(o,t,null),i=!0},p(l,s){(!i||s&1)&&R(t,"gap",l[0].iconBetweenSpacing+"px"),(!i||s&1)&&R(t,"margin-bottom",l[0].yAxisSpacing+"px"),(!i||s&1)&&R(t,"margin-left",l[0].xAxisSpacing+"px")},i(l){i||(C(o.$$.fragment,l),i=!0)},o(l){T(o.$$.fragment,l),i=!1},d(l){l&&E(e),U(o)}}}function Wa(n){let e,t,o,i;return o=new ao({}),{c(){e=A("div"),t=A("div"),P(o.$$.fragment),r(t,"class","static flex flex-col"),R(t,"gap",n[0].iconBetweenSpacing+"px"),R(t,"margin-bottom",n[0].yAxisSpacing+"px"),R(t,"margin-left",n[0].xAxisSpacing+"px"),r(e,"class","absolute bottom-[0.3vw] left-[1vh]")},m(l,s){H(l,e,s),m(e,t),B(o,t,null),i=!0},p(l,s){(!i||s&1)&&R(t,"gap",l[0].iconBetweenSpacing+"px"),(!i||s&1)&&R(t,"margin-bottom",l[0].yAxisSpacing+"px"),(!i||s&1)&&R(t,"margin-left",l[0].xAxisSpacing+"px")},i(l){i||(C(o.$$.fragment,l),i=!0)},o(l){T(o.$$.fragment,l),i=!1},d(l){l&&E(e),U(o)}}}function Ja(n){let e,t,o;return t=new ao({}),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","absolute bottom-[0.3vw] right-[0.3vw] flex flex-row"),R(e,"gap",n[0].iconBetweenSpacing+"px"),R(e,"margin-bottom",n[0].yAxisSpacing+"px"),R(e,"margin-left",n[0].xAxisSpacing+"px")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,l){(!o||l&1)&&R(e,"gap",i[0].iconBetweenSpacing+"px"),(!o||l&1)&&R(e,"margin-bottom",i[0].yAxisSpacing+"px"),(!o||l&1)&&R(e,"margin-left",i[0].xAxisSpacing+"px")},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Za(n){let e,t,o,i,l;return i=new ao({}),{c(){e=A("div"),t=A("div"),o=A("div"),P(i.$$.fragment),r(o,"class","flex flex-row"),R(o,"gap",n[0].iconBetweenSpacing+"px"),R(o,"margin-bottom",n[0].yAxisSpacing+"px"),R(o,"margin-left",n[0].xAxisSpacing+"px"),r(t,"class","static flex flex-row mx-auto"),R(t,"width","max-content"),r(e,"class","absolute bottom-[0.3vw] w-100vw")},m(s,f){H(s,e,f),m(e,t),m(t,o),B(i,o,null),l=!0},p(s,f){(!l||f&1)&&R(o,"gap",s[0].iconBetweenSpacing+"px"),(!l||f&1)&&R(o,"margin-bottom",s[0].yAxisSpacing+"px"),(!l||f&1)&&R(o,"margin-left",s[0].xAxisSpacing+"px")},i(s){l||(C(i.$$.fragment,s),l=!0)},o(s){T(i.$$.fragment,s),l=!1},d(s){s&&E(e),U(i)}}}function Ka(n){let e,t,o=(n[2].show||An)&&Ui(n);return{c(){o&&o.c(),e=dn()},m(i,l){o&&o.m(i,l),H(i,e,l),t=!0},p(i,[l]){i[2].show||An?o?(o.p(i,l),l&4&&C(o,1)):(o=Ui(i),o.c(),C(o,1),o.m(e.parentNode,e)):o&&(he(),T(o,1,1,()=>{o=null}),ge())},i(i){t||(C(o),t=!0)},o(i){T(o),t=!1},d(i){o&&o.d(i),i&&E(e)}}}function Qa(n,e,t){let o,i;de(n,ft,s=>t(0,o=s)),de(n,ne,s=>t(2,i=s));let l="standard";return n.$$.update=()=>{n.$$.dirty&1&&t(1,l=o.layout)},[o,l,i]}class xa extends ue{constructor(e){super();fe(this,e,Qa,Ka,ce,{})}}function $a(n){let e,t,o=(n[2]&&n[3]?n[3]:n[0])+"",i,l,s,f;return{c(){e=A("button"),t=A("span"),i=be(o),r(t,"class","text-black py-3 font-bold"),R(e,"backdrop-filter","drop-shadow(4px 4px 4px gray)"),r(e,"class",l="button bg-[var(--ps-hud-primary)] text-sm text-white py-2 px-4 my-2 rounded w-[150px] uppercase select-none disabled:opacity-25 disabled:cursor-not-allowed "+n[1]),e.disabled=n[2]},m(u,a){H(u,e,a),m(e,t),m(t,i),s||(f=Ke(e,"click",n[4]),s=!0)},p(u,[a]){a&13&&o!==(o=(u[2]&&u[3]?u[3]:u[0])+"")&&un(i,o),a&2&&l!==(l="button bg-[var(--ps-hud-primary)] text-sm text-white py-2 px-4 my-2 rounded w-[150px] uppercase select-none disabled:opacity-25 disabled:cursor-not-allowed "+u[1])&&r(e,"class",l),a&4&&(e.disabled=u[2])},i:Te,o:Te,d(u){u&&E(e),s=!1,f()}}}function eu(n,e,t){let{name:o=""}=e,{buttonClass:i=""}=e,{disable:l=!1}=e,{disableText:s=""}=e;function f(u){Xr.call(this,n,u)}return n.$$set=u=>{"name"in u&&t(0,o=u.name),"buttonClass"in u&&t(1,i=u.buttonClass),"disable"in u&&t(2,l=u.disable),"disableText"in u&&t(3,s=u.disableText)},[o,i,l,s,f]}class Ht extends ue{constructor(e){super();fe(this,e,eu,$a,ce,{name:0,buttonClass:1,disable:2,disableText:3})}}function nu(n){let e,t;return{c(){e=A("span"),t=be(n[1]),r(e,"class","primary-text svelte-18ttrkn")},m(o,i){H(o,e,i),m(e,t)},p(o,i){i&2&&un(t,o[1])},d(o){o&&E(e)}}}function tu(n){let e,t,o,i,l,s;return{c(){e=A("div"),t=A("span"),o=be(n[1]),i=y(),l=A("span"),s=be(n[2]),r(t,"class","primary-text mb-1 svelte-18ttrkn"),r(l,"class","secondary-text svelte-18ttrkn"),r(e,"class","flex flex-col")},m(f,u){H(f,e,u),m(e,t),m(t,o),m(e,i),m(e,l),m(l,s)},p(f,u){u&2&&un(o,f[1]),u&4&&un(s,f[2])},d(f){f&&E(e)}}}function ou(n){let e,t,o,i,l,s;function f(c,d){return c[2]?tu:nu}let u=f(n),a=u(n);return{c(){e=A("label"),t=A("input"),o=y(),a.c(),r(t,"class","cursor-pointer svelte-18ttrkn"),r(t,"type","checkbox"),r(t,"name","checkbox"),r(e,"class",i="flex flex-row gap-4 py-3 cursor-pointer select-none "+(n[2]?"items-center":""))},m(c,d){H(c,e,d),m(e,t),t.checked=n[0],m(e,o),a.m(e,null),l||(s=[Ke(t,"change",n[5]),Ke(t,"click",n[3])],l=!0)},p(c,[d]){d&1&&(t.checked=c[0]),u===(u=f(c))&&a?a.p(c,d):(a.d(1),a=u(c),a&&(a.c(),a.m(e,null))),d&4&&i!==(i="flex flex-row gap-4 py-3 cursor-pointer select-none "+(c[2]?"items-center":""))&&r(e,"class",i)},i:Te,o:Te,d(c){c&&E(e),a.d(),l=!1,Ro(s)}}}function iu(n,e,t){let{primaryText:o=""}=e,{secondaryText:i=""}=e,{checked:l}=e,{handleUpdateFunction:s=null}=e;function f(a){s&&s(a.target.checked)}function u(){l=this.checked,t(0,l)}return n.$$set=a=>{"primaryText"in a&&t(1,o=a.primaryText),"secondaryText"in a&&t(2,i=a.secondaryText),"checked"in a&&t(0,l=a.checked),"handleUpdateFunction"in a&&t(4,s=a.handleUpdateFunction)},[l,o,i,f,s,u]}class Ze extends ue{constructor(e){super();fe(this,e,iu,ou,ce,{primaryText:1,secondaryText:2,checked:0,handleUpdateFunction:4})}}function lu(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S;return{c(){e=O("svg"),t=O("style"),o=be(`.st0 { +var Ur=Object.defineProperty,Lr=Object.defineProperties;var Nr=Object.getOwnPropertyDescriptors;var Mi=Object.getOwnPropertySymbols;var nl=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var qi=(n,e,t)=>e in n?Ur(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,sn=(n,e)=>{for(var t in e||(e={}))nl.call(e,t)&&qi(n,t,e[t]);if(Mi)for(var t of Mi(e))tl.call(e,t)&&qi(n,t,e[t]);return n},yo=(n,e)=>Lr(n,Nr(e));var ki=(n,e)=>{var t={};for(var i in n)nl.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&Mi)for(var i of Mi(n))e.indexOf(i)<0&&tl.call(n,i)&&(t[i]=n[i]);return t};var Ke=(n,e,t)=>(qi(n,typeof e!="symbol"?e+"":e,t),t);import{w as go,g as Ht,f as qr,a as ol,b as jr,c as Gr,d as Wr,e as Jr,h as Zr,i as Kr,j as Qr,k as xr,l as $r,m as $i,n as es,o as ns,p as ts,q as os,r as Yr,s as is,t as ls,u as rs,v as ss,x as as,y as us,z as fs,A as cs,B as Eo,C as Xr,S as _e,D as we,E as be,F as Re,G as v,H,I,J as X,K as r,L as V,M as P,N as d,O as B,P as C,Q as T,R as F,T as z,U as on,V as Mn,W as me,X as ie,Y as ne,Z as re,_ as Se,$ as pe,a0 as Ci,a1 as kn,a2 as Cn,a3 as vn,a4 as An,a5 as mo,a6 as Gn,a7 as ct,a8 as hs,a9 as hi,aa as gs,ab as $e,ac as Ee,ad as ds,ae as Ti,af as se,ag as ae,ah as $t,ai as ms,aj as _s,ak as ws,al as il,am as ll,an as bs,ao as Oi,ap as Ss,aq as ps,ar as ks,as as Cs,at as vs,au as rl,av as ji,aw as Er,ax as As,ay as Ds,az as Ts,aA as Is,aB as Ms,aC as ys,aD as Ys,aE as Xs,aF as Es}from"./vendor.js";const Os=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}};Os();const Fs=()=>{const n={heading:1,show:!1,street1:"",street2:"",showCompass:!0,showStreets:!0,showPointer:!0,showDegress:!0},{subscribe:e,set:t,update:i}=go(n);return sn({subscribe:e,set:t,update:i},{receiveCompassMessage(o){i(s=>(s.show=o.show,s.showCompass=o.showCompass,s.street1=o.street1,s.street2=o.street2,s.showStreets=o.showStreets,s.showPointer=o.showPointer,s.showDegress=o.showDegress,s))},receiveCompassCloseMessage(o){i(s=>(s.show=o.show,s))},receiveCompassOpenMessage(o){i(s=>(s.show=o.show,s.showCompass=o.showCompass,s))},receiveHeadingMessage(o){i(s=>(s.heading=o.value-90,s))}})};var vi=Fs();const Ps=()=>{const n={cash:0,bank:0,amount:0,plus:!1,minus:!1,showCash:!1,showBank:!1,showUpdate:!1},{subscribe:e,set:t,update:i}=go(n),l={finishShowingUpdate(){i(o=>(o.showUpdate=!1,o))},finishShowingMoney(o){i(s=>(o=="cash"?s.showCash=!1:s.showBank=!1,s))},formatMoney(o){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(o)},receiveShowConstantMessage(o){i(s=>(s.showCash=!0,s.showBank=!0,s.cash=o.cash,s.bank=o.bank,s))},receiveUpdateMessage(o){i(s=>(s.showUpdate=!0,s.amount=o.amount,s.bank=o.bank,s.cash=o.cash,s.minus=o.minus,s.plus=!o.minus,o.type=="cash"?s.showCash=!0:o.type=="bank"&&(s.showBank=!0),setTimeout(()=>l.finishShowingUpdate(),3e3),setTimeout(()=>l.finishShowingMoney(o.type),4e3),s))},receiveShowAccountsMessage(o){i(s=>(o.type=="cash"&&!s.showCash?(s.showCash=!0,s.cash=o.cash):o.type=="bank"&&!s.showBank&&(s.showBank=!0,s.bank=o.bank),setTimeout(()=>l.finishShowingMoney(o.type),3500),s))}};return sn({subscribe:e,set:t,update:i},l)};var Xi=Ps();const el=["voice","health","armor","hunger","thirst","stress","oxygen","armed","parachute","engine","harness","cruise","nitro","dev"],Vs=["standard","bottom-right-row","center-bottom-row","left-bottom-column","right-bottom-column","top-left-row","top-right-row"],Or=["badge","circle-ring","circle-ring-whole","circle-circle-fill","circle-square-fill","circle-whole","diamond-ring","diamond-whole","hexagon-ring","hexagon-whole","horizontal-bar","icon-percentage","pill-ring","pill-whole","square-circular-fill","square-ring","square-whole","star-ring","triangle-ring"];class Fi{constructor(e,{icon:t=null,isShowing:i=!1,name:l="",progressValue:o=100}={}){Ke(this,"height",50);Ke(this,"icon",null);Ke(this,"iconScaling",.4);Ke(this,"iconTranslateX",0);Ke(this,"iconTranslateY",0);Ke(this,"isShowing",!0);Ke(this,"name","");Ke(this,"progressValue",100);Ke(this,"shape","circle-whole");Ke(this,"rotateDegree",0);Ke(this,"translateX",0);Ke(this,"translateY",0);Ke(this,"width",50);switch(e){case"circle-circle-fill":case"circle-square-fill":case"circle-whole":this.iconScaling=.55;break;case"diamond-whole":this.height=60,this.width=60,this.iconScaling=.35;break;case"hexagon-whole":this.iconScaling=.45;break;case"horizontal-bar":this.iconScaling=.6;break}this.shape=e,this.icon=t,this.isShowing=i,this.name=l,this.progressValue=o}}class Fr extends Fi{constructor(e,t={}){super(e,t);Ke(this,"displayOutline",!0);Ke(this,"iconRotateDegree",0);Ke(this,"ringSize",4);switch(e){case"circle-ring":case"circle-ring-whole":this.iconScaling=.4,this.ringSize=6;break;case"diamond-ring":this.height=60,this.width=60,this.iconScaling=.3,this.ringSize=1.5;break;case"hexagon-ring":this.iconScaling=.4,this.ringSize=2;break;case"square-ring":this.ringSize=12;break;case"star-ring":this.height=55,this.width=55,this.ringSize=3,this.iconScaling=.35,this.iconTranslateY=.06;break;case"triangle-ring":this.height=55,this.width=55,this.iconScaling=.3,this.iconTranslateY=.09,this.ringSize=3;break}}}const Pr=[67,111,112,121,114,105,103,104,116,32,169,32,50,48,50,50,32,80,114,111,106,101,99,116,32,83,108,111,116,104,46,32,65,108,108,32,114,105,103,104,116,115,32,114,101,115,101,114,118,101,100,46];class Hs extends Fi{constructor(e,t={}){super(e,t);Ke(this,"xAxisRound",5);Ke(this,"yAxisRound",20);switch(e){case"badge":this.height=4,this.width=35,this.iconScaling=1.4,this.xAxisRound=2,this.yAxisRound=2;break;case"pill-whole":this.height=75,this.width=42,this.iconScaling=.55,this.xAxisRound=25,this.yAxisRound=25;break}}}class Bs extends Fr{constructor(e,t={}){super(e,t);Ke(this,"xAxisRound",5);Ke(this,"yAxisRound",20);switch(e){case"pill-ring":this.height=80,this.width=50,this.iconScaling=.4,this.xAxisRound=18,this.yAxisRound=18,this.ringSize=6.5}}}function Ai(n,e={}){switch(n){case"badge":case"pill-whole":return new Hs(n,e);case"circle-circle-fill":case"circle-square-fill":case"circle-whole":case"diamond-whole":case"hexagon-whole":case"horizontal-bar":case"square-circular-fill":return new Fi(n,e);case"circle-ring":case"circle-ring-whole":case"diamond-ring":case"hexagon-ring":case"square-ring":case"star-ring":case"triangle-ring":case"square-whole":return new Fr(n,e);case"pill-ring":return new Bs(n,e);default:return new Fi(n,e)}}const Vr="circle-ring";function lt(n="",e=!1,t=null){return Ai(Vr,{isShowing:e,icon:t,name:n})}const zs=n=>{const e=Math.max(0,Math.min(100,n));return Math.round(e/100*255).toString(16).padStart(2,"0").toUpperCase()};function Qe(n,e,t="",i="#FFFFFFFF",l="#212121FF"){return{iconColor:i,iconContrast:100,iconDropShadowAmount:0,innerColor:l,name:n,outlineColor:t||e+zs(40),outlineContrast:100,outlineDropShadowAmount:0,progressColor:e,progressContrast:100,progressDropShadowAmount:0}}function rt(){return Ei(Vr)}function Ei(n){let e={};switch(n){case"badge":case"circle-ring":case"diamond-ring":case"hexagon-ring":case"pill-ring":case"square-ring":case"square-whole":case"star-ring":case"triangle-ring":e.innerColor=!0;break}return e}const Gi="PSHudMenu",Ji="PSHudPlayerStatus",Zi="PSHudLayout",Ki="PSHudColor",Hr="PSHudProfile";function bt(n){return Math.min(n,100)}const Rs=()=>{let n=localStorage.getItem(Ki),e={};n&&(e=JSON.parse(n));function t(f,c){return e&&e[f]!=null?e[f]:c}function i(){return{globalColorSettings:t("globalColorSettings",{editableColors:rt(),editSingleIconName:"voice",editSingleIconStage:0,iconColor:"",iconContrast:100,iconDropShadowAmount:0,innerColor:"",outlineColor:"",outlineContrast:100,outlineDropShadowAmount:0,progressColor:"",progressContrast:100,progressDropShadowAmount:0}),icons:{voice:t("voice",{currentEffect:0,colorEffects:[Qe("not-talking","#FFFFFF"),Qe("talking","#FFFF3E"),Qe("radio-talking","#D64763")],editableColors:rt()}),health:t("health",{currentEffect:0,colorEffects:[Qe("alive","#21ab61"),Qe("dead","#ff0000")],editableColors:rt()}),armor:t("armor",{currentEffect:0,colorEffects:[Qe("armor","#326dbf"),Qe("no-armor","#ff0000")],editableColors:rt()}),hunger:t("hunger",{currentEffect:0,colorEffects:[Qe("normal","#dd6e14"),Qe("starving","#ff0000")],editableColors:rt()}),thirst:t("thirst",{currentEffect:0,colorEffects:[Qe("normal","#1a7cad"),Qe("thirsty","#ff0000")],editableColors:rt()}),stress:t("stress",{currentEffect:0,colorEffects:[Qe("normal","#dc0606")],editableColors:rt()}),oxygen:t("oxygen",{currentEffect:0,colorEffects:[Qe("normal","#8aa8bd")],editableColors:rt()}),armed:t("armed",{currentEffect:0,colorEffects:[Qe("normal","#ff4885")],editableColors:rt()}),parachute:t("parachute",{currentEffect:0,colorEffects:[Qe("normal","#b9ff28")],editableColors:rt()}),engine:t("engine",{currentEffect:0,colorEffects:[Qe("no-damage","#3FA554"),Qe("minor-damage","#dd6e14"),Qe("major-damage","#ff0000")],editableColors:rt()}),harness:t("harness",{currentEffect:0,colorEffects:[Qe("normal","#b648ff")],editableColors:rt()}),cruise:t("cruise",{currentEffect:0,colorEffects:[Qe("normal","#ff4885")],editableColors:rt()}),nitro:t("nitro",{currentEffect:0,colorEffects:[Qe("no-nitro","#ffffff"),Qe("active-nitro","#D64763")],editableColors:rt()}),dev:t("dev",{currentEffect:0,colorEffects:[Qe("normal","#000000")],editableColors:rt()})}}}const l=i(),{subscribe:o,set:s,update:u}=go(l);return sn({subscribe:o,set:s,update:u},{resetColorEffects(){e={},localStorage.removeItem(Ki),s(i())},receiveUIUpdateMessage(f){if(!f||!Object.keys(f).length)return;let c=Ht(oe);u(h=>{let g,_;for([g,_]of Object.entries(f))h.icons[g]={currentEffect:0,editableColors:Ei(c.icons[g].shape),colorEffects:_.colorEffects};return h})},updateAllDefaultEffectColorSetting(f,c){u(h=>{for(let g of Object.keys(h.icons))switch(f){case"progressDropShadowAmount":case"iconDropShadowAmount":case"outlineDropShadowAmount":for(let _ of h.icons[g].colorEffects)_[f]=c;break;default:h.icons[g].colorEffects[0][f]=c;break}return h.globalColorSettings[f]=c,h})},updateAllIconShapeEditableColor(f){u(c=>{let h=Ei(f);for(let g in c.icons)c.icons[g].editableColors=h;return c.globalColorSettings.editableColors=h,c})},updateDefaultEffectColorSetting(f,c,h){u(g=>(g.icons[f].colorEffects[0][c]=h,g))},updateIconColorToProgressColor(){u(f=>{for(const c of Object.values(f.icons))for(const h of c.colorEffects)h.iconColor=h.progressColor;return f})},updateIconEffectStage(f,c){u(h=>(c<0||c>h.icons[f].colorEffects.length-1||(h.icons[f].currentEffect=c),h))},updateIconShapeEditableColor(f,c){u(h=>(h.icons[f].editableColors=Ei(c),h))},updateColorSetting(f,c,h,g){u(_=>(c<0||c>_.icons[f].colorEffects.length-1||(_.icons[f].colorEffects[c][h]=g),_))},updateProgressColor(f,c,h){u(g=>(c<0||c>g.icons[f].colorEffects.length-1||(g.icons[f].colorEffects[c].progressColor=h),g))}})};var de=Rs();const Us=()=>{let n=localStorage.getItem(Ji),e={};n&&(e=JSON.parse(n));function t(f,c){return e&&e[f]!=null?e[f]:c}function i(){return{designMode:!1,designProgress:0,globalIconSettings:t("globalIconSettings",(S=>{var b=S,{isShowing:f,name:c,icon:h,progressValue:g}=b,_=ki(b,["isShowing","name","icon","progressValue"]);return _})(lt())),icons:{voice:t("voice",lt("voice",!0,ol)),health:t("health",lt("health",!1,jr)),armor:t("armor",lt("armor",!1,Gr)),hunger:t("hunger",lt("hunger",!1,Wr)),thirst:t("thirst",lt("thirst",!1,Jr)),stress:t("stress",lt("stress",!1,Zr)),oxygen:t("oxygen",lt("oxygen",!1,Kr)),armed:t("armed",lt("armed",!1,Qr)),parachute:t("parachute",lt("parachute",!1,xr)),engine:t("engine",lt("engine",!1,$r)),harness:t("harness",lt("harness",!1,$i)),cruise:t("cruise",lt("cruise",!1,es)),nitro:t("nitro",lt("nitro",!1,ns)),dev:t("dev",lt("dev",!1,ts))},dynamicIcons:t("dynamicIcons",{armor:!1,engine:!1,health:!1,hunger:!1,nitro:!1,oxygen:!1,stress:!1,thirst:!1}),saveUIState:"ready",show:!1,showingOrder:["voice","health","armor","hunger","thirst","stress","oxygen","armed","parachute","engine","harness","cruise","nitro","dev"]}}const l=i(),{subscribe:o,set:s,update:u}=go(l),a={resetPlayerStatusIcons(){e={},localStorage.removeItem(Ji),s(yo(sn({},i()),{show:!0}))},updateAllIconsSettings(f,c){u(h=>{for(let g in h.icons)f in h.icons[g]&&(h.icons[g][f]=c);return h})},updateAllDisplayOutline(f){a.updateAllIconsSettings("displayOutline",f)},updateAllHeight(f){a.updateAllIconsSettings("height",f)},updateAllIconScale(f){a.updateAllIconsSettings("iconScaling",f)},updateAllRingSize(f){a.updateAllIconsSettings("ringSize",f)},updateAllRoundXAxis(f){a.updateAllIconsSettings("xAxisRound",f)},updateAllRoundYAxis(f){a.updateAllIconsSettings("yAxisRound",f)},updateAllRotateDegree(f){a.updateAllIconsSettings("rotateDegree",f)},updateAllShapes(f){u(c=>{for(let h in c.icons){let g=Ai(f,{icon:c.icons[h].icon,isShowing:c.icons[h].isShowing,name:c.icons[h].name,progressValue:c.icons[h].progressValue});c.icons[h]=g}return c.globalIconSettings=(w=>{var m=w,{isShowing:h,name:g,icon:_,progressValue:S}=m,b=ki(m,["isShowing","name","icon","progressValue"]);return b})(Ai(f,{icon:c.globalIconSettings.icon,isShowing:c.globalIconSettings.isShowing,name:c.globalIconSettings.name})),c})},updateAllTranslateIconX(f){a.updateAllIconsSettings("iconTranslateX",f)},updateAllTranslateIconY(f){a.updateAllIconsSettings("iconTranslateY",f)},updateAllTranslateX(f){a.updateAllIconsSettings("translateX",f)},updateAllTranslateY(f){a.updateAllIconsSettings("translateY",f)},updateAllWidth(f){a.updateAllIconsSettings("width",f)},updateIconShape(f,c){u(h=>{let g=Ai(c,{icon:h.icons[f].icon,isShowing:h.icons[f].isShowing,name:h.icons[f].name,progressValue:h.icons[f].progressValue});return h.icons[f]=g,h.icons[f].shape=c,h})},updateIconSetting(f,c,h){u(g=>(g.icons[f][c]=h,g))},updateShowingDynamicIcon(f,c){let h=!1;return u(g=>{switch(f){case"armor":g.icons.armor.isShowing=a.staticGenericZeroHandleShow(c,g.icons.armor.progressValue),h=g.icons.armor.isShowing;break;case"engine":g.icons.engine.isShowing=a.staticEngineHandleShow(c,g.icons.engine.progressValue),h=g.icons.engine.isShowing;break;case"health":g.icons.health.isShowing=a.staticGenericHundredHandleShow(c,g.icons.health.progressValue),h=g.icons.health.isShowing;break;case"hunger":g.icons.hunger.isShowing=a.staticGenericHundredHandleShow(c,g.icons.hunger.progressValue),h=g.icons.hunger.isShowing;break;case"nitro":g.icons.nitro.isShowing=a.staticNitroHandleShow(c,g.icons.nitro.progressValue,g.icons.engine.progressValue),h=g.icons.nitro.isShowing;break;case"oxygen":g.icons.oxygen.isShowing=a.staticGenericHundredHandleShow(c,g.icons.oxygen.progressValue),h=g.icons.oxygen.isShowing;break;case"stress":g.icons.stress.isShowing=a.staticGenericZeroHandleShow(c,g.icons.stress.progressValue),h=g.icons.stress.isShowing;break;case"thirst":g.icons.thirst.isShowing=a.staticGenericHundredHandleShow(c,g.icons.thirst.progressValue),h=g.icons.thirst.isShowing;break}return g}),h},updateAllShowingDynamicIcons(f){u(c=>{for(const h in c.dynamicIcons)c.dynamicIcons[h]=f,c.icons[h].isShowing=a.updateShowingDynamicIcon(h,f);return c})},receiveShowMessage(f){u(c=>(c.show=f.show,c))},receiveStatusUpdateMessage(f){u(c=>(c.show=f.show,c.icons.health.progressValue=bt(f.health),c.icons.armor.progressValue=bt(f.armor),c.icons.thirst.progressValue=bt(f.thirst),c.icons.hunger.progressValue=bt(f.hunger),c.icons.stress.progressValue=bt(f.stress),c.icons.voice.progressValue=bt(f.voice*16.6),c.icons.oxygen.progressValue=bt(f.oxygen),c.icons.parachute.progressValue=bt(f.parachute),c.icons.engine.progressValue=bt(f.engine),c.icons.harness.progressValue=bt(f.hp*5),c.icons.cruise.progressValue=bt(f.speed),c.icons.nitro.progressValue=bt(f.nos||0),c.icons.health.isShowing=a.staticGenericHundredHandleShow(c.dynamicIcons.health,c.icons.health.progressValue),f.playerDead?(de.updateIconEffectStage("health",1),c.icons.health.progressValue=100):de.updateIconEffectStage("health",0),c.icons.armor.isShowing=a.staticGenericZeroHandleShow(c.dynamicIcons.armor,c.icons.armor.progressValue),f.armor<=0?de.updateIconEffectStage("armor",1):de.updateIconEffectStage("armor",0),c.icons.hunger.isShowing=a.staticGenericHundredHandleShow(c.dynamicIcons.hunger,c.icons.hunger.progressValue),f.hunger<=30?de.updateIconEffectStage("hunger",1):de.updateIconEffectStage("hunger",0),c.icons.thirst.isShowing=a.staticGenericHundredHandleShow(c.dynamicIcons.thirst,c.icons.thirst.progressValue),f.thirst<=30?de.updateIconEffectStage("thirst",1):de.updateIconEffectStage("thirst",0),c.icons.stress.isShowing=a.staticGenericZeroHandleShow(c.dynamicIcons.stress,c.icons.stress.progressValue),c.icons.oxygen.isShowing=a.staticGenericHundredHandleShow(c.dynamicIcons.oxygen,c.icons.oxygen.progressValue),c.icons.engine.isShowing=a.staticEngineHandleShow(c.dynamicIcons.engine,c.icons.engine.progressValue),f.engine<=45?de.updateIconEffectStage("engine",2):f.engine<=75&&f.engine>=46?de.updateIconEffectStage("engine",1):f.engine<=100&&de.updateIconEffectStage("engine",0),c.icons.nitro.isShowing=a.staticNitroHandleShow(c.dynamicIcons.nitro,c.icons.nitro.progressValue,c.icons.engine.progressValue),f.nitroActive?de.updateIconEffectStage("nitro",1):de.updateIconEffectStage("nitro",0),f.talking?f.radioTalking?de.updateIconEffectStage("voice",2):de.updateIconEffectStage("voice",1):de.updateIconEffectStage("voice",0),f.radioChannel&&f.radioChannel>0?c.icons.voice.icon=qr:c.icons.voice.icon=ol,f.cruise?c.icons.cruise.isShowing=!0:c.icons.cruise.isShowing=!1,f.harness?c.icons.harness.isShowing=!0:c.icons.harness.isShowing=!1,f.armed?c.icons.armed.isShowing=!0:c.icons.armed.isShowing=!1,f.parachute>=0?c.icons.parachute.isShowing=!0:c.icons.parachute.isShowing=!1,f.dev?c.icons.dev.isShowing=!0:c.icons.dev.isShowing=!1,c))},receiveUIUpdateMessage(f){!f||!Object.keys(f).length||u(c=>{let h,g;for([h,g]of Object.entries(f))c.icons[h]=sn(sn({},Ai(g.shape,{icon:c.icons[h].icon,isShowing:c.icons[h].isShowing,name:c.icons[h].name,progressValue:c.icons[h].progressValue})),g);return c.saveUIState="ready",c})},receiveProfileData(f){a.receiveUIUpdateMessage(f.icons),u(c=>(c.globalIconSettings=f.globalIconSettings,c.showingOrder=f.showingOrder,c))},staticGenericZeroHandleShow(f,c){return f?!0:c!=0},staticEngineHandleShow(f,c){return f?!(c<0):c>=95?!1:!(c<0)},staticGenericHundredHandleShow(f,c){return f?!0:!(c>=100)},staticNitroHandleShow(f,c,h){return f?h>0:!(c<=0)}};return sn({subscribe:o,set:s,update:u},a)};var oe=Us();const Ls={biohazard:is,database:ls,dollarsign:rs,dumbbell:ss,exclamation:Yr,lightbulb:as,locationarrow:us,swimming:fs,wind:cs};function Ns(n){return Ls[n]||Yr}const qs=()=>{const n={},{subscribe:e,set:t,update:i}=go(n);return sn({subscribe:e,set:t,update:i},{receiveBuffStatusMessage(o){const s=o.buffName;i(u=>{if(!u[s]){const f=Ht(oe).icons.health;let c=yo(sn({},f),{icon:Ns(o.iconName),isShowing:o.display||!0,name:s,progressValue:o.progressValue||0}),h=o.progressColor||"#FFD700",g=o.outlineColor,_=o.iconColor||"#FFFFFF";if(!g){let b=os(h);b.opacity=.4,g=b.formatHex8()}let S=yo(sn({},c),{iconColor:_,outlineColor:g,progressColor:h});return u[s]=S,u}return!isNaN(o.progressValue)&&o.progressValue>=0?u[s].progressValue=o.progressValue:o.display!=null&&o.display!=null&&!o.display?u=delete u[s]&&u:console.error("PS-Buffs error: Buff State Message malformed!"),u})},receiveEnhancementStatusMessage(o){const s=o.enhancementName;if(!s){console.error("PS-Buffs error: Enchancement Message name malformed:",o.enhancementName);return}const u=s.replace("super-","");if(!el.includes(u)){console.error("PS-Buffs error: Enhancement Message name not valid:",o.enhancementName);return}i(a=>{if(!a[u]&&o.display&&o.iconColor)a[u]={iconColor:o.iconColor};else if(o.display===!1){if(!a[u])return console.error("PS-Buffs error: Enchancement name not found:",o.enhancementName),a;a=delete a[u]&&a}else console.error("PS-Buffs error: Enhancement Message malformed:",o);return a})}})};var Qi=qs();const js=()=>{let n=localStorage.getItem(Zi),e={};n&&(e=JSON.parse(n));function t(f,c){return e&&e[f]!=null?e[f]:c}function i(){return{layout:t("layout","standard"),iconBetweenSpacing:t("iconBetweenSpacing",2),xAxisSpacing:t("xAxisSpacing",0),yAxisSpacing:t("yAxisSpacing",0)}}const l=i(),{subscribe:o,set:s,update:u}=go(l);return sn({subscribe:o,set:s,update:u},{resetLayout(){e={},localStorage.removeItem(Zi),s(i())},receiveUIUpdateMessage(f){u(c=>(c.layout=f.layout,c.iconBetweenSpacing=f.iconBetweenSpacing,c.xAxisSpacing=f.xAxisSpacing,c.yAxisSpacing=f.yAxisSpacing,c))},updateLayout(f){u(c=>(c.layout=f,c))}})};var Bt=js();const Gs=()=>{const n={fuelColor:"#FFFFFF",altitude:0,fuel:0,speed:0,show:!1,showAltitude:!1,showSeatBelt:!1,showSquare:!1,showSquareBorder:!1,ShowCircle:!1,showCircleBorder:!1,seatbeltColor:"#e85b14"},{subscribe:e,set:t,update:i}=go(n);return sn({subscribe:e,set:t,update:i},{receiveShowMessage(o){i(s=>(s.show=o.show,s.showSeatBelt=o.seatbelt,s))},receiveUpdateMessage(o){i(s=>(s.show=o.show,s.speed=o.speed,s.altitude=o.altitude,s.fuel=bt(o.fuel),s.showSeatBelt=o.showSeatbelt,s.showAltitude=o.showAltitude,s.showSquareBorder=o.showSquareB,s.showCircleBorder=o.showCircleB,o.seatbelt?s.showSeatBelt=!1:s.showSeatBelt=!0,o.fuel<=20?s.fuelColor="#ff0000":o.fuel<=30?s.fuelColor="#dd6e14":s.fuelColor="#FFFFFF",o.isPaused&&(s.show=!1),s))}})};var Pi=Gs();const Ws=()=>{let n=localStorage.getItem(Hr),e={};n&&(e=JSON.parse(n));function t(f,c){return e&&e[f]!=null?e[f]:c}function i(){return t("profiles",[])}const l=i(),{subscribe:o,set:s,update:u}=go(l);return sn({subscribe:o,set:s,update:u},{addNewProfile(){u(f=>{let c=f.length+1,h="Profile#"+c;return f=[...f,{name:h,editingName:!1,savedData:""}],f})},applyProfileToHud(f){u(c=>{if(c[f]&&c[f].savedData){let h=JSON.parse(c[f].savedData);oe.receiveProfileData(h.playerStatusIconData),de.receiveUIUpdateMessage(h.colorData.icons),Bt.receiveUIUpdateMessage(h.layoutData)}return c})},deleteProfile(f){u(c=>(c=[...c.slice(0,f),...c.slice(f+1)],c))},saveHUDToProfile(f){const c=Ht(oe),h=Ht(de),g=Ht(Bt);let _={playerStatusIconData:c,colorData:h,layoutData:g};u(S=>(S[f].savedData=JSON.stringify(_),S))}})};var Yo=Ws();function Js(n){return fetch(`./${n}.json`).then(e=>e.json())}const Oo=go({hudSettings:"HUD Settings",statusIcons:"Status Icons",resetHud:"Reset HUD",resetSettings:"Reset Settings",resetHudDescription:"If your hud is acting up, give it a good ol' reset! Or you can do /resethud",resetSettingsDescriptionLine1:"If you want to reset your settings back to default; click this shiny button!",resetSettingsDescriptionLine2:"(you will have to relog for your menu to reset changes successfully)",optionsMenu:"Options",minimapVehicleCheckBoxPrimary:"Show Minimap Only in Vehicle",minimapVehicleCheckBoxSecondary:"Disabling this will always keep your minimap on your screen",compassVehicleCheckBoxPrimary:"Show Compass Only in Vehicle",compassVehicleCheckBoxSecondary:"Disabling this will always keep your compass on your screen",compassFollowCheckBoxPrimary:"Show Compass Follow Cam",compassFollowCheckBoxSecondary:"Disabling this will make it so you can no longer use your mouse to rotate the compass around",notificationsMenu:"Notifications",menuSoundEffectsEnabled:"Menu Sound Effect Enabled",resetSoundEffectsEnabled:"Reset Hud Sound Effects Enabled",guiSoundEffectsEnabled:"GUI Sound Effects Enabled",mapNotificationsEnabled:"Map Notifications Enabled",lowFuelNotificationsEnabled:"Low Fuel Alert Enabled",cinematicModeNotificationEnabled:"Cinematic Mode Notifications",statusMenu:"Status",showHealthAlways:"Show Health Always",showArmorAlways:"Show Armor Always",showHungerAlways:"Show Hunger Always",showThirstAlways:"Show Thirst Always",showStressAlways:"Show Stress Always",showOxygenAlways:"Show Oxygen Always",vehicleMenu:"Vehicle",minimapTypeCircle:"Minimap Circle",minimapTypeSquare:"Minimap Square",minimapTypeDescription:"Whether it's square or circle you desire, you have the ability to choose!",minimapEnabled:"Minimap Enabled",minimapBordersEnabled:"Minimap Borders Enabled",showEngineAlways:"Show Engine Always",showNitroAlways:"Show Nitro Always",compassMenu:"Compass",compassEnabled:"Compass Enabled",compassEnabledDescription:"Disabling this will make it so you can't see the compass navigation",showStreetNamesEnabled:"Show Street Names Enabled",showStreetNamesDescription:"Disabling this will make it so you can't see the street names / locations",showCompassPointerEnabled:"Show Compass Pointer Enabled",showCompassPointerDescription:"Disabling this will make it so you can't see your pointer index to pinpoint your exact cardinal directions",cinematicMenu:"Cinematic Mode",showCinematicBarsEnabled:"Show Cinematic Bars Enabled",statusIconsSettings:"Status Icons Settings",designMode:"Design Mode",resetStatusIconSettings:"Reset Status Icon Settings",saveChangesToServer:"Save Changes To Server",globalStatusIconsSettings:"Global Status Icons Settings",iconShape:"Icon Shape",globalSizeAndPositionSection:"Global Size & Position Section",widthSize:"Width Size",heightSize:"Height Size",ringSize:"Ring Size",showProgressOutline:"Show Progress Outline",xAxisPosition:"X-Axis Position",yAxisPosition:"Y-Axis Position",rotation:"Rotation",iconXAxisPosition:"Icon X-Axis Position",iconYAxisPosition:"Icon Y-Axis Position",iconSize:"Icon Size",xAxisCurve:"X-Axis Curve",yAxisCurve:"Y-Axis Curve",globalColorSection:"Global Color Section",progressColor:"Progress Color",progressContrast:"Progress Contrast",progressShadow:"Progress Shadow",iconColor:"Icon Color",iconContrast:"Icon Contrast",iconShadow:"Icon Shadow",outlineColor:"Outline Color",outlineContrast:"Outline Contrast",outlineShadow:"Outline Shadow",innerColor:"Inner Color",singleStatusIconSettings:"Single Status Icon Settings",iconStatusToEdit:"Icon Status To Edit",singleIconSizeAndPositionSection:"Single Icon Size & Position Section",singleIconColorSection:"Single Icon Color Section",globalStatusIconLayoutSettings:"Global Status Icon Layout Settings",iconLayout:"Icon Layout",iconState:"Icon State",betweenIconSpacing:"Between Icon Spacing",yAxisSpacing:"Y-Axis Spacing",xAxisSpacing:"X-Axis Spacing",utilityFunctions:"Utility Functions",copyProgressColorsToIconsColors:"Copy Progress Colors To Icon Colors",customizationProfiles:"Customization Profiles",addNewProfile:"Add New Profile",saveHudToProfile:"Save HUD To Profile",applyProfileToHud:"Apply Profile To HUD",deleteProfile:"Delete Profile"});async function Zs(n){try{const e=await Js(n);Oo.set(e)}catch(e){console.error("Failed to load translations:",e)}}function Ks(){function n(e){switch(e.data.action){case"baseplate":switch(e.data.topic){case"compassupdate":vi.receiveCompassMessage(e.data);break;case"opencompass":vi.receiveCompassOpenMessage(e.data);break;case"closecompass":vi.receiveCompassCloseMessage(e.data);break}break;case"car":switch(e.data.topic){case"display":Pi.receiveShowMessage(e.data);break;case"status":Pi.receiveUpdateMessage(e.data);break}break;case"externalstatus":switch(e.data.topic){case"buff":Qi.receiveBuffStatusMessage(e.data);break;case"enhancement":Qi.receiveEnhancementStatusMessage(e.data);break}break;case"hudtick":switch(e.data.topic){case"display":oe.receiveShowMessage(e.data);break;case"status":oe.receiveStatusUpdateMessage(e.data);break;default:oe.receiveStatusUpdateMessage(e.data);break}break;case"menu":switch(e.data.topic){case"adminonly":Ve.receiveAdminMessage(e.data);break;case"restart":Ve.receiveRestartMessage();break}break;case"open":Ve.receiveMessage();break;case"show":Xi.receiveShowAccountsMessage(e.data);break;case"showconstant":Xi.receiveShowConstantMessage(e.data);break;case"update":vi.receiveHeadingMessage(e.data);break;case"updatemoney":Xi.receiveUpdateMessage(e.data);break;case"updateUISettings":if(!e.data.icons||!e.data.layout||!e.data.colors)return;oe.receiveUIUpdateMessage(e.data.icons),Bt.receiveUIUpdateMessage(e.data.layout),de.receiveUIUpdateMessage(e.data.colors);break;case"setLang":Zs(e.data.lang);break}}Eo(()=>window.addEventListener("message",n)),Xr(()=>window.removeEventListener("message",n))}async function Fe(n,e={}){const t={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(e)},i="ps-hud";try{return await(await fetch(`https://${i}/${n}`,t)).json()}catch{}}function Qs(n){let e={};for(const[t,i]of Object.entries(n)){let l=(c=>{var h=c,{icon:o,isShowing:s,name:u,progressValue:a}=h,f=ki(h,["icon","isShowing","name","progressValue"]);return f})(i);e[t]=l}return e}function xs(n){let e={};for(const[t,i]of Object.entries(n)){let l=(a=>{var f=a,{currentEffect:o,editableColors:s}=f,u=ki(f,["currentEffect","editableColors"]);return u})(i);e[t]=l}return e}function $s(){const n=Ht(oe),e=Ht(de),t=Ht(Bt),i=Qs(n.icons),l=xs(e.icons);Fe("saveUISettings",{icons:i,layout:t,colors:l})}async function ea(){const n=Ht(oe),e=Ht(de),t=Ht(Bt),i=Ht(Yo);localStorage.setItem(Ki,JSON.stringify(yo(sn({},e.icons),{globalColorSettings:e.globalColorSettings}))),localStorage.setItem(Ji,JSON.stringify(yo(sn({},n.icons),{globalIconSettings:n.globalIconSettings,dynamicIcons:n.dynamicIcons}))),localStorage.setItem(Zi,JSON.stringify(t)),localStorage.setItem(Hr,JSON.stringify({profiles:i}))}const Fn=!1,na=()=>{let n=localStorage.getItem(Gi),e={};n&&(e=JSON.parse(n));function t(f,c){return e&&e[f]!=null?e[f]:c}function i(){return{show:Fn,isRestarting:!1,adminOnly:Fn,isAdmin:Fn,isCineamticModeChecked:t("isCineamticModeChecked",!1),isCinematicNotifyChecked:t("isCinematicNotifChecked",!0),isCompassFollowChecked:t("isCompassFollowChecked",!0),isMapEnabledChecked:t("isHideMapChecked",!0),isListSoundsChecked:t("isListSoundsChecked",!0),isLowFuelAlertChecked:t("isLowFuelChecked",!0),isMapNotifyChecked:t("isMapNotifChecked",!0),isOpenMenuSoundsChecked:t("isOpenMenuSoundsChecked",!0),isOutCompassChecked:t("isOutCompassChecked",!0),isOutMapChecked:t("isOutMapChecked",!0),isPointerShowChecked:t("isPointerShowChecked",!0),isResetSoundsChecked:t("isResetSoundsChecked",!0),isShowCompassChecked:t("isShowCompassChecked",!0),isShowStreetsChecked:t("isShowStreetsChecked",!0),isToggleMapBordersChecked:t("isToggleMapBordersChecked",!0),isToggleMapShapeChecked:t("isToggleMapShapeChecked","circle")}}const l=i(),{subscribe:o,set:s,update:u}=go(l);o(f=>{let c=sn({},f);delete c.show,delete c.isAdmin,delete c.isRestarting,localStorage.setItem(Gi,JSON.stringify(c))});const a={closeMenu(){u(f=>(f.show=!1,f)),Fe("closeMenu")},handleKeyUp(f){f.key=="Escape"&&(ea(),a.closeMenu())},openMenu(){u(f=>(f.show=!0,f))},receiveMessage(){a.openMenu()},receiveAdminMessage(f){u(c=>(c.adminOnly=f.adminOnly,c.isAdmin=f.isAdmin,c))},receiveRestartMessage(){u(f=>(f.isRestarting=!1,f))},resetHudMenuSetting(){e={},localStorage.removeItem(Gi),u(f=>(f=yo(sn({},i()),{show:!0,adminOnly:f.adminOnly,isAdmin:f.isAdmin}),f)),oe.updateAllShowingDynamicIcons(!1)},sendMenuSettingsToClient(){u(f=>(Fe("updateMenuSettingsToClient",{isOutMapChecked:f.isOutMapChecked,isOutCompassChecked:f.isOutCompassChecked,isCompassFollowChecked:f.isCompassFollowChecked,isOpenMenuSoundsChecked:f.isOpenMenuSoundsChecked,isResetSoundsChecked:f.isResetSoundsChecked,isListSoundsChecked:f.isListSoundsChecked,isMapNotifyChecked:f.isMapNotifyChecked,isLowFuelAlertChecked:f.isLowFuelAlertChecked,isCinematicNotifyChecked:f.isCinematicNotifyChecked,isToggleMapShapeChecked:f.isToggleMapShapeChecked,isMapEnabledChecked:f.isMapEnabledChecked,isToggleMapBordersChecked:f.isToggleMapBordersChecked,isShowCompassChecked:f.isShowCompassChecked,isShowStreetsChecked:f.isShowStreetsChecked,isPointerShowChecked:f.isPointerShowChecked,isCineamticModeChecked:f.isCineamticModeChecked}),f))}};return a.sendMenuSettingsToClient(),sn({subscribe:o,set:s,update:u},a)};var Ve=na();function ta(n){let e,t,i,l,o,s,u,a,f,c,h;return i=new Re({props:{class:"mb-3",icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+(n[2]?n[2]:n[12])}}),{c(){e=v("div"),t=v("div"),H(i.$$.fragment),l=I(),o=X("svg"),s=X("rect"),f=X("rect"),r(t,"class","flex flex-col justify-center"),V(t,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(s,"width",u=n[17]-.2),r(s,"height",a=n[0]-.2),r(s,"fill",n[9]),r(s,"rx",n[18]),r(s,"ry",n[19]),V(s,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),V(s,"overflow","visible"),r(f,"width",n[20]),r(f,"height",n[0]),r(f,"fill",n[12]),r(f,"rx",n[18]),r(f,"ry",n[19]),V(f,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(o,"height",n[0]),r(o,"width",n[17]),r(o,"transform",c=`\r + `+(n[15]|n[16]?"translate("+n[15]+" "+n[16]+")":"")),r(e,"class","flex flex-col justify-center px-1 pb-2 pt-4 rounded-lg"),V(e,"background-color",n[8])},m(g,_){P(g,e,_),d(e,t),B(i,t,null),d(e,l),d(e,o),d(o,s),d(o,f),h=!0},p(g,[_]){const S={};_&2&&(S.icon=g[1]),_&32&&(S.scale=g[5]),_&64&&(S.translateX=g[6]),_&128&&(S.translateY=g[7]),_&4100&&(S.style="color:"+(g[2]?g[2]:g[12])),i.$set(S),(!h||_&28)&&V(t,"filter",(g[4]?"drop-shadow(0px 0px "+g[4]+"px "+g[2]+")":"")+" "+("contrast("+g[3]+"%)")),(!h||_&131072&&u!==(u=g[17]-.2))&&r(s,"width",u),(!h||_&1&&a!==(a=g[0]-.2))&&r(s,"height",a),(!h||_&512)&&r(s,"fill",g[9]),(!h||_&262144)&&r(s,"rx",g[18]),(!h||_&524288)&&r(s,"ry",g[19]),(!h||_&3584)&&V(s,"filter",(g[11]?"drop-shadow(0px 0px "+g[11]+"px "+g[9]+")":"")+" "+("contrast("+g[10]+"%)")),(!h||_&1048576)&&r(f,"width",g[20]),(!h||_&1)&&r(f,"height",g[0]),(!h||_&4096)&&r(f,"fill",g[12]),(!h||_&262144)&&r(f,"rx",g[18]),(!h||_&524288)&&r(f,"ry",g[19]),(!h||_&28672)&&V(f,"filter",(g[14]?"drop-shadow(0px 0px "+g[14]+"px "+g[12]+")":"")+" "+("contrast("+g[13]+"%)")),(!h||_&1)&&r(o,"height",g[0]),(!h||_&131072)&&r(o,"width",g[17]),(!h||_&98304&&c!==(c=`\r + `+(g[15]|g[16]?"translate("+g[15]+" "+g[16]+")":"")))&&r(o,"transform",c),(!h||_&256)&&V(e,"background-color",g[8])},i(g){h||(C(i.$$.fragment,g),h=!0)},o(g){T(i.$$.fragment,g),h=!1},d(g){g&&F(e),z(i)}}}function oa(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{innerColor:g="#212121"}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,{xAxisRound:q=5}=e,{yAxisRound:$=20}=e,{name:R=""}=e,U=0;const y=on(A,{duration:600,easing:Mn});return me(n,y,E=>t(25,i=E)),n.$$set=E=>{"height"in E&&t(0,l=E.height),"icon"in E&&t(1,o=E.icon),"iconColor"in E&&t(2,s=E.iconColor),"iconContrast"in E&&t(3,u=E.iconContrast),"iconDropShadowAmount"in E&&t(4,a=E.iconDropShadowAmount),"iconScaling"in E&&t(5,f=E.iconScaling),"iconTranslateX"in E&&t(6,c=E.iconTranslateX),"iconTranslateY"in E&&t(7,h=E.iconTranslateY),"innerColor"in E&&t(8,g=E.innerColor),"outlineColor"in E&&t(9,_=E.outlineColor),"outlineContrast"in E&&t(10,S=E.outlineContrast),"outlineDropShadowAmount"in E&&t(11,b=E.outlineDropShadowAmount),"progressColor"in E&&t(12,w=E.progressColor),"progressContrast"in E&&t(13,m=E.progressContrast),"progressDropShadowAmount"in E&&t(14,p=E.progressDropShadowAmount),"progressValue"in E&&t(22,A=E.progressValue),"rotateDegree"in E&&t(23,Y=E.rotateDegree),"translateX"in E&&t(15,x=E.translateX),"translateY"in E&&t(16,Q=E.translateY),"width"in E&&t(17,Z=E.width),"xAxisRound"in E&&t(18,q=E.xAxisRound),"yAxisRound"in E&&t(19,$=E.yAxisRound),"name"in E&&t(24,R=E.name)},n.$$.update=()=>{n.$$.dirty&4194304&&y.set(A),n.$$.dirty&4194304&&y.set(A),n.$$.dirty&33685504&&t(20,U=i/100*Z)},[l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,x,Q,Z,q,$,U,y,A,Y,R,i]}class ia extends _e{constructor(e){super();we(this,e,oa,ta,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:22,rotateDegree:23,translateX:15,translateY:16,width:17,xAxisRound:18,yAxisRound:19,name:24})}}function la(n){let e,t,i,l,o,s,u,a,f,c,h;return u=new Re({props:{icon:n[0],scale:n[4],translateX:n[5],translateY:n[6],style:"color:"+n[1]}}),{c(){e=X("svg"),t=X("g"),i=X("circle"),l=X("circle"),s=X("g"),H(u.$$.fragment),r(i,"fill","transparent"),r(i,"stroke",n[7]),r(i,"stroke-width",n[16]),r(i,"r",n[17]),r(i,"cx",n[15]),r(i,"cy",n[15]),V(i,"filter",(n[9]?"drop-shadow(0px 0px "+n[9]+"px "+n[7]+")":"")+" "+("contrast("+n[8]+"%)")),r(l,"fill",n[10]),r(l,"r",n[18]),r(l,"cx",n[15]),r(l,"cy",n[15]),V(l,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)")),r(t,"transform",o="translate("+n[13]+" "+n[14]+")"),V(s,"filter",(n[3]?"drop-shadow(0px 0px "+n[3]+"px "+n[1]+")":"")+" "+("contrast("+n[2]+"%)")),r(e,"width",a=n[15]*2),r(e,"height",f=n[15]*2),r(e,"viewBox",c="0 0 "+n[15]*2+" "+n[15]*2),r(e,"overflow","visible")},m(g,_){P(g,e,_),d(e,t),d(t,i),d(t,l),d(e,s),B(u,s,null),h=!0},p(g,[_]){(!h||_&128)&&r(i,"stroke",g[7]),(!h||_&65536)&&r(i,"stroke-width",g[16]),(!h||_&131072)&&r(i,"r",g[17]),(!h||_&32768)&&r(i,"cx",g[15]),(!h||_&32768)&&r(i,"cy",g[15]),(!h||_&896)&&V(i,"filter",(g[9]?"drop-shadow(0px 0px "+g[9]+"px "+g[7]+")":"")+" "+("contrast("+g[8]+"%)")),(!h||_&1024)&&r(l,"fill",g[10]),(!h||_&262144)&&r(l,"r",g[18]),(!h||_&32768)&&r(l,"cx",g[15]),(!h||_&32768)&&r(l,"cy",g[15]),(!h||_&7168)&&V(l,"filter",(g[12]?"drop-shadow(0px 0px "+g[12]+"px "+g[10]+")":"")+" "+("contrast("+g[11]+"%)")),(!h||_&24576&&o!==(o="translate("+g[13]+" "+g[14]+")"))&&r(t,"transform",o);const S={};_&1&&(S.icon=g[0]),_&16&&(S.scale=g[4]),_&32&&(S.translateX=g[5]),_&64&&(S.translateY=g[6]),_&2&&(S.style="color:"+g[1]),u.$set(S),(!h||_&14)&&V(s,"filter",(g[3]?"drop-shadow(0px 0px "+g[3]+"px "+g[1]+")":"")+" "+("contrast("+g[2]+"%)")),(!h||_&32768&&a!==(a=g[15]*2))&&r(e,"width",a),(!h||_&32768&&f!==(f=g[15]*2))&&r(e,"height",f),(!h||_&32768&&c!==(c="0 0 "+g[15]*2+" "+g[15]*2))&&r(e,"viewBox",c)},i(g){h||(C(u.$$.fragment,g),h=!0)},o(g){T(u.$$.fragment,g),h=!1},d(g){g&&F(e),z(u)}}}function ra(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,q=25,$=25,R=l,U=q-$/2,y=0;const E=on(A,{duration:600,easing:Mn});return me(n,E,k=>t(26,i=k)),n.$$set=k=>{"height"in k&&t(20,l=k.height),"icon"in k&&t(0,o=k.icon),"iconColor"in k&&t(1,s=k.iconColor),"iconContrast"in k&&t(2,u=k.iconContrast),"iconDropShadowAmount"in k&&t(3,a=k.iconDropShadowAmount),"iconScaling"in k&&t(4,f=k.iconScaling),"iconTranslateX"in k&&t(5,c=k.iconTranslateX),"iconTranslateY"in k&&t(6,h=k.iconTranslateY),"name"in k&&t(21,g=k.name),"outlineColor"in k&&t(7,_=k.outlineColor),"outlineContrast"in k&&t(8,S=k.outlineContrast),"outlineDropShadowAmount"in k&&t(9,b=k.outlineDropShadowAmount),"progressColor"in k&&t(10,w=k.progressColor),"progressContrast"in k&&t(11,m=k.progressContrast),"progressDropShadowAmount"in k&&t(12,p=k.progressDropShadowAmount),"progressValue"in k&&t(22,A=k.progressValue),"rotateDegree"in k&&t(23,Y=k.rotateDegree),"translateX"in k&&t(13,x=k.translateX),"translateY"in k&&t(14,Q=k.translateY),"width"in k&&t(24,Z=k.width)},n.$$.update=()=>{n.$$.dirty&4194304&&E.set(A),n.$$.dirty&51478528&&(t(25,R=l>Z?l:Z),t(15,q=R/2),t(16,$=q),t(17,U=q-$/2)),n.$$.dirty&67141632&&t(18,y=i/100*q)},[o,s,u,a,f,c,h,_,S,b,w,m,p,x,Q,q,$,U,y,E,l,g,A,Y,Z,R,i]}class sa extends _e{constructor(e){super();we(this,e,ra,la,be,{height:20,icon:0,iconColor:1,iconContrast:2,iconDropShadowAmount:3,iconScaling:4,iconTranslateX:5,iconTranslateY:6,name:21,outlineColor:7,outlineContrast:8,outlineDropShadowAmount:9,progressColor:10,progressContrast:11,progressDropShadowAmount:12,progressValue:22,rotateDegree:23,translateX:13,translateY:14,width:24})}}function sl(n){let e,t,i,l;return{c(){e=X("circle"),r(e,"fill","transparent"),r(e,"stroke",n[9]),r(e,"stroke-dashoffset",t=0),r(e,"stroke-dasharray",i=n[21]+" "+n[21]),r(e,"stroke-width",n[15]),r(e,"r",n[20]),r(e,"cx",n[19]),r(e,"cy",n[19]),r(e,"transform",l="rotate(-90, "+n[19]+", "+n[19]+")"),V(e,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)"))},m(o,s){P(o,e,s)},p(o,s){s&512&&r(e,"stroke",o[9]),s&2097152&&i!==(i=o[21]+" "+o[21])&&r(e,"stroke-dasharray",i),s&32768&&r(e,"stroke-width",o[15]),s&1048576&&r(e,"r",o[20]),s&524288&&r(e,"cx",o[19]),s&524288&&r(e,"cy",o[19]),s&524288&&l!==(l="rotate(-90, "+o[19]+", "+o[19]+")")&&r(e,"transform",l),s&3584&&V(e,"filter",(o[11]?"drop-shadow(0px 0px "+o[11]+"px "+o[9]+")":"")+" "+("contrast("+o[10]+"%)"))},d(o){o&&F(e)}}}function aa(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w,m,p=n[0]&&sl(n);return _=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=X("svg"),t=X("g"),i=X("circle"),p&&p.c(),a=X("circle"),g=X("g"),H(_.$$.fragment),r(i,"fill",n[8]),r(i,"stroke","transparent"),r(i,"stroke-dashoffset",0),r(i,"stroke-dasharray",l=n[21]+" "+n[21]),r(i,"stroke-width",o=n[15]-.6),r(i,"r",s=n[20]-n[15]/2+.1),r(i,"cx",n[19]),r(i,"cy",n[19]),r(i,"transform",u="rotate(-90, "+n[19]+", "+n[19]+")"),r(a,"stroke",n[12]),r(a,"fill","transparent"),r(a,"stroke-dashoffset",n[22]),r(a,"stroke-dasharray",f=n[21]+" "+n[21]),r(a,"stroke-width",n[15]),r(a,"r",n[20]),r(a,"cx",n[19]),r(a,"cy",n[19]),r(a,"transform",c="rotate(-90, "+n[19]+", "+n[19]+")"),V(a,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(t,"transform",h=`\r + `+(n[16]>0?"rotate("+n[16]+" "+n[19]+" "+n[19]+")":"")+`\r + `+("translate("+n[17]+" "+n[18]+")")),V(g,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",S=n[19]*2),r(e,"height",b=n[19]*2),r(e,"viewBox",w="0 0 "+n[19]*2+" "+n[19]*2),r(e,"overflow","visible")},m(A,Y){P(A,e,Y),d(e,t),d(t,i),p&&p.m(t,null),d(t,a),d(e,g),B(_,g,null),m=!0},p(A,[Y]){(!m||Y&256)&&r(i,"fill",A[8]),(!m||Y&2097152&&l!==(l=A[21]+" "+A[21]))&&r(i,"stroke-dasharray",l),(!m||Y&32768&&o!==(o=A[15]-.6))&&r(i,"stroke-width",o),(!m||Y&1081344&&s!==(s=A[20]-A[15]/2+.1))&&r(i,"r",s),(!m||Y&524288)&&r(i,"cx",A[19]),(!m||Y&524288)&&r(i,"cy",A[19]),(!m||Y&524288&&u!==(u="rotate(-90, "+A[19]+", "+A[19]+")"))&&r(i,"transform",u),A[0]?p?p.p(A,Y):(p=sl(A),p.c(),p.m(t,a)):p&&(p.d(1),p=null),(!m||Y&4096)&&r(a,"stroke",A[12]),(!m||Y&4194304)&&r(a,"stroke-dashoffset",A[22]),(!m||Y&2097152&&f!==(f=A[21]+" "+A[21]))&&r(a,"stroke-dasharray",f),(!m||Y&32768)&&r(a,"stroke-width",A[15]),(!m||Y&1048576)&&r(a,"r",A[20]),(!m||Y&524288)&&r(a,"cx",A[19]),(!m||Y&524288)&&r(a,"cy",A[19]),(!m||Y&524288&&c!==(c="rotate(-90, "+A[19]+", "+A[19]+")"))&&r(a,"transform",c),(!m||Y&28672)&&V(a,"filter",(A[14]?"drop-shadow(0px 0px "+A[14]+"px "+A[12]+")":"")+" "+("contrast("+A[13]+"%)")),(!m||Y&983040&&h!==(h=`\r + `+(A[16]>0?"rotate("+A[16]+" "+A[19]+" "+A[19]+")":"")+`\r + `+("translate("+A[17]+" "+A[18]+")")))&&r(t,"transform",h);const x={};Y&2&&(x.icon=A[1]),Y&32&&(x.scale=A[5]),Y&64&&(x.translateX=A[6]),Y&128&&(x.translateY=A[7]),Y&4&&(x.style="color:"+A[2]),_.$set(x),(!m||Y&28)&&V(g,"filter",(A[4]?"drop-shadow(0px 0px "+A[4]+"px "+A[2]+")":"")+" "+("contrast("+A[3]+"%)")),(!m||Y&524288&&S!==(S=A[19]*2))&&r(e,"width",S),(!m||Y&524288&&b!==(b=A[19]*2))&&r(e,"height",b),(!m||Y&524288&&w!==(w="0 0 "+A[19]*2+" "+A[19]*2))&&r(e,"viewBox",w)},i(A){m||(C(_.$$.fragment,A),m=!0)},o(A){T(_.$$.fragment,A),m=!1},d(A){A&&F(e),p&&p.d(),z(_)}}}function ua(n,e,t){let i,{displayOutline:l=!0}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{innerColor:S="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:m=100}=e,{outlineDropShadowAmount:p=0}=e,{progressColor:A="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:x=0}=e,{progressValue:Q=100}=e,{ringSize:Z=4}=e,{rotateDegree:q=0}=e,{translateX:$=0}=e,{translateY:R=0}=e,{width:U=50}=e,y=25;const E=on(Q,{duration:600,easing:Mn});me(n,E,D=>t(29,i=D));let k=y-Z/2,L=k*2*Math.PI,K=L-i/100*L;return n.$$set=D=>{"displayOutline"in D&&t(0,l=D.displayOutline),"height"in D&&t(24,o=D.height),"icon"in D&&t(1,s=D.icon),"iconColor"in D&&t(2,u=D.iconColor),"iconContrast"in D&&t(3,a=D.iconContrast),"iconDropShadowAmount"in D&&t(4,f=D.iconDropShadowAmount),"iconRotateDegree"in D&&t(25,c=D.iconRotateDegree),"iconScaling"in D&&t(5,h=D.iconScaling),"iconTranslateX"in D&&t(6,g=D.iconTranslateX),"iconTranslateY"in D&&t(7,_=D.iconTranslateY),"innerColor"in D&&t(8,S=D.innerColor),"name"in D&&t(26,b=D.name),"outlineColor"in D&&t(9,w=D.outlineColor),"outlineContrast"in D&&t(10,m=D.outlineContrast),"outlineDropShadowAmount"in D&&t(11,p=D.outlineDropShadowAmount),"progressColor"in D&&t(12,A=D.progressColor),"progressContrast"in D&&t(13,Y=D.progressContrast),"progressDropShadowAmount"in D&&t(14,x=D.progressDropShadowAmount),"progressValue"in D&&t(27,Q=D.progressValue),"ringSize"in D&&t(15,Z=D.ringSize),"rotateDegree"in D&&t(16,q=D.rotateDegree),"translateX"in D&&t(17,$=D.translateX),"translateY"in D&&t(18,R=D.translateY),"width"in D&&t(28,U=D.width)},n.$$.update=()=>{n.$$.dirty&134217728&&E.set(Q),n.$$.dirty&285212672&&t(19,y=o>U?o/2:U/2),n.$$.dirty&1605632&&(t(20,k=y-Z/2),t(21,L=k*2*Math.PI)),n.$$.dirty&538968064&&t(22,K=L-i/100*L)},[l,s,u,a,f,h,g,_,S,w,m,p,A,Y,x,Z,q,$,R,y,k,L,K,E,o,c,b,Q,U,i]}class fa extends _e{constructor(e){super();we(this,e,ua,aa,be,{displayOutline:0,height:24,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconRotateDegree:25,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,name:26,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:27,ringSize:15,rotateDegree:16,translateX:17,translateY:18,width:28})}}function al(n){let e,t,i,l;return{c(){e=X("circle"),r(e,"fill","transparent"),r(e,"stroke",n[8]),r(e,"stroke-dashoffset",t=0),r(e,"stroke-dasharray",i=n[20]+" "+n[20]),r(e,"stroke-width",n[14]),r(e,"r",n[19]),r(e,"cx",n[18]),r(e,"cy",n[18]),r(e,"transform",l="rotate(-90, "+n[18]+", "+n[18]+")"),V(e,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)"))},m(o,s){P(o,e,s)},p(o,s){s[0]&256&&r(e,"stroke",o[8]),s[0]&1048576&&i!==(i=o[20]+" "+o[20])&&r(e,"stroke-dasharray",i),s[0]&16384&&r(e,"stroke-width",o[14]),s[0]&524288&&r(e,"r",o[19]),s[0]&262144&&r(e,"cx",o[18]),s[0]&262144&&r(e,"cy",o[18]),s[0]&262144&&l!==(l="rotate(-90, "+o[18]+", "+o[18]+")")&&r(e,"transform",l),s[0]&1792&&V(e,"filter",(o[10]?"drop-shadow(0px 0px "+o[10]+"px "+o[8]+")":"")+" "+("contrast("+o[9]+"%)"))},d(o){o&&F(e)}}}function ca(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w=n[0]&&al(n);return h=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=X("svg"),t=X("g"),w&&w.c(),i=X("circle"),s=X("circle"),c=X("g"),H(h.$$.fragment),r(i,"fill","transparent"),r(i,"stroke",n[11]),r(i,"stroke-opacity",.6),r(i,"stroke-dashoffset",n[25]),r(i,"stroke-dasharray",l=n[23]+" "+n[23]),r(i,"stroke-width",n[21]),r(i,"r",n[22]),r(i,"cx",n[18]),r(i,"cy",n[18]),r(i,"transform",o="rotate(-90, "+n[18]+", "+n[18]+")"),r(s,"stroke",n[11]),r(s,"fill","transparent"),r(s,"stroke-dashoffset",n[24]),r(s,"stroke-dasharray",u=n[20]+" "+n[20]),r(s,"stroke-width",n[14]),r(s,"r",n[19]),r(s,"cx",n[18]),r(s,"cy",n[18]),r(s,"transform",a="rotate(-90, "+n[18]+", "+n[18]+")"),V(s,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(t,"transform",f=`\r + `+(n[15]>0?"rotate("+n[15]+" "+n[18]+" "+n[18]+")":"")+`\r + `+("translate("+n[16]+" "+n[17]+")")),V(c,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",g=n[18]*2),r(e,"height",_=n[18]*2),r(e,"viewBox",S="0 0 "+n[18]*2+" "+n[18]*2),r(e,"overflow","visible")},m(m,p){P(m,e,p),d(e,t),w&&w.m(t,null),d(t,i),d(t,s),d(e,c),B(h,c,null),b=!0},p(m,p){m[0]?w?w.p(m,p):(w=al(m),w.c(),w.m(t,i)):w&&(w.d(1),w=null),(!b||p[0]&2048)&&r(i,"stroke",m[11]),(!b||p[0]&33554432)&&r(i,"stroke-dashoffset",m[25]),(!b||p[0]&8388608&&l!==(l=m[23]+" "+m[23]))&&r(i,"stroke-dasharray",l),(!b||p[0]&2097152)&&r(i,"stroke-width",m[21]),(!b||p[0]&4194304)&&r(i,"r",m[22]),(!b||p[0]&262144)&&r(i,"cx",m[18]),(!b||p[0]&262144)&&r(i,"cy",m[18]),(!b||p[0]&262144&&o!==(o="rotate(-90, "+m[18]+", "+m[18]+")"))&&r(i,"transform",o),(!b||p[0]&2048)&&r(s,"stroke",m[11]),(!b||p[0]&16777216)&&r(s,"stroke-dashoffset",m[24]),(!b||p[0]&1048576&&u!==(u=m[20]+" "+m[20]))&&r(s,"stroke-dasharray",u),(!b||p[0]&16384)&&r(s,"stroke-width",m[14]),(!b||p[0]&524288)&&r(s,"r",m[19]),(!b||p[0]&262144)&&r(s,"cx",m[18]),(!b||p[0]&262144)&&r(s,"cy",m[18]),(!b||p[0]&262144&&a!==(a="rotate(-90, "+m[18]+", "+m[18]+")"))&&r(s,"transform",a),(!b||p[0]&14336)&&V(s,"filter",(m[13]?"drop-shadow(0px 0px "+m[13]+"px "+m[11]+")":"")+" "+("contrast("+m[12]+"%)")),(!b||p[0]&491520&&f!==(f=`\r + `+(m[15]>0?"rotate("+m[15]+" "+m[18]+" "+m[18]+")":"")+`\r + `+("translate("+m[16]+" "+m[17]+")")))&&r(t,"transform",f);const A={};p[0]&2&&(A.icon=m[1]),p[0]&32&&(A.scale=m[5]),p[0]&64&&(A.translateX=m[6]),p[0]&128&&(A.translateY=m[7]),p[0]&4&&(A.style="color:"+m[2]),h.$set(A),(!b||p[0]&28)&&V(c,"filter",(m[4]?"drop-shadow(0px 0px "+m[4]+"px "+m[2]+")":"")+" "+("contrast("+m[3]+"%)")),(!b||p[0]&262144&&g!==(g=m[18]*2))&&r(e,"width",g),(!b||p[0]&262144&&_!==(_=m[18]*2))&&r(e,"height",_),(!b||p[0]&262144&&S!==(S="0 0 "+m[18]*2+" "+m[18]*2))&&r(e,"viewBox",S)},i(m){b||(C(h.$$.fragment,m),b=!0)},o(m){T(h.$$.fragment,m),b=!1},d(m){m&&F(e),w&&w.d(),z(h)}}}function ha(n,e,t){let i,{displayOutline:l=!0}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{name:S=""}=e,{outlineColor:b="red"}=e,{outlineContrast:w=100}=e,{outlineDropShadowAmount:m=0}=e,{progressColor:p="red"}=e,{progressContrast:A=100}=e,{progressDropShadowAmount:Y=0}=e,{progressValue:x=100}=e,{ringSize:Q=4}=e,{rotateDegree:Z=0}=e,{translateX:q=0}=e,{translateY:$=0}=e,{width:R=50}=e,U=25;const y=on(x,{duration:600,easing:Mn});me(n,y,te=>t(32,i=te));let E=U-Q/2,k=E*2*Math.PI,L=k-i/100*k,K=U*.8,D=K-K/2,ge=D*2*Math.PI,ee=ge-i/100*ge;return n.$$set=te=>{"displayOutline"in te&&t(0,l=te.displayOutline),"height"in te&&t(27,o=te.height),"icon"in te&&t(1,s=te.icon),"iconColor"in te&&t(2,u=te.iconColor),"iconContrast"in te&&t(3,a=te.iconContrast),"iconDropShadowAmount"in te&&t(4,f=te.iconDropShadowAmount),"iconRotateDegree"in te&&t(28,c=te.iconRotateDegree),"iconScaling"in te&&t(5,h=te.iconScaling),"iconTranslateX"in te&&t(6,g=te.iconTranslateX),"iconTranslateY"in te&&t(7,_=te.iconTranslateY),"name"in te&&t(29,S=te.name),"outlineColor"in te&&t(8,b=te.outlineColor),"outlineContrast"in te&&t(9,w=te.outlineContrast),"outlineDropShadowAmount"in te&&t(10,m=te.outlineDropShadowAmount),"progressColor"in te&&t(11,p=te.progressColor),"progressContrast"in te&&t(12,A=te.progressContrast),"progressDropShadowAmount"in te&&t(13,Y=te.progressDropShadowAmount),"progressValue"in te&&t(30,x=te.progressValue),"ringSize"in te&&t(14,Q=te.ringSize),"rotateDegree"in te&&t(15,Z=te.rotateDegree),"translateX"in te&&t(16,q=te.translateX),"translateY"in te&&t(17,$=te.translateY),"width"in te&&t(31,R=te.width)},n.$$.update=()=>{n.$$.dirty[0]&1073741824&&y.set(x),n.$$.dirty[0]&134217728|n.$$.dirty[1]&1&&t(18,U=o>R?o/2:R/2),n.$$.dirty[0]&7094272&&(t(19,E=U-Q/2),t(20,k=E*2*Math.PI),t(21,K=(U-Q)*.8),t(22,D=K-K/2),t(23,ge=D*2*Math.PI)),n.$$.dirty[0]&9437184|n.$$.dirty[1]&2&&(t(24,L=k-i/100*k),t(25,ee=ge-i/100*ge))},[l,s,u,a,f,h,g,_,b,w,m,p,A,Y,Q,Z,q,$,U,E,k,K,D,ge,L,ee,y,o,c,S,x,R,i]}class ga extends _e{constructor(e){super();we(this,e,ha,ca,be,{displayOutline:0,height:27,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconRotateDegree:28,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:29,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:30,ringSize:14,rotateDegree:15,translateX:16,translateY:17,width:31},null,[-1,-1])}}function da(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b;return h=new Re({props:{icon:n[0],scale:n[4],translateX:n[5],translateY:n[6],style:"color:"+n[1]}}),{c(){e=X("svg"),t=X("g"),i=X("circle"),s=X("circle"),c=X("g"),H(h.$$.fragment),r(i,"fill","transparent"),r(i,"stroke",n[7]),r(i,"stroke-dashoffset",0),r(i,"stroke-dasharray",l=n[19]+" "+n[19]),r(i,"stroke-width",n[17]),r(i,"r",n[18]),r(i,"cx",n[16]),r(i,"cy",n[16]),r(i,"transform",o="rotate(-90, "+n[16]+", "+n[16]+")"),V(i,"filter",(n[9]?"drop-shadow(0px 0px "+n[9]+"px "+n[7]+")":"")+" "+("contrast("+n[8]+"%)")),r(s,"stroke",n[10]),r(s,"fill","transparent"),r(s,"stroke-dashoffset",n[20]),r(s,"stroke-dasharray",u=n[19]+" "+n[19]),r(s,"stroke-width",n[17]),r(s,"r",n[18]),r(s,"cx",n[16]),r(s,"cy",n[16]),r(s,"transform",a="rotate(-90, "+n[16]+", "+n[16]+")"),V(s,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)")),r(t,"transform",f=`\r + `+(n[13]>0?"rotate("+n[13]+" "+n[16]+" "+n[16]+")":"")+`\r + `+("translate("+n[14]+" "+n[15]+")")),V(c,"filter",(n[3]?"drop-shadow(0px 0px "+n[3]+"px "+n[1]+")":"")+" "+("contrast("+n[2]+"%)")),r(e,"width",g=n[16]*2),r(e,"height",_=n[16]*2),r(e,"viewBox",S="0 0 "+n[16]*2+" "+n[16]*2),r(e,"overflow","visible")},m(w,m){P(w,e,m),d(e,t),d(t,i),d(t,s),d(e,c),B(h,c,null),b=!0},p(w,[m]){(!b||m&128)&&r(i,"stroke",w[7]),(!b||m&524288&&l!==(l=w[19]+" "+w[19]))&&r(i,"stroke-dasharray",l),(!b||m&131072)&&r(i,"stroke-width",w[17]),(!b||m&262144)&&r(i,"r",w[18]),(!b||m&65536)&&r(i,"cx",w[16]),(!b||m&65536)&&r(i,"cy",w[16]),(!b||m&65536&&o!==(o="rotate(-90, "+w[16]+", "+w[16]+")"))&&r(i,"transform",o),(!b||m&896)&&V(i,"filter",(w[9]?"drop-shadow(0px 0px "+w[9]+"px "+w[7]+")":"")+" "+("contrast("+w[8]+"%)")),(!b||m&1024)&&r(s,"stroke",w[10]),(!b||m&1048576)&&r(s,"stroke-dashoffset",w[20]),(!b||m&524288&&u!==(u=w[19]+" "+w[19]))&&r(s,"stroke-dasharray",u),(!b||m&131072)&&r(s,"stroke-width",w[17]),(!b||m&262144)&&r(s,"r",w[18]),(!b||m&65536)&&r(s,"cx",w[16]),(!b||m&65536)&&r(s,"cy",w[16]),(!b||m&65536&&a!==(a="rotate(-90, "+w[16]+", "+w[16]+")"))&&r(s,"transform",a),(!b||m&7168)&&V(s,"filter",(w[12]?"drop-shadow(0px 0px "+w[12]+"px "+w[10]+")":"")+" "+("contrast("+w[11]+"%)")),(!b||m&122880&&f!==(f=`\r + `+(w[13]>0?"rotate("+w[13]+" "+w[16]+" "+w[16]+")":"")+`\r + `+("translate("+w[14]+" "+w[15]+")")))&&r(t,"transform",f);const p={};m&1&&(p.icon=w[0]),m&16&&(p.scale=w[4]),m&32&&(p.translateX=w[5]),m&64&&(p.translateY=w[6]),m&2&&(p.style="color:"+w[1]),h.$set(p),(!b||m&14)&&V(c,"filter",(w[3]?"drop-shadow(0px 0px "+w[3]+"px "+w[1]+")":"")+" "+("contrast("+w[2]+"%)")),(!b||m&65536&&g!==(g=w[16]*2))&&r(e,"width",g),(!b||m&65536&&_!==(_=w[16]*2))&&r(e,"height",_),(!b||m&65536&&S!==(S="0 0 "+w[16]*2+" "+w[16]*2))&&r(e,"viewBox",S)},i(w){b||(C(h.$$.fragment,w),b=!0)},o(w){T(h.$$.fragment,w),b=!1},d(w){w&&F(e),z(h)}}}function ma(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,q=25,$=25,R=q-$/2,U=R*2*Math.PI,y=0;const E=on(A,{duration:600,easing:Mn});return me(n,E,k=>t(26,i=k)),n.$$set=k=>{"height"in k&&t(22,l=k.height),"icon"in k&&t(0,o=k.icon),"iconColor"in k&&t(1,s=k.iconColor),"iconContrast"in k&&t(2,u=k.iconContrast),"iconDropShadowAmount"in k&&t(3,a=k.iconDropShadowAmount),"iconScaling"in k&&t(4,f=k.iconScaling),"iconTranslateX"in k&&t(5,c=k.iconTranslateX),"iconTranslateY"in k&&t(6,h=k.iconTranslateY),"name"in k&&t(23,g=k.name),"outlineColor"in k&&t(7,_=k.outlineColor),"outlineContrast"in k&&t(8,S=k.outlineContrast),"outlineDropShadowAmount"in k&&t(9,b=k.outlineDropShadowAmount),"progressColor"in k&&t(10,w=k.progressColor),"progressContrast"in k&&t(11,m=k.progressContrast),"progressDropShadowAmount"in k&&t(12,p=k.progressDropShadowAmount),"progressValue"in k&&t(24,A=k.progressValue),"rotateDegree"in k&&t(13,Y=k.rotateDegree),"translateX"in k&&t(14,x=k.translateX),"translateY"in k&&t(15,Q=k.translateY),"width"in k&&t(25,Z=k.width)},n.$$.update=()=>{n.$$.dirty&16777216&&E.set(A),n.$$.dirty&105840640&&(t(16,q=l>Z?l/2:Z/2),t(17,$=q),t(18,R=q-$/2),t(19,U=R*2*Math.PI),t(20,y=U-i/100*U))},[o,s,u,a,f,c,h,_,S,b,w,m,p,Y,x,Q,q,$,R,U,y,E,l,g,A,Z,i]}class _a extends _e{constructor(e){super();we(this,e,ma,da,be,{height:22,icon:0,iconColor:1,iconContrast:2,iconDropShadowAmount:3,iconScaling:4,iconTranslateX:5,iconTranslateY:6,name:23,outlineColor:7,outlineContrast:8,outlineDropShadowAmount:9,progressColor:10,progressContrast:11,progressDropShadowAmount:12,progressValue:24,rotateDegree:13,translateX:14,translateY:15,width:25})}}function wa(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w;return g=new Re({props:{icon:n[0],scale:n[4],translateX:n[5],translateY:n[6],style:"color:"+n[1]}}),{c(){e=X("svg"),t=X("defs"),i=X("clipPath"),l=X("circle"),s=X("g"),u=X("circle"),a=X("line"),h=X("g"),H(g.$$.fragment),r(l,"stroke-width",n[18]),r(l,"r",n[17]),r(l,"cx",n[17]),r(l,"cy",n[17]),r(i,"id",o=n[7]+"-cut-out-circle"),r(u,"stroke",n[8]),r(u,"fill","transparent"),r(u,"stroke-width",n[18]),r(u,"r",n[20]),r(u,"cx",n[17]),r(u,"cy",n[17]),r(u,"shape-rendering","geometricPrecision"),V(u,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)")),r(a,"x1","50%"),r(a,"y1","100%"),r(a,"x2","50%"),r(a,"y2","0%"),r(a,"stroke",n[11]),r(a,"stroke-dasharray",n[19]),r(a,"stroke-dashoffset",n[21]),r(a,"stroke-width",n[19]),r(a,"clip-path",f="url(#"+(n[7]+"-cut-out-circle")+")"),r(a,"shape-rendering","geometricPrecision"),V(a,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(s,"transform",c=`\r + `+(n[14]>0?"rotate("+n[14]+" "+n[17]+" "+n[17]+")":"")+`\r + `+("translate("+n[15]+" "+n[16]+")")),V(h,"filter",(n[3]?"drop-shadow(0px 0px "+n[3]+"px "+n[1]+")":"")+" "+("contrast("+n[2]+"%)")),r(e,"width",_=n[17]*2),r(e,"height",S=n[17]*2),r(e,"viewBox",b="0 0 "+n[17]*2+" "+n[17]*2),r(e,"overflow","visible")},m(m,p){P(m,e,p),d(e,t),d(t,i),d(i,l),d(e,s),d(s,u),d(s,a),d(e,h),B(g,h,null),w=!0},p(m,[p]){(!w||p&262144)&&r(l,"stroke-width",m[18]),(!w||p&131072)&&r(l,"r",m[17]),(!w||p&131072)&&r(l,"cx",m[17]),(!w||p&131072)&&r(l,"cy",m[17]),(!w||p&128&&o!==(o=m[7]+"-cut-out-circle"))&&r(i,"id",o),(!w||p&256)&&r(u,"stroke",m[8]),(!w||p&262144)&&r(u,"stroke-width",m[18]),(!w||p&1048576)&&r(u,"r",m[20]),(!w||p&131072)&&r(u,"cx",m[17]),(!w||p&131072)&&r(u,"cy",m[17]),(!w||p&1792)&&V(u,"filter",(m[10]?"drop-shadow(0px 0px "+m[10]+"px "+m[8]+")":"")+" "+("contrast("+m[9]+"%)")),(!w||p&2048)&&r(a,"stroke",m[11]),(!w||p&524288)&&r(a,"stroke-dasharray",m[19]),(!w||p&2097152)&&r(a,"stroke-dashoffset",m[21]),(!w||p&524288)&&r(a,"stroke-width",m[19]),(!w||p&128&&f!==(f="url(#"+(m[7]+"-cut-out-circle")+")"))&&r(a,"clip-path",f),(!w||p&14336)&&V(a,"filter",(m[13]?"drop-shadow(0px 0px "+m[13]+"px "+m[11]+")":"")+" "+("contrast("+m[12]+"%)")),(!w||p&245760&&c!==(c=`\r + `+(m[14]>0?"rotate("+m[14]+" "+m[17]+" "+m[17]+")":"")+`\r + `+("translate("+m[15]+" "+m[16]+")")))&&r(s,"transform",c);const A={};p&1&&(A.icon=m[0]),p&16&&(A.scale=m[4]),p&32&&(A.translateX=m[5]),p&64&&(A.translateY=m[6]),p&2&&(A.style="color:"+m[1]),g.$set(A),(!w||p&14)&&V(h,"filter",(m[3]?"drop-shadow(0px 0px "+m[3]+"px "+m[1]+")":"")+" "+("contrast("+m[2]+"%)")),(!w||p&131072&&_!==(_=m[17]*2))&&r(e,"width",_),(!w||p&131072&&S!==(S=m[17]*2))&&r(e,"height",S),(!w||p&131072&&b!==(b="0 0 "+m[17]*2+" "+m[17]*2))&&r(e,"viewBox",b)},i(m){w||(C(g.$$.fragment,m),w=!0)},o(m){T(g.$$.fragment,m),w=!1},d(m){m&&F(e),z(g)}}}function ba(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,q=25,$=25,R=l,U=q-$/2,y=0;const E=on(A,{duration:600,easing:Mn});return me(n,E,k=>t(26,i=k)),n.$$set=k=>{"height"in k&&t(23,l=k.height),"icon"in k&&t(0,o=k.icon),"iconColor"in k&&t(1,s=k.iconColor),"iconContrast"in k&&t(2,u=k.iconContrast),"iconDropShadowAmount"in k&&t(3,a=k.iconDropShadowAmount),"iconScaling"in k&&t(4,f=k.iconScaling),"iconTranslateX"in k&&t(5,c=k.iconTranslateX),"iconTranslateY"in k&&t(6,h=k.iconTranslateY),"name"in k&&t(7,g=k.name),"outlineColor"in k&&t(8,_=k.outlineColor),"outlineContrast"in k&&t(9,S=k.outlineContrast),"outlineDropShadowAmount"in k&&t(10,b=k.outlineDropShadowAmount),"progressColor"in k&&t(11,w=k.progressColor),"progressContrast"in k&&t(12,m=k.progressContrast),"progressDropShadowAmount"in k&&t(13,p=k.progressDropShadowAmount),"progressValue"in k&&t(24,A=k.progressValue),"rotateDegree"in k&&t(14,Y=k.rotateDegree),"translateX"in k&&t(15,x=k.translateX),"translateY"in k&&t(16,Q=k.translateY),"width"in k&&t(25,Z=k.width)},n.$$.update=()=>{n.$$.dirty&16777216&&E.set(A),n.$$.dirty&43909120&&(t(19,R=l>Z?l:Z),t(17,q=R/2),t(18,$=q),t(20,U=q-$/2)),n.$$.dirty&67633152&&t(21,y=R-i/100*R)},[o,s,u,a,f,c,h,g,_,S,b,w,m,p,Y,x,Q,q,$,R,U,y,E,l,A,Z,i]}class Sa extends _e{constructor(e){super();we(this,e,ba,wa,be,{height:23,icon:0,iconColor:1,iconContrast:2,iconDropShadowAmount:3,iconScaling:4,iconTranslateX:5,iconTranslateY:6,name:7,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:24,rotateDegree:14,translateX:15,translateY:16,width:25})}}function ul(n){let e,t,i;return{c(){e=X("path"),r(e,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(e,"fill","transparent"),r(e,"stroke",n[10]),r(e,"stroke-width",n[16]),r(e,"stroke-dasharray",t=n[21]+" "+n[21]),r(e,"stroke-dashoffset",i=0),V(e,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)"))},m(l,o){P(l,e,o)},p(l,o){o&1024&&r(e,"stroke",l[10]),o&65536&&r(e,"stroke-width",l[16]),o&2097152&&t!==(t=l[21]+" "+l[21])&&r(e,"stroke-dasharray",t),o&7168&&V(e,"filter",(l[12]?"drop-shadow(0px 0px "+l[12]+"px "+l[10]+")":"")+" "+("contrast("+l[11]+"%)"))},d(l){l&&F(e)}}}function pa(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S=n[0]&&ul(n);return g=new Re({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],flip:"horizontal",style:"color:"+n[3]}}),{c(){e=v("div"),t=X("svg"),i=X("g"),S&&S.c(),l=X("svg"),o=X("path"),a=X("path"),h=X("g"),H(g.$$.fragment),r(o,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(o,"stroke-width",s=n[16]-.3),r(o,"fill",n[9]),r(o,"stroke","transparent"),r(o,"stroke-dasharray",u=n[21]+" "+n[21]),r(o,"stroke-dashoffset",0),r(l,"viewBox","-1.5 4.5 19 7"),r(a,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(a,"class","stroke-cap-round stroke-join-round"),r(a,"stroke",n[13]),r(a,"stroke-width",n[16]),r(a,"fill","transparent"),r(a,"stroke-dasharray",f=n[21]+" "+n[21]),r(a,"stroke-dashoffset",n[22]),V(a,"filter",(n[15]?"drop-shadow(0px 0px "+n[15]+"px "+n[13]+")":"")+" "+("contrast("+n[14]+"%)")),r(i,"transform",c=`\r + `+(n[17]>0?"rotate("+n[17]+" "+8+" "+8+")":"")+`\r + `+("translate("+n[18]+" "+n[19]+")")),V(h,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(t,"version","1.1"),r(t,"width",n[20]),r(t,"height",n[1]),r(t,"viewBox","0 0 16 16"),r(t,"transform","scale(-1,1)"),r(e,"class","mx-[-7px]")},m(b,w){P(b,e,w),d(e,t),d(t,i),S&&S.m(i,null),d(i,l),d(l,o),d(i,a),n[29](a),d(t,h),B(g,h,null),_=!0},p(b,[w]){b[0]?S?S.p(b,w):(S=ul(b),S.c(),S.m(i,l)):S&&(S.d(1),S=null),(!_||w&65536&&s!==(s=b[16]-.3))&&r(o,"stroke-width",s),(!_||w&512)&&r(o,"fill",b[9]),(!_||w&2097152&&u!==(u=b[21]+" "+b[21]))&&r(o,"stroke-dasharray",u),(!_||w&8192)&&r(a,"stroke",b[13]),(!_||w&65536)&&r(a,"stroke-width",b[16]),(!_||w&2097152&&f!==(f=b[21]+" "+b[21]))&&r(a,"stroke-dasharray",f),(!_||w&4194304)&&r(a,"stroke-dashoffset",b[22]),(!_||w&57344)&&V(a,"filter",(b[15]?"drop-shadow(0px 0px "+b[15]+"px "+b[13]+")":"")+" "+("contrast("+b[14]+"%)")),(!_||w&917504&&c!==(c=`\r + `+(b[17]>0?"rotate("+b[17]+" "+8+" "+8+")":"")+`\r + `+("translate("+b[18]+" "+b[19]+")")))&&r(i,"transform",c);const m={};w&4&&(m.icon=b[2]),w&64&&(m.scale=b[6]),w&128&&(m.translateX=b[7]),w&256&&(m.translateY=b[8]),w&8&&(m.style="color:"+b[3]),g.$set(m),(!_||w&56)&&V(h,"filter",(b[5]?"drop-shadow(0px 0px "+b[5]+"px "+b[3]+")":"")+" "+("contrast("+b[4]+"%)")),(!_||w&1048576)&&r(t,"width",b[20]),(!_||w&2)&&r(t,"height",b[1])},i(b){_||(C(g.$$.fragment,b),_=!0)},o(b){T(g.$$.fragment,b),_=!1},d(b){b&&F(e),S&&S.d(),n[29](null),z(g)}}}function ka(n,e,t){let i,{displayOutline:l=!0}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{innerColor:S="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:m=100}=e,{outlineDropShadowAmount:p=0}=e,{progressColor:A="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:x=0}=e,{progressValue:Q=100}=e,{ringSize:Z=4}=e,{rotateDegree:q=0}=e,{translateX:$=0}=e,{translateY:R=0}=e,{width:U=50}=e,y=10;const E=on(Q,{duration:600,easing:Mn});me(n,E,D=>t(28,i=D));let k,L;Eo(()=>{try{t(21,L=k.getTotalLength())}catch{console.log("Error: PS-Hud: Diamond-Ring-Icon should not be mounting when hiding icons")}});function K(D){ie[D?"unshift":"push"](()=>{k=D,t(23,k)})}return n.$$set=D=>{"displayOutline"in D&&t(0,l=D.displayOutline),"height"in D&&t(1,o=D.height),"icon"in D&&t(2,s=D.icon),"iconColor"in D&&t(3,u=D.iconColor),"iconContrast"in D&&t(4,a=D.iconContrast),"iconDropShadowAmount"in D&&t(5,f=D.iconDropShadowAmount),"iconRotateDegree"in D&&t(25,c=D.iconRotateDegree),"iconScaling"in D&&t(6,h=D.iconScaling),"iconTranslateX"in D&&t(7,g=D.iconTranslateX),"iconTranslateY"in D&&t(8,_=D.iconTranslateY),"innerColor"in D&&t(9,S=D.innerColor),"name"in D&&t(26,b=D.name),"outlineColor"in D&&t(10,w=D.outlineColor),"outlineContrast"in D&&t(11,m=D.outlineContrast),"outlineDropShadowAmount"in D&&t(12,p=D.outlineDropShadowAmount),"progressColor"in D&&t(13,A=D.progressColor),"progressContrast"in D&&t(14,Y=D.progressContrast),"progressDropShadowAmount"in D&&t(15,x=D.progressDropShadowAmount),"progressValue"in D&&t(27,Q=D.progressValue),"ringSize"in D&&t(16,Z=D.ringSize),"rotateDegree"in D&&t(17,q=D.rotateDegree),"translateX"in D&&t(18,$=D.translateX),"translateY"in D&&t(19,R=D.translateY),"width"in D&&t(20,U=D.width)},n.$$.update=()=>{n.$$.dirty&134217728&&E.set(Q),n.$$.dirty&270532608&&t(22,y=L-i/100*L)},[l,o,s,u,a,f,h,g,_,S,w,m,p,A,Y,x,Z,q,$,R,U,L,y,k,E,c,b,Q,i,K]}class Ca extends _e{constructor(e){super();we(this,e,ka,pa,be,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:25,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:26,outlineColor:10,outlineContrast:11,outlineDropShadowAmount:12,progressColor:13,progressContrast:14,progressDropShadowAmount:15,progressValue:27,ringSize:16,rotateDegree:17,translateX:18,translateY:19,width:20})}}function va(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S;return _=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=v("div"),t=X("svg"),i=X("defs"),l=X("clipPath"),o=X("path"),u=X("g"),a=X("path"),f=X("line"),g=X("g"),H(_.$$.fragment),r(o,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(o,"fill","transparent"),r(l,"id",s=n[8]+"-cut-out-diamond"),r(a,"d","M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z"),r(a,"fill",n[9]),r(a,"stroke","transparent"),V(a,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(f,"x1","50%"),r(f,"y1","100%"),r(f,"x2","50%"),r(f,"y2",0),r(f,"stroke",n[12]),r(f,"stroke-dasharray",16),r(f,"stroke-dashoffset",n[19]),r(f,"stroke-width",n[18]),r(f,"clip-path",c="url(#"+n[8]+"-cut-out-diamond)"),V(f,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(u,"transform",h=`\r + `+(n[15]>0?"rotate("+n[15]+" "+8+" "+8+")":"")+`\r + `+("translate("+n[16]+" "+n[17]+")")),V(g,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(t,"version","1.1"),r(t,"width",n[18]),r(t,"height",n[0]),r(t,"viewBox","0 0 16 16"),r(e,"class","mx-[-7px]")},m(b,w){P(b,e,w),d(e,t),d(t,i),d(i,l),d(l,o),d(t,u),d(u,a),d(u,f),d(t,g),B(_,g,null),S=!0},p(b,[w]){(!S||w&256&&s!==(s=b[8]+"-cut-out-diamond"))&&r(l,"id",s),(!S||w&512)&&r(a,"fill",b[9]),(!S||w&3584)&&V(a,"filter",(b[11]?"drop-shadow(0px 0px "+b[11]+"px "+b[9]+")":"")+" "+("contrast("+b[10]+"%)")),(!S||w&4096)&&r(f,"stroke",b[12]),(!S||w&524288)&&r(f,"stroke-dashoffset",b[19]),(!S||w&262144)&&r(f,"stroke-width",b[18]),(!S||w&256&&c!==(c="url(#"+b[8]+"-cut-out-diamond)"))&&r(f,"clip-path",c),(!S||w&28672)&&V(f,"filter",(b[14]?"drop-shadow(0px 0px "+b[14]+"px "+b[12]+")":"")+" "+("contrast("+b[13]+"%)")),(!S||w&229376&&h!==(h=`\r + `+(b[15]>0?"rotate("+b[15]+" "+8+" "+8+")":"")+`\r + `+("translate("+b[16]+" "+b[17]+")")))&&r(u,"transform",h);const m={};w&2&&(m.icon=b[1]),w&32&&(m.scale=b[5]),w&64&&(m.translateX=b[6]),w&128&&(m.translateY=b[7]),w&4&&(m.style="color:"+b[2]),_.$set(m),(!S||w&28)&&V(g,"filter",(b[4]?"drop-shadow(0px 0px "+b[4]+"px "+b[2]+")":"")+" "+("contrast("+b[3]+"%)")),(!S||w&262144)&&r(t,"width",b[18]),(!S||w&1)&&r(t,"height",b[0])},i(b){S||(C(_.$$.fragment,b),S=!0)},o(b){T(_.$$.fragment,b),S=!1},d(b){b&&F(e),z(_)}}}function Aa(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,q=10;const $=on(A,{duration:600,easing:Mn});return me(n,$,R=>t(22,i=R)),n.$$set=R=>{"height"in R&&t(0,l=R.height),"icon"in R&&t(1,o=R.icon),"iconColor"in R&&t(2,s=R.iconColor),"iconContrast"in R&&t(3,u=R.iconContrast),"iconDropShadowAmount"in R&&t(4,a=R.iconDropShadowAmount),"iconScaling"in R&&t(5,f=R.iconScaling),"iconTranslateX"in R&&t(6,c=R.iconTranslateX),"iconTranslateY"in R&&t(7,h=R.iconTranslateY),"name"in R&&t(8,g=R.name),"outlineColor"in R&&t(9,_=R.outlineColor),"outlineContrast"in R&&t(10,S=R.outlineContrast),"outlineDropShadowAmount"in R&&t(11,b=R.outlineDropShadowAmount),"progressColor"in R&&t(12,w=R.progressColor),"progressContrast"in R&&t(13,m=R.progressContrast),"progressDropShadowAmount"in R&&t(14,p=R.progressDropShadowAmount),"progressValue"in R&&t(21,A=R.progressValue),"rotateDegree"in R&&t(15,Y=R.rotateDegree),"translateX"in R&&t(16,x=R.translateX),"translateY"in R&&t(17,Q=R.translateY),"width"in R&&t(18,Z=R.width)},n.$$.update=()=>{n.$$.dirty&2097152&&$.set(A),n.$$.dirty&4194304&&t(19,q=16-i/100*16)},[l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,Y,x,Q,Z,q,$,A,i]}class Da extends _e{constructor(e){super();we(this,e,Aa,va,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:21,rotateDegree:15,translateX:16,translateY:17,width:18})}}function fl(n){let e,t,i,l,o;return{c(){e=X("rect"),r(e,"fill","transparent"),r(e,"stroke",n[10]),r(e,"width",t=n[20]-10),r(e,"height",i=n[1]-10),r(e,"stroke-dasharray",l=n[24]+" "+n[24]),r(e,"stroke-dashoffset",o=0),r(e,"stroke-width",n[16]),r(e,"rx",n[21]),r(e,"ry",n[22]),r(e,"x","5"),r(e,"y","5"),V(e,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)"))},m(s,u){P(s,e,u)},p(s,u){u[0]&1024&&r(e,"stroke",s[10]),u[0]&1048576&&t!==(t=s[20]-10)&&r(e,"width",t),u[0]&2&&i!==(i=s[1]-10)&&r(e,"height",i),u[0]&16777216&&l!==(l=s[24]+" "+s[24])&&r(e,"stroke-dasharray",l),u[0]&65536&&r(e,"stroke-width",s[16]),u[0]&2097152&&r(e,"rx",s[21]),u[0]&4194304&&r(e,"ry",s[22]),u[0]&7168&&V(e,"filter",(s[12]?"drop-shadow(0px 0px "+s[12]+"px "+s[10]+")":"")+" "+("contrast("+s[11]+"%)"))},d(s){s&&F(e)}}}function Ta(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w=n[0]&&fl(n);return _=new Re({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],style:"color:"+n[3]}}),{c(){e=X("svg"),t=X("rect"),w&&w.c(),a=X("rect"),g=X("g"),H(_.$$.fragment),r(t,"fill",n[9]),r(t,"width",i=n[20]-10-n[16]/2),r(t,"height",l=n[1]-10-n[16]/2),r(t,"stroke-dasharray",o=n[24]+" "+n[24]),r(t,"stroke-dashoffset",0),r(t,"stroke-width",n[16]),r(t,"rx",n[21]),r(t,"ry",n[22]),r(t,"x",s=5+n[16]/4),r(t,"y",u=5+n[16]/4),r(a,"fill","transparent"),r(a,"stroke",n[13]),r(a,"width",f=n[20]-10),r(a,"height",c=n[1]-10),r(a,"stroke-dasharray",h=n[24]+" "+n[24]),r(a,"stroke-dashoffset",n[25]),r(a,"stroke-width",n[16]),r(a,"rx",n[21]),r(a,"ry",n[22]),r(a,"x","5"),r(a,"y","5"),V(a,"filter",(n[15]?"drop-shadow(0px 0px "+n[15]+"px "+n[13]+")":"")+" "+("contrast("+n[14]+"%)")),V(g,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"height",n[1]),r(e,"width",n[20]),r(e,"transform",S=`\r + `+(n[17]>0?"rotate("+n[17]+" "+0+" "+0+")":"")+`\r + `+("translate("+n[18]+" "+n[19]+")"))},m(m,p){P(m,e,p),d(e,t),w&&w.m(e,null),d(e,a),n[31](a),d(e,g),B(_,g,null),b=!0},p(m,p){(!b||p[0]&512)&&r(t,"fill",m[9]),(!b||p[0]&1114112&&i!==(i=m[20]-10-m[16]/2))&&r(t,"width",i),(!b||p[0]&65538&&l!==(l=m[1]-10-m[16]/2))&&r(t,"height",l),(!b||p[0]&16777216&&o!==(o=m[24]+" "+m[24]))&&r(t,"stroke-dasharray",o),(!b||p[0]&65536)&&r(t,"stroke-width",m[16]),(!b||p[0]&2097152)&&r(t,"rx",m[21]),(!b||p[0]&4194304)&&r(t,"ry",m[22]),(!b||p[0]&65536&&s!==(s=5+m[16]/4))&&r(t,"x",s),(!b||p[0]&65536&&u!==(u=5+m[16]/4))&&r(t,"y",u),m[0]?w?w.p(m,p):(w=fl(m),w.c(),w.m(e,a)):w&&(w.d(1),w=null),(!b||p[0]&8192)&&r(a,"stroke",m[13]),(!b||p[0]&1048576&&f!==(f=m[20]-10))&&r(a,"width",f),(!b||p[0]&2&&c!==(c=m[1]-10))&&r(a,"height",c),(!b||p[0]&16777216&&h!==(h=m[24]+" "+m[24]))&&r(a,"stroke-dasharray",h),(!b||p[0]&33554432)&&r(a,"stroke-dashoffset",m[25]),(!b||p[0]&65536)&&r(a,"stroke-width",m[16]),(!b||p[0]&2097152)&&r(a,"rx",m[21]),(!b||p[0]&4194304)&&r(a,"ry",m[22]),(!b||p[0]&57344)&&V(a,"filter",(m[15]?"drop-shadow(0px 0px "+m[15]+"px "+m[13]+")":"")+" "+("contrast("+m[14]+"%)"));const A={};p[0]&4&&(A.icon=m[2]),p[0]&64&&(A.scale=m[6]),p[0]&128&&(A.translateX=m[7]),p[0]&256&&(A.translateY=m[8]),p[0]&8&&(A.style="color:"+m[3]),_.$set(A),(!b||p[0]&56)&&V(g,"filter",(m[5]?"drop-shadow(0px 0px "+m[5]+"px "+m[3]+")":"")+" "+("contrast("+m[4]+"%)")),(!b||p[0]&2)&&r(e,"height",m[1]),(!b||p[0]&1048576)&&r(e,"width",m[20]),(!b||p[0]&917504&&S!==(S=`\r + `+(m[17]>0?"rotate("+m[17]+" "+0+" "+0+")":"")+`\r + `+("translate("+m[18]+" "+m[19]+")")))&&r(e,"transform",S)},i(m){b||(C(_.$$.fragment,m),b=!0)},o(m){T(_.$$.fragment,m),b=!1},d(m){m&&F(e),w&&w.d(),n[31](null),z(_)}}}function Ia(n,e,t){let i,{displayOutline:l=!0}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{innerColor:S="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:m=100}=e,{outlineDropShadowAmount:p=0}=e,{progressColor:A="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:x=0}=e,{progressValue:Q=100}=e,{ringSize:Z=4}=e,{rotateDegree:q=0}=e,{translateX:$=0}=e,{translateY:R=0}=e,{width:U=50}=e,{xAxisRound:y=18}=e,{yAxisRound:E=18}=e,k=10,L=null,K=0;const D=on(Q,{duration:600,easing:Mn});me(n,D,ee=>t(30,i=ee)),Eo(()=>{try{t(24,K=L.getTotalLength())}catch{console.log("Error: PS-Hud: Pill-Ring-Icon should not be mounting when hiding icons")}});function ge(ee){ie[ee?"unshift":"push"](()=>{L=ee,t(23,L)})}return n.$$set=ee=>{"displayOutline"in ee&&t(0,l=ee.displayOutline),"height"in ee&&t(1,o=ee.height),"icon"in ee&&t(2,s=ee.icon),"iconColor"in ee&&t(3,u=ee.iconColor),"iconContrast"in ee&&t(4,a=ee.iconContrast),"iconDropShadowAmount"in ee&&t(5,f=ee.iconDropShadowAmount),"iconRotateDegree"in ee&&t(27,c=ee.iconRotateDegree),"iconScaling"in ee&&t(6,h=ee.iconScaling),"iconTranslateX"in ee&&t(7,g=ee.iconTranslateX),"iconTranslateY"in ee&&t(8,_=ee.iconTranslateY),"innerColor"in ee&&t(9,S=ee.innerColor),"name"in ee&&t(28,b=ee.name),"outlineColor"in ee&&t(10,w=ee.outlineColor),"outlineContrast"in ee&&t(11,m=ee.outlineContrast),"outlineDropShadowAmount"in ee&&t(12,p=ee.outlineDropShadowAmount),"progressColor"in ee&&t(13,A=ee.progressColor),"progressContrast"in ee&&t(14,Y=ee.progressContrast),"progressDropShadowAmount"in ee&&t(15,x=ee.progressDropShadowAmount),"progressValue"in ee&&t(29,Q=ee.progressValue),"ringSize"in ee&&t(16,Z=ee.ringSize),"rotateDegree"in ee&&t(17,q=ee.rotateDegree),"translateX"in ee&&t(18,$=ee.translateX),"translateY"in ee&&t(19,R=ee.translateY),"width"in ee&&t(20,U=ee.width),"xAxisRound"in ee&&t(21,y=ee.xAxisRound),"yAxisRound"in ee&&t(22,E=ee.yAxisRound)},n.$$.update=()=>{n.$$.dirty[0]&536870912&&D.set(Q),n.$$.dirty[0]&15728642&&o&&U&&y>=0&&E>=0&&t(24,K=(L==null?void 0:L.getTotalLength())+5),n.$$.dirty[0]&1090519040&&t(25,k=K-i/100*K)},[l,o,s,u,a,f,h,g,_,S,w,m,p,A,Y,x,Z,q,$,R,U,y,E,L,K,k,D,c,b,Q,i,ge]}class Ma extends _e{constructor(e){super();we(this,e,Ia,Ta,be,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:27,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:28,outlineColor:10,outlineContrast:11,outlineDropShadowAmount:12,progressColor:13,progressContrast:14,progressDropShadowAmount:15,progressValue:29,ringSize:16,rotateDegree:17,translateX:18,translateY:19,width:20,xAxisRound:21,yAxisRound:22},null,[-1,-1])}}function ya(n){let e,t,i,l,o,s,u,a,f,c,h,g;return c=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=X("svg"),t=X("defs"),i=X("clipPath"),l=X("rect"),s=X("rect"),u=X("line"),f=X("g"),H(c.$$.fragment),r(l,"stroke",n[12]),r(l,"width",n[18]),r(l,"height",n[0]),r(l,"rx",n[19]),r(l,"ry",n[20]),r(i,"id",o=n[8]+"-cut-out-pillwhole"),r(s,"fill",n[9]),r(s,"width",n[18]),r(s,"height",n[0]),r(s,"stroke","transparent"),r(s,"stroke-width",n[0]),r(s,"rx",n[19]),r(s,"ry",n[20]),V(s,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(u,"x1","50%"),r(u,"y1","100%"),r(u,"x2","50%"),r(u,"y2","0%"),r(u,"stroke",n[12]),r(u,"stroke-dasharray",n[0]),r(u,"stroke-dashoffset",n[21]),r(u,"stroke-width",n[22]),r(u,"clip-path",a="url(#"+n[8]+"-cut-out-pillwhole)"),V(u,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),V(f,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"height",n[0]),r(e,"width",n[18]),r(e,"transform",h=`\r + `+(n[15]>0?"rotate("+n[15]+" "+0+" "+0+")":"")+`\r + `+("translate("+n[16]+" "+n[17]+")"))},m(_,S){P(_,e,S),d(e,t),d(t,i),d(i,l),d(e,s),d(e,u),d(e,f),B(c,f,null),g=!0},p(_,[S]){(!g||S&4096)&&r(l,"stroke",_[12]),(!g||S&262144)&&r(l,"width",_[18]),(!g||S&1)&&r(l,"height",_[0]),(!g||S&524288)&&r(l,"rx",_[19]),(!g||S&1048576)&&r(l,"ry",_[20]),(!g||S&256&&o!==(o=_[8]+"-cut-out-pillwhole"))&&r(i,"id",o),(!g||S&512)&&r(s,"fill",_[9]),(!g||S&262144)&&r(s,"width",_[18]),(!g||S&1)&&r(s,"height",_[0]),(!g||S&1)&&r(s,"stroke-width",_[0]),(!g||S&524288)&&r(s,"rx",_[19]),(!g||S&1048576)&&r(s,"ry",_[20]),(!g||S&3584)&&V(s,"filter",(_[11]?"drop-shadow(0px 0px "+_[11]+"px "+_[9]+")":"")+" "+("contrast("+_[10]+"%)")),(!g||S&4096)&&r(u,"stroke",_[12]),(!g||S&1)&&r(u,"stroke-dasharray",_[0]),(!g||S&2097152)&&r(u,"stroke-dashoffset",_[21]),(!g||S&4194304)&&r(u,"stroke-width",_[22]),(!g||S&256&&a!==(a="url(#"+_[8]+"-cut-out-pillwhole)"))&&r(u,"clip-path",a),(!g||S&28672)&&V(u,"filter",(_[14]?"drop-shadow(0px 0px "+_[14]+"px "+_[12]+")":"")+" "+("contrast("+_[13]+"%)"));const b={};S&2&&(b.icon=_[1]),S&32&&(b.scale=_[5]),S&64&&(b.translateX=_[6]),S&128&&(b.translateY=_[7]),S&4&&(b.style="color:"+_[2]),c.$set(b),(!g||S&28)&&V(f,"filter",(_[4]?"drop-shadow(0px 0px "+_[4]+"px "+_[2]+")":"")+" "+("contrast("+_[3]+"%)")),(!g||S&1)&&r(e,"height",_[0]),(!g||S&262144)&&r(e,"width",_[18]),(!g||S&229376&&h!==(h=`\r + `+(_[15]>0?"rotate("+_[15]+" "+0+" "+0+")":"")+`\r + `+("translate("+_[16]+" "+_[17]+")")))&&r(e,"transform",h)},i(_){g||(C(c.$$.fragment,_),g=!0)},o(_){T(c.$$.fragment,_),g=!1},d(_){_&&F(e),z(c)}}}function Ya(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{ringSize:Y=4}=e,{rotateDegree:x=0}=e,{translateX:Q=0}=e,{translateY:Z=0}=e,{width:q=50}=e,{xAxisRound:$=18}=e,{yAxisRound:R=18}=e,U=10,y=l;const E=on(A,{duration:600,easing:Mn});return me(n,E,k=>t(26,i=k)),n.$$set=k=>{"height"in k&&t(0,l=k.height),"icon"in k&&t(1,o=k.icon),"iconColor"in k&&t(2,s=k.iconColor),"iconContrast"in k&&t(3,u=k.iconContrast),"iconDropShadowAmount"in k&&t(4,a=k.iconDropShadowAmount),"iconScaling"in k&&t(5,f=k.iconScaling),"iconTranslateX"in k&&t(6,c=k.iconTranslateX),"iconTranslateY"in k&&t(7,h=k.iconTranslateY),"name"in k&&t(8,g=k.name),"outlineColor"in k&&t(9,_=k.outlineColor),"outlineContrast"in k&&t(10,S=k.outlineContrast),"outlineDropShadowAmount"in k&&t(11,b=k.outlineDropShadowAmount),"progressColor"in k&&t(12,w=k.progressColor),"progressContrast"in k&&t(13,m=k.progressContrast),"progressDropShadowAmount"in k&&t(14,p=k.progressDropShadowAmount),"progressValue"in k&&t(24,A=k.progressValue),"ringSize"in k&&t(25,Y=k.ringSize),"rotateDegree"in k&&t(15,x=k.rotateDegree),"translateX"in k&&t(16,Q=k.translateX),"translateY"in k&&t(17,Z=k.translateY),"width"in k&&t(18,q=k.width),"xAxisRound"in k&&t(19,$=k.xAxisRound),"yAxisRound"in k&&t(20,R=k.yAxisRound)},n.$$.update=()=>{n.$$.dirty&16777216&&E.set(A),n.$$.dirty&262145&&t(22,y=l>q?l:q),n.$$.dirty&67108865&&t(21,U=l-i/100*l)},[l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,x,Q,Z,q,$,R,U,y,E,A,Y,i]}class Xa extends _e{constructor(e){super();we(this,e,Ya,ya,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:24,ringSize:25,rotateDegree:15,translateX:16,translateY:17,width:18,xAxisRound:19,yAxisRound:20})}}function cl(n){let e,t,i;return t=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=X("g"),H(t.$$.fragment),V(e,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)"))},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){const s={};o&2&&(s.icon=l[1]),o&32&&(s.scale=l[5]),o&64&&(s.translateX=l[6]),o&128&&(s.translateY=l[7]),o&4&&(s.style="color:"+l[2]),t.$set(s),(!i||o&28)&&V(e,"filter",(l[4]?"drop-shadow(0px 0px "+l[4]+"px "+l[2]+")":"")+" "+("contrast("+l[3]+"%)"))},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function hl(n){let e,t,i,l,o,s,u;return i=new Re({props:{icon:n[1],scale:n[5]*2,translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=v("div"),t=v("div"),H(i.$$.fragment),l=I(),o=v("span"),s=ne(n[18]),r(o,"class","ml-2"),r(t,"class","flex justify-center items-center h-full text-xl text-white"),r(e,"class","absolute top-0 left-0 w-full h-full")},m(a,f){P(a,e,f),d(e,t),B(i,t,null),d(t,l),d(t,o),d(o,s),u=!0},p(a,f){const c={};f&2&&(c.icon=a[1]),f&32&&(c.scale=a[5]*2),f&64&&(c.translateX=a[6]),f&128&&(c.translateY=a[7]),f&4&&(c.style="color:"+a[2]),i.$set(c),(!u||f&262144)&&re(s,a[18])},i(a){u||(C(i.$$.fragment,a),u=!0)},o(a){T(i.$$.fragment,a),u=!1},d(a){a&&F(e),z(i)}}}function Ea(n){let e,t,i,l,o,s,u,a,f,c,h,g,_=!n[18]&&cl(n),S=n[18]&&hl(n);return{c(){e=v("div"),t=X("svg"),i=X("g"),l=X("line"),o=X("line"),u=X("g"),_&&_.c(),a=X("span"),f=ne(n[18]),h=I(),S&&S.c(),r(l,"stroke",n[8]),r(l,"x1","0%"),r(l,"y1","50%"),r(l,"x2","100%"),r(l,"y2","50%"),r(l,"stroke-width",n[17]),V(l,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)")),r(o,"x1","0%"),r(o,"y1","50%"),r(o,"x2","100%"),r(o,"y2","50%"),r(o,"stroke",n[11]),r(o,"fill","transparent"),r(o,"stroke-dasharray",n[17]),r(o,"stroke-dashoffset",n[19]),r(o,"stroke-width",n[17]),V(o,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(i,"transform",s=`\r + rotate( `+n[14]+" "+n[0]/2+" "+n[17]/4+`)\r + `+("translate("+n[15]+" "+n[16]+")")),r(u,"dominant-baseline","middle"),r(t,"height",c=n[0]-8),r(t,"width",n[17]),r(e,"class","border-4 border-black relative")},m(b,w){P(b,e,w),d(e,t),d(t,i),d(i,l),d(i,o),d(t,u),_&&_.m(u,null),d(u,a),d(a,f),d(e,h),S&&S.m(e,null),g=!0},p(b,[w]){(!g||w&256)&&r(l,"stroke",b[8]),(!g||w&131072)&&r(l,"stroke-width",b[17]),(!g||w&1792)&&V(l,"filter",(b[10]?"drop-shadow(0px 0px "+b[10]+"px "+b[8]+")":"")+" "+("contrast("+b[9]+"%)")),(!g||w&2048)&&r(o,"stroke",b[11]),(!g||w&131072)&&r(o,"stroke-dasharray",b[17]),(!g||w&524288)&&r(o,"stroke-dashoffset",b[19]),(!g||w&131072)&&r(o,"stroke-width",b[17]),(!g||w&14336)&&V(o,"filter",(b[13]?"drop-shadow(0px 0px "+b[13]+"px "+b[11]+")":"")+" "+("contrast("+b[12]+"%)")),(!g||w&245761&&s!==(s=`\r + rotate( `+b[14]+" "+b[0]/2+" "+b[17]/4+`)\r + `+("translate("+b[15]+" "+b[16]+")")))&&r(i,"transform",s),b[18]?_&&(Se(),T(_,1,1,()=>{_=null}),pe()):_?(_.p(b,w),w&262144&&C(_,1)):(_=cl(b),_.c(),C(_,1),_.m(u,a)),(!g||w&262144)&&re(f,b[18]),(!g||w&1&&c!==(c=b[0]-8))&&r(t,"height",c),(!g||w&131072)&&r(t,"width",b[17]),b[18]?S?(S.p(b,w),w&262144&&C(S,1)):(S=hl(b),S.c(),C(S,1),S.m(e,null)):S&&(Se(),T(S,1,1,()=>{S=null}),pe())},i(b){g||(C(_),C(S),g=!0)},o(b){T(_),T(S),g=!1},d(b){b&&F(e),_&&_.d(),S&&S.d()}}}function Oa(n,e,t){let i,{conditionalText:l=null}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconScaling:c=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:g=0}=e,{name:_=""}=e,{outlineColor:S="red"}=e,{outlineContrast:b=100}=e,{outlineDropShadowAmount:w=0}=e,{progressColor:m="red"}=e,{progressContrast:p=100}=e,{progressDropShadowAmount:A=0}=e,{progressValue:Y=100}=e,{rotateDegree:x=0}=e,{translateX:Q=0}=e,{translateY:Z=0}=e,{width:q=50}=e,$=10,R="";const U=on(Y,{duration:600,easing:Mn});return me(n,U,y=>t(24,i=y)),n.$$set=y=>{"conditionalText"in y&&t(21,l=y.conditionalText),"height"in y&&t(0,o=y.height),"icon"in y&&t(1,s=y.icon),"iconColor"in y&&t(2,u=y.iconColor),"iconContrast"in y&&t(3,a=y.iconContrast),"iconDropShadowAmount"in y&&t(4,f=y.iconDropShadowAmount),"iconScaling"in y&&t(5,c=y.iconScaling),"iconTranslateX"in y&&t(6,h=y.iconTranslateX),"iconTranslateY"in y&&t(7,g=y.iconTranslateY),"name"in y&&t(22,_=y.name),"outlineColor"in y&&t(8,S=y.outlineColor),"outlineContrast"in y&&t(9,b=y.outlineContrast),"outlineDropShadowAmount"in y&&t(10,w=y.outlineDropShadowAmount),"progressColor"in y&&t(11,m=y.progressColor),"progressContrast"in y&&t(12,p=y.progressContrast),"progressDropShadowAmount"in y&&t(13,A=y.progressDropShadowAmount),"progressValue"in y&&t(23,Y=y.progressValue),"rotateDegree"in y&&t(14,x=y.rotateDegree),"translateX"in y&&t(15,Q=y.translateX),"translateY"in y&&t(16,Z=y.translateY),"width"in y&&t(17,q=y.width)},n.$$.update=()=>{n.$$.dirty&8388608&&U.set(Y),n.$$.dirty&16908288&&t(19,$=q-i/100*q),n.$$.dirty&10747904&&(t(18,R),t(21,l),t(23,Y),l&&t(18,R=l(Y)))},[o,s,u,a,f,c,h,g,S,b,w,m,p,A,x,Q,Z,q,R,$,U,l,_,Y,i]}class Fa extends _e{constructor(e){super();we(this,e,Oa,Ea,be,{conditionalText:21,height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:22,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:23,rotateDegree:14,translateX:15,translateY:16,width:17})}}function gl(n){let e,t,i;return{c(){e=X("rect"),r(e,"stroke",n[10]),r(e,"width",n[20]),r(e,"height",n[1]),r(e,"stroke-width",n[16]),r(e,"stroke-dasharray",t=n[21]+" "+n[21]),r(e,"shape-rendering","geometricPrecision"),r(e,"stroke-dashoffset",i=0),r(e,"fill","transparent")},m(l,o){P(l,e,o)},p(l,o){o&1024&&r(e,"stroke",l[10]),o&1048576&&r(e,"width",l[20]),o&2&&r(e,"height",l[1]),o&65536&&r(e,"stroke-width",l[16]),o&2097152&&t!==(t=l[21]+" "+l[21])&&r(e,"stroke-dasharray",t)},d(l){l&&F(e)}}}function Pa(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b=n[0]&&gl(n);return g=new Re({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],style:"color:"+n[3]}}),{c(){e=X("svg"),t=X("g"),b&&b.c(),i=X("rect"),a=X("rect"),h=X("g"),H(g.$$.fragment),r(i,"fill",n[9]),r(i,"transform",l="translate("+(n[16]/2-.1)+" "+(n[16]/2-.3)+")"),r(i,"stroke","transparent"),r(i,"shape-rendering","geometricPrecision"),r(i,"width",o=n[20]-n[16]+.2),r(i,"height",s=n[1]-n[16]+.2),r(i,"stroke-width",n[16]),r(i,"stroke-dasharray",u=n[21]+" "+n[21]),r(i,"stroke-dashoffset",0),V(i,"filter",(n[12]?"drop-shadow(0px 0px "+n[12]+"px "+n[10]+")":"")+" "+("contrast("+n[11]+"%)")),r(a,"stroke",n[13]),r(a,"fill","transparent"),r(a,"width",n[20]),r(a,"height",n[1]),r(a,"stroke-width",f=n[16]-.1),r(a,"stroke-dasharray",c=n[21]+" "+n[21]),r(a,"stroke-dashoffset",n[22]),V(a,"filter",(n[15]?"drop-shadow(0px 0px "+n[15]+"px "+n[13]+")":"")+" "+("contrast("+n[14]+"%)")),V(h,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"width",n[20]),r(e,"height",n[1]),r(e,"transform",_=`\r + `+(n[17]>0?"rotate("+n[17]+" "+0+" "+0+")":"")+`\r + `+("translate("+n[18]+" "+n[19]+")"))},m(w,m){P(w,e,m),d(e,t),b&&b.m(t,null),d(t,i),d(t,a),d(e,h),B(g,h,null),S=!0},p(w,[m]){w[0]?b?b.p(w,m):(b=gl(w),b.c(),b.m(t,i)):b&&(b.d(1),b=null),(!S||m&512)&&r(i,"fill",w[9]),(!S||m&65536&&l!==(l="translate("+(w[16]/2-.1)+" "+(w[16]/2-.3)+")"))&&r(i,"transform",l),(!S||m&1114112&&o!==(o=w[20]-w[16]+.2))&&r(i,"width",o),(!S||m&65538&&s!==(s=w[1]-w[16]+.2))&&r(i,"height",s),(!S||m&65536)&&r(i,"stroke-width",w[16]),(!S||m&2097152&&u!==(u=w[21]+" "+w[21]))&&r(i,"stroke-dasharray",u),(!S||m&7168)&&V(i,"filter",(w[12]?"drop-shadow(0px 0px "+w[12]+"px "+w[10]+")":"")+" "+("contrast("+w[11]+"%)")),(!S||m&8192)&&r(a,"stroke",w[13]),(!S||m&1048576)&&r(a,"width",w[20]),(!S||m&2)&&r(a,"height",w[1]),(!S||m&65536&&f!==(f=w[16]-.1))&&r(a,"stroke-width",f),(!S||m&2097152&&c!==(c=w[21]+" "+w[21]))&&r(a,"stroke-dasharray",c),(!S||m&4194304)&&r(a,"stroke-dashoffset",w[22]),(!S||m&57344)&&V(a,"filter",(w[15]?"drop-shadow(0px 0px "+w[15]+"px "+w[13]+")":"")+" "+("contrast("+w[14]+"%)"));const p={};m&4&&(p.icon=w[2]),m&64&&(p.scale=w[6]),m&128&&(p.translateX=w[7]),m&256&&(p.translateY=w[8]),m&8&&(p.style="color:"+w[3]),g.$set(p),(!S||m&56)&&V(h,"filter",(w[5]?"drop-shadow(0px 0px "+w[5]+"px "+w[3]+")":"")+" "+("contrast("+w[4]+"%)")),(!S||m&1048576)&&r(e,"width",w[20]),(!S||m&2)&&r(e,"height",w[1]),(!S||m&917504&&_!==(_=`\r + `+(w[17]>0?"rotate("+w[17]+" "+0+" "+0+")":"")+`\r + `+("translate("+w[18]+" "+w[19]+")")))&&r(e,"transform",_)},i(w){S||(C(g.$$.fragment,w),S=!0)},o(w){T(g.$$.fragment,w),S=!1},d(w){w&&F(e),b&&b.d(),z(g)}}}function Va(n,e,t){let i,{displayOutline:l=!0}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{innerColor:S="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:m=100}=e,{outlineDropShadowAmount:p=0}=e,{progressColor:A="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:x=0}=e,{progressValue:Q=100}=e,{ringSize:Z=4}=e,{rotateDegree:q=0}=e,{translateX:$=0}=e,{translateY:R=0}=e,{width:U=50}=e,y=(U+o)*2,E=10;const k=on(Q,{duration:600,easing:Mn});return me(n,k,L=>t(27,i=L)),n.$$set=L=>{"displayOutline"in L&&t(0,l=L.displayOutline),"height"in L&&t(1,o=L.height),"icon"in L&&t(2,s=L.icon),"iconColor"in L&&t(3,u=L.iconColor),"iconContrast"in L&&t(4,a=L.iconContrast),"iconDropShadowAmount"in L&&t(5,f=L.iconDropShadowAmount),"iconRotateDegree"in L&&t(24,c=L.iconRotateDegree),"iconScaling"in L&&t(6,h=L.iconScaling),"iconTranslateX"in L&&t(7,g=L.iconTranslateX),"iconTranslateY"in L&&t(8,_=L.iconTranslateY),"innerColor"in L&&t(9,S=L.innerColor),"name"in L&&t(25,b=L.name),"outlineColor"in L&&t(10,w=L.outlineColor),"outlineContrast"in L&&t(11,m=L.outlineContrast),"outlineDropShadowAmount"in L&&t(12,p=L.outlineDropShadowAmount),"progressColor"in L&&t(13,A=L.progressColor),"progressContrast"in L&&t(14,Y=L.progressContrast),"progressDropShadowAmount"in L&&t(15,x=L.progressDropShadowAmount),"progressValue"in L&&t(26,Q=L.progressValue),"ringSize"in L&&t(16,Z=L.ringSize),"rotateDegree"in L&&t(17,q=L.rotateDegree),"translateX"in L&&t(18,$=L.translateX),"translateY"in L&&t(19,R=L.translateY),"width"in L&&t(20,U=L.width)},n.$$.update=()=>{n.$$.dirty&1048578&&t(21,y=(U+o)*2),n.$$.dirty&67108864&&k.set(Q),n.$$.dirty&136314880&&t(22,E=y-i/100*y)},[l,o,s,u,a,f,h,g,_,S,w,m,p,A,Y,x,Z,q,$,R,U,y,E,k,c,b,Q,i]}class Ha extends _e{constructor(e){super();we(this,e,Va,Pa,be,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:24,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:25,outlineColor:10,outlineContrast:11,outlineDropShadowAmount:12,progressColor:13,progressContrast:14,progressDropShadowAmount:15,progressValue:26,ringSize:16,rotateDegree:17,translateX:18,translateY:19,width:20})}}function dl(n){let e,t,i,l,o;return{c(){e=X("path"),r(e,"d",`M36.042,13.909c-0.123-0.377-0.456-0.646-0.85-0.688l-11.549-1.172L18.96,1.43c-0.16-0.36-0.519-0.596-0.915-0.596\r + s-0.755,0.234-0.915,0.598L12.446,12.05L0.899,13.221c-0.394,0.04-0.728,0.312-0.85,0.688c-0.123,0.377-0.011,0.791,0.285,1.055\r + l8.652,7.738L6.533,34.045c-0.083,0.387,0.069,0.787,0.39,1.02c0.175,0.127,0.381,0.191,0.588,0.191\r + c0.173,0,0.347-0.045,0.503-0.137l10.032-5.84l10.03,5.84c0.342,0.197,0.77,0.178,1.091-0.059c0.32-0.229,0.474-0.633,0.391-1.02\r + l-2.453-11.344l8.653-7.737C36.052,14.699,36.165,14.285,36.042,13.909z`),r(e,"stroke",n[11]),r(e,"fill",n[9]),r(e,"stroke-width",t=n[17]-.6),r(e,"stroke-dasharray",i=n[22]+" "+n[22]),r(e,"stroke-dashoffset",l=0),r(e,"transform",o="rotate(-72, "+20+", "+20+")"),V(e,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)"))},m(s,u){P(s,e,u)},p(s,u){u&2048&&r(e,"stroke",s[11]),u&512&&r(e,"fill",s[9]),u&131072&&t!==(t=s[17]-.6)&&r(e,"stroke-width",t),u&4194304&&i!==(i=s[22]+" "+s[22])&&r(e,"stroke-dasharray",i),u&14336&&V(e,"filter",(s[13]?"drop-shadow(0px 0px "+s[13]+"px "+s[11]+")":"")+" "+("contrast("+s[12]+"%)"))},d(s){s&&F(e)}}}function Ba(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b=n[0]&&dl(n);return _=new Re({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],flip:"horizontal",style:"color:"+n[3]}}),{c(){e=X("svg"),t=X("g"),i=X("clipPath"),l=X("path"),u=X("rect"),b&&b.c(),f=X("path"),g=X("g"),H(_.$$.fragment),r(l,"d",`M36.042,13.909c-0.123-0.377-0.456-0.646-0.85-0.688l-11.549-1.172L18.96,1.43c-0.16-0.36-0.519-0.596-0.915-0.596\r + s-0.755,0.234-0.915,0.598L12.446,12.05L0.899,13.221c-0.394,0.04-0.728,0.312-0.85,0.688c-0.123,0.377-0.011,0.791,0.285,1.055\r + l8.652,7.738L6.533,34.045c-0.083,0.387,0.069,0.787,0.39,1.02c0.175,0.127,0.381,0.191,0.588,0.191\r + c0.173,0,0.347-0.045,0.503-0.137l10.032-5.84l10.03,5.84c0.342,0.197,0.77,0.178,1.091-0.059c0.32-0.229,0.474-0.633,0.391-1.02\r + l-2.453-11.344l8.653-7.737C36.052,14.699,36.165,14.285,36.042,13.909z`),r(l,"stroke",n[11]),r(l,"fill",n[9]),r(l,"stroke-width",o=n[17]+10),r(l,"transform","rotate(-72, "+20+", "+20+")"),r(l,"height",n[1]),r(l,"width",n[21]),r(i,"id",s=n[10]+"-cut-out-star"),r(u,"stroke",n[14]),r(u,"stroke-width",n[17]),r(u,"width",n[21]),r(u,"height",n[1]),r(u,"clip-path",a="url(#"+n[10]+"-cut-out-star)"),r(f,"d",`M36.042,13.909c-0.123-0.377-0.456-0.646-0.85-0.688l-11.549-1.172L18.96,1.43c-0.16-0.36-0.519-0.596-0.915-0.596\r + s-0.755,0.234-0.915,0.598L12.446,12.05L0.899,13.221c-0.394,0.04-0.728,0.312-0.85,0.688c-0.123,0.377-0.011,0.791,0.285,1.055\r + l8.652,7.738L6.533,34.045c-0.083,0.387,0.069,0.787,0.39,1.02c0.175,0.127,0.381,0.191,0.588,0.191\r + c0.173,0,0.347-0.045,0.503-0.137l10.032-5.84l10.03,5.84c0.342,0.197,0.77,0.178,1.091-0.059c0.32-0.229,0.474-0.633,0.391-1.02\r + l-2.453-11.344l8.653-7.737C36.052,14.699,36.165,14.285,36.042,13.909z`),r(f,"class","stroke-cap-round"),r(f,"stroke",n[14]),r(f,"stroke-width",n[17]),r(f,"fill","transparent"),r(f,"stroke-dasharray",c=n[22]+" "+n[22]),r(f,"stroke-dashoffset",n[24]),r(f,"transform","rotate(-72, "+20+", "+20+")"),V(f,"filter",(n[16]?"drop-shadow(0px 0px "+n[16]+"px "+n[14]+")":"")+" "+("contrast("+n[15]+"%)")),r(t,"transform",h=`\r + `+(n[18]>0?"rotate("+n[18]+" "+19.35+" "+22+")":"")+`\r + `+("translate("+n[19]+" "+n[20]+")")),V(g,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"width",n[21]),r(e,"height",n[1]),r(e,"viewBox","0 0 38 40"),r(e,"transform","scale(-1,1)"),r(e,"overflow","visible")},m(w,m){P(w,e,m),d(e,t),d(t,i),d(i,l),d(t,u),b&&b.m(t,null),d(t,f),n[29](f),d(e,g),B(_,g,null),S=!0},p(w,[m]){(!S||m&2048)&&r(l,"stroke",w[11]),(!S||m&512)&&r(l,"fill",w[9]),(!S||m&131072&&o!==(o=w[17]+10))&&r(l,"stroke-width",o),(!S||m&2)&&r(l,"height",w[1]),(!S||m&2097152)&&r(l,"width",w[21]),(!S||m&1024&&s!==(s=w[10]+"-cut-out-star"))&&r(i,"id",s),(!S||m&16384)&&r(u,"stroke",w[14]),(!S||m&131072)&&r(u,"stroke-width",w[17]),(!S||m&2097152)&&r(u,"width",w[21]),(!S||m&2)&&r(u,"height",w[1]),(!S||m&1024&&a!==(a="url(#"+w[10]+"-cut-out-star)"))&&r(u,"clip-path",a),w[0]?b?b.p(w,m):(b=dl(w),b.c(),b.m(t,f)):b&&(b.d(1),b=null),(!S||m&16384)&&r(f,"stroke",w[14]),(!S||m&131072)&&r(f,"stroke-width",w[17]),(!S||m&4194304&&c!==(c=w[22]+" "+w[22]))&&r(f,"stroke-dasharray",c),(!S||m&16777216)&&r(f,"stroke-dashoffset",w[24]),(!S||m&114688)&&V(f,"filter",(w[16]?"drop-shadow(0px 0px "+w[16]+"px "+w[14]+")":"")+" "+("contrast("+w[15]+"%)")),(!S||m&1835008&&h!==(h=`\r + `+(w[18]>0?"rotate("+w[18]+" "+19.35+" "+22+")":"")+`\r + `+("translate("+w[19]+" "+w[20]+")")))&&r(t,"transform",h);const p={};m&4&&(p.icon=w[2]),m&64&&(p.scale=w[6]),m&128&&(p.translateX=w[7]),m&256&&(p.translateY=w[8]),m&8&&(p.style="color:"+w[3]),_.$set(p),(!S||m&56)&&V(g,"filter",(w[5]?"drop-shadow(0px 0px "+w[5]+"px "+w[3]+")":"")+" "+("contrast("+w[4]+"%)")),(!S||m&2097152)&&r(e,"width",w[21]),(!S||m&2)&&r(e,"height",w[1])},i(w){S||(C(_.$$.fragment,w),S=!0)},o(w){T(_.$$.fragment,w),S=!1},d(w){w&&F(e),b&&b.d(),n[29](null),z(_)}}}function za(n,e,t){let i,l,{displayOutline:o=!0}=e,{height:s=50}=e,{icon:u=null}=e,{iconColor:a="red"}=e,{iconContrast:f=100}=e,{iconDropShadowAmount:c=0}=e,{iconRotateDegree:h=0}=e,{iconScaling:g=.45}=e,{iconTranslateX:_=0}=e,{iconTranslateY:S=0}=e,{innerColor:b="#212121"}=e,{name:w=""}=e,{outlineColor:m="red"}=e,{outlineContrast:p=100}=e,{outlineDropShadowAmount:A=0}=e,{progressColor:Y="red"}=e,{progressContrast:x=100}=e,{progressDropShadowAmount:Q=0}=e,{progressValue:Z=100}=e,{ringSize:q=4}=e,{rotateDegree:$=0}=e,{translateX:R=0}=e,{translateY:U=0}=e,{width:y=50}=e;const E=on(Z,{duration:600,easing:Mn});me(n,E,D=>t(28,l=D));let k,L;Eo(()=>{try{t(22,L=k.getTotalLength())}catch{}});function K(D){ie[D?"unshift":"push"](()=>{k=D,t(23,k)})}return n.$$set=D=>{"displayOutline"in D&&t(0,o=D.displayOutline),"height"in D&&t(1,s=D.height),"icon"in D&&t(2,u=D.icon),"iconColor"in D&&t(3,a=D.iconColor),"iconContrast"in D&&t(4,f=D.iconContrast),"iconDropShadowAmount"in D&&t(5,c=D.iconDropShadowAmount),"iconRotateDegree"in D&&t(26,h=D.iconRotateDegree),"iconScaling"in D&&t(6,g=D.iconScaling),"iconTranslateX"in D&&t(7,_=D.iconTranslateX),"iconTranslateY"in D&&t(8,S=D.iconTranslateY),"innerColor"in D&&t(9,b=D.innerColor),"name"in D&&t(10,w=D.name),"outlineColor"in D&&t(11,m=D.outlineColor),"outlineContrast"in D&&t(12,p=D.outlineContrast),"outlineDropShadowAmount"in D&&t(13,A=D.outlineDropShadowAmount),"progressColor"in D&&t(14,Y=D.progressColor),"progressContrast"in D&&t(15,x=D.progressContrast),"progressDropShadowAmount"in D&&t(16,Q=D.progressDropShadowAmount),"progressValue"in D&&t(27,Z=D.progressValue),"ringSize"in D&&t(17,q=D.ringSize),"rotateDegree"in D&&t(18,$=D.rotateDegree),"translateX"in D&&t(19,R=D.translateX),"translateY"in D&&t(20,U=D.translateY),"width"in D&&t(21,y=D.width)},n.$$.update=()=>{n.$$.dirty&134217728&&E.set(Z),n.$$.dirty&272629760&&t(24,i=L-l/100*L)},[o,s,u,a,f,c,g,_,S,b,w,m,p,A,Y,x,Q,q,$,R,U,y,L,k,i,E,h,Z,l,K]}class Ra extends _e{constructor(e){super();we(this,e,za,Ba,be,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:26,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:10,outlineColor:11,outlineContrast:12,outlineDropShadowAmount:13,progressColor:14,progressContrast:15,progressDropShadowAmount:16,progressValue:27,ringSize:17,rotateDegree:18,translateX:19,translateY:20,width:21})}}function Ua(n){let e,t,i,l,o,s,u,a,f;return u=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],flip:"horizontal",style:"color:"+n[2]}}),{c(){e=X("svg"),t=X("path"),l=X("path"),s=X("g"),H(u.$$.fragment),r(t,"d","M21.87,19.29l-9-15.58a1,1,0,0,0-1.74,0l-9,15.58a1,1,0,0,0,0,1,1,1,0,0,0,.87.5H21a1,1,0,0,0,.87-.9"),r(t,"class","stroke-cap-round stroke-join-round"),r(t,"stroke",n[9]),r(t,"fill",n[8]),r(t,"stroke-width",n[15]),r(t,"stroke-dasharray",i=n[20]+" "+n[20]),r(t,"stroke-dashoffset",0),V(t,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(l,"d","M21.87,19.29l-9-15.58a1,1,0,0,0-1.74,0l-9,15.58a1,1,0,0,0,0,1,1,1,0,0,0,.87.5H21a1,1,0,0,0,.87-.9"),r(l,"class","stroke-cap-round"),r(l,"stroke",n[12]),r(l,"fill","transparent"),r(l,"stroke-width",n[15]),r(l,"stroke-dasharray",o=n[20]+" "+n[20]),r(l,"stroke-dashoffset",n[22]),r(l,"transform","rotate(-120, "+12+", "+14.5+")"),V(l,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),V(s,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",n[19]),r(e,"height",n[0]),r(e,"viewBox","0 0 24 24"),r(e,"transform",a=`\r + scale(-1,1)\r + `+(n[16]>0?"rotate("+n[16]+" "+12+" "+14.5+")":"")+`\r + `+("translate("+n[17]+" "+n[18]+")")),r(e,"overflow","visible")},m(c,h){P(c,e,h),d(e,t),d(e,l),n[28](l),d(e,s),B(u,s,null),f=!0},p(c,[h]){(!f||h&512)&&r(t,"stroke",c[9]),(!f||h&256)&&r(t,"fill",c[8]),(!f||h&32768)&&r(t,"stroke-width",c[15]),(!f||h&1048576&&i!==(i=c[20]+" "+c[20]))&&r(t,"stroke-dasharray",i),(!f||h&3584)&&V(t,"filter",(c[11]?"drop-shadow(0px 0px "+c[11]+"px "+c[9]+")":"")+" "+("contrast("+c[10]+"%)")),(!f||h&4096)&&r(l,"stroke",c[12]),(!f||h&32768)&&r(l,"stroke-width",c[15]),(!f||h&1048576&&o!==(o=c[20]+" "+c[20]))&&r(l,"stroke-dasharray",o),(!f||h&4194304)&&r(l,"stroke-dashoffset",c[22]),(!f||h&28672)&&V(l,"filter",(c[14]?"drop-shadow(0px 0px "+c[14]+"px "+c[12]+")":"")+" "+("contrast("+c[13]+"%)"));const g={};h&2&&(g.icon=c[1]),h&32&&(g.scale=c[5]),h&64&&(g.translateX=c[6]),h&128&&(g.translateY=c[7]),h&4&&(g.style="color:"+c[2]),u.$set(g),(!f||h&28)&&V(s,"filter",(c[4]?"drop-shadow(0px 0px "+c[4]+"px "+c[2]+")":"")+" "+("contrast("+c[3]+"%)")),(!f||h&524288)&&r(e,"width",c[19]),(!f||h&1)&&r(e,"height",c[0]),(!f||h&458752&&a!==(a=`\r + scale(-1,1)\r + `+(c[16]>0?"rotate("+c[16]+" "+12+" "+14.5+")":"")+`\r + `+("translate("+c[17]+" "+c[18]+")")))&&r(e,"transform",a)},i(c){f||(C(u.$$.fragment,c),f=!0)},o(c){T(u.$$.fragment,c),f=!1},d(c){c&&F(e),n[28](null),z(u)}}}function La(n,e,t){let i,l,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{innerColor:S="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:m=100}=e,{outlineDropShadowAmount:p=0}=e,{progressColor:A="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:x=0}=e,{progressValue:Q=100}=e,{ringSize:Z=4}=e,{rotateDegree:q=0}=e,{translateX:$=0}=e,{translateY:R=0}=e,{width:U=50}=e;const y=on(Q,{duration:600,easing:Mn});me(n,y,K=>t(27,l=K));let E,k;Eo(()=>{try{t(20,k=E.getTotalLength())}catch{console.log("Error: PS-Hud: Triangle-Ring-Icon should not be mounting when hiding icons")}});function L(K){ie[K?"unshift":"push"](()=>{E=K,t(21,E)})}return n.$$set=K=>{"height"in K&&t(0,o=K.height),"icon"in K&&t(1,s=K.icon),"iconColor"in K&&t(2,u=K.iconColor),"iconContrast"in K&&t(3,a=K.iconContrast),"iconDropShadowAmount"in K&&t(4,f=K.iconDropShadowAmount),"iconRotateDegree"in K&&t(24,c=K.iconRotateDegree),"iconScaling"in K&&t(5,h=K.iconScaling),"iconTranslateX"in K&&t(6,g=K.iconTranslateX),"iconTranslateY"in K&&t(7,_=K.iconTranslateY),"innerColor"in K&&t(8,S=K.innerColor),"name"in K&&t(25,b=K.name),"outlineColor"in K&&t(9,w=K.outlineColor),"outlineContrast"in K&&t(10,m=K.outlineContrast),"outlineDropShadowAmount"in K&&t(11,p=K.outlineDropShadowAmount),"progressColor"in K&&t(12,A=K.progressColor),"progressContrast"in K&&t(13,Y=K.progressContrast),"progressDropShadowAmount"in K&&t(14,x=K.progressDropShadowAmount),"progressValue"in K&&t(26,Q=K.progressValue),"ringSize"in K&&t(15,Z=K.ringSize),"rotateDegree"in K&&t(16,q=K.rotateDegree),"translateX"in K&&t(17,$=K.translateX),"translateY"in K&&t(18,R=K.translateY),"width"in K&&t(19,U=K.width)},n.$$.update=()=>{n.$$.dirty&67108864&&y.set(Q),n.$$.dirty&135266304&&t(22,i=k-l/100*k)},[o,s,u,a,f,h,g,_,S,w,m,p,A,Y,x,Z,q,$,R,U,k,E,i,y,c,b,Q,l,L]}class Na extends _e{constructor(e){super();we(this,e,La,Ua,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconRotateDegree:24,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,name:25,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:26,ringSize:15,rotateDegree:16,translateX:17,translateY:18,width:19})}}function ml(n){let e,t,i,l;return{c(){e=X("path"),r(e,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(e,"class","stroke-cap-round"),r(e,"stroke",n[11]),r(e,"fill",t="transparent"),r(e,"stroke-width",n[17]),r(e,"stroke-dasharray",i=n[20]+" "+n[20]),r(e,"stroke-dashoffset",l=0),V(e,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)"))},m(o,s){P(o,e,s)},p(o,s){s&2048&&r(e,"stroke",o[11]),s&131072&&r(e,"stroke-width",o[17]),s&1048576&&i!==(i=o[20]+" "+o[20])&&r(e,"stroke-dasharray",i),s&14336&&V(e,"filter",(o[13]?"drop-shadow(0px 0px "+o[13]+"px "+o[11]+")":"")+" "+("contrast("+o[12]+"%)"))},d(o){o&&F(e)}}}function qa(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w,m=n[0]&&ml(n);return b=new Re({props:{icon:n[2],scale:n[6],translateX:n[7],translateY:n[8],flip:"horizontal",style:"color:"+n[3]}}),{c(){e=X("svg"),t=X("defs"),i=X("clipPath"),l=X("path"),s=X("g"),m&&m.c(),u=X("path"),f=X("svg"),c=X("path"),S=X("g"),H(b.$$.fragment),r(l,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(l,"class","stroke-cap-round"),r(i,"viewBox","0 0 12 12"),r(i,"id",o=n[10]+"-cut-out-hexring"),r(u,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(u,"class","stroke-cap-round"),r(u,"stroke",n[14]),r(u,"fill","transparent"),r(u,"stroke-width",n[17]),r(u,"stroke-dasharray",a=n[20]+" "+n[20]),r(u,"stroke-dashoffset",n[21]),V(u,"filter",(n[16]?"drop-shadow(0px 0px "+n[16]+"px "+n[14]+")":"")+" "+("contrast("+n[15]+"%)")),r(c,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(c,"class","stroke-cap-round"),r(c,"fill",n[9]),r(c,"transform",h="translate("+(.45+n[17]/2.5)+", "+(.45+n[17]/2.5)+")"),r(f,"viewBox",g="0 0 "+(24+n[17]+.38)+" "+(24+n[17]+.38)),r(s,"transform",_=`\r + `+(n[18]>0?"rotate("+n[18]+" "+12+" "+12+")":"")),V(S,"filter",(n[5]?"drop-shadow(0px 0px "+n[5]+"px "+n[3]+")":"")+" "+("contrast("+n[4]+"%)")),r(e,"width",n[19]),r(e,"height",n[1]),r(e,"viewBox","0 0 24 24"),r(e,"overflow","visible")},m(p,A){P(p,e,A),d(e,t),d(t,i),d(i,l),d(e,s),m&&m.m(s,null),d(s,u),n[29](u),d(s,f),d(f,c),d(e,S),B(b,S,null),w=!0},p(p,[A]){(!w||A&1024&&o!==(o=p[10]+"-cut-out-hexring"))&&r(i,"id",o),p[0]?m?m.p(p,A):(m=ml(p),m.c(),m.m(s,u)):m&&(m.d(1),m=null),(!w||A&16384)&&r(u,"stroke",p[14]),(!w||A&131072)&&r(u,"stroke-width",p[17]),(!w||A&1048576&&a!==(a=p[20]+" "+p[20]))&&r(u,"stroke-dasharray",a),(!w||A&2097152)&&r(u,"stroke-dashoffset",p[21]),(!w||A&114688)&&V(u,"filter",(p[16]?"drop-shadow(0px 0px "+p[16]+"px "+p[14]+")":"")+" "+("contrast("+p[15]+"%)")),(!w||A&512)&&r(c,"fill",p[9]),(!w||A&131072&&h!==(h="translate("+(.45+p[17]/2.5)+", "+(.45+p[17]/2.5)+")"))&&r(c,"transform",h),(!w||A&131072&&g!==(g="0 0 "+(24+p[17]+.38)+" "+(24+p[17]+.38)))&&r(f,"viewBox",g),(!w||A&262144&&_!==(_=`\r + `+(p[18]>0?"rotate("+p[18]+" "+12+" "+12+")":"")))&&r(s,"transform",_);const Y={};A&4&&(Y.icon=p[2]),A&64&&(Y.scale=p[6]),A&128&&(Y.translateX=p[7]),A&256&&(Y.translateY=p[8]),A&8&&(Y.style="color:"+p[3]),b.$set(Y),(!w||A&56)&&V(S,"filter",(p[5]?"drop-shadow(0px 0px "+p[5]+"px "+p[3]+")":"")+" "+("contrast("+p[4]+"%)")),(!w||A&524288)&&r(e,"width",p[19]),(!w||A&2)&&r(e,"height",p[1])},i(p){w||(C(b.$$.fragment,p),w=!0)},o(p){T(b.$$.fragment,p),w=!1},d(p){p&&F(e),m&&m.d(),n[29](null),z(b)}}}function ja(n,e,t){let i,{displayOutline:l=!0}=e,{height:o=50}=e,{icon:s=null}=e,{iconColor:u="red"}=e,{iconContrast:a=100}=e,{iconDropShadowAmount:f=0}=e,{iconRotateDegree:c=0}=e,{iconScaling:h=.45}=e,{iconTranslateX:g=0}=e,{iconTranslateY:_=0}=e,{innerColor:S="#212121"}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineContrast:m=100}=e,{outlineDropShadowAmount:p=0}=e,{progressColor:A="red"}=e,{progressContrast:Y=100}=e,{progressDropShadowAmount:x=0}=e,{progressValue:Q=100}=e,{ringSize:Z=4}=e,{rotateDegree:q=0}=e,{translateX:$=0}=e,{translateY:R=0}=e,{width:U=50}=e,y=10;const E=on(Q,{duration:600,easing:Mn});me(n,E,D=>t(28,i=D));let k,L;Eo(()=>{try{t(20,L=k.getTotalLength())}catch{}});function K(D){ie[D?"unshift":"push"](()=>{k=D,t(22,k)})}return n.$$set=D=>{"displayOutline"in D&&t(0,l=D.displayOutline),"height"in D&&t(1,o=D.height),"icon"in D&&t(2,s=D.icon),"iconColor"in D&&t(3,u=D.iconColor),"iconContrast"in D&&t(4,a=D.iconContrast),"iconDropShadowAmount"in D&&t(5,f=D.iconDropShadowAmount),"iconRotateDegree"in D&&t(24,c=D.iconRotateDegree),"iconScaling"in D&&t(6,h=D.iconScaling),"iconTranslateX"in D&&t(7,g=D.iconTranslateX),"iconTranslateY"in D&&t(8,_=D.iconTranslateY),"innerColor"in D&&t(9,S=D.innerColor),"name"in D&&t(10,b=D.name),"outlineColor"in D&&t(11,w=D.outlineColor),"outlineContrast"in D&&t(12,m=D.outlineContrast),"outlineDropShadowAmount"in D&&t(13,p=D.outlineDropShadowAmount),"progressColor"in D&&t(14,A=D.progressColor),"progressContrast"in D&&t(15,Y=D.progressContrast),"progressDropShadowAmount"in D&&t(16,x=D.progressDropShadowAmount),"progressValue"in D&&t(25,Q=D.progressValue),"ringSize"in D&&t(17,Z=D.ringSize),"rotateDegree"in D&&t(18,q=D.rotateDegree),"translateX"in D&&t(26,$=D.translateX),"translateY"in D&&t(27,R=D.translateY),"width"in D&&t(19,U=D.width)},n.$$.update=()=>{n.$$.dirty&33554432&&E.set(Q),n.$$.dirty&269484032&&t(21,y=L-i/100*L)},[l,o,s,u,a,f,h,g,_,S,b,w,m,p,A,Y,x,Z,q,U,L,y,k,E,c,Q,$,R,i,K]}class Ga extends _e{constructor(e){super();we(this,e,ja,qa,be,{displayOutline:0,height:1,icon:2,iconColor:3,iconContrast:4,iconDropShadowAmount:5,iconRotateDegree:24,iconScaling:6,iconTranslateX:7,iconTranslateY:8,innerColor:9,name:10,outlineColor:11,outlineContrast:12,outlineDropShadowAmount:13,progressColor:14,progressContrast:15,progressDropShadowAmount:16,progressValue:25,ringSize:17,rotateDegree:18,translateX:26,translateY:27,width:19})}}function Wa(n){let e,t,i,l,o,s,u,a,f,c,h,g;return h=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],flip:"horizontal",style:"color:"+n[2]}}),{c(){e=X("svg"),t=X("g"),i=X("path"),l=X("clipPath"),o=X("path"),u=X("line"),c=X("g"),H(h.$$.fragment),r(i,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(i,"fill",n[9]),r(i,"stroke","transparent"),r(i,"stroke-width",n[22]),V(i,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(o,"d","M11.7 1.1732C11.8856 1.06603 12.1144 1.06603 12.3 1.17321L21.2263 6.3268C21.4119 6.43397 21.5263 6.63205 21.5263 6.84641V17.1536C21.5263 17.3679 21.4119 17.566 21.2263 17.6732L12.3 22.8268C12.1144 22.934 11.8856 22.934 11.7 22.8268L2.77372 17.6732C2.58808 17.566 2.47372 17.3679 2.47372 17.1536V6.84641C2.47372 6.63205 2.58808 6.43397 2.77372 6.32679L11.7 1.1732Z"),r(l,"id",s=n[8]+"-cut-out-hexwhole"),r(u,"x1","50%"),r(u,"y1",24),r(u,"x2","50%"),r(u,"y2",0),r(u,"stroke",n[12]),r(u,"stroke-dasharray",n[19]),r(u,"stroke-dashoffset",n[20]),r(u,"stroke-width",n[19]),r(u,"clip-path",a="url(#"+n[8]+"-cut-out-hexwhole)"),V(u,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(t,"transform",f=`\r + `+(n[15]>0?"rotate("+n[15]+" "+12+" "+12+")":"")+`\r + `+("translate("+n[16]+" "+n[17]+")")),V(c,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",n[18]),r(e,"height",n[0]),r(e,"viewBox","0 0 24 24")},m(_,S){P(_,e,S),d(e,t),d(t,i),d(t,l),d(l,o),d(t,u),n[26](u),d(e,c),B(h,c,null),g=!0},p(_,[S]){(!g||S&512)&&r(i,"fill",_[9]),(!g||S&4194304)&&r(i,"stroke-width",_[22]),(!g||S&3584)&&V(i,"filter",(_[11]?"drop-shadow(0px 0px "+_[11]+"px "+_[9]+")":"")+" "+("contrast("+_[10]+"%)")),(!g||S&256&&s!==(s=_[8]+"-cut-out-hexwhole"))&&r(l,"id",s),(!g||S&4096)&&r(u,"stroke",_[12]),(!g||S&524288)&&r(u,"stroke-dasharray",_[19]),(!g||S&1048576)&&r(u,"stroke-dashoffset",_[20]),(!g||S&524288)&&r(u,"stroke-width",_[19]),(!g||S&256&&a!==(a="url(#"+_[8]+"-cut-out-hexwhole)"))&&r(u,"clip-path",a),(!g||S&28672)&&V(u,"filter",(_[14]?"drop-shadow(0px 0px "+_[14]+"px "+_[12]+")":"")+" "+("contrast("+_[13]+"%)")),(!g||S&229376&&f!==(f=`\r + `+(_[15]>0?"rotate("+_[15]+" "+12+" "+12+")":"")+`\r + `+("translate("+_[16]+" "+_[17]+")")))&&r(t,"transform",f);const b={};S&2&&(b.icon=_[1]),S&32&&(b.scale=_[5]),S&64&&(b.translateX=_[6]),S&128&&(b.translateY=_[7]),S&4&&(b.style="color:"+_[2]),h.$set(b),(!g||S&28)&&V(c,"filter",(_[4]?"drop-shadow(0px 0px "+_[4]+"px "+_[2]+")":"")+" "+("contrast("+_[3]+"%)")),(!g||S&262144)&&r(e,"width",_[18]),(!g||S&1)&&r(e,"height",_[0])},i(_){g||(C(h.$$.fragment,_),g=!0)},o(_){T(h.$$.fragment,_),g=!1},d(_){_&&F(e),n[26](null),z(h)}}}function Ja(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,q=10,$=null,R=0,U=l;Eo(()=>{try{t(19,R=$.getTotalLength())}catch{console.log("Error: PS-Hud: Hexagon-Whole-Icon should not be mounting when hiding icons")}});const y=on(A,{duration:600,easing:Mn});me(n,y,k=>t(25,i=k));function E(k){ie[k?"unshift":"push"](()=>{$=k,t(21,$)})}return n.$$set=k=>{"height"in k&&t(0,l=k.height),"icon"in k&&t(1,o=k.icon),"iconColor"in k&&t(2,s=k.iconColor),"iconContrast"in k&&t(3,u=k.iconContrast),"iconDropShadowAmount"in k&&t(4,a=k.iconDropShadowAmount),"iconScaling"in k&&t(5,f=k.iconScaling),"iconTranslateX"in k&&t(6,c=k.iconTranslateX),"iconTranslateY"in k&&t(7,h=k.iconTranslateY),"name"in k&&t(8,g=k.name),"outlineColor"in k&&t(9,_=k.outlineColor),"outlineContrast"in k&&t(10,S=k.outlineContrast),"outlineDropShadowAmount"in k&&t(11,b=k.outlineDropShadowAmount),"progressColor"in k&&t(12,w=k.progressColor),"progressContrast"in k&&t(13,m=k.progressContrast),"progressDropShadowAmount"in k&&t(14,p=k.progressDropShadowAmount),"progressValue"in k&&t(24,A=k.progressValue),"rotateDegree"in k&&t(15,Y=k.rotateDegree),"translateX"in k&&t(16,x=k.translateX),"translateY"in k&&t(17,Q=k.translateY),"width"in k&&t(18,Z=k.width)},n.$$.update=()=>{n.$$.dirty&262145&&t(22,U=l>Z?l:Z),n.$$.dirty&16777216&&y.set(A),n.$$.dirty&34078720&&t(20,q=R-i/100*R)},[l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,Y,x,Q,Z,R,q,$,U,y,A,i,E]}class Za extends _e{constructor(e){super();we(this,e,Ja,Wa,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:8,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:24,rotateDegree:15,translateX:16,translateY:17,width:18})}}function Ka(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b;return _=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]}}),{c(){e=X("svg"),t=X("g"),i=X("circle"),u=X("circle"),g=X("g"),H(_.$$.fragment),r(i,"stroke",n[8]),r(i,"fill","transparent"),r(i,"stroke-dashoffset",0),r(i,"stroke-dasharray",l=n[20]+" "+n[20]),r(i,"stroke-width",o=n[19]*2),r(i,"r",n[19]),r(i,"cx",n[18]),r(i,"cy",n[18]),r(i,"transform",s="rotate(-90, "+n[18]+", "+n[18]+")"),V(i,"filter",(n[10]?"drop-shadow(0px 0px "+n[10]+"px "+n[8]+")":"")+" "+("contrast("+n[9]+"%)")),r(u,"stroke",n[11]),r(u,"fill","transparent"),r(u,"stroke-dashoffset",n[21]),r(u,"stroke-dasharray",a=n[20]+" "+n[20]),r(u,"stroke-width",f=n[19]*2),r(u,"r",n[19]),r(u,"cx",n[18]),r(u,"cy",n[18]),r(u,"transform",c="rotate(-90, "+n[18]+", "+n[18]+")"),V(u,"filter",(n[13]?"drop-shadow(0px 0px "+n[13]+"px "+n[11]+")":"")+" "+("contrast("+n[12]+"%)")),r(t,"transform",h=`\r + `+(n[14]>0?"rotate("+n[14]+" "+n[17]+" "+n[0]+")":"")+`\r + `+("translate("+n[15]+" "+n[16]+")")),V(g,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"width",n[18]),r(e,"height",n[18]),r(e,"viewBox",S="0 0 "+n[18]*2+" "+n[18]*2)},m(w,m){P(w,e,m),d(e,t),d(t,i),d(t,u),d(e,g),B(_,g,null),b=!0},p(w,[m]){(!b||m&256)&&r(i,"stroke",w[8]),(!b||m&1048576&&l!==(l=w[20]+" "+w[20]))&&r(i,"stroke-dasharray",l),(!b||m&524288&&o!==(o=w[19]*2))&&r(i,"stroke-width",o),(!b||m&524288)&&r(i,"r",w[19]),(!b||m&262144)&&r(i,"cx",w[18]),(!b||m&262144)&&r(i,"cy",w[18]),(!b||m&262144&&s!==(s="rotate(-90, "+w[18]+", "+w[18]+")"))&&r(i,"transform",s),(!b||m&1792)&&V(i,"filter",(w[10]?"drop-shadow(0px 0px "+w[10]+"px "+w[8]+")":"")+" "+("contrast("+w[9]+"%)")),(!b||m&2048)&&r(u,"stroke",w[11]),(!b||m&2097152)&&r(u,"stroke-dashoffset",w[21]),(!b||m&1048576&&a!==(a=w[20]+" "+w[20]))&&r(u,"stroke-dasharray",a),(!b||m&524288&&f!==(f=w[19]*2))&&r(u,"stroke-width",f),(!b||m&524288)&&r(u,"r",w[19]),(!b||m&262144)&&r(u,"cx",w[18]),(!b||m&262144)&&r(u,"cy",w[18]),(!b||m&262144&&c!==(c="rotate(-90, "+w[18]+", "+w[18]+")"))&&r(u,"transform",c),(!b||m&14336)&&V(u,"filter",(w[13]?"drop-shadow(0px 0px "+w[13]+"px "+w[11]+")":"")+" "+("contrast("+w[12]+"%)")),(!b||m&245761&&h!==(h=`\r + `+(w[14]>0?"rotate("+w[14]+" "+w[17]+" "+w[0]+")":"")+`\r + `+("translate("+w[15]+" "+w[16]+")")))&&r(t,"transform",h);const p={};m&2&&(p.icon=w[1]),m&32&&(p.scale=w[5]),m&64&&(p.translateX=w[6]),m&128&&(p.translateY=w[7]),m&4&&(p.style="color:"+w[2]),_.$set(p),(!b||m&28)&&V(g,"filter",(w[4]?"drop-shadow(0px 0px "+w[4]+"px "+w[2]+")":"")+" "+("contrast("+w[3]+"%)")),(!b||m&262144)&&r(e,"width",w[18]),(!b||m&262144)&&r(e,"height",w[18]),(!b||m&262144&&S!==(S="0 0 "+w[18]*2+" "+w[18]*2))&&r(e,"viewBox",S)},i(w){b||(C(_.$$.fragment,w),b=!0)},o(w){T(_.$$.fragment,w),b=!1},d(w){w&&F(e),z(_)}}}function Qa(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{outlineColor:_="red"}=e,{outlineContrast:S=100}=e,{outlineDropShadowAmount:b=0}=e,{progressColor:w="red"}=e,{progressContrast:m=100}=e,{progressDropShadowAmount:p=0}=e,{progressValue:A=100}=e,{rotateDegree:Y=0}=e,{translateX:x=0}=e,{translateY:Q=0}=e,{width:Z=50}=e,q=25;const $=on(A,{duration:600,easing:Mn});me(n,$,E=>t(25,i=E));let R=q,U=R*2*Math.PI,y=U-i/100*U;return n.$$set=E=>{"height"in E&&t(0,l=E.height),"icon"in E&&t(1,o=E.icon),"iconColor"in E&&t(2,s=E.iconColor),"iconContrast"in E&&t(3,u=E.iconContrast),"iconDropShadowAmount"in E&&t(4,a=E.iconDropShadowAmount),"iconScaling"in E&&t(5,f=E.iconScaling),"iconTranslateX"in E&&t(6,c=E.iconTranslateX),"iconTranslateY"in E&&t(7,h=E.iconTranslateY),"name"in E&&t(23,g=E.name),"outlineColor"in E&&t(8,_=E.outlineColor),"outlineContrast"in E&&t(9,S=E.outlineContrast),"outlineDropShadowAmount"in E&&t(10,b=E.outlineDropShadowAmount),"progressColor"in E&&t(11,w=E.progressColor),"progressContrast"in E&&t(12,m=E.progressContrast),"progressDropShadowAmount"in E&&t(13,p=E.progressDropShadowAmount),"progressValue"in E&&t(24,A=E.progressValue),"rotateDegree"in E&&t(14,Y=E.rotateDegree),"translateX"in E&&t(15,x=E.translateX),"translateY"in E&&t(16,Q=E.translateY),"width"in E&&t(17,Z=E.width)},n.$$.update=()=>{n.$$.dirty&16777216&&$.set(A),n.$$.dirty&35520513&&(t(18,q=l>Z?l:Z),t(19,R=q),t(20,U=R*2*Math.PI),t(21,y=U-i/100*U))},[l,o,s,u,a,f,c,h,_,S,b,w,m,p,Y,x,Q,Z,q,R,U,y,$,g,A,i]}class xa extends _e{constructor(e){super();we(this,e,Qa,Ka,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:23,outlineColor:8,outlineContrast:9,outlineDropShadowAmount:10,progressColor:11,progressContrast:12,progressDropShadowAmount:13,progressValue:24,rotateDegree:14,translateX:15,translateY:16,width:17})}}function $a(n){let e,t,i,l,o,s,u,a,f,c,h,g;return f=new Re({props:{icon:n[1],scale:n[5],translateX:n[6],translateY:n[7],style:"color:"+n[2]+";"}}),{c(){e=X("svg"),t=X("g"),i=X("line"),l=X("line"),o=X("line"),a=X("g"),H(f.$$.fragment),r(i,"stroke",n[9]),r(i,"x1","50%"),r(i,"y1","100%"),r(i,"x2","50%"),r(i,"y2","0%"),r(i,"stroke-width",n[19]),V(i,"filter",(n[11]?"drop-shadow(0px 0px "+n[11]+"px "+n[9]+")":"")+" "+("contrast("+n[10]+"%)")),r(l,"x1","50%"),r(l,"y1","100%"),r(l,"x2","50%"),r(l,"y2","0%"),r(l,"stroke",n[12]),r(l,"fill","transparent"),r(l,"stroke-dasharray",n[0]),r(l,"stroke-dashoffset",n[20]),r(l,"stroke-width",n[19]),V(l,"filter",(n[14]?"drop-shadow(0px 0px "+n[14]+"px "+n[12]+")":"")+" "+("contrast("+n[13]+"%)")),r(o,"stroke",n[8]),r(o,"x1","50%"),r(o,"y1",s=n[0]-n[15]),r(o,"x2","50%"),r(o,"y2",n[15]),r(o,"stroke-width",u=n[19]-n[15]*2),r(a,"transform",c="rotate( "+-n[16]+" "+n[0]/2+" "+n[19]/2+")"),V(a,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[2]+")":"")+" "+("contrast("+n[3]+"%)")),r(e,"height",n[0]),r(e,"width",n[19]),r(e,"overflow","visible"),r(e,"transform",h=`\r + `+(n[16]>0?"rotate("+n[16]+" "+0+" "+0+")":"")+`\r + `+("translate("+n[17]+" "+n[18]+")"))},m(_,S){P(_,e,S),d(e,t),d(t,i),d(t,l),d(t,o),d(e,a),B(f,a,null),g=!0},p(_,[S]){(!g||S&512)&&r(i,"stroke",_[9]),(!g||S&524288)&&r(i,"stroke-width",_[19]),(!g||S&3584)&&V(i,"filter",(_[11]?"drop-shadow(0px 0px "+_[11]+"px "+_[9]+")":"")+" "+("contrast("+_[10]+"%)")),(!g||S&4096)&&r(l,"stroke",_[12]),(!g||S&1)&&r(l,"stroke-dasharray",_[0]),(!g||S&1048576)&&r(l,"stroke-dashoffset",_[20]),(!g||S&524288)&&r(l,"stroke-width",_[19]),(!g||S&28672)&&V(l,"filter",(_[14]?"drop-shadow(0px 0px "+_[14]+"px "+_[12]+")":"")+" "+("contrast("+_[13]+"%)")),(!g||S&256)&&r(o,"stroke",_[8]),(!g||S&32769&&s!==(s=_[0]-_[15]))&&r(o,"y1",s),(!g||S&32768)&&r(o,"y2",_[15]),(!g||S&557056&&u!==(u=_[19]-_[15]*2))&&r(o,"stroke-width",u);const b={};S&2&&(b.icon=_[1]),S&32&&(b.scale=_[5]),S&64&&(b.translateX=_[6]),S&128&&(b.translateY=_[7]),S&4&&(b.style="color:"+_[2]+";"),f.$set(b),(!g||S&589825&&c!==(c="rotate( "+-_[16]+" "+_[0]/2+" "+_[19]/2+")"))&&r(a,"transform",c),(!g||S&28)&&V(a,"filter",(_[4]?"drop-shadow(0px 0px "+_[4]+"px "+_[2]+")":"")+" "+("contrast("+_[3]+"%)")),(!g||S&1)&&r(e,"height",_[0]),(!g||S&524288)&&r(e,"width",_[19]),(!g||S&458752&&h!==(h=`\r + `+(_[16]>0?"rotate("+_[16]+" "+0+" "+0+")":"")+`\r + `+("translate("+_[17]+" "+_[18]+")")))&&r(e,"transform",h)},i(_){g||(C(f.$$.fragment,_),g=!0)},o(_){T(f.$$.fragment,_),g=!1},d(_){_&&F(e),z(f)}}}function eu(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{innerColor:g="#212121"}=e,{name:_=""}=e,{outlineColor:S="red"}=e,{outlineContrast:b=100}=e,{outlineDropShadowAmount:w=0}=e,{progressColor:m="red"}=e,{progressContrast:p=100}=e,{progressDropShadowAmount:A=0}=e,{progressValue:Y=100}=e,{ringSize:x=4}=e,{rotateDegree:Q=0}=e,{translateX:Z=0}=e,{translateY:q=0}=e,{width:$=50}=e,R=10;const U=on(Y,{duration:600,easing:Mn});return me(n,U,y=>t(24,i=y)),n.$$set=y=>{"height"in y&&t(0,l=y.height),"icon"in y&&t(1,o=y.icon),"iconColor"in y&&t(2,s=y.iconColor),"iconContrast"in y&&t(3,u=y.iconContrast),"iconDropShadowAmount"in y&&t(4,a=y.iconDropShadowAmount),"iconScaling"in y&&t(5,f=y.iconScaling),"iconTranslateX"in y&&t(6,c=y.iconTranslateX),"iconTranslateY"in y&&t(7,h=y.iconTranslateY),"innerColor"in y&&t(8,g=y.innerColor),"name"in y&&t(22,_=y.name),"outlineColor"in y&&t(9,S=y.outlineColor),"outlineContrast"in y&&t(10,b=y.outlineContrast),"outlineDropShadowAmount"in y&&t(11,w=y.outlineDropShadowAmount),"progressColor"in y&&t(12,m=y.progressColor),"progressContrast"in y&&t(13,p=y.progressContrast),"progressDropShadowAmount"in y&&t(14,A=y.progressDropShadowAmount),"progressValue"in y&&t(23,Y=y.progressValue),"ringSize"in y&&t(15,x=y.ringSize),"rotateDegree"in y&&t(16,Q=y.rotateDegree),"translateX"in y&&t(17,Z=y.translateX),"translateY"in y&&t(18,q=y.translateY),"width"in y&&t(19,$=y.width)},n.$$.update=()=>{n.$$.dirty&8388608&&U.set(Y),n.$$.dirty&16777217&&t(20,R=l-i/100*l)},[l,o,s,u,a,f,c,h,g,S,b,w,m,p,A,x,Q,Z,q,$,R,U,_,Y,i]}class nu extends _e{constructor(e){super();we(this,e,eu,$a,be,{height:0,icon:1,iconColor:2,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,innerColor:8,name:22,outlineColor:9,outlineContrast:10,outlineDropShadowAmount:11,progressColor:12,progressContrast:13,progressDropShadowAmount:14,progressValue:23,ringSize:15,rotateDegree:16,translateX:17,translateY:18,width:19})}}function tu(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,A,Y,x,Q,Z,q,$,R,U=Math.round(n[9])+"%",y,E,k;return $=new Re({props:{icon:n[2],scale:n[5],translateX:n[6],translateY:n[7]||.2,style:"color:"+n[0]}}),{c(){e=X("svg"),t=X("filter"),i=X("feOffset"),l=X("feGaussianBlur"),o=X("feColorMatrix"),s=X("feOffset"),u=X("feGaussianBlur"),a=X("feColorMatrix"),f=X("feOffset"),c=X("feGaussianBlur"),h=X("feColorMatrix"),g=X("feOffset"),_=X("feGaussianBlur"),S=X("feColorMatrix"),b=X("feOffset"),w=X("feGaussianBlur"),m=X("feColorMatrix"),p=X("feMerge"),A=X("feMergeNode"),Y=X("feMergeNode"),x=X("feMergeNode"),Q=X("feMergeNode"),Z=X("feMergeNode"),q=X("g"),H($.$$.fragment),R=X("text"),y=ne(U),r(i,"in","SourceAlpha"),r(i,"result","shadowOffsetOuter1"),r(l,"in","shadowOffsetOuter1"),r(l,"result","shadowBlurOuter1"),r(l,"stdDeviation","5"),r(o,"in","shadowBlurOuter1"),r(o,"result","shadowMatrixOuter1"),r(o,"values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"),r(s,"dy","1"),r(s,"in","SourceAlpha"),r(s,"result","shadowOffsetOuter2"),r(u,"in","shadowOffsetOuter2"),r(u,"result","shadowBlurOuter2"),r(u,"stdDeviation","7"),r(a,"in","shadowBlurOuter2"),r(a,"result","shadowMatrixOuter2"),r(a,"values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0"),r(f,"dy","2"),r(f,"in","SourceAlpha"),r(f,"result","shadowOffsetOuter3"),r(c,"in","shadowOffsetOuter3"),r(c,"result","shadowBlurOuter3"),r(c,"stdDeviation","10"),r(h,"in","shadowBlurOuter3"),r(h,"result","shadowMatrixOuter3"),r(h,"values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"),r(g,"dx","2"),r(g,"dy","2"),r(g,"in","SourceAlpha"),r(g,"result","shadowOffsetOuter4"),r(_,"in","shadowOffsetOuter4"),r(_,"result","shadowBlurOuter4"),r(_,"stdDeviation","1"),r(S,"in","shadowBlurOuter4"),r(S,"result","shadowMatrixOuter4"),r(S,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.69678442 0"),r(b,"dy","2"),r(b,"in","SourceAlpha"),r(b,"result","shadowOffsetOuter5"),r(w,"in","shadowOffsetOuter5"),r(w,"result","shadowBlurOuter5"),r(w,"stdDeviation","8"),r(m,"in","shadowBlurOuter5"),r(m,"result","shadowMatrixOuter5"),r(m,"values","0 0 0 0 0.314369351 0 0 0 0 0.8883757 0 0 0 0 0.759899616 0 0 0 0.649371603 0"),r(A,"in","shadowMatrixOuter1"),r(Y,"in","shadowMatrixOuter2"),r(x,"in","shadowMatrixOuter3"),r(Q,"in","shadowMatrixOuter4"),r(Z,"in","shadowMatrixOuter5"),r(t,"id","glow"),r(t,"width","100%"),r(t,"height","100%"),r(t,"x","0"),r(t,"y","0"),r(t,"filterUnits","userSpaceOnUse"),r(q,"class","glow svelte-1vo34hh"),V(q,"filter",(n[4]?"drop-shadow(0px 0px "+n[4]+"px "+n[0]+")":"")+" "+("contrast("+n[3]+"%)")),r(R,"class","font-semibold text-lg"),r(R,"fill","white"),r(R,"x","55%"),r(R,"y","20%"),r(R,"dominant-baseline","middle"),r(R,"text-anchor","middle"),r(e,"width",n[8]),r(e,"height",n[1]),r(e,"viewBox",E="0 0 "+n[8]+" "+n[1])},m(L,K){P(L,e,K),d(e,t),d(t,i),d(t,l),d(t,o),d(t,s),d(t,u),d(t,a),d(t,f),d(t,c),d(t,h),d(t,g),d(t,_),d(t,S),d(t,b),d(t,w),d(t,m),d(t,p),d(p,A),d(p,Y),d(p,x),d(p,Q),d(p,Z),d(e,q),B($,q,null),d(e,R),d(R,y),k=!0},p(L,[K]){const D={};K&4&&(D.icon=L[2]),K&32&&(D.scale=L[5]),K&64&&(D.translateX=L[6]),K&128&&(D.translateY=L[7]||.2),K&1&&(D.style="color:"+L[0]),$.$set(D),(!k||K&25)&&V(q,"filter",(L[4]?"drop-shadow(0px 0px "+L[4]+"px "+L[0]+")":"")+" "+("contrast("+L[3]+"%)")),(!k||K&512)&&U!==(U=Math.round(L[9])+"%")&&re(y,U),(!k||K&256)&&r(e,"width",L[8]),(!k||K&2)&&r(e,"height",L[1]),(!k||K&258&&E!==(E="0 0 "+L[8]+" "+L[1]))&&r(e,"viewBox",E)},i(L){k||(C($.$$.fragment,L),k=!0)},o(L){T($.$$.fragment,L),k=!1},d(L){L&&F(e),z($)}}}function ou(n,e,t){let i,{height:l=50}=e,{icon:o=null}=e,{iconColor:s="red"}=e,{iconContrast:u=100}=e,{iconDropShadowAmount:a=0}=e,{iconScaling:f=.45}=e,{iconTranslateX:c=0}=e,{iconTranslateY:h=0}=e,{name:g=""}=e,{progressColor:_="red"}=e,{progressValue:S=100}=e,{rotateDegree:b=0}=e,{translateX:w=0}=e,{translateY:m=0}=e,{width:p=50}=e;const A=on(S,{duration:600,easing:Ci});return me(n,A,Y=>t(9,i=Y)),n.$$set=Y=>{"height"in Y&&t(1,l=Y.height),"icon"in Y&&t(2,o=Y.icon),"iconColor"in Y&&t(0,s=Y.iconColor),"iconContrast"in Y&&t(3,u=Y.iconContrast),"iconDropShadowAmount"in Y&&t(4,a=Y.iconDropShadowAmount),"iconScaling"in Y&&t(5,f=Y.iconScaling),"iconTranslateX"in Y&&t(6,c=Y.iconTranslateX),"iconTranslateY"in Y&&t(7,h=Y.iconTranslateY),"name"in Y&&t(11,g=Y.name),"progressColor"in Y&&t(12,_=Y.progressColor),"progressValue"in Y&&t(13,S=Y.progressValue),"rotateDegree"in Y&&t(14,b=Y.rotateDegree),"translateX"in Y&&t(15,w=Y.translateX),"translateY"in Y&&t(16,m=Y.translateY),"width"in Y&&t(8,p=Y.width)},n.$$.update=()=>{n.$$.dirty&8192&&A.set(S),n.$$.dirty&4097&&s=="white"&&t(0,s=_)},[s,l,o,u,a,f,c,h,p,i,A,g,_,S,b,w,m]}class iu extends _e{constructor(e){super();we(this,e,ou,tu,be,{height:1,icon:2,iconColor:0,iconContrast:3,iconDropShadowAmount:4,iconScaling:5,iconTranslateX:6,iconTranslateY:7,name:11,progressColor:12,progressValue:13,rotateDegree:14,translateX:15,translateY:16,width:8})}}function lu(n){let e,t;const i=[n[1]];let l={};for(let o=0;o{s[c]=null}),pe()),~e?(t=s[e],t?t.p(a,f):(t=s[e]=o[e](a),t.c()),C(t,1),t.m(i.parentNode,i)):t=null)},i(a){l||(C(t),l=!0)},o(a){T(t),l=!1},d(a){~e&&s[e].d(a),a&&F(i)}}}function Du(n,e,t){let{hudIconInfo:i={}}=e,l;return n.$$set=o=>{"hudIconInfo"in o&&t(0,i=o.hudIconInfo)},n.$$.update=()=>{n.$$.dirty&1&&t(1,l=(a=>{var f=a,{shape:o,isShowing:s}=f,u=ki(f,["shape","isShowing"]);return u})(i))},[i,l]}class Br extends _e{constructor(e){super();we(this,e,Du,Au,be,{hudIconInfo:0})}}function _l(n,e,t){const i=n.slice();return i[10]=e[t][0],i[11]=e[t][1],i}function wl(n,e,t){const i=n.slice();i[10]=e[t];const l=i[2].designMode?i[4]==i[10]?i[3].globalColorSettings.editSingleIconStage:0:i[3].icons[i[10]].currentEffect;i[14]=l;const o=i[3].icons[i[10]].colorEffects[i[14]];i[15]=o;const s=i[5][i[10]];return i[16]=s,i}function bl(n){let e,t,i,l;return t=new Br({props:{hudIconInfo:yo(sn({},n[2].icons[n[10]]),{progressColor:n[15].progressColor,progressContrast:n[15].progressContrast,progressDropShadowAmount:n[15].progressDropShadowAmount,progressValue:n[2].designMode?n[2].designProgress:n[2].icons[n[10]].progressValue,iconColor:n[16]?n[16].iconColor:n[15].iconColor,iconContrast:n[15].iconContrast,iconDropShadowAmount:n[15].iconDropShadowAmount,outlineColor:n[15].outlineColor,outlineContrast:n[15].outlineContrast,outlineDropShadowAmount:n[15].outlineDropShadowAmount,innerColor:n[15].innerColor})}}),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","my-auto")},m(o,s){P(o,e,s),B(t,e,null),l=!0},p(o,s){const u={};s&61&&(u.hudIconInfo=yo(sn({},o[2].icons[o[10]]),{progressColor:o[15].progressColor,progressContrast:o[15].progressContrast,progressDropShadowAmount:o[15].progressDropShadowAmount,progressValue:o[2].designMode?o[2].designProgress:o[2].icons[o[10]].progressValue,iconColor:o[16]?o[16].iconColor:o[15].iconColor,iconContrast:o[15].iconContrast,iconDropShadowAmount:o[15].iconDropShadowAmount,outlineColor:o[15].outlineColor,outlineContrast:o[15].outlineContrast,outlineDropShadowAmount:o[15].outlineDropShadowAmount,innerColor:o[15].innerColor})),t.$set(u)},i(o){l||(C(t.$$.fragment,o),o&&mo(()=>{i||(i=Gn(e,ct,{duration:1e3},!0)),i.run(1)}),l=!0)},o(o){T(t.$$.fragment,o),o&&(i||(i=Gn(e,ct,{duration:1e3},!1)),i.run(0)),l=!1},d(o){o&&F(e),z(t),o&&i&&i.end()}}}function Sl(n){let e=n[2].icons[n[10]].isShowing&&!n[1].includes(n[10])||n[2].designMode,t,i,l=e&&bl(n);return{c(){l&&l.c(),t=kn()},m(o,s){l&&l.m(o,s),P(o,t,s),i=!0},p(o,s){s&7&&(e=o[2].icons[o[10]].isShowing&&!o[1].includes(o[10])||o[2].designMode),e?l?(l.p(o,s),s&7&&C(l,1)):(l=bl(o),l.c(),C(l,1),l.m(t.parentNode,t)):l&&(Se(),T(l,1,1,()=>{l=null}),pe())},i(o){i||(C(l),i=!0)},o(o){T(l),i=!1},d(o){l&&l.d(o),o&&F(t)}}}function pl(n){let e,t,i,l,o=(n[11].isShowing||n[2].designMode)&&kl(n);return{c(){e=v("div"),o&&o.c(),t=I(),r(e,"class","my-auto")},m(s,u){P(s,e,u),o&&o.m(e,null),d(e,t),l=!0},p(s,u){s[11].isShowing||s[2].designMode?o?(o.p(s,u),u&36&&C(o,1)):(o=kl(s),o.c(),C(o,1),o.m(e,t)):o&&(Se(),T(o,1,1,()=>{o=null}),pe())},i(s){l||(C(o),s&&mo(()=>{i||(i=Gn(e,ct,{duration:1e3},!0)),i.run(1)}),l=!0)},o(s){T(o),s&&(i||(i=Gn(e,ct,{duration:1e3},!1)),i.run(0)),l=!1},d(s){s&&F(e),o&&o.d(),s&&i&&i.end()}}}function kl(n){let e,t;return e=new Br({props:{hudIconInfo:n[11]}}),{c(){H(e.$$.fragment)},m(i,l){B(e,i,l),t=!0},p(i,l){const o={};l&32&&(o.hudIconInfo=i[11]),e.$set(o)},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){T(e.$$.fragment,i),t=!1},d(i){z(e,i)}}}function Cl(n,e){let t,i,l,o=e[11].name&&pl(e);return{key:n,first:null,c(){t=kn(),o&&o.c(),i=kn(),this.first=t},m(s,u){P(s,t,u),o&&o.m(s,u),P(s,i,u),l=!0},p(s,u){e=s,e[11].name?o?(o.p(e,u),u&32&&C(o,1)):(o=pl(e),o.c(),C(o,1),o.m(i.parentNode,i)):o&&(Se(),T(o,1,1,()=>{o=null}),pe())},i(s){l||(C(o),l=!0)},o(s){T(o),l=!1},d(s){s&&F(t),o&&o.d(s),s&&F(i)}}}function Tu(n){let e,t=[],i=new Map,l,o,s=n[0].length?n[0]:n[6],u=[];for(let h=0;hT(u[h],1,1,()=>{u[h]=null});let f=Object.entries(n[5]);const c=h=>h[10];for(let h=0;ht(2,l=_)),me(n,de,_=>t(3,o=_)),me(n,Qi,_=>t(5,s=_));let{isReversed:u=!1}=e,{iconsToShow:a=[]}=e,{iconsToNotShow:f=[]}=e,{options:c={}}=e,{optionsForAll:h={}}=e,g=l.showingOrder;return n.$$set=_=>{"isReversed"in _&&t(7,u=_.isReversed),"iconsToShow"in _&&t(0,a=_.iconsToShow),"iconsToNotShow"in _&&t(1,f=_.iconsToNotShow),"options"in _&&t(8,c=_.options),"optionsForAll"in _&&t(9,h=_.optionsForAll)},n.$$.update=()=>{if(n.$$.dirty&8&&t(4,i=o.globalColorSettings.editSingleIconName),n.$$.dirty&132){let _=l.showingOrder;u&&(_=_.reverse())}},[a,f,l,o,i,s,g,u,c,h]}class gi extends _e{constructor(e){super();we(this,e,Iu,Tu,be,{isReversed:7,iconsToShow:0,iconsToNotShow:1,options:8,optionsForAll:9})}}function vl(n){let e,t,i,l;const o=[Fu,Ou,Eu,Xu,Yu,yu,Mu],s=[];function u(a,f){return a[1]=="center-bottom-row"?0:a[1]=="bottom-right-row"?1:a[1]=="left-bottom-column"?2:a[1]=="right-bottom-column"?3:a[1]=="top-left-row"?4:a[1]=="top-right-row"?5:a[1]=="standard"?6:-1}return~(e=u(n))&&(t=s[e]=o[e](n)),{c(){t&&t.c(),i=kn()},m(a,f){~e&&s[e].m(a,f),P(a,i,f),l=!0},p(a,f){let c=e;e=u(a),e===c?~e&&s[e].p(a,f):(t&&(Se(),T(s[c],1,1,()=>{s[c]=null}),pe()),~e?(t=s[e],t?t.p(a,f):(t=s[e]=o[e](a),t.c()),C(t,1),t.m(i.parentNode,i)):t=null)},i(a){l||(C(t),l=!0)},o(a){T(t),l=!1},d(a){~e&&s[e].d(a),a&&F(i)}}}function Mu(n){let e,t,i;return t=new gi({}),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","absolute bottom-[0.3vw] left-[0.3vw] flex flex-row standard-layout svelte-1w35tm2"),V(e,"gap",n[0].iconBetweenSpacing+"px"),V(e,"margin-bottom",n[0].yAxisSpacing+"px"),V(e,"margin-left",n[0].xAxisSpacing+"px")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){(!i||o&1)&&V(e,"gap",l[0].iconBetweenSpacing+"px"),(!i||o&1)&&V(e,"margin-bottom",l[0].yAxisSpacing+"px"),(!i||o&1)&&V(e,"margin-left",l[0].xAxisSpacing+"px")},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function yu(n){let e,t,i;return t=new gi({}),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","absolute top-[0.3vw] right-[0.3vw] flex flex-row"),V(e,"gap",n[0].iconBetweenSpacing+"px"),V(e,"margin-bottom",n[0].yAxisSpacing+"px"),V(e,"margin-left",n[0].xAxisSpacing+"px")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){(!i||o&1)&&V(e,"gap",l[0].iconBetweenSpacing+"px"),(!i||o&1)&&V(e,"margin-bottom",l[0].yAxisSpacing+"px"),(!i||o&1)&&V(e,"margin-left",l[0].xAxisSpacing+"px")},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function Yu(n){let e,t,i;return t=new gi({}),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","absolute top-[0.3vw] left-[0.3vw] flex flex-row"),V(e,"gap",n[0].iconBetweenSpacing+"px"),V(e,"margin-bottom",n[0].yAxisSpacing+"px"),V(e,"margin-left",n[0].xAxisSpacing+"px")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){(!i||o&1)&&V(e,"gap",l[0].iconBetweenSpacing+"px"),(!i||o&1)&&V(e,"margin-bottom",l[0].yAxisSpacing+"px"),(!i||o&1)&&V(e,"margin-left",l[0].xAxisSpacing+"px")},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function Xu(n){let e,t,i,l;return i=new gi({}),{c(){e=v("div"),t=v("div"),H(i.$$.fragment),r(t,"class","static flex flex-col"),V(t,"gap",n[0].iconBetweenSpacing+"px"),V(t,"margin-bottom",n[0].yAxisSpacing+"px"),V(t,"margin-left",n[0].xAxisSpacing+"px"),r(e,"class","absolute bottom-[0.3vw] right-[1vh]")},m(o,s){P(o,e,s),d(e,t),B(i,t,null),l=!0},p(o,s){(!l||s&1)&&V(t,"gap",o[0].iconBetweenSpacing+"px"),(!l||s&1)&&V(t,"margin-bottom",o[0].yAxisSpacing+"px"),(!l||s&1)&&V(t,"margin-left",o[0].xAxisSpacing+"px")},i(o){l||(C(i.$$.fragment,o),l=!0)},o(o){T(i.$$.fragment,o),l=!1},d(o){o&&F(e),z(i)}}}function Eu(n){let e,t,i,l;return i=new gi({}),{c(){e=v("div"),t=v("div"),H(i.$$.fragment),r(t,"class","static flex flex-col"),V(t,"gap",n[0].iconBetweenSpacing+"px"),V(t,"margin-bottom",n[0].yAxisSpacing+"px"),V(t,"margin-left",n[0].xAxisSpacing+"px"),r(e,"class","absolute bottom-[0.3vw] left-[1vh]")},m(o,s){P(o,e,s),d(e,t),B(i,t,null),l=!0},p(o,s){(!l||s&1)&&V(t,"gap",o[0].iconBetweenSpacing+"px"),(!l||s&1)&&V(t,"margin-bottom",o[0].yAxisSpacing+"px"),(!l||s&1)&&V(t,"margin-left",o[0].xAxisSpacing+"px")},i(o){l||(C(i.$$.fragment,o),l=!0)},o(o){T(i.$$.fragment,o),l=!1},d(o){o&&F(e),z(i)}}}function Ou(n){let e,t,i;return t=new gi({}),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","absolute bottom-[0.3vw] right-[0.3vw] flex flex-row"),V(e,"gap",n[0].iconBetweenSpacing+"px"),V(e,"margin-bottom",n[0].yAxisSpacing+"px"),V(e,"margin-left",n[0].xAxisSpacing+"px")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){(!i||o&1)&&V(e,"gap",l[0].iconBetweenSpacing+"px"),(!i||o&1)&&V(e,"margin-bottom",l[0].yAxisSpacing+"px"),(!i||o&1)&&V(e,"margin-left",l[0].xAxisSpacing+"px")},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function Fu(n){let e,t,i,l,o;return l=new gi({}),{c(){e=v("div"),t=v("div"),i=v("div"),H(l.$$.fragment),r(i,"class","flex flex-row"),V(i,"gap",n[0].iconBetweenSpacing+"px"),V(i,"margin-bottom",n[0].yAxisSpacing+"px"),V(i,"margin-left",n[0].xAxisSpacing+"px"),r(t,"class","static flex flex-row mx-auto"),V(t,"width","max-content"),r(e,"class","absolute bottom-[0.3vw] w-100vw")},m(s,u){P(s,e,u),d(e,t),d(t,i),B(l,i,null),o=!0},p(s,u){(!o||u&1)&&V(i,"gap",s[0].iconBetweenSpacing+"px"),(!o||u&1)&&V(i,"margin-bottom",s[0].yAxisSpacing+"px"),(!o||u&1)&&V(i,"margin-left",s[0].xAxisSpacing+"px")},i(s){o||(C(l.$$.fragment,s),o=!0)},o(s){T(l.$$.fragment,s),o=!1},d(s){s&&F(e),z(l)}}}function Pu(n){let e,t,i=(n[2].show||Fn)&&vl(n);return{c(){i&&i.c(),e=kn()},m(l,o){i&&i.m(l,o),P(l,e,o),t=!0},p(l,[o]){l[2].show||Fn?i?(i.p(l,o),o&4&&C(i,1)):(i=vl(l),i.c(),C(i,1),i.m(e.parentNode,e)):i&&(Se(),T(i,1,1,()=>{i=null}),pe())},i(l){t||(C(i),t=!0)},o(l){T(i),t=!1},d(l){i&&i.d(l),l&&F(e)}}}function Vu(n,e,t){let i,l;me(n,Bt,s=>t(0,i=s)),me(n,oe,s=>t(2,l=s));let o="standard";return n.$$.update=()=>{n.$$.dirty&1&&t(1,o=i.layout)},[i,o,l]}class Hu extends _e{constructor(e){super();we(this,e,Vu,Pu,be,{})}}function Bu(n){let e,t,i=(n[2]&&n[3]?n[3]:n[0])+"",l,o,s,u;return{c(){e=v("button"),t=v("span"),l=ne(i),r(t,"class","text-black py-3 font-bold"),V(e,"backdrop-filter","drop-shadow(4px 4px 4px gray)"),r(e,"class",o="button bg-[var(--ps-hud-primary)] text-sm text-white py-2 px-4 my-2 rounded w-[150px] uppercase select-none disabled:opacity-25 disabled:cursor-not-allowed "+n[1]),e.disabled=n[2]},m(a,f){P(a,e,f),d(e,t),d(t,l),s||(u=$e(e,"click",n[4]),s=!0)},p(a,[f]){f&13&&i!==(i=(a[2]&&a[3]?a[3]:a[0])+"")&&re(l,i),f&2&&o!==(o="button bg-[var(--ps-hud-primary)] text-sm text-white py-2 px-4 my-2 rounded w-[150px] uppercase select-none disabled:opacity-25 disabled:cursor-not-allowed "+a[1])&&r(e,"class",o),f&4&&(e.disabled=a[2])},i:Ee,o:Ee,d(a){a&&F(e),s=!1,u()}}}function zu(n,e,t){let{name:i=""}=e,{buttonClass:l=""}=e,{disable:o=!1}=e,{disableText:s=""}=e;function u(a){ds.call(this,n,a)}return n.$$set=a=>{"name"in a&&t(0,i=a.name),"buttonClass"in a&&t(1,l=a.buttonClass),"disable"in a&&t(2,o=a.disable),"disableText"in a&&t(3,s=a.disableText)},[i,l,o,s,u]}class Xo extends _e{constructor(e){super();we(this,e,zu,Bu,be,{name:0,buttonClass:1,disable:2,disableText:3})}}function Ru(n){let e,t;return{c(){e=v("span"),t=ne(n[1]),r(e,"class","primary-text svelte-18ttrkn")},m(i,l){P(i,e,l),d(e,t)},p(i,l){l&2&&re(t,i[1])},d(i){i&&F(e)}}}function Uu(n){let e,t,i,l,o,s;return{c(){e=v("div"),t=v("span"),i=ne(n[1]),l=I(),o=v("span"),s=ne(n[2]),r(t,"class","primary-text mb-1 svelte-18ttrkn"),r(o,"class","secondary-text svelte-18ttrkn"),r(e,"class","flex flex-col")},m(u,a){P(u,e,a),d(e,t),d(t,i),d(e,l),d(e,o),d(o,s)},p(u,a){a&2&&re(i,u[1]),a&4&&re(s,u[2])},d(u){u&&F(e)}}}function Lu(n){let e,t,i,l,o,s;function u(c,h){return c[2]?Uu:Ru}let a=u(n),f=a(n);return{c(){e=v("label"),t=v("input"),i=I(),f.c(),r(t,"class","cursor-pointer svelte-18ttrkn"),r(t,"type","checkbox"),r(t,"name","checkbox"),r(e,"class",l="flex flex-row gap-4 py-3 cursor-pointer select-none "+(n[2]?"items-center":""))},m(c,h){P(c,e,h),d(e,t),t.checked=n[0],d(e,i),f.m(e,null),o||(s=[$e(t,"change",n[5]),$e(t,"click",n[3])],o=!0)},p(c,[h]){h&1&&(t.checked=c[0]),a===(a=u(c))&&f?f.p(c,h):(f.d(1),f=a(c),f&&(f.c(),f.m(e,null))),h&4&&l!==(l="flex flex-row gap-4 py-3 cursor-pointer select-none "+(c[2]?"items-center":""))&&r(e,"class",l)},i:Ee,o:Ee,d(c){c&&F(e),f.d(),o=!1,Ti(s)}}}function Nu(n,e,t){let{primaryText:i=""}=e,{secondaryText:l=""}=e,{checked:o}=e,{handleUpdateFunction:s=null}=e;function u(f){s&&s(f.target.checked)}function a(){o=this.checked,t(0,o)}return n.$$set=f=>{"primaryText"in f&&t(1,i=f.primaryText),"secondaryText"in f&&t(2,l=f.secondaryText),"checked"in f&&t(0,o=f.checked),"handleUpdateFunction"in f&&t(4,s=f.handleUpdateFunction)},[o,i,l,u,s,a]}class xe extends _e{constructor(e){super();we(this,e,Nu,Lu,be,{primaryText:1,secondaryText:2,checked:0,handleUpdateFunction:4})}}function qu(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w,m,p;return{c(){e=X("svg"),t=X("style"),i=ne(`.st0 { fill: #02EFB3; } .st1 { fill: #FFFFFF; -}`),i=O("g"),l=O("path"),s=O("path"),f=O("path"),u=O("path"),a=O("path"),c=O("path"),d=O("path"),h=O("path"),_=O("path"),k=O("path"),b=O("path"),w=O("path"),g=O("path"),S=O("path"),r(t,"type","text/css"),r(l,"class","st0"),r(l,"d",`M2.93,7.44c-0.05-3.29,2.79-6.17,6.2-6.12c3.31,0.05,6.04,2.79,6.04,6.16c0,3.34-2.79,6.09-6.18,6.08 - C5.54,13.55,2.85,10.57,2.93,7.44z M4.09,7.05c0,0.07,0.01,0.17,0.02,0.27C4.11,7.4,4.13,7.49,4.15,7.58 - C4.24,7.96,4.3,7.98,4.59,7.72c0.41-0.38,0.89-0.59,1.43-0.65c0.34-0.03,0.7-0.01,0.97,0.23C7.15,7.44,7.3,7.63,7.23,7.87 - C7.16,8.11,6.92,8.11,6.71,8.14C6.09,8.22,5.52,8.42,5.02,8.81C4.92,8.9,4.9,8.95,5,9.06c0.37,0.4,0.74,0.78,1.17,1.12 - c0.85,0.68,1.78,1.25,2.7,1.81c0.14,0.08,0.25,0.06,0.37-0.02c0.51-0.32,1.02-0.63,1.52-0.96c0.85-0.56,1.65-1.17,2.31-1.95 - c0.09-0.11,0.09-0.16-0.02-0.25c-0.43-0.34-0.92-0.54-1.45-0.63c-0.17-0.03-0.35-0.05-0.52-0.09c-0.16-0.04-0.27-0.15-0.26-0.34 - c0.02-0.22,0.26-0.52,0.47-0.59c0.41-0.13,0.82-0.14,1.23,0c0.41,0.13,0.75,0.36,1.07,0.64c0.17,0.15,0.23,0.13,0.29-0.09 - c0.12-0.39,0.15-0.79,0.05-1.18c-0.18-0.67-0.5-1.24-1.23-1.46C12.39,4.99,12.07,4.96,11.74,5C10.8,5.11,9.99,5.52,9.26,6.1 - c-0.17,0.14-0.27,0.14-0.44,0C8.09,5.52,7.28,5.1,6.34,5.01c-0.61-0.06-1.21,0-1.66,0.5C4.3,5.93,4.09,6.43,4.09,7.05z`),r(s,"class","st1"),r(s,"d",`M31.52,7.55c0.01,0.39-0.03,0.77-0.19,1.13c-0.42,0.94-1.19,1.34-2.18,1.35c-1.37,0.02-2.3-0.83-2.4-2.2 - c-0.05-0.76,0.06-1.5,0.63-2.06c0.77-0.76,1.7-0.86,2.68-0.53c0.94,0.32,1.38,1.05,1.46,2.01C31.52,7.34,31.52,7.45,31.52,7.55z - M30.31,7.56c0-0.25-0.02-0.5-0.1-0.74c-0.16-0.49-0.55-0.78-1.06-0.79c-0.52-0.01-0.91,0.26-1.08,0.75 - c-0.17,0.49-0.17,0.98-0.03,1.47c0.15,0.54,0.56,0.82,1.11,0.82c0.53-0.01,0.91-0.32,1.07-0.85C30.29,8,30.31,7.78,30.31,7.56z`),r(f,"class","st1"),r(f,"d",`M60.76,7.6c0,0.34-0.04,0.72-0.2,1.08c-0.41,0.94-1.18,1.33-2.16,1.35c-1.41,0.03-2.37-0.88-2.43-2.28 - C55.95,7.24,56,6.76,56.22,6.3c0.43-0.87,1.39-1.35,2.42-1.22C60,5.24,60.76,6.13,60.76,7.6z M59.54,7.57 - c0-0.26-0.02-0.53-0.11-0.78c-0.17-0.48-0.55-0.76-1.05-0.77c-0.52-0.01-0.91,0.26-1.08,0.75c-0.17,0.48-0.16,0.97-0.03,1.45 - c0.15,0.54,0.56,0.83,1.1,0.83c0.54,0,0.93-0.31,1.09-0.85C59.52,8,59.54,7.79,59.54,7.57z`),r(u,"class","st1"),r(u,"d",`M22.55,7.54c0-0.61,0-1.23,0-1.84c0-0.28,0.05-0.37,0.31-0.45c0.78-0.23,1.57-0.26,2.35-0.02 - c0.59,0.18,0.95,0.59,1.04,1.22c0.09,0.66-0.15,1.18-0.71,1.53c-0.13,0.08-0.14,0.12-0.05,0.24c0.29,0.36,0.56,0.74,0.85,1.1 - c0.09,0.12,0.08,0.21,0,0.33c-0.23,0.34-0.75,0.41-1.05,0.13c-0.18-0.16-0.29-0.37-0.42-0.57c-0.16-0.24-0.32-0.48-0.47-0.73 - c-0.08-0.14-0.18-0.19-0.34-0.18c-0.34,0.01-0.34,0-0.34,0.35c0,0.36-0.01,0.71,0,1.07c0,0.12-0.03,0.17-0.15,0.18 - c-0.18,0.01-0.36,0.05-0.54,0.02c-0.36-0.05-0.48-0.17-0.49-0.54C22.55,8.79,22.55,8.16,22.55,7.54z M23.72,6.74 - c0,0.18,0,0.36,0,0.55c0,0.07,0,0.12,0.09,0.12c0.27-0.01,0.54,0.03,0.8-0.06C24.95,7.23,25.1,7,25.07,6.65 - c-0.02-0.3-0.21-0.5-0.53-0.57c-0.21-0.05-0.43-0.04-0.64-0.03c-0.15,0.01-0.2,0.07-0.18,0.21C23.73,6.42,23.72,6.58,23.72,6.74z`),r(a,"class","st1"),r(a,"d",`M65.33,7.38c0-0.67,0-1.35,0-2.02c0-0.12,0.02-0.18,0.16-0.2c0.18-0.02,0.35-0.03,0.52-0.03 - c0.35,0.02,0.49,0.16,0.5,0.5c0.01,0.42,0.01,0.84,0,1.25c0,0.14,0.03,0.19,0.18,0.18c0.45-0.01,0.9-0.01,1.36,0 - c0.14,0,0.18-0.03,0.18-0.18c-0.01-0.52,0-1.04-0.01-1.56c0-0.12,0.03-0.16,0.15-0.18c0.2-0.03,0.4-0.04,0.6-0.02 - c0.27,0.03,0.39,0.16,0.43,0.43c0.01,0.07,0.01,0.15,0.01,0.22c0,1.3,0,2.6,0,3.91c0,0.16-0.04,0.22-0.2,0.22 - c-0.17,0.01-0.34,0.04-0.5,0.02c-0.36-0.05-0.48-0.17-0.49-0.54c-0.01-0.4-0.01-0.8,0-1.19c0-0.15-0.02-0.21-0.19-0.2 - c-0.45,0.01-0.9,0.01-1.36,0c-0.13,0-0.17,0.03-0.17,0.17c0.01,0.52,0,1.04,0.01,1.56c0,0.13-0.04,0.18-0.16,0.19 - c-0.19,0.01-0.37,0.05-0.56,0.02c-0.32-0.05-0.45-0.18-0.45-0.51c-0.01-0.41,0-0.82,0-1.23C65.33,7.92,65.33,7.65,65.33,7.38z`),r(c,"class","st1"),r(c,"d",`M34.95,7.56c0-0.57,0-1.13,0-1.7c0-0.43,0.22-0.65,0.64-0.65c0.8,0,1.6,0,2.41,0c0.12,0,0.17,0.04,0.2,0.15 - c0.04,0.12,0.06,0.24,0.05,0.36c-0.02,0.3-0.15,0.42-0.45,0.43c-0.51,0-1.01,0.01-1.52,0c-0.15,0-0.2,0.03-0.19,0.19 - c0.01,0.19,0.01,0.38,0,0.57c-0.01,0.13,0.04,0.16,0.16,0.15c0.51-0.01,1.01,0,1.52-0.01c0.13,0,0.18,0.05,0.22,0.16 - c0.04,0.12,0.05,0.24,0.05,0.36c-0.02,0.28-0.16,0.42-0.44,0.42c-0.44,0-0.89,0.01-1.34,0c-0.13,0-0.18,0.03-0.17,0.17 - c0.01,0.22,0.01,0.45,0,0.67c-0.01,0.15,0.05,0.18,0.18,0.18c0.58-0.01,1.16,0,1.74-0.01c0.13,0,0.19,0.05,0.23,0.17 - c0.04,0.14,0.07,0.29,0.04,0.44c-0.04,0.21-0.16,0.33-0.37,0.33c-0.8,0.01-1.6,0.01-2.41,0c-0.34-0.01-0.55-0.25-0.55-0.6 - C34.95,8.72,34.96,8.14,34.95,7.56z`),r(d,"class","st1"),r(d,"d",`M19.46,9.15c0,0.21,0,0.42,0,0.63c0,0.08-0.02,0.13-0.1,0.14c-0.21,0.02-0.41,0.06-0.62,0.02 - c-0.32-0.05-0.45-0.18-0.45-0.51c-0.01-0.51,0-1.02,0-1.54c0-0.72,0-1.44,0-2.16c0-0.3,0.06-0.4,0.35-0.48 - c0.72-0.2,1.45-0.24,2.17-0.03c0.78,0.22,1.18,0.8,1.16,1.59c-0.02,0.74-0.49,1.3-1.25,1.5c-0.36,0.09-0.73,0.09-1.1,0.08 - c-0.13,0-0.16,0.03-0.16,0.16C19.46,8.74,19.46,8.95,19.46,9.15z M19.45,6.75c0,0.2,0,0.39,0,0.59c0,0.06-0.01,0.12,0.09,0.12 - c0.25-0.01,0.51,0.03,0.76-0.06c0.31-0.1,0.48-0.36,0.46-0.7c-0.01-0.34-0.19-0.55-0.52-0.63c-0.22-0.05-0.44-0.04-0.66-0.02 - c-0.11,0.01-0.13,0.05-0.13,0.15C19.46,6.39,19.45,6.57,19.45,6.75z`),r(h,"class","st1"),r(h,"d",`M50.13,10.03c-0.33-0.01-0.66-0.03-0.98-0.14c-0.18-0.06-0.35-0.15-0.49-0.28c-0.29-0.28-0.24-0.71,0.11-0.93 - c0.09-0.05,0.13-0.02,0.19,0.03C49.4,9,49.87,9.13,50.4,9.04c0.09-0.02,0.17-0.04,0.24-0.09c0.3-0.19,0.3-0.57,0-0.76 - c-0.2-0.12-0.42-0.17-0.64-0.24c-0.28-0.09-0.56-0.2-0.82-0.33c-0.89-0.46-0.95-1.68-0.11-2.23c0.48-0.31,1.01-0.34,1.56-0.3 - c0.33,0.02,0.66,0.08,0.94,0.26c0.33,0.22,0.38,0.59,0.11,0.89c-0.07,0.08-0.13,0.1-0.24,0.04c-0.41-0.22-0.85-0.28-1.31-0.21 - c-0.12,0.02-0.22,0.06-0.31,0.14c-0.18,0.16-0.16,0.4,0.03,0.53c0.17,0.12,0.37,0.16,0.56,0.22c0.36,0.11,0.7,0.23,1.02,0.43 - c0.49,0.31,0.69,0.76,0.64,1.32c-0.05,0.54-0.37,0.9-0.85,1.12C50.88,9.99,50.5,10.02,50.13,10.03z`),r(_,"class","st1"),r(_,"d",`M41.06,10.03c-0.24-0.01-0.54-0.04-0.83-0.13C39.35,9.61,38.84,9,38.72,8.09C38.59,7.2,38.7,6.36,39.39,5.7 - c0.65-0.64,1.91-0.83,2.72-0.42c0.47,0.24,0.57,0.67,0.24,1c-0.08,0.07-0.13,0.08-0.22,0.02c-0.3-0.19-0.63-0.28-1-0.26 - c-0.57,0.03-0.98,0.34-1.15,0.89c-0.12,0.4-0.12,0.8-0.02,1.2c0.19,0.69,0.8,1.05,1.57,0.94c0.22-0.03,0.43-0.11,0.62-0.22 - c0.12-0.07,0.19-0.04,0.27,0.06c0.24,0.32,0.16,0.72-0.2,0.91C41.88,9.98,41.51,10.03,41.06,10.03z`),r(k,"class","st1"),r(k,"d",`M45.42,8.03c0,0.57-0.01,1.13,0,1.7c0,0.13-0.05,0.18-0.17,0.19c-0.17,0.01-0.35,0.04-0.52,0.02 - c-0.37-0.04-0.5-0.18-0.5-0.55c0-0.64,0-1.28,0-1.92c0-0.38-0.01-0.77,0-1.15c0-0.14-0.04-0.17-0.17-0.16 - c-0.31,0.01-0.62,0-0.93,0.01c-0.12,0-0.17-0.04-0.21-0.14c-0.05-0.16-0.06-0.32-0.04-0.48c0.04-0.22,0.18-0.32,0.44-0.32 - c0.78,0,1.55,0,2.33,0c0.3,0,0.59,0.01,0.89,0c0.11,0,0.16,0.04,0.19,0.13c0.04,0.14,0.07,0.27,0.06,0.42 - c-0.04,0.27-0.17,0.39-0.44,0.4c-0.24,0-0.49,0.01-0.73,0c-0.16-0.01-0.22,0.03-0.21,0.2C45.43,6.91,45.42,7.47,45.42,8.03z`),r(b,"class","st1"),r(b,"d",`M63.42,8.03c0,0.57,0,1.13,0,1.7c0,0.13-0.04,0.18-0.17,0.19c-0.17,0.01-0.35,0.04-0.52,0.02 - c-0.37-0.04-0.49-0.18-0.5-0.55c0-0.48,0-0.96,0-1.44c0-0.54-0.01-1.08,0-1.62c0-0.16-0.04-0.19-0.19-0.19 - c-0.3,0.01-0.61,0-0.91,0.01c-0.12,0-0.17-0.04-0.21-0.14c-0.04-0.12-0.06-0.25-0.05-0.38c0.02-0.3,0.15-0.42,0.45-0.43 - c0.74,0,1.47,0,2.21,0c0.34,0,0.67,0,1.01,0c0.11,0,0.16,0.04,0.19,0.13c0.05,0.14,0.06,0.28,0.05,0.42 - c-0.02,0.26-0.16,0.39-0.42,0.4c-0.27,0.01-0.54,0.01-0.81,0c-0.13-0.01-0.15,0.04-0.15,0.16C63.43,6.88,63.42,7.46,63.42,8.03z`),r(w,"class","st1"),r(w,"d",`M52.71,7.33c0-0.65,0.01-1.31,0-1.96c0-0.15,0.05-0.2,0.19-0.21c0.2-0.02,0.4-0.04,0.6-0.01 - c0.24,0.04,0.34,0.14,0.37,0.38c0.01,0.1,0.02,0.2,0.02,0.3c0,0.98,0,1.96,0,2.93c0,0.15,0.04,0.19,0.19,0.19 - c0.51-0.01,1.02,0,1.54-0.01c0.13,0,0.19,0.05,0.23,0.16c0.05,0.14,0.06,0.29,0.04,0.44c-0.03,0.23-0.16,0.36-0.39,0.36 - c-0.73,0.01-1.47,0.01-2.2,0c-0.37-0.01-0.58-0.24-0.58-0.64C52.71,8.62,52.71,7.98,52.71,7.33z`),r(g,"class","st1"),r(g,"d",`M32.9,6.91c0-0.52,0-1.04,0-1.56c0-0.11,0.02-0.17,0.15-0.18c0.19-0.02,0.38-0.04,0.56-0.03 - c0.33,0.03,0.46,0.17,0.47,0.51c0.01,0.78,0.01,1.56,0,2.35c0,0.32,0.03,0.65-0.04,0.97c-0.11,0.51-0.41,0.84-0.91,0.97 - c-0.37,0.1-0.75,0.1-1.11-0.03c-0.28-0.1-0.4-0.3-0.36-0.6c0.03-0.28,0.1-0.33,0.38-0.29c0.1,0.02,0.2,0.02,0.3,0.02 - c0.37-0.01,0.57-0.18,0.57-0.56C32.9,7.96,32.89,7.43,32.9,6.91C32.89,6.91,32.89,6.91,32.9,6.91z`),r(S,"class","st0"),r(S,"d",`M9.03,8.26c0.21,0,0.42,0,0.62,0.07C9.82,8.39,10,8.46,10.04,8.67c0.04,0.22-0.05,0.41-0.21,0.56 - c-0.14,0.13-0.31,0.18-0.5,0.2C9.24,9.45,9.17,9.48,9.18,9.58c0.01,0.1,0.09,0.1,0.17,0.09c0.39-0.04,0.77-0.15,1.15-0.22 - c0.06-0.01,0.12-0.02,0.18-0.04c0.06-0.01,0.13-0.05,0.16,0.02c0.03,0.07-0.05,0.1-0.1,0.13c-0.36,0.25-0.74,0.44-1.17,0.53 - c-0.85,0.18-1.6-0.07-2.29-0.55c-0.04-0.03-0.1-0.06-0.07-0.13c0.03-0.05,0.08-0.03,0.13-0.02C7.74,9.5,8.13,9.58,8.52,9.65 - c0.03,0.01,0.07,0.02,0.1,0.02c0.09,0,0.23,0.06,0.25-0.08c0.03-0.17-0.12-0.14-0.22-0.16C8.37,9.36,8.14,9.23,8.04,8.93 - C7.96,8.68,8.03,8.5,8.28,8.38C8.51,8.27,8.77,8.26,9.03,8.26z`),r(e,"version","1.1"),r(e,"id","Layer_1"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),r(e,"x","0px"),r(e,"y","0px"),r(e,"viewBox","0 0 72.33 14.89"),R(e,"enable-background","new 0 0 72.33 14.89"),r(e,"xml:space","preserve")},m(D,Y){H(D,e,Y),m(e,t),m(t,o),m(e,i),m(i,l),m(i,s),m(i,f),m(i,u),m(i,a),m(i,c),m(i,d),m(i,h),m(i,_),m(i,k),m(i,b),m(i,w),m(i,g),m(i,S)},p:Te,i:Te,o:Te,d(D){D&&E(e)}}}class ru extends ue{constructor(e){super();fe(this,e,null,lu,ce,{})}}function su(n){let e,t;return{c(){e=A("span"),t=be(n[3]),r(e,"class","primary-text svelte-c4h5cp")},m(o,i){H(o,e,i),m(e,t)},p(o,i){i&8&&un(t,o[3])},d(o){o&&E(e)}}}function au(n){let e;function t(l,s){return l[0]?fu:uu}let o=t(n),i=o(n);return{c(){i.c(),e=dn()},m(l,s){i.m(l,s),H(l,e,s)},p(l,s){o===(o=t(l))&&i?i.p(l,s):(i.d(1),i=o(l),i&&(i.c(),i.m(e.parentNode,e)))},d(l){i.d(l),l&&E(e)}}}function uu(n){let e,t;return{c(){e=A("span"),t=be(n[2]),r(e,"class","primary-text svelte-c4h5cp")},m(o,i){H(o,e,i),m(e,t)},p(o,i){i&4&&un(t,o[2])},d(o){o&&E(e)}}}function fu(n){let e,t;return{c(){e=A("span"),t=be(n[1]),r(e,"class","primary-text svelte-c4h5cp")},m(o,i){H(o,e,i),m(e,t)},p(o,i){i&2&&un(t,o[1])},d(o){o&&E(e)}}}function cu(n){let e,t,o,i,l,s;function f(c,d){return c[1]&&c[2]?au:su}let u=f(n),a=u(n);return{c(){e=A("label"),t=A("input"),i=y(),a.c(),r(t,"class","cursor-pointer svelte-c4h5cp"),r(t,"style",o=n[4]?"margin-left:auto; margin-right:auto;":""),r(t,"type","checkbox"),r(t,"role","switch"),r(e,"class","switch cursor-pointer flex flex-row pt-2 pb-4 -ml-2 gap-1 select-none svelte-c4h5cp")},m(c,d){H(c,e,d),m(e,t),t.checked=n[0],m(e,i),a.m(e,null),l||(s=[Ke(t,"change",n[7]),Ke(t,"click",n[5])],l=!0)},p(c,[d]){d&16&&o!==(o=c[4]?"margin-left:auto; margin-right:auto;":"")&&r(t,"style",o),d&1&&(t.checked=c[0]),u===(u=f(c))&&a?a.p(c,d):(a.d(1),a=u(c),a&&(a.c(),a.m(e,null)))},i:Te,o:Te,d(c){c&&E(e),a.d(),l=!1,Ro(s)}}}function hu(n,e,t){let{checked:o=!0}=e,{checkedText:i=""}=e,{unCheckedText:l=""}=e,{text:s=""}=e,{center:f=!1}=e,{handleUpdateFunction:u=null}=e;function a(d){u&&u(d.target.checked)}function c(){o=this.checked,t(0,o)}return n.$$set=d=>{"checked"in d&&t(0,o=d.checked),"checkedText"in d&&t(1,i=d.checkedText),"unCheckedText"in d&&t(2,l=d.unCheckedText),"text"in d&&t(3,s=d.text),"center"in d&&t(4,f=d.center),"handleUpdateFunction"in d&&t(6,u=d.handleUpdateFunction)},[o,i,l,s,f,a,u,c]}class Jo extends ue{constructor(e){super();fe(this,e,hu,cu,ce,{checked:0,checkedText:1,unCheckedText:2,text:3,center:4,handleUpdateFunction:6})}}function gu(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K,I,ke,Ce,Ie,Xe,ve,Ne,Tn,je,Ee,se,Se,Ve,In,He,Re,yn,Pe,G,Nn,tn,jn,L,Ge,ct,ht,bn,pe,tt,Qe,pt,Gn,Xn,Wn,Jn,On,kn,De,Sn,Rn,Ct,Zn,Pn,Bn,vt,Be,on,Yt,Fn,gt,fn,dt,Un,ln,Dt,ot,cn,mt,Kn,an,Qn,At,it,Mn,_t,xn,Cn,hn,wt,zn,rn,Tt,lt,gn,bt,$n,Ln,rt,st,It,vn,En,Bt,kt,ye,Oe;i=new ru({}),u=new Ht({props:{name:"Reset Hud",buttonClass:"whitespace-nowrap hover:bg-red-600",disable:n[0].isRestarting,disableText:"Resetting Hud..."}}),u.$on("click",n[3]),h=new Ht({props:{name:"Reset Settings",buttonClass:"hover:bg-red-600"}}),h.$on("click",n[4]);function at(N){n[6](N)}let Xt={primaryText:"Show Minimap Only in Vehicle",secondaryText:"Disabling this will always keep your minimap on your screen",handleUpdateFunction:n[5]};n[0].isOutMapChecked!==void 0&&(Xt.checked=n[0].isOutMapChecked),q=new Ze({props:Xt}),te.push(()=>oe(q,"checked",at));function uo(N){n[8](N)}let yt={primaryText:"Show Compass Only in Vehicle",secondaryText:"Disabling this will always keep your compass on your screen",handleUpdateFunction:n[7]};n[0].isOutCompassChecked!==void 0&&(yt.checked=n[0].isOutCompassChecked),V=new Ze({props:yt}),te.push(()=>oe(V,"checked",uo));function To(N){n[10](N)}let Ut={primaryText:"Show Compass Follow Cam",secondaryText:"Disabling this will make it so you can no longer use your mouse to rotate the compass around",handleUpdateFunction:n[9]};n[0].isCompassFollowChecked!==void 0&&(Ut.checked=n[0].isCompassFollowChecked),X=new Ze({props:Ut}),te.push(()=>oe(X,"checked",To));function Io(N){n[12](N)}let zt={primaryText:"Menu Sound Effect Enabled",handleUpdateFunction:n[11]};n[0].isOpenMenuSoundsChecked!==void 0&&(zt.checked=n[0].isOpenMenuSoundsChecked),I=new Ze({props:zt}),te.push(()=>oe(I,"checked",Io));function yo(N){n[14](N)}let Lt={primaryText:"Reset Hud Sound Effects Enabled",handleUpdateFunction:n[13]};n[0].isResetSoundsChecked!==void 0&&(Lt.checked=n[0].isResetSoundsChecked),Ie=new Ze({props:Lt}),te.push(()=>oe(Ie,"checked",yo));function xe(N){n[16](N)}let Ue={primaryText:"GUI Sound Effects Enabled",handleUpdateFunction:n[15]};n[0].isListSoundsChecked!==void 0&&(Ue.checked=n[0].isListSoundsChecked),Ne=new Ze({props:Ue}),te.push(()=>oe(Ne,"checked",xe));function $e(N){n[18](N)}let ze={primaryText:"Map Notifications Enabled",handleUpdateFunction:n[17]};n[0].isMapNotifyChecked!==void 0&&(ze.checked=n[0].isMapNotifyChecked),Ee=new Ze({props:ze}),te.push(()=>oe(Ee,"checked",$e));function Mo(N){n[20](N)}let qt={primaryText:"Low Fuel Alert Enabled",handleUpdateFunction:n[19]};n[0].isLowFuelAlertChecked!==void 0&&(qt.checked=n[0].isLowFuelAlertChecked),Ve=new Ze({props:qt}),te.push(()=>oe(Ve,"checked",Mo));function Yo(N){n[22](N)}let Nt={primaryText:"Cinematic Mode Notifications",handleUpdateFunction:n[21]};n[0].isCinematicNotifyChecked!==void 0&&(Nt.checked=n[0].isCinematicNotifyChecked),Re=new Ze({props:Nt}),te.push(()=>oe(Re,"checked",Yo));function Xo(N){n[24](N)}let jt={primaryText:"Show Health Always",handleUpdateFunction:n[23]};n[1].dynamicIcons.health!==void 0&&(jt.checked=n[1].dynamicIcons.health),Ge=new Ze({props:jt}),te.push(()=>oe(Ge,"checked",Xo));function Oo(N){n[26](N)}let Gt={primaryText:"Show Armor Always",handleUpdateFunction:n[25]};n[1].dynamicIcons.armor!==void 0&&(Gt.checked=n[1].dynamicIcons.armor),bn=new Ze({props:Gt}),te.push(()=>oe(bn,"checked",Oo));function Fo(N){n[28](N)}let Wt={primaryText:"Show Hunger Always",handleUpdateFunction:n[27]};n[1].dynamicIcons.hunger!==void 0&&(Wt.checked=n[1].dynamicIcons.hunger),Qe=new Ze({props:Wt}),te.push(()=>oe(Qe,"checked",Fo));function en(N){n[30](N)}let Le={primaryText:"Show Thirst Always",handleUpdateFunction:n[29]};n[1].dynamicIcons.thirst!==void 0&&(Le.checked=n[1].dynamicIcons.thirst),Xn=new Ze({props:Le}),te.push(()=>oe(Xn,"checked",en));function _e(N){n[32](N)}let Z={primaryText:"Show Stress Always",handleUpdateFunction:n[31]};n[1].dynamicIcons.stress!==void 0&&(Z.checked=n[1].dynamicIcons.stress),On=new Ze({props:Z}),te.push(()=>oe(On,"checked",_e));function me(N){n[34](N)}let Qt={primaryText:"Show Oxygen Always",handleUpdateFunction:n[33]};n[1].dynamicIcons.oxygen!==void 0&&(Qt.checked=n[1].dynamicIcons.oxygen),Sn=new Ze({props:Qt}),te.push(()=>oe(Sn,"checked",me)),on=new Jo({props:{checked:n[0].isToggleMapShapeChecked=="circle",checkedText:"Minimap Circle",unCheckedText:"Minimap Square",handleUpdateFunction:n[35]}});function xt(N){n[37](N)}let $t={primaryText:"Minimap Enabled",handleUpdateFunction:n[36]};n[0].isMapEnabledChecked!==void 0&&($t.checked=n[0].isMapEnabledChecked),fn=new Ze({props:$t}),te.push(()=>oe(fn,"checked",xt));function eo(N){n[39](N)}let no={primaryText:"Minimap Borders Enabled",handleUpdateFunction:n[38]};n[0].isToggleMapBordersChecked!==void 0&&(no.checked=n[0].isToggleMapBordersChecked),ln=new Ze({props:no}),te.push(()=>oe(ln,"checked",eo));function to(N){n[41](N)}let oo={primaryText:"Show Engine Always",handleUpdateFunction:n[40]};n[1].dynamicIcons.engine!==void 0&&(oo.checked=n[1].dynamicIcons.engine),cn=new Ze({props:oo}),te.push(()=>oe(cn,"checked",to));function io(N){n[43](N)}let lo={primaryText:"Show Nitro Always",handleUpdateFunction:n[42]};n[1].dynamicIcons.nitro!==void 0&&(lo.checked=n[1].dynamicIcons.nitro),an=new Ze({props:lo}),te.push(()=>oe(an,"checked",io));function ro(N){n[45](N)}let qe={primaryText:"Compass Enabled",handleUpdateFunction:n[44],secondaryText:"Disabling this will make it so you can't see the compass navigation"};n[0].isShowCompassChecked!==void 0&&(qe.checked=n[0].isShowCompassChecked),hn=new Ze({props:qe}),te.push(()=>oe(hn,"checked",ro));function F(N){n[47](N)}let le={primaryText:"Show Street Names Enabled",handleUpdateFunction:n[46],secondaryText:"Disabling this will make it so you can't see the street names / locations"};n[0].isShowStreetsChecked!==void 0&&(le.checked=n[0].isShowStreetsChecked),rn=new Ze({props:le}),te.push(()=>oe(rn,"checked",F));function Jt(N){n[49](N)}let Ot={primaryText:"Show Compass Pointer Enabled",handleUpdateFunction:n[48],secondaryText:"Disabling this will make it so you can't see your pointer index to pinpoint your exact cardinal directions"};n[0].isPointerShowChecked!==void 0&&(Ot.checked=n[0].isPointerShowChecked),gn=new Ze({props:Ot}),te.push(()=>oe(gn,"checked",Jt));function Zt(N){n[51](N)}let Ft={primaryText:"Show Cinematic Bars Enabled",handleUpdateFunction:n[50]};return n[0].isCineamticModeChecked!==void 0&&(Ft.checked=n[0].isCineamticModeChecked),En=new Ze({props:Ft}),te.push(()=>oe(En,"checked",Zt)),{c(){e=A("div"),t=A("div"),o=A("div"),P(i.$$.fragment),l=y(),s=A("div"),s.innerHTML='

Reset HUD

',f=y(),P(u.$$.fragment),a=y(),c=A("p"),c.textContent="If your hud is acting up, give it a good ol' reset! Or you can do /resethud",d=y(),P(h.$$.fragment),_=y(),k=A("p"),k.textContent="If you want to reset your settings back to default; click this shiny button!",b=y(),w=A("p"),w.textContent="(you will have to relog for your menu to reset changes successfully)",g=y(),S=A("hr"),D=y(),Y=A("div"),Y.innerHTML='

Options

',$=y(),W=A("div"),P(q.$$.fragment),x=y(),P(V.$$.fragment),M=y(),P(X.$$.fragment),z=y(),J=A("hr"),v=y(),ae=A("div"),ae.innerHTML='

Notifications

',ee=y(),K=A("div"),P(I.$$.fragment),Ce=y(),P(Ie.$$.fragment),ve=y(),P(Ne.$$.fragment),je=y(),P(Ee.$$.fragment),Se=y(),P(Ve.$$.fragment),He=y(),P(Re.$$.fragment),Pe=y(),G=A("hr"),Nn=y(),tn=A("div"),tn.innerHTML='

Status

',jn=y(),L=A("div"),P(Ge.$$.fragment),ht=y(),P(bn.$$.fragment),tt=y(),P(Qe.$$.fragment),Gn=y(),P(Xn.$$.fragment),Jn=y(),P(On.$$.fragment),De=y(),P(Sn.$$.fragment),Ct=y(),Zn=A("hr"),Pn=y(),Bn=A("div"),Bn.innerHTML='

Vehicle

',vt=y(),Be=A("div"),P(on.$$.fragment),Yt=y(),Fn=A("p"),Fn.textContent="Whether it's square or circle you desire, you have the ability to choose!",gt=y(),P(fn.$$.fragment),Un=y(),P(ln.$$.fragment),ot=y(),P(cn.$$.fragment),Kn=y(),P(an.$$.fragment),At=y(),it=A("hr"),Mn=y(),_t=A("div"),_t.innerHTML='

Compass

',xn=y(),Cn=A("div"),P(hn.$$.fragment),zn=y(),P(rn.$$.fragment),lt=y(),P(gn.$$.fragment),$n=y(),Ln=A("hr"),rt=y(),st=A("div"),st.innerHTML='

Cinematic Mode

',It=y(),vn=A("div"),P(En.$$.fragment),kt=y(),ye=A("p"),ye.textContent=`${String.fromCharCode(...xl)}`,r(o,"class","float-right w-[25%]"),r(s,"class","-mx-4 mb-4 text-2xl text-white"),r(c,"class","text-base svelte-1c7k2s5"),r(k,"class","text-base svelte-1c7k2s5"),r(w,"class","text-base svelte-1c7k2s5"),r(t,"class","mx-4 mb-5 mt-3"),r(Y,"class","my-3 text-xl text-white"),r(W,"class","mx-4 mb-4 flex flex-col"),r(ae,"class","my-3 text-xl text-white"),r(K,"class","mx-4 mb-4 flex flex-col"),r(tn,"class","my-3 text-xl text-white"),r(L,"class","mx-4 mb-4 flex flex-col"),r(Bn,"class","my-3 text-xl text-white"),r(Fn,"class","font-semibold text-base pb-2 svelte-1c7k2s5"),r(Be,"class","mx-4 mb-4 flex flex-col"),r(_t,"class","my-3 text-xl text-white"),r(Cn,"class","mx-4 mb-4 flex flex-col"),r(st,"class","my-3 text-xl text-white"),r(ye,"class","self-center ml-auto opacity-05 select-none svelte-1c7k2s5"),r(vn,"class","mx-4 mb-4 flex flex-row gap-5"),r(e,"class","text-sm flex flex-col text-[#e8e8e8]")},m(N,Ae){H(N,e,Ae),m(e,t),m(t,o),B(i,o,null),m(t,l),m(t,s),m(t,f),B(u,t,null),m(t,a),m(t,c),m(t,d),B(h,t,null),m(t,_),m(t,k),m(t,b),m(t,w),m(e,g),m(e,S),m(e,D),m(e,Y),m(e,$),m(e,W),B(q,W,null),m(W,x),B(V,W,null),m(W,M),B(X,W,null),m(e,z),m(e,J),m(e,v),m(e,ae),m(e,ee),m(e,K),B(I,K,null),m(K,Ce),B(Ie,K,null),m(K,ve),B(Ne,K,null),m(K,je),B(Ee,K,null),m(K,Se),B(Ve,K,null),m(K,He),B(Re,K,null),m(e,Pe),m(e,G),m(e,Nn),m(e,tn),m(e,jn),m(e,L),B(Ge,L,null),m(L,ht),B(bn,L,null),m(L,tt),B(Qe,L,null),m(L,Gn),B(Xn,L,null),m(L,Jn),B(On,L,null),m(L,De),B(Sn,L,null),m(e,Ct),m(e,Zn),m(e,Pn),m(e,Bn),m(e,vt),m(e,Be),B(on,Be,null),m(Be,Yt),m(Be,Fn),m(Be,gt),B(fn,Be,null),m(Be,Un),B(ln,Be,null),m(Be,ot),B(cn,Be,null),m(Be,Kn),B(an,Be,null),m(e,At),m(e,it),m(e,Mn),m(e,_t),m(e,xn),m(e,Cn),B(hn,Cn,null),m(Cn,zn),B(rn,Cn,null),m(Cn,lt),B(gn,Cn,null),m(e,$n),m(e,Ln),m(e,rt),m(e,st),m(e,It),m(e,vn),B(En,vn,null),m(vn,kt),m(vn,ye),Oe=!0},p(N,Ae){const fo={};Ae[0]&1&&(fo.disable=N[0].isRestarting),u.$set(fo);const co={};!j&&Ae[0]&1&&(j=!0,co.checked=N[0].isOutMapChecked,ie(()=>j=!1)),q.$set(co);const ho={};!Q&&Ae[0]&1&&(Q=!0,ho.checked=N[0].isOutCompassChecked,ie(()=>Q=!1)),V.$set(ho);const go={};!p&&Ae[0]&1&&(p=!0,go.checked=N[0].isCompassFollowChecked,ie(()=>p=!1)),X.$set(go);const mo={};!ke&&Ae[0]&1&&(ke=!0,mo.checked=N[0].isOpenMenuSoundsChecked,ie(()=>ke=!1)),I.$set(mo);const _o={};!Xe&&Ae[0]&1&&(Xe=!0,_o.checked=N[0].isResetSoundsChecked,ie(()=>Xe=!1)),Ie.$set(_o);const wo={};!Tn&&Ae[0]&1&&(Tn=!0,wo.checked=N[0].isListSoundsChecked,ie(()=>Tn=!1)),Ne.$set(wo);const bo={};!se&&Ae[0]&1&&(se=!0,bo.checked=N[0].isMapNotifyChecked,ie(()=>se=!1)),Ee.$set(bo);const ko={};!In&&Ae[0]&1&&(In=!0,ko.checked=N[0].isLowFuelAlertChecked,ie(()=>In=!1)),Ve.$set(ko);const So={};!yn&&Ae[0]&1&&(yn=!0,So.checked=N[0].isCinematicNotifyChecked,ie(()=>yn=!1)),Re.$set(So);const po={};!ct&&Ae[0]&2&&(ct=!0,po.checked=N[1].dynamicIcons.health,ie(()=>ct=!1)),Ge.$set(po);const Co={};!pe&&Ae[0]&2&&(pe=!0,Co.checked=N[1].dynamicIcons.armor,ie(()=>pe=!1)),bn.$set(Co);const vo={};!pt&&Ae[0]&2&&(pt=!0,vo.checked=N[1].dynamicIcons.hunger,ie(()=>pt=!1)),Qe.$set(vo);const ri={};!Wn&&Ae[0]&2&&(Wn=!0,ri.checked=N[1].dynamicIcons.thirst,ie(()=>Wn=!1)),Xn.$set(ri);const si={};!kn&&Ae[0]&2&&(kn=!0,si.checked=N[1].dynamicIcons.stress,ie(()=>kn=!1)),On.$set(si);const ai={};!Rn&&Ae[0]&2&&(Rn=!0,ai.checked=N[1].dynamicIcons.oxygen,ie(()=>Rn=!1)),Sn.$set(ai);const ui={};Ae[0]&1&&(ui.checked=N[0].isToggleMapShapeChecked=="circle"),on.$set(ui);const fi={};!dt&&Ae[0]&1&&(dt=!0,fi.checked=N[0].isMapEnabledChecked,ie(()=>dt=!1)),fn.$set(fi);const ci={};!Dt&&Ae[0]&1&&(Dt=!0,ci.checked=N[0].isToggleMapBordersChecked,ie(()=>Dt=!1)),ln.$set(ci);const hi={};!mt&&Ae[0]&2&&(mt=!0,hi.checked=N[1].dynamicIcons.engine,ie(()=>mt=!1)),cn.$set(hi);const gi={};!Qn&&Ae[0]&2&&(Qn=!0,gi.checked=N[1].dynamicIcons.nitro,ie(()=>Qn=!1)),an.$set(gi);const di={};!wt&&Ae[0]&1&&(wt=!0,di.checked=N[0].isShowCompassChecked,ie(()=>wt=!1)),hn.$set(di);const mi={};!Tt&&Ae[0]&1&&(Tt=!0,mi.checked=N[0].isShowStreetsChecked,ie(()=>Tt=!1)),rn.$set(mi);const _i={};!bt&&Ae[0]&1&&(bt=!0,_i.checked=N[0].isPointerShowChecked,ie(()=>bt=!1)),gn.$set(_i);const wi={};!Bt&&Ae[0]&1&&(Bt=!0,wi.checked=N[0].isCineamticModeChecked,ie(()=>Bt=!1)),En.$set(wi)},i(N){Oe||(C(i.$$.fragment,N),C(u.$$.fragment,N),C(h.$$.fragment,N),C(q.$$.fragment,N),C(V.$$.fragment,N),C(X.$$.fragment,N),C(I.$$.fragment,N),C(Ie.$$.fragment,N),C(Ne.$$.fragment,N),C(Ee.$$.fragment,N),C(Ve.$$.fragment,N),C(Re.$$.fragment,N),C(Ge.$$.fragment,N),C(bn.$$.fragment,N),C(Qe.$$.fragment,N),C(Xn.$$.fragment,N),C(On.$$.fragment,N),C(Sn.$$.fragment,N),C(on.$$.fragment,N),C(fn.$$.fragment,N),C(ln.$$.fragment,N),C(cn.$$.fragment,N),C(an.$$.fragment,N),C(hn.$$.fragment,N),C(rn.$$.fragment,N),C(gn.$$.fragment,N),C(En.$$.fragment,N),Oe=!0)},o(N){T(i.$$.fragment,N),T(u.$$.fragment,N),T(h.$$.fragment,N),T(q.$$.fragment,N),T(V.$$.fragment,N),T(X.$$.fragment,N),T(I.$$.fragment,N),T(Ie.$$.fragment,N),T(Ne.$$.fragment,N),T(Ee.$$.fragment,N),T(Ve.$$.fragment,N),T(Re.$$.fragment,N),T(Ge.$$.fragment,N),T(bn.$$.fragment,N),T(Qe.$$.fragment,N),T(Xn.$$.fragment,N),T(On.$$.fragment,N),T(Sn.$$.fragment,N),T(on.$$.fragment,N),T(fn.$$.fragment,N),T(ln.$$.fragment,N),T(cn.$$.fragment,N),T(an.$$.fragment,N),T(hn.$$.fragment,N),T(rn.$$.fragment,N),T(gn.$$.fragment,N),T(En.$$.fragment,N),Oe=!1},d(N){N&&E(e),U(i),U(u),U(h),U(q),U(V),U(X),U(I),U(Ie),U(Ne),U(Ee),U(Ve),U(Re),U(Ge),U(bn),U(Qe),U(Xn),U(On),U(Sn),U(on),U(fn),U(ln),U(cn),U(an),U(hn),U(rn),U(gn),U(En)}}}function du(n,e,t){let o,i;de(n,Ye,G=>t(0,o=G)),de(n,ne,G=>t(1,i=G));function l(G){let Nn=G?"circle":"square";St(Ye,o.isToggleMapShapeChecked=Nn,o),Me("ToggleMapShape",{shape:Nn})}const s=()=>{Me("restartHud"),St(Ye,o.isRestarting=!0,o)},f=()=>{Ye.resetHudMenuSetting(),Ye.sendMenuSettingsToClient()},u=G=>Me("showOutMap",{checked:G});function a(G){n.$$.not_equal(o.isOutMapChecked,G)&&(o.isOutMapChecked=G,Ye.set(o))}const c=G=>Me("showOutCompass",{checked:G});function d(G){n.$$.not_equal(o.isOutCompassChecked,G)&&(o.isOutCompassChecked=G,Ye.set(o))}const h=G=>Me("showFollowCompass",{checked:G});function _(G){n.$$.not_equal(o.isCompassFollowChecked,G)&&(o.isCompassFollowChecked=G,Ye.set(o))}const k=G=>Me("openMenuSounds",{checked:G});function b(G){n.$$.not_equal(o.isOpenMenuSoundsChecked,G)&&(o.isOpenMenuSoundsChecked=G,Ye.set(o))}const w=G=>Me("resetHudSounds",{checked:G});function g(G){n.$$.not_equal(o.isResetSoundsChecked,G)&&(o.isResetSoundsChecked=G,Ye.set(o))}const S=G=>Me("checklistSounds",{checked:G});function D(G){n.$$.not_equal(o.isListSoundsChecked,G)&&(o.isListSoundsChecked=G,Ye.set(o))}const Y=G=>Me("showMapNotif",{checked:G});function $(G){n.$$.not_equal(o.isMapNotifyChecked,G)&&(o.isMapNotifyChecked=G,Ye.set(o))}const W=G=>Me("showFuelAlert",{checked:G});function q(G){n.$$.not_equal(o.isLowFuelAlertChecked,G)&&(o.isLowFuelAlertChecked=G,Ye.set(o))}const j=G=>Me("showCinematicNotif",{checked:G});function x(G){n.$$.not_equal(o.isCinematicNotifyChecked,G)&&(o.isCinematicNotifyChecked=G,Ye.set(o))}const V=G=>{ne.updateShowingDynamicIcon("health",G),Me("dynamicChange")};function Q(G){n.$$.not_equal(i.dynamicIcons.health,G)&&(i.dynamicIcons.health=G,ne.set(i))}const M=G=>{ne.updateShowingDynamicIcon("armor",G),Me("dynamicChange")};function X(G){n.$$.not_equal(i.dynamicIcons.armor,G)&&(i.dynamicIcons.armor=G,ne.set(i))}const p=G=>{ne.updateShowingDynamicIcon("hunger",G),Me("dynamicChange")};function z(G){n.$$.not_equal(i.dynamicIcons.hunger,G)&&(i.dynamicIcons.hunger=G,ne.set(i))}const J=G=>{ne.updateShowingDynamicIcon("thirst",G),Me("dynamicChange")};function v(G){n.$$.not_equal(i.dynamicIcons.thirst,G)&&(i.dynamicIcons.thirst=G,ne.set(i))}const ae=G=>{ne.updateShowingDynamicIcon("stress",G),Me("dynamicChange")};function ee(G){n.$$.not_equal(i.dynamicIcons.stress,G)&&(i.dynamicIcons.stress=G,ne.set(i))}const K=G=>{ne.updateShowingDynamicIcon("oxygen",G),Me("dynamicChange")};function I(G){n.$$.not_equal(i.dynamicIcons.oxygen,G)&&(i.dynamicIcons.oxygen=G,ne.set(i))}const ke=G=>l(G),Ce=G=>Me("HideMap",{checked:G});function Ie(G){n.$$.not_equal(o.isMapEnabledChecked,G)&&(o.isMapEnabledChecked=G,Ye.set(o))}const Xe=G=>Me("ToggleMapBorders",{checked:G});function ve(G){n.$$.not_equal(o.isToggleMapBordersChecked,G)&&(o.isToggleMapBordersChecked=G,Ye.set(o))}const Ne=G=>{ne.updateShowingDynamicIcon("engine",G),Me("dynamicChange")};function Tn(G){n.$$.not_equal(i.dynamicIcons.engine,G)&&(i.dynamicIcons.engine=G,ne.set(i))}const je=G=>{ne.updateShowingDynamicIcon("nitro",G),Me("dynamicChange")};function Ee(G){n.$$.not_equal(i.dynamicIcons.nitro,G)&&(i.dynamicIcons.nitro=G,ne.set(i))}const se=G=>Me("showCompassBase",{checked:G});function Se(G){n.$$.not_equal(o.isShowCompassChecked,G)&&(o.isShowCompassChecked=G,Ye.set(o))}const Ve=G=>Me("showStreetsNames",{checked:G});function In(G){n.$$.not_equal(o.isShowStreetsChecked,G)&&(o.isShowStreetsChecked=G,Ye.set(o))}const He=G=>Me("showPointerIndex",{checked:G});function Re(G){n.$$.not_equal(o.isPointerShowChecked,G)&&(o.isPointerShowChecked=G,Ye.set(o))}const yn=G=>Me("cinematicMode",{checked:G});function Pe(G){n.$$.not_equal(o.isCineamticModeChecked,G)&&(o.isCineamticModeChecked=G,Ye.set(o))}return[o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K,I,ke,Ce,Ie,Xe,ve,Ne,Tn,je,Ee,se,Se,Ve,In,He,Re,yn,Pe]}class mu extends ue{constructor(e){super();fe(this,e,du,gu,ce,{},null,[-1,-1])}}function zi(n){let e,t,o;const i=n[6].default,l=Vr(i,n,n[5],null);return{c(){e=A("div"),l&&l.c(),r(e,"class","content svelte-1ltnd50")},m(s,f){H(s,e,f),l&&l.m(e,null),o=!0},p(s,f){l&&l.p&&(!o||f&32)&&Or(l,i,s,s[5],o?Er(i,s[5],f,null):Fr(s[5]),null)},i(s){o||(C(l,s),Mt(()=>{t||(t=Yn(e,pi,{},!0)),t.run(1)}),o=!0)},o(s){T(l,s),t||(t=Yn(e,pi,{},!1)),t.run(0),o=!1},d(s){s&&E(e),l&&l.d(s),s&&t&&t.end()}}}function _u(n){let e,t,o,i,l,s,f,u,a,c,d,h,_;i=new Fe({props:{icon:n[2],scale:1,color:n[3]}});let k=n[4]&&zi(n);return{c(){e=A("div"),t=A("button"),o=A("div"),P(i.$$.fragment),l=y(),s=A("p"),f=be(n[1]),u=y(),a=A("i"),a.innerHTML='',c=y(),k&&k.c(),r(o,"class","min-w-8 grid justify-items-center"),r(s,"class","ml-3"),r(a,"class","icon ml-auto svelte-1ltnd50"),Ci(a,"active",n[4]),r(t,"class","header text-2xl flex-row items-center text-white font-semibold svelte-1ltnd50")},m(b,w){H(b,e,w),m(e,t),m(t,o),B(i,o,null),m(t,l),m(t,s),m(s,f),m(t,u),m(t,a),m(e,c),k&&k.m(e,null),d=!0,h||(_=Ke(t,"click",n[7]),h=!0)},p(b,[w]){const g={};w&4&&(g.icon=b[2]),w&8&&(g.color=b[3]),i.$set(g),(!d||w&2)&&un(f,b[1]),w&16&&Ci(a,"active",b[4]),b[4]?k?(k.p(b,w),w&16&&C(k,1)):(k=zi(b),k.c(),C(k,1),k.m(e,null)):k&&(he(),T(k,1,1,()=>{k=null}),ge())},i(b){d||(C(i.$$.fragment,b),C(k),d=!0)},o(b){T(i.$$.fragment,b),T(k),d=!1},d(b){b&&E(e),U(i),k&&k.d(),h=!1,_()}}}function wu(n,e,t){let o,{$$slots:i={},$$scope:l}=e,{name:s=""}=e,{group:f=null}=e,{icon:u=null}=e,{color:a="white"}=e;const c=()=>{t(0,f=f===s?"":s)};return n.$$set=d=>{"name"in d&&t(1,s=d.name),"group"in d&&t(0,f=d.group),"icon"in d&&t(2,u=d.icon),"color"in d&&t(3,a=d.color),"$$scope"in d&&t(5,l=d.$$scope)},n.$$.update=()=>{n.$$.dirty&3&&t(4,o=f===s)},[f,s,u,a,o,l,i,c]}class Po extends ue{constructor(e){super();fe(this,e,wu,_u,ce,{name:1,group:0,icon:2,color:3})}}function bu(n){let e,t,o;return{c(){e=A("input"),r(e,"type","text"),r(e,"class","bg-[var(--ps-hud-primary)] block w-full p-1.5 my-2 text-black text-base font-bold rounded-md placeholder-[black] outline-none"),r(e,"placeholder","Profile"),r(e,"pattern","[A-Za-z1-9]"),r(e,"max",n[1])},m(i,l){H(i,e,l),No(e,n[0]),t||(o=Ke(e,"input",n[2]),t=!0)},p(i,[l]){l&2&&r(e,"max",i[1]),l&1&&e.value!==i[0]&&No(e,i[0])},i:Te,o:Te,d(i){i&&E(e),t=!1,o()}}}function ku(n,e,t){let{maxLengh:o=10}=e,{value:i=""}=e;function l(){i=this.value,t(0,i)}return n.$$set=s=>{"maxLengh"in s&&t(1,o=s.maxLengh),"value"in s&&t(0,i=s.value)},[i,o,l]}class Su extends ue{constructor(e){super();fe(this,e,ku,bu,ce,{maxLengh:1,value:0})}}function Li(n,e,t){const o=n.slice();return o[10]=e[t],o[11]=e,o[12]=t,o}function pu(n){let e,t;function o(){return n[4](n[10],n[11],n[12])}return e=new Rr({props:{$$slots:{default:[vu]},$$scope:{ctx:n}}}),e.$on("outclick",o),{c(){P(e.$$.fragment)},m(i,l){B(e,i,l),t=!0},p(i,l){n=i;const s={};l&8194&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){T(e.$$.fragment,i),t=!1},d(i){U(e,i)}}}function Cu(n){let e,t=n[10].name+"",o,i,l;function s(){return n[2](n[10],n[11],n[12])}return{c(){e=A("p"),o=be(t),r(e,"class","text-xl font-semibold text-center cursor-pointer")},m(f,u){H(f,e,u),m(e,o),i||(l=Ke(e,"click",s),i=!0)},p(f,u){n=f,u&2&&t!==(t=n[10].name+"")&&un(o,t)},i:Te,o:Te,d(f){f&&E(e),i=!1,l()}}}function vu(n){let e,t,o;function i(s){n[3](s,n[10])}let l={};return n[10].name!==void 0&&(l.value=n[10].name),e=new Su({props:l}),te.push(()=>oe(e,"value",i)),{c(){P(e.$$.fragment)},m(s,f){B(e,s,f),o=!0},p(s,f){n=s;const u={};!t&&f&2&&(t=!0,u.value=n[10].name,ie(()=>t=!1)),e.$set(u)},i(s){o||(C(e.$$.fragment,s),o=!0)},o(s){T(e.$$.fragment,s),o=!1},d(s){U(e,s)}}}function qi(n){let e,t,o,i,l,s,f,u,a,c;const d=[Cu,pu],h=[];function _(g,S){return g[10].editingName?1:0}t=_(n),o=h[t]=d[t](n);function k(){return n[5](n[12])}l=new Ht({props:{name:"Save HUD to Profile"}}),l.$on("click",k);function b(){return n[6](n[12])}f=new Ht({props:{name:"Apply Profile to HUD"}}),f.$on("click",b);function w(){return n[7](n[12])}return a=new Ht({props:{name:"Delete Profile",buttonClass:"hover:bg-red-600"}}),a.$on("click",w),{c(){e=A("div"),o.c(),i=y(),P(l.$$.fragment),s=y(),P(f.$$.fragment),u=y(),P(a.$$.fragment),r(e,"class","flex flex-col justify-end items-center border-2 rounded-lg p-3 border-[#029772] my-3")},m(g,S){H(g,e,S),h[t].m(e,null),m(e,i),B(l,e,null),m(e,s),B(f,e,null),m(e,u),B(a,e,null),c=!0},p(g,S){n=g;let D=t;t=_(n),t===D?h[t].p(n,S):(he(),T(h[D],1,1,()=>{h[D]=null}),ge(),o=h[t],o?o.p(n,S):(o=h[t]=d[t](n),o.c()),C(o,1),o.m(e,i))},i(g){c||(C(o),C(l.$$.fragment,g),C(f.$$.fragment,g),C(a.$$.fragment,g),c=!0)},o(g){T(o),T(l.$$.fragment,g),T(f.$$.fragment,g),T(a.$$.fragment,g),c=!1},d(g){g&&E(e),h[t].d(),U(l),U(f),U(a)}}}function Ni(n){let e,t,o;return t=new Ht({props:{name:"Add New Profile",buttonClass:"w-[100px]"}}),t.$on("click",n[8]),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","flex flex-col")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p:Te,i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Du(n){let e,t,o,i=n[1],l=[];for(let u=0;uT(l[u],1,1,()=>{l[u]=null});let f=n[1].length<6&&Ni(n);return{c(){e=A("div");for(let u=0;u{f=null}),ge())},i(u){if(!o){for(let a=0;aoe(e,"group",s)),{c(){P(e.$$.fragment),o=y(),i=A("hr")},m(u,a){B(e,u,a),H(u,o,a),H(u,i,a),l=!0},p(u,[a]){const c={};a&8194&&(c.$$scope={dirty:a,ctx:u}),!t&&a&1&&(t=!0,c.group=u[0],ie(()=>t=!1)),e.$set(c)},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){T(e.$$.fragment,u),l=!1},d(u){U(e,u),u&&E(o),u&&E(i)}}}function Tu(n,e,t){let o;de(n,Vt,_=>t(1,o=_));let{group:i=""}=e;const l=(_,k,b)=>St(Vt,k[b].editingName=!0,o);function s(_,k){n.$$.not_equal(k.name,_)&&(k.name=_,Vt.set(o))}const f=(_,k,b)=>St(Vt,k[b].editingName=!1,o),u=_=>Vt.saveHUDToProfile(_),a=_=>Vt.applyProfileToHud(_),c=_=>Vt.deleteProfile(_),d=()=>Vt.addNewProfile();function h(_){i=_,t(0,i)}return n.$$set=_=>{"group"in _&&t(0,i=_.group)},[i,o,l,s,f,u,a,c,d,h]}class Iu extends ue{constructor(e){super();fe(this,e,Tu,Au,ce,{group:0})}}function yu(n){let e,t,o;return t=new Ht({props:{name:"copy progress colors to icon colors",buttonClass:"h-15 w-55"}}),t.$on("click",n[1]),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","flex flex-row mx-4")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p:Te,i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Mu(n){let e,t,o,i,l;function s(u){n[2](u)}let f={name:"Utility Functions",icon:Pr,color:"white",$$slots:{default:[yu]},$$scope:{ctx:n}};return n[0]!==void 0&&(f.group=n[0]),e=new Po({props:f}),te.push(()=>oe(e,"group",s)),{c(){P(e.$$.fragment),o=y(),i=A("hr")},m(u,a){B(e,u,a),H(u,o,a),H(u,i,a),l=!0},p(u,[a]){const c={};a&8&&(c.$$scope={dirty:a,ctx:u}),!t&&a&1&&(t=!0,c.group=u[0],ie(()=>t=!1)),e.$set(c)},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){T(e.$$.fragment,u),l=!1},d(u){U(e,u),u&&E(o),u&&E(i)}}}function Yu(n,e,t){let{group:o=""}=e;const i=()=>{re.updateIconColorToProgressColor()};function l(s){o=s,t(0,o)}return n.$$set=s=>{"group"in s&&t(0,o=s.group)},[o,i,l]}class Xu extends ue{constructor(e){super();fe(this,e,Yu,Mu,ce,{group:0})}}function Ou(n){let e,t,o;return t=new Br({props:{items:n[0],value:n[1],isClearable:!1,containerClasses:"selectHud"}}),t.$on("select",n[2]),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","themed text-white text-base svelte-1h7z46")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,[l]){const s={};l&1&&(s.items=i[0]),l&2&&(s.value=i[1]),t.$set(s)},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function Fu(n){var e,t=n.split("-");for(e=0;enull}=e,{value:l=null}=e,{selectedIndex:s=0}=e,f,u;function a(c){c.detail.value!==l&&(t(3,l=c.detail.value),i(c.detail.value))}return n.$$set=c=>{"valuesArray"in c&&t(5,o=c.valuesArray),"handleSelectFunction"in c&&t(6,i=c.handleSelectFunction),"value"in c&&t(3,l=c.value),"selectedIndex"in c&&t(4,s=c.selectedIndex)},n.$$.update=()=>{if(n.$$.dirty&33&&(t(0,f=o.map(Fu)),t(1,u=f[0])),n.$$.dirty&9&&l){let c=f.findIndex(d=>d.value==l);c>=0&&(t(4,s=c),t(1,u=f[c]))}},[f,u,a,l,s,o,i]}class Ho extends ue{constructor(e){super();fe(this,e,Eu,Ou,ce,{valuesArray:5,handleSelectFunction:6,value:3,selectedIndex:4})}}function Vu(n){let e,t,o,i,l,s,f,u;return{c(){e=A("div"),t=A("button"),t.innerHTML='-',o=y(),i=A("input"),l=y(),s=A("button"),s.innerHTML='+',r(t,"class","font-semibold border-r bg-[#292929] hover:bg-red-600 text-white border-gray-600 border-1 h-full w-20 flex rounded-l-md focus:outline-none cursor-pointer"),r(i,"type","text"),r(i,"class","w-15 p-2 p-1 text-xs appearance-none text-base border-gray-600 border-1 focus:outline-none focus:border-1 focus:border-gray-400 text-center bg-[#292929] text-white"),r(s,"class","font-semibold border-l bg-[#292929] hover:bg-green-600 text-white border-gray-600 border-1 h-full w-20 flex rounded-r-md focus:outline-none cursor-pointer"),r(e,"class","flex flex-row mx-auto border h-10 w-30 rounded-lg border-gray-600 relative text-black")},m(a,c){H(a,e,c),m(e,t),m(e,o),m(e,i),No(i,n[0]),m(e,l),m(e,s),f||(u=[Ke(t,"click",n[7]),Ke(i,"input",n[8]),Ke(i,"input",n[9]),Ke(s,"click",n[10])],f=!0)},p(a,[c]){c&1&&i.value!==a[0]&&No(i,a[0])},i:Te,o:Te,d(a){a&&E(e),f=!1,Ro(u)}}}function Hu(n,e,t){let{min:o=0}=e,{max:i=10}=e,{handleUpdateFunction:l=b=>{}}=e,{value:s=1}=e,{step:f=1}=e;function u(b){return b>i&&(b=i),ba("decrease");function h(){s=this.value,t(0,s)}const _=b=>c(b),k=()=>a("increase");return n.$$set=b=>{"min"in b&&t(3,o=b.min),"max"in b&&t(4,i=b.max),"handleUpdateFunction"in b&&t(5,l=b.handleUpdateFunction),"value"in b&&t(0,s=b.value),"step"in b&&t(6,f=b.step)},[s,a,c,o,i,l,f,d,h,_,k]}class we extends ue{constructor(e){super();fe(this,e,Hu,Vu,ce,{min:3,max:4,handleUpdateFunction:5,value:0,step:6})}}function Ru(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V;s=new Ho({props:{valuesArray:$r,value:n[1].layout,handleSelectFunction:ft.updateLayout}});function Q(v){n[2](v)}let M={min:-100,max:200};n[1].iconBetweenSpacing!==void 0&&(M.value=n[1].iconBetweenSpacing),h=new we({props:M}),te.push(()=>oe(h,"value",Q));function X(v){n[3](v)}let p={min:-100,max:500};n[1].yAxisSpacing!==void 0&&(p.value=n[1].yAxisSpacing),S=new we({props:p}),te.push(()=>oe(S,"value",X));function z(v){n[4](v)}let J={min:-100,max:500};return n[1].xAxisSpacing!==void 0&&(J.value=n[1].xAxisSpacing),j=new we({props:J}),te.push(()=>oe(j,"value",z)),{c(){e=A("div"),t=A("div"),o=A("div"),i=A("p"),i.textContent="Icon Layout",l=y(),P(s.$$.fragment),f=y(),u=A("div"),a=A("div"),c=A("p"),c.textContent="Between Icon Spacing",d=y(),P(h.$$.fragment),k=y(),b=A("div"),w=A("p"),w.textContent="Y-Axis Spacing",g=y(),P(S.$$.fragment),Y=y(),$=A("div"),W=A("p"),W.textContent="X-Axis Spacing",q=y(),P(j.$$.fragment),r(i,"class","text-lg text-center mb-2"),r(o,"class","w-55"),r(t,"class","flex justify-center mb-4"),r(c,"class","text-base text-center mb-2"),r(w,"class","text-base text-center mb-2"),r(W,"class","text-base text-center mb-2"),r(u,"class","mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end mb-8"),r(e,"class","text-sm flex flex-col text-[#e8e8e8]")},m(v,ae){H(v,e,ae),m(e,t),m(t,o),m(o,i),m(o,l),B(s,o,null),m(e,f),m(e,u),m(u,a),m(a,c),m(a,d),B(h,a,null),m(u,k),m(u,b),m(b,w),m(b,g),B(S,b,null),m(u,Y),m(u,$),m($,W),m($,q),B(j,$,null),V=!0},p(v,ae){const ee={};ae&2&&(ee.value=v[1].layout),s.$set(ee);const K={};!_&&ae&2&&(_=!0,K.value=v[1].iconBetweenSpacing,ie(()=>_=!1)),h.$set(K);const I={};!D&&ae&2&&(D=!0,I.value=v[1].yAxisSpacing,ie(()=>D=!1)),S.$set(I);const ke={};!x&&ae&2&&(x=!0,ke.value=v[1].xAxisSpacing,ie(()=>x=!1)),j.$set(ke)},i(v){V||(C(s.$$.fragment,v),C(h.$$.fragment,v),C(S.$$.fragment,v),C(j.$$.fragment,v),V=!0)},o(v){T(s.$$.fragment,v),T(h.$$.fragment,v),T(S.$$.fragment,v),T(j.$$.fragment,v),V=!1},d(v){v&&E(e),U(s),U(h),U(S),U(j)}}}function Pu(n){let e,t,o,i,l;function s(u){n[5](u)}let f={name:"Global Status Icon Layout Settings",icon:Ur,color:"white",$$slots:{default:[Ru]},$$scope:{ctx:n}};return n[0]!==void 0&&(f.group=n[0]),e=new Po({props:f}),te.push(()=>oe(e,"group",s)),{c(){P(e.$$.fragment),o=y(),i=A("hr")},m(u,a){B(e,u,a),H(u,o,a),H(u,i,a),l=!0},p(u,[a]){const c={};a&66&&(c.$$scope={dirty:a,ctx:u}),!t&&a&1&&(t=!0,c.group=u[0],ie(()=>t=!1)),e.$set(c)},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){T(e.$$.fragment,u),l=!1},d(u){U(e,u),u&&E(o),u&&E(i)}}}function Bu(n,e,t){let o;de(n,ft,a=>t(1,o=a));let{group:i=""}=e;function l(a){n.$$.not_equal(o.iconBetweenSpacing,a)&&(o.iconBetweenSpacing=a,ft.set(o))}function s(a){n.$$.not_equal(o.yAxisSpacing,a)&&(o.yAxisSpacing=a,ft.set(o))}function f(a){n.$$.not_equal(o.xAxisSpacing,a)&&(o.xAxisSpacing=a,ft.set(o))}function u(a){i=a,t(0,i)}return n.$$set=a=>{"group"in a&&t(0,i=a.group)},[i,o,l,s,f,u]}class Uu extends ue{constructor(e){super();fe(this,e,Bu,Pu,ce,{group:0})}}class Dn{constructor(e,t){We(this,"mode");We(this,"data");this.mode=e,this.data=t}static rgba(e){return new Dn("rgb",e)}static hex(e){return new Dn("rgb",vi(e))}static hsl(e){return new Dn("hsl",e)}static hcl(e){return new Dn("hcl",e)}alter(e,t,o){const i=this.to(e);let l=JSON.parse(JSON.stringify(i.data));return e==="rgb"&&t==="a"?l.opacity=o:l[t]=o,new Dn(e,l)}get(e,t){return e==="rgb"&&t==="a"?this.to(e).data.opacity:this.to(e).data[t]}tuple(){return this.mode.split("").map(e=>this.data[e])}to(e){if(this.mode===e)return this;if(this.mode==="rgb"){const t=this.tuple(),o=vi(...t),i=Ko[e](o);return new Dn(e,i)}else if(e==="rgb"){const t=this.tuple();let o=Ko[this.mode](...t).rgb();return o=Object.fromEntries(Object.entries(o).map(([i,l])=>l<0?[i,0]:l>255?[i,255]:[i,l])),new Dn("rgb",o)}else return this.to("rgb").to(e)}toHex(){const e=Object.values(this.data);return Ko[this.mode](...e).formatHex8()}isDark(){let e=this.to("rgb").data;return e.r*.299+e.g*.587+e.b*.114<=186}}const nt={hsl:{h:{extent:[0,360],scale:1,title:"hue"},s:{extent:[0,100],scale:100,title:"saturation"},l:{extent:[0,100],scale:100,title:"luminance"}},hcl:{h:{extent:[0,360],scale:1,title:"hue"},c:{extent:[0,150],scale:1,title:"chroma"},l:{extent:[0,100],scale:1,title:"luminance"}},lab:{l:{extent:[0,100],scale:1,title:"L"},a:{extent:[-160,160],scale:1,title:"a"},b:{extent:[-160,160],scale:1,title:"b"}},rgb:{r:{extent:[0,255],scale:1,title:"red"},g:{extent:[0,255],scale:1,title:"green"},b:{extent:[0,255],scale:1,title:"blue"},a:{extent:[0,100],scale:100,title:"opacity"}}};function Wo(n){let[e,t]=n.split(".",2);return{scale:e,dim:t,data:nt[e][t]}}function tr(n){let e=n.clientX,t=n.clientY,o=n.target.getBoundingClientRect();const i=e-o.x,l=t-o.y;return{clientX:e,clientY:t,offsetX:o.x,offsetY:o.y,relativeX:i,relativeY:l}}const zu={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"};function Uo(n){let t=n.changedTouches[0],o=zu[n.type];if(!o)return;let i=new MouseEvent(o,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,button:0,buttons:1});n.target.dispatchEvent(i),n.preventDefault()}function or(n){n.addEventListener("touchstart",Uo,!0),n.addEventListener("touchmove",Uo,!0),n.addEventListener("touchend",Uo,!0),n.addEventListener("touchcancel",Uo,!0)}function Lu(n){let e,t,o,i,l;return{c(){e=A("div"),t=A("canvas"),r(t,"width",n[0]),r(t,"height",n[1]),r(t,"class","svelte-1q93mbr"),r(e,"class","scrollbar svelte-1q93mbr"),Mt(()=>n[14].call(e))},m(s,f){H(s,e,f),m(e,t),n[13](t),o=Zl(e,n[14].bind(e)),i||(l=[Ke(t,"mousedown",n[5]),Ke(t,"mousemove",n[5])],i=!0)},p(s,[f]){f&1&&r(t,"width",s[0]),f&2&&r(t,"height",s[1])},i:Te,o:Te,d(s){s&&E(e),n[13](null),o(),i=!1,Ro(l)}}}function qu(n,e,t){let o,i,l,{color:s=Dn.hex("#00fff00")}=e,{dimension:f="hsl.h"}=e,{detail:u=100}=e,{width:a=null}=e,{height:c=null}=e,d,h,_,k;Pt(()=>{t(9,h=d.getContext("2d")),or(d)});function b(S){if(S.buttons===1){let $=tr(S).relativeX/(_-2)*(o.data.extent[1]-o.data.extent[0])+o.data.extent[0];$>o.data.extent[1]&&($=o.data.extent[1]),${d=S,t(4,d)})}function g(){_=this.clientWidth,k=this.clientHeight,t(2,_),t(3,k)}return n.$$set=S=>{"color"in S&&t(6,s=S.color),"dimension"in S&&t(7,f=S.dimension),"detail"in S&&t(8,u=S.detail),"width"in S&&t(0,a=S.width),"height"in S&&t(1,c=S.height)},n.$$.update=()=>{if(n.$$.dirty&128&&t(10,o=Wo(f)),n.$$.dirty&1088&&t(12,i=s.get(o.scale,o.dim)*o.data.scale),n.$$.dirty&5124&&t(11,l=(_-2)*(i-o.data.extent[0])/(o.data.extent[1]-o.data.extent[0])),n.$$.dirty&3916&&h){t(9,h.imageSmoothingEnabled=!1,h),h.clearRect(0,0,_,k);let S=Math.min(u,_-2),D=(_-2)/S,Y=o.data.extent[1]-o.data.extent[0];const $=s.to(o.scale);for(let W=0;W<=S;W++){const q=(W/S*Y+o.data.extent[0])/o.data.scale,j=$.alter(o.scale,o.dim,q);t(9,h.fillStyle=j.toHex(),h),h.fillRect(Math.round(W*D),0,Math.ceil(D),k)}t(9,h.fillStyle="#ffffff",h),h.fillRect(l-1,0,3,k),t(9,h.fillStyle="#000000",h),h.fillRect(l,0,1,k)}},[a,c,_,k,d,b,s,f,u,h,o,l,i,w,g]}class Nu extends ue{constructor(e){super();fe(this,e,qu,Lu,ce,{color:6,dimension:7,detail:8,width:0,height:1})}}function ju(n){let e,t,o,i,l;return{c(){e=A("div"),t=A("canvas"),r(t,"width",n[0]),r(t,"height",n[1]),r(t,"class","svelte-1vtq5xo"),r(e,"class","matrix svelte-1vtq5xo"),Mt(()=>n[19].call(e))},m(s,f){H(s,e,f),m(e,t),n[18](t),o=Zl(e,n[19].bind(e)),i||(l=[Ke(t,"mousedown",n[5]),Ke(t,"mousemove",n[5])],i=!0)},p(s,[f]){f&1&&r(t,"width",s[0]),f&2&&r(t,"height",s[1])},i:Te,o:Te,d(s){s&&E(e),n[18](null),o(),i=!1,Ro(l)}}}function Gu(n,e,t){let o,i,l,s,f,u,{color:a=Dn.hex("#00ff00")}=e,{dimensionX:c="hsl.l"}=e,{dimensionY:d="hsl.s"}=e,{detailX:h=100}=e,{detailY:_=100}=e,{width:k=null}=e,{height:b=null}=e,w,g,S,D;Pt(()=>{t(11,g=w.getContext("2d")),or(w)});function Y(q){if(q.buttons===1){const j=tr(q);let x=j.relativeX,V=D-2-j.relativeY,Q=x/(S-2)*(o.data.extent[1]-o.data.extent[0])+o.data.extent[0];Q>o.data.extent[1]&&(Q=o.data.extent[1]),Qi.data.extent[1]&&(M=i.data.extent[1]),M{w=q,t(4,w)})}function W(){S=this.clientWidth,D=this.clientHeight,t(2,S),t(3,D)}return n.$$set=q=>{"color"in q&&t(6,a=q.color),"dimensionX"in q&&t(7,c=q.dimensionX),"dimensionY"in q&&t(8,d=q.dimensionY),"detailX"in q&&t(9,h=q.detailX),"detailY"in q&&t(10,_=q.detailY),"width"in q&&t(0,k=q.width),"height"in q&&t(1,b=q.height)},n.$$.update=()=>{if(n.$$.dirty&128&&t(12,o=Wo(c)),n.$$.dirty&256&&t(13,i=Wo(d)),n.$$.dirty&4160&&t(17,l=a.get(o.scale,o.dim)*o.data.scale),n.$$.dirty&8256&&t(16,s=a.get(i.scale,i.dim)*i.data.scale),n.$$.dirty&135172&&t(15,f=S*(l-o.data.extent[0])/(o.data.extent[1]-o.data.extent[0])),n.$$.dirty&73736&&t(14,u=D-D*(s-i.data.extent[0])/(i.data.extent[1]-i.data.extent[0])),n.$$.dirty&65100&&g){g.clearRect(0,0,S,D),t(11,g.imageSmoothingEnabled=!1,g);let q=Math.min(h,S-2),j=Math.min(_,D-2),x=(S-2)/q,V=(D-2)/j,Q=o.data.extent[1]-o.data.extent[0],M=i.data.extent[1]-i.data.extent[0];const X=a.to(i.scale);for(let p=0;p<=j;p++){const z=(p/_*M+i.data.extent[0])/i.data.scale,J=X.alter(i.scale,i.dim,z);for(let v=0;v<=q;v++){const ae=(v/h*Q+o.data.extent[0])/o.data.scale,ee=J.alter(o.scale,o.dim,ae);t(11,g.fillStyle=ee.toHex(),g),g.fillRect(Math.round(v*x),Math.round(D-2-p*V),Math.ceil(x),Math.ceil(V))}}t(11,g.fillStyle="#ffffff",g),g.fillRect(f-2,u-2,5,5),t(11,g.fillStyle="#000000",g),g.fillRect(f-1,u-1,3,3)}},[k,b,S,D,w,Y,a,c,d,h,_,g,o,i,u,f,s,l,$,W]}class Wu extends ue{constructor(e){super();fe(this,e,Gu,ju,ce,{color:6,dimensionX:7,dimensionY:8,detailX:9,detailY:10,width:0,height:1})}}function Ju(n){let e,t,o,i,l;return{c(){e=A("input"),r(e,"type","number"),e.value=n[1],r(e,"min",t=n[0].data.extent[0]),r(e,"max",o=n[0].data.extent[1]),r(e,"class","svelte-18y412o")},m(s,f){H(s,e,f),i||(l=Ke(e,"change",n[2]),i=!0)},p(s,[f]){f&2&&e.value!==s[1]&&(e.value=s[1]),f&1&&t!==(t=s[0].data.extent[0])&&r(e,"min",t),f&1&&o!==(o=s[0].data.extent[1])&&r(e,"max",o)},i:Te,o:Te,d(s){s&&E(e),i=!1,l()}}}function Zu(n,e,t){let o,i,l,{color:s=Dn.hex("#00ff00")}=e,{dimension:f="hsl.h"}=e;function u(a){let c=+a.target.value;t(3,s=s.alter(o.scale,o.dim,c/o.data.scale))}return n.$$set=a=>{"color"in a&&t(3,s=a.color),"dimension"in a&&t(4,f=a.dimension)},n.$$.update=()=>{n.$$.dirty&16&&t(0,o=Wo(f)),n.$$.dirty&9&&t(5,i=s.get(o.scale,o.dim)*o.data.scale),n.$$.dirty&32&&t(1,l=Math.round(i))},[o,l,u,s,f,i]}class Ku extends ue{constructor(e){super();fe(this,e,Zu,Ju,ce,{color:3,dimension:4})}}function Qu(n){let e,t,o;return{c(){e=A("input"),r(e,"id",n[0]),e.value=n[2],R(e,"width",n[1]+"px"),r(e,"class","svelte-h7kv0z")},m(i,l){H(i,e,l),t||(o=Ke(e,"change",n[3]),t=!0)},p(i,[l]){l&1&&r(e,"id",i[0]),l&4&&e.value!==i[2]&&(e.value=i[2]),l&2&&R(e,"width",i[1]+"px")},i:Te,o:Te,d(i){i&&E(e),t=!1,o()}}}function xu(n,e,t){let o,{color:i=Dn.hex("#00ff00")}=e,{id:l=null}=e,{width:s=null}=e;function f(u){let a=Dn.hex(u.target.value);a.data!=null?t(4,i=a):u.target.value=o}return n.$$set=u=>{"color"in u&&t(4,i=u.color),"id"in u&&t(0,l=u.id),"width"in u&&t(1,s=u.width)},n.$$.update=()=>{n.$$.dirty&16&&t(2,o=i.toHex())},[l,s,o,f,i]}class $u extends ue{constructor(e){super();fe(this,e,xu,Qu,ce,{color:4,id:0,width:1})}}function ji(n,e,t){const o=n.slice();return o[34]=e[t],o}function Gi(n,e,t){const o=n.slice();return o[37]=e[t],o}function Wi(n,e,t){const o=n.slice();return o[34]=e[t],o}function Ji(n){let e,t,o;return{c(){e=A("div"),r(e,"class","color-picker-background svelte-imelgj")},m(i,l){H(i,e,l),t||(o=Ke(e,"click",n[23]),t=!0)},p:Te,d(i){i&&E(e),t=!1,o()}}}function Zi(n){let e,t,o;return{c(){e=A("div"),r(e,"class","color-picker-handle svelte-imelgj"),R(e,"width",n[7]+"px"),R(e,"height",n[8]+"px"),R(e,"background",n[0].toHex())},m(i,l){H(i,e,l),t||(o=Ke(e,"click",n[22]),t=!0)},p(i,l){l[0]&128&&R(e,"width",i[7]+"px"),l[0]&256&&R(e,"height",i[8]+"px"),l[0]&1&&R(e,"background",i[0].toHex())},d(i){i&&E(e),t=!1,o()}}}function Ki(n){let e,t,o,i,l=n[9]&&Qi(n),s=n[3]&&xi(n),f=n[10]&&ul(n);return{c(){e=A("div"),l&&l.c(),t=y(),s&&s.c(),o=y(),f&&f.c(),r(e,"class","color-picker-controls svelte-imelgj"),R(e,"background",n[4])},m(u,a){H(u,e,a),l&&l.m(e,null),m(e,t),s&&s.m(e,null),m(e,o),f&&f.m(e,null),i=!0},p(u,a){u[9]?l?(l.p(u,a),a[0]&512&&C(l,1)):(l=Qi(u),l.c(),C(l,1),l.m(e,t)):l&&(he(),T(l,1,1,()=>{l=null}),ge()),u[3]?s?(s.p(u,a),a[0]&8&&C(s,1)):(s=xi(u),s.c(),C(s,1),s.m(e,o)):s&&(he(),T(s,1,1,()=>{s=null}),ge()),u[10]?f?(f.p(u,a),a[0]&1024&&C(f,1)):(f=ul(u),f.c(),C(f,1),f.m(e,null)):f&&(he(),T(f,1,1,()=>{f=null}),ge()),(!i||a[0]&16)&&R(e,"background",u[4])},i(u){i||(C(l),C(s),C(f),i=!0)},o(u){T(l),T(s),T(f),i=!1},d(u){u&&E(e),l&&l.d(),s&&s.d(),f&&f.d()}}}function Qi(n){let e,t,o;function i(s){n[26](s)}let l={dimensionX:n[18],dimensionY:n[19],width:n[14],height:n[15]};return n[0]!==void 0&&(l.color=n[0]),e=new Wu({props:l}),te.push(()=>oe(e,"color",i)),{c(){P(e.$$.fragment)},m(s,f){B(e,s,f),o=!0},p(s,f){const u={};f[0]&262144&&(u.dimensionX=s[18]),f[0]&524288&&(u.dimensionY=s[19]),f[0]&16384&&(u.width=s[14]),f[0]&32768&&(u.height=s[15]),!t&&f[0]&1&&(t=!0,u.color=s[0],ie(()=>t=!1)),e.$set(u)},i(s){o||(C(e.$$.fragment,s),o=!0)},o(s){T(e.$$.fragment,s),o=!1},d(s){U(e,s)}}}function xi(n){let e,t,o,i=n[6]&&$i(n),l=Object.keys(nt),s=[];for(let u=0;uT(s[u],1,1,()=>{s[u]=null});return{c(){i&&i.c(),e=y();for(let u=0;uT(l[f],1,1,()=>{l[f]=null});return{c(){e=A("div");for(let f=0;foe(i,"color",c));let h=n[11]&&rl(n);return{c(){e=A("div"),u&&u.c(),t=y(),a&&a.c(),o=y(),P(i.$$.fragment),s=y(),h&&h.c(),r(e,"class","slider svelte-imelgj")},m(_,k){H(_,e,k),u&&u.m(e,null),m(e,t),a&&a.m(e,null),m(e,o),B(i,e,null),m(e,s),h&&h.m(e,null),f=!0},p(_,k){_[13]?u?u.p(_,k):(u=il(_),u.c(),u.m(e,t)):u&&(u.d(1),u=null),_[12]?a?a.p(_,k):(a=ll(_),a.c(),a.m(e,o)):a&&(a.d(1),a=null);const b={};k[0]&2097152&&(b.width=_[21]),k[0]&65536&&(b.height=_[16]),!l&&k[0]&1&&(l=!0,b.color=_[0],ie(()=>l=!1)),i.$set(b),_[11]?h?(h.p(_,k),k[0]&2048&&C(h,1)):(h=rl(_),h.c(),C(h,1),h.m(e,null)):h&&(he(),T(h,1,1,()=>{h=null}),ge())},i(_){f||(C(i.$$.fragment,_),C(h),f=!0)},o(_){T(i.$$.fragment,_),T(h),f=!1},d(_){_&&E(e),u&&u.d(),a&&a.d(),U(i),h&&h.d()}}}function il(n){let e,t,o;return{c(){e=A("input"),r(e,"type","radio"),e.__value=n[34]+"."+n[37],e.value=e.__value,r(e,"id",n[34]+"-"+n[37]),r(e,"class","svelte-imelgj"),n[29][0].push(e)},m(i,l){H(i,e,l),e.checked=e.__value===n[1],t||(o=Ke(e,"change",n[28]),t=!0)},p(i,l){l[0]&2&&(e.checked=e.__value===i[1])},d(i){i&&E(e),n[29][0].splice(n[29][0].indexOf(e),1),t=!1,o()}}}function ll(n){let e,t=n[37].toUpperCase()+"",o,i;return{c(){e=A("label"),o=be(t),r(e,"for",i=n[34]+"-"+n[37]),r(e,"class","svelte-imelgj")},m(l,s){H(l,e,s),m(e,o)},p:Te,d(l){l&&E(e)}}}function rl(n){let e,t,o;function i(s){n[31](s)}let l={dimension:n[34]+"."+n[37]};return n[0]!==void 0&&(l.color=n[0]),e=new Ku({props:l}),te.push(()=>oe(e,"color",i)),{c(){P(e.$$.fragment)},m(s,f){B(e,s,f),o=!0},p(s,f){const u={};!t&&f[0]&1&&(t=!0,u.color=s[0],ie(()=>t=!1)),e.$set(u)},i(s){o||(C(e.$$.fragment,s),o=!0)},o(s){T(e.$$.fragment,s),o=!1},d(s){U(e,s)}}}function sl(n){let e,t,o=n[3][`${n[34]}.${n[37]}`]&&ol(n);return{c(){o&&o.c(),e=dn()},m(i,l){o&&o.m(i,l),H(i,e,l),t=!0},p(i,l){i[3][`${i[34]}.${i[37]}`]?o?(o.p(i,l),l[0]&8&&C(o,1)):(o=ol(i),o.c(),C(o,1),o.m(e.parentNode,e)):o&&(he(),T(o,1,1,()=>{o=null}),ge())},i(i){t||(C(o),t=!0)},o(i){T(o),t=!1},d(i){o&&o.d(i),i&&E(e)}}}function al(n){let e,t,o=(!n[6]||n[2]===n[34])&&tl(n);return{c(){o&&o.c(),e=dn()},m(i,l){o&&o.m(i,l),H(i,e,l),t=!0},p(i,l){!i[6]||i[2]===i[34]?o?(o.p(i,l),l[0]&68&&C(o,1)):(o=tl(i),o.c(),C(o,1),o.m(e.parentNode,e)):o&&(he(),T(o,1,1,()=>{o=null}),ge())},i(i){t||(C(o),t=!0)},o(i){T(o),t=!1},d(i){o&&o.d(i),i&&E(e)}}}function ul(n){let e,t,o,i,l,s,f=n[12]&&fl();function u(c){n[32](c)}let a={width:n[20],id:"hex"};return n[0]!==void 0&&(a.color=n[0]),i=new $u({props:a}),te.push(()=>oe(i,"color",u)),{c(){e=A("div"),t=A("div"),f&&f.c(),o=y(),P(i.$$.fragment),r(t,"class","text svelte-imelgj"),r(e,"class","group svelte-imelgj")},m(c,d){H(c,e,d),m(e,t),f&&f.m(t,null),m(t,o),B(i,t,null),s=!0},p(c,d){c[12]?f||(f=fl(),f.c(),f.m(t,o)):f&&(f.d(1),f=null);const h={};d[0]&1048576&&(h.width=c[20]),!l&&d[0]&1&&(l=!0,h.color=c[0],ie(()=>l=!1)),i.$set(h)},i(c){s||(C(i.$$.fragment,c),s=!0)},o(c){T(i.$$.fragment,c),s=!1},d(c){c&&E(e),f&&f.d(),U(i)}}}function fl(n){let e;return{c(){e=A("label"),e.textContent="Hex",r(e,"for","hex"),r(e,"class","svelte-imelgj")},m(t,o){H(t,e,o)},d(t){t&&E(e)}}}function e0(n){let e,t,o,i,l,s=n[5]&&!n[17]&&Ji(n),f=n[5]&&Zi(n),u=n[5]&&!n[17]&&Ki(n);return{c(){e=A("div"),s&&s.c(),t=y(),f&&f.c(),o=y(),u&&u.c(),r(e,"class",i="color-picker "+(n[5]?"collapse":"")+" svelte-imelgj")},m(a,c){H(a,e,c),s&&s.m(e,null),m(e,t),f&&f.m(e,null),m(e,o),u&&u.m(e,null),l=!0},p(a,c){a[5]&&!a[17]?s?s.p(a,c):(s=Ji(a),s.c(),s.m(e,t)):s&&(s.d(1),s=null),a[5]?f?f.p(a,c):(f=Zi(a),f.c(),f.m(e,o)):f&&(f.d(1),f=null),a[5]&&!a[17]?u?(u.p(a,c),c[0]&131104&&C(u,1)):(u=Ki(a),u.c(),C(u,1),u.m(e,null)):u&&(he(),T(u,1,1,()=>{u=null}),ge()),(!l||c[0]&32&&i!==(i="color-picker "+(a[5]?"collapse":"")+" svelte-imelgj"))&&r(e,"class",i)},i(a){l||(C(u),l=!0)},o(a){T(u),l=!1},d(a){a&&E(e),s&&s.d(),f&&f.d(),u&&u.d()}}}function n0(n,e,t){let o,i,{colorString:l="#ff9900"}=e,{color:s=Dn.hex(l)}=e;const f=zr();let{selectedDimension:u="hsl.h"}=e,{selectedTab:a="hsl"}=e,{background:c="#fff"}=e,{collapse:d=!1}=e,{tabbed:h=!1}=e,{handleWidth:_=32}=e,{handleHeight:k=32}=e,{showMatrix:b=!0}=e,{showSliders:w=null}=e;if(w==null){w={};for(const I in nt)for(const ke in nt[I])w[`${I}.${ke}`]=!0}let{showHex:g=!0}=e,{showNumeric:S=!0}=e,{showLabels:D=!0}=e,{selectDimensions:Y=!0}=e,{matrixWidth:$=300}=e,{matrixHeight:W=200}=e,{scrollbarHeight:q=20}=e,j=!0,x=null,V=null;const Q=()=>{t(17,j=!1),f("pickerExpand",{collapsed:j,color:s})},M=()=>{t(17,j=!0),f("pickerCollapse",{collapsed:j,color:s})},X=[[]],p=(I,ke)=>w[`${I}.${ke}`];function z(I){s=I,t(0,s)}const J=I=>{t(2,a=I),t(1,u=`${I}.${Object.keys(nt[I])[0]}`)};function v(){u=this.__value,t(1,u)}function ae(I){s=I,t(0,s)}function ee(I){s=I,t(0,s)}function K(I){s=I,t(0,s)}return n.$$set=I=>{"colorString"in I&&t(24,l=I.colorString),"color"in I&&t(0,s=I.color),"selectedDimension"in I&&t(1,u=I.selectedDimension),"selectedTab"in I&&t(2,a=I.selectedTab),"background"in I&&t(4,c=I.background),"collapse"in I&&t(5,d=I.collapse),"tabbed"in I&&t(6,h=I.tabbed),"handleWidth"in I&&t(7,_=I.handleWidth),"handleHeight"in I&&t(8,k=I.handleHeight),"showMatrix"in I&&t(9,b=I.showMatrix),"showSliders"in I&&t(3,w=I.showSliders),"showHex"in I&&t(10,g=I.showHex),"showNumeric"in I&&t(11,S=I.showNumeric),"showLabels"in I&&t(12,D=I.showLabels),"selectDimensions"in I&&t(13,Y=I.selectDimensions),"matrixWidth"in I&&t(14,$=I.matrixWidth),"matrixHeight"in I&&t(15,W=I.matrixHeight),"scrollbarHeight"in I&&t(16,q=I.scrollbarHeight)},n.$$.update=()=>{if(n.$$.dirty[0]&1&&typeof s=="string"&&t(0,s=Dn.hex(s)),n.$$.dirty[0]&2){let[I,ke]=u.split(".",2),Ce=Object.keys(nt[I]);Ce.splice(Ce.indexOf(ke),1),t(18,x=`${I}.${Ce[0]}`),t(19,V=`${I}.${Ce[1]}`)}n.$$.dirty[0]&30720&&t(21,o=$-(Y?25:0)-(D?25:0)-(S?65:0)),n.$$.dirty[0]&20480&&t(20,i=$-(D?50:0))},[s,u,a,w,c,d,h,_,k,b,g,S,D,Y,$,W,q,j,x,V,i,o,Q,M,l,p,z,J,v,X,ae,ee,K]}class t0 extends ue{constructor(e){super();fe(this,e,n0,e0,ce,{colorString:24,color:0,selectedDimension:1,selectedTab:2,background:4,collapse:5,tabbed:6,handleWidth:7,handleHeight:8,showMatrix:9,showSliders:3,showHex:10,showNumeric:11,showLabels:12,selectDimensions:13,matrixWidth:14,matrixHeight:15,scrollbarHeight:16},null,[-1,-1])}}function o0(n){let e,t,o,i;function l(f){n[4](f)}let s={colorString:n[0],background:i0,collapse:!0,handleWidth:135,handleHeight:40,tabbed:n[2].tabbed,selectedTab:n[2].selectedTab,selectedDimension:n[2].selectedDimension,showMatrix:n[2].showMatrix,showSliders:n[2].showSlidersGlobal&&n[2].showSliders,showHex:n[2].showHex,showLabels:n[2].showLabels,showNumeric:n[2].showNumeric,selectDimensions:n[2].selectDimensions,matrixWidth:n[2].matrixWidth,matrixHeight:n[2].matrixHeight,scrollbarHeight:n[2].scrollbarHeight};return n[1]!==void 0&&(s.color=n[1]),t=new t0({props:s}),te.push(()=>oe(t,"color",l)),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","text-black flex flex-row mx-auto border-2 rounded-[8px] border-gray-600")},m(f,u){H(f,e,u),B(t,e,null),i=!0},p(f,[u]){const a={};u&1&&(a.colorString=f[0]),!o&&u&2&&(o=!0,a.color=f[1],ie(()=>o=!1)),t.$set(a)},i(f){i||(C(t.$$.fragment,f),i=!0)},o(f){T(t.$$.fragment,f),i=!1},d(f){f&&E(e),U(t)}}}const xo="#03f0b5ff";let i0="#fff";function l0(n,e,t){let{colorString:o=xo}=e,{updateFunction:i=null}=e,l=Dn.hex(o),s={selectedDimension:"hsl.h",tabbed:!0,selectedTab:"hsl",showMatrix:!0,showSlidersGlobal:!0,showHex:!0,showNumeric:!0,showLabels:!0,showSliders:{"hsl.h":!0,"hsl.s":!0,"hsl.l":!0,"hcl.h":!0,"hcl.c":!0,"hcl.l":!0,"lab.l":!0,"lab.a":!0,"lab.b":!0,"rgb.r":!0,"rgb.g":!0,"rgb.b":!0,"rgb.a":!0},selectDimensions:!0,matrixWidth:300,matrixHeight:200,scrollbarHeight:20};function f(u){l=u,t(1,l),t(0,o)}return n.$$set=u=>{"colorString"in u&&t(0,o=u.colorString),"updateFunction"in u&&t(3,i=u.updateFunction)},n.$$.update=()=>{if(n.$$.dirty&1&&t(1,l=Dn.hex(o!=""?o:xo)),n.$$.dirty&11&&i&&l.toHex){let u=l.toHex();u!=o&&u!=xo&&i(l.toHex())}},[o,l,s,i,f]}class Kt extends ue{constructor(e){super();fe(this,e,l0,o0,ce,{colorString:0,updateFunction:3})}}function cl(n){let e,t,o,i,l,s;function f(a){n[18](a)}let u={min:1,max:25,step:.5,handleUpdateFunction:n[17]};return n[8].icons[n[1]].ringSize!==void 0&&(u.value=n[8].icons[n[1]].ringSize),i=new we({props:u}),te.push(()=>oe(i,"value",f)),{c(){e=A("div"),t=A("p"),t.textContent="Ring Size",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};c[0]&2&&(d.handleUpdateFunction=a[17]),!l&&c[0]&258&&(l=!0,d.value=a[8].icons[a[1]].ringSize,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function hl(n){let e,t,o,i,l,s;function f(a){n[20](a)}let u={center:!0,handleUpdateFunction:n[19]};return n[8].icons[n[1]].displayOutline!==void 0&&(u.checked=n[8].icons[n[1]].displayOutline),i=new Jo({props:u}),te.push(()=>oe(i,"checked",f)),{c(){e=A("div"),t=A("p"),t.textContent="Show Progress Outline",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};c[0]&2&&(d.handleUpdateFunction=a[19]),!l&&c[0]&258&&(l=!0,d.checked=a[8].icons[a[1]].displayOutline,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function gl(n){let e,t,o,i,l,s;function f(a){n[34](a)}let u={min:0,max:100,handleUpdateFunction:n[33]};return n[8].icons[n[1]].xAxisRound!==void 0&&(u.value=n[8].icons[n[1]].xAxisRound),i=new we({props:u}),te.push(()=>oe(i,"value",f)),{c(){e=A("div"),t=A("p"),t.textContent="X-axis Curve",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};c[0]&2&&(d.handleUpdateFunction=a[33]),!l&&c[0]&258&&(l=!0,d.value=a[8].icons[a[1]].xAxisRound,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function dl(n){let e,t,o,i,l,s;function f(a){n[36](a)}let u={min:0,max:100,handleUpdateFunction:n[35]};return n[8].icons[n[1]].yAxisRound!==void 0&&(u.value=n[8].icons[n[1]].yAxisRound),i=new we({props:u}),te.push(()=>oe(i,"value",f)),{c(){e=A("div"),t=A("p"),t.textContent="Y-axis Curve",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};c[0]&2&&(d.handleUpdateFunction=a[35]),!l&&c[0]&258&&(l=!0,d.value=a[8].icons[a[1]].yAxisRound,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function ml(n){let e,t,o,i,l,s,f,u;function a(h){n[37](h)}function c(h){n[38](h)}let d={valuesArray:n[6]};return n[7]!==void 0&&(d.value=n[7]),n[2]!==void 0&&(d.selectedIndex=n[2]),l=new Ho({props:d}),te.push(()=>oe(l,"value",a)),te.push(()=>oe(l,"selectedIndex",c)),{c(){e=A("div"),t=A("div"),o=A("p"),o.textContent="Icon State",i=y(),P(l.$$.fragment),r(o,"class","text-lg text-center mb-2"),r(t,"class","w-50"),r(e,"class","flex flex-row justify-center mt-4")},m(h,_){H(h,e,_),m(e,t),m(t,o),m(t,i),B(l,t,null),u=!0},p(h,_){const k={};_[0]&64&&(k.valuesArray=h[6]),!s&&_[0]&128&&(s=!0,k.value=h[7],ie(()=>s=!1)),!f&&_[0]&4&&(f=!0,k.selectedIndex=h[2],ie(()=>f=!1)),l.$set(k)},i(h){u||(C(l.$$.fragment,h),u=!0)},o(h){T(l.$$.fragment,h),u=!1},d(h){h&&E(e),U(l)}}}function _l(n){let e,t,o,i,l;return i=new Kt({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].innerColor,updateFunction:n[54]}}),{c(){e=A("div"),t=A("p"),t.textContent="Inner Color",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2"),r(e,"class","flex flex-col mx-auto")},m(s,f){H(s,e,f),m(e,t),m(e,o),B(i,e,null),l=!0},p(s,f){const u={};f[0]&22&&(u.colorString=s[4].icons[s[1]].colorEffects[s[2]].innerColor),f[0]&6&&(u.updateFunction=s[54]),i.$set(u)},i(s){l||(C(i.$$.fragment,s),l=!0)},o(s){T(i.$$.fragment,s),l=!1},d(s){s&&E(e),U(i)}}}function r0(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K,I,ke,Ce,Ie,Xe,ve,Ne,Tn,je,Ee,se,Se,Ve,In,He,Re,yn,Pe,G,Nn,tn,jn,L,Ge,ct,ht,bn,pe,tt,Qe,pt,Gn,Xn,Wn,Jn,On,kn,De,Sn,Rn,Ct,Zn,Pn,Bn,vt,Be,on,Yt,Fn,gt,fn,dt,Un,ln,Dt,ot,cn,mt,Kn,an,Qn,At,it,Mn,_t,xn,Cn,hn,wt,zn,rn,Tt,lt,gn,bt,$n,Ln,rt,st,It,vn,En,Bt,kt,ye,Oe,at,Xt,uo,yt;s=new Ho({props:{valuesArray:li,value:n[1],handleSelectFunction:n[10]}});function To(F){n[12](F)}let Ut={valuesArray:Kl,handleSelectFunction:n[11]};n[8].icons[n[1]].shape!==void 0&&(Ut.value=n[8].icons[n[1]].shape),d=new Ho({props:Ut}),te.push(()=>oe(d,"value",To));function Io(F){n[14](F)}let zt={min:1,max:200,handleUpdateFunction:n[13]};n[8].icons[n[1]].width!==void 0&&(zt.value=n[8].icons[n[1]].width),W=new we({props:zt}),te.push(()=>oe(W,"value",Io));function yo(F){n[16](F)}let Lt={min:1,max:200,handleUpdateFunction:n[15]};n[8].icons[n[1]].height!==void 0&&(Lt.value=n[8].icons[n[1]].height),M=new we({props:Lt}),te.push(()=>oe(M,"value",yo));let xe=n[8].icons[n[1]].ringSize!=null&&cl(n),Ue=n[8].icons[n[1]].displayOutline!=null&&hl(n);function $e(F){n[22](F)}let ze={min:-20,max:20,step:.25,handleUpdateFunction:n[21]};n[8].icons[n[1]].translateX!==void 0&&(ze.value=n[8].icons[n[1]].translateX),K=new we({props:ze}),te.push(()=>oe(K,"value",$e));function Mo(F){n[24](F)}let qt={min:-20,max:20,step:.25,handleUpdateFunction:n[23]};n[8].icons[n[1]].translateY!==void 0&&(qt.value=n[8].icons[n[1]].translateY),ve=new we({props:qt}),te.push(()=>oe(ve,"value",Mo));function Yo(F){n[26](F)}let Nt={min:0,max:360,handleUpdateFunction:n[25]};n[8].icons[n[1]].rotateDegree!==void 0&&(Nt.value=n[8].icons[n[1]].rotateDegree),Se=new we({props:Nt}),te.push(()=>oe(Se,"value",Yo));function Xo(F){n[28](F)}let jt={min:-10,max:10,step:.01,handleUpdateFunction:n[27]};n[8].icons[n[1]].iconTranslateX!==void 0&&(jt.value=n[8].icons[n[1]].iconTranslateX),Pe=new we({props:jt}),te.push(()=>oe(Pe,"value",Xo));function Oo(F){n[30](F)}let Gt={min:-10,max:10,step:.01,handleUpdateFunction:n[29]};n[8].icons[n[1]].iconTranslateY!==void 0&&(Gt.value=n[8].icons[n[1]].iconTranslateY),Ge=new we({props:Gt}),te.push(()=>oe(Ge,"value",Oo));function Fo(F){n[32](F)}let Wt={min:0,max:3,step:.01,handleUpdateFunction:n[31]};n[8].icons[n[1]].iconScaling!==void 0&&(Wt.value=n[8].icons[n[1]].iconScaling),Qe=new we({props:Wt}),te.push(()=>oe(Qe,"value",Fo));let en=n[8].icons[n[1]].xAxisRound!=null&&gl(n),Le=n[8].icons[n[1]].yAxisRound!=null&&dl(n),_e=n[3].length>1&&ml(n);Zn=new Kt({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].progressColor,updateFunction:n[39]}});function Z(F){n[41](F)}let me={min:0,max:300,handleUpdateFunction:n[40]};n[4].icons[n[1]].colorEffects[n[2]].progressContrast!==void 0&&(me.value=n[4].icons[n[1]].colorEffects[n[2]].progressContrast),on=new we({props:me}),te.push(()=>oe(on,"value",Z));function Qt(F){n[43](F)}let xt={min:0,max:20,handleUpdateFunction:n[42]};n[4].icons[n[1]].colorEffects[n[2]].progressDropShadowAmount!==void 0&&(xt.value=n[4].icons[n[1]].colorEffects[n[2]].progressDropShadowAmount),Un=new we({props:xt}),te.push(()=>oe(Un,"value",Qt)),Kn=new Kt({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].iconColor,updateFunction:n[44]}});function $t(F){n[46](F)}let eo={min:0,max:300,handleUpdateFunction:n[45]};n[4].icons[n[1]].colorEffects[n[2]].iconContrast!==void 0&&(eo.value=n[4].icons[n[1]].colorEffects[n[2]].iconContrast),Mn=new we({props:eo}),te.push(()=>oe(Mn,"value",$t));function no(F){n[48](F)}let to={min:0,max:20,handleUpdateFunction:n[47]};n[4].icons[n[1]].colorEffects[n[2]].iconDropShadowAmount!==void 0&&(to.value=n[4].icons[n[1]].colorEffects[n[2]].iconDropShadowAmount),zn=new we({props:to}),te.push(()=>oe(zn,"value",no)),$n=new Kt({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].outlineColor,updateFunction:n[49]}});function oo(F){n[51](F)}let io={min:0,max:300,handleUpdateFunction:n[50]};n[4].icons[n[1]].colorEffects[n[2]].outlineContrast!==void 0&&(io.value=n[4].icons[n[1]].colorEffects[n[2]].outlineContrast),vn=new we({props:io}),te.push(()=>oe(vn,"value",oo));function lo(F){n[53](F)}let ro={min:0,max:20,handleUpdateFunction:n[52]};n[4].icons[n[1]].colorEffects[n[2]].outlineDropShadowAmount!==void 0&&(ro.value=n[4].icons[n[1]].colorEffects[n[2]].outlineDropShadowAmount),at=new we({props:ro}),te.push(()=>oe(at,"value",lo));let qe=n[4].icons[n[1]].editableColors.innerColor&&_l(n);return{c(){e=A("div"),t=A("div"),o=A("div"),i=A("p"),i.textContent="Icon Status To Edit",l=y(),P(s.$$.fragment),f=y(),u=A("div"),a=A("p"),a.textContent="Icon Shape",c=y(),P(d.$$.fragment),_=y(),k=A("div"),b=y(),w=A("div"),w.innerHTML=`

Single Icon Size & Position Section

-
`,g=y(),S=A("div"),D=A("div"),Y=A("p"),Y.textContent="Width Size",$=y(),P(W.$$.fragment),j=y(),x=A("div"),V=A("p"),V.textContent="Height Size",Q=y(),P(M.$$.fragment),p=y(),xe&&xe.c(),z=y(),Ue&&Ue.c(),J=y(),v=A("div"),ae=A("p"),ae.textContent="X-axis Position",ee=y(),P(K.$$.fragment),ke=y(),Ce=A("div"),Ie=A("p"),Ie.textContent="Y-axis Position",Xe=y(),P(ve.$$.fragment),Tn=y(),je=A("div"),Ee=A("p"),Ee.textContent="Rotation",se=y(),P(Se.$$.fragment),In=y(),He=A("div"),Re=A("p"),Re.textContent="Icon X-axis Position",yn=y(),P(Pe.$$.fragment),Nn=y(),tn=A("div"),jn=A("p"),jn.textContent="Icon Y-axis Position",L=y(),P(Ge.$$.fragment),ht=y(),bn=A("div"),pe=A("p"),pe.textContent="Icon Size",tt=y(),P(Qe.$$.fragment),Gn=y(),en&&en.c(),Xn=y(),Le&&Le.c(),Wn=y(),Jn=A("div"),Jn.innerHTML=`

Single Icon Color Section

-
`,On=y(),_e&&_e.c(),kn=y(),De=A("div"),Sn=A("div"),Rn=A("p"),Rn.textContent="Progress Color",Ct=y(),P(Zn.$$.fragment),Pn=y(),Bn=A("div"),vt=A("p"),vt.textContent="Progress Contrast",Be=y(),P(on.$$.fragment),Fn=y(),gt=A("div"),fn=A("p"),fn.textContent="Progress Shadow",dt=y(),P(Un.$$.fragment),Dt=y(),ot=A("div"),cn=A("p"),cn.textContent="Icon Color",mt=y(),P(Kn.$$.fragment),an=y(),Qn=A("div"),At=A("p"),At.textContent="Icon Contrast",it=y(),P(Mn.$$.fragment),xn=y(),Cn=A("div"),hn=A("p"),hn.textContent="Icon Shadow",wt=y(),P(zn.$$.fragment),Tt=y(),lt=A("div"),gn=A("p"),gn.textContent="Outline Color",bt=y(),P($n.$$.fragment),Ln=y(),rt=A("div"),st=A("p"),st.textContent="Outline Contrast",It=y(),P(vn.$$.fragment),Bt=y(),kt=A("div"),ye=A("p"),ye.textContent="Outline Shadow",Oe=y(),P(at.$$.fragment),uo=y(),qe&&qe.c(),r(i,"class","text-lg text-center mb-2"),r(o,"class","max-w-50 ml-8"),r(t,"class","flex-1"),r(a,"class","text-lg text-center mb-2"),r(u,"class","w-50"),r(k,"class","flex-1"),r(e,"class","flex flex-row mb-8 mt-4"),r(w,"class","mx-8"),r(Y,"class","text-base text-center mb-2"),r(V,"class","text-base text-center mb-2"),r(ae,"class","text-base text-center mb-2"),r(Ie,"class","text-base text-center mb-2"),r(Ee,"class","text-base text-center mb-2"),r(Re,"class","text-base text-center mb-2"),r(jn,"class","text-base text-center mb-2"),r(pe,"class","text-base text-center mb-2"),r(S,"class","mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end"),r(Jn,"class","mx-8 mt-8"),r(Rn,"class","text-base text-center mb-2"),r(Sn,"class","flex flex-col mx-auto"),r(vt,"class","text-base text-center mb-2"),r(fn,"class","text-base text-center mb-2"),r(cn,"class","text-base text-center mb-2"),r(ot,"class","flex flex-col mx-auto"),r(At,"class","text-base text-center mb-2"),r(hn,"class","text-base text-center mb-2"),r(gn,"class","text-base text-center mb-2"),r(lt,"class","flex flex-col mx-auto"),r(st,"class","text-base text-center mb-2"),r(ye,"class","text-base text-center mb-2"),r(De,"class","mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6")},m(F,le){H(F,e,le),m(e,t),m(t,o),m(o,i),m(o,l),B(s,o,null),m(e,f),m(e,u),m(u,a),m(u,c),B(d,u,null),m(e,_),m(e,k),H(F,b,le),H(F,w,le),H(F,g,le),H(F,S,le),m(S,D),m(D,Y),m(D,$),B(W,D,null),m(S,j),m(S,x),m(x,V),m(x,Q),B(M,x,null),m(S,p),xe&&xe.m(S,null),m(S,z),Ue&&Ue.m(S,null),m(S,J),m(S,v),m(v,ae),m(v,ee),B(K,v,null),m(S,ke),m(S,Ce),m(Ce,Ie),m(Ce,Xe),B(ve,Ce,null),m(S,Tn),m(S,je),m(je,Ee),m(je,se),B(Se,je,null),m(S,In),m(S,He),m(He,Re),m(He,yn),B(Pe,He,null),m(S,Nn),m(S,tn),m(tn,jn),m(tn,L),B(Ge,tn,null),m(S,ht),m(S,bn),m(bn,pe),m(bn,tt),B(Qe,bn,null),m(S,Gn),en&&en.m(S,null),m(S,Xn),Le&&Le.m(S,null),H(F,Wn,le),H(F,Jn,le),H(F,On,le),_e&&_e.m(F,le),H(F,kn,le),H(F,De,le),m(De,Sn),m(Sn,Rn),m(Sn,Ct),B(Zn,Sn,null),m(De,Pn),m(De,Bn),m(Bn,vt),m(Bn,Be),B(on,Bn,null),m(De,Fn),m(De,gt),m(gt,fn),m(gt,dt),B(Un,gt,null),m(De,Dt),m(De,ot),m(ot,cn),m(ot,mt),B(Kn,ot,null),m(De,an),m(De,Qn),m(Qn,At),m(Qn,it),B(Mn,Qn,null),m(De,xn),m(De,Cn),m(Cn,hn),m(Cn,wt),B(zn,Cn,null),m(De,Tt),m(De,lt),m(lt,gn),m(lt,bt),B($n,lt,null),m(De,Ln),m(De,rt),m(rt,st),m(rt,It),B(vn,rt,null),m(De,Bt),m(De,kt),m(kt,ye),m(kt,Oe),B(at,kt,null),m(De,uo),qe&&qe.m(De,null),yt=!0},p(F,le){const Jt={};le[0]&2&&(Jt.value=F[1]),le[0]&38&&(Jt.handleSelectFunction=F[10]),s.$set(Jt);const Ot={};le[0]&2&&(Ot.handleSelectFunction=F[11]),!h&&le[0]&258&&(h=!0,Ot.value=F[8].icons[F[1]].shape,ie(()=>h=!1)),d.$set(Ot);const Zt={};le[0]&2&&(Zt.handleUpdateFunction=F[13]),!q&&le[0]&258&&(q=!0,Zt.value=F[8].icons[F[1]].width,ie(()=>q=!1)),W.$set(Zt);const Ft={};le[0]&2&&(Ft.handleUpdateFunction=F[15]),!X&&le[0]&258&&(X=!0,Ft.value=F[8].icons[F[1]].height,ie(()=>X=!1)),M.$set(Ft),F[8].icons[F[1]].ringSize!=null?xe?(xe.p(F,le),le[0]&258&&C(xe,1)):(xe=cl(F),xe.c(),C(xe,1),xe.m(S,z)):xe&&(he(),T(xe,1,1,()=>{xe=null}),ge()),F[8].icons[F[1]].displayOutline!=null?Ue?(Ue.p(F,le),le[0]&258&&C(Ue,1)):(Ue=hl(F),Ue.c(),C(Ue,1),Ue.m(S,J)):Ue&&(he(),T(Ue,1,1,()=>{Ue=null}),ge());const N={};le[0]&2&&(N.handleUpdateFunction=F[21]),!I&&le[0]&258&&(I=!0,N.value=F[8].icons[F[1]].translateX,ie(()=>I=!1)),K.$set(N);const Ae={};le[0]&2&&(Ae.handleUpdateFunction=F[23]),!Ne&&le[0]&258&&(Ne=!0,Ae.value=F[8].icons[F[1]].translateY,ie(()=>Ne=!1)),ve.$set(Ae);const fo={};le[0]&2&&(fo.handleUpdateFunction=F[25]),!Ve&&le[0]&258&&(Ve=!0,fo.value=F[8].icons[F[1]].rotateDegree,ie(()=>Ve=!1)),Se.$set(fo);const co={};le[0]&2&&(co.handleUpdateFunction=F[27]),!G&&le[0]&258&&(G=!0,co.value=F[8].icons[F[1]].iconTranslateX,ie(()=>G=!1)),Pe.$set(co);const ho={};le[0]&2&&(ho.handleUpdateFunction=F[29]),!ct&&le[0]&258&&(ct=!0,ho.value=F[8].icons[F[1]].iconTranslateY,ie(()=>ct=!1)),Ge.$set(ho);const go={};le[0]&2&&(go.handleUpdateFunction=F[31]),!pt&&le[0]&258&&(pt=!0,go.value=F[8].icons[F[1]].iconScaling,ie(()=>pt=!1)),Qe.$set(go),F[8].icons[F[1]].xAxisRound!=null?en?(en.p(F,le),le[0]&258&&C(en,1)):(en=gl(F),en.c(),C(en,1),en.m(S,Xn)):en&&(he(),T(en,1,1,()=>{en=null}),ge()),F[8].icons[F[1]].yAxisRound!=null?Le?(Le.p(F,le),le[0]&258&&C(Le,1)):(Le=dl(F),Le.c(),C(Le,1),Le.m(S,null)):Le&&(he(),T(Le,1,1,()=>{Le=null}),ge()),F[3].length>1?_e?(_e.p(F,le),le[0]&8&&C(_e,1)):(_e=ml(F),_e.c(),C(_e,1),_e.m(kn.parentNode,kn)):_e&&(he(),T(_e,1,1,()=>{_e=null}),ge());const mo={};le[0]&22&&(mo.colorString=F[4].icons[F[1]].colorEffects[F[2]].progressColor),le[0]&6&&(mo.updateFunction=F[39]),Zn.$set(mo);const _o={};le[0]&6&&(_o.handleUpdateFunction=F[40]),!Yt&&le[0]&22&&(Yt=!0,_o.value=F[4].icons[F[1]].colorEffects[F[2]].progressContrast,ie(()=>Yt=!1)),on.$set(_o);const wo={};le[0]&6&&(wo.handleUpdateFunction=F[42]),!ln&&le[0]&22&&(ln=!0,wo.value=F[4].icons[F[1]].colorEffects[F[2]].progressDropShadowAmount,ie(()=>ln=!1)),Un.$set(wo);const bo={};le[0]&22&&(bo.colorString=F[4].icons[F[1]].colorEffects[F[2]].iconColor),le[0]&6&&(bo.updateFunction=F[44]),Kn.$set(bo);const ko={};le[0]&6&&(ko.handleUpdateFunction=F[45]),!_t&&le[0]&22&&(_t=!0,ko.value=F[4].icons[F[1]].colorEffects[F[2]].iconContrast,ie(()=>_t=!1)),Mn.$set(ko);const So={};le[0]&6&&(So.handleUpdateFunction=F[47]),!rn&&le[0]&22&&(rn=!0,So.value=F[4].icons[F[1]].colorEffects[F[2]].iconDropShadowAmount,ie(()=>rn=!1)),zn.$set(So);const po={};le[0]&22&&(po.colorString=F[4].icons[F[1]].colorEffects[F[2]].outlineColor),le[0]&6&&(po.updateFunction=F[49]),$n.$set(po);const Co={};le[0]&6&&(Co.handleUpdateFunction=F[50]),!En&&le[0]&22&&(En=!0,Co.value=F[4].icons[F[1]].colorEffects[F[2]].outlineContrast,ie(()=>En=!1)),vn.$set(Co);const vo={};le[0]&6&&(vo.handleUpdateFunction=F[52]),!Xt&&le[0]&22&&(Xt=!0,vo.value=F[4].icons[F[1]].colorEffects[F[2]].outlineDropShadowAmount,ie(()=>Xt=!1)),at.$set(vo),F[4].icons[F[1]].editableColors.innerColor?qe?(qe.p(F,le),le[0]&18&&C(qe,1)):(qe=_l(F),qe.c(),C(qe,1),qe.m(De,null)):qe&&(he(),T(qe,1,1,()=>{qe=null}),ge())},i(F){yt||(C(s.$$.fragment,F),C(d.$$.fragment,F),C(W.$$.fragment,F),C(M.$$.fragment,F),C(xe),C(Ue),C(K.$$.fragment,F),C(ve.$$.fragment,F),C(Se.$$.fragment,F),C(Pe.$$.fragment,F),C(Ge.$$.fragment,F),C(Qe.$$.fragment,F),C(en),C(Le),C(_e),C(Zn.$$.fragment,F),C(on.$$.fragment,F),C(Un.$$.fragment,F),C(Kn.$$.fragment,F),C(Mn.$$.fragment,F),C(zn.$$.fragment,F),C($n.$$.fragment,F),C(vn.$$.fragment,F),C(at.$$.fragment,F),C(qe),yt=!0)},o(F){T(s.$$.fragment,F),T(d.$$.fragment,F),T(W.$$.fragment,F),T(M.$$.fragment,F),T(xe),T(Ue),T(K.$$.fragment,F),T(ve.$$.fragment,F),T(Se.$$.fragment,F),T(Pe.$$.fragment,F),T(Ge.$$.fragment,F),T(Qe.$$.fragment,F),T(en),T(Le),T(_e),T(Zn.$$.fragment,F),T(on.$$.fragment,F),T(Un.$$.fragment,F),T(Kn.$$.fragment,F),T(Mn.$$.fragment,F),T(zn.$$.fragment,F),T($n.$$.fragment,F),T(vn.$$.fragment,F),T(at.$$.fragment,F),T(qe),yt=!1},d(F){F&&E(e),U(s),U(d),F&&E(b),F&&E(w),F&&E(g),F&&E(S),U(W),U(M),xe&&xe.d(),Ue&&Ue.d(),U(K),U(ve),U(Se),U(Pe),U(Ge),U(Qe),en&&en.d(),Le&&Le.d(),F&&E(Wn),F&&E(Jn),F&&E(On),_e&&_e.d(F),F&&E(kn),F&&E(De),U(Zn),U(on),U(Un),U(Kn),U(Mn),U(zn),U($n),U(vn),U(at),qe&&qe.d()}}}function s0(n){let e,t,o,i,l;function s(u){n[55](u)}let f={name:"Single Status Icon Settings",icon:n[8].icons[n[1]].icon,color:n[9][n[5]],$$slots:{default:[r0]},$$scope:{ctx:n}};return n[0]!==void 0&&(f.group=n[0]),e=new Po({props:f}),te.push(()=>oe(e,"group",s)),{c(){P(e.$$.fragment),o=y(),i=A("hr")},m(u,a){B(e,u,a),H(u,o,a),H(u,i,a),l=!0},p(u,a){const c={};a[0]&258&&(c.icon=u[8].icons[u[1]].icon),a[0]&32&&(c.color=u[9][u[5]]),a[0]&510|a[1]&33554432&&(c.$$scope={dirty:a,ctx:u}),!t&&a[0]&1&&(t=!0,c.group=u[0],ie(()=>t=!1)),e.$set(c)},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){T(e.$$.fragment,u),l=!1},d(u){U(e,u),u&&E(o),u&&E(i)}}}function a0(n,e,t){let o,i;de(n,re,L=>t(4,o=L)),de(n,ne,L=>t(8,i=L));let{group:l=""}=e,s=0,f=["#FFFFFF","rgb(33, 171, 97)","#326dbf","#dd6e14","#1a7cad","rgb(220, 6, 6)","rgb(138, 168, 189)","rgb(255, 72, 133)","rgb(185, 255, 40)","#3FA554","rgb(182, 72, 255)","rgb(255, 72, 133)","#D64763","rgb(0, 0, 0)"],u="voice",a=0,c=o.icons[u].colorEffects,d=c.map(L=>L.name),h=d[a];const _=L=>{t(1,u=L),t(5,s=li.findIndex(Ge=>Ge==L)),t(2,a=0)},k=L=>{ne.updateIconShape(u,L),re.updateIconShapeEditableColor(u,L)};function b(L){n.$$.not_equal(i.icons[u].shape,L)&&(i.icons[u].shape=L,ne.set(i))}const w=L=>ne.updateIconSetting(u,"width",L);function g(L){n.$$.not_equal(i.icons[u].width,L)&&(i.icons[u].width=L,ne.set(i))}const S=L=>ne.updateIconSetting(u,"height",L);function D(L){n.$$.not_equal(i.icons[u].height,L)&&(i.icons[u].height=L,ne.set(i))}const Y=L=>ne.updateIconSetting(u,"ringSize",L);function $(L){n.$$.not_equal(i.icons[u].ringSize,L)&&(i.icons[u].ringSize=L,ne.set(i))}const W=L=>ne.updateIconSetting(u,"displayOutline",L);function q(L){n.$$.not_equal(i.icons[u].displayOutline,L)&&(i.icons[u].displayOutline=L,ne.set(i))}const j=L=>ne.updateIconSetting(u,"translateX",L);function x(L){n.$$.not_equal(i.icons[u].translateX,L)&&(i.icons[u].translateX=L,ne.set(i))}const V=L=>ne.updateIconSetting(u,"translateY",L);function Q(L){n.$$.not_equal(i.icons[u].translateY,L)&&(i.icons[u].translateY=L,ne.set(i))}const M=L=>ne.updateIconSetting(u,"rotateDegree",L);function X(L){n.$$.not_equal(i.icons[u].rotateDegree,L)&&(i.icons[u].rotateDegree=L,ne.set(i))}const p=L=>ne.updateIconSetting(u,"iconTranslateX",L);function z(L){n.$$.not_equal(i.icons[u].iconTranslateX,L)&&(i.icons[u].iconTranslateX=L,ne.set(i))}const J=L=>ne.updateIconSetting(u,"iconTranslateY",L);function v(L){n.$$.not_equal(i.icons[u].iconTranslateY,L)&&(i.icons[u].iconTranslateY=L,ne.set(i))}const ae=L=>ne.updateIconSetting(u,"iconScaling",L);function ee(L){n.$$.not_equal(i.icons[u].iconScaling,L)&&(i.icons[u].iconScaling=L,ne.set(i))}const K=L=>ne.updateIconSetting(u,"xAxisRound",L);function I(L){n.$$.not_equal(i.icons[u].xAxisRound,L)&&(i.icons[u].xAxisRound=L,ne.set(i))}const ke=L=>ne.updateIconSetting(u,"yAxisRound",L);function Ce(L){n.$$.not_equal(i.icons[u].yAxisRound,L)&&(i.icons[u].yAxisRound=L,ne.set(i))}function Ie(L){h=L,t(7,h)}function Xe(L){a=L,t(2,a)}const ve=L=>re.updateColorSetting(u,a,"progressColor",L),Ne=L=>re.updateColorSetting(u,a,"progressContrast",L);function Tn(L){n.$$.not_equal(o.icons[u].colorEffects[a].progressContrast,L)&&(o.icons[u].colorEffects[a].progressContrast=L,re.set(o))}const je=L=>re.updateColorSetting(u,a,"progressDropShadowAmount",L);function Ee(L){n.$$.not_equal(o.icons[u].colorEffects[a].progressDropShadowAmount,L)&&(o.icons[u].colorEffects[a].progressDropShadowAmount=L,re.set(o))}const se=L=>re.updateColorSetting(u,a,"iconColor",L),Se=L=>re.updateColorSetting(u,a,"iconContrast",L);function Ve(L){n.$$.not_equal(o.icons[u].colorEffects[a].iconContrast,L)&&(o.icons[u].colorEffects[a].iconContrast=L,re.set(o))}const In=L=>re.updateColorSetting(u,a,"iconDropShadowAmount",L);function He(L){n.$$.not_equal(o.icons[u].colorEffects[a].iconDropShadowAmount,L)&&(o.icons[u].colorEffects[a].iconDropShadowAmount=L,re.set(o))}const Re=L=>re.updateColorSetting(u,a,"outlineColor",L),yn=L=>re.updateColorSetting(u,a,"outlineContrast",L);function Pe(L){n.$$.not_equal(o.icons[u].colorEffects[a].outlineContrast,L)&&(o.icons[u].colorEffects[a].outlineContrast=L,re.set(o))}const G=L=>re.updateColorSetting(u,a,"outlineDropShadowAmount",L);function Nn(L){n.$$.not_equal(o.icons[u].colorEffects[a].outlineDropShadowAmount,L)&&(o.icons[u].colorEffects[a].outlineDropShadowAmount=L,re.set(o))}const tn=L=>re.updateColorSetting(u,a,"innerColor",L);function jn(L){l=L,t(0,l)}return n.$$set=L=>{"group"in L&&t(0,l=L.group)},n.$$.update=()=>{n.$$.dirty[0]&4&&St(re,o.globalColorSettings.editSingleIconStage=a,o),n.$$.dirty[0]&2&&St(re,o.globalColorSettings.editSingleIconName=u,o),n.$$.dirty[0]&26&&(t(3,c=o.icons[u].colorEffects),t(6,d=c.map(L=>L.name)))},[l,u,a,c,o,s,d,h,i,f,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K,I,ke,Ce,Ie,Xe,ve,Ne,Tn,je,Ee,se,Se,Ve,In,He,Re,yn,Pe,G,Nn,tn,jn]}class u0 extends ue{constructor(e){super();fe(this,e,a0,s0,ce,{group:0},null,[-1,-1])}}function wl(n){let e,t,o,i,l,s;function f(a){n[6](a)}let u={min:1,max:25,step:.5,handleUpdateFunction:ne.updateAllRingSize};return n[1].globalIconSettings.ringSize!==void 0&&(u.value=n[1].globalIconSettings.ringSize),i=new we({props:u}),te.push(()=>oe(i,"value",f)),{c(){e=A("div"),t=A("p"),t.textContent="Ring Size",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};!l&&c[0]&2&&(l=!0,d.value=a[1].globalIconSettings.ringSize,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function bl(n){let e,t,o,i,l,s;function f(a){n[8](a)}let u={center:!0,handleUpdateFunction:n[7]};return n[1].globalIconSettings.displayOutline!==void 0&&(u.checked=n[1].globalIconSettings.displayOutline),i=new Jo({props:u}),te.push(()=>oe(i,"checked",f)),{c(){e=A("div"),t=A("p"),t.textContent="Show Progress Outline",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};!l&&c[0]&2&&(l=!0,d.checked=a[1].globalIconSettings.displayOutline,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function kl(n){let e,t,o,i,l,s;function f(a){n[15](a)}let u={min:0,max:100,handleUpdateFunction:ne.updateAllRoundXAxis};return n[1].globalIconSettings.xAxisRound!==void 0&&(u.value=n[1].globalIconSettings.xAxisRound),i=new we({props:u}),te.push(()=>oe(i,"value",f)),{c(){e=A("div"),t=A("p"),t.textContent="X-axis Curve",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};!l&&c[0]&2&&(l=!0,d.value=a[1].globalIconSettings.xAxisRound,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function Sl(n){let e,t,o,i,l,s;function f(a){n[16](a)}let u={min:0,max:100,handleUpdateFunction:ne.updateAllRoundYAxis};return n[1].globalIconSettings.yAxisRound!==void 0&&(u.value=n[1].globalIconSettings.yAxisRound),i=new we({props:u}),te.push(()=>oe(i,"value",f)),{c(){e=A("div"),t=A("p"),t.textContent="Y-axis Curve",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2")},m(a,c){H(a,e,c),m(e,t),m(e,o),B(i,e,null),s=!0},p(a,c){const d={};!l&&c[0]&2&&(l=!0,d.value=a[1].globalIconSettings.yAxisRound,ie(()=>l=!1)),i.$set(d)},i(a){s||(C(i.$$.fragment,a),s=!0)},o(a){T(i.$$.fragment,a),s=!1},d(a){a&&E(e),U(i)}}}function pl(n){let e,t,o,i,l;return i=new Kt({props:{colorString:n[2].globalColorSettings.innerColor,updateFunction:n[32]}}),{c(){e=A("div"),t=A("p"),t.textContent="Inner Color",o=y(),P(i.$$.fragment),r(t,"class","text-base text-center mb-2"),r(e,"class","flex flex-col mx-auto")},m(s,f){H(s,e,f),m(e,t),m(e,o),B(i,e,null),l=!0},p(s,f){const u={};f[0]&4&&(u.colorString=s[2].globalColorSettings.innerColor),i.$set(u)},i(s){l||(C(i.$$.fragment,s),l=!0)},o(s){T(i.$$.fragment,s),l=!1},d(s){s&&E(e),U(i)}}}function f0(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K,I,ke,Ce,Ie,Xe,ve,Ne,Tn,je,Ee,se,Se,Ve,In,He,Re,yn,Pe,G,Nn,tn,jn,L,Ge,ct,ht,bn,pe,tt,Qe,pt,Gn,Xn,Wn,Jn,On,kn,De,Sn,Rn,Ct,Zn,Pn,Bn,vt,Be,on,Yt,Fn,gt,fn,dt,Un,ln,Dt,ot,cn,mt,Kn,an,Qn,At,it,Mn,_t,xn,Cn,hn,wt,zn,rn,Tt,lt,gn,bt,$n,Ln,rt,st,It;l=new Ho({props:{valuesArray:Kl,value:n[1].globalIconSettings.shape,handleSelectFunction:n[3]}});function vn(Z){n[4](Z)}let En={min:1,max:200,handleUpdateFunction:ne.updateAllWidth};n[1].globalIconSettings.width!==void 0&&(En.value=n[1].globalIconSettings.width),_=new we({props:En}),te.push(()=>oe(_,"value",vn));function Bt(Z){n[5](Z)}let kt={min:1,max:200,handleUpdateFunction:ne.updateAllHeight};n[1].globalIconSettings.height!==void 0&&(kt.value=n[1].globalIconSettings.height),D=new we({props:kt}),te.push(()=>oe(D,"value",Bt));let ye=n[1].globalIconSettings.ringSize!=null&&wl(n),Oe=n[1].globalIconSettings.displayOutline!=null&&bl(n);function at(Z){n[9](Z)}let Xt={min:-20,max:20,step:.25,handleUpdateFunction:ne.updateAllTranslateX};n[1].globalIconSettings.translateX!==void 0&&(Xt.value=n[1].globalIconSettings.translateX),Q=new we({props:Xt}),te.push(()=>oe(Q,"value",at));function uo(Z){n[10](Z)}let yt={min:-20,max:20,step:.25,handleUpdateFunction:ne.updateAllTranslateY};n[1].globalIconSettings.translateY!==void 0&&(yt.value=n[1].globalIconSettings.translateY),v=new we({props:yt}),te.push(()=>oe(v,"value",uo));function To(Z){n[11](Z)}let Ut={min:0,max:360,handleUpdateFunction:ne.updateAllRotateDegree};n[1].globalIconSettings.rotateDegree!==void 0&&(Ut.value=n[1].globalIconSettings.rotateDegree),Ce=new we({props:Ut}),te.push(()=>oe(Ce,"value",To));function Io(Z){n[12](Z)}let zt={min:-10,max:10,step:.01,handleUpdateFunction:ne.updateAllTranslateIconX};n[1].globalIconSettings.iconTranslateX!==void 0&&(zt.value=n[1].globalIconSettings.iconTranslateX),je=new we({props:zt}),te.push(()=>oe(je,"value",Io));function yo(Z){n[13](Z)}let Lt={min:-10,max:10,step:.01,handleUpdateFunction:ne.updateAllTranslateIconY};n[1].globalIconSettings.iconTranslateY!==void 0&&(Lt.value=n[1].globalIconSettings.iconTranslateY),He=new we({props:Lt}),te.push(()=>oe(He,"value",yo));function xe(Z){n[14](Z)}let Ue={min:0,max:3,step:.01,handleUpdateFunction:ne.updateAllIconScale};n[1].globalIconSettings.iconScaling!==void 0&&(Ue.value=n[1].globalIconSettings.iconScaling),tn=new we({props:Ue}),te.push(()=>oe(tn,"value",xe));let $e=n[1].globalIconSettings.xAxisRound!=null&&kl(n),ze=n[1].globalIconSettings.yAxisRound!=null&&Sl(n);Gn=new Kt({props:{colorString:n[2].globalColorSettings.progressColor,updateFunction:n[17]}});function Mo(Z){n[19](Z)}let qt={min:0,max:300,handleUpdateFunction:n[18]};n[2].globalColorSettings.progressContrast!==void 0&&(qt.value=n[2].globalColorSettings.progressContrast),kn=new we({props:qt}),te.push(()=>oe(kn,"value",Mo));function Yo(Z){n[21](Z)}let Nt={min:0,max:20,handleUpdateFunction:n[20]};n[2].globalColorSettings.progressDropShadowAmount!==void 0&&(Nt.value=n[2].globalColorSettings.progressDropShadowAmount),Pn=new we({props:Nt}),te.push(()=>oe(Pn,"value",Yo)),Fn=new Kt({props:{colorString:n[2].globalColorSettings.iconColor,updateFunction:n[22]}});function Xo(Z){n[24](Z)}let jt={min:0,max:300,handleUpdateFunction:n[23]};n[2].globalColorSettings.iconContrast!==void 0&&(jt.value=n[2].globalColorSettings.iconContrast),ln=new we({props:jt}),te.push(()=>oe(ln,"value",Xo));function Oo(Z){n[26](Z)}let Gt={min:0,max:20,handleUpdateFunction:n[25]};n[2].globalColorSettings.iconDropShadowAmount!==void 0&&(Gt.value=n[2].globalColorSettings.iconDropShadowAmount),an=new we({props:Gt}),te.push(()=>oe(an,"value",Oo)),xn=new Kt({props:{colorString:n[2].globalColorSettings.outlineColor,updateFunction:n[27]}});function Fo(Z){n[29](Z)}let Wt={min:0,max:300,handleUpdateFunction:n[28]};n[2].globalColorSettings.outlineContrast!==void 0&&(Wt.value=n[2].globalColorSettings.outlineContrast),rn=new we({props:Wt}),te.push(()=>oe(rn,"value",Fo));function en(Z){n[31](Z)}let Le={min:0,max:20,handleUpdateFunction:n[30]};n[2].globalColorSettings.outlineDropShadowAmount!==void 0&&(Le.value=n[2].globalColorSettings.outlineDropShadowAmount),Ln=new we({props:Le}),te.push(()=>oe(Ln,"value",en));let _e=n[2].globalColorSettings.editableColors.innerColor&&pl(n);return{c(){e=A("div"),t=A("div"),o=A("p"),o.textContent="Icon Shape",i=y(),P(l.$$.fragment),s=y(),f=A("div"),f.innerHTML=`

Global Size & Position Section

-
`,u=y(),a=A("div"),c=A("div"),d=A("p"),d.textContent="Width Size",h=y(),P(_.$$.fragment),b=y(),w=A("div"),g=A("p"),g.textContent="Height Size",S=y(),P(D.$$.fragment),$=y(),ye&&ye.c(),W=y(),Oe&&Oe.c(),q=y(),j=A("div"),x=A("p"),x.textContent="X-axis Position",V=y(),P(Q.$$.fragment),X=y(),p=A("div"),z=A("p"),z.textContent="Y-axis Position",J=y(),P(v.$$.fragment),ee=y(),K=A("div"),I=A("p"),I.textContent="Rotation",ke=y(),P(Ce.$$.fragment),Xe=y(),ve=A("div"),Ne=A("p"),Ne.textContent="Icon X-axis Position",Tn=y(),P(je.$$.fragment),se=y(),Se=A("div"),Ve=A("p"),Ve.textContent="Icon Y-axis Position",In=y(),P(He.$$.fragment),yn=y(),Pe=A("div"),G=A("p"),G.textContent="Icon Size",Nn=y(),P(tn.$$.fragment),L=y(),$e&&$e.c(),Ge=y(),ze&&ze.c(),ct=y(),ht=A("div"),ht.innerHTML=`

Global Color Section

-
`,bn=y(),pe=A("div"),tt=A("div"),Qe=A("p"),Qe.textContent="Progress Color",pt=y(),P(Gn.$$.fragment),Xn=y(),Wn=A("div"),Jn=A("p"),Jn.textContent="Progress Contrast",On=y(),P(kn.$$.fragment),Sn=y(),Rn=A("div"),Ct=A("p"),Ct.textContent="Progress Shadow",Zn=y(),P(Pn.$$.fragment),vt=y(),Be=A("div"),on=A("p"),on.textContent="Icon Color",Yt=y(),P(Fn.$$.fragment),gt=y(),fn=A("div"),dt=A("p"),dt.textContent="Icon Contrast",Un=y(),P(ln.$$.fragment),ot=y(),cn=A("div"),mt=A("p"),mt.textContent="Icon Shadow",Kn=y(),P(an.$$.fragment),At=y(),it=A("div"),Mn=A("p"),Mn.textContent="Outline Color",_t=y(),P(xn.$$.fragment),Cn=y(),hn=A("div"),wt=A("p"),wt.textContent="Outline Contrast",zn=y(),P(rn.$$.fragment),lt=y(),gn=A("div"),bt=A("p"),bt.textContent="Outline Shadow",$n=y(),P(Ln.$$.fragment),st=y(),_e&&_e.c(),r(o,"class","text-lg text-center mb-2"),r(t,"class","w-50"),r(e,"class","flex justify-center mb-8"),r(f,"class","mx-8"),r(d,"class","text-base text-center mb-2"),r(g,"class","text-base text-center mb-2"),r(x,"class","text-base text-center mb-2"),r(z,"class","text-base text-center mb-2"),r(I,"class","text-base text-center mb-2"),r(Ne,"class","text-base text-center mb-2"),r(Ve,"class","text-base text-center mb-2"),r(G,"class","text-base text-center mb-2"),r(a,"class","mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end"),r(ht,"class","mx-8 mt-8"),r(Qe,"class","text-base text-center mb-2"),r(tt,"class","flex flex-col mx-auto"),r(Jn,"class","text-base text-center mb-2"),r(Ct,"class","text-base text-center mb-2"),r(on,"class","text-base text-center mb-2"),r(Be,"class","flex flex-col mx-auto"),r(dt,"class","text-base text-center mb-2"),r(mt,"class","text-base text-center mb-2"),r(Mn,"class","text-base text-center mb-2"),r(it,"class","flex flex-col mx-auto"),r(wt,"class","text-base text-center mb-2"),r(bt,"class","text-base text-center mb-2"),r(pe,"class","mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6")},m(Z,me){H(Z,e,me),m(e,t),m(t,o),m(t,i),B(l,t,null),H(Z,s,me),H(Z,f,me),H(Z,u,me),H(Z,a,me),m(a,c),m(c,d),m(c,h),B(_,c,null),m(a,b),m(a,w),m(w,g),m(w,S),B(D,w,null),m(a,$),ye&&ye.m(a,null),m(a,W),Oe&&Oe.m(a,null),m(a,q),m(a,j),m(j,x),m(j,V),B(Q,j,null),m(a,X),m(a,p),m(p,z),m(p,J),B(v,p,null),m(a,ee),m(a,K),m(K,I),m(K,ke),B(Ce,K,null),m(a,Xe),m(a,ve),m(ve,Ne),m(ve,Tn),B(je,ve,null),m(a,se),m(a,Se),m(Se,Ve),m(Se,In),B(He,Se,null),m(a,yn),m(a,Pe),m(Pe,G),m(Pe,Nn),B(tn,Pe,null),m(a,L),$e&&$e.m(a,null),m(a,Ge),ze&&ze.m(a,null),H(Z,ct,me),H(Z,ht,me),H(Z,bn,me),H(Z,pe,me),m(pe,tt),m(tt,Qe),m(tt,pt),B(Gn,tt,null),m(pe,Xn),m(pe,Wn),m(Wn,Jn),m(Wn,On),B(kn,Wn,null),m(pe,Sn),m(pe,Rn),m(Rn,Ct),m(Rn,Zn),B(Pn,Rn,null),m(pe,vt),m(pe,Be),m(Be,on),m(Be,Yt),B(Fn,Be,null),m(pe,gt),m(pe,fn),m(fn,dt),m(fn,Un),B(ln,fn,null),m(pe,ot),m(pe,cn),m(cn,mt),m(cn,Kn),B(an,cn,null),m(pe,At),m(pe,it),m(it,Mn),m(it,_t),B(xn,it,null),m(pe,Cn),m(pe,hn),m(hn,wt),m(hn,zn),B(rn,hn,null),m(pe,lt),m(pe,gn),m(gn,bt),m(gn,$n),B(Ln,gn,null),m(pe,st),_e&&_e.m(pe,null),It=!0},p(Z,me){const Qt={};me[0]&2&&(Qt.value=Z[1].globalIconSettings.shape),l.$set(Qt);const xt={};!k&&me[0]&2&&(k=!0,xt.value=Z[1].globalIconSettings.width,ie(()=>k=!1)),_.$set(xt);const $t={};!Y&&me[0]&2&&(Y=!0,$t.value=Z[1].globalIconSettings.height,ie(()=>Y=!1)),D.$set($t),Z[1].globalIconSettings.ringSize!=null?ye?(ye.p(Z,me),me[0]&2&&C(ye,1)):(ye=wl(Z),ye.c(),C(ye,1),ye.m(a,W)):ye&&(he(),T(ye,1,1,()=>{ye=null}),ge()),Z[1].globalIconSettings.displayOutline!=null?Oe?(Oe.p(Z,me),me[0]&2&&C(Oe,1)):(Oe=bl(Z),Oe.c(),C(Oe,1),Oe.m(a,q)):Oe&&(he(),T(Oe,1,1,()=>{Oe=null}),ge());const eo={};!M&&me[0]&2&&(M=!0,eo.value=Z[1].globalIconSettings.translateX,ie(()=>M=!1)),Q.$set(eo);const no={};!ae&&me[0]&2&&(ae=!0,no.value=Z[1].globalIconSettings.translateY,ie(()=>ae=!1)),v.$set(no);const to={};!Ie&&me[0]&2&&(Ie=!0,to.value=Z[1].globalIconSettings.rotateDegree,ie(()=>Ie=!1)),Ce.$set(to);const oo={};!Ee&&me[0]&2&&(Ee=!0,oo.value=Z[1].globalIconSettings.iconTranslateX,ie(()=>Ee=!1)),je.$set(oo);const io={};!Re&&me[0]&2&&(Re=!0,io.value=Z[1].globalIconSettings.iconTranslateY,ie(()=>Re=!1)),He.$set(io);const lo={};!jn&&me[0]&2&&(jn=!0,lo.value=Z[1].globalIconSettings.iconScaling,ie(()=>jn=!1)),tn.$set(lo),Z[1].globalIconSettings.xAxisRound!=null?$e?($e.p(Z,me),me[0]&2&&C($e,1)):($e=kl(Z),$e.c(),C($e,1),$e.m(a,Ge)):$e&&(he(),T($e,1,1,()=>{$e=null}),ge()),Z[1].globalIconSettings.yAxisRound!=null?ze?(ze.p(Z,me),me[0]&2&&C(ze,1)):(ze=Sl(Z),ze.c(),C(ze,1),ze.m(a,null)):ze&&(he(),T(ze,1,1,()=>{ze=null}),ge());const ro={};me[0]&4&&(ro.colorString=Z[2].globalColorSettings.progressColor),Gn.$set(ro);const qe={};!De&&me[0]&4&&(De=!0,qe.value=Z[2].globalColorSettings.progressContrast,ie(()=>De=!1)),kn.$set(qe);const F={};!Bn&&me[0]&4&&(Bn=!0,F.value=Z[2].globalColorSettings.progressDropShadowAmount,ie(()=>Bn=!1)),Pn.$set(F);const le={};me[0]&4&&(le.colorString=Z[2].globalColorSettings.iconColor),Fn.$set(le);const Jt={};!Dt&&me[0]&4&&(Dt=!0,Jt.value=Z[2].globalColorSettings.iconContrast,ie(()=>Dt=!1)),ln.$set(Jt);const Ot={};!Qn&&me[0]&4&&(Qn=!0,Ot.value=Z[2].globalColorSettings.iconDropShadowAmount,ie(()=>Qn=!1)),an.$set(Ot);const Zt={};me[0]&4&&(Zt.colorString=Z[2].globalColorSettings.outlineColor),xn.$set(Zt);const Ft={};!Tt&&me[0]&4&&(Tt=!0,Ft.value=Z[2].globalColorSettings.outlineContrast,ie(()=>Tt=!1)),rn.$set(Ft);const N={};!rt&&me[0]&4&&(rt=!0,N.value=Z[2].globalColorSettings.outlineDropShadowAmount,ie(()=>rt=!1)),Ln.$set(N),Z[2].globalColorSettings.editableColors.innerColor?_e?(_e.p(Z,me),me[0]&4&&C(_e,1)):(_e=pl(Z),_e.c(),C(_e,1),_e.m(pe,null)):_e&&(he(),T(_e,1,1,()=>{_e=null}),ge())},i(Z){It||(C(l.$$.fragment,Z),C(_.$$.fragment,Z),C(D.$$.fragment,Z),C(ye),C(Oe),C(Q.$$.fragment,Z),C(v.$$.fragment,Z),C(Ce.$$.fragment,Z),C(je.$$.fragment,Z),C(He.$$.fragment,Z),C(tn.$$.fragment,Z),C($e),C(ze),C(Gn.$$.fragment,Z),C(kn.$$.fragment,Z),C(Pn.$$.fragment,Z),C(Fn.$$.fragment,Z),C(ln.$$.fragment,Z),C(an.$$.fragment,Z),C(xn.$$.fragment,Z),C(rn.$$.fragment,Z),C(Ln.$$.fragment,Z),C(_e),It=!0)},o(Z){T(l.$$.fragment,Z),T(_.$$.fragment,Z),T(D.$$.fragment,Z),T(ye),T(Oe),T(Q.$$.fragment,Z),T(v.$$.fragment,Z),T(Ce.$$.fragment,Z),T(je.$$.fragment,Z),T(He.$$.fragment,Z),T(tn.$$.fragment,Z),T($e),T(ze),T(Gn.$$.fragment,Z),T(kn.$$.fragment,Z),T(Pn.$$.fragment,Z),T(Fn.$$.fragment,Z),T(ln.$$.fragment,Z),T(an.$$.fragment,Z),T(xn.$$.fragment,Z),T(rn.$$.fragment,Z),T(Ln.$$.fragment,Z),T(_e),It=!1},d(Z){Z&&E(e),U(l),Z&&E(s),Z&&E(f),Z&&E(u),Z&&E(a),U(_),U(D),ye&&ye.d(),Oe&&Oe.d(),U(Q),U(v),U(Ce),U(je),U(He),U(tn),$e&&$e.d(),ze&&ze.d(),Z&&E(ct),Z&&E(ht),Z&&E(bn),Z&&E(pe),U(Gn),U(kn),U(Pn),U(Fn),U(ln),U(an),U(xn),U(rn),U(Ln),_e&&_e.d()}}}function c0(n){let e,t,o,i,l;function s(u){n[33](u)}let f={name:"Global Status Icons Settings",icon:Lr,color:"white",$$slots:{default:[f0]},$$scope:{ctx:n}};return n[0]!==void 0&&(f.group=n[0]),e=new Po({props:f}),te.push(()=>oe(e,"group",s)),{c(){P(e.$$.fragment),o=y(),i=A("hr")},m(u,a){B(e,u,a),H(u,o,a),H(u,i,a),l=!0},p(u,a){const c={};a[0]&6|a[1]&8&&(c.$$scope={dirty:a,ctx:u}),!t&&a[0]&1&&(t=!0,c.group=u[0],ie(()=>t=!1)),e.$set(c)},i(u){l||(C(e.$$.fragment,u),l=!0)},o(u){T(e.$$.fragment,u),l=!1},d(u){U(e,u),u&&E(o),u&&E(i)}}}function h0(n,e,t){let o,i;de(n,ne,I=>t(1,o=I)),de(n,re,I=>t(2,i=I));let{group:l=""}=e;const s=I=>{ne.updateAllShapes(I),re.updateAllIconShapeEditableColor(I)};function f(I){n.$$.not_equal(o.globalIconSettings.width,I)&&(o.globalIconSettings.width=I,ne.set(o))}function u(I){n.$$.not_equal(o.globalIconSettings.height,I)&&(o.globalIconSettings.height=I,ne.set(o))}function a(I){n.$$.not_equal(o.globalIconSettings.ringSize,I)&&(o.globalIconSettings.ringSize=I,ne.set(o))}const c=I=>ne.updateAllDisplayOutline(I);function d(I){n.$$.not_equal(o.globalIconSettings.displayOutline,I)&&(o.globalIconSettings.displayOutline=I,ne.set(o))}function h(I){n.$$.not_equal(o.globalIconSettings.translateX,I)&&(o.globalIconSettings.translateX=I,ne.set(o))}function _(I){n.$$.not_equal(o.globalIconSettings.translateY,I)&&(o.globalIconSettings.translateY=I,ne.set(o))}function k(I){n.$$.not_equal(o.globalIconSettings.rotateDegree,I)&&(o.globalIconSettings.rotateDegree=I,ne.set(o))}function b(I){n.$$.not_equal(o.globalIconSettings.iconTranslateX,I)&&(o.globalIconSettings.iconTranslateX=I,ne.set(o))}function w(I){n.$$.not_equal(o.globalIconSettings.iconTranslateY,I)&&(o.globalIconSettings.iconTranslateY=I,ne.set(o))}function g(I){n.$$.not_equal(o.globalIconSettings.iconScaling,I)&&(o.globalIconSettings.iconScaling=I,ne.set(o))}function S(I){n.$$.not_equal(o.globalIconSettings.xAxisRound,I)&&(o.globalIconSettings.xAxisRound=I,ne.set(o))}function D(I){n.$$.not_equal(o.globalIconSettings.yAxisRound,I)&&(o.globalIconSettings.yAxisRound=I,ne.set(o))}const Y=I=>re.updateAllDefaultEffectColorSetting("progressColor",I),$=I=>re.updateAllDefaultEffectColorSetting("progressContrast",I);function W(I){n.$$.not_equal(i.globalColorSettings.progressContrast,I)&&(i.globalColorSettings.progressContrast=I,re.set(i))}const q=I=>re.updateAllDefaultEffectColorSetting("progressDropShadowAmount",I);function j(I){n.$$.not_equal(i.globalColorSettings.progressDropShadowAmount,I)&&(i.globalColorSettings.progressDropShadowAmount=I,re.set(i))}const x=I=>re.updateAllDefaultEffectColorSetting("iconColor",I),V=I=>re.updateAllDefaultEffectColorSetting("iconContrast",I);function Q(I){n.$$.not_equal(i.globalColorSettings.iconContrast,I)&&(i.globalColorSettings.iconContrast=I,re.set(i))}const M=I=>re.updateAllDefaultEffectColorSetting("iconDropShadowAmount",I);function X(I){n.$$.not_equal(i.globalColorSettings.iconDropShadowAmount,I)&&(i.globalColorSettings.iconDropShadowAmount=I,re.set(i))}const p=I=>re.updateAllDefaultEffectColorSetting("outlineColor",I),z=I=>re.updateAllDefaultEffectColorSetting("outlineContrast",I);function J(I){n.$$.not_equal(i.globalColorSettings.outlineContrast,I)&&(i.globalColorSettings.outlineContrast=I,re.set(i))}const v=I=>re.updateAllDefaultEffectColorSetting("outlineDropShadowAmount",I);function ae(I){n.$$.not_equal(i.globalColorSettings.outlineDropShadowAmount,I)&&(i.globalColorSettings.outlineDropShadowAmount=I,re.set(i))}const ee=I=>re.updateAllDefaultEffectColorSetting("innerColor",I);function K(I){l=I,t(0,l)}return n.$$set=I=>{"group"in I&&t(0,l=I.group)},[l,o,i,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K]}class g0 extends ue{constructor(e){super();fe(this,e,h0,c0,ce,{group:0},null,[-1,-1])}}function Cl(n){let e,t;return e=new Ht({props:{name:"Save Changes To Server",buttonClass:"my-auto",disable:n[1].saveUIState!="ready"}}),e.$on("click",n[5]),{c(){P(e.$$.fragment)},m(o,i){B(e,o,i),t=!0},p(o,i){const l={};i&2&&(l.disable=o[1].saveUIState!="ready"),e.$set(l)},i(o){t||(C(e.$$.fragment,o),t=!0)},o(o){T(e.$$.fragment,o),t=!1},d(o){U(e,o)}}}function d0(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v;function ae(se){n[3](se)}let ee={center:!0};n[1].designMode!==void 0&&(ee.checked=n[1].designMode),u=new Jo({props:ee}),te.push(()=>oe(u,"checked",ae)),h=new Ht({props:{name:"Reset Status Icon Settings",buttonClass:"mr-5 hover:bg-red-600"}}),h.$on("click",n[4]);let K=n[2].adminOnly&&n[2].isAdmin&&Cl(n);function I(se){n[6](se)}let ke={};n[0]!==void 0&&(ke.group=n[0]),g=new g0({props:ke}),te.push(()=>oe(g,"group",I));function Ce(se){n[7](se)}let Ie={};n[0]!==void 0&&(Ie.group=n[0]),Y=new u0({props:Ie}),te.push(()=>oe(Y,"group",Ce));function Xe(se){n[8](se)}let ve={};n[0]!==void 0&&(ve.group=n[0]),q=new Uu({props:ve}),te.push(()=>oe(q,"group",Xe));function Ne(se){n[9](se)}let Tn={};n[0]!==void 0&&(Tn.group=n[0]),V=new Xu({props:Tn}),te.push(()=>oe(V,"group",Ne));function je(se){n[10](se)}let Ee={};return n[0]!==void 0&&(Ee.group=n[0]),X=new Iu({props:Ee}),te.push(()=>oe(X,"group",je)),{c(){e=A("div"),t=A("div"),o=A("div"),o.innerHTML='

Status Icons Settings

',i=y(),l=A("div"),s=A("p"),s.textContent="Design Mode",f=y(),P(u.$$.fragment),c=y(),d=A("div"),P(h.$$.fragment),_=y(),K&&K.c(),k=y(),b=A("hr"),w=y(),P(g.$$.fragment),D=y(),P(Y.$$.fragment),W=y(),P(q.$$.fragment),x=y(),P(V.$$.fragment),M=y(),P(X.$$.fragment),z=y(),J=A("p"),J.textContent=`${String.fromCharCode(...xl)}`,r(o,"class","flex-1 flex flex-col justify-center min-w-min"),r(l,"class","text-base"),r(d,"class","flex flex-1 min-w-min justify-end"),r(t,"class","my-3 text-2xl text-white flex flex-row"),r(e,"class","text-sm flex flex-col text-[#e8e8e8] select-none"),r(J,"class","mt-auto ml-auto opacity-05 pb-[29px] pr-[16px] text-sm select-none")},m(se,Se){H(se,e,Se),m(e,t),m(t,o),m(t,i),m(t,l),m(l,s),m(l,f),B(u,l,null),m(t,c),m(t,d),B(h,d,null),m(d,_),K&&K.m(d,null),m(e,k),m(e,b),m(e,w),B(g,e,null),m(e,D),B(Y,e,null),m(e,W),B(q,e,null),m(e,x),B(V,e,null),m(e,M),B(X,e,null),H(se,z,Se),H(se,J,Se),v=!0},p(se,[Se]){const Ve={};!a&&Se&2&&(a=!0,Ve.checked=se[1].designMode,ie(()=>a=!1)),u.$set(Ve),se[2].adminOnly&&se[2].isAdmin?K?(K.p(se,Se),Se&4&&C(K,1)):(K=Cl(se),K.c(),C(K,1),K.m(d,null)):K&&(he(),T(K,1,1,()=>{K=null}),ge());const In={};!S&&Se&1&&(S=!0,In.group=se[0],ie(()=>S=!1)),g.$set(In);const He={};!$&&Se&1&&($=!0,He.group=se[0],ie(()=>$=!1)),Y.$set(He);const Re={};!j&&Se&1&&(j=!0,Re.group=se[0],ie(()=>j=!1)),q.$set(Re);const yn={};!Q&&Se&1&&(Q=!0,yn.group=se[0],ie(()=>Q=!1)),V.$set(yn);const Pe={};!p&&Se&1&&(p=!0,Pe.group=se[0],ie(()=>p=!1)),X.$set(Pe)},i(se){v||(C(u.$$.fragment,se),C(h.$$.fragment,se),C(K),C(g.$$.fragment,se),C(Y.$$.fragment,se),C(q.$$.fragment,se),C(V.$$.fragment,se),C(X.$$.fragment,se),v=!0)},o(se){T(u.$$.fragment,se),T(h.$$.fragment,se),T(K),T(g.$$.fragment,se),T(Y.$$.fragment,se),T(q.$$.fragment,se),T(V.$$.fragment,se),T(X.$$.fragment,se),v=!1},d(se){se&&E(e),U(u),U(h),K&&K.d(),U(g),U(Y),U(q),U(V),U(X),se&&E(z),se&&E(J)}}}function m0(n,e,t){let o,i;de(n,ne,k=>t(1,o=k)),de(n,Ye,k=>t(2,i=k));let l="";function s(k){n.$$.not_equal(o.designMode,k)&&(o.designMode=k,ne.set(o))}const f=()=>{ne.resetPlayerStatusIcons(),re.resetColorEffects(),ft.resetLayout()},u=()=>{ds(),St(ne,o.saveUIState="updating",o)};function a(k){l=k,t(0,l)}function c(k){l=k,t(0,l)}function d(k){l=k,t(0,l)}function h(k){l=k,t(0,l)}function _(k){l=k,t(0,l)}return[l,o,i,s,f,u,a,c,d,h,_]}class _0 extends ue{constructor(e){super();fe(this,e,m0,d0,ce,{})}}function vl(n,e,t){const o=n.slice();return o[9]=e[t],o}function Dl(n,e,t){const o=n.slice();return o[9]=e[t],o[13]=t,o}function Al(n){let e,t,o,i,l=n[9].name+"",s,f,u,a,c;t=new Fe({props:{icon:n[9].icon,translateY:.27}});function d(){return n[8](n[13])}return{c(){e=A("div"),P(t.$$.fragment),o=y(),i=A("span"),s=be(l),f=y(),r(e,"class","bg-[#171717] px-4 py-4 flex flex-row gap-3 cursor-pointer select-none")},m(h,_){H(h,e,_),B(t,e,null),m(e,o),m(e,i),m(i,s),m(e,f),u=!0,a||(c=Ke(e,"click",d),a=!0)},p(h,_){n=h},i(h){u||(C(t.$$.fragment,h),u=!0)},o(h){T(t.$$.fragment,h),u=!1},d(h){h&&E(e),U(t),a=!1,c()}}}function Tl(n){let e,t,o=(!n[9].adminOnly||!n[2].adminOnly||n[2].adminOnly&&n[2].isAdmin)&&Al(n);return{c(){o&&o.c(),e=dn()},m(i,l){o&&o.m(i,l),H(i,e,l),t=!0},p(i,l){!i[9].adminOnly||!i[2].adminOnly||i[2].adminOnly&&i[2].isAdmin?o?(o.p(i,l),l&4&&C(o,1)):(o=Al(i),o.c(),C(o,1),o.m(e.parentNode,e)):o&&(he(),T(o,1,1,()=>{o=null}),ge())},i(i){t||(C(o),t=!0)},o(i){T(o),t=!1},d(i){o&&o.d(i),i&&E(e)}}}function Il(n){let e,t,o,i;var l=n[9].content;function s(f){return{}}return l&&(t=new l(s())),{c(){e=A("div"),t&&P(t.$$.fragment),o=y(),R(e,"display",n[1].name==n[9].name?"flex":"none"),r(e,"class","flex-col w-5/6 px-5 overflow-y-scroll bg-[#171717]")},m(f,u){H(f,e,u),t&&B(t,e,null),m(e,o),i=!0},p(f,u){if(l!==(l=f[9].content)){if(t){he();const a=t;T(a.$$.fragment,1,0,()=>{U(a,1)}),ge()}l?(t=new l(s()),P(t.$$.fragment),C(t.$$.fragment,1),B(t,e,o)):t=null}(!i||u&2)&&R(e,"display",f[1].name==f[9].name?"flex":"none")},i(f){i||(t&&C(t.$$.fragment,f),i=!0)},o(f){t&&T(t.$$.fragment,f),i=!1},d(f){f&&E(e),t&&U(t)}}}function yl(n){let e,t,o=(!n[9].adminOnly||!n[2].adminOnly||n[2].adminOnly&&n[2].isAdmin)&&Il(n);return{c(){o&&o.c(),e=dn()},m(i,l){o&&o.m(i,l),H(i,e,l),t=!0},p(i,l){!i[9].adminOnly||!i[2].adminOnly||i[2].adminOnly&&i[2].isAdmin?o?(o.p(i,l),l&4&&C(o,1)):(o=Il(i),o.c(),C(o,1),o.m(e.parentNode,e)):o&&(he(),T(o,1,1,()=>{o=null}),ge())},i(i){t||(C(o),t=!0)},o(i){T(o),t=!1},d(i){o&&o.d(i),i&&E(e)}}}function w0(n){let e,t,o,i,l,s,f,u,a,c,d=n[5],h=[];for(let g=0;gT(h[g],1,1,()=>{h[g]=null});let k=n[5],b=[];for(let g=0;gT(b[g],1,1,()=>{b[g]=null});return{c(){e=A("section"),t=A("div"),t.innerHTML='',o=y(),i=A("div"),l=A("div");for(let g=0;gt(2,o=h));let i;const l=screen.width,s=screen.height;let f=[{name:"Hud Settings",icon:Gr,content:mu,adminOnly:!1},{name:"Status Icons",icon:Wr,content:_0,adminOnly:!0}],u=f[0];function a(h){t(1,u=f[h])}function c(h){te[h?"unshift":"push"](()=>{i=h,t(0,i)})}return[i,u,o,l,s,f,a,c,h=>a(h)]}class k0 extends ue{constructor(e){super();fe(this,e,b0,w0,ce,{})}}function Ml(n){let e,t,o=(n[0].showSquareBorder||An)&&Yl(),i=n[0].showCircleBorder&&Xl();return{c(){e=A("div"),o&&o.c(),t=y(),i&&i.c(),r(e,"class","mapborder svelte-fe3cn0")},m(l,s){H(l,e,s),o&&o.m(e,null),m(e,t),i&&i.m(e,null)},p(l,s){l[0].showSquareBorder||An?o||(o=Yl(),o.c(),o.m(e,t)):o&&(o.d(1),o=null),l[0].showCircleBorder?i||(i=Xl(),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(l){l&&E(e),o&&o.d(),i&&i.d()}}}function Yl(n){let e;return{c(){e=A("div"),r(e,"class","square svelte-fe3cn0")},m(t,o){H(t,e,o)},d(t){t&&E(e)}}}function Xl(n){let e;return{c(){e=A("div"),r(e,"class","circle svelte-fe3cn0")},m(t,o){H(t,e,o)},d(t){t&&E(e)}}}function S0(n){let e,t=(n[0].show||An)&&Ml(n);return{c(){t&&t.c(),e=dn()},m(o,i){t&&t.m(o,i),H(o,e,i)},p(o,[i]){o[0].show||An?t?t.p(o,i):(t=Ml(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Te,o:Te,d(o){t&&t.d(o),o&&E(e)}}}function p0(n,e,t){let o;return de(n,Go,i=>t(0,o=i)),[o]}class C0 extends ue{constructor(e){super();fe(this,e,p0,S0,ce,{})}}function Ol(n){let e,t,o,i,l,s=(n[0].showStreets||An)&&Fl(n),f=n[0].showPointer&&El(),u=n[0].showDegress&&Vl(),a=(n[0].showCompass||An)&&Hl(n);return{c(){e=A("div"),s&&s.c(),t=y(),o=A("div"),f&&f.c(),i=y(),u&&u.c(),l=y(),a&&a.c(),r(o,"class","baseplate svelte-9vhma4"),r(e,"class","baseplateConainer svelte-9vhma4")},m(c,d){H(c,e,d),s&&s.m(e,null),m(e,t),m(e,o),f&&f.m(o,null),m(o,i),u&&u.m(o,null),m(o,l),a&&a.m(o,null)},p(c,d){c[0].showStreets||An?s?s.p(c,d):(s=Fl(c),s.c(),s.m(e,t)):s&&(s.d(1),s=null),c[0].showPointer?f||(f=El(),f.c(),f.m(o,i)):f&&(f.d(1),f=null),c[0].showDegress?u||(u=Vl(),u.c(),u.m(o,l)):u&&(u.d(1),u=null),c[0].showCompass||An?a?a.p(c,d):(a=Hl(c),a.c(),a.m(o,null)):a&&(a.d(1),a=null)},d(c){c&&E(e),s&&s.d(),f&&f.d(),u&&u.d(),a&&a.d()}}}function Fl(n){let e,t,o=n[0].street1+"",i,l,s,f=n[0].street2+"",u;return{c(){e=A("div"),t=A("div"),i=be(o),l=y(),s=A("div"),u=be(f),r(t,"class","street1 svelte-9vhma4"),r(s,"class","street2 svelte-9vhma4"),r(e,"class","street-container svelte-9vhma4")},m(a,c){H(a,e,c),m(e,t),m(t,i),m(e,l),m(e,s),m(s,u)},p(a,c){c&1&&o!==(o=a[0].street1+"")&&un(i,o),c&1&&f!==(f=a[0].street2+"")&&un(u,f)},d(a){a&&E(e)}}}function El(n){let e;return{c(){e=A("div"),e.textContent="\u02C5",r(e,"class","pointer svelte-9vhma4")},m(t,o){H(t,e,o)},d(t){t&&E(e)}}}function Vl(n){let e;return{c(){e=A("div"),r(e,"class","degrees svelte-9vhma4")},m(t,o){H(t,e,o)},d(t){t&&E(e)}}}function Hl(n){let e,t,o,i,l,s,f,u,a,c,d,h,_,k,b,w,g,S,D,Y,$,W,q,j,x,V,Q,M,X,p,z,J,v,ae,ee,K,I,ke,Ce,Ie;return{c(){e=O("svg"),t=O("rect"),o=O("rect"),i=O("rect"),l=O("rect"),s=O("rect"),f=O("rect"),u=O("rect"),a=O("rect"),c=O("rect"),d=O("rect"),h=O("rect"),_=O("rect"),k=O("rect"),w=y(),g=O("svg"),S=O("text"),D=be("N"),Y=O("text"),$=be("N"),W=O("text"),q=be("NW"),j=O("text"),x=be("NW"),V=O("text"),Q=be("NE"),M=O("text"),X=be("NE"),p=O("text"),z=be("E"),J=O("text"),v=be("SE"),ae=O("text"),ee=be("S"),K=O("text"),I=be("SW"),ke=O("text"),Ce=be("W"),r(t,"width","3"),r(t,"stroke","black"),r(t,"fill","white"),r(t,"stroke-width","0.5"),r(t,"stroke-opacity","0.6"),r(t,"height","20"),r(t,"x","-90"),r(o,"width","3"),r(o,"stroke","black"),r(o,"fill","white"),r(o,"stroke-width","0.5"),r(o,"stroke-opacity","0.6"),r(o,"height","9"),r(o,"x","-45"),r(i,"width","4.5"),r(i,"stroke","black"),r(i,"fill","white"),r(i,"stroke-width","0.5"),r(i,"stroke-opacity","0.6"),r(i,"height","20"),r(i,"x","0"),r(l,"width","3"),r(l,"stroke","black"),r(l,"fill","white"),r(l,"stroke-width","0.5"),r(l,"stroke-opacity","0.6"),r(l,"height","9"),r(l,"x","45"),r(s,"width","4.5"),r(s,"stroke","black"),r(s,"fill","white"),r(s,"stroke-width","0.5"),r(s,"stroke-opacity","0.6"),r(s,"height","20"),r(s,"x","90"),r(f,"width","3"),r(f,"stroke","black"),r(f,"fill","white"),r(f,"stroke-width","0.5"),r(f,"stroke-opacity","0.6"),r(f,"height","9"),r(f,"x","135"),r(u,"width","4.5"),r(u,"stroke","black"),r(u,"fill","white"),r(u,"stroke-width","0.5"),r(u,"stroke-opacity","0.6"),r(u,"height","20"),r(u,"x","180"),r(a,"width","3"),r(a,"stroke","black"),r(a,"fill","white"),r(a,"stroke-width","0.5"),r(a,"stroke-opacity","0.6"),r(a,"height","9"),r(a,"x","225"),r(c,"width","4.5"),r(c,"stroke","black"),r(c,"fill","white"),r(c,"stroke-width","0.5"),r(c,"stroke-opacity","0.6"),r(c,"height","20"),r(c,"x","270"),r(d,"width","3"),r(d,"stroke","black"),r(d,"fill","white"),r(d,"stroke-width","0.5"),r(d,"stroke-opacity","0.6"),r(d,"height","9"),r(d,"x","315"),r(h,"width","4.5"),r(h,"stroke","black"),r(h,"fill","white"),r(h,"stroke-width","0.5"),r(h,"stroke-opacity","0.6"),r(h,"height","20"),r(h,"x","360"),r(_,"width","3"),r(_,"stroke","black"),r(_,"fill","white"),r(_,"stroke-width","0.5"),r(_,"stroke-opacity","0.6"),r(_,"height","9"),r(_,"x","405"),r(k,"width","3"),r(k,"stroke","black"),r(k,"fill","white"),r(k,"stroke-width","0.5"),r(k,"stroke-opacity","0.6"),r(k,"height","20"),r(k,"x","450"),r(e,"class","bezel svelte-9vhma4"),r(e,"viewBox",b=n[1]+" 0 180 5"),r(S,"x","0"),r(S,"y","1.5"),r(S,"dominant-baseline","middle"),r(S,"text-anchor","middle"),r(S,"fill","yellow"),r(Y,"x","360"),r(Y,"y","1.5"),r(Y,"dominant-baseline","middle"),r(Y,"text-anchor","middle"),r(Y,"fill","yellow"),r(W,"x","315"),r(W,"y","-11"),r(W,"dominant-baseline","middle"),r(W,"text-anchor","middle"),r(W,"fill","white"),r(W,"class","bearingText svelte-9vhma4"),r(j,"x","-45"),r(j,"y","-11"),r(j,"dominant-baseline","middle"),r(j,"text-anchor","middle"),r(j,"fill","white"),r(j,"class","bearingText svelte-9vhma4"),r(V,"x","45"),r(V,"y","-11"),r(V,"dominant-baseline","middle"),r(V,"text-anchor","middle"),r(V,"fill","white"),r(V,"class","bearingText svelte-9vhma4"),r(M,"x","405"),r(M,"y","-11"),r(M,"dominant-baseline","middle"),r(M,"text-anchor","middle"),r(M,"fill","white"),r(M,"class","bearingText svelte-9vhma4"),r(p,"x","90"),r(p,"y","1.5"),r(p,"dominant-baseline","middle"),r(p,"text-anchor","middle"),r(p,"fill","white"),r(J,"x","135"),r(J,"y","-11"),r(J,"dominant-baseline","middle"),r(J,"text-anchor","middle"),r(J,"fill","white"),r(J,"class","bearingText svelte-9vhma4"),r(ae,"x","180"),r(ae,"y","1.5"),r(ae,"dominant-baseline","middle"),r(ae,"text-anchor","middle"),r(ae,"fill","white"),r(K,"x","225"),r(K,"y","-11"),r(K,"dominant-baseline","middle"),r(K,"text-anchor","middle"),r(K,"fill","white"),r(K,"class","bearingText svelte-9vhma4"),r(ke,"x","270"),r(ke,"y","1.5"),r(ke,"dominant-baseline","middle"),r(ke,"text-anchor","middle"),r(ke,"fill","white"),r(g,"class","bearing svelte-9vhma4"),r(g,"viewBox",Ie=n[1]+" 0 180 1.5")},m(Xe,ve){H(Xe,e,ve),m(e,t),m(e,o),m(e,i),m(e,l),m(e,s),m(e,f),m(e,u),m(e,a),m(e,c),m(e,d),m(e,h),m(e,_),m(e,k),H(Xe,w,ve),H(Xe,g,ve),m(g,S),m(S,D),m(g,Y),m(Y,$),m(g,W),m(W,q),m(g,j),m(j,x),m(g,V),m(V,Q),m(g,M),m(M,X),m(g,p),m(p,z),m(g,J),m(J,v),m(g,ae),m(ae,ee),m(g,K),m(K,I),m(g,ke),m(ke,Ce)},p(Xe,ve){ve&2&&b!==(b=Xe[1]+" 0 180 5")&&r(e,"viewBox",b),ve&2&&Ie!==(Ie=Xe[1]+" 0 180 1.5")&&r(g,"viewBox",Ie)},d(Xe){Xe&&E(e),Xe&&E(w),Xe&&E(g)}}}function v0(n){let e,t=(n[0].show||An)&&Ol(n);return{c(){t&&t.c(),e=dn()},m(o,i){t&&t.m(o,i),H(o,e,i)},p(o,[i]){o[0].show||An?t?t.p(o,i):(t=Ol(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Te,o:Te,d(o){t&&t.d(o),o&&E(e)}}}function D0(n,e,t){let o,i;de(n,Eo,f=>t(0,o=f));const l=nn(0,{duration:600,easing:Ao});de(n,l,f=>t(1,i=f));let s=o.heading;return n.$$.update=()=>{n.$$.dirty&9&&(s>230&&o.heading<-50||s<-50&&o.heading>230?l.set(o.heading,{duration:0,easing:Ao}):l.set(o.heading,{duration:600,easing:Ao}),t(3,s=o.heading))},[o,i,l,s]}class A0 extends ue{constructor(e){super();fe(this,e,D0,v0,ce,{})}}function Rl(n){let e,t,o,i,l=n[0].cash+"",s,f,u;return{c(){e=A("div"),t=A("p"),o=A("span"),o.textContent="$\xA0",i=A("span"),s=be(l),r(o,"id","sign"),r(o,"class","svelte-12ge6tb"),r(i,"id","money"),r(i,"class","svelte-12ge6tb")},m(a,c){H(a,e,c),m(e,t),m(t,o),m(t,i),m(i,s),u=!0},p(a,c){(!u||c&1)&&l!==(l=a[0].cash+"")&&un(s,l)},i(a){u||(a&&Mt(()=>{f||(f=Yn(e,qn,{duration:1e3},!0)),f.run(1)}),u=!0)},o(a){a&&(f||(f=Yn(e,qn,{duration:1e3},!1)),f.run(0)),u=!1},d(a){a&&E(e),a&&f&&f.end()}}}function Pl(n){let e,t,o,i,l=n[0].bank+"",s,f,u;return{c(){e=A("div"),t=A("p"),o=A("span"),o.textContent="$\xA0",i=A("span"),s=be(l),r(o,"id","sign"),r(o,"class","svelte-12ge6tb"),r(i,"id","bank"),r(i,"class","svelte-12ge6tb")},m(a,c){H(a,e,c),m(e,t),m(t,o),m(t,i),m(i,s),u=!0},p(a,c){(!u||c&1)&&l!==(l=a[0].bank+"")&&un(s,l)},i(a){u||(a&&Mt(()=>{f||(f=Yn(e,qn,{duration:1e3},!0)),f.run(1)}),u=!0)},o(a){a&&(f||(f=Yn(e,qn,{duration:1e3},!1)),f.run(0)),u=!1},d(a){a&&E(e),a&&f&&f.end()}}}function Bl(n){let e,t,o;function i(f,u){if(f[0].plus)return I0;if(f[0].minus)return T0}let l=i(n),s=l&&l(n);return{c(){e=A("div"),s&&s.c()},m(f,u){H(f,e,u),s&&s.m(e,null),o=!0},p(f,u){l===(l=i(f))&&s?s.p(f,u):(s&&s.d(1),s=l&&l(f),s&&(s.c(),s.m(e,null)))},i(f){o||(f&&Mt(()=>{t||(t=Yn(e,qn,{duration:1e3},!0)),t.run(1)}),o=!0)},o(f){f&&(t||(t=Yn(e,qn,{duration:1e3},!1)),t.run(0)),o=!1},d(f){f&&E(e),s&&s.d(),f&&t&&t.end()}}}function T0(n){let e,t,o,i=n[0].amount+"",l;return{c(){e=A("p"),t=A("span"),t.textContent="-\xA0",o=A("span"),l=be(i),r(t,"id","minus"),r(t,"class","svelte-12ge6tb"),r(o,"id","money"),r(o,"class","svelte-12ge6tb"),r(e,"id","minus"),r(e,"class","svelte-12ge6tb")},m(s,f){H(s,e,f),m(e,t),m(e,o),m(o,l)},p(s,f){f&1&&i!==(i=s[0].amount+"")&&un(l,i)},d(s){s&&E(e)}}}function I0(n){let e,t,o,i=n[0].amount+"",l;return{c(){e=A("p"),t=A("span"),t.textContent="+\xA0",o=A("span"),l=be(i),r(t,"id","plus"),r(t,"class","svelte-12ge6tb"),r(o,"id","money"),r(o,"class","svelte-12ge6tb"),r(e,"id","money"),r(e,"class","svelte-12ge6tb")},m(s,f){H(s,e,f),m(e,t),m(e,o),m(o,l)},p(s,f){f&1&&i!==(i=s[0].amount+"")&&un(l,i)},d(s){s&&E(e)}}}function y0(n){let e,t,o,i=n[0].showCash&&Rl(n),l=n[0].showBank&&Pl(n),s=n[0].showUpdate&&Bl(n);return{c(){e=A("div"),i&&i.c(),t=y(),l&&l.c(),o=y(),s&&s.c(),r(e,"id","money-container"),r(e,"class","svelte-12ge6tb")},m(f,u){H(f,e,u),i&&i.m(e,null),m(e,t),l&&l.m(e,null),m(e,o),s&&s.m(e,null)},p(f,[u]){f[0].showCash?i?(i.p(f,u),u&1&&C(i,1)):(i=Rl(f),i.c(),C(i,1),i.m(e,t)):i&&(he(),T(i,1,1,()=>{i=null}),ge()),f[0].showBank?l?(l.p(f,u),u&1&&C(l,1)):(l=Pl(f),l.c(),C(l,1),l.m(e,o)):l&&(he(),T(l,1,1,()=>{l=null}),ge()),f[0].showUpdate?s?(s.p(f,u),u&1&&C(s,1)):(s=Bl(f),s.c(),C(s,1),s.m(e,null)):s&&(he(),T(s,1,1,()=>{s=null}),ge())},i(f){C(i),C(l),C(s)},o(f){T(i),T(l),T(s)},d(f){f&&E(e),i&&i.d(),l&&l.d(),s&&s.d()}}}function M0(n,e,t){let o;return de(n,Lo,i=>t(0,o=i)),[o]}class Y0 extends ue{constructor(e){super();fe(this,e,M0,y0,ce,{})}}function Ul(n){let e,t,o,i;return{c(){e=O("circle"),r(e,"opacity",n[9]),r(e,"fill","transparent"),r(e,"stroke",n[8]),r(e,"stroke-dashoffset",t=n[20]-n[15]/100*n[20]),r(e,"stroke-dasharray",o=n[20]+" "+n[20]),r(e,"stroke-width",n[11]),r(e,"r",n[19]),r(e,"cx",n[18]),r(e,"cy",n[18]),r(e,"transform",i="rotate(-90, "+n[18]+", "+n[18]+")")},m(l,s){H(l,e,s)},p(l,s){s[0]&512&&r(e,"opacity",l[9]),s[0]&256&&r(e,"stroke",l[8]),s[0]&1081344&&t!==(t=l[20]-l[15]/100*l[20])&&r(e,"stroke-dashoffset",t),s[0]&1048576&&o!==(o=l[20]+" "+l[20])&&r(e,"stroke-dasharray",o),s[0]&2048&&r(e,"stroke-width",l[11]),s[0]&524288&&r(e,"r",l[19]),s[0]&262144&&r(e,"cx",l[18]),s[0]&262144&&r(e,"cy",l[18]),s[0]&262144&&i!==(i="rotate(-90, "+l[18]+", "+l[18]+")")&&r(e,"transform",i)},d(l){l&&E(e)}}}function zl(n){let e,t,o,i,l,s;return{c(){e=O("circle"),r(e,"fill",n[6]),r(e,"fill-opacity",n[7]),r(e,"stroke","transparent"),r(e,"stroke-dashoffset",t=0),r(e,"stroke-dasharray",o=n[20]+" "+n[20]),r(e,"stroke-width",i=n[11]-.6),r(e,"r",l=n[19]-n[11]/2+.1),r(e,"cx",n[18]),r(e,"cy",n[18]),r(e,"transform",s="rotate(-90, "+n[18]+", "+n[18]+")")},m(f,u){H(f,e,u)},p(f,u){u[0]&64&&r(e,"fill",f[6]),u[0]&128&&r(e,"fill-opacity",f[7]),u[0]&1048576&&o!==(o=f[20]+" "+f[20])&&r(e,"stroke-dasharray",o),u[0]&2048&&i!==(i=f[11]-.6)&&r(e,"stroke-width",i),u[0]&526336&&l!==(l=f[19]-f[11]/2+.1)&&r(e,"r",l),u[0]&262144&&r(e,"cx",f[18]),u[0]&262144&&r(e,"cy",f[18]),u[0]&262144&&s!==(s="rotate(-90, "+f[18]+", "+f[18]+")")&&r(e,"transform",s)},d(f){f&&E(e)}}}function Ll(n){let e,t=Math.floor(n[22])+"",o,i,l;return{c(){e=O("text"),o=be(t),i=O("text"),l=be(n[17]),r(e,"class","vehicle-number svelte-1goqjlo"),r(e,"fill","white"),r(e,"x","50%"),r(e,"y","45%"),r(e,"dominant-baseline","middle"),r(e,"text-anchor","middle"),r(i,"class","vehicle-text svelte-1goqjlo"),r(i,"fill","white"),r(i,"x","50%"),r(i,"y","70%"),r(i,"dominant-baseline","middle"),r(i,"text-anchor","middle")},m(s,f){H(s,e,f),m(e,o),H(s,i,f),m(i,l)},p(s,f){f[0]&4194304&&t!==(t=Math.floor(s[22])+"")&&un(o,t),f[0]&131072&&un(l,s[17])},d(s){s&&E(e),s&&E(i)}}}function ql(n){let e,t;return e=new Fe({props:{icon:n[1],scale:n[3],translateX:n[4],translateY:n[5],style:"color:"+n[2]}}),{c(){P(e.$$.fragment)},m(o,i){B(e,o,i),t=!0},p(o,i){const l={};i[0]&2&&(l.icon=o[1]),i[0]&8&&(l.scale=o[3]),i[0]&16&&(l.translateX=o[4]),i[0]&32&&(l.translateY=o[5]),i[0]&4&&(l.style="color:"+o[2]),e.$set(l)},i(o){t||(C(e.$$.fragment,o),t=!0)},o(o){T(e.$$.fragment,o),t=!1},d(o){U(e,o)}}}function X0(n){let e,t,o,i,l,s,f,u,a,c,d,h,_=n[0]&&Ul(n),k=n[16]&&zl(n),b=n[17]&&Ll(n),w=n[1]&&ql(n);return{c(){e=O("svg"),t=O("g"),_&&_.c(),o=dn(),k&&k.c(),i=O("circle"),b&&b.c(),u=O("g"),w&&w.c(),r(i,"stroke",n[10]),r(i,"fill","transparent"),r(i,"stroke-dashoffset",n[21]),r(i,"stroke-dasharray",l=n[20]+" "+n[20]),r(i,"stroke-width",n[11]),r(i,"r",n[19]),r(i,"cx",n[18]),r(i,"cy",n[18]),r(i,"transform",s="rotate(-90, "+n[18]+", "+n[18]+")"),r(t,"transform",f=` - `+(n[12]>0?"rotate("+n[12]+" "+n[18]+" "+n[18]+")":"")+` - `+("translate("+n[13]+" "+n[14]+")")),r(e,"width",a=n[18]*2),r(e,"height",c=n[18]*2),r(e,"viewBox",d="0 0 "+n[18]*2+" "+n[18]*2),r(e,"overflow","visible")},m(g,S){H(g,e,S),m(e,t),_&&_.m(t,null),m(t,o),k&&k.m(t,null),m(t,i),b&&b.m(e,null),m(e,u),w&&w.m(u,null),h=!0},p(g,S){g[0]?_?_.p(g,S):(_=Ul(g),_.c(),_.m(t,o)):_&&(_.d(1),_=null),g[16]?k?k.p(g,S):(k=zl(g),k.c(),k.m(t,i)):k&&(k.d(1),k=null),(!h||S[0]&1024)&&r(i,"stroke",g[10]),(!h||S[0]&2097152)&&r(i,"stroke-dashoffset",g[21]),(!h||S[0]&1048576&&l!==(l=g[20]+" "+g[20]))&&r(i,"stroke-dasharray",l),(!h||S[0]&2048)&&r(i,"stroke-width",g[11]),(!h||S[0]&524288)&&r(i,"r",g[19]),(!h||S[0]&262144)&&r(i,"cx",g[18]),(!h||S[0]&262144)&&r(i,"cy",g[18]),(!h||S[0]&262144&&s!==(s="rotate(-90, "+g[18]+", "+g[18]+")"))&&r(i,"transform",s),(!h||S[0]&290816&&f!==(f=` - `+(g[12]>0?"rotate("+g[12]+" "+g[18]+" "+g[18]+")":"")+` - `+("translate("+g[13]+" "+g[14]+")")))&&r(t,"transform",f),g[17]?b?b.p(g,S):(b=Ll(g),b.c(),b.m(e,u)):b&&(b.d(1),b=null),g[1]?w?(w.p(g,S),S[0]&2&&C(w,1)):(w=ql(g),w.c(),C(w,1),w.m(u,null)):w&&(he(),T(w,1,1,()=>{w=null}),ge()),(!h||S[0]&262144&&a!==(a=g[18]*2))&&r(e,"width",a),(!h||S[0]&262144&&c!==(c=g[18]*2))&&r(e,"height",c),(!h||S[0]&262144&&d!==(d="0 0 "+g[18]*2+" "+g[18]*2))&&r(e,"viewBox",d)},i(g){h||(C(w),h=!0)},o(g){T(w),h=!1},d(g){g&&E(e),_&&_.d(),k&&k.d(),b&&b.d(),w&&w.d()}}}function O0(n,e,t){let o,i,{displayOutline:l=!0}=e,{height:s=50}=e,{icon:f=null}=e,{iconColor:u="red"}=e,{iconRotateDegree:a=0}=e,{iconScaling:c=.45}=e,{iconTranslateX:d=0}=e,{iconTranslateY:h=0}=e,{innerColor:_="#212121"}=e,{innerColorOpacity:k=1}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineColorOpacity:g=.4}=e,{progressColor:S="red"}=e,{progressValue:D=100}=e,{ringSize:Y=4}=e,{rotateDegree:$=0}=e,{translateX:W=0}=e,{translateY:q=0}=e,{width:j=50}=e,{maxLengthDisplay:x=100}=e,{maxProgressValue:V=100}=e,{showInnerBG:Q=!1}=e,{displayNumber:M=0}=e,{text:X=""}=e,p=25,z=D/V*100;const J=nn(z,{duration:600,easing:Ao});de(n,J,I=>t(33,o=I));const v=nn(M,{duration:600,easing:Ao});de(n,v,I=>t(22,i=I));let ae=p-Y/2,ee=ae*2*Math.PI,K=ee-o/100*ee;return n.$$set=I=>{"displayOutline"in I&&t(0,l=I.displayOutline),"height"in I&&t(26,s=I.height),"icon"in I&&t(1,f=I.icon),"iconColor"in I&&t(2,u=I.iconColor),"iconRotateDegree"in I&&t(27,a=I.iconRotateDegree),"iconScaling"in I&&t(3,c=I.iconScaling),"iconTranslateX"in I&&t(4,d=I.iconTranslateX),"iconTranslateY"in I&&t(5,h=I.iconTranslateY),"innerColor"in I&&t(6,_=I.innerColor),"innerColorOpacity"in I&&t(7,k=I.innerColorOpacity),"name"in I&&t(28,b=I.name),"outlineColor"in I&&t(8,w=I.outlineColor),"outlineColorOpacity"in I&&t(9,g=I.outlineColorOpacity),"progressColor"in I&&t(10,S=I.progressColor),"progressValue"in I&&t(25,D=I.progressValue),"ringSize"in I&&t(11,Y=I.ringSize),"rotateDegree"in I&&t(12,$=I.rotateDegree),"translateX"in I&&t(13,W=I.translateX),"translateY"in I&&t(14,q=I.translateY),"width"in I&&t(29,j=I.width),"maxLengthDisplay"in I&&t(15,x=I.maxLengthDisplay),"maxProgressValue"in I&&t(30,V=I.maxProgressValue),"showInnerBG"in I&&t(16,Q=I.showInnerBG),"displayNumber"in I&&t(31,M=I.displayNumber),"text"in I&&t(17,X=I.text)},n.$$.update=()=>{n.$$.dirty[0]&1107296256|n.$$.dirty[1]&2&&(t(25,D=Math.min(D,V)),t(32,z=D/V*100),J.set(z)),n.$$.dirty[1]&1&&v.set(M),n.$$.dirty[0]&603979776&&t(18,p=s>j?s/2:j/2),n.$$.dirty[0]&788480&&(t(19,ae=p-Y/2),t(20,ee=ae*2*Math.PI)),n.$$.dirty[0]&1081344|n.$$.dirty[1]&4&&t(21,K=ee-o/(100/x)/100*ee)},[l,f,u,c,d,h,_,k,w,g,S,Y,$,W,q,x,Q,X,p,ae,ee,K,i,J,v,D,s,a,b,j,V,M,z,o]}class oi extends ue{constructor(e){super();fe(this,e,O0,X0,ce,{displayOutline:0,height:26,icon:1,iconColor:2,iconRotateDegree:27,iconScaling:3,iconTranslateX:4,iconTranslateY:5,innerColor:6,innerColorOpacity:7,name:28,outlineColor:8,outlineColorOpacity:9,progressColor:10,progressValue:25,ringSize:11,rotateDegree:12,translateX:13,translateY:14,width:29,maxLengthDisplay:15,maxProgressValue:30,showInnerBG:16,displayNumber:31,text:17},null,[-1,-1])}}function Nl(n){let e,t,o,i,l,s,f,u,a,c,d;t=new oi({props:{maxLengthDisplay:66,rotateDegree:212,ringSize:5.5,progressColor:"white",outlineColor:"black",outlineColorOpacity:.6,height:60,width:60,progressValue:n[0].speed,text:"MPH",displayNumber:n[0].speed,maxProgressValue:180}}),l=new oi({props:{maxLengthDisplay:69,rotateDegree:235,ringSize:3.5,progressColor:n[0].fuelColor,outlineColor:"black",outlineColorOpacity:.6,height:36,width:36,progressValue:n[0].fuel,icon:Jr,iconColor:"white",iconScaling:.38}});let h=n[0].showAltitude&&jl(n);const _=[E0,F0],k=[];function b(w,g){return w[0].showSeatBelt&&w[0].showAltitude?0:w[0].showSeatBelt?1:-1}return~(u=b(n))&&(a=k[u]=_[u](n)),{c(){e=A("div"),P(t.$$.fragment),o=y(),i=A("div"),P(l.$$.fragment),s=y(),h&&h.c(),f=y(),a&&a.c(),c=dn(),r(e,"class","responsive svelte-am3d8l"),r(e,"id","speedometer"),r(i,"class","responsive svelte-am3d8l"),r(i,"id","fuelgauge")},m(w,g){H(w,e,g),B(t,e,null),H(w,o,g),H(w,i,g),B(l,i,null),H(w,s,g),h&&h.m(w,g),H(w,f,g),~u&&k[u].m(w,g),H(w,c,g),d=!0},p(w,g){const S={};g&1&&(S.progressValue=w[0].speed),g&1&&(S.displayNumber=w[0].speed),t.$set(S);const D={};g&1&&(D.progressColor=w[0].fuelColor),g&1&&(D.progressValue=w[0].fuel),l.$set(D),w[0].showAltitude?h?(h.p(w,g),g&1&&C(h,1)):(h=jl(w),h.c(),C(h,1),h.m(f.parentNode,f)):h&&(he(),T(h,1,1,()=>{h=null}),ge());let Y=u;u=b(w),u===Y?~u&&k[u].p(w,g):(a&&(he(),T(k[Y],1,1,()=>{k[Y]=null}),ge()),~u?(a=k[u],a?a.p(w,g):(a=k[u]=_[u](w),a.c()),C(a,1),a.m(c.parentNode,c)):a=null)},i(w){d||(C(t.$$.fragment,w),C(l.$$.fragment,w),C(h),C(a),d=!0)},o(w){T(t.$$.fragment,w),T(l.$$.fragment,w),T(h),T(a),d=!1},d(w){w&&E(e),U(t),w&&E(o),w&&E(i),U(l),w&&E(s),h&&h.d(w),w&&E(f),~u&&k[u].d(w),w&&E(c)}}}function jl(n){let e,t,o;return t=new oi({props:{maxLengthDisplay:75,rotateDegree:225,ringSize:5.5,progressColor:"white",outlineColor:"black",outlineColorOpacity:.6,height:60,width:60,progressValue:n[0].altitude,text:"ALT",displayNumber:n[0].altitude,maxProgressValue:750}}),{c(){e=A("div"),P(t.$$.fragment),r(e,"class","responsive svelte-am3d8l"),r(e,"id","altitudegauge")},m(i,l){H(i,e,l),B(t,e,null),o=!0},p(i,l){const s={};l&1&&(s.progressValue=i[0].altitude),l&1&&(s.displayNumber=i[0].altitude),t.$set(s)},i(i){o||(C(t.$$.fragment,i),o=!0)},o(i){T(t.$$.fragment,i),o=!1},d(i){i&&E(e),U(t)}}}function F0(n){let e,t,o,i,l;return o=new Fe({props:{icon:ii,scale:1.1,style:"color:"+n[0].seatbeltColor}}),{c(){e=A("div"),t=A("div"),P(o.$$.fragment),r(t,"class","responsive svelte-am3d8l"),r(t,"id","seatbelt")},m(s,f){H(s,e,f),m(e,t),B(o,t,null),l=!0},p(s,f){const u={};f&1&&(u.style="color:"+s[0].seatbeltColor),o.$set(u)},i(s){l||(C(o.$$.fragment,s),s&&Mt(()=>{i||(i=Yn(e,qn,{duration:500},!0)),i.run(1)}),l=!0)},o(s){T(o.$$.fragment,s),s&&(i||(i=Yn(e,qn,{duration:500},!1)),i.run(0)),l=!1},d(s){s&&E(e),U(o),s&&i&&i.end()}}}function E0(n){let e,t,o,i,l;return o=new Fe({props:{icon:ii,scale:1.1,style:"color:"+n[0].seatbeltColor}}),{c(){e=A("div"),t=A("div"),P(o.$$.fragment),r(t,"class","responsive svelte-am3d8l"),r(t,"id","seatbeltAltitude")},m(s,f){H(s,e,f),m(e,t),B(o,t,null),l=!0},p(s,f){const u={};f&1&&(u.style="color:"+s[0].seatbeltColor),o.$set(u)},i(s){l||(C(o.$$.fragment,s),s&&Mt(()=>{i||(i=Yn(e,qn,{duration:500},!0)),i.run(1)}),l=!0)},o(s){T(o.$$.fragment,s),s&&(i||(i=Yn(e,qn,{duration:500},!1)),i.run(0)),l=!1},d(s){s&&E(e),U(o),s&&i&&i.end()}}}function V0(n){let e,t,o=(n[0].show||An)&&Nl(n);return{c(){o&&o.c(),e=dn()},m(i,l){o&&o.m(i,l),H(i,e,l),t=!0},p(i,[l]){i[0].show||An?o?(o.p(i,l),l&1&&C(o,1)):(o=Nl(i),o.c(),C(o,1),o.m(e.parentNode,e)):o&&(he(),T(o,1,1,()=>{o=null}),ge())},i(i){t||(C(o),t=!0)},o(i){T(o),t=!1},d(i){o&&o.d(i),i&&E(e)}}}function H0(n,e,t){let o;return de(n,Go,i=>t(0,o=i)),[o]}class R0 extends ue{constructor(e){super();fe(this,e,H0,V0,ce,{})}}const{document:zo}=Zr;function Gl(n){let e,t,o,i,l,s,f,u,a,c;return e=new A0({}),o=new Y0({}),l=new xa({}),f=new R0({}),a=new C0({}),{c(){P(e.$$.fragment),t=y(),P(o.$$.fragment),i=y(),P(l.$$.fragment),s=y(),P(f.$$.fragment),u=y(),P(a.$$.fragment)},m(d,h){B(e,d,h),H(d,t,h),B(o,d,h),H(d,i,h),B(l,d,h),H(d,s,h),B(f,d,h),H(d,u,h),B(a,d,h),c=!0},i(d){c||(C(e.$$.fragment,d),C(o.$$.fragment,d),C(l.$$.fragment,d),C(f.$$.fragment,d),C(a.$$.fragment,d),c=!0)},o(d){T(e.$$.fragment,d),T(o.$$.fragment,d),T(l.$$.fragment,d),T(f.$$.fragment,d),T(a.$$.fragment,d),c=!1},d(d){U(e,d),d&&E(t),U(o,d),d&&E(i),U(l,d),d&&E(s),U(f,d),d&&E(u),U(a,d)}}}function P0(n){let e,t,o,i,l,s,f,u,a,c=!n[0].isCineamticModeChecked&&Gl();return u=new k0({}),{c(){e=A("link"),t=A("link"),o=A("link"),i=A("link"),l=y(),s=A("main"),c&&c.c(),f=y(),P(u.$$.fragment),r(e,"href","https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"),r(e,"rel","stylesheet"),r(t,"href","https://fonts.cdnfonts.com/css/pricedown"),r(t,"rel","stylesheet"),r(o,"href","https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"),r(o,"rel","stylesheet"),r(i,"href","https://fonts.googleapis.com/css2?family=Yantramanav:wght@100;300;400;500;700;900&display=swap"),r(i,"rel","stylesheet"),r(s,"class","bg-transparent min-h-screen")},m(d,h){m(zo.head,e),m(zo.head,t),m(zo.head,o),m(zo.head,i),H(d,l,h),H(d,s,h),c&&c.m(s,null),m(s,f),B(u,s,null),a=!0},p(d,[h]){d[0].isCineamticModeChecked?c&&(he(),T(c,1,1,()=>{c=null}),ge()):c?h&1&&C(c,1):(c=Gl(),c.c(),C(c,1),c.m(s,f))},i(d){a||(C(c),C(u.$$.fragment,d),a=!0)},o(d){T(c),T(u.$$.fragment,d),a=!1},d(d){E(e),E(t),E(o),E(i),d&&E(l),d&&E(s),c&&c.d(),U(u)}}}function B0(n,e,t){let o,i;de(n,ne,f=>t(2,o=f)),de(n,Ye,f=>t(0,i=f)),cs();let l;return(()=>{let f=!0;l=setInterval(()=>{f?(St(ne,o.designProgress+=15,o),o.designProgress>100&&(St(ne,o.designProgress=100,o),f=!f)):(St(ne,o.designProgress-=15,o),o.designProgress<0&&(St(ne,o.designProgress=0,o),f=!f))},1400)})(),Jl(()=>clearInterval(l)),document.onkeyup=Ye.handleKeyUp,[i]}class U0 extends ue{constructor(e){super();fe(this,e,B0,P0,ce,{})}}new U0({target:document.getElementById("app")}); +}`),l=X("g"),o=X("path"),s=X("path"),u=X("path"),a=X("path"),f=X("path"),c=X("path"),h=X("path"),g=X("path"),_=X("path"),S=X("path"),b=X("path"),w=X("path"),m=X("path"),p=X("path"),r(t,"type","text/css"),r(o,"class","st0"),r(o,"d",`M2.93,7.44c-0.05-3.29,2.79-6.17,6.2-6.12c3.31,0.05,6.04,2.79,6.04,6.16c0,3.34-2.79,6.09-6.18,6.08\r + C5.54,13.55,2.85,10.57,2.93,7.44z M4.09,7.05c0,0.07,0.01,0.17,0.02,0.27C4.11,7.4,4.13,7.49,4.15,7.58\r + C4.24,7.96,4.3,7.98,4.59,7.72c0.41-0.38,0.89-0.59,1.43-0.65c0.34-0.03,0.7-0.01,0.97,0.23C7.15,7.44,7.3,7.63,7.23,7.87\r + C7.16,8.11,6.92,8.11,6.71,8.14C6.09,8.22,5.52,8.42,5.02,8.81C4.92,8.9,4.9,8.95,5,9.06c0.37,0.4,0.74,0.78,1.17,1.12\r + c0.85,0.68,1.78,1.25,2.7,1.81c0.14,0.08,0.25,0.06,0.37-0.02c0.51-0.32,1.02-0.63,1.52-0.96c0.85-0.56,1.65-1.17,2.31-1.95\r + c0.09-0.11,0.09-0.16-0.02-0.25c-0.43-0.34-0.92-0.54-1.45-0.63c-0.17-0.03-0.35-0.05-0.52-0.09c-0.16-0.04-0.27-0.15-0.26-0.34\r + c0.02-0.22,0.26-0.52,0.47-0.59c0.41-0.13,0.82-0.14,1.23,0c0.41,0.13,0.75,0.36,1.07,0.64c0.17,0.15,0.23,0.13,0.29-0.09\r + c0.12-0.39,0.15-0.79,0.05-1.18c-0.18-0.67-0.5-1.24-1.23-1.46C12.39,4.99,12.07,4.96,11.74,5C10.8,5.11,9.99,5.52,9.26,6.1\r + c-0.17,0.14-0.27,0.14-0.44,0C8.09,5.52,7.28,5.1,6.34,5.01c-0.61-0.06-1.21,0-1.66,0.5C4.3,5.93,4.09,6.43,4.09,7.05z`),r(s,"class","st1"),r(s,"d",`M31.52,7.55c0.01,0.39-0.03,0.77-0.19,1.13c-0.42,0.94-1.19,1.34-2.18,1.35c-1.37,0.02-2.3-0.83-2.4-2.2\r + c-0.05-0.76,0.06-1.5,0.63-2.06c0.77-0.76,1.7-0.86,2.68-0.53c0.94,0.32,1.38,1.05,1.46,2.01C31.52,7.34,31.52,7.45,31.52,7.55z\r + M30.31,7.56c0-0.25-0.02-0.5-0.1-0.74c-0.16-0.49-0.55-0.78-1.06-0.79c-0.52-0.01-0.91,0.26-1.08,0.75\r + c-0.17,0.49-0.17,0.98-0.03,1.47c0.15,0.54,0.56,0.82,1.11,0.82c0.53-0.01,0.91-0.32,1.07-0.85C30.29,8,30.31,7.78,30.31,7.56z`),r(u,"class","st1"),r(u,"d",`M60.76,7.6c0,0.34-0.04,0.72-0.2,1.08c-0.41,0.94-1.18,1.33-2.16,1.35c-1.41,0.03-2.37-0.88-2.43-2.28\r + C55.95,7.24,56,6.76,56.22,6.3c0.43-0.87,1.39-1.35,2.42-1.22C60,5.24,60.76,6.13,60.76,7.6z M59.54,7.57\r + c0-0.26-0.02-0.53-0.11-0.78c-0.17-0.48-0.55-0.76-1.05-0.77c-0.52-0.01-0.91,0.26-1.08,0.75c-0.17,0.48-0.16,0.97-0.03,1.45\r + c0.15,0.54,0.56,0.83,1.1,0.83c0.54,0,0.93-0.31,1.09-0.85C59.52,8,59.54,7.79,59.54,7.57z`),r(a,"class","st1"),r(a,"d",`M22.55,7.54c0-0.61,0-1.23,0-1.84c0-0.28,0.05-0.37,0.31-0.45c0.78-0.23,1.57-0.26,2.35-0.02\r + c0.59,0.18,0.95,0.59,1.04,1.22c0.09,0.66-0.15,1.18-0.71,1.53c-0.13,0.08-0.14,0.12-0.05,0.24c0.29,0.36,0.56,0.74,0.85,1.1\r + c0.09,0.12,0.08,0.21,0,0.33c-0.23,0.34-0.75,0.41-1.05,0.13c-0.18-0.16-0.29-0.37-0.42-0.57c-0.16-0.24-0.32-0.48-0.47-0.73\r + c-0.08-0.14-0.18-0.19-0.34-0.18c-0.34,0.01-0.34,0-0.34,0.35c0,0.36-0.01,0.71,0,1.07c0,0.12-0.03,0.17-0.15,0.18\r + c-0.18,0.01-0.36,0.05-0.54,0.02c-0.36-0.05-0.48-0.17-0.49-0.54C22.55,8.79,22.55,8.16,22.55,7.54z M23.72,6.74\r + c0,0.18,0,0.36,0,0.55c0,0.07,0,0.12,0.09,0.12c0.27-0.01,0.54,0.03,0.8-0.06C24.95,7.23,25.1,7,25.07,6.65\r + c-0.02-0.3-0.21-0.5-0.53-0.57c-0.21-0.05-0.43-0.04-0.64-0.03c-0.15,0.01-0.2,0.07-0.18,0.21C23.73,6.42,23.72,6.58,23.72,6.74z`),r(f,"class","st1"),r(f,"d",`M65.33,7.38c0-0.67,0-1.35,0-2.02c0-0.12,0.02-0.18,0.16-0.2c0.18-0.02,0.35-0.03,0.52-0.03\r + c0.35,0.02,0.49,0.16,0.5,0.5c0.01,0.42,0.01,0.84,0,1.25c0,0.14,0.03,0.19,0.18,0.18c0.45-0.01,0.9-0.01,1.36,0\r + c0.14,0,0.18-0.03,0.18-0.18c-0.01-0.52,0-1.04-0.01-1.56c0-0.12,0.03-0.16,0.15-0.18c0.2-0.03,0.4-0.04,0.6-0.02\r + c0.27,0.03,0.39,0.16,0.43,0.43c0.01,0.07,0.01,0.15,0.01,0.22c0,1.3,0,2.6,0,3.91c0,0.16-0.04,0.22-0.2,0.22\r + c-0.17,0.01-0.34,0.04-0.5,0.02c-0.36-0.05-0.48-0.17-0.49-0.54c-0.01-0.4-0.01-0.8,0-1.19c0-0.15-0.02-0.21-0.19-0.2\r + c-0.45,0.01-0.9,0.01-1.36,0c-0.13,0-0.17,0.03-0.17,0.17c0.01,0.52,0,1.04,0.01,1.56c0,0.13-0.04,0.18-0.16,0.19\r + c-0.19,0.01-0.37,0.05-0.56,0.02c-0.32-0.05-0.45-0.18-0.45-0.51c-0.01-0.41,0-0.82,0-1.23C65.33,7.92,65.33,7.65,65.33,7.38z`),r(c,"class","st1"),r(c,"d",`M34.95,7.56c0-0.57,0-1.13,0-1.7c0-0.43,0.22-0.65,0.64-0.65c0.8,0,1.6,0,2.41,0c0.12,0,0.17,0.04,0.2,0.15\r + c0.04,0.12,0.06,0.24,0.05,0.36c-0.02,0.3-0.15,0.42-0.45,0.43c-0.51,0-1.01,0.01-1.52,0c-0.15,0-0.2,0.03-0.19,0.19\r + c0.01,0.19,0.01,0.38,0,0.57c-0.01,0.13,0.04,0.16,0.16,0.15c0.51-0.01,1.01,0,1.52-0.01c0.13,0,0.18,0.05,0.22,0.16\r + c0.04,0.12,0.05,0.24,0.05,0.36c-0.02,0.28-0.16,0.42-0.44,0.42c-0.44,0-0.89,0.01-1.34,0c-0.13,0-0.18,0.03-0.17,0.17\r + c0.01,0.22,0.01,0.45,0,0.67c-0.01,0.15,0.05,0.18,0.18,0.18c0.58-0.01,1.16,0,1.74-0.01c0.13,0,0.19,0.05,0.23,0.17\r + c0.04,0.14,0.07,0.29,0.04,0.44c-0.04,0.21-0.16,0.33-0.37,0.33c-0.8,0.01-1.6,0.01-2.41,0c-0.34-0.01-0.55-0.25-0.55-0.6\r + C34.95,8.72,34.96,8.14,34.95,7.56z`),r(h,"class","st1"),r(h,"d",`M19.46,9.15c0,0.21,0,0.42,0,0.63c0,0.08-0.02,0.13-0.1,0.14c-0.21,0.02-0.41,0.06-0.62,0.02\r + c-0.32-0.05-0.45-0.18-0.45-0.51c-0.01-0.51,0-1.02,0-1.54c0-0.72,0-1.44,0-2.16c0-0.3,0.06-0.4,0.35-0.48\r + c0.72-0.2,1.45-0.24,2.17-0.03c0.78,0.22,1.18,0.8,1.16,1.59c-0.02,0.74-0.49,1.3-1.25,1.5c-0.36,0.09-0.73,0.09-1.1,0.08\r + c-0.13,0-0.16,0.03-0.16,0.16C19.46,8.74,19.46,8.95,19.46,9.15z M19.45,6.75c0,0.2,0,0.39,0,0.59c0,0.06-0.01,0.12,0.09,0.12\r + c0.25-0.01,0.51,0.03,0.76-0.06c0.31-0.1,0.48-0.36,0.46-0.7c-0.01-0.34-0.19-0.55-0.52-0.63c-0.22-0.05-0.44-0.04-0.66-0.02\r + c-0.11,0.01-0.13,0.05-0.13,0.15C19.46,6.39,19.45,6.57,19.45,6.75z`),r(g,"class","st1"),r(g,"d",`M50.13,10.03c-0.33-0.01-0.66-0.03-0.98-0.14c-0.18-0.06-0.35-0.15-0.49-0.28c-0.29-0.28-0.24-0.71,0.11-0.93\r + c0.09-0.05,0.13-0.02,0.19,0.03C49.4,9,49.87,9.13,50.4,9.04c0.09-0.02,0.17-0.04,0.24-0.09c0.3-0.19,0.3-0.57,0-0.76\r + c-0.2-0.12-0.42-0.17-0.64-0.24c-0.28-0.09-0.56-0.2-0.82-0.33c-0.89-0.46-0.95-1.68-0.11-2.23c0.48-0.31,1.01-0.34,1.56-0.3\r + c0.33,0.02,0.66,0.08,0.94,0.26c0.33,0.22,0.38,0.59,0.11,0.89c-0.07,0.08-0.13,0.1-0.24,0.04c-0.41-0.22-0.85-0.28-1.31-0.21\r + c-0.12,0.02-0.22,0.06-0.31,0.14c-0.18,0.16-0.16,0.4,0.03,0.53c0.17,0.12,0.37,0.16,0.56,0.22c0.36,0.11,0.7,0.23,1.02,0.43\r + c0.49,0.31,0.69,0.76,0.64,1.32c-0.05,0.54-0.37,0.9-0.85,1.12C50.88,9.99,50.5,10.02,50.13,10.03z`),r(_,"class","st1"),r(_,"d",`M41.06,10.03c-0.24-0.01-0.54-0.04-0.83-0.13C39.35,9.61,38.84,9,38.72,8.09C38.59,7.2,38.7,6.36,39.39,5.7\r + c0.65-0.64,1.91-0.83,2.72-0.42c0.47,0.24,0.57,0.67,0.24,1c-0.08,0.07-0.13,0.08-0.22,0.02c-0.3-0.19-0.63-0.28-1-0.26\r + c-0.57,0.03-0.98,0.34-1.15,0.89c-0.12,0.4-0.12,0.8-0.02,1.2c0.19,0.69,0.8,1.05,1.57,0.94c0.22-0.03,0.43-0.11,0.62-0.22\r + c0.12-0.07,0.19-0.04,0.27,0.06c0.24,0.32,0.16,0.72-0.2,0.91C41.88,9.98,41.51,10.03,41.06,10.03z`),r(S,"class","st1"),r(S,"d",`M45.42,8.03c0,0.57-0.01,1.13,0,1.7c0,0.13-0.05,0.18-0.17,0.19c-0.17,0.01-0.35,0.04-0.52,0.02\r + c-0.37-0.04-0.5-0.18-0.5-0.55c0-0.64,0-1.28,0-1.92c0-0.38-0.01-0.77,0-1.15c0-0.14-0.04-0.17-0.17-0.16\r + c-0.31,0.01-0.62,0-0.93,0.01c-0.12,0-0.17-0.04-0.21-0.14c-0.05-0.16-0.06-0.32-0.04-0.48c0.04-0.22,0.18-0.32,0.44-0.32\r + c0.78,0,1.55,0,2.33,0c0.3,0,0.59,0.01,0.89,0c0.11,0,0.16,0.04,0.19,0.13c0.04,0.14,0.07,0.27,0.06,0.42\r + c-0.04,0.27-0.17,0.39-0.44,0.4c-0.24,0-0.49,0.01-0.73,0c-0.16-0.01-0.22,0.03-0.21,0.2C45.43,6.91,45.42,7.47,45.42,8.03z`),r(b,"class","st1"),r(b,"d",`M63.42,8.03c0,0.57,0,1.13,0,1.7c0,0.13-0.04,0.18-0.17,0.19c-0.17,0.01-0.35,0.04-0.52,0.02\r + c-0.37-0.04-0.49-0.18-0.5-0.55c0-0.48,0-0.96,0-1.44c0-0.54-0.01-1.08,0-1.62c0-0.16-0.04-0.19-0.19-0.19\r + c-0.3,0.01-0.61,0-0.91,0.01c-0.12,0-0.17-0.04-0.21-0.14c-0.04-0.12-0.06-0.25-0.05-0.38c0.02-0.3,0.15-0.42,0.45-0.43\r + c0.74,0,1.47,0,2.21,0c0.34,0,0.67,0,1.01,0c0.11,0,0.16,0.04,0.19,0.13c0.05,0.14,0.06,0.28,0.05,0.42\r + c-0.02,0.26-0.16,0.39-0.42,0.4c-0.27,0.01-0.54,0.01-0.81,0c-0.13-0.01-0.15,0.04-0.15,0.16C63.43,6.88,63.42,7.46,63.42,8.03z`),r(w,"class","st1"),r(w,"d",`M52.71,7.33c0-0.65,0.01-1.31,0-1.96c0-0.15,0.05-0.2,0.19-0.21c0.2-0.02,0.4-0.04,0.6-0.01\r + c0.24,0.04,0.34,0.14,0.37,0.38c0.01,0.1,0.02,0.2,0.02,0.3c0,0.98,0,1.96,0,2.93c0,0.15,0.04,0.19,0.19,0.19\r + c0.51-0.01,1.02,0,1.54-0.01c0.13,0,0.19,0.05,0.23,0.16c0.05,0.14,0.06,0.29,0.04,0.44c-0.03,0.23-0.16,0.36-0.39,0.36\r + c-0.73,0.01-1.47,0.01-2.2,0c-0.37-0.01-0.58-0.24-0.58-0.64C52.71,8.62,52.71,7.98,52.71,7.33z`),r(m,"class","st1"),r(m,"d",`M32.9,6.91c0-0.52,0-1.04,0-1.56c0-0.11,0.02-0.17,0.15-0.18c0.19-0.02,0.38-0.04,0.56-0.03\r + c0.33,0.03,0.46,0.17,0.47,0.51c0.01,0.78,0.01,1.56,0,2.35c0,0.32,0.03,0.65-0.04,0.97c-0.11,0.51-0.41,0.84-0.91,0.97\r + c-0.37,0.1-0.75,0.1-1.11-0.03c-0.28-0.1-0.4-0.3-0.36-0.6c0.03-0.28,0.1-0.33,0.38-0.29c0.1,0.02,0.2,0.02,0.3,0.02\r + c0.37-0.01,0.57-0.18,0.57-0.56C32.9,7.96,32.89,7.43,32.9,6.91C32.89,6.91,32.89,6.91,32.9,6.91z`),r(p,"class","st0"),r(p,"d",`M9.03,8.26c0.21,0,0.42,0,0.62,0.07C9.82,8.39,10,8.46,10.04,8.67c0.04,0.22-0.05,0.41-0.21,0.56\r + c-0.14,0.13-0.31,0.18-0.5,0.2C9.24,9.45,9.17,9.48,9.18,9.58c0.01,0.1,0.09,0.1,0.17,0.09c0.39-0.04,0.77-0.15,1.15-0.22\r + c0.06-0.01,0.12-0.02,0.18-0.04c0.06-0.01,0.13-0.05,0.16,0.02c0.03,0.07-0.05,0.1-0.1,0.13c-0.36,0.25-0.74,0.44-1.17,0.53\r + c-0.85,0.18-1.6-0.07-2.29-0.55c-0.04-0.03-0.1-0.06-0.07-0.13c0.03-0.05,0.08-0.03,0.13-0.02C7.74,9.5,8.13,9.58,8.52,9.65\r + c0.03,0.01,0.07,0.02,0.1,0.02c0.09,0,0.23,0.06,0.25-0.08c0.03-0.17-0.12-0.14-0.22-0.16C8.37,9.36,8.14,9.23,8.04,8.93\r + C7.96,8.68,8.03,8.5,8.28,8.38C8.51,8.27,8.77,8.26,9.03,8.26z`),r(e,"version","1.1"),r(e,"id","Layer_1"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),r(e,"x","0px"),r(e,"y","0px"),r(e,"viewBox","0 0 72.33 14.89"),V(e,"enable-background","new 0 0 72.33 14.89"),r(e,"xml:space","preserve")},m(A,Y){P(A,e,Y),d(e,t),d(t,i),d(e,l),d(l,o),d(l,s),d(l,u),d(l,a),d(l,f),d(l,c),d(l,h),d(l,g),d(l,_),d(l,S),d(l,b),d(l,w),d(l,m),d(l,p)},p:Ee,i:Ee,o:Ee,d(A){A&&F(e)}}}class ju extends _e{constructor(e){super();we(this,e,null,qu,be,{})}}function Gu(n){let e,t;return{c(){e=v("span"),t=ne(n[3]),r(e,"class","primary-text svelte-c4h5cp")},m(i,l){P(i,e,l),d(e,t)},p(i,l){l&8&&re(t,i[3])},d(i){i&&F(e)}}}function Wu(n){let e;function t(o,s){return o[0]?Zu:Ju}let i=t(n),l=i(n);return{c(){l.c(),e=kn()},m(o,s){l.m(o,s),P(o,e,s)},p(o,s){i===(i=t(o))&&l?l.p(o,s):(l.d(1),l=i(o),l&&(l.c(),l.m(e.parentNode,e)))},d(o){l.d(o),o&&F(e)}}}function Ju(n){let e,t;return{c(){e=v("span"),t=ne(n[2]),r(e,"class","primary-text svelte-c4h5cp")},m(i,l){P(i,e,l),d(e,t)},p(i,l){l&4&&re(t,i[2])},d(i){i&&F(e)}}}function Zu(n){let e,t;return{c(){e=v("span"),t=ne(n[1]),r(e,"class","primary-text svelte-c4h5cp")},m(i,l){P(i,e,l),d(e,t)},p(i,l){l&2&&re(t,i[1])},d(i){i&&F(e)}}}function Ku(n){let e,t,i,l,o,s;function u(c,h){return c[1]&&c[2]?Wu:Gu}let a=u(n),f=a(n);return{c(){e=v("label"),t=v("input"),l=I(),f.c(),r(t,"class","cursor-pointer svelte-c4h5cp"),r(t,"style",i=n[4]?"margin-left:auto; margin-right:auto;":""),r(t,"type","checkbox"),r(t,"role","switch"),r(e,"class","switch cursor-pointer flex flex-row pt-2 pb-4 -ml-2 gap-1 select-none svelte-c4h5cp")},m(c,h){P(c,e,h),d(e,t),t.checked=n[0],d(e,l),f.m(e,null),o||(s=[$e(t,"change",n[7]),$e(t,"click",n[5])],o=!0)},p(c,[h]){h&16&&i!==(i=c[4]?"margin-left:auto; margin-right:auto;":"")&&r(t,"style",i),h&1&&(t.checked=c[0]),a===(a=u(c))&&f?f.p(c,h):(f.d(1),f=a(c),f&&(f.c(),f.m(e,null)))},i:Ee,o:Ee,d(c){c&&F(e),f.d(),o=!1,Ti(s)}}}function Qu(n,e,t){let{checked:i=!0}=e,{checkedText:l=""}=e,{unCheckedText:o=""}=e,{text:s=""}=e,{center:u=!1}=e,{handleUpdateFunction:a=null}=e;function f(h){a&&a(h.target.checked)}function c(){i=this.checked,t(0,i)}return n.$$set=h=>{"checked"in h&&t(0,i=h.checked),"checkedText"in h&&t(1,l=h.checkedText),"unCheckedText"in h&&t(2,o=h.unCheckedText),"text"in h&&t(3,s=h.text),"center"in h&&t(4,u=h.center),"handleUpdateFunction"in h&&t(6,a=h.handleUpdateFunction)},[i,l,o,s,u,f,a,c]}class Hi extends _e{constructor(e){super();we(this,e,Qu,Ku,be,{checked:0,checkedText:1,unCheckedText:2,text:3,center:4,handleUpdateFunction:6})}}function xu(n){let e,t,i,l,o,s,u,a=n[1].resetHud+"",f,c,h,g,_,S=n[1].resetHudDescription+"",b,w,m,p,A,Y=n[1].resetSettingsDescriptionLine1+"",x,Q,Z,q=n[1].resetSettingsDescriptionLine2+"",$,R,U,y,E,k,L=n[1].optionsMenu+"",K,D,ge,ee,te,W,J,Me,Pe,he,ke,Ae,hn,gn,Oe,an,Dn=n[1].notificationsMenu+"",un,Pn,Ie,en,Vn,ce,Ce,j,fn,ln,nn,G,dn,rn,zt,Hn,ht,eo,tn,Rt,Fo,yn,Ut,pt,st,kt=n[1].statusMenu+"",Yn,no,cn,Ne,Ct,to,Bn,oo,mn,Xn,Lt,vt,zn,Nt,io,De,_n,qt,Rn,jt,_o,Tn,lo,Wn,gt,At=n[1].vehicleMenu+"",ro,wo,Xe,Te,Dt,Jn,at=n[1].minimapTypeDescription+"",Tt,bo,wn,Zn,It,Un,Kn,Gt,Ln,Nn,So,bn,Mt,dt,yt,Wt,Jt,qn,En=n[1].compassMenu+"",so,Yt,Sn,In,Xt,po,pn,Qn,Et,jn,xn,Zt,ao,$n,Kt,et,mt=n[1].cinematicMenu+"",ut,Ot,nt,tt,ot,it,Qt,Be;l=new ju({}),h=new Xo({props:{name:n[1].resetHud,buttonClass:"whitespace-nowrap hover:bg-red-600",disable:n[0].isRestarting,disableText:"Resetting Hud..."}}),h.$on("click",n[4]),m=new Xo({props:{name:n[1].resetSettings,buttonClass:"hover:bg-red-600"}}),m.$on("click",n[5]);function Ft(O){n[7](O)}let Pt={primaryText:n[1].minimapVehicleCheckBoxPrimary,secondaryText:n[1].minimapVehicleCheckBoxSecondary,handleUpdateFunction:n[6]};n[0].isOutMapChecked!==void 0&&(Pt.checked=n[0].isOutMapChecked),ee=new xe({props:Pt}),ie.push(()=>se(ee,"checked",Ft));function uo(O){n[9](O)}let ko={primaryText:n[1].compassVehicleCheckBoxPrimary,secondaryText:n[1].compassFollowCheckBoxSecondary,handleUpdateFunction:n[8]};n[0].isOutCompassChecked!==void 0&&(ko.checked=n[0].isOutCompassChecked),J=new xe({props:ko}),ie.push(()=>se(J,"checked",uo));function Vt(O){n[11](O)}let ft={primaryText:n[1].compassFollowCheckBoxPrimary,secondaryText:n[1].compassFollowCheckBoxSecondary,handleUpdateFunction:n[10]};n[0].isCompassFollowChecked!==void 0&&(ft.checked=n[0].isCompassFollowChecked),he=new xe({props:ft}),ie.push(()=>se(he,"checked",Vt));function xt(O){n[13](O)}let fo={primaryText:n[1].menuSoundEffectsEnabled,handleUpdateFunction:n[12]};n[0].isOpenMenuSoundsChecked!==void 0&&(fo.checked=n[0].isOpenMenuSoundsChecked),en=new xe({props:fo}),ie.push(()=>se(en,"checked",xt));function ye(O){n[15](O)}let Po={primaryText:n[1].resetSoundEffectsEnabled,handleUpdateFunction:n[14]};n[0].isResetSoundsChecked!==void 0&&(Po.checked=n[0].isResetSoundsChecked),Ce=new xe({props:Po}),ie.push(()=>se(Ce,"checked",ye));function Jo(O){n[17](O)}let _t={primaryText:n[1].guiSoundEffectsEnabled,handleUpdateFunction:n[16]};n[0].isListSoundsChecked!==void 0&&(_t.checked=n[0].isListSoundsChecked),ln=new xe({props:_t}),ie.push(()=>se(ln,"checked",Jo));function Vo(O){n[19](O)}let Ue={primaryText:n[1].mapNotificationsEnabled,handleUpdateFunction:n[18]};n[0].isMapNotifyChecked!==void 0&&(Ue.checked=n[0].isMapNotifyChecked),dn=new xe({props:Ue}),ie.push(()=>se(dn,"checked",Vo));function He(O){n[21](O)}let Co={primaryText:n[1].lowFuelNotificationsEnabled,handleUpdateFunction:n[20]};n[0].isLowFuelAlertChecked!==void 0&&(Co.checked=n[0].isLowFuelAlertChecked),Hn=new xe({props:Co}),ie.push(()=>se(Hn,"checked",He));function vo(O){n[23](O)}let Ho={primaryText:n[1].cinematicModeNotificationEnabled,handleUpdateFunction:n[22]};n[0].isCinematicNotifyChecked!==void 0&&(Ho.checked=n[0].isCinematicNotifyChecked),tn=new xe({props:Ho}),ie.push(()=>se(tn,"checked",vo));function Zo(O){n[25](O)}let wt={primaryText:n[1].showHealthAlways,handleUpdateFunction:n[24]};n[2].dynamicIcons.health!==void 0&&(wt.checked=n[2].dynamicIcons.health),Ne=new xe({props:wt}),ie.push(()=>se(Ne,"checked",Zo));function Bo(O){n[27](O)}let Ko={primaryText:n[1].showArmorAlways,handleUpdateFunction:n[26]};n[2].dynamicIcons.armor!==void 0&&(Ko.checked=n[2].dynamicIcons.armor),Bn=new xe({props:Ko}),ie.push(()=>se(Bn,"checked",Bo));function Ye(O){n[29](O)}let di={primaryText:n[1].showHungerAlways,handleUpdateFunction:n[28]};n[2].dynamicIcons.hunger!==void 0&&(di.checked=n[2].dynamicIcons.hunger),Xn=new xe({props:di}),ie.push(()=>se(Xn,"checked",Ye));function Qo(O){n[31](O)}let mi={primaryText:n[1].showThirstAlways,handleUpdateFunction:n[30]};n[2].dynamicIcons.thirst!==void 0&&(mi.checked=n[2].dynamicIcons.thirst),zn=new xe({props:mi}),ie.push(()=>se(zn,"checked",Qo));function xo(O){n[33](O)}let qe={primaryText:n[1].showStressAlways,handleUpdateFunction:n[32]};n[2].dynamicIcons.stress!==void 0&&(qe.checked=n[2].dynamicIcons.stress),De=new xe({props:qe}),ie.push(()=>se(De,"checked",xo));function je(O){n[35](O)}let Ge={primaryText:n[1].showOxygenAlways,handleUpdateFunction:n[34]};n[2].dynamicIcons.oxygen!==void 0&&(Ge.checked=n[2].dynamicIcons.oxygen),Rn=new xe({props:Ge}),ie.push(()=>se(Rn,"checked",je)),Te=new Hi({props:{checked:n[0].isToggleMapShapeChecked=="circle",checkedText:n[1].minimapTypeCircle,unCheckedText:n[1].minimapTypeSquare,handleUpdateFunction:n[36]}});function We(O){n[38](O)}let _i={primaryText:n[1].minimapEnabled,handleUpdateFunction:n[37]};n[0].isMapEnabledChecked!==void 0&&(_i.checked=n[0].isMapEnabledChecked),wn=new xe({props:_i}),ie.push(()=>se(wn,"checked",We));function $o(O){n[40](O)}let wi={primaryText:n[1].minimapBordersEnabled,handleUpdateFunction:n[39]};n[0].isToggleMapBordersChecked!==void 0&&(wi.checked=n[0].isToggleMapBordersChecked),Un=new xe({props:wi}),ie.push(()=>se(Un,"checked",$o));function ei(O){n[42](O)}let bi={primaryText:n[1].showEngineAlways,handleUpdateFunction:n[41]};n[2].dynamicIcons.engine!==void 0&&(bi.checked=n[2].dynamicIcons.engine),Ln=new xe({props:bi}),ie.push(()=>se(Ln,"checked",ei));function ni(O){n[44](O)}let Si={primaryText:n[1].showNitroAlways,handleUpdateFunction:n[43]};n[2].dynamicIcons.nitro!==void 0&&(Si.checked=n[2].dynamicIcons.nitro),bn=new xe({props:Si}),ie.push(()=>se(bn,"checked",ni));function ti(O){n[46](O)}let pi={primaryText:n[1].compassEnabled,handleUpdateFunction:n[45],secondaryText:n[1].compassEnabledDescription};n[0].isShowCompassChecked!==void 0&&(pi.checked=n[0].isShowCompassChecked),In=new xe({props:pi}),ie.push(()=>se(In,"checked",ti));function oi(O){n[48](O)}let Je={primaryText:n[1].showStreetNamesEnabled,handleUpdateFunction:n[47],secondaryText:n[1].showStreetNamesDescription};n[0].isShowStreetsChecked!==void 0&&(Je.checked=n[0].isShowStreetsChecked),pn=new xe({props:Je}),ie.push(()=>se(pn,"checked",oi));function N(O){n[50](O)}let ue={primaryText:n[1].showCompassPointerEnabled,handleUpdateFunction:n[49],secondaryText:n[1].showCompassPointerDescription};n[0].isPointerShowChecked!==void 0&&(ue.checked=n[0].isPointerShowChecked),jn=new xe({props:ue}),ie.push(()=>se(jn,"checked",N));function Ze(O){n[52](O)}let Le={primaryText:n[1].showCinematicBarsEnabled,handleUpdateFunction:n[51]};return n[0].isCineamticModeChecked!==void 0&&(Le.checked=n[0].isCineamticModeChecked),tt=new xe({props:Le}),ie.push(()=>se(tt,"checked",Ze)),{c(){e=v("div"),t=v("div"),i=v("div"),H(l.$$.fragment),o=I(),s=v("div"),u=v("p"),f=ne(a),c=I(),H(h.$$.fragment),g=I(),_=v("p"),b=ne(S),w=I(),H(m.$$.fragment),p=I(),A=v("p"),x=ne(Y),Q=I(),Z=v("p"),$=ne(q),R=I(),U=v("hr"),y=I(),E=v("div"),k=v("p"),K=ne(L),D=I(),ge=v("div"),H(ee.$$.fragment),W=I(),H(J.$$.fragment),Pe=I(),H(he.$$.fragment),Ae=I(),hn=v("hr"),gn=I(),Oe=v("div"),an=v("p"),un=ne(Dn),Pn=I(),Ie=v("div"),H(en.$$.fragment),ce=I(),H(Ce.$$.fragment),fn=I(),H(ln.$$.fragment),G=I(),H(dn.$$.fragment),zt=I(),H(Hn.$$.fragment),eo=I(),H(tn.$$.fragment),Fo=I(),yn=v("hr"),Ut=I(),pt=v("div"),st=v("p"),Yn=ne(kt),no=I(),cn=v("div"),H(Ne.$$.fragment),to=I(),H(Bn.$$.fragment),mn=I(),H(Xn.$$.fragment),vt=I(),H(zn.$$.fragment),io=I(),H(De.$$.fragment),qt=I(),H(Rn.$$.fragment),_o=I(),Tn=v("hr"),lo=I(),Wn=v("div"),gt=v("p"),ro=ne(At),wo=I(),Xe=v("div"),H(Te.$$.fragment),Dt=I(),Jn=v("p"),Tt=ne(at),bo=I(),H(wn.$$.fragment),It=I(),H(Un.$$.fragment),Gt=I(),H(Ln.$$.fragment),So=I(),H(bn.$$.fragment),dt=I(),yt=v("hr"),Wt=I(),Jt=v("div"),qn=v("p"),so=ne(En),Yt=I(),Sn=v("div"),H(In.$$.fragment),po=I(),H(pn.$$.fragment),Et=I(),H(jn.$$.fragment),Zt=I(),ao=v("hr"),$n=I(),Kt=v("div"),et=v("p"),ut=ne(mt),Ot=I(),nt=v("div"),H(tt.$$.fragment),it=I(),Qt=v("p"),Qt.textContent=`${String.fromCharCode(...Pr)}`,r(i,"class","float-right w-[25%]"),r(u,"class","svelte-1c7k2s5"),r(s,"class","-mx-4 mb-4 text-2xl text-white"),r(_,"class","text-base svelte-1c7k2s5"),r(A,"class","text-base svelte-1c7k2s5"),r(Z,"class","text-base svelte-1c7k2s5"),r(t,"class","mx-4 mb-5 mt-3"),r(k,"class","svelte-1c7k2s5"),r(E,"class","my-3 text-xl text-white"),r(ge,"class","mx-4 mb-4 flex flex-col"),r(an,"class","svelte-1c7k2s5"),r(Oe,"class","my-3 text-xl text-white"),r(Ie,"class","mx-4 mb-4 flex flex-col"),r(st,"class","svelte-1c7k2s5"),r(pt,"class","my-3 text-xl text-white"),r(cn,"class","mx-4 mb-4 flex flex-col"),r(gt,"class","svelte-1c7k2s5"),r(Wn,"class","my-3 text-xl text-white"),r(Jn,"class","font-semibold text-base pb-2 svelte-1c7k2s5"),r(Xe,"class","mx-4 mb-4 flex flex-col"),r(qn,"class","svelte-1c7k2s5"),r(Jt,"class","my-3 text-xl text-white"),r(Sn,"class","mx-4 mb-4 flex flex-col"),r(et,"class","svelte-1c7k2s5"),r(Kt,"class","my-3 text-xl text-white"),r(Qt,"class","self-center ml-auto opacity-05 select-none svelte-1c7k2s5"),r(nt,"class","mx-4 mb-4 flex flex-row gap-5"),r(e,"class","text-sm flex flex-col text-[#e8e8e8]")},m(O,fe){P(O,e,fe),d(e,t),d(t,i),B(l,i,null),d(t,o),d(t,s),d(s,u),d(u,f),d(t,c),B(h,t,null),d(t,g),d(t,_),d(_,b),d(t,w),B(m,t,null),d(t,p),d(t,A),d(A,x),d(t,Q),d(t,Z),d(Z,$),d(e,R),d(e,U),d(e,y),d(e,E),d(E,k),d(k,K),d(e,D),d(e,ge),B(ee,ge,null),d(ge,W),B(J,ge,null),d(ge,Pe),B(he,ge,null),d(e,Ae),d(e,hn),d(e,gn),d(e,Oe),d(Oe,an),d(an,un),d(e,Pn),d(e,Ie),B(en,Ie,null),d(Ie,ce),B(Ce,Ie,null),d(Ie,fn),B(ln,Ie,null),d(Ie,G),B(dn,Ie,null),d(Ie,zt),B(Hn,Ie,null),d(Ie,eo),B(tn,Ie,null),d(e,Fo),d(e,yn),d(e,Ut),d(e,pt),d(pt,st),d(st,Yn),d(e,no),d(e,cn),B(Ne,cn,null),d(cn,to),B(Bn,cn,null),d(cn,mn),B(Xn,cn,null),d(cn,vt),B(zn,cn,null),d(cn,io),B(De,cn,null),d(cn,qt),B(Rn,cn,null),d(e,_o),d(e,Tn),d(e,lo),d(e,Wn),d(Wn,gt),d(gt,ro),d(e,wo),d(e,Xe),B(Te,Xe,null),d(Xe,Dt),d(Xe,Jn),d(Jn,Tt),d(Xe,bo),B(wn,Xe,null),d(Xe,It),B(Un,Xe,null),d(Xe,Gt),B(Ln,Xe,null),d(Xe,So),B(bn,Xe,null),d(e,dt),d(e,yt),d(e,Wt),d(e,Jt),d(Jt,qn),d(qn,so),d(e,Yt),d(e,Sn),B(In,Sn,null),d(Sn,po),B(pn,Sn,null),d(Sn,Et),B(jn,Sn,null),d(e,Zt),d(e,ao),d(e,$n),d(e,Kt),d(Kt,et),d(et,ut),d(e,Ot),d(e,nt),B(tt,nt,null),d(nt,it),d(nt,Qt),Be=!0},p(O,fe){(!Be||fe[0]&2)&&a!==(a=O[1].resetHud+"")&&re(f,a);const zo={};fe[0]&2&&(zo.name=O[1].resetHud),fe[0]&1&&(zo.disable=O[0].isRestarting),h.$set(zo),(!Be||fe[0]&2)&&S!==(S=O[1].resetHudDescription+"")&&re(b,S);const Ro={};fe[0]&2&&(Ro.name=O[1].resetSettings),m.$set(Ro),(!Be||fe[0]&2)&&Y!==(Y=O[1].resetSettingsDescriptionLine1+"")&&re(x,Y),(!Be||fe[0]&2)&&q!==(q=O[1].resetSettingsDescriptionLine2+"")&&re($,q),(!Be||fe[0]&2)&&L!==(L=O[1].optionsMenu+"")&&re(K,L);const Ao={};fe[0]&2&&(Ao.primaryText=O[1].minimapVehicleCheckBoxPrimary),fe[0]&2&&(Ao.secondaryText=O[1].minimapVehicleCheckBoxSecondary),!te&&fe[0]&1&&(te=!0,Ao.checked=O[0].isOutMapChecked,ae(()=>te=!1)),ee.$set(Ao);const co={};fe[0]&2&&(co.primaryText=O[1].compassVehicleCheckBoxPrimary),fe[0]&2&&(co.secondaryText=O[1].compassFollowCheckBoxSecondary),!Me&&fe[0]&1&&(Me=!0,co.checked=O[0].isOutCompassChecked,ae(()=>Me=!1)),J.$set(co);const Do={};fe[0]&2&&(Do.primaryText=O[1].compassFollowCheckBoxPrimary),fe[0]&2&&(Do.secondaryText=O[1].compassFollowCheckBoxSecondary),!ke&&fe[0]&1&&(ke=!0,Do.checked=O[0].isCompassFollowChecked,ae(()=>ke=!1)),he.$set(Do),(!Be||fe[0]&2)&&Dn!==(Dn=O[1].notificationsMenu+"")&&re(un,Dn);const To={};fe[0]&2&&(To.primaryText=O[1].menuSoundEffectsEnabled),!Vn&&fe[0]&1&&(Vn=!0,To.checked=O[0].isOpenMenuSoundsChecked,ae(()=>Vn=!1)),en.$set(To);const Uo={};fe[0]&2&&(Uo.primaryText=O[1].resetSoundEffectsEnabled),!j&&fe[0]&1&&(j=!0,Uo.checked=O[0].isResetSoundsChecked,ae(()=>j=!1)),Ce.$set(Uo);const Io={};fe[0]&2&&(Io.primaryText=O[1].guiSoundEffectsEnabled),!nn&&fe[0]&1&&(nn=!0,Io.checked=O[0].isListSoundsChecked,ae(()=>nn=!1)),ln.$set(Io);const Lo={};fe[0]&2&&(Lo.primaryText=O[1].mapNotificationsEnabled),!rn&&fe[0]&1&&(rn=!0,Lo.checked=O[0].isMapNotifyChecked,ae(()=>rn=!1)),dn.$set(Lo);const Mo={};fe[0]&2&&(Mo.primaryText=O[1].lowFuelNotificationsEnabled),!ht&&fe[0]&1&&(ht=!0,Mo.checked=O[0].isLowFuelAlertChecked,ae(()=>ht=!1)),Hn.$set(Mo);const ze={};fe[0]&2&&(ze.primaryText=O[1].cinematicModeNotificationEnabled),!Rt&&fe[0]&1&&(Rt=!0,ze.checked=O[0].isCinematicNotifyChecked,ae(()=>Rt=!1)),tn.$set(ze),(!Be||fe[0]&2)&&kt!==(kt=O[1].statusMenu+"")&&re(Yn,kt);const M={};fe[0]&2&&(M.primaryText=O[1].showHealthAlways),!Ct&&fe[0]&4&&(Ct=!0,M.checked=O[2].dynamicIcons.health,ae(()=>Ct=!1)),Ne.$set(M);const le={};fe[0]&2&&(le.primaryText=O[1].showArmorAlways),!oo&&fe[0]&4&&(oo=!0,le.checked=O[2].dynamicIcons.armor,ae(()=>oo=!1)),Bn.$set(le);const ho={};fe[0]&2&&(ho.primaryText=O[1].showHungerAlways),!Lt&&fe[0]&4&&(Lt=!0,ho.checked=O[2].dynamicIcons.hunger,ae(()=>Lt=!1)),Xn.$set(ho);const ii={};fe[0]&2&&(ii.primaryText=O[1].showThirstAlways),!Nt&&fe[0]&4&&(Nt=!0,ii.checked=O[2].dynamicIcons.thirst,ae(()=>Nt=!1)),zn.$set(ii);const li={};fe[0]&2&&(li.primaryText=O[1].showStressAlways),!_n&&fe[0]&4&&(_n=!0,li.checked=O[2].dynamicIcons.stress,ae(()=>_n=!1)),De.$set(li);const ri={};fe[0]&2&&(ri.primaryText=O[1].showOxygenAlways),!jt&&fe[0]&4&&(jt=!0,ri.checked=O[2].dynamicIcons.oxygen,ae(()=>jt=!1)),Rn.$set(ri),(!Be||fe[0]&2)&&At!==(At=O[1].vehicleMenu+"")&&re(ro,At);const No={};fe[0]&1&&(No.checked=O[0].isToggleMapShapeChecked=="circle"),fe[0]&2&&(No.checkedText=O[1].minimapTypeCircle),fe[0]&2&&(No.unCheckedText=O[1].minimapTypeSquare),Te.$set(No),(!Be||fe[0]&2)&&at!==(at=O[1].minimapTypeDescription+"")&&re(Tt,at);const si={};fe[0]&2&&(si.primaryText=O[1].minimapEnabled),!Zn&&fe[0]&1&&(Zn=!0,si.checked=O[0].isMapEnabledChecked,ae(()=>Zn=!1)),wn.$set(si);const ai={};fe[0]&2&&(ai.primaryText=O[1].minimapBordersEnabled),!Kn&&fe[0]&1&&(Kn=!0,ai.checked=O[0].isToggleMapBordersChecked,ae(()=>Kn=!1)),Un.$set(ai);const ui={};fe[0]&2&&(ui.primaryText=O[1].showEngineAlways),!Nn&&fe[0]&4&&(Nn=!0,ui.checked=O[2].dynamicIcons.engine,ae(()=>Nn=!1)),Ln.$set(ui);const fi={};fe[0]&2&&(fi.primaryText=O[1].showNitroAlways),!Mt&&fe[0]&4&&(Mt=!0,fi.checked=O[2].dynamicIcons.nitro,ae(()=>Mt=!1)),bn.$set(fi),(!Be||fe[0]&2)&&En!==(En=O[1].compassMenu+"")&&re(so,En);const qo={};fe[0]&2&&(qo.primaryText=O[1].compassEnabled),fe[0]&2&&(qo.secondaryText=O[1].compassEnabledDescription),!Xt&&fe[0]&1&&(Xt=!0,qo.checked=O[0].isShowCompassChecked,ae(()=>Xt=!1)),In.$set(qo);const jo={};fe[0]&2&&(jo.primaryText=O[1].showStreetNamesEnabled),fe[0]&2&&(jo.secondaryText=O[1].showStreetNamesDescription),!Qn&&fe[0]&1&&(Qn=!0,jo.checked=O[0].isShowStreetsChecked,ae(()=>Qn=!1)),pn.$set(jo);const Go={};fe[0]&2&&(Go.primaryText=O[1].showCompassPointerEnabled),fe[0]&2&&(Go.secondaryText=O[1].showCompassPointerDescription),!xn&&fe[0]&1&&(xn=!0,Go.checked=O[0].isPointerShowChecked,ae(()=>xn=!1)),jn.$set(Go),(!Be||fe[0]&2)&&mt!==(mt=O[1].cinematicMenu+"")&&re(ut,mt);const ci={};fe[0]&2&&(ci.primaryText=O[1].showCinematicBarsEnabled),!ot&&fe[0]&1&&(ot=!0,ci.checked=O[0].isCineamticModeChecked,ae(()=>ot=!1)),tt.$set(ci)},i(O){Be||(C(l.$$.fragment,O),C(h.$$.fragment,O),C(m.$$.fragment,O),C(ee.$$.fragment,O),C(J.$$.fragment,O),C(he.$$.fragment,O),C(en.$$.fragment,O),C(Ce.$$.fragment,O),C(ln.$$.fragment,O),C(dn.$$.fragment,O),C(Hn.$$.fragment,O),C(tn.$$.fragment,O),C(Ne.$$.fragment,O),C(Bn.$$.fragment,O),C(Xn.$$.fragment,O),C(zn.$$.fragment,O),C(De.$$.fragment,O),C(Rn.$$.fragment,O),C(Te.$$.fragment,O),C(wn.$$.fragment,O),C(Un.$$.fragment,O),C(Ln.$$.fragment,O),C(bn.$$.fragment,O),C(In.$$.fragment,O),C(pn.$$.fragment,O),C(jn.$$.fragment,O),C(tt.$$.fragment,O),Be=!0)},o(O){T(l.$$.fragment,O),T(h.$$.fragment,O),T(m.$$.fragment,O),T(ee.$$.fragment,O),T(J.$$.fragment,O),T(he.$$.fragment,O),T(en.$$.fragment,O),T(Ce.$$.fragment,O),T(ln.$$.fragment,O),T(dn.$$.fragment,O),T(Hn.$$.fragment,O),T(tn.$$.fragment,O),T(Ne.$$.fragment,O),T(Bn.$$.fragment,O),T(Xn.$$.fragment,O),T(zn.$$.fragment,O),T(De.$$.fragment,O),T(Rn.$$.fragment,O),T(Te.$$.fragment,O),T(wn.$$.fragment,O),T(Un.$$.fragment,O),T(Ln.$$.fragment,O),T(bn.$$.fragment,O),T(In.$$.fragment,O),T(pn.$$.fragment,O),T(jn.$$.fragment,O),T(tt.$$.fragment,O),Be=!1},d(O){O&&F(e),z(l),z(h),z(m),z(ee),z(J),z(he),z(en),z(Ce),z(ln),z(dn),z(Hn),z(tn),z(Ne),z(Bn),z(Xn),z(zn),z(De),z(Rn),z(Te),z(wn),z(Un),z(Ln),z(bn),z(In),z(pn),z(jn),z(tt)}}}function $u(n,e,t){let i,l,o;me(n,Ve,j=>t(0,i=j)),me(n,Oo,j=>t(1,l=j)),me(n,oe,j=>t(2,o=j));function s(j){let fn=j?"circle":"square";$t(Ve,i.isToggleMapShapeChecked=fn,i),Fe("ToggleMapShape",{shape:fn})}const u=()=>{Fe("restartHud"),$t(Ve,i.isRestarting=!0,i)},a=()=>{Ve.resetHudMenuSetting(),Ve.sendMenuSettingsToClient()},f=j=>Fe("showOutMap",{checked:j});function c(j){n.$$.not_equal(i.isOutMapChecked,j)&&(i.isOutMapChecked=j,Ve.set(i))}const h=j=>Fe("showOutCompass",{checked:j});function g(j){n.$$.not_equal(i.isOutCompassChecked,j)&&(i.isOutCompassChecked=j,Ve.set(i))}const _=j=>Fe("showFollowCompass",{checked:j});function S(j){n.$$.not_equal(i.isCompassFollowChecked,j)&&(i.isCompassFollowChecked=j,Ve.set(i))}const b=j=>Fe("openMenuSounds",{checked:j});function w(j){n.$$.not_equal(i.isOpenMenuSoundsChecked,j)&&(i.isOpenMenuSoundsChecked=j,Ve.set(i))}const m=j=>Fe("resetHudSounds",{checked:j});function p(j){n.$$.not_equal(i.isResetSoundsChecked,j)&&(i.isResetSoundsChecked=j,Ve.set(i))}const A=j=>Fe("checklistSounds",{checked:j});function Y(j){n.$$.not_equal(i.isListSoundsChecked,j)&&(i.isListSoundsChecked=j,Ve.set(i))}const x=j=>Fe("showMapNotif",{checked:j});function Q(j){n.$$.not_equal(i.isMapNotifyChecked,j)&&(i.isMapNotifyChecked=j,Ve.set(i))}const Z=j=>Fe("showFuelAlert",{checked:j});function q(j){n.$$.not_equal(i.isLowFuelAlertChecked,j)&&(i.isLowFuelAlertChecked=j,Ve.set(i))}const $=j=>Fe("showCinematicNotif",{checked:j});function R(j){n.$$.not_equal(i.isCinematicNotifyChecked,j)&&(i.isCinematicNotifyChecked=j,Ve.set(i))}const U=j=>{oe.updateShowingDynamicIcon("health",j),Fe("dynamicChange")};function y(j){n.$$.not_equal(o.dynamicIcons.health,j)&&(o.dynamicIcons.health=j,oe.set(o))}const E=j=>{oe.updateShowingDynamicIcon("armor",j),Fe("dynamicChange")};function k(j){n.$$.not_equal(o.dynamicIcons.armor,j)&&(o.dynamicIcons.armor=j,oe.set(o))}const L=j=>{oe.updateShowingDynamicIcon("hunger",j),Fe("dynamicChange")};function K(j){n.$$.not_equal(o.dynamicIcons.hunger,j)&&(o.dynamicIcons.hunger=j,oe.set(o))}const D=j=>{oe.updateShowingDynamicIcon("thirst",j),Fe("dynamicChange")};function ge(j){n.$$.not_equal(o.dynamicIcons.thirst,j)&&(o.dynamicIcons.thirst=j,oe.set(o))}const ee=j=>{oe.updateShowingDynamicIcon("stress",j),Fe("dynamicChange")};function te(j){n.$$.not_equal(o.dynamicIcons.stress,j)&&(o.dynamicIcons.stress=j,oe.set(o))}const W=j=>{oe.updateShowingDynamicIcon("oxygen",j),Fe("dynamicChange")};function J(j){n.$$.not_equal(o.dynamicIcons.oxygen,j)&&(o.dynamicIcons.oxygen=j,oe.set(o))}const Me=j=>s(j),Pe=j=>Fe("HideMap",{checked:j});function he(j){n.$$.not_equal(i.isMapEnabledChecked,j)&&(i.isMapEnabledChecked=j,Ve.set(i))}const ke=j=>Fe("ToggleMapBorders",{checked:j});function Ae(j){n.$$.not_equal(i.isToggleMapBordersChecked,j)&&(i.isToggleMapBordersChecked=j,Ve.set(i))}const hn=j=>{oe.updateShowingDynamicIcon("engine",j),Fe("dynamicChange")};function gn(j){n.$$.not_equal(o.dynamicIcons.engine,j)&&(o.dynamicIcons.engine=j,oe.set(o))}const Oe=j=>{oe.updateShowingDynamicIcon("nitro",j),Fe("dynamicChange")};function an(j){n.$$.not_equal(o.dynamicIcons.nitro,j)&&(o.dynamicIcons.nitro=j,oe.set(o))}const Dn=j=>Fe("showCompassBase",{checked:j});function un(j){n.$$.not_equal(i.isShowCompassChecked,j)&&(i.isShowCompassChecked=j,Ve.set(i))}const Pn=j=>Fe("showStreetsNames",{checked:j});function Ie(j){n.$$.not_equal(i.isShowStreetsChecked,j)&&(i.isShowStreetsChecked=j,Ve.set(i))}const en=j=>Fe("showPointerIndex",{checked:j});function Vn(j){n.$$.not_equal(i.isPointerShowChecked,j)&&(i.isPointerShowChecked=j,Ve.set(i))}const ce=j=>Fe("cinematicMode",{checked:j});function Ce(j){n.$$.not_equal(i.isCineamticModeChecked,j)&&(i.isCineamticModeChecked=j,Ve.set(i))}return[i,l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,A,Y,x,Q,Z,q,$,R,U,y,E,k,L,K,D,ge,ee,te,W,J,Me,Pe,he,ke,Ae,hn,gn,Oe,an,Dn,un,Pn,Ie,en,Vn,ce,Ce]}class e0 extends _e{constructor(e){super();we(this,e,$u,xu,be,{},null,[-1,-1])}}function Al(n){let e,t,i;const l=n[6].default,o=bs(l,n,n[5],null);return{c(){e=v("div"),o&&o.c(),r(e,"class","content svelte-1ltnd50")},m(s,u){P(s,e,u),o&&o.m(e,null),i=!0},p(s,u){o&&o.p&&(!i||u&32)&&ms(o,l,s,s[5],i?ws(l,s[5],u,null):_s(s[5]),null)},i(s){i||(C(o,s),mo(()=>{t||(t=Gn(e,il,{},!0)),t.run(1)}),i=!0)},o(s){T(o,s),t||(t=Gn(e,il,{},!1)),t.run(0),i=!1},d(s){s&&F(e),o&&o.d(s),s&&t&&t.end()}}}function n0(n){let e,t,i,l,o,s,u,a,f,c,h,g,_;l=new Re({props:{icon:n[2],scale:1,color:n[3]}});let S=n[4]&&Al(n);return{c(){e=v("div"),t=v("button"),i=v("div"),H(l.$$.fragment),o=I(),s=v("p"),u=ne(n[1]),a=I(),f=v("i"),f.innerHTML='',c=I(),S&&S.c(),r(i,"class","min-w-8 grid justify-items-center"),r(s,"class","ml-3"),r(f,"class","icon ml-auto svelte-1ltnd50"),ll(f,"active",n[4]),r(t,"class","header text-2xl flex-row items-center text-white font-semibold svelte-1ltnd50")},m(b,w){P(b,e,w),d(e,t),d(t,i),B(l,i,null),d(t,o),d(t,s),d(s,u),d(t,a),d(t,f),d(e,c),S&&S.m(e,null),h=!0,g||(_=$e(t,"click",n[7]),g=!0)},p(b,[w]){const m={};w&4&&(m.icon=b[2]),w&8&&(m.color=b[3]),l.$set(m),(!h||w&2)&&re(u,b[1]),w&16&&ll(f,"active",b[4]),b[4]?S?(S.p(b,w),w&16&&C(S,1)):(S=Al(b),S.c(),C(S,1),S.m(e,null)):S&&(Se(),T(S,1,1,()=>{S=null}),pe())},i(b){h||(C(l.$$.fragment,b),C(S),h=!0)},o(b){T(l.$$.fragment,b),T(S),h=!1},d(b){b&&F(e),z(l),S&&S.d(),g=!1,_()}}}function t0(n,e,t){let i,{$$slots:l={},$$scope:o}=e,{name:s=""}=e,{group:u=null}=e,{icon:a=null}=e,{color:f="white"}=e;const c=()=>{t(0,u=u===s?"":s)};return n.$$set=h=>{"name"in h&&t(1,s=h.name),"group"in h&&t(0,u=h.group),"icon"in h&&t(2,a=h.icon),"color"in h&&t(3,f=h.color),"$$scope"in h&&t(5,o=h.$$scope)},n.$$.update=()=>{n.$$.dirty&3&&t(4,i=u===s)},[u,s,a,f,i,o,l,c]}class Ii extends _e{constructor(e){super();we(this,e,t0,n0,be,{name:1,group:0,icon:2,color:3})}}function o0(n){let e,t,i;return{c(){e=v("input"),r(e,"type","text"),r(e,"class","bg-[var(--ps-hud-primary)] block w-full p-1.5 my-2 text-black text-base font-bold rounded-md placeholder-[black] outline-none"),r(e,"placeholder","Profile"),r(e,"pattern","[A-Za-z1-9]"),r(e,"max",n[1])},m(l,o){P(l,e,o),Oi(e,n[0]),t||(i=$e(e,"input",n[2]),t=!0)},p(l,[o]){o&2&&r(e,"max",l[1]),o&1&&e.value!==l[0]&&Oi(e,l[0])},i:Ee,o:Ee,d(l){l&&F(e),t=!1,i()}}}function i0(n,e,t){let{maxLengh:i=10}=e,{value:l=""}=e;function o(){l=this.value,t(0,l)}return n.$$set=s=>{"maxLengh"in s&&t(1,i=s.maxLengh),"value"in s&&t(0,l=s.value)},[l,i,o]}class l0 extends _e{constructor(e){super();we(this,e,i0,o0,be,{maxLengh:1,value:0})}}function Dl(n,e,t){const i=n.slice();return i[11]=e[t],i[12]=e,i[13]=t,i}function r0(n){let e,t;function i(){return n[5](n[11],n[12],n[13])}return e=new ps({props:{$$slots:{default:[a0]},$$scope:{ctx:n}}}),e.$on("outclick",i),{c(){H(e.$$.fragment)},m(l,o){B(e,l,o),t=!0},p(l,o){n=l;const s={};o&16388&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(l){t||(C(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){z(e,l)}}}function s0(n){let e,t=n[11].name+"",i,l,o;function s(){return n[3](n[11],n[12],n[13])}return{c(){e=v("p"),i=ne(t),r(e,"class","text-xl font-semibold text-center cursor-pointer")},m(u,a){P(u,e,a),d(e,i),l||(o=$e(e,"click",s),l=!0)},p(u,a){n=u,a&4&&t!==(t=n[11].name+"")&&re(i,t)},i:Ee,o:Ee,d(u){u&&F(e),l=!1,o()}}}function a0(n){let e,t,i;function l(s){n[4](s,n[11])}let o={};return n[11].name!==void 0&&(o.value=n[11].name),e=new l0({props:o}),ie.push(()=>se(e,"value",l)),{c(){H(e.$$.fragment)},m(s,u){B(e,s,u),i=!0},p(s,u){n=s;const a={};!t&&u&4&&(t=!0,a.value=n[11].name,ae(()=>t=!1)),e.$set(a)},i(s){i||(C(e.$$.fragment,s),i=!0)},o(s){T(e.$$.fragment,s),i=!1},d(s){z(e,s)}}}function Tl(n){let e,t,i,l,o,s,u,a,f,c;const h=[s0,r0],g=[];function _(m,p){return m[11].editingName?1:0}t=_(n),i=g[t]=h[t](n);function S(){return n[6](n[13])}o=new Xo({props:{name:n[1].saveHudToProfile}}),o.$on("click",S);function b(){return n[7](n[13])}u=new Xo({props:{name:n[1].applyProfileToHud}}),u.$on("click",b);function w(){return n[8](n[13])}return f=new Xo({props:{name:n[1].deleteProfile,buttonClass:"hover:bg-red-600"}}),f.$on("click",w),{c(){e=v("div"),i.c(),l=I(),H(o.$$.fragment),s=I(),H(u.$$.fragment),a=I(),H(f.$$.fragment),r(e,"class","flex flex-col justify-end items-center border-2 rounded-lg p-3 border-[#029772] my-3")},m(m,p){P(m,e,p),g[t].m(e,null),d(e,l),B(o,e,null),d(e,s),B(u,e,null),d(e,a),B(f,e,null),c=!0},p(m,p){n=m;let A=t;t=_(n),t===A?g[t].p(n,p):(Se(),T(g[A],1,1,()=>{g[A]=null}),pe(),i=g[t],i?i.p(n,p):(i=g[t]=h[t](n),i.c()),C(i,1),i.m(e,l));const Y={};p&2&&(Y.name=n[1].saveHudToProfile),o.$set(Y);const x={};p&2&&(x.name=n[1].applyProfileToHud),u.$set(x);const Q={};p&2&&(Q.name=n[1].deleteProfile),f.$set(Q)},i(m){c||(C(i),C(o.$$.fragment,m),C(u.$$.fragment,m),C(f.$$.fragment,m),c=!0)},o(m){T(i),T(o.$$.fragment,m),T(u.$$.fragment,m),T(f.$$.fragment,m),c=!1},d(m){m&&F(e),g[t].d(),z(o),z(u),z(f)}}}function Il(n){let e,t,i;return t=new Xo({props:{name:n[1].addNewProfile,buttonClass:"w-[100px]"}}),t.$on("click",n[9]),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","flex flex-col")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){const s={};o&2&&(s.name=l[1].addNewProfile),t.$set(s)},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function u0(n){let e,t,i,l=n[2],o=[];for(let a=0;aT(o[a],1,1,()=>{o[a]=null});let u=n[2].length<6&&Il(n);return{c(){e=v("div");for(let a=0;a{u=null}),pe())},i(a){if(!i){for(let f=0;fse(e,"group",s)),{c(){H(e.$$.fragment),i=I(),l=v("hr")},m(a,f){B(e,a,f),P(a,i,f),P(a,l,f),o=!0},p(a,[f]){const c={};f&2&&(c.name=a[1].customizationProfiles),f&16390&&(c.$$scope={dirty:f,ctx:a}),!t&&f&1&&(t=!0,c.group=a[0],ae(()=>t=!1)),e.$set(c)},i(a){o||(C(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&F(i),a&&F(l)}}}function c0(n,e,t){let i,l;me(n,Oo,S=>t(1,i=S)),me(n,Yo,S=>t(2,l=S));let{group:o=""}=e;const s=(S,b,w)=>$t(Yo,b[w].editingName=!0,l);function u(S,b){n.$$.not_equal(b.name,S)&&(b.name=S,Yo.set(l))}const a=(S,b,w)=>$t(Yo,b[w].editingName=!1,l),f=S=>Yo.saveHUDToProfile(S),c=S=>Yo.applyProfileToHud(S),h=S=>Yo.deleteProfile(S),g=()=>Yo.addNewProfile();function _(S){o=S,t(0,o)}return n.$$set=S=>{"group"in S&&t(0,o=S.group)},[o,i,l,s,u,a,f,c,h,g,_]}class h0 extends _e{constructor(e){super();we(this,e,c0,f0,be,{group:0})}}function g0(n){let e,t,i;return t=new Xo({props:{name:n[1].copyProgressColorsToIconsColors,buttonClass:"h-15 w-55"}}),t.$on("click",n[2]),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","flex flex-row mx-4")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){const s={};o&2&&(s.name=l[1].copyProgressColorsToIconsColors),t.$set(s)},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function d0(n){let e,t,i,l,o;function s(a){n[3](a)}let u={name:n[1].utilityFunctions,icon:ks,color:"white",$$slots:{default:[g0]},$$scope:{ctx:n}};return n[0]!==void 0&&(u.group=n[0]),e=new Ii({props:u}),ie.push(()=>se(e,"group",s)),{c(){H(e.$$.fragment),i=I(),l=v("hr")},m(a,f){B(e,a,f),P(a,i,f),P(a,l,f),o=!0},p(a,[f]){const c={};f&2&&(c.name=a[1].utilityFunctions),f&18&&(c.$$scope={dirty:f,ctx:a}),!t&&f&1&&(t=!0,c.group=a[0],ae(()=>t=!1)),e.$set(c)},i(a){o||(C(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&F(i),a&&F(l)}}}function m0(n,e,t){let i;me(n,Oo,u=>t(1,i=u));let{group:l=""}=e;const o=()=>{de.updateIconColorToProgressColor()};function s(u){l=u,t(0,l)}return n.$$set=u=>{"group"in u&&t(0,l=u.group)},[l,i,o,s]}class _0 extends _e{constructor(e){super();we(this,e,m0,d0,be,{group:0})}}function w0(n){let e,t,i;return t=new Cs({props:{items:n[0],value:n[1],isClearable:!1,containerClasses:"selectHud"}}),t.$on("select",n[2]),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","themed text-white text-base svelte-1h7z46")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,[o]){const s={};o&1&&(s.items=l[0]),o&2&&(s.value=l[1]),t.$set(s)},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function b0(n){var e,t=n.split("-");for(e=0;enull}=e,{value:o=null}=e,{selectedIndex:s=0}=e,u,a;function f(c){c.detail.value!==o&&(t(3,o=c.detail.value),l(c.detail.value))}return n.$$set=c=>{"valuesArray"in c&&t(5,i=c.valuesArray),"handleSelectFunction"in c&&t(6,l=c.handleSelectFunction),"value"in c&&t(3,o=c.value),"selectedIndex"in c&&t(4,s=c.selectedIndex)},n.$$.update=()=>{if(n.$$.dirty&33&&(t(0,u=i.map(b0)),t(1,a=u[0])),n.$$.dirty&9&&o){let c=u.findIndex(h=>h.value==o);c>=0&&(t(4,s=c),t(1,a=u[c]))}},[u,a,f,o,s,i,l]}class Di extends _e{constructor(e){super();we(this,e,S0,w0,be,{valuesArray:5,handleSelectFunction:6,value:3,selectedIndex:4})}}function p0(n){let e,t,i,l,o,s,u,a;return{c(){e=v("div"),t=v("button"),t.innerHTML='-',i=I(),l=v("input"),o=I(),s=v("button"),s.innerHTML='+',r(t,"class","font-semibold border-r bg-[#292929] hover:bg-red-600 text-white border-gray-600 border-1 h-full w-20 flex rounded-l-md focus:outline-none cursor-pointer"),r(l,"type","text"),r(l,"class","w-15 p-2 p-1 text-xs appearance-none text-base border-gray-600 border-1 focus:outline-none focus:border-1 focus:border-gray-400 text-center bg-[#292929] text-white"),r(s,"class","font-semibold border-l bg-[#292929] hover:bg-green-600 text-white border-gray-600 border-1 h-full w-20 flex rounded-r-md focus:outline-none cursor-pointer"),r(e,"class","flex flex-row mx-auto border h-10 w-30 rounded-lg border-gray-600 relative text-black")},m(f,c){P(f,e,c),d(e,t),d(e,i),d(e,l),Oi(l,n[0]),d(e,o),d(e,s),u||(a=[$e(t,"click",n[7]),$e(l,"input",n[8]),$e(l,"input",n[9]),$e(s,"click",n[10])],u=!0)},p(f,[c]){c&1&&l.value!==f[0]&&Oi(l,f[0])},i:Ee,o:Ee,d(f){f&&F(e),u=!1,Ti(a)}}}function k0(n,e,t){let{min:i=0}=e,{max:l=10}=e,{handleUpdateFunction:o=b=>{}}=e,{value:s=1}=e,{step:u=1}=e;function a(b){return b>l&&(b=l),bf("decrease");function g(){s=this.value,t(0,s)}const _=b=>c(b),S=()=>f("increase");return n.$$set=b=>{"min"in b&&t(3,i=b.min),"max"in b&&t(4,l=b.max),"handleUpdateFunction"in b&&t(5,o=b.handleUpdateFunction),"value"in b&&t(0,s=b.value),"step"in b&&t(6,u=b.step)},[s,f,c,i,l,o,u,h,g,_,S]}class ve extends _e{constructor(e){super();we(this,e,k0,p0,be,{min:3,max:4,handleUpdateFunction:5,value:0,step:6})}}function C0(n){let e,t,i,l,o=n[1].iconLayout+"",s,u,a,f,c,h,g,_=n[1].betweenIconSpacing+"",S,b,w,m,p,A,Y,x=n[1].yAxisSpacing+"",Q,Z,q,$,R,U,y,E=n[1].xAxisSpacing+"",k,L,K,D,ge;a=new Di({props:{valuesArray:Vs,value:n[2].layout,handleSelectFunction:Bt.updateLayout}});function ee(he){n[3](he)}let te={min:-100,max:200};n[2].iconBetweenSpacing!==void 0&&(te.value=n[2].iconBetweenSpacing),w=new ve({props:te}),ie.push(()=>se(w,"value",ee));function W(he){n[4](he)}let J={min:-100,max:500};n[2].yAxisSpacing!==void 0&&(J.value=n[2].yAxisSpacing),q=new ve({props:J}),ie.push(()=>se(q,"value",W));function Me(he){n[5](he)}let Pe={min:-100,max:500};return n[2].xAxisSpacing!==void 0&&(Pe.value=n[2].xAxisSpacing),K=new ve({props:Pe}),ie.push(()=>se(K,"value",Me)),{c(){e=v("div"),t=v("div"),i=v("div"),l=v("p"),s=ne(o),u=I(),H(a.$$.fragment),f=I(),c=v("div"),h=v("div"),g=v("p"),S=ne(_),b=I(),H(w.$$.fragment),p=I(),A=v("div"),Y=v("p"),Q=ne(x),Z=I(),H(q.$$.fragment),R=I(),U=v("div"),y=v("p"),k=ne(E),L=I(),H(K.$$.fragment),r(l,"class","text-lg text-center mb-2"),r(i,"class","w-55"),r(t,"class","flex justify-center mb-4"),r(g,"class","text-base text-center mb-2"),r(Y,"class","text-base text-center mb-2"),r(y,"class","text-base text-center mb-2"),r(c,"class","mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end mb-8"),r(e,"class","text-sm flex flex-col text-[#e8e8e8]")},m(he,ke){P(he,e,ke),d(e,t),d(t,i),d(i,l),d(l,s),d(i,u),B(a,i,null),d(e,f),d(e,c),d(c,h),d(h,g),d(g,S),d(h,b),B(w,h,null),d(c,p),d(c,A),d(A,Y),d(Y,Q),d(A,Z),B(q,A,null),d(c,R),d(c,U),d(U,y),d(y,k),d(U,L),B(K,U,null),ge=!0},p(he,ke){(!ge||ke&2)&&o!==(o=he[1].iconLayout+"")&&re(s,o);const Ae={};ke&4&&(Ae.value=he[2].layout),a.$set(Ae),(!ge||ke&2)&&_!==(_=he[1].betweenIconSpacing+"")&&re(S,_);const hn={};!m&&ke&4&&(m=!0,hn.value=he[2].iconBetweenSpacing,ae(()=>m=!1)),w.$set(hn),(!ge||ke&2)&&x!==(x=he[1].yAxisSpacing+"")&&re(Q,x);const gn={};!$&&ke&4&&($=!0,gn.value=he[2].yAxisSpacing,ae(()=>$=!1)),q.$set(gn),(!ge||ke&2)&&E!==(E=he[1].xAxisSpacing+"")&&re(k,E);const Oe={};!D&&ke&4&&(D=!0,Oe.value=he[2].xAxisSpacing,ae(()=>D=!1)),K.$set(Oe)},i(he){ge||(C(a.$$.fragment,he),C(w.$$.fragment,he),C(q.$$.fragment,he),C(K.$$.fragment,he),ge=!0)},o(he){T(a.$$.fragment,he),T(w.$$.fragment,he),T(q.$$.fragment,he),T(K.$$.fragment,he),ge=!1},d(he){he&&F(e),z(a),z(w),z(q),z(K)}}}function v0(n){let e,t,i,l,o;function s(a){n[6](a)}let u={name:n[1].globalStatusIconLayoutSettings,icon:vs,color:"white",$$slots:{default:[C0]},$$scope:{ctx:n}};return n[0]!==void 0&&(u.group=n[0]),e=new Ii({props:u}),ie.push(()=>se(e,"group",s)),{c(){H(e.$$.fragment),i=I(),l=v("hr")},m(a,f){B(e,a,f),P(a,i,f),P(a,l,f),o=!0},p(a,[f]){const c={};f&2&&(c.name=a[1].globalStatusIconLayoutSettings),f&134&&(c.$$scope={dirty:f,ctx:a}),!t&&f&1&&(t=!0,c.group=a[0],ae(()=>t=!1)),e.$set(c)},i(a){o||(C(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&F(i),a&&F(l)}}}function A0(n,e,t){let i,l;me(n,Oo,c=>t(1,i=c)),me(n,Bt,c=>t(2,l=c));let{group:o=""}=e;function s(c){n.$$.not_equal(l.iconBetweenSpacing,c)&&(l.iconBetweenSpacing=c,Bt.set(l))}function u(c){n.$$.not_equal(l.yAxisSpacing,c)&&(l.yAxisSpacing=c,Bt.set(l))}function a(c){n.$$.not_equal(l.xAxisSpacing,c)&&(l.xAxisSpacing=c,Bt.set(l))}function f(c){o=c,t(0,o)}return n.$$set=c=>{"group"in c&&t(0,o=c.group)},[o,i,l,s,u,a,f]}class D0 extends _e{constructor(e){super();we(this,e,A0,v0,be,{group:0})}}class On{constructor(e,t){Ke(this,"mode");Ke(this,"data");this.mode=e,this.data=t}static rgba(e){return new On("rgb",e)}static hex(e){return new On("rgb",rl(e))}static hsl(e){return new On("hsl",e)}static hcl(e){return new On("hcl",e)}alter(e,t,i){const l=this.to(e);let o=JSON.parse(JSON.stringify(l.data));return e==="rgb"&&t==="a"?o.opacity=i:o[t]=i,new On(e,o)}get(e,t){return e==="rgb"&&t==="a"?this.to(e).data.opacity:this.to(e).data[t]}tuple(){return this.mode.split("").map(e=>this.data[e])}to(e){if(this.mode===e)return this;if(this.mode==="rgb"){const t=this.tuple(),i=rl(...t),l=ji[e](i);return new On(e,l)}else if(e==="rgb"){const t=this.tuple();let i=ji[this.mode](...t).rgb();return i=Object.fromEntries(Object.entries(i).map(([l,o])=>o<0?[l,0]:o>255?[l,255]:[l,o])),new On("rgb",i)}else return this.to("rgb").to(e)}toHex(){const e=Object.values(this.data);return ji[this.mode](...e).formatHex8()}isDark(){let e=this.to("rgb").data;return e.r*.299+e.g*.587+e.b*.114<=186}}const St={hsl:{h:{extent:[0,360],scale:1,title:"hue"},s:{extent:[0,100],scale:100,title:"saturation"},l:{extent:[0,100],scale:100,title:"luminance"}},hcl:{h:{extent:[0,360],scale:1,title:"hue"},c:{extent:[0,150],scale:1,title:"chroma"},l:{extent:[0,100],scale:1,title:"luminance"}},lab:{l:{extent:[0,100],scale:1,title:"L"},a:{extent:[-160,160],scale:1,title:"a"},b:{extent:[-160,160],scale:1,title:"b"}},rgb:{r:{extent:[0,255],scale:1,title:"red"},g:{extent:[0,255],scale:1,title:"green"},b:{extent:[0,255],scale:1,title:"blue"},a:{extent:[0,100],scale:100,title:"opacity"}}};function Vi(n){let[e,t]=n.split(".",2);return{scale:e,dim:t,data:St[e][t]}}function zr(n){let e=n.clientX,t=n.clientY,i=n.target.getBoundingClientRect();const l=e-i.x,o=t-i.y;return{clientX:e,clientY:t,offsetX:i.x,offsetY:i.y,relativeX:l,relativeY:o}}const T0={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"};function yi(n){let t=n.changedTouches[0],i=T0[n.type];if(!i)return;let l=new MouseEvent(i,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,button:0,buttons:1});n.target.dispatchEvent(l),n.preventDefault()}function Rr(n){n.addEventListener("touchstart",yi,!0),n.addEventListener("touchmove",yi,!0),n.addEventListener("touchend",yi,!0),n.addEventListener("touchcancel",yi,!0)}function I0(n){let e,t,i,l,o;return{c(){e=v("div"),t=v("canvas"),r(t,"width",n[0]),r(t,"height",n[1]),r(t,"class","svelte-1q93mbr"),r(e,"class","scrollbar svelte-1q93mbr"),mo(()=>n[14].call(e))},m(s,u){P(s,e,u),d(e,t),n[13](t),i=Er(e,n[14].bind(e)),l||(o=[$e(t,"mousedown",n[5]),$e(t,"mousemove",n[5])],l=!0)},p(s,[u]){u&1&&r(t,"width",s[0]),u&2&&r(t,"height",s[1])},i:Ee,o:Ee,d(s){s&&F(e),n[13](null),i(),l=!1,Ti(o)}}}function M0(n,e,t){let i,l,o,{color:s=On.hex("#00fff00")}=e,{dimension:u="hsl.h"}=e,{detail:a=100}=e,{width:f=null}=e,{height:c=null}=e,h,g,_,S;Eo(()=>{t(9,g=h.getContext("2d")),Rr(h)});function b(p){if(p.buttons===1){let x=zr(p).relativeX/(_-2)*(i.data.extent[1]-i.data.extent[0])+i.data.extent[0];x>i.data.extent[1]&&(x=i.data.extent[1]),x{h=p,t(4,h)})}function m(){_=this.clientWidth,S=this.clientHeight,t(2,_),t(3,S)}return n.$$set=p=>{"color"in p&&t(6,s=p.color),"dimension"in p&&t(7,u=p.dimension),"detail"in p&&t(8,a=p.detail),"width"in p&&t(0,f=p.width),"height"in p&&t(1,c=p.height)},n.$$.update=()=>{if(n.$$.dirty&128&&t(10,i=Vi(u)),n.$$.dirty&1088&&t(12,l=s.get(i.scale,i.dim)*i.data.scale),n.$$.dirty&5124&&t(11,o=(_-2)*(l-i.data.extent[0])/(i.data.extent[1]-i.data.extent[0])),n.$$.dirty&3916&&g){t(9,g.imageSmoothingEnabled=!1,g),g.clearRect(0,0,_,S);let p=Math.min(a,_-2),A=(_-2)/p,Y=i.data.extent[1]-i.data.extent[0];const x=s.to(i.scale);for(let Q=0;Q<=p;Q++){const Z=(Q/p*Y+i.data.extent[0])/i.data.scale,q=x.alter(i.scale,i.dim,Z);t(9,g.fillStyle=q.toHex(),g),g.fillRect(Math.round(Q*A),0,Math.ceil(A),S)}t(9,g.fillStyle="#ffffff",g),g.fillRect(o-1,0,3,S),t(9,g.fillStyle="#000000",g),g.fillRect(o,0,1,S)}},[f,c,_,S,h,b,s,u,a,g,i,o,l,w,m]}class y0 extends _e{constructor(e){super();we(this,e,M0,I0,be,{color:6,dimension:7,detail:8,width:0,height:1})}}function Y0(n){let e,t,i,l,o;return{c(){e=v("div"),t=v("canvas"),r(t,"width",n[0]),r(t,"height",n[1]),r(t,"class","svelte-1vtq5xo"),r(e,"class","matrix svelte-1vtq5xo"),mo(()=>n[19].call(e))},m(s,u){P(s,e,u),d(e,t),n[18](t),i=Er(e,n[19].bind(e)),l||(o=[$e(t,"mousedown",n[5]),$e(t,"mousemove",n[5])],l=!0)},p(s,[u]){u&1&&r(t,"width",s[0]),u&2&&r(t,"height",s[1])},i:Ee,o:Ee,d(s){s&&F(e),n[18](null),i(),l=!1,Ti(o)}}}function X0(n,e,t){let i,l,o,s,u,a,{color:f=On.hex("#00ff00")}=e,{dimensionX:c="hsl.l"}=e,{dimensionY:h="hsl.s"}=e,{detailX:g=100}=e,{detailY:_=100}=e,{width:S=null}=e,{height:b=null}=e,w,m,p,A;Eo(()=>{t(11,m=w.getContext("2d")),Rr(w)});function Y(Z){if(Z.buttons===1){const q=zr(Z);let $=q.relativeX,R=A-2-q.relativeY,U=$/(p-2)*(i.data.extent[1]-i.data.extent[0])+i.data.extent[0];U>i.data.extent[1]&&(U=i.data.extent[1]),Ul.data.extent[1]&&(y=l.data.extent[1]),y{w=Z,t(4,w)})}function Q(){p=this.clientWidth,A=this.clientHeight,t(2,p),t(3,A)}return n.$$set=Z=>{"color"in Z&&t(6,f=Z.color),"dimensionX"in Z&&t(7,c=Z.dimensionX),"dimensionY"in Z&&t(8,h=Z.dimensionY),"detailX"in Z&&t(9,g=Z.detailX),"detailY"in Z&&t(10,_=Z.detailY),"width"in Z&&t(0,S=Z.width),"height"in Z&&t(1,b=Z.height)},n.$$.update=()=>{if(n.$$.dirty&128&&t(12,i=Vi(c)),n.$$.dirty&256&&t(13,l=Vi(h)),n.$$.dirty&4160&&t(17,o=f.get(i.scale,i.dim)*i.data.scale),n.$$.dirty&8256&&t(16,s=f.get(l.scale,l.dim)*l.data.scale),n.$$.dirty&135172&&t(15,u=p*(o-i.data.extent[0])/(i.data.extent[1]-i.data.extent[0])),n.$$.dirty&73736&&t(14,a=A-A*(s-l.data.extent[0])/(l.data.extent[1]-l.data.extent[0])),n.$$.dirty&65100&&m){m.clearRect(0,0,p,A),t(11,m.imageSmoothingEnabled=!1,m);let Z=Math.min(g,p-2),q=Math.min(_,A-2),$=(p-2)/Z,R=(A-2)/q,U=i.data.extent[1]-i.data.extent[0],y=l.data.extent[1]-l.data.extent[0];const E=f.to(l.scale);for(let k=0;k<=q;k++){const L=(k/_*y+l.data.extent[0])/l.data.scale,K=E.alter(l.scale,l.dim,L);for(let D=0;D<=Z;D++){const ge=(D/g*U+i.data.extent[0])/i.data.scale,ee=K.alter(i.scale,i.dim,ge);t(11,m.fillStyle=ee.toHex(),m),m.fillRect(Math.round(D*$),Math.round(A-2-k*R),Math.ceil($),Math.ceil(R))}}t(11,m.fillStyle="#ffffff",m),m.fillRect(u-2,a-2,5,5),t(11,m.fillStyle="#000000",m),m.fillRect(u-1,a-1,3,3)}},[S,b,p,A,w,Y,f,c,h,g,_,m,i,l,a,u,s,o,x,Q]}class E0 extends _e{constructor(e){super();we(this,e,X0,Y0,be,{color:6,dimensionX:7,dimensionY:8,detailX:9,detailY:10,width:0,height:1})}}function O0(n){let e,t,i,l,o;return{c(){e=v("input"),r(e,"type","number"),e.value=n[1],r(e,"min",t=n[0].data.extent[0]),r(e,"max",i=n[0].data.extent[1]),r(e,"class","svelte-18y412o")},m(s,u){P(s,e,u),l||(o=$e(e,"change",n[2]),l=!0)},p(s,[u]){u&2&&e.value!==s[1]&&(e.value=s[1]),u&1&&t!==(t=s[0].data.extent[0])&&r(e,"min",t),u&1&&i!==(i=s[0].data.extent[1])&&r(e,"max",i)},i:Ee,o:Ee,d(s){s&&F(e),l=!1,o()}}}function F0(n,e,t){let i,l,o,{color:s=On.hex("#00ff00")}=e,{dimension:u="hsl.h"}=e;function a(f){let c=+f.target.value;t(3,s=s.alter(i.scale,i.dim,c/i.data.scale))}return n.$$set=f=>{"color"in f&&t(3,s=f.color),"dimension"in f&&t(4,u=f.dimension)},n.$$.update=()=>{n.$$.dirty&16&&t(0,i=Vi(u)),n.$$.dirty&9&&t(5,l=s.get(i.scale,i.dim)*i.data.scale),n.$$.dirty&32&&t(1,o=Math.round(l))},[i,o,a,s,u,l]}class P0 extends _e{constructor(e){super();we(this,e,F0,O0,be,{color:3,dimension:4})}}function V0(n){let e,t,i;return{c(){e=v("input"),r(e,"id",n[0]),e.value=n[2],V(e,"width",n[1]+"px"),r(e,"class","svelte-h7kv0z")},m(l,o){P(l,e,o),t||(i=$e(e,"change",n[3]),t=!0)},p(l,[o]){o&1&&r(e,"id",l[0]),o&4&&e.value!==l[2]&&(e.value=l[2]),o&2&&V(e,"width",l[1]+"px")},i:Ee,o:Ee,d(l){l&&F(e),t=!1,i()}}}function H0(n,e,t){let i,{color:l=On.hex("#00ff00")}=e,{id:o=null}=e,{width:s=null}=e;function u(a){let f=On.hex(a.target.value);f.data!=null?t(4,l=f):a.target.value=i}return n.$$set=a=>{"color"in a&&t(4,l=a.color),"id"in a&&t(0,o=a.id),"width"in a&&t(1,s=a.width)},n.$$.update=()=>{n.$$.dirty&16&&t(2,i=l.toHex())},[o,s,i,u,l]}class B0 extends _e{constructor(e){super();we(this,e,H0,V0,be,{color:4,id:0,width:1})}}function Ml(n,e,t){const i=n.slice();return i[34]=e[t],i}function yl(n,e,t){const i=n.slice();return i[37]=e[t],i}function Yl(n,e,t){const i=n.slice();return i[34]=e[t],i}function Xl(n){let e,t,i;return{c(){e=v("div"),r(e,"class","color-picker-background svelte-imelgj")},m(l,o){P(l,e,o),t||(i=$e(e,"click",n[23]),t=!0)},p:Ee,d(l){l&&F(e),t=!1,i()}}}function El(n){let e,t,i;return{c(){e=v("div"),r(e,"class","color-picker-handle svelte-imelgj"),V(e,"width",n[7]+"px"),V(e,"height",n[8]+"px"),V(e,"background",n[0].toHex())},m(l,o){P(l,e,o),t||(i=$e(e,"click",n[22]),t=!0)},p(l,o){o[0]&128&&V(e,"width",l[7]+"px"),o[0]&256&&V(e,"height",l[8]+"px"),o[0]&1&&V(e,"background",l[0].toHex())},d(l){l&&F(e),t=!1,i()}}}function Ol(n){let e,t,i,l,o=n[9]&&Fl(n),s=n[3]&&Pl(n),u=n[10]&&Gl(n);return{c(){e=v("div"),o&&o.c(),t=I(),s&&s.c(),i=I(),u&&u.c(),r(e,"class","color-picker-controls svelte-imelgj"),V(e,"background",n[4])},m(a,f){P(a,e,f),o&&o.m(e,null),d(e,t),s&&s.m(e,null),d(e,i),u&&u.m(e,null),l=!0},p(a,f){a[9]?o?(o.p(a,f),f[0]&512&&C(o,1)):(o=Fl(a),o.c(),C(o,1),o.m(e,t)):o&&(Se(),T(o,1,1,()=>{o=null}),pe()),a[3]?s?(s.p(a,f),f[0]&8&&C(s,1)):(s=Pl(a),s.c(),C(s,1),s.m(e,i)):s&&(Se(),T(s,1,1,()=>{s=null}),pe()),a[10]?u?(u.p(a,f),f[0]&1024&&C(u,1)):(u=Gl(a),u.c(),C(u,1),u.m(e,null)):u&&(Se(),T(u,1,1,()=>{u=null}),pe()),(!l||f[0]&16)&&V(e,"background",a[4])},i(a){l||(C(o),C(s),C(u),l=!0)},o(a){T(o),T(s),T(u),l=!1},d(a){a&&F(e),o&&o.d(),s&&s.d(),u&&u.d()}}}function Fl(n){let e,t,i;function l(s){n[26](s)}let o={dimensionX:n[18],dimensionY:n[19],width:n[14],height:n[15]};return n[0]!==void 0&&(o.color=n[0]),e=new E0({props:o}),ie.push(()=>se(e,"color",l)),{c(){H(e.$$.fragment)},m(s,u){B(e,s,u),i=!0},p(s,u){const a={};u[0]&262144&&(a.dimensionX=s[18]),u[0]&524288&&(a.dimensionY=s[19]),u[0]&16384&&(a.width=s[14]),u[0]&32768&&(a.height=s[15]),!t&&u[0]&1&&(t=!0,a.color=s[0],ae(()=>t=!1)),e.$set(a)},i(s){i||(C(e.$$.fragment,s),i=!0)},o(s){T(e.$$.fragment,s),i=!1},d(s){z(e,s)}}}function Pl(n){let e,t,i,l=n[6]&&Vl(n),o=Object.keys(St),s=[];for(let a=0;aT(s[a],1,1,()=>{s[a]=null});return{c(){l&&l.c(),e=I();for(let a=0;aT(o[u],1,1,()=>{o[u]=null});return{c(){e=v("div");for(let u=0;use(l,"color",c));let g=n[11]&&Nl(n);return{c(){e=v("div"),a&&a.c(),t=I(),f&&f.c(),i=I(),H(l.$$.fragment),s=I(),g&&g.c(),r(e,"class","slider svelte-imelgj")},m(_,S){P(_,e,S),a&&a.m(e,null),d(e,t),f&&f.m(e,null),d(e,i),B(l,e,null),d(e,s),g&&g.m(e,null),u=!0},p(_,S){_[13]?a?a.p(_,S):(a=Ul(_),a.c(),a.m(e,t)):a&&(a.d(1),a=null),_[12]?f?f.p(_,S):(f=Ll(_),f.c(),f.m(e,i)):f&&(f.d(1),f=null);const b={};S[0]&2097152&&(b.width=_[21]),S[0]&65536&&(b.height=_[16]),!o&&S[0]&1&&(o=!0,b.color=_[0],ae(()=>o=!1)),l.$set(b),_[11]?g?(g.p(_,S),S[0]&2048&&C(g,1)):(g=Nl(_),g.c(),C(g,1),g.m(e,null)):g&&(Se(),T(g,1,1,()=>{g=null}),pe())},i(_){u||(C(l.$$.fragment,_),C(g),u=!0)},o(_){T(l.$$.fragment,_),T(g),u=!1},d(_){_&&F(e),a&&a.d(),f&&f.d(),z(l),g&&g.d()}}}function Ul(n){let e,t,i;return{c(){e=v("input"),r(e,"type","radio"),e.__value=n[34]+"."+n[37],e.value=e.__value,r(e,"id",n[34]+"-"+n[37]),r(e,"class","svelte-imelgj"),n[29][0].push(e)},m(l,o){P(l,e,o),e.checked=e.__value===n[1],t||(i=$e(e,"change",n[28]),t=!0)},p(l,o){o[0]&2&&(e.checked=e.__value===l[1])},d(l){l&&F(e),n[29][0].splice(n[29][0].indexOf(e),1),t=!1,i()}}}function Ll(n){let e,t=n[37].toUpperCase()+"",i,l;return{c(){e=v("label"),i=ne(t),r(e,"for",l=n[34]+"-"+n[37]),r(e,"class","svelte-imelgj")},m(o,s){P(o,e,s),d(e,i)},p:Ee,d(o){o&&F(e)}}}function Nl(n){let e,t,i;function l(s){n[31](s)}let o={dimension:n[34]+"."+n[37]};return n[0]!==void 0&&(o.color=n[0]),e=new P0({props:o}),ie.push(()=>se(e,"color",l)),{c(){H(e.$$.fragment)},m(s,u){B(e,s,u),i=!0},p(s,u){const a={};!t&&u[0]&1&&(t=!0,a.color=s[0],ae(()=>t=!1)),e.$set(a)},i(s){i||(C(e.$$.fragment,s),i=!0)},o(s){T(e.$$.fragment,s),i=!1},d(s){z(e,s)}}}function ql(n){let e,t,i=n[3][`${n[34]}.${n[37]}`]&&Rl(n);return{c(){i&&i.c(),e=kn()},m(l,o){i&&i.m(l,o),P(l,e,o),t=!0},p(l,o){l[3][`${l[34]}.${l[37]}`]?i?(i.p(l,o),o[0]&8&&C(i,1)):(i=Rl(l),i.c(),C(i,1),i.m(e.parentNode,e)):i&&(Se(),T(i,1,1,()=>{i=null}),pe())},i(l){t||(C(i),t=!0)},o(l){T(i),t=!1},d(l){i&&i.d(l),l&&F(e)}}}function jl(n){let e,t,i=(!n[6]||n[2]===n[34])&&zl(n);return{c(){i&&i.c(),e=kn()},m(l,o){i&&i.m(l,o),P(l,e,o),t=!0},p(l,o){!l[6]||l[2]===l[34]?i?(i.p(l,o),o[0]&68&&C(i,1)):(i=zl(l),i.c(),C(i,1),i.m(e.parentNode,e)):i&&(Se(),T(i,1,1,()=>{i=null}),pe())},i(l){t||(C(i),t=!0)},o(l){T(i),t=!1},d(l){i&&i.d(l),l&&F(e)}}}function Gl(n){let e,t,i,l,o,s,u=n[12]&&Wl();function a(c){n[32](c)}let f={width:n[20],id:"hex"};return n[0]!==void 0&&(f.color=n[0]),l=new B0({props:f}),ie.push(()=>se(l,"color",a)),{c(){e=v("div"),t=v("div"),u&&u.c(),i=I(),H(l.$$.fragment),r(t,"class","text svelte-imelgj"),r(e,"class","group svelte-imelgj")},m(c,h){P(c,e,h),d(e,t),u&&u.m(t,null),d(t,i),B(l,t,null),s=!0},p(c,h){c[12]?u||(u=Wl(),u.c(),u.m(t,i)):u&&(u.d(1),u=null);const g={};h[0]&1048576&&(g.width=c[20]),!o&&h[0]&1&&(o=!0,g.color=c[0],ae(()=>o=!1)),l.$set(g)},i(c){s||(C(l.$$.fragment,c),s=!0)},o(c){T(l.$$.fragment,c),s=!1},d(c){c&&F(e),u&&u.d(),z(l)}}}function Wl(n){let e;return{c(){e=v("label"),e.textContent="Hex",r(e,"for","hex"),r(e,"class","svelte-imelgj")},m(t,i){P(t,e,i)},d(t){t&&F(e)}}}function z0(n){let e,t,i,l,o,s=n[5]&&!n[17]&&Xl(n),u=n[5]&&El(n),a=n[5]&&!n[17]&&Ol(n);return{c(){e=v("div"),s&&s.c(),t=I(),u&&u.c(),i=I(),a&&a.c(),r(e,"class",l="color-picker "+(n[5]?"collapse":"")+" svelte-imelgj")},m(f,c){P(f,e,c),s&&s.m(e,null),d(e,t),u&&u.m(e,null),d(e,i),a&&a.m(e,null),o=!0},p(f,c){f[5]&&!f[17]?s?s.p(f,c):(s=Xl(f),s.c(),s.m(e,t)):s&&(s.d(1),s=null),f[5]?u?u.p(f,c):(u=El(f),u.c(),u.m(e,i)):u&&(u.d(1),u=null),f[5]&&!f[17]?a?(a.p(f,c),c[0]&131104&&C(a,1)):(a=Ol(f),a.c(),C(a,1),a.m(e,null)):a&&(Se(),T(a,1,1,()=>{a=null}),pe()),(!o||c[0]&32&&l!==(l="color-picker "+(f[5]?"collapse":"")+" svelte-imelgj"))&&r(e,"class",l)},i(f){o||(C(a),o=!0)},o(f){T(a),o=!1},d(f){f&&F(e),s&&s.d(),u&&u.d(),a&&a.d()}}}function R0(n,e,t){let i,l,{colorString:o="#ff9900"}=e,{color:s=On.hex(o)}=e;const u=As();let{selectedDimension:a="hsl.h"}=e,{selectedTab:f="hsl"}=e,{background:c="#fff"}=e,{collapse:h=!1}=e,{tabbed:g=!1}=e,{handleWidth:_=32}=e,{handleHeight:S=32}=e,{showMatrix:b=!0}=e,{showSliders:w=null}=e;if(w==null){w={};for(const W in St)for(const J in St[W])w[`${W}.${J}`]=!0}let{showHex:m=!0}=e,{showNumeric:p=!0}=e,{showLabels:A=!0}=e,{selectDimensions:Y=!0}=e,{matrixWidth:x=300}=e,{matrixHeight:Q=200}=e,{scrollbarHeight:Z=20}=e,q=!0,$=null,R=null;const U=()=>{t(17,q=!1),u("pickerExpand",{collapsed:q,color:s})},y=()=>{t(17,q=!0),u("pickerCollapse",{collapsed:q,color:s})},E=[[]],k=(W,J)=>w[`${W}.${J}`];function L(W){s=W,t(0,s)}const K=W=>{t(2,f=W),t(1,a=`${W}.${Object.keys(St[W])[0]}`)};function D(){a=this.__value,t(1,a)}function ge(W){s=W,t(0,s)}function ee(W){s=W,t(0,s)}function te(W){s=W,t(0,s)}return n.$$set=W=>{"colorString"in W&&t(24,o=W.colorString),"color"in W&&t(0,s=W.color),"selectedDimension"in W&&t(1,a=W.selectedDimension),"selectedTab"in W&&t(2,f=W.selectedTab),"background"in W&&t(4,c=W.background),"collapse"in W&&t(5,h=W.collapse),"tabbed"in W&&t(6,g=W.tabbed),"handleWidth"in W&&t(7,_=W.handleWidth),"handleHeight"in W&&t(8,S=W.handleHeight),"showMatrix"in W&&t(9,b=W.showMatrix),"showSliders"in W&&t(3,w=W.showSliders),"showHex"in W&&t(10,m=W.showHex),"showNumeric"in W&&t(11,p=W.showNumeric),"showLabels"in W&&t(12,A=W.showLabels),"selectDimensions"in W&&t(13,Y=W.selectDimensions),"matrixWidth"in W&&t(14,x=W.matrixWidth),"matrixHeight"in W&&t(15,Q=W.matrixHeight),"scrollbarHeight"in W&&t(16,Z=W.scrollbarHeight)},n.$$.update=()=>{if(n.$$.dirty[0]&1&&typeof s=="string"&&t(0,s=On.hex(s)),n.$$.dirty[0]&2){let[W,J]=a.split(".",2),Me=Object.keys(St[W]);Me.splice(Me.indexOf(J),1),t(18,$=`${W}.${Me[0]}`),t(19,R=`${W}.${Me[1]}`)}n.$$.dirty[0]&30720&&t(21,i=x-(Y?25:0)-(A?25:0)-(p?65:0)),n.$$.dirty[0]&20480&&t(20,l=x-(A?50:0))},[s,a,f,w,c,h,g,_,S,b,m,p,A,Y,x,Q,Z,q,$,R,l,i,U,y,o,k,L,K,D,E,ge,ee,te]}class U0 extends _e{constructor(e){super();we(this,e,R0,z0,be,{colorString:24,color:0,selectedDimension:1,selectedTab:2,background:4,collapse:5,tabbed:6,handleWidth:7,handleHeight:8,showMatrix:9,showSliders:3,showHex:10,showNumeric:11,showLabels:12,selectDimensions:13,matrixWidth:14,matrixHeight:15,scrollbarHeight:16},null,[-1,-1])}}function L0(n){let e,t,i,l;function o(u){n[4](u)}let s={colorString:n[0],background:N0,collapse:!0,handleWidth:135,handleHeight:40,tabbed:n[2].tabbed,selectedTab:n[2].selectedTab,selectedDimension:n[2].selectedDimension,showMatrix:n[2].showMatrix,showSliders:n[2].showSlidersGlobal&&n[2].showSliders,showHex:n[2].showHex,showLabels:n[2].showLabels,showNumeric:n[2].showNumeric,selectDimensions:n[2].selectDimensions,matrixWidth:n[2].matrixWidth,matrixHeight:n[2].matrixHeight,scrollbarHeight:n[2].scrollbarHeight};return n[1]!==void 0&&(s.color=n[1]),t=new U0({props:s}),ie.push(()=>se(t,"color",o)),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","text-black flex flex-row mx-auto border-2 rounded-[8px] border-gray-600")},m(u,a){P(u,e,a),B(t,e,null),l=!0},p(u,[a]){const f={};a&1&&(f.colorString=u[0]),!i&&a&2&&(i=!0,f.color=u[1],ae(()=>i=!1)),t.$set(f)},i(u){l||(C(t.$$.fragment,u),l=!0)},o(u){T(t.$$.fragment,u),l=!1},d(u){u&&F(e),z(t)}}}const Wi="#03f0b5ff";let N0="#fff";function q0(n,e,t){let{colorString:i=Wi}=e,{updateFunction:l=null}=e,o=On.hex(i),s={selectedDimension:"hsl.h",tabbed:!0,selectedTab:"hsl",showMatrix:!0,showSlidersGlobal:!0,showHex:!0,showNumeric:!0,showLabels:!0,showSliders:{"hsl.h":!0,"hsl.s":!0,"hsl.l":!0,"hcl.h":!0,"hcl.c":!0,"hcl.l":!0,"lab.l":!0,"lab.a":!0,"lab.b":!0,"rgb.r":!0,"rgb.g":!0,"rgb.b":!0,"rgb.a":!0},selectDimensions:!0,matrixWidth:300,matrixHeight:200,scrollbarHeight:20};function u(a){o=a,t(1,o),t(0,i)}return n.$$set=a=>{"colorString"in a&&t(0,i=a.colorString),"updateFunction"in a&&t(3,l=a.updateFunction)},n.$$.update=()=>{if(n.$$.dirty&1&&t(1,o=On.hex(i!=""?i:Wi)),n.$$.dirty&11&&l&&o.toHex){let a=o.toHex();a!=i&&a!=Wi&&l(o.toHex())}},[i,o,s,l,u]}class Wo extends _e{constructor(e){super();we(this,e,q0,L0,be,{colorString:0,updateFunction:3})}}function Jl(n){let e,t,i=n[8].ringSize+"",l,o,s,u,a;function f(h){n[19](h)}let c={min:1,max:25,step:.5,handleUpdateFunction:n[18]};return n[9].icons[n[1]].ringSize!==void 0&&(c.value=n[9].icons[n[1]].ringSize),s=new ve({props:c}),ie.push(()=>se(s,"value",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&256)&&i!==(i=h[8].ringSize+"")&&re(l,i);const _={};g[0]&2&&(_.handleUpdateFunction=h[18]),!u&&g[0]&514&&(u=!0,_.value=h[9].icons[h[1]].ringSize,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function Zl(n){let e,t,i=n[8].showProgressOutline+"",l,o,s,u,a;function f(h){n[21](h)}let c={center:!0,handleUpdateFunction:n[20]};return n[9].icons[n[1]].displayOutline!==void 0&&(c.checked=n[9].icons[n[1]].displayOutline),s=new Hi({props:c}),ie.push(()=>se(s,"checked",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&256)&&i!==(i=h[8].showProgressOutline+"")&&re(l,i);const _={};g[0]&2&&(_.handleUpdateFunction=h[20]),!u&&g[0]&514&&(u=!0,_.checked=h[9].icons[h[1]].displayOutline,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function Kl(n){let e,t,i=n[8].xAxisCurve+"",l,o,s,u,a;function f(h){n[35](h)}let c={min:0,max:100,handleUpdateFunction:n[34]};return n[9].icons[n[1]].xAxisRound!==void 0&&(c.value=n[9].icons[n[1]].xAxisRound),s=new ve({props:c}),ie.push(()=>se(s,"value",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&256)&&i!==(i=h[8].xAxisCurve+"")&&re(l,i);const _={};g[0]&2&&(_.handleUpdateFunction=h[34]),!u&&g[0]&514&&(u=!0,_.value=h[9].icons[h[1]].xAxisRound,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function Ql(n){let e,t,i=n[8].yAxisCurve+"",l,o,s,u,a;function f(h){n[37](h)}let c={min:0,max:100,handleUpdateFunction:n[36]};return n[9].icons[n[1]].yAxisRound!==void 0&&(c.value=n[9].icons[n[1]].yAxisRound),s=new ve({props:c}),ie.push(()=>se(s,"value",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&256)&&i!==(i=h[8].yAxisCurve+"")&&re(l,i);const _={};g[0]&2&&(_.handleUpdateFunction=h[36]),!u&&g[0]&514&&(u=!0,_.value=h[9].icons[h[1]].yAxisRound,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function xl(n){let e,t,i,l=n[8].iconState+"",o,s,u,a,f,c;function h(S){n[38](S)}function g(S){n[39](S)}let _={valuesArray:n[6]};return n[7]!==void 0&&(_.value=n[7]),n[2]!==void 0&&(_.selectedIndex=n[2]),u=new Di({props:_}),ie.push(()=>se(u,"value",h)),ie.push(()=>se(u,"selectedIndex",g)),{c(){e=v("div"),t=v("div"),i=v("p"),o=ne(l),s=I(),H(u.$$.fragment),r(i,"class","text-lg text-center mb-2"),r(t,"class","w-50"),r(e,"class","flex flex-row justify-center mt-4")},m(S,b){P(S,e,b),d(e,t),d(t,i),d(i,o),d(t,s),B(u,t,null),c=!0},p(S,b){(!c||b[0]&256)&&l!==(l=S[8].iconState+"")&&re(o,l);const w={};b[0]&64&&(w.valuesArray=S[6]),!a&&b[0]&128&&(a=!0,w.value=S[7],ae(()=>a=!1)),!f&&b[0]&4&&(f=!0,w.selectedIndex=S[2],ae(()=>f=!1)),u.$set(w)},i(S){c||(C(u.$$.fragment,S),c=!0)},o(S){T(u.$$.fragment,S),c=!1},d(S){S&&F(e),z(u)}}}function $l(n){let e,t,i=n[8].innerColor+"",l,o,s,u;return s=new Wo({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].innerColor,updateFunction:n[55]}}),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2"),r(e,"class","flex flex-col mx-auto")},m(a,f){P(a,e,f),d(e,t),d(t,l),d(e,o),B(s,e,null),u=!0},p(a,f){(!u||f[0]&256)&&i!==(i=a[8].innerColor+"")&&re(l,i);const c={};f[0]&22&&(c.colorString=a[4].icons[a[1]].colorEffects[a[2]].innerColor),f[0]&6&&(c.updateFunction=a[55]),s.$set(c)},i(a){u||(C(s.$$.fragment,a),u=!0)},o(a){T(s.$$.fragment,a),u=!1},d(a){a&&F(e),z(s)}}}function j0(n){let e,t,i,l,o=n[8].iconStatusToEdit+"",s,u,a,f,c,h,g=n[8].iconShape+"",_,S,b,w,m,p,A,Y,x,Q=n[8].singleIconSizeAndPositionSection+"",Z,q,$,R,U,y,E,k=n[8].widthSize+"",L,K,D,ge,ee,te,W,J=n[8].heightSize+"",Me,Pe,he,ke,Ae,hn,gn,Oe,an,Dn=n[8].xAxisPosition+"",un,Pn,Ie,en,Vn,ce,Ce,j=n[8].yAxisPosition+"",fn,ln,nn,G,dn,rn,zt,Hn=n[8].rotation+"",ht,eo,tn,Rt,Fo,yn,Ut,pt=n[8].iconXAxisPosition+"",st,kt,Yn,no,cn,Ne,Ct,to=n[8].iconYAxisPosition+"",Bn,oo,mn,Xn,Lt,vt,zn,Nt=n[8].iconSize+"",io,De,_n,qt,Rn,jt,_o,Tn,lo,Wn=n[8].singleIconColorSection+"",gt,At,ro,wo,Xe,Te,Dt,Jn,at=n[8].progressColor+"",Tt,bo,wn,Zn,It,Un,Kn=n[8].progressContrast+"",Gt,Ln,Nn,So,bn,Mt,dt,yt=n[8].progressShadow+"",Wt,Jt,qn,En,so,Yt,Sn,In=n[8].iconColor+"",Xt,po,pn,Qn,Et,jn,xn=n[8].iconContrast+"",Zt,ao,$n,Kt,et,mt,ut,Ot=n[8].iconShadow+"",nt,tt,ot,it,Qt,Be,Ft,Pt=n[8].outlineColor+"",uo,ko,Vt,ft,xt,fo,ye=n[8].outlineContrast+"",Po,Jo,_t,Vo,Ue,He,Co,vo=n[8].outlineShadow+"",Ho,Zo,wt,Bo,Ko,Ye;a=new Di({props:{valuesArray:el,value:n[1],handleSelectFunction:n[11]}});function di(M){n[13](M)}let Qo={valuesArray:Or,handleSelectFunction:n[12]};n[9].icons[n[1]].shape!==void 0&&(Qo.value=n[9].icons[n[1]].shape),b=new Di({props:Qo}),ie.push(()=>se(b,"value",di));function mi(M){n[15](M)}let xo={min:1,max:200,handleUpdateFunction:n[14]};n[9].icons[n[1]].width!==void 0&&(xo.value=n[9].icons[n[1]].width),D=new ve({props:xo}),ie.push(()=>se(D,"value",mi));function qe(M){n[17](M)}let je={min:1,max:200,handleUpdateFunction:n[16]};n[9].icons[n[1]].height!==void 0&&(je.value=n[9].icons[n[1]].height),he=new ve({props:je}),ie.push(()=>se(he,"value",qe));let Ge=n[9].icons[n[1]].ringSize!=null&&Jl(n),We=n[9].icons[n[1]].displayOutline!=null&&Zl(n);function _i(M){n[23](M)}let $o={min:-20,max:20,step:.25,handleUpdateFunction:n[22]};n[9].icons[n[1]].translateX!==void 0&&($o.value=n[9].icons[n[1]].translateX),Ie=new ve({props:$o}),ie.push(()=>se(Ie,"value",_i));function wi(M){n[25](M)}let ei={min:-20,max:20,step:.25,handleUpdateFunction:n[24]};n[9].icons[n[1]].translateY!==void 0&&(ei.value=n[9].icons[n[1]].translateY),nn=new ve({props:ei}),ie.push(()=>se(nn,"value",wi));function bi(M){n[27](M)}let ni={min:0,max:360,handleUpdateFunction:n[26]};n[9].icons[n[1]].rotateDegree!==void 0&&(ni.value=n[9].icons[n[1]].rotateDegree),tn=new ve({props:ni}),ie.push(()=>se(tn,"value",bi));function Si(M){n[29](M)}let ti={min:-10,max:10,step:.01,handleUpdateFunction:n[28]};n[9].icons[n[1]].iconTranslateX!==void 0&&(ti.value=n[9].icons[n[1]].iconTranslateX),Yn=new ve({props:ti}),ie.push(()=>se(Yn,"value",Si));function pi(M){n[31](M)}let oi={min:-10,max:10,step:.01,handleUpdateFunction:n[30]};n[9].icons[n[1]].iconTranslateY!==void 0&&(oi.value=n[9].icons[n[1]].iconTranslateY),mn=new ve({props:oi}),ie.push(()=>se(mn,"value",pi));function Je(M){n[33](M)}let N={min:0,max:3,step:.01,handleUpdateFunction:n[32]};n[9].icons[n[1]].iconScaling!==void 0&&(N.value=n[9].icons[n[1]].iconScaling),_n=new ve({props:N}),ie.push(()=>se(_n,"value",Je));let ue=n[9].icons[n[1]].xAxisRound!=null&&Kl(n),Ze=n[9].icons[n[1]].yAxisRound!=null&&Ql(n),Le=n[3].length>1&&xl(n);wn=new Wo({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].progressColor,updateFunction:n[40]}});function O(M){n[42](M)}let fe={min:0,max:300,handleUpdateFunction:n[41]};n[4].icons[n[1]].colorEffects[n[2]].progressContrast!==void 0&&(fe.value=n[4].icons[n[1]].colorEffects[n[2]].progressContrast),Nn=new ve({props:fe}),ie.push(()=>se(Nn,"value",O));function zo(M){n[44](M)}let Ro={min:0,max:20,handleUpdateFunction:n[43]};n[4].icons[n[1]].colorEffects[n[2]].progressDropShadowAmount!==void 0&&(Ro.value=n[4].icons[n[1]].colorEffects[n[2]].progressDropShadowAmount),qn=new ve({props:Ro}),ie.push(()=>se(qn,"value",zo)),pn=new Wo({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].iconColor,updateFunction:n[45]}});function Ao(M){n[47](M)}let co={min:0,max:300,handleUpdateFunction:n[46]};n[4].icons[n[1]].colorEffects[n[2]].iconContrast!==void 0&&(co.value=n[4].icons[n[1]].colorEffects[n[2]].iconContrast),$n=new ve({props:co}),ie.push(()=>se($n,"value",Ao));function Do(M){n[49](M)}let To={min:0,max:20,handleUpdateFunction:n[48]};n[4].icons[n[1]].colorEffects[n[2]].iconDropShadowAmount!==void 0&&(To.value=n[4].icons[n[1]].colorEffects[n[2]].iconDropShadowAmount),ot=new ve({props:To}),ie.push(()=>se(ot,"value",Do)),Vt=new Wo({props:{colorString:n[4].icons[n[1]].colorEffects[n[2]].outlineColor,updateFunction:n[50]}});function Uo(M){n[52](M)}let Io={min:0,max:300,handleUpdateFunction:n[51]};n[4].icons[n[1]].colorEffects[n[2]].outlineContrast!==void 0&&(Io.value=n[4].icons[n[1]].colorEffects[n[2]].outlineContrast),_t=new ve({props:Io}),ie.push(()=>se(_t,"value",Uo));function Lo(M){n[54](M)}let Mo={min:0,max:20,handleUpdateFunction:n[53]};n[4].icons[n[1]].colorEffects[n[2]].outlineDropShadowAmount!==void 0&&(Mo.value=n[4].icons[n[1]].colorEffects[n[2]].outlineDropShadowAmount),wt=new ve({props:Mo}),ie.push(()=>se(wt,"value",Lo));let ze=n[4].icons[n[1]].editableColors.innerColor&&$l(n);return{c(){e=v("div"),t=v("div"),i=v("div"),l=v("p"),s=ne(o),u=I(),H(a.$$.fragment),f=I(),c=v("div"),h=v("p"),_=ne(g),S=I(),H(b.$$.fragment),m=I(),p=v("div"),A=I(),Y=v("div"),x=v("p"),Z=ne(Q),q=I(),$=v("hr"),R=I(),U=v("div"),y=v("div"),E=v("p"),L=ne(k),K=I(),H(D.$$.fragment),ee=I(),te=v("div"),W=v("p"),Me=ne(J),Pe=I(),H(he.$$.fragment),Ae=I(),Ge&&Ge.c(),hn=I(),We&&We.c(),gn=I(),Oe=v("div"),an=v("p"),un=ne(Dn),Pn=I(),H(Ie.$$.fragment),Vn=I(),ce=v("div"),Ce=v("p"),fn=ne(j),ln=I(),H(nn.$$.fragment),dn=I(),rn=v("div"),zt=v("p"),ht=ne(Hn),eo=I(),H(tn.$$.fragment),Fo=I(),yn=v("div"),Ut=v("p"),st=ne(pt),kt=I(),H(Yn.$$.fragment),cn=I(),Ne=v("div"),Ct=v("p"),Bn=ne(to),oo=I(),H(mn.$$.fragment),Lt=I(),vt=v("div"),zn=v("p"),io=ne(Nt),De=I(),H(_n.$$.fragment),Rn=I(),ue&&ue.c(),jt=I(),Ze&&Ze.c(),_o=I(),Tn=v("div"),lo=v("p"),gt=ne(Wn),At=I(),ro=v("hr"),wo=I(),Le&&Le.c(),Xe=I(),Te=v("div"),Dt=v("div"),Jn=v("p"),Tt=ne(at),bo=I(),H(wn.$$.fragment),Zn=I(),It=v("div"),Un=v("p"),Gt=ne(Kn),Ln=I(),H(Nn.$$.fragment),bn=I(),Mt=v("div"),dt=v("p"),Wt=ne(yt),Jt=I(),H(qn.$$.fragment),so=I(),Yt=v("div"),Sn=v("p"),Xt=ne(In),po=I(),H(pn.$$.fragment),Qn=I(),Et=v("div"),jn=v("p"),Zt=ne(xn),ao=I(),H($n.$$.fragment),et=I(),mt=v("div"),ut=v("p"),nt=ne(Ot),tt=I(),H(ot.$$.fragment),Qt=I(),Be=v("div"),Ft=v("p"),uo=ne(Pt),ko=I(),H(Vt.$$.fragment),ft=I(),xt=v("div"),fo=v("p"),Po=ne(ye),Jo=I(),H(_t.$$.fragment),Ue=I(),He=v("div"),Co=v("p"),Ho=ne(vo),Zo=I(),H(wt.$$.fragment),Ko=I(),ze&&ze.c(),r(l,"class","text-lg text-center mb-2"),r(i,"class","max-w-50 ml-8"),r(t,"class","flex-1"),r(h,"class","text-lg text-center mb-2"),r(c,"class","w-50"),r(p,"class","flex-1"),r(e,"class","flex flex-row mb-8 mt-4"),r(x,"class","text-xl font-bold"),r($,"class","mb-6"),r(Y,"class","mx-8"),r(E,"class","text-base text-center mb-2"),r(W,"class","text-base text-center mb-2"),r(an,"class","text-base text-center mb-2"),r(Ce,"class","text-base text-center mb-2"),r(zt,"class","text-base text-center mb-2"),r(Ut,"class","text-base text-center mb-2"),r(Ct,"class","text-base text-center mb-2"),r(zn,"class","text-base text-center mb-2"),r(U,"class","mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end"),r(lo,"class","text-xl font-bold"),r(Tn,"class","mx-8 mt-8"),r(Jn,"class","text-base text-center mb-2"),r(Dt,"class","flex flex-col mx-auto"),r(Un,"class","text-base text-center mb-2"),r(dt,"class","text-base text-center mb-2"),r(Sn,"class","text-base text-center mb-2"),r(Yt,"class","flex flex-col mx-auto"),r(jn,"class","text-base text-center mb-2"),r(ut,"class","text-base text-center mb-2"),r(Ft,"class","text-base text-center mb-2"),r(Be,"class","flex flex-col mx-auto"),r(fo,"class","text-base text-center mb-2"),r(Co,"class","text-base text-center mb-2"),r(Te,"class","mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6")},m(M,le){P(M,e,le),d(e,t),d(t,i),d(i,l),d(l,s),d(i,u),B(a,i,null),d(e,f),d(e,c),d(c,h),d(h,_),d(c,S),B(b,c,null),d(e,m),d(e,p),P(M,A,le),P(M,Y,le),d(Y,x),d(x,Z),d(Y,q),d(Y,$),P(M,R,le),P(M,U,le),d(U,y),d(y,E),d(E,L),d(y,K),B(D,y,null),d(U,ee),d(U,te),d(te,W),d(W,Me),d(te,Pe),B(he,te,null),d(U,Ae),Ge&&Ge.m(U,null),d(U,hn),We&&We.m(U,null),d(U,gn),d(U,Oe),d(Oe,an),d(an,un),d(Oe,Pn),B(Ie,Oe,null),d(U,Vn),d(U,ce),d(ce,Ce),d(Ce,fn),d(ce,ln),B(nn,ce,null),d(U,dn),d(U,rn),d(rn,zt),d(zt,ht),d(rn,eo),B(tn,rn,null),d(U,Fo),d(U,yn),d(yn,Ut),d(Ut,st),d(yn,kt),B(Yn,yn,null),d(U,cn),d(U,Ne),d(Ne,Ct),d(Ct,Bn),d(Ne,oo),B(mn,Ne,null),d(U,Lt),d(U,vt),d(vt,zn),d(zn,io),d(vt,De),B(_n,vt,null),d(U,Rn),ue&&ue.m(U,null),d(U,jt),Ze&&Ze.m(U,null),P(M,_o,le),P(M,Tn,le),d(Tn,lo),d(lo,gt),d(Tn,At),d(Tn,ro),P(M,wo,le),Le&&Le.m(M,le),P(M,Xe,le),P(M,Te,le),d(Te,Dt),d(Dt,Jn),d(Jn,Tt),d(Dt,bo),B(wn,Dt,null),d(Te,Zn),d(Te,It),d(It,Un),d(Un,Gt),d(It,Ln),B(Nn,It,null),d(Te,bn),d(Te,Mt),d(Mt,dt),d(dt,Wt),d(Mt,Jt),B(qn,Mt,null),d(Te,so),d(Te,Yt),d(Yt,Sn),d(Sn,Xt),d(Yt,po),B(pn,Yt,null),d(Te,Qn),d(Te,Et),d(Et,jn),d(jn,Zt),d(Et,ao),B($n,Et,null),d(Te,et),d(Te,mt),d(mt,ut),d(ut,nt),d(mt,tt),B(ot,mt,null),d(Te,Qt),d(Te,Be),d(Be,Ft),d(Ft,uo),d(Be,ko),B(Vt,Be,null),d(Te,ft),d(Te,xt),d(xt,fo),d(fo,Po),d(xt,Jo),B(_t,xt,null),d(Te,Ue),d(Te,He),d(He,Co),d(Co,Ho),d(He,Zo),B(wt,He,null),d(Te,Ko),ze&&ze.m(Te,null),Ye=!0},p(M,le){(!Ye||le[0]&256)&&o!==(o=M[8].iconStatusToEdit+"")&&re(s,o);const ho={};le[0]&2&&(ho.value=M[1]),le[0]&38&&(ho.handleSelectFunction=M[11]),a.$set(ho),(!Ye||le[0]&256)&&g!==(g=M[8].iconShape+"")&&re(_,g);const ii={};le[0]&2&&(ii.handleSelectFunction=M[12]),!w&&le[0]&514&&(w=!0,ii.value=M[9].icons[M[1]].shape,ae(()=>w=!1)),b.$set(ii),(!Ye||le[0]&256)&&Q!==(Q=M[8].singleIconSizeAndPositionSection+"")&&re(Z,Q),(!Ye||le[0]&256)&&k!==(k=M[8].widthSize+"")&&re(L,k);const li={};le[0]&2&&(li.handleUpdateFunction=M[14]),!ge&&le[0]&514&&(ge=!0,li.value=M[9].icons[M[1]].width,ae(()=>ge=!1)),D.$set(li),(!Ye||le[0]&256)&&J!==(J=M[8].heightSize+"")&&re(Me,J);const ri={};le[0]&2&&(ri.handleUpdateFunction=M[16]),!ke&&le[0]&514&&(ke=!0,ri.value=M[9].icons[M[1]].height,ae(()=>ke=!1)),he.$set(ri),M[9].icons[M[1]].ringSize!=null?Ge?(Ge.p(M,le),le[0]&514&&C(Ge,1)):(Ge=Jl(M),Ge.c(),C(Ge,1),Ge.m(U,hn)):Ge&&(Se(),T(Ge,1,1,()=>{Ge=null}),pe()),M[9].icons[M[1]].displayOutline!=null?We?(We.p(M,le),le[0]&514&&C(We,1)):(We=Zl(M),We.c(),C(We,1),We.m(U,gn)):We&&(Se(),T(We,1,1,()=>{We=null}),pe()),(!Ye||le[0]&256)&&Dn!==(Dn=M[8].xAxisPosition+"")&&re(un,Dn);const No={};le[0]&2&&(No.handleUpdateFunction=M[22]),!en&&le[0]&514&&(en=!0,No.value=M[9].icons[M[1]].translateX,ae(()=>en=!1)),Ie.$set(No),(!Ye||le[0]&256)&&j!==(j=M[8].yAxisPosition+"")&&re(fn,j);const si={};le[0]&2&&(si.handleUpdateFunction=M[24]),!G&&le[0]&514&&(G=!0,si.value=M[9].icons[M[1]].translateY,ae(()=>G=!1)),nn.$set(si),(!Ye||le[0]&256)&&Hn!==(Hn=M[8].rotation+"")&&re(ht,Hn);const ai={};le[0]&2&&(ai.handleUpdateFunction=M[26]),!Rt&&le[0]&514&&(Rt=!0,ai.value=M[9].icons[M[1]].rotateDegree,ae(()=>Rt=!1)),tn.$set(ai),(!Ye||le[0]&256)&&pt!==(pt=M[8].iconXAxisPosition+"")&&re(st,pt);const ui={};le[0]&2&&(ui.handleUpdateFunction=M[28]),!no&&le[0]&514&&(no=!0,ui.value=M[9].icons[M[1]].iconTranslateX,ae(()=>no=!1)),Yn.$set(ui),(!Ye||le[0]&256)&&to!==(to=M[8].iconYAxisPosition+"")&&re(Bn,to);const fi={};le[0]&2&&(fi.handleUpdateFunction=M[30]),!Xn&&le[0]&514&&(Xn=!0,fi.value=M[9].icons[M[1]].iconTranslateY,ae(()=>Xn=!1)),mn.$set(fi),(!Ye||le[0]&256)&&Nt!==(Nt=M[8].iconSize+"")&&re(io,Nt);const qo={};le[0]&2&&(qo.handleUpdateFunction=M[32]),!qt&&le[0]&514&&(qt=!0,qo.value=M[9].icons[M[1]].iconScaling,ae(()=>qt=!1)),_n.$set(qo),M[9].icons[M[1]].xAxisRound!=null?ue?(ue.p(M,le),le[0]&514&&C(ue,1)):(ue=Kl(M),ue.c(),C(ue,1),ue.m(U,jt)):ue&&(Se(),T(ue,1,1,()=>{ue=null}),pe()),M[9].icons[M[1]].yAxisRound!=null?Ze?(Ze.p(M,le),le[0]&514&&C(Ze,1)):(Ze=Ql(M),Ze.c(),C(Ze,1),Ze.m(U,null)):Ze&&(Se(),T(Ze,1,1,()=>{Ze=null}),pe()),(!Ye||le[0]&256)&&Wn!==(Wn=M[8].singleIconColorSection+"")&&re(gt,Wn),M[3].length>1?Le?(Le.p(M,le),le[0]&8&&C(Le,1)):(Le=xl(M),Le.c(),C(Le,1),Le.m(Xe.parentNode,Xe)):Le&&(Se(),T(Le,1,1,()=>{Le=null}),pe()),(!Ye||le[0]&256)&&at!==(at=M[8].progressColor+"")&&re(Tt,at);const jo={};le[0]&22&&(jo.colorString=M[4].icons[M[1]].colorEffects[M[2]].progressColor),le[0]&6&&(jo.updateFunction=M[40]),wn.$set(jo),(!Ye||le[0]&256)&&Kn!==(Kn=M[8].progressContrast+"")&&re(Gt,Kn);const Go={};le[0]&6&&(Go.handleUpdateFunction=M[41]),!So&&le[0]&22&&(So=!0,Go.value=M[4].icons[M[1]].colorEffects[M[2]].progressContrast,ae(()=>So=!1)),Nn.$set(Go),(!Ye||le[0]&256)&&yt!==(yt=M[8].progressShadow+"")&&re(Wt,yt);const ci={};le[0]&6&&(ci.handleUpdateFunction=M[43]),!En&&le[0]&22&&(En=!0,ci.value=M[4].icons[M[1]].colorEffects[M[2]].progressDropShadowAmount,ae(()=>En=!1)),qn.$set(ci),(!Ye||le[0]&256)&&In!==(In=M[8].iconColor+"")&&re(Xt,In);const Bi={};le[0]&22&&(Bi.colorString=M[4].icons[M[1]].colorEffects[M[2]].iconColor),le[0]&6&&(Bi.updateFunction=M[45]),pn.$set(Bi),(!Ye||le[0]&256)&&xn!==(xn=M[8].iconContrast+"")&&re(Zt,xn);const zi={};le[0]&6&&(zi.handleUpdateFunction=M[46]),!Kt&&le[0]&22&&(Kt=!0,zi.value=M[4].icons[M[1]].colorEffects[M[2]].iconContrast,ae(()=>Kt=!1)),$n.$set(zi),(!Ye||le[0]&256)&&Ot!==(Ot=M[8].iconShadow+"")&&re(nt,Ot);const Ri={};le[0]&6&&(Ri.handleUpdateFunction=M[48]),!it&&le[0]&22&&(it=!0,Ri.value=M[4].icons[M[1]].colorEffects[M[2]].iconDropShadowAmount,ae(()=>it=!1)),ot.$set(Ri),(!Ye||le[0]&256)&&Pt!==(Pt=M[8].outlineColor+"")&&re(uo,Pt);const Ui={};le[0]&22&&(Ui.colorString=M[4].icons[M[1]].colorEffects[M[2]].outlineColor),le[0]&6&&(Ui.updateFunction=M[50]),Vt.$set(Ui),(!Ye||le[0]&256)&&ye!==(ye=M[8].outlineContrast+"")&&re(Po,ye);const Li={};le[0]&6&&(Li.handleUpdateFunction=M[51]),!Vo&&le[0]&22&&(Vo=!0,Li.value=M[4].icons[M[1]].colorEffects[M[2]].outlineContrast,ae(()=>Vo=!1)),_t.$set(Li),(!Ye||le[0]&256)&&vo!==(vo=M[8].outlineShadow+"")&&re(Ho,vo);const Ni={};le[0]&6&&(Ni.handleUpdateFunction=M[53]),!Bo&&le[0]&22&&(Bo=!0,Ni.value=M[4].icons[M[1]].colorEffects[M[2]].outlineDropShadowAmount,ae(()=>Bo=!1)),wt.$set(Ni),M[4].icons[M[1]].editableColors.innerColor?ze?(ze.p(M,le),le[0]&18&&C(ze,1)):(ze=$l(M),ze.c(),C(ze,1),ze.m(Te,null)):ze&&(Se(),T(ze,1,1,()=>{ze=null}),pe())},i(M){Ye||(C(a.$$.fragment,M),C(b.$$.fragment,M),C(D.$$.fragment,M),C(he.$$.fragment,M),C(Ge),C(We),C(Ie.$$.fragment,M),C(nn.$$.fragment,M),C(tn.$$.fragment,M),C(Yn.$$.fragment,M),C(mn.$$.fragment,M),C(_n.$$.fragment,M),C(ue),C(Ze),C(Le),C(wn.$$.fragment,M),C(Nn.$$.fragment,M),C(qn.$$.fragment,M),C(pn.$$.fragment,M),C($n.$$.fragment,M),C(ot.$$.fragment,M),C(Vt.$$.fragment,M),C(_t.$$.fragment,M),C(wt.$$.fragment,M),C(ze),Ye=!0)},o(M){T(a.$$.fragment,M),T(b.$$.fragment,M),T(D.$$.fragment,M),T(he.$$.fragment,M),T(Ge),T(We),T(Ie.$$.fragment,M),T(nn.$$.fragment,M),T(tn.$$.fragment,M),T(Yn.$$.fragment,M),T(mn.$$.fragment,M),T(_n.$$.fragment,M),T(ue),T(Ze),T(Le),T(wn.$$.fragment,M),T(Nn.$$.fragment,M),T(qn.$$.fragment,M),T(pn.$$.fragment,M),T($n.$$.fragment,M),T(ot.$$.fragment,M),T(Vt.$$.fragment,M),T(_t.$$.fragment,M),T(wt.$$.fragment,M),T(ze),Ye=!1},d(M){M&&F(e),z(a),z(b),M&&F(A),M&&F(Y),M&&F(R),M&&F(U),z(D),z(he),Ge&&Ge.d(),We&&We.d(),z(Ie),z(nn),z(tn),z(Yn),z(mn),z(_n),ue&&ue.d(),Ze&&Ze.d(),M&&F(_o),M&&F(Tn),M&&F(wo),Le&&Le.d(M),M&&F(Xe),M&&F(Te),z(wn),z(Nn),z(qn),z(pn),z($n),z(ot),z(Vt),z(_t),z(wt),ze&&ze.d()}}}function G0(n){let e,t,i,l,o;function s(a){n[56](a)}let u={name:n[8].singleStatusIconSettings,icon:n[9].icons[n[1]].icon,color:n[10][n[5]],$$slots:{default:[j0]},$$scope:{ctx:n}};return n[0]!==void 0&&(u.group=n[0]),e=new Ii({props:u}),ie.push(()=>se(e,"group",s)),{c(){H(e.$$.fragment),i=I(),l=v("hr")},m(a,f){B(e,a,f),P(a,i,f),P(a,l,f),o=!0},p(a,f){const c={};f[0]&256&&(c.name=a[8].singleStatusIconSettings),f[0]&514&&(c.icon=a[9].icons[a[1]].icon),f[0]&32&&(c.color=a[10][a[5]]),f[0]&1022|f[1]&67108864&&(c.$$scope={dirty:f,ctx:a}),!t&&f[0]&1&&(t=!0,c.group=a[0],ae(()=>t=!1)),e.$set(c)},i(a){o||(C(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&F(i),a&&F(l)}}}function W0(n,e,t){let i,l,o;me(n,de,G=>t(4,i=G)),me(n,Oo,G=>t(8,l=G)),me(n,oe,G=>t(9,o=G));let{group:s=""}=e,u=0,a=["#FFFFFF","rgb(33, 171, 97)","#326dbf","#dd6e14","#1a7cad","rgb(220, 6, 6)","rgb(138, 168, 189)","rgb(255, 72, 133)","rgb(185, 255, 40)","#3FA554","rgb(182, 72, 255)","rgb(255, 72, 133)","#D64763","rgb(0, 0, 0)"],f="voice",c=0,h=i.icons[f].colorEffects,g=h.map(G=>G.name),_=g[c];const S=G=>{t(1,f=G),t(5,u=el.findIndex(dn=>dn==G)),t(2,c=0)},b=G=>{oe.updateIconShape(f,G),de.updateIconShapeEditableColor(f,G)};function w(G){n.$$.not_equal(o.icons[f].shape,G)&&(o.icons[f].shape=G,oe.set(o))}const m=G=>oe.updateIconSetting(f,"width",G);function p(G){n.$$.not_equal(o.icons[f].width,G)&&(o.icons[f].width=G,oe.set(o))}const A=G=>oe.updateIconSetting(f,"height",G);function Y(G){n.$$.not_equal(o.icons[f].height,G)&&(o.icons[f].height=G,oe.set(o))}const x=G=>oe.updateIconSetting(f,"ringSize",G);function Q(G){n.$$.not_equal(o.icons[f].ringSize,G)&&(o.icons[f].ringSize=G,oe.set(o))}const Z=G=>oe.updateIconSetting(f,"displayOutline",G);function q(G){n.$$.not_equal(o.icons[f].displayOutline,G)&&(o.icons[f].displayOutline=G,oe.set(o))}const $=G=>oe.updateIconSetting(f,"translateX",G);function R(G){n.$$.not_equal(o.icons[f].translateX,G)&&(o.icons[f].translateX=G,oe.set(o))}const U=G=>oe.updateIconSetting(f,"translateY",G);function y(G){n.$$.not_equal(o.icons[f].translateY,G)&&(o.icons[f].translateY=G,oe.set(o))}const E=G=>oe.updateIconSetting(f,"rotateDegree",G);function k(G){n.$$.not_equal(o.icons[f].rotateDegree,G)&&(o.icons[f].rotateDegree=G,oe.set(o))}const L=G=>oe.updateIconSetting(f,"iconTranslateX",G);function K(G){n.$$.not_equal(o.icons[f].iconTranslateX,G)&&(o.icons[f].iconTranslateX=G,oe.set(o))}const D=G=>oe.updateIconSetting(f,"iconTranslateY",G);function ge(G){n.$$.not_equal(o.icons[f].iconTranslateY,G)&&(o.icons[f].iconTranslateY=G,oe.set(o))}const ee=G=>oe.updateIconSetting(f,"iconScaling",G);function te(G){n.$$.not_equal(o.icons[f].iconScaling,G)&&(o.icons[f].iconScaling=G,oe.set(o))}const W=G=>oe.updateIconSetting(f,"xAxisRound",G);function J(G){n.$$.not_equal(o.icons[f].xAxisRound,G)&&(o.icons[f].xAxisRound=G,oe.set(o))}const Me=G=>oe.updateIconSetting(f,"yAxisRound",G);function Pe(G){n.$$.not_equal(o.icons[f].yAxisRound,G)&&(o.icons[f].yAxisRound=G,oe.set(o))}function he(G){_=G,t(7,_)}function ke(G){c=G,t(2,c)}const Ae=G=>de.updateColorSetting(f,c,"progressColor",G),hn=G=>de.updateColorSetting(f,c,"progressContrast",G);function gn(G){n.$$.not_equal(i.icons[f].colorEffects[c].progressContrast,G)&&(i.icons[f].colorEffects[c].progressContrast=G,de.set(i))}const Oe=G=>de.updateColorSetting(f,c,"progressDropShadowAmount",G);function an(G){n.$$.not_equal(i.icons[f].colorEffects[c].progressDropShadowAmount,G)&&(i.icons[f].colorEffects[c].progressDropShadowAmount=G,de.set(i))}const Dn=G=>de.updateColorSetting(f,c,"iconColor",G),un=G=>de.updateColorSetting(f,c,"iconContrast",G);function Pn(G){n.$$.not_equal(i.icons[f].colorEffects[c].iconContrast,G)&&(i.icons[f].colorEffects[c].iconContrast=G,de.set(i))}const Ie=G=>de.updateColorSetting(f,c,"iconDropShadowAmount",G);function en(G){n.$$.not_equal(i.icons[f].colorEffects[c].iconDropShadowAmount,G)&&(i.icons[f].colorEffects[c].iconDropShadowAmount=G,de.set(i))}const Vn=G=>de.updateColorSetting(f,c,"outlineColor",G),ce=G=>de.updateColorSetting(f,c,"outlineContrast",G);function Ce(G){n.$$.not_equal(i.icons[f].colorEffects[c].outlineContrast,G)&&(i.icons[f].colorEffects[c].outlineContrast=G,de.set(i))}const j=G=>de.updateColorSetting(f,c,"outlineDropShadowAmount",G);function fn(G){n.$$.not_equal(i.icons[f].colorEffects[c].outlineDropShadowAmount,G)&&(i.icons[f].colorEffects[c].outlineDropShadowAmount=G,de.set(i))}const ln=G=>de.updateColorSetting(f,c,"innerColor",G);function nn(G){s=G,t(0,s)}return n.$$set=G=>{"group"in G&&t(0,s=G.group)},n.$$.update=()=>{n.$$.dirty[0]&4&&$t(de,i.globalColorSettings.editSingleIconStage=c,i),n.$$.dirty[0]&2&&$t(de,i.globalColorSettings.editSingleIconName=f,i),n.$$.dirty[0]&26&&(t(3,h=i.icons[f].colorEffects),t(6,g=h.map(G=>G.name)))},[s,f,c,h,i,u,g,_,l,o,a,S,b,w,m,p,A,Y,x,Q,Z,q,$,R,U,y,E,k,L,K,D,ge,ee,te,W,J,Me,Pe,he,ke,Ae,hn,gn,Oe,an,Dn,un,Pn,Ie,en,Vn,ce,Ce,j,fn,ln,nn]}class J0 extends _e{constructor(e){super();we(this,e,W0,G0,be,{group:0},null,[-1,-1])}}function er(n){let e,t,i=n[1].ringSize+"",l,o,s,u,a;function f(h){n[7](h)}let c={min:1,max:25,step:.5,handleUpdateFunction:oe.updateAllRingSize};return n[2].globalIconSettings.ringSize!==void 0&&(c.value=n[2].globalIconSettings.ringSize),s=new ve({props:c}),ie.push(()=>se(s,"value",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&2)&&i!==(i=h[1].ringSize+"")&&re(l,i);const _={};!u&&g[0]&4&&(u=!0,_.value=h[2].globalIconSettings.ringSize,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function nr(n){let e,t,i=n[1].showProgressOutline+"",l,o,s,u,a;function f(h){n[9](h)}let c={center:!0,handleUpdateFunction:n[8]};return n[2].globalIconSettings.displayOutline!==void 0&&(c.checked=n[2].globalIconSettings.displayOutline),s=new Hi({props:c}),ie.push(()=>se(s,"checked",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&2)&&i!==(i=h[1].showProgressOutline+"")&&re(l,i);const _={};!u&&g[0]&4&&(u=!0,_.checked=h[2].globalIconSettings.displayOutline,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function tr(n){let e,t,i=n[1].xAxisCurve+"",l,o,s,u,a;function f(h){n[16](h)}let c={min:0,max:100,handleUpdateFunction:oe.updateAllRoundXAxis};return n[2].globalIconSettings.xAxisRound!==void 0&&(c.value=n[2].globalIconSettings.xAxisRound),s=new ve({props:c}),ie.push(()=>se(s,"value",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&2)&&i!==(i=h[1].xAxisCurve+"")&&re(l,i);const _={};!u&&g[0]&4&&(u=!0,_.value=h[2].globalIconSettings.xAxisRound,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function or(n){let e,t,i=n[1].yAxisCurve+"",l,o,s,u,a;function f(h){n[17](h)}let c={min:0,max:100,handleUpdateFunction:oe.updateAllRoundYAxis};return n[2].globalIconSettings.yAxisRound!==void 0&&(c.value=n[2].globalIconSettings.yAxisRound),s=new ve({props:c}),ie.push(()=>se(s,"value",f)),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2")},m(h,g){P(h,e,g),d(e,t),d(t,l),d(e,o),B(s,e,null),a=!0},p(h,g){(!a||g[0]&2)&&i!==(i=h[1].yAxisCurve+"")&&re(l,i);const _={};!u&&g[0]&4&&(u=!0,_.value=h[2].globalIconSettings.yAxisRound,ae(()=>u=!1)),s.$set(_)},i(h){a||(C(s.$$.fragment,h),a=!0)},o(h){T(s.$$.fragment,h),a=!1},d(h){h&&F(e),z(s)}}}function ir(n){let e,t,i=n[1].innerColor+"",l,o,s,u;return s=new Wo({props:{colorString:n[3].globalColorSettings.innerColor,updateFunction:n[33]}}),{c(){e=v("div"),t=v("p"),l=ne(i),o=I(),H(s.$$.fragment),r(t,"class","text-base text-center mb-2"),r(e,"class","flex flex-col mx-auto")},m(a,f){P(a,e,f),d(e,t),d(t,l),d(e,o),B(s,e,null),u=!0},p(a,f){(!u||f[0]&2)&&i!==(i=a[1].innerColor+"")&&re(l,i);const c={};f[0]&8&&(c.colorString=a[3].globalColorSettings.innerColor),s.$set(c)},i(a){u||(C(s.$$.fragment,a),u=!0)},o(a){T(s.$$.fragment,a),u=!1},d(a){a&&F(e),z(s)}}}function Z0(n){let e,t,i,l,o,s,u,a,f=n[1].globalSizeAndPositionSection+"",c,h,g,_,S,b,w,m=n[1].widthSize+"",p,A,Y,x,Q,Z,q,$=n[1].heightSize+"",R,U,y,E,k,L,K,D,ge,ee=n[1].xAxisPosition+"",te,W,J,Me,Pe,he,ke,Ae=n[1].yAxisPosition+"",hn,gn,Oe,an,Dn,un,Pn,Ie=n[1].rotation+"",en,Vn,ce,Ce,j,fn,ln,nn=n[1].iconXAxisPosition+"",G,dn,rn,zt,Hn,ht,eo,tn=n[1].iconYAxisPosition+"",Rt,Fo,yn,Ut,pt,st,kt,Yn=n[1].iconSize+"",no,cn,Ne,Ct,to,Bn,oo,mn,Xn,Lt=n[1].globalColorSection+"",vt,zn,Nt,io,De,_n,qt,Rn=n[1].progressColor+"",jt,_o,Tn,lo,Wn,gt,At=n[1].progressContrast+"",ro,wo,Xe,Te,Dt,Jn,at,Tt=n[1].progressShadow+"",bo,wn,Zn,It,Un,Kn,Gt,Ln=n[1].iconColor+"",Nn,So,bn,Mt,dt,yt,Wt=n[1].iconContrast+"",Jt,qn,En,so,Yt,Sn,In,Xt=n[1].iconShadow+"",po,pn,Qn,Et,jn,xn,Zt,ao=n[1].outlineColor+"",$n,Kt,et,mt,ut,Ot,nt=n[1].outlineContrast+"",tt,ot,it,Qt,Be,Ft,Pt,uo=n[1].outlineShadow+"",ko,Vt,ft,xt,fo,ye;o=new Di({props:{valuesArray:Or,value:n[2].globalIconSettings.shape,handleSelectFunction:n[4]}});function Po(N){n[5](N)}let Jo={min:1,max:200,handleUpdateFunction:oe.updateAllWidth};n[2].globalIconSettings.width!==void 0&&(Jo.value=n[2].globalIconSettings.width),Y=new ve({props:Jo}),ie.push(()=>se(Y,"value",Po));function _t(N){n[6](N)}let Vo={min:1,max:200,handleUpdateFunction:oe.updateAllHeight};n[2].globalIconSettings.height!==void 0&&(Vo.value=n[2].globalIconSettings.height),y=new ve({props:Vo}),ie.push(()=>se(y,"value",_t));let Ue=n[2].globalIconSettings.ringSize!=null&&er(n),He=n[2].globalIconSettings.displayOutline!=null&&nr(n);function Co(N){n[10](N)}let vo={min:-20,max:20,step:.25,handleUpdateFunction:oe.updateAllTranslateX};n[2].globalIconSettings.translateX!==void 0&&(vo.value=n[2].globalIconSettings.translateX),J=new ve({props:vo}),ie.push(()=>se(J,"value",Co));function Ho(N){n[11](N)}let Zo={min:-20,max:20,step:.25,handleUpdateFunction:oe.updateAllTranslateY};n[2].globalIconSettings.translateY!==void 0&&(Zo.value=n[2].globalIconSettings.translateY),Oe=new ve({props:Zo}),ie.push(()=>se(Oe,"value",Ho));function wt(N){n[12](N)}let Bo={min:0,max:360,handleUpdateFunction:oe.updateAllRotateDegree};n[2].globalIconSettings.rotateDegree!==void 0&&(Bo.value=n[2].globalIconSettings.rotateDegree),ce=new ve({props:Bo}),ie.push(()=>se(ce,"value",wt));function Ko(N){n[13](N)}let Ye={min:-10,max:10,step:.01,handleUpdateFunction:oe.updateAllTranslateIconX};n[2].globalIconSettings.iconTranslateX!==void 0&&(Ye.value=n[2].globalIconSettings.iconTranslateX),rn=new ve({props:Ye}),ie.push(()=>se(rn,"value",Ko));function di(N){n[14](N)}let Qo={min:-10,max:10,step:.01,handleUpdateFunction:oe.updateAllTranslateIconY};n[2].globalIconSettings.iconTranslateY!==void 0&&(Qo.value=n[2].globalIconSettings.iconTranslateY),yn=new ve({props:Qo}),ie.push(()=>se(yn,"value",di));function mi(N){n[15](N)}let xo={min:0,max:3,step:.01,handleUpdateFunction:oe.updateAllIconScale};n[2].globalIconSettings.iconScaling!==void 0&&(xo.value=n[2].globalIconSettings.iconScaling),Ne=new ve({props:xo}),ie.push(()=>se(Ne,"value",mi));let qe=n[2].globalIconSettings.xAxisRound!=null&&tr(n),je=n[2].globalIconSettings.yAxisRound!=null&&or(n);Tn=new Wo({props:{colorString:n[3].globalColorSettings.progressColor,updateFunction:n[18]}});function Ge(N){n[20](N)}let We={min:0,max:300,handleUpdateFunction:n[19]};n[3].globalColorSettings.progressContrast!==void 0&&(We.value=n[3].globalColorSettings.progressContrast),Xe=new ve({props:We}),ie.push(()=>se(Xe,"value",Ge));function _i(N){n[22](N)}let $o={min:0,max:20,handleUpdateFunction:n[21]};n[3].globalColorSettings.progressDropShadowAmount!==void 0&&($o.value=n[3].globalColorSettings.progressDropShadowAmount),Zn=new ve({props:$o}),ie.push(()=>se(Zn,"value",_i)),bn=new Wo({props:{colorString:n[3].globalColorSettings.iconColor,updateFunction:n[23]}});function wi(N){n[25](N)}let ei={min:0,max:300,handleUpdateFunction:n[24]};n[3].globalColorSettings.iconContrast!==void 0&&(ei.value=n[3].globalColorSettings.iconContrast),En=new ve({props:ei}),ie.push(()=>se(En,"value",wi));function bi(N){n[27](N)}let ni={min:0,max:20,handleUpdateFunction:n[26]};n[3].globalColorSettings.iconDropShadowAmount!==void 0&&(ni.value=n[3].globalColorSettings.iconDropShadowAmount),Qn=new ve({props:ni}),ie.push(()=>se(Qn,"value",bi)),et=new Wo({props:{colorString:n[3].globalColorSettings.outlineColor,updateFunction:n[28]}});function Si(N){n[30](N)}let ti={min:0,max:300,handleUpdateFunction:n[29]};n[3].globalColorSettings.outlineContrast!==void 0&&(ti.value=n[3].globalColorSettings.outlineContrast),it=new ve({props:ti}),ie.push(()=>se(it,"value",Si));function pi(N){n[32](N)}let oi={min:0,max:20,handleUpdateFunction:n[31]};n[3].globalColorSettings.outlineDropShadowAmount!==void 0&&(oi.value=n[3].globalColorSettings.outlineDropShadowAmount),ft=new ve({props:oi}),ie.push(()=>se(ft,"value",pi));let Je=n[3].globalColorSettings.editableColors.innerColor&&ir(n);return{c(){e=v("div"),t=v("div"),i=v("p"),i.textContent="Icon Shape",l=I(),H(o.$$.fragment),s=I(),u=v("div"),a=v("p"),c=ne(f),h=I(),g=v("hr"),_=I(),S=v("div"),b=v("div"),w=v("p"),p=ne(m),A=I(),H(Y.$$.fragment),Q=I(),Z=v("div"),q=v("p"),R=ne($),U=I(),H(y.$$.fragment),k=I(),Ue&&Ue.c(),L=I(),He&&He.c(),K=I(),D=v("div"),ge=v("p"),te=ne(ee),W=I(),H(J.$$.fragment),Pe=I(),he=v("div"),ke=v("p"),hn=ne(Ae),gn=I(),H(Oe.$$.fragment),Dn=I(),un=v("div"),Pn=v("p"),en=ne(Ie),Vn=I(),H(ce.$$.fragment),j=I(),fn=v("div"),ln=v("p"),G=ne(nn),dn=I(),H(rn.$$.fragment),Hn=I(),ht=v("div"),eo=v("p"),Rt=ne(tn),Fo=I(),H(yn.$$.fragment),pt=I(),st=v("div"),kt=v("p"),no=ne(Yn),cn=I(),H(Ne.$$.fragment),to=I(),qe&&qe.c(),Bn=I(),je&&je.c(),oo=I(),mn=v("div"),Xn=v("p"),vt=ne(Lt),zn=I(),Nt=v("hr"),io=I(),De=v("div"),_n=v("div"),qt=v("p"),jt=ne(Rn),_o=I(),H(Tn.$$.fragment),lo=I(),Wn=v("div"),gt=v("p"),ro=ne(At),wo=I(),H(Xe.$$.fragment),Dt=I(),Jn=v("div"),at=v("p"),bo=ne(Tt),wn=I(),H(Zn.$$.fragment),Un=I(),Kn=v("div"),Gt=v("p"),Nn=ne(Ln),So=I(),H(bn.$$.fragment),Mt=I(),dt=v("div"),yt=v("p"),Jt=ne(Wt),qn=I(),H(En.$$.fragment),Yt=I(),Sn=v("div"),In=v("p"),po=ne(Xt),pn=I(),H(Qn.$$.fragment),jn=I(),xn=v("div"),Zt=v("p"),$n=ne(ao),Kt=I(),H(et.$$.fragment),mt=I(),ut=v("div"),Ot=v("p"),tt=ne(nt),ot=I(),H(it.$$.fragment),Be=I(),Ft=v("div"),Pt=v("p"),ko=ne(uo),Vt=I(),H(ft.$$.fragment),fo=I(),Je&&Je.c(),r(i,"class","text-lg text-center mb-2"),r(t,"class","w-50"),r(e,"class","flex justify-center mb-8"),r(a,"class","text-xl font-bold"),r(g,"class","mb-6"),r(u,"class","mx-8"),r(w,"class","text-base text-center mb-2"),r(q,"class","text-base text-center mb-2"),r(ge,"class","text-base text-center mb-2"),r(ke,"class","text-base text-center mb-2"),r(Pn,"class","text-base text-center mb-2"),r(ln,"class","text-base text-center mb-2"),r(eo,"class","text-base text-center mb-2"),r(kt,"class","text-base text-center mb-2"),r(S,"class","mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end"),r(Xn,"class","text-xl font-bold"),r(mn,"class","mx-8 mt-8"),r(qt,"class","text-base text-center mb-2"),r(_n,"class","flex flex-col mx-auto"),r(gt,"class","text-base text-center mb-2"),r(at,"class","text-base text-center mb-2"),r(Gt,"class","text-base text-center mb-2"),r(Kn,"class","flex flex-col mx-auto"),r(yt,"class","text-base text-center mb-2"),r(In,"class","text-base text-center mb-2"),r(Zt,"class","text-base text-center mb-2"),r(xn,"class","flex flex-col mx-auto"),r(Ot,"class","text-base text-center mb-2"),r(Pt,"class","text-base text-center mb-2"),r(De,"class","mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6")},m(N,ue){P(N,e,ue),d(e,t),d(t,i),d(t,l),B(o,t,null),P(N,s,ue),P(N,u,ue),d(u,a),d(a,c),d(u,h),d(u,g),P(N,_,ue),P(N,S,ue),d(S,b),d(b,w),d(w,p),d(b,A),B(Y,b,null),d(S,Q),d(S,Z),d(Z,q),d(q,R),d(Z,U),B(y,Z,null),d(S,k),Ue&&Ue.m(S,null),d(S,L),He&&He.m(S,null),d(S,K),d(S,D),d(D,ge),d(ge,te),d(D,W),B(J,D,null),d(S,Pe),d(S,he),d(he,ke),d(ke,hn),d(he,gn),B(Oe,he,null),d(S,Dn),d(S,un),d(un,Pn),d(Pn,en),d(un,Vn),B(ce,un,null),d(S,j),d(S,fn),d(fn,ln),d(ln,G),d(fn,dn),B(rn,fn,null),d(S,Hn),d(S,ht),d(ht,eo),d(eo,Rt),d(ht,Fo),B(yn,ht,null),d(S,pt),d(S,st),d(st,kt),d(kt,no),d(st,cn),B(Ne,st,null),d(S,to),qe&&qe.m(S,null),d(S,Bn),je&&je.m(S,null),P(N,oo,ue),P(N,mn,ue),d(mn,Xn),d(Xn,vt),d(mn,zn),d(mn,Nt),P(N,io,ue),P(N,De,ue),d(De,_n),d(_n,qt),d(qt,jt),d(_n,_o),B(Tn,_n,null),d(De,lo),d(De,Wn),d(Wn,gt),d(gt,ro),d(Wn,wo),B(Xe,Wn,null),d(De,Dt),d(De,Jn),d(Jn,at),d(at,bo),d(Jn,wn),B(Zn,Jn,null),d(De,Un),d(De,Kn),d(Kn,Gt),d(Gt,Nn),d(Kn,So),B(bn,Kn,null),d(De,Mt),d(De,dt),d(dt,yt),d(yt,Jt),d(dt,qn),B(En,dt,null),d(De,Yt),d(De,Sn),d(Sn,In),d(In,po),d(Sn,pn),B(Qn,Sn,null),d(De,jn),d(De,xn),d(xn,Zt),d(Zt,$n),d(xn,Kt),B(et,xn,null),d(De,mt),d(De,ut),d(ut,Ot),d(Ot,tt),d(ut,ot),B(it,ut,null),d(De,Be),d(De,Ft),d(Ft,Pt),d(Pt,ko),d(Ft,Vt),B(ft,Ft,null),d(De,fo),Je&&Je.m(De,null),ye=!0},p(N,ue){const Ze={};ue[0]&4&&(Ze.value=N[2].globalIconSettings.shape),o.$set(Ze),(!ye||ue[0]&2)&&f!==(f=N[1].globalSizeAndPositionSection+"")&&re(c,f),(!ye||ue[0]&2)&&m!==(m=N[1].widthSize+"")&&re(p,m);const Le={};!x&&ue[0]&4&&(x=!0,Le.value=N[2].globalIconSettings.width,ae(()=>x=!1)),Y.$set(Le),(!ye||ue[0]&2)&&$!==($=N[1].heightSize+"")&&re(R,$);const O={};!E&&ue[0]&4&&(E=!0,O.value=N[2].globalIconSettings.height,ae(()=>E=!1)),y.$set(O),N[2].globalIconSettings.ringSize!=null?Ue?(Ue.p(N,ue),ue[0]&4&&C(Ue,1)):(Ue=er(N),Ue.c(),C(Ue,1),Ue.m(S,L)):Ue&&(Se(),T(Ue,1,1,()=>{Ue=null}),pe()),N[2].globalIconSettings.displayOutline!=null?He?(He.p(N,ue),ue[0]&4&&C(He,1)):(He=nr(N),He.c(),C(He,1),He.m(S,K)):He&&(Se(),T(He,1,1,()=>{He=null}),pe()),(!ye||ue[0]&2)&&ee!==(ee=N[1].xAxisPosition+"")&&re(te,ee);const fe={};!Me&&ue[0]&4&&(Me=!0,fe.value=N[2].globalIconSettings.translateX,ae(()=>Me=!1)),J.$set(fe),(!ye||ue[0]&2)&&Ae!==(Ae=N[1].yAxisPosition+"")&&re(hn,Ae);const zo={};!an&&ue[0]&4&&(an=!0,zo.value=N[2].globalIconSettings.translateY,ae(()=>an=!1)),Oe.$set(zo),(!ye||ue[0]&2)&&Ie!==(Ie=N[1].rotation+"")&&re(en,Ie);const Ro={};!Ce&&ue[0]&4&&(Ce=!0,Ro.value=N[2].globalIconSettings.rotateDegree,ae(()=>Ce=!1)),ce.$set(Ro),(!ye||ue[0]&2)&&nn!==(nn=N[1].iconXAxisPosition+"")&&re(G,nn);const Ao={};!zt&&ue[0]&4&&(zt=!0,Ao.value=N[2].globalIconSettings.iconTranslateX,ae(()=>zt=!1)),rn.$set(Ao),(!ye||ue[0]&2)&&tn!==(tn=N[1].iconYAxisPosition+"")&&re(Rt,tn);const co={};!Ut&&ue[0]&4&&(Ut=!0,co.value=N[2].globalIconSettings.iconTranslateY,ae(()=>Ut=!1)),yn.$set(co),(!ye||ue[0]&2)&&Yn!==(Yn=N[1].iconSize+"")&&re(no,Yn);const Do={};!Ct&&ue[0]&4&&(Ct=!0,Do.value=N[2].globalIconSettings.iconScaling,ae(()=>Ct=!1)),Ne.$set(Do),N[2].globalIconSettings.xAxisRound!=null?qe?(qe.p(N,ue),ue[0]&4&&C(qe,1)):(qe=tr(N),qe.c(),C(qe,1),qe.m(S,Bn)):qe&&(Se(),T(qe,1,1,()=>{qe=null}),pe()),N[2].globalIconSettings.yAxisRound!=null?je?(je.p(N,ue),ue[0]&4&&C(je,1)):(je=or(N),je.c(),C(je,1),je.m(S,null)):je&&(Se(),T(je,1,1,()=>{je=null}),pe()),(!ye||ue[0]&2)&&Lt!==(Lt=N[1].globalColorSection+"")&&re(vt,Lt),(!ye||ue[0]&2)&&Rn!==(Rn=N[1].progressColor+"")&&re(jt,Rn);const To={};ue[0]&8&&(To.colorString=N[3].globalColorSettings.progressColor),Tn.$set(To),(!ye||ue[0]&2)&&At!==(At=N[1].progressContrast+"")&&re(ro,At);const Uo={};!Te&&ue[0]&8&&(Te=!0,Uo.value=N[3].globalColorSettings.progressContrast,ae(()=>Te=!1)),Xe.$set(Uo),(!ye||ue[0]&2)&&Tt!==(Tt=N[1].progressShadow+"")&&re(bo,Tt);const Io={};!It&&ue[0]&8&&(It=!0,Io.value=N[3].globalColorSettings.progressDropShadowAmount,ae(()=>It=!1)),Zn.$set(Io),(!ye||ue[0]&2)&&Ln!==(Ln=N[1].iconColor+"")&&re(Nn,Ln);const Lo={};ue[0]&8&&(Lo.colorString=N[3].globalColorSettings.iconColor),bn.$set(Lo),(!ye||ue[0]&2)&&Wt!==(Wt=N[1].iconContrast+"")&&re(Jt,Wt);const Mo={};!so&&ue[0]&8&&(so=!0,Mo.value=N[3].globalColorSettings.iconContrast,ae(()=>so=!1)),En.$set(Mo),(!ye||ue[0]&2)&&Xt!==(Xt=N[1].iconShadow+"")&&re(po,Xt);const ze={};!Et&&ue[0]&8&&(Et=!0,ze.value=N[3].globalColorSettings.iconDropShadowAmount,ae(()=>Et=!1)),Qn.$set(ze),(!ye||ue[0]&2)&&ao!==(ao=N[1].outlineColor+"")&&re($n,ao);const M={};ue[0]&8&&(M.colorString=N[3].globalColorSettings.outlineColor),et.$set(M),(!ye||ue[0]&2)&&nt!==(nt=N[1].outlineContrast+"")&&re(tt,nt);const le={};!Qt&&ue[0]&8&&(Qt=!0,le.value=N[3].globalColorSettings.outlineContrast,ae(()=>Qt=!1)),it.$set(le),(!ye||ue[0]&2)&&uo!==(uo=N[1].outlineShadow+"")&&re(ko,uo);const ho={};!xt&&ue[0]&8&&(xt=!0,ho.value=N[3].globalColorSettings.outlineDropShadowAmount,ae(()=>xt=!1)),ft.$set(ho),N[3].globalColorSettings.editableColors.innerColor?Je?(Je.p(N,ue),ue[0]&8&&C(Je,1)):(Je=ir(N),Je.c(),C(Je,1),Je.m(De,null)):Je&&(Se(),T(Je,1,1,()=>{Je=null}),pe())},i(N){ye||(C(o.$$.fragment,N),C(Y.$$.fragment,N),C(y.$$.fragment,N),C(Ue),C(He),C(J.$$.fragment,N),C(Oe.$$.fragment,N),C(ce.$$.fragment,N),C(rn.$$.fragment,N),C(yn.$$.fragment,N),C(Ne.$$.fragment,N),C(qe),C(je),C(Tn.$$.fragment,N),C(Xe.$$.fragment,N),C(Zn.$$.fragment,N),C(bn.$$.fragment,N),C(En.$$.fragment,N),C(Qn.$$.fragment,N),C(et.$$.fragment,N),C(it.$$.fragment,N),C(ft.$$.fragment,N),C(Je),ye=!0)},o(N){T(o.$$.fragment,N),T(Y.$$.fragment,N),T(y.$$.fragment,N),T(Ue),T(He),T(J.$$.fragment,N),T(Oe.$$.fragment,N),T(ce.$$.fragment,N),T(rn.$$.fragment,N),T(yn.$$.fragment,N),T(Ne.$$.fragment,N),T(qe),T(je),T(Tn.$$.fragment,N),T(Xe.$$.fragment,N),T(Zn.$$.fragment,N),T(bn.$$.fragment,N),T(En.$$.fragment,N),T(Qn.$$.fragment,N),T(et.$$.fragment,N),T(it.$$.fragment,N),T(ft.$$.fragment,N),T(Je),ye=!1},d(N){N&&F(e),z(o),N&&F(s),N&&F(u),N&&F(_),N&&F(S),z(Y),z(y),Ue&&Ue.d(),He&&He.d(),z(J),z(Oe),z(ce),z(rn),z(yn),z(Ne),qe&&qe.d(),je&&je.d(),N&&F(oo),N&&F(mn),N&&F(io),N&&F(De),z(Tn),z(Xe),z(Zn),z(bn),z(En),z(Qn),z(et),z(it),z(ft),Je&&Je.d()}}}function K0(n){let e,t,i,l,o;function s(a){n[34](a)}let u={name:n[1].globalStatusIconsSettings,icon:Ds,color:"white",$$slots:{default:[Z0]},$$scope:{ctx:n}};return n[0]!==void 0&&(u.group=n[0]),e=new Ii({props:u}),ie.push(()=>se(e,"group",s)),{c(){H(e.$$.fragment),i=I(),l=v("hr")},m(a,f){B(e,a,f),P(a,i,f),P(a,l,f),o=!0},p(a,f){const c={};f[0]&2&&(c.name=a[1].globalStatusIconsSettings),f[0]&14|f[1]&16&&(c.$$scope={dirty:f,ctx:a}),!t&&f[0]&1&&(t=!0,c.group=a[0],ae(()=>t=!1)),e.$set(c)},i(a){o||(C(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&F(i),a&&F(l)}}}function Q0(n,e,t){let i,l,o;me(n,Oo,J=>t(1,i=J)),me(n,oe,J=>t(2,l=J)),me(n,de,J=>t(3,o=J));let{group:s=""}=e;const u=J=>{oe.updateAllShapes(J),de.updateAllIconShapeEditableColor(J)};function a(J){n.$$.not_equal(l.globalIconSettings.width,J)&&(l.globalIconSettings.width=J,oe.set(l))}function f(J){n.$$.not_equal(l.globalIconSettings.height,J)&&(l.globalIconSettings.height=J,oe.set(l))}function c(J){n.$$.not_equal(l.globalIconSettings.ringSize,J)&&(l.globalIconSettings.ringSize=J,oe.set(l))}const h=J=>oe.updateAllDisplayOutline(J);function g(J){n.$$.not_equal(l.globalIconSettings.displayOutline,J)&&(l.globalIconSettings.displayOutline=J,oe.set(l))}function _(J){n.$$.not_equal(l.globalIconSettings.translateX,J)&&(l.globalIconSettings.translateX=J,oe.set(l))}function S(J){n.$$.not_equal(l.globalIconSettings.translateY,J)&&(l.globalIconSettings.translateY=J,oe.set(l))}function b(J){n.$$.not_equal(l.globalIconSettings.rotateDegree,J)&&(l.globalIconSettings.rotateDegree=J,oe.set(l))}function w(J){n.$$.not_equal(l.globalIconSettings.iconTranslateX,J)&&(l.globalIconSettings.iconTranslateX=J,oe.set(l))}function m(J){n.$$.not_equal(l.globalIconSettings.iconTranslateY,J)&&(l.globalIconSettings.iconTranslateY=J,oe.set(l))}function p(J){n.$$.not_equal(l.globalIconSettings.iconScaling,J)&&(l.globalIconSettings.iconScaling=J,oe.set(l))}function A(J){n.$$.not_equal(l.globalIconSettings.xAxisRound,J)&&(l.globalIconSettings.xAxisRound=J,oe.set(l))}function Y(J){n.$$.not_equal(l.globalIconSettings.yAxisRound,J)&&(l.globalIconSettings.yAxisRound=J,oe.set(l))}const x=J=>de.updateAllDefaultEffectColorSetting("progressColor",J),Q=J=>de.updateAllDefaultEffectColorSetting("progressContrast",J);function Z(J){n.$$.not_equal(o.globalColorSettings.progressContrast,J)&&(o.globalColorSettings.progressContrast=J,de.set(o))}const q=J=>de.updateAllDefaultEffectColorSetting("progressDropShadowAmount",J);function $(J){n.$$.not_equal(o.globalColorSettings.progressDropShadowAmount,J)&&(o.globalColorSettings.progressDropShadowAmount=J,de.set(o))}const R=J=>de.updateAllDefaultEffectColorSetting("iconColor",J),U=J=>de.updateAllDefaultEffectColorSetting("iconContrast",J);function y(J){n.$$.not_equal(o.globalColorSettings.iconContrast,J)&&(o.globalColorSettings.iconContrast=J,de.set(o))}const E=J=>de.updateAllDefaultEffectColorSetting("iconDropShadowAmount",J);function k(J){n.$$.not_equal(o.globalColorSettings.iconDropShadowAmount,J)&&(o.globalColorSettings.iconDropShadowAmount=J,de.set(o))}const L=J=>de.updateAllDefaultEffectColorSetting("outlineColor",J),K=J=>de.updateAllDefaultEffectColorSetting("outlineContrast",J);function D(J){n.$$.not_equal(o.globalColorSettings.outlineContrast,J)&&(o.globalColorSettings.outlineContrast=J,de.set(o))}const ge=J=>de.updateAllDefaultEffectColorSetting("outlineDropShadowAmount",J);function ee(J){n.$$.not_equal(o.globalColorSettings.outlineDropShadowAmount,J)&&(o.globalColorSettings.outlineDropShadowAmount=J,de.set(o))}const te=J=>de.updateAllDefaultEffectColorSetting("innerColor",J);function W(J){s=J,t(0,s)}return n.$$set=J=>{"group"in J&&t(0,s=J.group)},[s,i,l,o,u,a,f,c,h,g,_,S,b,w,m,p,A,Y,x,Q,Z,q,$,R,U,y,E,k,L,K,D,ge,ee,te,W]}class x0 extends _e{constructor(e){super();we(this,e,Q0,K0,be,{group:0},null,[-1,-1])}}function lr(n){let e,t;return e=new Xo({props:{name:n[1].saveChangesToServer,buttonClass:"my-auto",disable:n[2].saveUIState!="ready"}}),e.$on("click",n[6]),{c(){H(e.$$.fragment)},m(i,l){B(e,i,l),t=!0},p(i,l){const o={};l&2&&(o.name=i[1].saveChangesToServer),l&4&&(o.disable=i[2].saveUIState!="ready"),e.$set(o)},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){T(e.$$.fragment,i),t=!1},d(i){z(e,i)}}}function $0(n){let e,t,i,l,o,s,u=n[1].statusIconsSettings+"",a,f,c,h,g=n[1].designMode+"",_,S,b,w,m,p,A,Y,x,Q,Z,q,$,R,U,y,E,k,L,K,D,ge,ee,te,W,J,Me,Pe;function he(ce){n[4](ce)}let ke={center:!0};n[2].designMode!==void 0&&(ke.checked=n[2].designMode),b=new Hi({props:ke}),ie.push(()=>se(b,"checked",he)),A=new Xo({props:{name:n[1].resetStatusIconSettings,buttonClass:"mr-5 hover:bg-red-600"}}),A.$on("click",n[5]);let Ae=n[3].adminOnly&&n[3].isAdmin&&lr(n);function hn(ce){n[7](ce)}let gn={};n[0]!==void 0&&(gn.group=n[0]),q=new x0({props:gn}),ie.push(()=>se(q,"group",hn));function Oe(ce){n[8](ce)}let an={};n[0]!==void 0&&(an.group=n[0]),U=new J0({props:an}),ie.push(()=>se(U,"group",Oe));function Dn(ce){n[9](ce)}let un={};n[0]!==void 0&&(un.group=n[0]),k=new D0({props:un}),ie.push(()=>se(k,"group",Dn));function Pn(ce){n[10](ce)}let Ie={};n[0]!==void 0&&(Ie.group=n[0]),D=new _0({props:Ie}),ie.push(()=>se(D,"group",Pn));function en(ce){n[11](ce)}let Vn={};return n[0]!==void 0&&(Vn.group=n[0]),te=new h0({props:Vn}),ie.push(()=>se(te,"group",en)),{c(){e=v("div"),t=v("div"),i=v("div"),l=v("div"),o=v("div"),s=v("p"),a=ne(u),f=I(),c=v("div"),h=v("p"),_=ne(g),S=I(),H(b.$$.fragment),m=I(),p=v("div"),H(A.$$.fragment),Y=I(),Ae&&Ae.c(),x=I(),Q=v("hr"),Z=I(),H(q.$$.fragment),R=I(),H(U.$$.fragment),E=I(),H(k.$$.fragment),K=I(),H(D.$$.fragment),ee=I(),H(te.$$.fragment),J=I(),Me=v("p"),Me.textContent=`${String.fromCharCode(...Pr)}`,r(s,"class","ml-3 p-0"),r(o,"class","flex flex-row items-center"),r(i,"class","flex-1 flex flex-col justify-center min-w-min"),r(c,"class","text-base"),r(p,"class","flex flex-1 min-w-min justify-end"),r(t,"class","my-3 text-2xl text-white flex flex-row"),r(e,"class","text-sm flex flex-col text-[#e8e8e8] select-none"),r(Me,"class","mt-auto ml-auto opacity-05 pb-[29px] pr-[16px] text-sm select-none")},m(ce,Ce){P(ce,e,Ce),d(e,t),d(t,i),d(i,l),d(l,o),d(o,s),d(s,a),d(t,f),d(t,c),d(c,h),d(h,_),d(c,S),B(b,c,null),d(t,m),d(t,p),B(A,p,null),d(p,Y),Ae&&Ae.m(p,null),d(e,x),d(e,Q),d(e,Z),B(q,e,null),d(e,R),B(U,e,null),d(e,E),B(k,e,null),d(e,K),B(D,e,null),d(e,ee),B(te,e,null),P(ce,J,Ce),P(ce,Me,Ce),Pe=!0},p(ce,[Ce]){(!Pe||Ce&2)&&u!==(u=ce[1].statusIconsSettings+"")&&re(a,u),(!Pe||Ce&2)&&g!==(g=ce[1].designMode+"")&&re(_,g);const j={};!w&&Ce&4&&(w=!0,j.checked=ce[2].designMode,ae(()=>w=!1)),b.$set(j);const fn={};Ce&2&&(fn.name=ce[1].resetStatusIconSettings),A.$set(fn),ce[3].adminOnly&&ce[3].isAdmin?Ae?(Ae.p(ce,Ce),Ce&8&&C(Ae,1)):(Ae=lr(ce),Ae.c(),C(Ae,1),Ae.m(p,null)):Ae&&(Se(),T(Ae,1,1,()=>{Ae=null}),pe());const ln={};!$&&Ce&1&&($=!0,ln.group=ce[0],ae(()=>$=!1)),q.$set(ln);const nn={};!y&&Ce&1&&(y=!0,nn.group=ce[0],ae(()=>y=!1)),U.$set(nn);const G={};!L&&Ce&1&&(L=!0,G.group=ce[0],ae(()=>L=!1)),k.$set(G);const dn={};!ge&&Ce&1&&(ge=!0,dn.group=ce[0],ae(()=>ge=!1)),D.$set(dn);const rn={};!W&&Ce&1&&(W=!0,rn.group=ce[0],ae(()=>W=!1)),te.$set(rn)},i(ce){Pe||(C(b.$$.fragment,ce),C(A.$$.fragment,ce),C(Ae),C(q.$$.fragment,ce),C(U.$$.fragment,ce),C(k.$$.fragment,ce),C(D.$$.fragment,ce),C(te.$$.fragment,ce),Pe=!0)},o(ce){T(b.$$.fragment,ce),T(A.$$.fragment,ce),T(Ae),T(q.$$.fragment,ce),T(U.$$.fragment,ce),T(k.$$.fragment,ce),T(D.$$.fragment,ce),T(te.$$.fragment,ce),Pe=!1},d(ce){ce&&F(e),z(b),z(A),Ae&&Ae.d(),z(q),z(U),z(k),z(D),z(te),ce&&F(J),ce&&F(Me)}}}function ef(n,e,t){let i,l,o;me(n,Oo,b=>t(1,i=b)),me(n,oe,b=>t(2,l=b)),me(n,Ve,b=>t(3,o=b));let s="";function u(b){n.$$.not_equal(l.designMode,b)&&(l.designMode=b,oe.set(l))}const a=()=>{oe.resetPlayerStatusIcons(),de.resetColorEffects(),Bt.resetLayout()},f=()=>{$s(),$t(oe,l.saveUIState="updating",l)};function c(b){s=b,t(0,s)}function h(b){s=b,t(0,s)}function g(b){s=b,t(0,s)}function _(b){s=b,t(0,s)}function S(b){s=b,t(0,s)}return[s,i,l,o,u,a,f,c,h,g,_,S]}class nf extends _e{constructor(e){super();we(this,e,ef,$0,be,{})}}function rr(n,e,t){const i=n.slice();return i[10]=e[t],i}function sr(n,e,t){const i=n.slice();return i[10]=e[t],i[14]=t,i}function ar(n){let e,t,i,l,o=n[10].name+"",s,u,a,f,c;t=new Re({props:{icon:n[10].icon,translateY:.27}});function h(){return n[8](n[14])}return{c(){e=v("div"),H(t.$$.fragment),i=I(),l=v("span"),s=ne(o),u=I(),r(e,"class","bg-[#171717] px-4 py-4 flex flex-row gap-3 cursor-pointer select-none")},m(g,_){P(g,e,_),B(t,e,null),d(e,i),d(e,l),d(l,s),d(e,u),a=!0,f||(c=$e(e,"click",h),f=!0)},p(g,_){n=g},i(g){a||(C(t.$$.fragment,g),a=!0)},o(g){T(t.$$.fragment,g),a=!1},d(g){g&&F(e),z(t),f=!1,c()}}}function ur(n){let e,t,i=(!n[10].adminOnly||!n[2].adminOnly||n[2].adminOnly&&n[2].isAdmin)&&ar(n);return{c(){i&&i.c(),e=kn()},m(l,o){i&&i.m(l,o),P(l,e,o),t=!0},p(l,o){!l[10].adminOnly||!l[2].adminOnly||l[2].adminOnly&&l[2].isAdmin?i?(i.p(l,o),o&4&&C(i,1)):(i=ar(l),i.c(),C(i,1),i.m(e.parentNode,e)):i&&(Se(),T(i,1,1,()=>{i=null}),pe())},i(l){t||(C(i),t=!0)},o(l){T(i),t=!1},d(l){i&&i.d(l),l&&F(e)}}}function fr(n){let e,t,i,l;var o=n[10].content;function s(u){return{}}return o&&(t=new o(s())),{c(){e=v("div"),t&&H(t.$$.fragment),i=I(),V(e,"display",n[1].name==n[10].name?"flex":"none"),r(e,"class","flex-col w-5/6 px-5 overflow-y-scroll bg-[#171717]")},m(u,a){P(u,e,a),t&&B(t,e,null),d(e,i),l=!0},p(u,a){if(o!==(o=u[10].content)){if(t){Se();const f=t;T(f.$$.fragment,1,0,()=>{z(f,1)}),pe()}o?(t=new o(s()),H(t.$$.fragment),C(t.$$.fragment,1),B(t,e,i)):t=null}(!l||a&2)&&V(e,"display",u[1].name==u[10].name?"flex":"none")},i(u){l||(t&&C(t.$$.fragment,u),l=!0)},o(u){t&&T(t.$$.fragment,u),l=!1},d(u){u&&F(e),t&&z(t)}}}function cr(n){let e,t,i=(!n[10].adminOnly||!n[2].adminOnly||n[2].adminOnly&&n[2].isAdmin)&&fr(n);return{c(){i&&i.c(),e=kn()},m(l,o){i&&i.m(l,o),P(l,e,o),t=!0},p(l,o){!l[10].adminOnly||!l[2].adminOnly||l[2].adminOnly&&l[2].isAdmin?i?(i.p(l,o),o&4&&C(i,1)):(i=fr(l),i.c(),C(i,1),i.m(e.parentNode,e)):i&&(Se(),T(i,1,1,()=>{i=null}),pe())},i(l){t||(C(i),t=!0)},o(l){T(i),t=!1},d(l){i&&i.d(l),l&&F(e)}}}function tf(n){let e,t,i,l,o,s,u,a,f,c,h=n[5],g=[];for(let m=0;mT(g[m],1,1,()=>{g[m]=null});let S=n[5],b=[];for(let m=0;mT(b[m],1,1,()=>{b[m]=null});return{c(){e=v("section"),t=v("div"),t.innerHTML='',i=I(),l=v("div"),o=v("div");for(let m=0;mt(9,i=_)),me(n,Ve,_=>t(2,l=_));let o;const s=screen.width,u=screen.height;let a=[{name:i.hudSettings,icon:ys,content:e0,adminOnly:!1},{name:i.statusIcons,icon:Ys,content:nf,adminOnly:!0}],f=a[0];function c(_){t(1,f=a[_])}function h(_){ie[_?"unshift":"push"](()=>{o=_,t(0,o)})}return[o,f,l,s,u,a,c,h,_=>c(_)]}class lf extends _e{constructor(e){super();we(this,e,of,tf,be,{})}}function hr(n){let e,t,i=(n[0].showSquareBorder||Fn)&&gr(),l=n[0].showCircleBorder&&dr();return{c(){e=v("div"),i&&i.c(),t=I(),l&&l.c(),r(e,"class","mapborder svelte-fe3cn0")},m(o,s){P(o,e,s),i&&i.m(e,null),d(e,t),l&&l.m(e,null)},p(o,s){o[0].showSquareBorder||Fn?i||(i=gr(),i.c(),i.m(e,t)):i&&(i.d(1),i=null),o[0].showCircleBorder?l||(l=dr(),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},d(o){o&&F(e),i&&i.d(),l&&l.d()}}}function gr(n){let e;return{c(){e=v("div"),r(e,"class","square svelte-fe3cn0")},m(t,i){P(t,e,i)},d(t){t&&F(e)}}}function dr(n){let e;return{c(){e=v("div"),r(e,"class","circle svelte-fe3cn0")},m(t,i){P(t,e,i)},d(t){t&&F(e)}}}function rf(n){let e,t=(n[0].show||Fn)&&hr(n);return{c(){t&&t.c(),e=kn()},m(i,l){t&&t.m(i,l),P(i,e,l)},p(i,[l]){i[0].show||Fn?t?t.p(i,l):(t=hr(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Ee,o:Ee,d(i){t&&t.d(i),i&&F(e)}}}function sf(n,e,t){let i;return me(n,Pi,l=>t(0,i=l)),[i]}class af extends _e{constructor(e){super();we(this,e,sf,rf,be,{})}}function mr(n){let e,t,i,l,o,s=(n[0].showStreets||Fn)&&_r(n),u=n[0].showPointer&&wr(),a=n[0].showDegress&&br(),f=(n[0].showCompass||Fn)&&Sr(n);return{c(){e=v("div"),s&&s.c(),t=I(),i=v("div"),u&&u.c(),l=I(),a&&a.c(),o=I(),f&&f.c(),r(i,"class","baseplate svelte-9vhma4"),r(e,"class","baseplateConainer svelte-9vhma4")},m(c,h){P(c,e,h),s&&s.m(e,null),d(e,t),d(e,i),u&&u.m(i,null),d(i,l),a&&a.m(i,null),d(i,o),f&&f.m(i,null)},p(c,h){c[0].showStreets||Fn?s?s.p(c,h):(s=_r(c),s.c(),s.m(e,t)):s&&(s.d(1),s=null),c[0].showPointer?u||(u=wr(),u.c(),u.m(i,l)):u&&(u.d(1),u=null),c[0].showDegress?a||(a=br(),a.c(),a.m(i,o)):a&&(a.d(1),a=null),c[0].showCompass||Fn?f?f.p(c,h):(f=Sr(c),f.c(),f.m(i,null)):f&&(f.d(1),f=null)},d(c){c&&F(e),s&&s.d(),u&&u.d(),a&&a.d(),f&&f.d()}}}function _r(n){let e,t,i=n[0].street1+"",l,o,s,u=n[0].street2+"",a;return{c(){e=v("div"),t=v("div"),l=ne(i),o=I(),s=v("div"),a=ne(u),r(t,"class","street1 svelte-9vhma4"),r(s,"class","street2 svelte-9vhma4"),r(e,"class","street-container svelte-9vhma4")},m(f,c){P(f,e,c),d(e,t),d(t,l),d(e,o),d(e,s),d(s,a)},p(f,c){c&1&&i!==(i=f[0].street1+"")&&re(l,i),c&1&&u!==(u=f[0].street2+"")&&re(a,u)},d(f){f&&F(e)}}}function wr(n){let e;return{c(){e=v("div"),e.textContent="\u02C5",r(e,"class","pointer svelte-9vhma4")},m(t,i){P(t,e,i)},d(t){t&&F(e)}}}function br(n){let e;return{c(){e=v("div"),r(e,"class","degrees svelte-9vhma4")},m(t,i){P(t,e,i)},d(t){t&&F(e)}}}function Sr(n){let e,t,i,l,o,s,u,a,f,c,h,g,_,S,b,w,m,p,A,Y,x,Q,Z,q,$,R,U,y,E,k,L,K,D,ge,ee,te,W,J,Me,Pe;return{c(){e=X("svg"),t=X("rect"),i=X("rect"),l=X("rect"),o=X("rect"),s=X("rect"),u=X("rect"),a=X("rect"),f=X("rect"),c=X("rect"),h=X("rect"),g=X("rect"),_=X("rect"),S=X("rect"),w=I(),m=X("svg"),p=X("text"),A=ne("N"),Y=X("text"),x=ne("N"),Q=X("text"),Z=ne("NW"),q=X("text"),$=ne("NW"),R=X("text"),U=ne("NE"),y=X("text"),E=ne("NE"),k=X("text"),L=ne("E"),K=X("text"),D=ne("SE"),ge=X("text"),ee=ne("S"),te=X("text"),W=ne("SW"),J=X("text"),Me=ne("W"),r(t,"width","3"),r(t,"stroke","black"),r(t,"fill","white"),r(t,"stroke-width","0.5"),r(t,"stroke-opacity","0.6"),r(t,"height","20"),r(t,"x","-90"),r(i,"width","3"),r(i,"stroke","black"),r(i,"fill","white"),r(i,"stroke-width","0.5"),r(i,"stroke-opacity","0.6"),r(i,"height","9"),r(i,"x","-45"),r(l,"width","4.5"),r(l,"stroke","black"),r(l,"fill","white"),r(l,"stroke-width","0.5"),r(l,"stroke-opacity","0.6"),r(l,"height","20"),r(l,"x","0"),r(o,"width","3"),r(o,"stroke","black"),r(o,"fill","white"),r(o,"stroke-width","0.5"),r(o,"stroke-opacity","0.6"),r(o,"height","9"),r(o,"x","45"),r(s,"width","4.5"),r(s,"stroke","black"),r(s,"fill","white"),r(s,"stroke-width","0.5"),r(s,"stroke-opacity","0.6"),r(s,"height","20"),r(s,"x","90"),r(u,"width","3"),r(u,"stroke","black"),r(u,"fill","white"),r(u,"stroke-width","0.5"),r(u,"stroke-opacity","0.6"),r(u,"height","9"),r(u,"x","135"),r(a,"width","4.5"),r(a,"stroke","black"),r(a,"fill","white"),r(a,"stroke-width","0.5"),r(a,"stroke-opacity","0.6"),r(a,"height","20"),r(a,"x","180"),r(f,"width","3"),r(f,"stroke","black"),r(f,"fill","white"),r(f,"stroke-width","0.5"),r(f,"stroke-opacity","0.6"),r(f,"height","9"),r(f,"x","225"),r(c,"width","4.5"),r(c,"stroke","black"),r(c,"fill","white"),r(c,"stroke-width","0.5"),r(c,"stroke-opacity","0.6"),r(c,"height","20"),r(c,"x","270"),r(h,"width","3"),r(h,"stroke","black"),r(h,"fill","white"),r(h,"stroke-width","0.5"),r(h,"stroke-opacity","0.6"),r(h,"height","9"),r(h,"x","315"),r(g,"width","4.5"),r(g,"stroke","black"),r(g,"fill","white"),r(g,"stroke-width","0.5"),r(g,"stroke-opacity","0.6"),r(g,"height","20"),r(g,"x","360"),r(_,"width","3"),r(_,"stroke","black"),r(_,"fill","white"),r(_,"stroke-width","0.5"),r(_,"stroke-opacity","0.6"),r(_,"height","9"),r(_,"x","405"),r(S,"width","3"),r(S,"stroke","black"),r(S,"fill","white"),r(S,"stroke-width","0.5"),r(S,"stroke-opacity","0.6"),r(S,"height","20"),r(S,"x","450"),r(e,"class","bezel svelte-9vhma4"),r(e,"viewBox",b=n[1]+" 0 180 5"),r(p,"x","0"),r(p,"y","1.5"),r(p,"dominant-baseline","middle"),r(p,"text-anchor","middle"),r(p,"fill","yellow"),r(Y,"x","360"),r(Y,"y","1.5"),r(Y,"dominant-baseline","middle"),r(Y,"text-anchor","middle"),r(Y,"fill","yellow"),r(Q,"x","315"),r(Q,"y","-11"),r(Q,"dominant-baseline","middle"),r(Q,"text-anchor","middle"),r(Q,"fill","white"),r(Q,"class","bearingText svelte-9vhma4"),r(q,"x","-45"),r(q,"y","-11"),r(q,"dominant-baseline","middle"),r(q,"text-anchor","middle"),r(q,"fill","white"),r(q,"class","bearingText svelte-9vhma4"),r(R,"x","45"),r(R,"y","-11"),r(R,"dominant-baseline","middle"),r(R,"text-anchor","middle"),r(R,"fill","white"),r(R,"class","bearingText svelte-9vhma4"),r(y,"x","405"),r(y,"y","-11"),r(y,"dominant-baseline","middle"),r(y,"text-anchor","middle"),r(y,"fill","white"),r(y,"class","bearingText svelte-9vhma4"),r(k,"x","90"),r(k,"y","1.5"),r(k,"dominant-baseline","middle"),r(k,"text-anchor","middle"),r(k,"fill","white"),r(K,"x","135"),r(K,"y","-11"),r(K,"dominant-baseline","middle"),r(K,"text-anchor","middle"),r(K,"fill","white"),r(K,"class","bearingText svelte-9vhma4"),r(ge,"x","180"),r(ge,"y","1.5"),r(ge,"dominant-baseline","middle"),r(ge,"text-anchor","middle"),r(ge,"fill","white"),r(te,"x","225"),r(te,"y","-11"),r(te,"dominant-baseline","middle"),r(te,"text-anchor","middle"),r(te,"fill","white"),r(te,"class","bearingText svelte-9vhma4"),r(J,"x","270"),r(J,"y","1.5"),r(J,"dominant-baseline","middle"),r(J,"text-anchor","middle"),r(J,"fill","white"),r(m,"class","bearing svelte-9vhma4"),r(m,"viewBox",Pe=n[1]+" 0 180 1.5")},m(he,ke){P(he,e,ke),d(e,t),d(e,i),d(e,l),d(e,o),d(e,s),d(e,u),d(e,a),d(e,f),d(e,c),d(e,h),d(e,g),d(e,_),d(e,S),P(he,w,ke),P(he,m,ke),d(m,p),d(p,A),d(m,Y),d(Y,x),d(m,Q),d(Q,Z),d(m,q),d(q,$),d(m,R),d(R,U),d(m,y),d(y,E),d(m,k),d(k,L),d(m,K),d(K,D),d(m,ge),d(ge,ee),d(m,te),d(te,W),d(m,J),d(J,Me)},p(he,ke){ke&2&&b!==(b=he[1]+" 0 180 5")&&r(e,"viewBox",b),ke&2&&Pe!==(Pe=he[1]+" 0 180 1.5")&&r(m,"viewBox",Pe)},d(he){he&&F(e),he&&F(w),he&&F(m)}}}function uf(n){let e,t=(n[0].show||Fn)&&mr(n);return{c(){t&&t.c(),e=kn()},m(i,l){t&&t.m(i,l),P(i,e,l)},p(i,[l]){i[0].show||Fn?t?t.p(i,l):(t=mr(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Ee,o:Ee,d(i){t&&t.d(i),i&&F(e)}}}function ff(n,e,t){let i,l;me(n,vi,u=>t(0,i=u));const o=on(0,{duration:600,easing:Ci});me(n,o,u=>t(1,l=u));let s=i.heading;return n.$$.update=()=>{n.$$.dirty&9&&(s>230&&i.heading<-50||s<-50&&i.heading>230?o.set(i.heading,{duration:0,easing:Ci}):o.set(i.heading,{duration:600,easing:Ci}),t(3,s=i.heading))},[i,l,o,s]}class cf extends _e{constructor(e){super();we(this,e,ff,uf,be,{})}}function pr(n){let e,t,i,l,o=n[0].cash+"",s,u,a;return{c(){e=v("div"),t=v("p"),i=v("span"),i.textContent="$\xA0",l=v("span"),s=ne(o),r(i,"id","sign"),r(i,"class","svelte-12ge6tb"),r(l,"id","money"),r(l,"class","svelte-12ge6tb")},m(f,c){P(f,e,c),d(e,t),d(t,i),d(t,l),d(l,s),a=!0},p(f,c){(!a||c&1)&&o!==(o=f[0].cash+"")&&re(s,o)},i(f){a||(f&&mo(()=>{u||(u=Gn(e,ct,{duration:1e3},!0)),u.run(1)}),a=!0)},o(f){f&&(u||(u=Gn(e,ct,{duration:1e3},!1)),u.run(0)),a=!1},d(f){f&&F(e),f&&u&&u.end()}}}function kr(n){let e,t,i,l,o=n[0].bank+"",s,u,a;return{c(){e=v("div"),t=v("p"),i=v("span"),i.textContent="$\xA0",l=v("span"),s=ne(o),r(i,"id","sign"),r(i,"class","svelte-12ge6tb"),r(l,"id","bank"),r(l,"class","svelte-12ge6tb")},m(f,c){P(f,e,c),d(e,t),d(t,i),d(t,l),d(l,s),a=!0},p(f,c){(!a||c&1)&&o!==(o=f[0].bank+"")&&re(s,o)},i(f){a||(f&&mo(()=>{u||(u=Gn(e,ct,{duration:1e3},!0)),u.run(1)}),a=!0)},o(f){f&&(u||(u=Gn(e,ct,{duration:1e3},!1)),u.run(0)),a=!1},d(f){f&&F(e),f&&u&&u.end()}}}function Cr(n){let e,t,i;function l(u,a){if(u[0].plus)return gf;if(u[0].minus)return hf}let o=l(n),s=o&&o(n);return{c(){e=v("div"),s&&s.c()},m(u,a){P(u,e,a),s&&s.m(e,null),i=!0},p(u,a){o===(o=l(u))&&s?s.p(u,a):(s&&s.d(1),s=o&&o(u),s&&(s.c(),s.m(e,null)))},i(u){i||(u&&mo(()=>{t||(t=Gn(e,ct,{duration:1e3},!0)),t.run(1)}),i=!0)},o(u){u&&(t||(t=Gn(e,ct,{duration:1e3},!1)),t.run(0)),i=!1},d(u){u&&F(e),s&&s.d(),u&&t&&t.end()}}}function hf(n){let e,t,i,l=n[0].amount+"",o;return{c(){e=v("p"),t=v("span"),t.textContent="-\xA0",i=v("span"),o=ne(l),r(t,"id","minus"),r(t,"class","svelte-12ge6tb"),r(i,"id","money"),r(i,"class","svelte-12ge6tb"),r(e,"id","minus"),r(e,"class","svelte-12ge6tb")},m(s,u){P(s,e,u),d(e,t),d(e,i),d(i,o)},p(s,u){u&1&&l!==(l=s[0].amount+"")&&re(o,l)},d(s){s&&F(e)}}}function gf(n){let e,t,i,l=n[0].amount+"",o;return{c(){e=v("p"),t=v("span"),t.textContent="+\xA0",i=v("span"),o=ne(l),r(t,"id","plus"),r(t,"class","svelte-12ge6tb"),r(i,"id","money"),r(i,"class","svelte-12ge6tb"),r(e,"id","money"),r(e,"class","svelte-12ge6tb")},m(s,u){P(s,e,u),d(e,t),d(e,i),d(i,o)},p(s,u){u&1&&l!==(l=s[0].amount+"")&&re(o,l)},d(s){s&&F(e)}}}function df(n){let e,t,i,l=n[0].showCash&&pr(n),o=n[0].showBank&&kr(n),s=n[0].showUpdate&&Cr(n);return{c(){e=v("div"),l&&l.c(),t=I(),o&&o.c(),i=I(),s&&s.c(),r(e,"id","money-container"),r(e,"class","svelte-12ge6tb")},m(u,a){P(u,e,a),l&&l.m(e,null),d(e,t),o&&o.m(e,null),d(e,i),s&&s.m(e,null)},p(u,[a]){u[0].showCash?l?(l.p(u,a),a&1&&C(l,1)):(l=pr(u),l.c(),C(l,1),l.m(e,t)):l&&(Se(),T(l,1,1,()=>{l=null}),pe()),u[0].showBank?o?(o.p(u,a),a&1&&C(o,1)):(o=kr(u),o.c(),C(o,1),o.m(e,i)):o&&(Se(),T(o,1,1,()=>{o=null}),pe()),u[0].showUpdate?s?(s.p(u,a),a&1&&C(s,1)):(s=Cr(u),s.c(),C(s,1),s.m(e,null)):s&&(Se(),T(s,1,1,()=>{s=null}),pe())},i(u){C(l),C(o),C(s)},o(u){T(l),T(o),T(s)},d(u){u&&F(e),l&&l.d(),o&&o.d(),s&&s.d()}}}function mf(n,e,t){let i;return me(n,Xi,l=>t(0,i=l)),[i]}class _f extends _e{constructor(e){super();we(this,e,mf,df,be,{})}}function vr(n){let e,t,i,l;return{c(){e=X("circle"),r(e,"opacity",n[9]),r(e,"fill","transparent"),r(e,"stroke",n[8]),r(e,"stroke-dashoffset",t=n[20]-n[15]/100*n[20]),r(e,"stroke-dasharray",i=n[20]+" "+n[20]),r(e,"stroke-width",n[11]),r(e,"r",n[19]),r(e,"cx",n[18]),r(e,"cy",n[18]),r(e,"transform",l="rotate(-90, "+n[18]+", "+n[18]+")")},m(o,s){P(o,e,s)},p(o,s){s[0]&512&&r(e,"opacity",o[9]),s[0]&256&&r(e,"stroke",o[8]),s[0]&1081344&&t!==(t=o[20]-o[15]/100*o[20])&&r(e,"stroke-dashoffset",t),s[0]&1048576&&i!==(i=o[20]+" "+o[20])&&r(e,"stroke-dasharray",i),s[0]&2048&&r(e,"stroke-width",o[11]),s[0]&524288&&r(e,"r",o[19]),s[0]&262144&&r(e,"cx",o[18]),s[0]&262144&&r(e,"cy",o[18]),s[0]&262144&&l!==(l="rotate(-90, "+o[18]+", "+o[18]+")")&&r(e,"transform",l)},d(o){o&&F(e)}}}function Ar(n){let e,t,i,l,o,s;return{c(){e=X("circle"),r(e,"fill",n[6]),r(e,"fill-opacity",n[7]),r(e,"stroke","transparent"),r(e,"stroke-dashoffset",t=0),r(e,"stroke-dasharray",i=n[20]+" "+n[20]),r(e,"stroke-width",l=n[11]-.6),r(e,"r",o=n[19]-n[11]/2+.1),r(e,"cx",n[18]),r(e,"cy",n[18]),r(e,"transform",s="rotate(-90, "+n[18]+", "+n[18]+")")},m(u,a){P(u,e,a)},p(u,a){a[0]&64&&r(e,"fill",u[6]),a[0]&128&&r(e,"fill-opacity",u[7]),a[0]&1048576&&i!==(i=u[20]+" "+u[20])&&r(e,"stroke-dasharray",i),a[0]&2048&&l!==(l=u[11]-.6)&&r(e,"stroke-width",l),a[0]&526336&&o!==(o=u[19]-u[11]/2+.1)&&r(e,"r",o),a[0]&262144&&r(e,"cx",u[18]),a[0]&262144&&r(e,"cy",u[18]),a[0]&262144&&s!==(s="rotate(-90, "+u[18]+", "+u[18]+")")&&r(e,"transform",s)},d(u){u&&F(e)}}}function Dr(n){let e,t=Math.floor(n[22])+"",i,l,o;return{c(){e=X("text"),i=ne(t),l=X("text"),o=ne(n[17]),r(e,"class","vehicle-number svelte-1goqjlo"),r(e,"fill","white"),r(e,"x","50%"),r(e,"y","45%"),r(e,"dominant-baseline","middle"),r(e,"text-anchor","middle"),r(l,"class","vehicle-text svelte-1goqjlo"),r(l,"fill","white"),r(l,"x","50%"),r(l,"y","70%"),r(l,"dominant-baseline","middle"),r(l,"text-anchor","middle")},m(s,u){P(s,e,u),d(e,i),P(s,l,u),d(l,o)},p(s,u){u[0]&4194304&&t!==(t=Math.floor(s[22])+"")&&re(i,t),u[0]&131072&&re(o,s[17])},d(s){s&&F(e),s&&F(l)}}}function Tr(n){let e,t;return e=new Re({props:{icon:n[1],scale:n[3],translateX:n[4],translateY:n[5],style:"color:"+n[2]}}),{c(){H(e.$$.fragment)},m(i,l){B(e,i,l),t=!0},p(i,l){const o={};l[0]&2&&(o.icon=i[1]),l[0]&8&&(o.scale=i[3]),l[0]&16&&(o.translateX=i[4]),l[0]&32&&(o.translateY=i[5]),l[0]&4&&(o.style="color:"+i[2]),e.$set(o)},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){T(e.$$.fragment,i),t=!1},d(i){z(e,i)}}}function wf(n){let e,t,i,l,o,s,u,a,f,c,h,g,_=n[0]&&vr(n),S=n[16]&&Ar(n),b=n[17]&&Dr(n),w=n[1]&&Tr(n);return{c(){e=X("svg"),t=X("g"),_&&_.c(),i=kn(),S&&S.c(),l=X("circle"),b&&b.c(),a=X("g"),w&&w.c(),r(l,"stroke",n[10]),r(l,"fill","transparent"),r(l,"stroke-dashoffset",n[21]),r(l,"stroke-dasharray",o=n[20]+" "+n[20]),r(l,"stroke-width",n[11]),r(l,"r",n[19]),r(l,"cx",n[18]),r(l,"cy",n[18]),r(l,"transform",s="rotate(-90, "+n[18]+", "+n[18]+")"),r(t,"transform",u=`\r + `+(n[12]>0?"rotate("+n[12]+" "+n[18]+" "+n[18]+")":"")+`\r + `+("translate("+n[13]+" "+n[14]+")")),r(e,"width",f=n[18]*2),r(e,"height",c=n[18]*2),r(e,"viewBox",h="0 0 "+n[18]*2+" "+n[18]*2),r(e,"overflow","visible")},m(m,p){P(m,e,p),d(e,t),_&&_.m(t,null),d(t,i),S&&S.m(t,null),d(t,l),b&&b.m(e,null),d(e,a),w&&w.m(a,null),g=!0},p(m,p){m[0]?_?_.p(m,p):(_=vr(m),_.c(),_.m(t,i)):_&&(_.d(1),_=null),m[16]?S?S.p(m,p):(S=Ar(m),S.c(),S.m(t,l)):S&&(S.d(1),S=null),(!g||p[0]&1024)&&r(l,"stroke",m[10]),(!g||p[0]&2097152)&&r(l,"stroke-dashoffset",m[21]),(!g||p[0]&1048576&&o!==(o=m[20]+" "+m[20]))&&r(l,"stroke-dasharray",o),(!g||p[0]&2048)&&r(l,"stroke-width",m[11]),(!g||p[0]&524288)&&r(l,"r",m[19]),(!g||p[0]&262144)&&r(l,"cx",m[18]),(!g||p[0]&262144)&&r(l,"cy",m[18]),(!g||p[0]&262144&&s!==(s="rotate(-90, "+m[18]+", "+m[18]+")"))&&r(l,"transform",s),(!g||p[0]&290816&&u!==(u=`\r + `+(m[12]>0?"rotate("+m[12]+" "+m[18]+" "+m[18]+")":"")+`\r + `+("translate("+m[13]+" "+m[14]+")")))&&r(t,"transform",u),m[17]?b?b.p(m,p):(b=Dr(m),b.c(),b.m(e,a)):b&&(b.d(1),b=null),m[1]?w?(w.p(m,p),p[0]&2&&C(w,1)):(w=Tr(m),w.c(),C(w,1),w.m(a,null)):w&&(Se(),T(w,1,1,()=>{w=null}),pe()),(!g||p[0]&262144&&f!==(f=m[18]*2))&&r(e,"width",f),(!g||p[0]&262144&&c!==(c=m[18]*2))&&r(e,"height",c),(!g||p[0]&262144&&h!==(h="0 0 "+m[18]*2+" "+m[18]*2))&&r(e,"viewBox",h)},i(m){g||(C(w),g=!0)},o(m){T(w),g=!1},d(m){m&&F(e),_&&_.d(),S&&S.d(),b&&b.d(),w&&w.d()}}}function bf(n,e,t){let i,l,{displayOutline:o=!0}=e,{height:s=50}=e,{icon:u=null}=e,{iconColor:a="red"}=e,{iconRotateDegree:f=0}=e,{iconScaling:c=.45}=e,{iconTranslateX:h=0}=e,{iconTranslateY:g=0}=e,{innerColor:_="#212121"}=e,{innerColorOpacity:S=1}=e,{name:b=""}=e,{outlineColor:w="red"}=e,{outlineColorOpacity:m=.4}=e,{progressColor:p="red"}=e,{progressValue:A=100}=e,{ringSize:Y=4}=e,{rotateDegree:x=0}=e,{translateX:Q=0}=e,{translateY:Z=0}=e,{width:q=50}=e,{maxLengthDisplay:$=100}=e,{maxProgressValue:R=100}=e,{showInnerBG:U=!1}=e,{displayNumber:y=0}=e,{text:E=""}=e,k=25,L=A/R*100;const K=on(L,{duration:600,easing:Ci});me(n,K,W=>t(33,i=W));const D=on(y,{duration:600,easing:Ci});me(n,D,W=>t(22,l=W));let ge=k-Y/2,ee=ge*2*Math.PI,te=ee-i/100*ee;return n.$$set=W=>{"displayOutline"in W&&t(0,o=W.displayOutline),"height"in W&&t(26,s=W.height),"icon"in W&&t(1,u=W.icon),"iconColor"in W&&t(2,a=W.iconColor),"iconRotateDegree"in W&&t(27,f=W.iconRotateDegree),"iconScaling"in W&&t(3,c=W.iconScaling),"iconTranslateX"in W&&t(4,h=W.iconTranslateX),"iconTranslateY"in W&&t(5,g=W.iconTranslateY),"innerColor"in W&&t(6,_=W.innerColor),"innerColorOpacity"in W&&t(7,S=W.innerColorOpacity),"name"in W&&t(28,b=W.name),"outlineColor"in W&&t(8,w=W.outlineColor),"outlineColorOpacity"in W&&t(9,m=W.outlineColorOpacity),"progressColor"in W&&t(10,p=W.progressColor),"progressValue"in W&&t(25,A=W.progressValue),"ringSize"in W&&t(11,Y=W.ringSize),"rotateDegree"in W&&t(12,x=W.rotateDegree),"translateX"in W&&t(13,Q=W.translateX),"translateY"in W&&t(14,Z=W.translateY),"width"in W&&t(29,q=W.width),"maxLengthDisplay"in W&&t(15,$=W.maxLengthDisplay),"maxProgressValue"in W&&t(30,R=W.maxProgressValue),"showInnerBG"in W&&t(16,U=W.showInnerBG),"displayNumber"in W&&t(31,y=W.displayNumber),"text"in W&&t(17,E=W.text)},n.$$.update=()=>{n.$$.dirty[0]&1107296256|n.$$.dirty[1]&2&&(t(25,A=Math.min(A,R)),t(32,L=A/R*100),K.set(L)),n.$$.dirty[1]&1&&D.set(y),n.$$.dirty[0]&603979776&&t(18,k=s>q?s/2:q/2),n.$$.dirty[0]&788480&&(t(19,ge=k-Y/2),t(20,ee=ge*2*Math.PI)),n.$$.dirty[0]&1081344|n.$$.dirty[1]&4&&t(21,te=ee-i/(100/$)/100*ee)},[o,u,a,c,h,g,_,S,w,m,p,Y,x,Q,Z,$,U,E,k,ge,ee,te,l,K,D,A,s,f,b,q,R,y,L,i]}class xi extends _e{constructor(e){super();we(this,e,bf,wf,be,{displayOutline:0,height:26,icon:1,iconColor:2,iconRotateDegree:27,iconScaling:3,iconTranslateX:4,iconTranslateY:5,innerColor:6,innerColorOpacity:7,name:28,outlineColor:8,outlineColorOpacity:9,progressColor:10,progressValue:25,ringSize:11,rotateDegree:12,translateX:13,translateY:14,width:29,maxLengthDisplay:15,maxProgressValue:30,showInnerBG:16,displayNumber:31,text:17},null,[-1,-1])}}function Ir(n){let e,t,i,l,o,s,u,a,f,c,h;t=new xi({props:{maxLengthDisplay:66,rotateDegree:212,ringSize:5.5,progressColor:"white",outlineColor:"black",outlineColorOpacity:.6,height:60,width:60,progressValue:n[0].speed,text:"MPH",displayNumber:n[0].speed,maxProgressValue:180}}),o=new xi({props:{maxLengthDisplay:69,rotateDegree:235,ringSize:3.5,progressColor:n[0].fuelColor,outlineColor:"black",outlineColorOpacity:.6,height:36,width:36,progressValue:n[0].fuel,icon:Xs,iconColor:"white",iconScaling:.38}});let g=n[0].showAltitude&&Mr(n);const _=[pf,Sf],S=[];function b(w,m){return w[0].showSeatBelt&&w[0].showAltitude?0:w[0].showSeatBelt?1:-1}return~(a=b(n))&&(f=S[a]=_[a](n)),{c(){e=v("div"),H(t.$$.fragment),i=I(),l=v("div"),H(o.$$.fragment),s=I(),g&&g.c(),u=I(),f&&f.c(),c=kn(),r(e,"class","responsive svelte-am3d8l"),r(e,"id","speedometer"),r(l,"class","responsive svelte-am3d8l"),r(l,"id","fuelgauge")},m(w,m){P(w,e,m),B(t,e,null),P(w,i,m),P(w,l,m),B(o,l,null),P(w,s,m),g&&g.m(w,m),P(w,u,m),~a&&S[a].m(w,m),P(w,c,m),h=!0},p(w,m){const p={};m&1&&(p.progressValue=w[0].speed),m&1&&(p.displayNumber=w[0].speed),t.$set(p);const A={};m&1&&(A.progressColor=w[0].fuelColor),m&1&&(A.progressValue=w[0].fuel),o.$set(A),w[0].showAltitude?g?(g.p(w,m),m&1&&C(g,1)):(g=Mr(w),g.c(),C(g,1),g.m(u.parentNode,u)):g&&(Se(),T(g,1,1,()=>{g=null}),pe());let Y=a;a=b(w),a===Y?~a&&S[a].p(w,m):(f&&(Se(),T(S[Y],1,1,()=>{S[Y]=null}),pe()),~a?(f=S[a],f?f.p(w,m):(f=S[a]=_[a](w),f.c()),C(f,1),f.m(c.parentNode,c)):f=null)},i(w){h||(C(t.$$.fragment,w),C(o.$$.fragment,w),C(g),C(f),h=!0)},o(w){T(t.$$.fragment,w),T(o.$$.fragment,w),T(g),T(f),h=!1},d(w){w&&F(e),z(t),w&&F(i),w&&F(l),z(o),w&&F(s),g&&g.d(w),w&&F(u),~a&&S[a].d(w),w&&F(c)}}}function Mr(n){let e,t,i;return t=new xi({props:{maxLengthDisplay:75,rotateDegree:225,ringSize:5.5,progressColor:"white",outlineColor:"black",outlineColorOpacity:.6,height:60,width:60,progressValue:n[0].altitude,text:"ALT",displayNumber:n[0].altitude,maxProgressValue:750}}),{c(){e=v("div"),H(t.$$.fragment),r(e,"class","responsive svelte-am3d8l"),r(e,"id","altitudegauge")},m(l,o){P(l,e,o),B(t,e,null),i=!0},p(l,o){const s={};o&1&&(s.progressValue=l[0].altitude),o&1&&(s.displayNumber=l[0].altitude),t.$set(s)},i(l){i||(C(t.$$.fragment,l),i=!0)},o(l){T(t.$$.fragment,l),i=!1},d(l){l&&F(e),z(t)}}}function Sf(n){let e,t,i,l,o;return i=new Re({props:{icon:$i,scale:1.1,style:"color:"+n[0].seatbeltColor}}),{c(){e=v("div"),t=v("div"),H(i.$$.fragment),r(t,"class","responsive svelte-am3d8l"),r(t,"id","seatbelt")},m(s,u){P(s,e,u),d(e,t),B(i,t,null),o=!0},p(s,u){const a={};u&1&&(a.style="color:"+s[0].seatbeltColor),i.$set(a)},i(s){o||(C(i.$$.fragment,s),s&&mo(()=>{l||(l=Gn(e,ct,{duration:500},!0)),l.run(1)}),o=!0)},o(s){T(i.$$.fragment,s),s&&(l||(l=Gn(e,ct,{duration:500},!1)),l.run(0)),o=!1},d(s){s&&F(e),z(i),s&&l&&l.end()}}}function pf(n){let e,t,i,l,o;return i=new Re({props:{icon:$i,scale:1.1,style:"color:"+n[0].seatbeltColor}}),{c(){e=v("div"),t=v("div"),H(i.$$.fragment),r(t,"class","responsive svelte-am3d8l"),r(t,"id","seatbeltAltitude")},m(s,u){P(s,e,u),d(e,t),B(i,t,null),o=!0},p(s,u){const a={};u&1&&(a.style="color:"+s[0].seatbeltColor),i.$set(a)},i(s){o||(C(i.$$.fragment,s),s&&mo(()=>{l||(l=Gn(e,ct,{duration:500},!0)),l.run(1)}),o=!0)},o(s){T(i.$$.fragment,s),s&&(l||(l=Gn(e,ct,{duration:500},!1)),l.run(0)),o=!1},d(s){s&&F(e),z(i),s&&l&&l.end()}}}function kf(n){let e,t,i=(n[0].show||Fn)&&Ir(n);return{c(){i&&i.c(),e=kn()},m(l,o){i&&i.m(l,o),P(l,e,o),t=!0},p(l,[o]){l[0].show||Fn?i?(i.p(l,o),o&1&&C(i,1)):(i=Ir(l),i.c(),C(i,1),i.m(e.parentNode,e)):i&&(Se(),T(i,1,1,()=>{i=null}),pe())},i(l){t||(C(i),t=!0)},o(l){T(i),t=!1},d(l){i&&i.d(l),l&&F(e)}}}function Cf(n,e,t){let i;return me(n,Pi,l=>t(0,i=l)),[i]}class vf extends _e{constructor(e){super();we(this,e,Cf,kf,be,{})}}const{document:Yi}=Es;function yr(n){let e,t,i,l,o,s,u,a,f,c;return e=new cf({}),i=new _f({}),o=new Hu({}),u=new vf({}),f=new af({}),{c(){H(e.$$.fragment),t=I(),H(i.$$.fragment),l=I(),H(o.$$.fragment),s=I(),H(u.$$.fragment),a=I(),H(f.$$.fragment)},m(h,g){B(e,h,g),P(h,t,g),B(i,h,g),P(h,l,g),B(o,h,g),P(h,s,g),B(u,h,g),P(h,a,g),B(f,h,g),c=!0},i(h){c||(C(e.$$.fragment,h),C(i.$$.fragment,h),C(o.$$.fragment,h),C(u.$$.fragment,h),C(f.$$.fragment,h),c=!0)},o(h){T(e.$$.fragment,h),T(i.$$.fragment,h),T(o.$$.fragment,h),T(u.$$.fragment,h),T(f.$$.fragment,h),c=!1},d(h){z(e,h),h&&F(t),z(i,h),h&&F(l),z(o,h),h&&F(s),z(u,h),h&&F(a),z(f,h)}}}function Af(n){let e,t,i,l,o,s,u,a,f,c=!n[0].isCineamticModeChecked&&yr();return a=new lf({}),{c(){e=v("link"),t=v("link"),i=v("link"),l=v("link"),o=I(),s=v("main"),c&&c.c(),u=I(),H(a.$$.fragment),r(e,"href","https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"),r(e,"rel","stylesheet"),r(t,"href","https://fonts.cdnfonts.com/css/pricedown"),r(t,"rel","stylesheet"),r(i,"href","https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"),r(i,"rel","stylesheet"),r(l,"href","https://fonts.googleapis.com/css2?family=Yantramanav:wght@100;300;400;500;700;900&display=swap"),r(l,"rel","stylesheet"),r(s,"class","bg-transparent min-h-screen")},m(h,g){d(Yi.head,e),d(Yi.head,t),d(Yi.head,i),d(Yi.head,l),P(h,o,g),P(h,s,g),c&&c.m(s,null),d(s,u),B(a,s,null),f=!0},p(h,[g]){h[0].isCineamticModeChecked?c&&(Se(),T(c,1,1,()=>{c=null}),pe()):c?g&1&&C(c,1):(c=yr(),c.c(),C(c,1),c.m(s,u))},i(h){f||(C(c),C(a.$$.fragment,h),f=!0)},o(h){T(c),T(a.$$.fragment,h),f=!1},d(h){F(e),F(t),F(i),F(l),h&&F(o),h&&F(s),c&&c.d(),z(a)}}}function Df(n,e,t){let i,l;me(n,oe,u=>t(2,i=u)),me(n,Ve,u=>t(0,l=u)),Ks();let o;return(()=>{let u=!0;o=setInterval(()=>{u?($t(oe,i.designProgress+=15,i),i.designProgress>100&&($t(oe,i.designProgress=100,i),u=!u)):($t(oe,i.designProgress-=15,i),i.designProgress<0&&($t(oe,i.designProgress=0,i),u=!u))},1400)})(),Xr(()=>clearInterval(o)),document.onkeyup=Ve.handleKeyUp,[l]}class Tf extends _e{constructor(e){super();we(this,e,Df,Af,be,{})}}new Tf({target:document.getElementById("app")}); diff --git a/html/pt-br.json b/html/pt-br.json new file mode 100644 index 0000000..1d761e7 --- /dev/null +++ b/html/pt-br.json @@ -0,0 +1,95 @@ +{ + "hudSettings": "Configurações do HUD", + "statusIcons": "Ícones de Status", + "resetHud": "Resetar HUD", + "resetSettings": "Resetar Configurações", + "resettingHud": "Resetando Hud...", + "resetHudDescription": "Se seu HUD está com problemas, dê um velho reset! Ou pode usar o comando: /resethud", + "resetSettingsDescriptionLine1": "Se você quiser resetar suas confgurações para o padrão; clique neste botão luminoso!", + "resetSettingsDescriptionLine2": "(você terá que relogar para o menu resetar as configurações corretamente)", + "optionsMenu": "Opções", + "minimapVehicleCheckBoxPrimary": "Mostrar Minimapa Somente em Veículo", + "minimapVehicleCheckBoxSecondary": "Desativar isso vai deixar o minimapa na tela o tempo todo", + "compassVehicleCheckBoxPrimary": "Mostrar Bússola Somente em Veículo", + "compassVehicleCheckBoxSecondary": "Desativar isso vai deicar a bússola na tela o tempo todo", + "compassFollowCheckBoxPrimary": "Girar Bússola com a Câmera", + "compassFollowCheckBoxSecondary": "Desativar isso fará com que não seja mais possível rotacionar a bússola usando o mouse", + "notificationsMenu": "Notificações", + "menuSoundEffectsEnabled": "Ativar Efeitos sonoros do Menu", + "resetSoundEffectsEnabled": "Resetar Efeitos sonoros do HUD", + "guiSoundEffectsEnabled": "Ativar Efeitos sonoros da interface", + "mapNotificationsEnabled": "Ativar Notificações do Mapa", + "lowFuelNotificationsEnabled": "Ativar Aviso de Combustível Baixo", + "cinematicModeNotificationEnabled": "Notificações do Modo Cinematográfico", + "statusMenu": "Status", + "showHealthAlways": "Exibir Saúde Sempre", + "showArmorAlways": "Exibir Armadura Sempre", + "showHungerAlways": "Exibir Fome Sempre", + "showThirstAlways": "Exibir Sede Sempre", + "showStressAlways": "Exibir Estresse Sempre", + "showOxygenAlways": "Exibir Oxigênio Sempre", + "vehicleMenu": "Veículo", + "minimapTypeCircle": "Minimapa Circular", + "minimapTypeSquare": "Minimapa Quadrado", + "minimapTypeDescription": "Se é quadrado ou redondo que você deseja, você tem a opção de escolha!", + "minimapEnabled": "Ativar Minimapa", + "minimapBordersEnabled": "Ativar Bordas do Minimapa", + "showEngineAlways": "Exibir Motor Semrpe", + "showNitroAlways": "Exibir Nitro Semrpe", + "compassMenu": "Bússola", + "compassEnabled": "Ativar Bússola", + "compassEnabledDescription": "Desativar isso fará com que você não veja a navegação por bússola", + "showStreetNamesEnabled": "Ativar Nomes de Ruas", + "showStreetNamesDescription": "Desativar isso fará com que você não veja os nomes das ruas / locais", + "showCompassPointerEnabled": "Ativar Ponteiro da Bússola", + "showCompassPointerDescription": "Desativar isso fará com que você não veja o ponteiro da bússola para saber com exatidão sua direção", + "cinematicMenu": "Modo Cinematográfico", + "showCinematicBarsEnabled": "Exibir Barras do Modo Cinematográfico", + "statusIconsSettings": "Configurações dos Ícones de Status", + "designMode": "Modo de Design", + "resetStatusIconSettings": "Resetar Configurações de Ícones de Status", + "saveChangesToServer": "Salvar Configurações do Servidor", + "globalStatusIconsSettings": "Configurações Globais de Ícones de Status", + "iconShape": "Forma do Ícone", + "globalSizeAndPositionSection": "Seção de Tamanho e Posição Global", + "widthSize": "Largura", + "heightSize": "Altura", + "ringSize": "Tamanho do Anel", + "showProgressOutline": "Mostrar Borda Exterior de Progresso", + "xAxisPosition": "Posição Eixo X", + "yAxisPosition": "Posição Eixo Y", + "rotation": "Rotação", + "iconXAxisPosition": "Posição Eixo X Ícone", + "iconYAxisPosition": "Posição Eixo Y Ícone", + "iconSize": "Tamanho do Ícone", + "xAxisCurve": "Curva do Eixo X", + "yAxisCurve": "Curva do Eixo Y", + "globalColorSection": "Seção de Cores Globais", + "progressColor": "Cor do Progresso", + "progressContrast": "Contraste do Progresso", + "progressShadow": "Sombra do Progresso", + "iconColor": "Cor do Ícone", + "iconContrast": "Contraste do Ícone", + "iconShadow": "Sombra do Ícone", + "outlineColor": "Cor da Borda Exterior", + "outlineContrast": "Contraste da Borda Exterior", + "outlineShadow": "Sombre da Borda Exterior", + "innerColor": "Cor Interna", + "singleStatusIconSettings": "Configurações Unitárias do Ícone de Status", + "iconStatusToEdit": "Ícone de Status Para Editar", + "singleIconSizeAndPositionSection": "Seção Unitária de Tamanho e Posicionamento", + "singleIconColorSection": "Seção Unitária de Cor do Ícone", + "globalStatusIconLayoutSettings": "Configurações Globais de Leiaute de Ícones de Status", + "iconLayout": "Leiaute dos Ícones", + "iconState": "Estado do Ícone", + "betweenIconSpacing": "Espaçamento entre Ícones", + "yAxisSpacing": "Espaçamento do Eixo Y", + "xAxisSpacing": "Espaçamento do Eixo X", + "utilityFunctions": "Funções Utilitárias", + "copyProgressColorsToIconsColors": "Copiar Cores de Progress Para Cores dos Ícones", + "customizationProfiles": "Perfis Customizados", + "addNewProfile": "Novo Perfil", + "saveHudToProfile": "Salvar HUD no Perfil", + "applyProfileToHud": "Aplicar Perfil para HUD", + "deleteProfile": "Apagar Perfil" +} \ No newline at end of file diff --git a/html/vendor.js b/html/vendor.js index 22bfff1..f05bc02 100644 --- a/html/vendor.js +++ b/html/vendor.js @@ -10,4 +10,4 @@ function K(){}const r1=e=>e;function nt(e,t){for(const n in t)e[n]=t[n];return e 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 - 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),b(t,"width","100%"),b(t,"height","100%"),b(t,"viewBox","0 0 20 20"),b(t,"focusable","false"),b(t,"aria-hidden","true"),b(t,"class","svelte-o7a0bj")},m(i,l){F(i,t,l),q(t,n)},p:K,d(i){i&&A(t)}}}function Z2(e){let t,n;return{c(){t=new Ei,n=pe(),t.a=n},m(i,l){t.m(e[22],i,l),F(i,n,l)},p(i,l){l[0]&4194304&&t.p(i[22])},d(i){i&&A(n),i&&t.d()}}}function un(e){let t;return{c(){t=Y("div"),t.innerHTML='',b(t,"class","spinner svelte-o7a0bj")},m(n,i){F(n,t,i)},d(n){n&&A(t)}}}function hn(e){let t,n,i,l;const s=[e[34]];function r(o){e[84](o)}var a=e[24];function f(o){let d={};for(let u=0;uS1(t,"hoverItemIndex",r)),t.$on("itemSelected",e[43]),t.$on("itemCreated",e[44]),t.$on("closeList",e[45])),{c(){t&&ae(t.$$.fragment),i=pe()},m(o,d){t&&ie(t,o,d),F(o,i,d),l=!0},p(o,d){const u=d[1]&8?c1(s,[Dn(o[34])]):{};if(!n&&d[0]&268435456&&(n=!0,u.hoverItemIndex=o[28],Bi(()=>n=!1)),a!==(a=o[24])){if(t){te();const h=t;G(h.$$.fragment,1,0,()=>{le(h,1)}),ne()}a?(t=new a(f(o)),ze.push(()=>S1(t,"hoverItemIndex",r)),t.$on("itemSelected",o[43]),t.$on("itemCreated",o[44]),t.$on("closeList",o[45]),ae(t.$$.fragment),E(t.$$.fragment,1),ie(t,i.parentNode,i)):t=null}else a&&t.$set(u)},i(o){l||(t&&E(t.$$.fragment,o),l=!0)},o(o){t&&G(t.$$.fragment,o),l=!1},d(o){o&&A(i),t&&le(t,o)}}}function dn(e){let t,n,i;return{c(){t=Y("input"),b(t,"name",n=e[16].name),b(t,"type","hidden"),t.value=i=e[2]?e[12](e[2]):null,b(t,"class","svelte-o7a0bj")},m(l,s){F(l,t,s)},p(l,s){s[0]&65536&&n!==(n=l[16].name)&&b(t,"name",n),s[0]&4100&&i!==(i=l[2]?l[12](l[2]):null)&&(t.value=i)},d(l){l&&A(t)}}}function mn(e){let t,n=e[2],i=[];for(let l=0;l{m=null}),ne()),_[35]?L?(L.p(_,k),k[1]&16&&E(L,1)):(L=fn(_),L.c(),E(L,1),L.m(t,s)):L&&(te(),G(L,1,1,()=>{L=null}),ne()),k1(r,P=c1(V,[(!M||k[0]&8192&&a!==(a=!_[13]))&&{readOnly:a},k[1]&1&&_[31],(!M||k[1]&32)&&{placeholder:_[36]},(!M||k[0]&16384)&&{style:_[14]},(!M||k[0]&512)&&{disabled:_[9]}])),k[0]&8&&r.value!==_[3]&&H1(r,_[3]),ge(r,"svelte-o7a0bj",!0),!_[7]&&_[29]?S?(S.p(_,k),k[0]&536871040&&E(S,1)):(S=an(_),S.c(),E(S,1),S.m(t,o)):S&&(te(),G(S,1,1,()=>{S=null}),ne()),_[37]?T?(T.p(_,k),k[1]&64&&E(T,1)):(T=on(_),T.c(),E(T,1),T.m(t,d)):T&&(te(),G(T,1,1,()=>{T=null}),ne()),!_[37]&&(_[20]||_[19]&&!_[2]||!_[13]&&!_[9]&&!_[4]&&(_[29]&&!_[15]||!_[29]))?p?p.p(_,k):(p=cn(_),p.c(),p.m(t,u)):p&&(p.d(1),p=null),_[4]?y||(y=un(),y.c(),y.m(t,h)):y&&(y.d(1),y=null),_[5]?O?(O.p(_,k),k[0]&32&&E(O,1)):(O=hn(_),O.c(),E(O,1),O.m(t,g)):O&&(te(),G(O,1,1,()=>{O=null}),ne()),!_[7]||_[7]&&!_[35]?j?j.p(_,k):(j=dn(_),j.c(),j.m(t,w)):j&&(j.d(1),j=null),_[7]&&_[35]?R?R.p(_,k):(R=mn(_),R.c(),R.m(t,null)):R&&(R.d(1),R=null),(!M||k[0]&2097152&&v!==(v="selectContainer "+_[21]+" svelte-o7a0bj"))&&b(t,"class",v),(!M||k[0]&2048)&&b(t,"style",_[11]),k[0]&2098176&&ge(t,"hasError",_[10]),k[0]&2097280&&ge(t,"multiSelect",_[7]),k[0]&2097664&&ge(t,"disabled",_[9]),k[0]&2097154&&ge(t,"focused",_[1])},i(_){M||(E(m),E(L),E(S),E(T),E(O),M=!0)},o(_){G(m),G(L),G(S),G(T),G(O),M=!1},d(_){_&&A(t),H&&H.d(),m&&m.d(),L&&L.d(),e[82](null),S&&S.d(),T&&T.d(),p&&p.d(),y&&y.d(),O&&O.d(),j&&j.d(),R&&R.d(),e[85](null),B=!1,Me(D)}}}function _n(e){return e.map((t,n)=>({index:n,value:t,label:`${t}`}))}function el(e,t,n){let i,l,s,r,a,f,o,d;const u=Et();let{id:h=null}=t,{container:g=void 0}=t,{input:w=void 0}=t,{isMulti:v=!1}=t,{multiFullItemClearable:M=!1}=t,{isDisabled:B=!1}=t,{isCreatable:D=!1}=t,{isFocused:H=!1}=t,{value:m=null}=t,{filterText:L=""}=t,{placeholder:V="Select..."}=t,{placeholderAlwaysShow:P=!1}=t,{items:S=null}=t,{itemFilter:T=(c,I,x)=>`${c}`.toLowerCase().includes(I.toLowerCase())}=t,{groupBy:p=void 0}=t,{groupFilter:y=c=>c}=t,{isGroupHeaderSelectable:O=!1}=t,{getGroupHeaderLabel:j=c=>c[R]||c.id}=t,{labelIdentifier:R="label"}=t,{getOptionLabel:_=(c,I)=>c.isCreator?`Create "${I}"`:c[R]}=t,{optionIdentifier:k="value"}=t,{loadOptions:ee=void 0}=t,{hasError:Q=!1}=t,{containerStyles:_e=""}=t,{getSelectionLabel:ke=c=>c?c[R]:null}=t,{createGroupHeaderItem:Ve=c=>({value:c,label:c})}=t,{createItem:re=c=>({value:c,label:c})}=t;const Be=()=>i;let{isSearchable:he=!0}=t,{inputStyles:je=""}=t,{isClearable:He=!0}=t,{isWaiting:de=!1}=t,{listPlacement:C="auto"}=t,{listOpen:N=!1}=t,{isVirtualList:se=!1}=t,{loadOptionsInterval:z=300}=t,{noOptionsMessage:ce="No options"}=t,{hideEmptyState:ue=!1}=t,{inputAttributes:fe={}}=t,{listAutoWidth:W=!0}=t,{itemHeight:Z=40}=t,{Icon:U=void 0}=t,{iconProps:be={}}=t,{showChevron:Ce=!1}=t,{showIndicator:we=!1}=t,{containerClasses:Pe=""}=t,{indicatorSvg:rt=void 0}=t,{listOffset:Ue=5}=t,{ClearIcon:m1=J2}=t,{Item:Ft=ti}=t,{List:g1=F2}=t,{Selection:_1=j2}=t,{MultiSelection:b1=G2}=t,{VirtualList:Dt=X2}=t;function ni(c){if(c.loadOptions&&c.filterText.length>0)return;if(!c.items)return[];c.items&&c.items.length>0&&typeof c.items[0]!="object"&&(c.items=_n(c.items));let I=c.items.filter(x=>{let me=T(_(x,c.filterText),c.filterText,x);return me&&c.isMulti&&c.value&&Array.isArray(c.value)&&(me=!c.value.some(Re=>Re[c.optionIdentifier]===x[c.optionIdentifier])),me});return c.groupBy&&(I=si(I)),c.isCreatable&&(I=C1(I,c.filterText)),I}function C1(c,I){if(I.length===0)return c;const x=re(I);return c[0]&&I===c[0][R]?c:(x.isCreator=!0,[...c,x])}let{selectedValue:Bt=null}=t,X,Je,jt,Pt,Rt,mt;const ii=K2(async()=>{n(4,de=!0);let c=await ee(L).catch(I=>{console.warn("svelte-select loadOptions error :>> ",I),u("error",{type:"loadOptions",details:I})});c&&!c.cancelled&&(c?(c&&c.length>0&&typeof c[0]!="object"&&(c=_n(c)),n(81,i=[...c]),u("loaded",{items:i})):n(81,i=[]),D&&n(81,i=C1(i,L)),n(4,de=!1),n(1,H=!0),n(5,N=!0))},z);function li(){typeof m=="string"?n(2,m={[k]:m,label:m}):v&&Array.isArray(m)&&m.length>0&&n(2,m=m.map(c=>typeof c=="string"?{value:c,label:c}:c))}let Ke;function ri(){n(31,Ke=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},fe)),h&&n(31,Ke.id=h,Ke),he||n(31,Ke.readonly=!0,Ke)}function si(c){const I=[],x={};c.forEach(Re=>{const Oe=p(Re);I.includes(Oe)||(I.push(Oe),x[Oe]=[],Oe&&x[Oe].push(Object.assign(Ve(Oe,Re),{id:Oe,isGroupHeader:!0,isSelectable:O}))),x[Oe].push(Object.assign({isGroupItem:!!Oe},Re))});const me=[];return y(I).forEach(Re=>{me.push(...x[Re])}),me}function fi(){if(v){JSON.stringify(m)!==JSON.stringify(Je)&&w1()&&u("select",m);return}(!Je||JSON.stringify(m[k])!==JSON.stringify(Je[k]))&&u("select",m)}function ai(){H||N?Gt():w&&w.blur()}function oi(){m&&(Array.isArray(m)?n(2,m=[...m]):n(2,m=[m]))}function ci(){m&&n(2,m=null)}function ui(){L.length!==0&&(n(1,H=!0),n(5,N=!0),ee?ii():(n(5,N=!0),v&&n(30,X=void 0)))}En(async()=>{n(77,Je=m),n(78,jt=L),n(79,Pt=H),n(80,Rt=v)});function w1(){let c=!0;if(m){const I=[],x=[];m.forEach(me=>{I.includes(me[k])?c=!1:(I.push(me[k]),x.push(me))}),c||n(2,m=x)}return c}function y1(c){let I=c?c[k]:m[k];return S.find(x=>x[k]===I)}function hi(c){!c||c.length===0||c.some(I=>typeof I!="object")||!m||(v?m.some(I=>!I||!I[k]):!m[k])||(Array.isArray(m)?n(2,m=m.map(I=>y1(I)||I)):n(2,m=y1()||m))}function v1(c){const{detail:I}=c,x=m[I?I.i:m.length-1];m.length===1?n(2,m=void 0):n(2,m=m.filter(me=>me!==x)),u("clear",x)}function di(c){if(!!H)switch(c.key){case"ArrowDown":c.preventDefault(),n(5,N=!0),n(30,X=void 0);break;case"ArrowUp":c.preventDefault(),n(5,N=!0),n(30,X=void 0);break;case"Tab":N||n(1,H=!1);break;case"Backspace":if(!v||L.length>0)return;if(v&&m&&m.length>0){if(v1(X!==void 0?X:m.length-1),X===0||X===void 0)break;n(30,X=m.length>X?X-1:void 0)}break;case"ArrowLeft":if(!v||L.length>0)return;X===void 0?n(30,X=m.length-1):m.length>X&&X!==0&&n(30,X-=1);break;case"ArrowRight":if(!v||L.length>0||X===void 0)return;X===m.length-1?n(30,X=void 0):X0?c.path[0]:c.target;g.contains(I)||g.contains(c.relatedTarget)||(n(1,H=!1),n(5,N=!1),n(30,X=void 0),w&&w.blur())}function gi(){B||(n(1,H=!0),n(5,N=!N))}function _i(){n(2,m=void 0),n(5,N=!1),u("clear",m),Gt()}o1(()=>{H&&w&&w.focus()});function bi(c){const{detail:I}=c;if(I){n(3,L="");const x=Object.assign({},I);(!x.isGroupHeader||x.isSelectable)&&(v?n(2,m=m?m.concat([x]):[x]):n(2,m=x),n(2,m),setTimeout(()=>{n(5,N=!1),n(30,X=void 0)}))}}function Ci(c){const{detail:I}=c;v?(n(2,m=m||[]),n(2,m=[...m,re(I)])):n(2,m=re(I)),u("itemCreated",I),n(3,L=""),n(5,N=!1),n(30,X=void 0)}function wi(){n(3,L=""),n(5,N=!1)}let{ariaValues:Wt=c=>`Option ${c}, selected.`}=t,{ariaListOpen:xt=(c,I)=>`You are currently focused on option ${c}. There are ${I} results available.`}=t,{ariaFocused:qt=()=>"Select is focused, type to refine list, press down to open the menu."}=t;function yi(){let c;return v&&m.length>0?c=m.map(I=>ke(I)).join(", "):c=ke(m),Wt(c)}function vi(){if(!H||!i||i.length===0)return"";let c=i[mt];if(N&&c){let I=ke(c),x=i?i.length:0;return xt(I,x)}else return qt()}function Mi(c){ze[c?"unshift":"push"](()=>{w=c,n(6,w)})}function pi(){L=this.value,n(3,L)}function ki(c){mt=c,n(28,mt)}function Hi(c){ze[c?"unshift":"push"](()=>{g=c,n(0,g)})}return e.$$set=c=>{"id"in c&&n(46,h=c.id),"container"in c&&n(0,g=c.container),"input"in c&&n(6,w=c.input),"isMulti"in c&&n(7,v=c.isMulti),"multiFullItemClearable"in c&&n(8,M=c.multiFullItemClearable),"isDisabled"in c&&n(9,B=c.isDisabled),"isCreatable"in c&&n(47,D=c.isCreatable),"isFocused"in c&&n(1,H=c.isFocused),"value"in c&&n(2,m=c.value),"filterText"in c&&n(3,L=c.filterText),"placeholder"in c&&n(48,V=c.placeholder),"placeholderAlwaysShow"in c&&n(49,P=c.placeholderAlwaysShow),"items"in c&&n(50,S=c.items),"itemFilter"in c&&n(51,T=c.itemFilter),"groupBy"in c&&n(52,p=c.groupBy),"groupFilter"in c&&n(53,y=c.groupFilter),"isGroupHeaderSelectable"in c&&n(54,O=c.isGroupHeaderSelectable),"getGroupHeaderLabel"in c&&n(55,j=c.getGroupHeaderLabel),"labelIdentifier"in c&&n(56,R=c.labelIdentifier),"getOptionLabel"in c&&n(57,_=c.getOptionLabel),"optionIdentifier"in c&&n(58,k=c.optionIdentifier),"loadOptions"in c&&n(59,ee=c.loadOptions),"hasError"in c&&n(10,Q=c.hasError),"containerStyles"in c&&n(11,_e=c.containerStyles),"getSelectionLabel"in c&&n(12,ke=c.getSelectionLabel),"createGroupHeaderItem"in c&&n(60,Ve=c.createGroupHeaderItem),"createItem"in c&&n(61,re=c.createItem),"isSearchable"in c&&n(13,he=c.isSearchable),"inputStyles"in c&&n(14,je=c.inputStyles),"isClearable"in c&&n(15,He=c.isClearable),"isWaiting"in c&&n(4,de=c.isWaiting),"listPlacement"in c&&n(63,C=c.listPlacement),"listOpen"in c&&n(5,N=c.listOpen),"isVirtualList"in c&&n(64,se=c.isVirtualList),"loadOptionsInterval"in c&&n(65,z=c.loadOptionsInterval),"noOptionsMessage"in c&&n(66,ce=c.noOptionsMessage),"hideEmptyState"in c&&n(67,ue=c.hideEmptyState),"inputAttributes"in c&&n(16,fe=c.inputAttributes),"listAutoWidth"in c&&n(68,W=c.listAutoWidth),"itemHeight"in c&&n(69,Z=c.itemHeight),"Icon"in c&&n(17,U=c.Icon),"iconProps"in c&&n(18,be=c.iconProps),"showChevron"in c&&n(19,Ce=c.showChevron),"showIndicator"in c&&n(20,we=c.showIndicator),"containerClasses"in c&&n(21,Pe=c.containerClasses),"indicatorSvg"in c&&n(22,rt=c.indicatorSvg),"listOffset"in c&&n(70,Ue=c.listOffset),"ClearIcon"in c&&n(23,m1=c.ClearIcon),"Item"in c&&n(71,Ft=c.Item),"List"in c&&n(24,g1=c.List),"Selection"in c&&n(25,_1=c.Selection),"MultiSelection"in c&&n(26,b1=c.MultiSelection),"VirtualList"in c&&n(72,Dt=c.VirtualList),"selectedValue"in c&&n(73,Bt=c.selectedValue),"ariaValues"in c&&n(74,Wt=c.ariaValues),"ariaListOpen"in c&&n(75,xt=c.ariaListOpen),"ariaFocused"in c&&n(76,qt=c.ariaFocused)},e.$$.update=()=>{e.$$.dirty[0]&140|e.$$.dirty[1]&405340160&&n(81,i=ni({loadOptions:ee,filterText:L,items:S,value:m,isMulti:v,optionIdentifier:k,groupBy:p,isCreatable:D})),e.$$.dirty[2]&2048&&Bt&&console.warn("selectedValue is no longer used. Please use value instead."),e.$$.dirty[1]&524288&&hi(S),e.$$.dirty[0]&4&&m&&li(),e.$$.dirty[0]&73728&&(fe||!he)&&ri(),e.$$.dirty[0]&128|e.$$.dirty[2]&262144&&(v&&oi(),Rt&&!v&&ci()),e.$$.dirty[0]&132&&v&&m&&m.length>1&&w1(),e.$$.dirty[0]&4&&m&&fi(),e.$$.dirty[0]&132|e.$$.dirty[2]&32768&&!m&&v&&Je&&u("select",m),e.$$.dirty[0]&2|e.$$.dirty[2]&131072&&H!==Pt&&ai(),e.$$.dirty[0]&8|e.$$.dirty[2]&65536&&L!==jt&&ui(),e.$$.dirty[0]&12&&n(29,l=m&&L.length===0),e.$$.dirty[0]&536904208&&n(37,s=l&&He&&!B&&!de),e.$$.dirty[0]&132|e.$$.dirty[1]&393216&&n(36,r=P&&v?V:m?"":V),e.$$.dirty[0]&132&&n(35,a=v&&m&&m.length>0),e.$$.dirty[0]&141|e.$$.dirty[1]&218103808|e.$$.dirty[2]&526326&&n(34,f={Item:Ft,filterText:L,optionIdentifier:k,noOptionsMessage:ce,hideEmptyState:ue,isVirtualList:se,VirtualList:Dt,value:m,isMulti:v,getGroupHeaderLabel:j,items:i,itemHeight:Z,getOptionLabel:_,listPlacement:C,parent:g,listAutoWidth:W,listOffset:Ue}),e.$$.dirty[0]&132&&n(33,o=m?yi():""),e.$$.dirty[0]&268435490|e.$$.dirty[2]&524288&&n(32,d=vi())},[g,H,m,L,de,N,w,v,M,B,Q,_e,ke,he,je,He,fe,U,be,Ce,we,Pe,rt,m1,g1,_1,b1,_i,mt,l,X,Ke,d,o,f,a,r,s,v1,di,Gt,mi,gi,bi,Ci,wi,h,D,V,P,S,T,p,y,O,j,R,_,k,ee,Ve,re,Be,C,se,z,ce,ue,W,Z,Ue,Ft,Dt,Bt,Wt,xt,qt,Je,jt,Pt,Rt,i,Mi,pi,ki,Hi]}class Xl extends Fe{constructor(t){super();Te(this,t,el,$2,Ne,{id:46,container:0,input:6,isMulti:7,multiFullItemClearable:8,isDisabled:9,isCreatable:47,isFocused:1,value:2,filterText:3,placeholder:48,placeholderAlwaysShow:49,items:50,itemFilter:51,groupBy:52,groupFilter:53,isGroupHeaderSelectable:54,getGroupHeaderLabel:55,labelIdentifier:56,getOptionLabel:57,optionIdentifier:58,loadOptions:59,hasError:10,containerStyles:11,getSelectionLabel:12,createGroupHeaderItem:60,createItem:61,getFilteredItems:62,isSearchable:13,inputStyles:14,isClearable:15,isWaiting:4,listPlacement:63,listOpen:5,isVirtualList:64,loadOptionsInterval:65,noOptionsMessage:66,hideEmptyState:67,inputAttributes:16,listAutoWidth:68,itemHeight:69,Icon:17,iconProps:18,showChevron:19,showIndicator:20,containerClasses:21,indicatorSvg:22,listOffset:70,ClearIcon:23,Item:71,List:24,Selection:25,MultiSelection:26,VirtualList:72,selectedValue:73,handleClear:27,ariaValues:74,ariaListOpen:75,ariaFocused:76},null,[-1,-1,-1,-1])}get getFilteredItems(){return this.$$.ctx[62]}get handleClear(){return this.$$.ctx[27]}}export{ne as $,jl as A,o1 as B,rl as C,Te as D,Ne as E,xl as F,Y as G,ae as H,oe as I,Se as J,b as K,Qe as L,F as M,q as N,ie as O,E as P,G as Q,A as R,Fe as S,le as T,nl as U,Wl as V,u2 as W,ze as X,qe as Y,kt as Z,te as _,Il as a,r1 as a0,pe as a1,nt as a2,c1 as a3,Dn as a4,ct as a5,fl as a6,Rl as a7,Wi as a8,a1 as a9,ql as aA,s1 as aB,Al as aC,dl as aD,wl as aE,al as aF,Gi as aa,J as ab,K as ac,sl as ad,Me as ae,S1 as af,Bi as ag,il as ah,Hn as ai,Ln as aj,kn as ak,Gl as al,ge as am,Mn as an,H1 as ao,Dl as ap,Yl as aq,Ol as ar,Xl as as,Tl as at,Bn as au,Pl as av,Oi as aw,Et as ax,vl as ay,ll as az,pl as b,El as c,hl as d,_l as e,Ml as f,tl as g,ul as h,Ll as i,ol as j,Nl as k,zl as l,Bl as m,yl as n,Sl as o,Fl as p,At as q,Cl as r,cl as s,ml as t,gl as u,bl as v,qi as w,kl as x,Hl as y,Vl as z}; + 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),b(t,"width","100%"),b(t,"height","100%"),b(t,"viewBox","0 0 20 20"),b(t,"focusable","false"),b(t,"aria-hidden","true"),b(t,"class","svelte-o7a0bj")},m(i,l){F(i,t,l),q(t,n)},p:K,d(i){i&&A(t)}}}function Z2(e){let t,n;return{c(){t=new Ei,n=pe(),t.a=n},m(i,l){t.m(e[22],i,l),F(i,n,l)},p(i,l){l[0]&4194304&&t.p(i[22])},d(i){i&&A(n),i&&t.d()}}}function un(e){let t;return{c(){t=Y("div"),t.innerHTML='',b(t,"class","spinner svelte-o7a0bj")},m(n,i){F(n,t,i)},d(n){n&&A(t)}}}function hn(e){let t,n,i,l;const s=[e[34]];function r(o){e[84](o)}var a=e[24];function f(o){let d={};for(let u=0;uS1(t,"hoverItemIndex",r)),t.$on("itemSelected",e[43]),t.$on("itemCreated",e[44]),t.$on("closeList",e[45])),{c(){t&&ae(t.$$.fragment),i=pe()},m(o,d){t&&ie(t,o,d),F(o,i,d),l=!0},p(o,d){const u=d[1]&8?c1(s,[Dn(o[34])]):{};if(!n&&d[0]&268435456&&(n=!0,u.hoverItemIndex=o[28],Bi(()=>n=!1)),a!==(a=o[24])){if(t){te();const h=t;G(h.$$.fragment,1,0,()=>{le(h,1)}),ne()}a?(t=new a(f(o)),ze.push(()=>S1(t,"hoverItemIndex",r)),t.$on("itemSelected",o[43]),t.$on("itemCreated",o[44]),t.$on("closeList",o[45]),ae(t.$$.fragment),E(t.$$.fragment,1),ie(t,i.parentNode,i)):t=null}else a&&t.$set(u)},i(o){l||(t&&E(t.$$.fragment,o),l=!0)},o(o){t&&G(t.$$.fragment,o),l=!1},d(o){o&&A(i),t&&le(t,o)}}}function dn(e){let t,n,i;return{c(){t=Y("input"),b(t,"name",n=e[16].name),b(t,"type","hidden"),t.value=i=e[2]?e[12](e[2]):null,b(t,"class","svelte-o7a0bj")},m(l,s){F(l,t,s)},p(l,s){s[0]&65536&&n!==(n=l[16].name)&&b(t,"name",n),s[0]&4100&&i!==(i=l[2]?l[12](l[2]):null)&&(t.value=i)},d(l){l&&A(t)}}}function mn(e){let t,n=e[2],i=[];for(let l=0;l{m=null}),ne()),_[35]?L?(L.p(_,k),k[1]&16&&E(L,1)):(L=fn(_),L.c(),E(L,1),L.m(t,s)):L&&(te(),G(L,1,1,()=>{L=null}),ne()),k1(r,P=c1(V,[(!M||k[0]&8192&&a!==(a=!_[13]))&&{readOnly:a},k[1]&1&&_[31],(!M||k[1]&32)&&{placeholder:_[36]},(!M||k[0]&16384)&&{style:_[14]},(!M||k[0]&512)&&{disabled:_[9]}])),k[0]&8&&r.value!==_[3]&&H1(r,_[3]),ge(r,"svelte-o7a0bj",!0),!_[7]&&_[29]?S?(S.p(_,k),k[0]&536871040&&E(S,1)):(S=an(_),S.c(),E(S,1),S.m(t,o)):S&&(te(),G(S,1,1,()=>{S=null}),ne()),_[37]?T?(T.p(_,k),k[1]&64&&E(T,1)):(T=on(_),T.c(),E(T,1),T.m(t,d)):T&&(te(),G(T,1,1,()=>{T=null}),ne()),!_[37]&&(_[20]||_[19]&&!_[2]||!_[13]&&!_[9]&&!_[4]&&(_[29]&&!_[15]||!_[29]))?p?p.p(_,k):(p=cn(_),p.c(),p.m(t,u)):p&&(p.d(1),p=null),_[4]?y||(y=un(),y.c(),y.m(t,h)):y&&(y.d(1),y=null),_[5]?O?(O.p(_,k),k[0]&32&&E(O,1)):(O=hn(_),O.c(),E(O,1),O.m(t,g)):O&&(te(),G(O,1,1,()=>{O=null}),ne()),!_[7]||_[7]&&!_[35]?j?j.p(_,k):(j=dn(_),j.c(),j.m(t,w)):j&&(j.d(1),j=null),_[7]&&_[35]?R?R.p(_,k):(R=mn(_),R.c(),R.m(t,null)):R&&(R.d(1),R=null),(!M||k[0]&2097152&&v!==(v="selectContainer "+_[21]+" svelte-o7a0bj"))&&b(t,"class",v),(!M||k[0]&2048)&&b(t,"style",_[11]),k[0]&2098176&&ge(t,"hasError",_[10]),k[0]&2097280&&ge(t,"multiSelect",_[7]),k[0]&2097664&&ge(t,"disabled",_[9]),k[0]&2097154&&ge(t,"focused",_[1])},i(_){M||(E(m),E(L),E(S),E(T),E(O),M=!0)},o(_){G(m),G(L),G(S),G(T),G(O),M=!1},d(_){_&&A(t),H&&H.d(),m&&m.d(),L&&L.d(),e[82](null),S&&S.d(),T&&T.d(),p&&p.d(),y&&y.d(),O&&O.d(),j&&j.d(),R&&R.d(),e[85](null),B=!1,Me(D)}}}function _n(e){return e.map((t,n)=>({index:n,value:t,label:`${t}`}))}function el(e,t,n){let i,l,s,r,a,f,o,d;const u=Et();let{id:h=null}=t,{container:g=void 0}=t,{input:w=void 0}=t,{isMulti:v=!1}=t,{multiFullItemClearable:M=!1}=t,{isDisabled:B=!1}=t,{isCreatable:D=!1}=t,{isFocused:H=!1}=t,{value:m=null}=t,{filterText:L=""}=t,{placeholder:V="Select..."}=t,{placeholderAlwaysShow:P=!1}=t,{items:S=null}=t,{itemFilter:T=(c,I,x)=>`${c}`.toLowerCase().includes(I.toLowerCase())}=t,{groupBy:p=void 0}=t,{groupFilter:y=c=>c}=t,{isGroupHeaderSelectable:O=!1}=t,{getGroupHeaderLabel:j=c=>c[R]||c.id}=t,{labelIdentifier:R="label"}=t,{getOptionLabel:_=(c,I)=>c.isCreator?`Create "${I}"`:c[R]}=t,{optionIdentifier:k="value"}=t,{loadOptions:ee=void 0}=t,{hasError:Q=!1}=t,{containerStyles:_e=""}=t,{getSelectionLabel:ke=c=>c?c[R]:null}=t,{createGroupHeaderItem:Ve=c=>({value:c,label:c})}=t,{createItem:re=c=>({value:c,label:c})}=t;const Be=()=>i;let{isSearchable:he=!0}=t,{inputStyles:je=""}=t,{isClearable:He=!0}=t,{isWaiting:de=!1}=t,{listPlacement:C="auto"}=t,{listOpen:N=!1}=t,{isVirtualList:se=!1}=t,{loadOptionsInterval:z=300}=t,{noOptionsMessage:ce="No options"}=t,{hideEmptyState:ue=!1}=t,{inputAttributes:fe={}}=t,{listAutoWidth:W=!0}=t,{itemHeight:Z=40}=t,{Icon:U=void 0}=t,{iconProps:be={}}=t,{showChevron:Ce=!1}=t,{showIndicator:we=!1}=t,{containerClasses:Pe=""}=t,{indicatorSvg:rt=void 0}=t,{listOffset:Ue=5}=t,{ClearIcon:m1=J2}=t,{Item:Ft=ti}=t,{List:g1=F2}=t,{Selection:_1=j2}=t,{MultiSelection:b1=G2}=t,{VirtualList:Dt=X2}=t;function ni(c){if(c.loadOptions&&c.filterText.length>0)return;if(!c.items)return[];c.items&&c.items.length>0&&typeof c.items[0]!="object"&&(c.items=_n(c.items));let I=c.items.filter(x=>{let me=T(_(x,c.filterText),c.filterText,x);return me&&c.isMulti&&c.value&&Array.isArray(c.value)&&(me=!c.value.some(Re=>Re[c.optionIdentifier]===x[c.optionIdentifier])),me});return c.groupBy&&(I=si(I)),c.isCreatable&&(I=C1(I,c.filterText)),I}function C1(c,I){if(I.length===0)return c;const x=re(I);return c[0]&&I===c[0][R]?c:(x.isCreator=!0,[...c,x])}let{selectedValue:Bt=null}=t,X,Je,jt,Pt,Rt,mt;const ii=K2(async()=>{n(4,de=!0);let c=await ee(L).catch(I=>{console.warn("svelte-select loadOptions error :>> ",I),u("error",{type:"loadOptions",details:I})});c&&!c.cancelled&&(c?(c&&c.length>0&&typeof c[0]!="object"&&(c=_n(c)),n(81,i=[...c]),u("loaded",{items:i})):n(81,i=[]),D&&n(81,i=C1(i,L)),n(4,de=!1),n(1,H=!0),n(5,N=!0))},z);function li(){typeof m=="string"?n(2,m={[k]:m,label:m}):v&&Array.isArray(m)&&m.length>0&&n(2,m=m.map(c=>typeof c=="string"?{value:c,label:c}:c))}let Ke;function ri(){n(31,Ke=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},fe)),h&&n(31,Ke.id=h,Ke),he||n(31,Ke.readonly=!0,Ke)}function si(c){const I=[],x={};c.forEach(Re=>{const Oe=p(Re);I.includes(Oe)||(I.push(Oe),x[Oe]=[],Oe&&x[Oe].push(Object.assign(Ve(Oe,Re),{id:Oe,isGroupHeader:!0,isSelectable:O}))),x[Oe].push(Object.assign({isGroupItem:!!Oe},Re))});const me=[];return y(I).forEach(Re=>{me.push(...x[Re])}),me}function fi(){if(v){JSON.stringify(m)!==JSON.stringify(Je)&&w1()&&u("select",m);return}(!Je||JSON.stringify(m[k])!==JSON.stringify(Je[k]))&&u("select",m)}function ai(){H||N?Gt():w&&w.blur()}function oi(){m&&(Array.isArray(m)?n(2,m=[...m]):n(2,m=[m]))}function ci(){m&&n(2,m=null)}function ui(){L.length!==0&&(n(1,H=!0),n(5,N=!0),ee?ii():(n(5,N=!0),v&&n(30,X=void 0)))}En(async()=>{n(77,Je=m),n(78,jt=L),n(79,Pt=H),n(80,Rt=v)});function w1(){let c=!0;if(m){const I=[],x=[];m.forEach(me=>{I.includes(me[k])?c=!1:(I.push(me[k]),x.push(me))}),c||n(2,m=x)}return c}function y1(c){let I=c?c[k]:m[k];return S.find(x=>x[k]===I)}function hi(c){!c||c.length===0||c.some(I=>typeof I!="object")||!m||(v?m.some(I=>!I||!I[k]):!m[k])||(Array.isArray(m)?n(2,m=m.map(I=>y1(I)||I)):n(2,m=y1()||m))}function v1(c){const{detail:I}=c,x=m[I?I.i:m.length-1];m.length===1?n(2,m=void 0):n(2,m=m.filter(me=>me!==x)),u("clear",x)}function di(c){if(!!H)switch(c.key){case"ArrowDown":c.preventDefault(),n(5,N=!0),n(30,X=void 0);break;case"ArrowUp":c.preventDefault(),n(5,N=!0),n(30,X=void 0);break;case"Tab":N||n(1,H=!1);break;case"Backspace":if(!v||L.length>0)return;if(v&&m&&m.length>0){if(v1(X!==void 0?X:m.length-1),X===0||X===void 0)break;n(30,X=m.length>X?X-1:void 0)}break;case"ArrowLeft":if(!v||L.length>0)return;X===void 0?n(30,X=m.length-1):m.length>X&&X!==0&&n(30,X-=1);break;case"ArrowRight":if(!v||L.length>0||X===void 0)return;X===m.length-1?n(30,X=void 0):X0?c.path[0]:c.target;g.contains(I)||g.contains(c.relatedTarget)||(n(1,H=!1),n(5,N=!1),n(30,X=void 0),w&&w.blur())}function gi(){B||(n(1,H=!0),n(5,N=!N))}function _i(){n(2,m=void 0),n(5,N=!1),u("clear",m),Gt()}o1(()=>{H&&w&&w.focus()});function bi(c){const{detail:I}=c;if(I){n(3,L="");const x=Object.assign({},I);(!x.isGroupHeader||x.isSelectable)&&(v?n(2,m=m?m.concat([x]):[x]):n(2,m=x),n(2,m),setTimeout(()=>{n(5,N=!1),n(30,X=void 0)}))}}function Ci(c){const{detail:I}=c;v?(n(2,m=m||[]),n(2,m=[...m,re(I)])):n(2,m=re(I)),u("itemCreated",I),n(3,L=""),n(5,N=!1),n(30,X=void 0)}function wi(){n(3,L=""),n(5,N=!1)}let{ariaValues:Wt=c=>`Option ${c}, selected.`}=t,{ariaListOpen:xt=(c,I)=>`You are currently focused on option ${c}. There are ${I} results available.`}=t,{ariaFocused:qt=()=>"Select is focused, type to refine list, press down to open the menu."}=t;function yi(){let c;return v&&m.length>0?c=m.map(I=>ke(I)).join(", "):c=ke(m),Wt(c)}function vi(){if(!H||!i||i.length===0)return"";let c=i[mt];if(N&&c){let I=ke(c),x=i?i.length:0;return xt(I,x)}else return qt()}function Mi(c){ze[c?"unshift":"push"](()=>{w=c,n(6,w)})}function pi(){L=this.value,n(3,L)}function ki(c){mt=c,n(28,mt)}function Hi(c){ze[c?"unshift":"push"](()=>{g=c,n(0,g)})}return e.$$set=c=>{"id"in c&&n(46,h=c.id),"container"in c&&n(0,g=c.container),"input"in c&&n(6,w=c.input),"isMulti"in c&&n(7,v=c.isMulti),"multiFullItemClearable"in c&&n(8,M=c.multiFullItemClearable),"isDisabled"in c&&n(9,B=c.isDisabled),"isCreatable"in c&&n(47,D=c.isCreatable),"isFocused"in c&&n(1,H=c.isFocused),"value"in c&&n(2,m=c.value),"filterText"in c&&n(3,L=c.filterText),"placeholder"in c&&n(48,V=c.placeholder),"placeholderAlwaysShow"in c&&n(49,P=c.placeholderAlwaysShow),"items"in c&&n(50,S=c.items),"itemFilter"in c&&n(51,T=c.itemFilter),"groupBy"in c&&n(52,p=c.groupBy),"groupFilter"in c&&n(53,y=c.groupFilter),"isGroupHeaderSelectable"in c&&n(54,O=c.isGroupHeaderSelectable),"getGroupHeaderLabel"in c&&n(55,j=c.getGroupHeaderLabel),"labelIdentifier"in c&&n(56,R=c.labelIdentifier),"getOptionLabel"in c&&n(57,_=c.getOptionLabel),"optionIdentifier"in c&&n(58,k=c.optionIdentifier),"loadOptions"in c&&n(59,ee=c.loadOptions),"hasError"in c&&n(10,Q=c.hasError),"containerStyles"in c&&n(11,_e=c.containerStyles),"getSelectionLabel"in c&&n(12,ke=c.getSelectionLabel),"createGroupHeaderItem"in c&&n(60,Ve=c.createGroupHeaderItem),"createItem"in c&&n(61,re=c.createItem),"isSearchable"in c&&n(13,he=c.isSearchable),"inputStyles"in c&&n(14,je=c.inputStyles),"isClearable"in c&&n(15,He=c.isClearable),"isWaiting"in c&&n(4,de=c.isWaiting),"listPlacement"in c&&n(63,C=c.listPlacement),"listOpen"in c&&n(5,N=c.listOpen),"isVirtualList"in c&&n(64,se=c.isVirtualList),"loadOptionsInterval"in c&&n(65,z=c.loadOptionsInterval),"noOptionsMessage"in c&&n(66,ce=c.noOptionsMessage),"hideEmptyState"in c&&n(67,ue=c.hideEmptyState),"inputAttributes"in c&&n(16,fe=c.inputAttributes),"listAutoWidth"in c&&n(68,W=c.listAutoWidth),"itemHeight"in c&&n(69,Z=c.itemHeight),"Icon"in c&&n(17,U=c.Icon),"iconProps"in c&&n(18,be=c.iconProps),"showChevron"in c&&n(19,Ce=c.showChevron),"showIndicator"in c&&n(20,we=c.showIndicator),"containerClasses"in c&&n(21,Pe=c.containerClasses),"indicatorSvg"in c&&n(22,rt=c.indicatorSvg),"listOffset"in c&&n(70,Ue=c.listOffset),"ClearIcon"in c&&n(23,m1=c.ClearIcon),"Item"in c&&n(71,Ft=c.Item),"List"in c&&n(24,g1=c.List),"Selection"in c&&n(25,_1=c.Selection),"MultiSelection"in c&&n(26,b1=c.MultiSelection),"VirtualList"in c&&n(72,Dt=c.VirtualList),"selectedValue"in c&&n(73,Bt=c.selectedValue),"ariaValues"in c&&n(74,Wt=c.ariaValues),"ariaListOpen"in c&&n(75,xt=c.ariaListOpen),"ariaFocused"in c&&n(76,qt=c.ariaFocused)},e.$$.update=()=>{e.$$.dirty[0]&140|e.$$.dirty[1]&405340160&&n(81,i=ni({loadOptions:ee,filterText:L,items:S,value:m,isMulti:v,optionIdentifier:k,groupBy:p,isCreatable:D})),e.$$.dirty[2]&2048&&Bt&&console.warn("selectedValue is no longer used. Please use value instead."),e.$$.dirty[1]&524288&&hi(S),e.$$.dirty[0]&4&&m&&li(),e.$$.dirty[0]&73728&&(fe||!he)&&ri(),e.$$.dirty[0]&128|e.$$.dirty[2]&262144&&(v&&oi(),Rt&&!v&&ci()),e.$$.dirty[0]&132&&v&&m&&m.length>1&&w1(),e.$$.dirty[0]&4&&m&&fi(),e.$$.dirty[0]&132|e.$$.dirty[2]&32768&&!m&&v&&Je&&u("select",m),e.$$.dirty[0]&2|e.$$.dirty[2]&131072&&H!==Pt&&ai(),e.$$.dirty[0]&8|e.$$.dirty[2]&65536&&L!==jt&&ui(),e.$$.dirty[0]&12&&n(29,l=m&&L.length===0),e.$$.dirty[0]&536904208&&n(37,s=l&&He&&!B&&!de),e.$$.dirty[0]&132|e.$$.dirty[1]&393216&&n(36,r=P&&v?V:m?"":V),e.$$.dirty[0]&132&&n(35,a=v&&m&&m.length>0),e.$$.dirty[0]&141|e.$$.dirty[1]&218103808|e.$$.dirty[2]&526326&&n(34,f={Item:Ft,filterText:L,optionIdentifier:k,noOptionsMessage:ce,hideEmptyState:ue,isVirtualList:se,VirtualList:Dt,value:m,isMulti:v,getGroupHeaderLabel:j,items:i,itemHeight:Z,getOptionLabel:_,listPlacement:C,parent:g,listAutoWidth:W,listOffset:Ue}),e.$$.dirty[0]&132&&n(33,o=m?yi():""),e.$$.dirty[0]&268435490|e.$$.dirty[2]&524288&&n(32,d=vi())},[g,H,m,L,de,N,w,v,M,B,Q,_e,ke,he,je,He,fe,U,be,Ce,we,Pe,rt,m1,g1,_1,b1,_i,mt,l,X,Ke,d,o,f,a,r,s,v1,di,Gt,mi,gi,bi,Ci,wi,h,D,V,P,S,T,p,y,O,j,R,_,k,ee,Ve,re,Be,C,se,z,ce,ue,W,Z,Ue,Ft,Dt,Bt,Wt,xt,qt,Je,jt,Pt,Rt,i,Mi,pi,ki,Hi]}class Xl extends Fe{constructor(t){super();Te(this,t,el,$2,Ne,{id:46,container:0,input:6,isMulti:7,multiFullItemClearable:8,isDisabled:9,isCreatable:47,isFocused:1,value:2,filterText:3,placeholder:48,placeholderAlwaysShow:49,items:50,itemFilter:51,groupBy:52,groupFilter:53,isGroupHeaderSelectable:54,getGroupHeaderLabel:55,labelIdentifier:56,getOptionLabel:57,optionIdentifier:58,loadOptions:59,hasError:10,containerStyles:11,getSelectionLabel:12,createGroupHeaderItem:60,createItem:61,getFilteredItems:62,isSearchable:13,inputStyles:14,isClearable:15,isWaiting:4,listPlacement:63,listOpen:5,isVirtualList:64,loadOptionsInterval:65,noOptionsMessage:66,hideEmptyState:67,inputAttributes:16,listAutoWidth:68,itemHeight:69,Icon:17,iconProps:18,showChevron:19,showIndicator:20,containerClasses:21,indicatorSvg:22,listOffset:70,ClearIcon:23,Item:71,List:24,Selection:25,MultiSelection:26,VirtualList:72,selectedValue:73,handleClear:27,ariaValues:74,ariaListOpen:75,ariaFocused:76},null,[-1,-1,-1,-1])}get getFilteredItems(){return this.$$.ctx[62]}get handleClear(){return this.$$.ctx[27]}}export{ne as $,jl as A,o1 as B,rl as C,Te as D,Ne as E,xl as F,Y as G,ae as H,oe as I,Se as J,b as K,Qe as L,F as M,q as N,ie as O,E as P,G as Q,A as R,Fe as S,le as T,Wl as U,u2 as V,nl as W,ze as X,qe as Y,kt as Z,te as _,Il as a,r1 as a0,pe as a1,nt as a2,c1 as a3,Dn as a4,ct as a5,fl as a6,Rl as a7,Wi as a8,a1 as a9,ql as aA,s1 as aB,Al as aC,dl as aD,wl as aE,al as aF,Gi as aa,J as ab,K as ac,sl as ad,Me as ae,S1 as af,Bi as ag,il as ah,Hn as ai,Ln as aj,kn as ak,Gl as al,ge as am,Mn as an,H1 as ao,Dl as ap,Yl as aq,Ol as ar,Xl as as,Tl as at,Bn as au,Pl as av,Oi as aw,Et as ax,vl as ay,ll as az,pl as b,El as c,hl as d,_l as e,Ml as f,tl as g,ul as h,Ll as i,ol as j,Nl as k,zl as l,Bl as m,yl as n,Sl as o,Fl as p,At as q,Cl as r,cl as s,ml as t,gl as u,bl as v,qi as w,kl as x,Hl as y,Vl as z}; diff --git a/svelte-source/package.json b/svelte-source/package.json index 6ed3a7c..5ac16f3 100644 --- a/svelte-source/package.json +++ b/svelte-source/package.json @@ -20,6 +20,7 @@ "typescript": "^4.6.2", "vite": "^2.8.6", "vite-plugin-compression": "^0.5.1", + "vite-plugin-static-copy": "^1.0.2", "vite-plugin-windicss": "^1.8.3", "windicss": "^3.5.1" }, diff --git a/svelte-source/src/components/menu.svelte b/svelte-source/src/components/menu.svelte index 4bef936..5bb9482 100644 --- a/svelte-source/src/components/menu.svelte +++ b/svelte-source/src/components/menu.svelte @@ -2,6 +2,7 @@ import { draggable } from '@neodrag/svelte'; import { faSliders, faCircleNotch } from '@fortawesome/free-solid-svg-icons' import Fa from 'svelte-fa' + import { i18n } from '../utils/i18n'; import MenuStore from '../stores/menuStore'; @@ -13,8 +14,8 @@ const screenHeight: number = screen.height; let tabArray: Array<{name: string, icon: any, content: any, adminOnly: boolean}> = [ - { name: "Hud Settings", icon: faSliders, content: HudPanel, adminOnly: false }, - { name: "Status Icons", icon: faCircleNotch, content: StatusIconsPanel, adminOnly: true }, + { name: $i18n.hudSettings, icon: faSliders, content: HudPanel, adminOnly: false }, + { name: $i18n.statusIcons, icon: faCircleNotch, content: StatusIconsPanel, adminOnly: true }, ]; let activeTab: {name: string, icon: any, content: any} = tabArray[0]; diff --git a/svelte-source/src/components/menu/globalLayoutPanel.svelte b/svelte-source/src/components/menu/globalLayoutPanel.svelte index 9cce371..e1ca9ea 100644 --- a/svelte-source/src/components/menu/globalLayoutPanel.svelte +++ b/svelte-source/src/components/menu/globalLayoutPanel.svelte @@ -5,31 +5,32 @@ import { faTableColumns } from '@fortawesome/free-solid-svg-icons'; import { iconLayouts } from '../../types/types'; import LayoutStore from '../../stores/layoutStore'; + import { i18n } from '../../utils/i18n'; export let group: string = ""; - +
-

Icon Layout

+

{$i18n.iconLayout}

{ singleIconName = shapeName; @@ -47,7 +48,7 @@
-

Icon Shape

+

{$i18n.iconShape}

@@ -168,57 +169,57 @@
-

Progress Color

+

{$i18n.progressColor}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "progressColor", hexColor)} />
-

Progress Contrast

+

{$i18n.progressContrast}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "progressContrast", contrastAmount)} />
-

Progress Shadow

+

{$i18n.progressShadow}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "progressDropShadowAmount", dropAmount)} />
- +
-

Icon Color

+

{$i18n.iconColor}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "iconColor", hexColor)} />
-

Icon Contrast

+

{$i18n.iconContrast}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "iconContrast", contrastAmount)} />
-

Icon Shadow

+

{$i18n.iconShadow}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "iconDropShadowAmount", dropAmount)} />
-

Outline Color

+

{$i18n.outlineColor}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "outlineColor", hexColor)} />
-

Outline Contrast

+

{$i18n.outlineContrast}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "outlineContrast", contrastAmount)} />
-

Outline Shadow

+

{$i18n.outlineShadow}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "outlineDropShadowAmount", dropAmount)} /> @@ -226,7 +227,7 @@ {#if $ColorEffectStore.icons[singleIconName].editableColors.innerColor}
-

Inner Color

+

{$i18n.innerColor}

ColorEffectStore.updateColorSetting(singleIconName, stageIndex, "innerColor", hexColor)} /> diff --git a/svelte-source/src/components/menu/statusIconsPanel.svelte b/svelte-source/src/components/menu/statusIconsPanel.svelte index a9bda36..62114cb 100644 --- a/svelte-source/src/components/menu/statusIconsPanel.svelte +++ b/svelte-source/src/components/menu/statusIconsPanel.svelte @@ -12,6 +12,7 @@ import SingleStatusIconPanel from './singleStatusIconPanel.svelte'; import GlobalStatusIconPanel from './globalStatusIconPanel.svelte'; import { absoluteMapDimensions } from '../../types/types'; + import { i18n } from '../../utils/i18n'; let group: string = ''; @@ -22,29 +23,29 @@
-

Status Icons Settings

+

{$i18n.statusIconsSettings}

-

Design Mode

+

{$i18n.designMode}

-
- +
diff --git a/svelte-source/src/components/menu/utilityFunctionPanel.svelte b/svelte-source/src/components/menu/utilityFunctionPanel.svelte index 9d5c7db..ef5b240 100644 --- a/svelte-source/src/components/menu/utilityFunctionPanel.svelte +++ b/svelte-source/src/components/menu/utilityFunctionPanel.svelte @@ -3,14 +3,15 @@ import Panel from '../atoms/panel.svelte'; import { faScrewdriverWrench } from '@fortawesome/free-solid-svg-icons'; import ColorEffectStore from '../../stores/colorEffectStore'; + import { i18n } from '../../utils/i18n'; export let group: string = ""; - +
-
diff --git a/svelte-source/src/locale/pt-br.json b/svelte-source/src/locale/pt-br.json new file mode 100644 index 0000000..17f89f2 --- /dev/null +++ b/svelte-source/src/locale/pt-br.json @@ -0,0 +1,95 @@ +{ + "hudSettings": "Configurações do HUD", + "statusIcons": "Ícones de Status", + "resetHud": "Resetar HUD", + "resetHudDescription": "Se seu HUD está com problemas, dê um velho reset! Ou pode usar o comando: /resethud", + "resetSettings": "Resetar Configurações", + "resettingHud": "Resetando HUD...", + "resetSettingsDescriptionLine1": "Se você quiser resetar suas confgurações para o padrão; clique neste botão luminoso!", + "resetSettingsDescriptionLine2": "(você terá que relogar para o menu resetar as configurações corretamente)", + "optionsMenu": "Opções", + "minimapVehicleCheckBoxPrimary": "Mostrar Minimapa Somente em Veículo", + "minimapVehicleCheckBoxSecondary": "Desativar isso vai deixar o minimapa na tela o tempo todo", + "compassVehicleCheckBoxPrimary": "Mostrar Bússola Somente em Veículo", + "compassVehicleCheckBoxSecondary": "Desativar isso vai deicar a bússola na tela o tempo todo", + "compassFollowCheckBoxPrimary": "Girar Bússola com a Câmera", + "compassFollowCheckBoxSecondary": "Desativar isso fará com que não seja mais possível rotacionar a bússola usando o mouse", + "notificationsMenu": "Notificações", + "menuSoundEffectsEnabled": "Ativar Efeitos sonoros do Menu", + "resetSoundEffectsEnabled": "Resetar Efeitos sonoros do HUD", + "guiSoundEffectsEnabled": "Ativar Efeitos sonoros da interface", + "mapNotificationsEnabled": "Ativar Notificações do Mapa", + "lowFuelNotificationsEnabled": "Ativar Aviso de Combustível Baixo", + "cinematicModeNotificationEnabled": "Notificações do Modo Cinematográfico", + "statusMenu": "Status", + "showHealthAlways": "Exibir Saúde Sempre", + "showArmorAlways": "Exibir Armadura Sempre", + "showHungerAlways": "Exibir Fome Sempre", + "showThirstAlways": "Exibir Sede Sempre", + "showStressAlways": "Exibir Estresse Sempre", + "showOxygenAlways": "Exibir Oxigênio Sempre", + "vehicleMenu": "Veículo", + "minimapTypeCircle": "Minimapa Circular", + "minimapTypeSquare": "Minimapa Quadrado", + "minimapTypeDescription": "Se é quadrado ou redondo que você deseja, você tem a opção de escolha!", + "minimapEnabled": "Ativar Minimapa", + "minimapBordersEnabled": "Ativar Bordas do Minimapa", + "showEngineAlways": "Exibir Motor Semrpe", + "showNitroAlways": "Exibir Nitro Semrpe", + "compassMenu": "Bússola", + "compassEnabled": "Ativar Bússola", + "compassEnabledDescription": "Desativar isso fará com que você não veja a navegação por bússola", + "showStreetNamesEnabled": "Ativar Nomes de Ruas", + "showStreetNamesDescription": "Desativar isso fará com que você não veja os nomes das ruas / locais", + "showCompassPointerEnabled": "Ativar Ponteiro da Bússola", + "showCompassPointerDescription": "Desativar isso fará com que você não veja o ponteiro da bússola para saber com exatidão sua direção", + "cinematicMenu": "Modo Cinematográfico", + "showCinematicBarsEnabled": "Exibir Barras do Modo Cinematográfico", + "statusIconsSettings": "Configurações dos Ícones de Status", + "designMode": "Modo de Design", + "resetStatusIconSettings": "Resetar Configurações de Ícones de Status", + "saveChangesToServer": "Salvar Configurações do Servidor", + "globalStatusIconsSettings": "Configurações Globais de Ícones de Status", + "iconShape": "Forma do Ícone", + "globalSizeAndPositionSection": "Seção de Tamanho e Posição Global", + "widthSize": "Largura", + "heightSize": "Altura", + "ringSize": "Tamanho do Anel", + "showProgressOutline": "Mostrar Borda Exterior de Progresso", + "xAxisPosition": "Posição Eixo X", + "yAxisPosition": "Posição Eixo Y", + "rotation": "Rotação", + "iconXAxisPosition": "Posição Eixo X Ícone", + "iconYAxisPosition": "Posição Eixo Y Ícone", + "iconSize": "Tamanho do Ícone", + "xAxisCurve": "Curva do Eixo X", + "yAxisCurve": "Curva do Eixo Y", + "globalColorSection": "Seção de Cores Globais", + "progressColor": "Cor do Progresso", + "progressContrast": "Contraste do Progresso", + "progressShadow": "Sombra do Progresso", + "iconColor": "Cor do Ícone", + "iconContrast": "Contraste do Ícone", + "iconShadow": "Sombra do Ícone", + "outlineColor": "Cor da Borda Exterior", + "outlineContrast": "Contraste da Borda Exterior", + "outlineShadow": "Sombre da Borda Exterior", + "innerColor": "Cor Interna", + "singleStatusIconSettings": "Configurações Unitárias do Ícone de Status", + "iconStatusToEdit": "Ícone de Status Para Editar", + "singleIconSizeAndPositionSection": "Seção Unitária de Tamanho e Posicionamento", + "singleIconColorSection": "Seção Unitária de Cor do Ícone", + "globalStatusIconLayoutSettings": "Configurações Globais de Leiaute de Ícones de Status", + "iconLayout": "Leiaute dos Ícones", + "iconState": "Estado do Ícone", + "betweenIconSpacing": "Espaçamento entre Ícones", + "yAxisSpacing": "Espaçamento do Eixo Y", + "xAxisSpacing": "Espaçamento do Eixo X", + "utilityFunctions": "Funções Utilitárias", + "copyProgressColorsToIconsColors": "Copiar Cores de Progress Para Cores dos Ícones", + "customizationProfiles": "Perfis Customizados", + "addNewProfile": "Novo Perfil", + "saveHudToProfile": "Salvar HUD no Perfil", + "applyProfileToHud": "Aplicar Perfil para HUD", + "deleteProfile": "Apagar Perfil" +} \ No newline at end of file diff --git a/svelte-source/src/utils/eventHandler.ts b/svelte-source/src/utils/eventHandler.ts index 41476e9..699f297 100644 --- a/svelte-source/src/utils/eventHandler.ts +++ b/svelte-source/src/utils/eventHandler.ts @@ -1,26 +1,28 @@ import { onMount, onDestroy } from "svelte"; -import { get } from 'svelte/store'; -import CompassHudStore from '../stores/compassHudStore'; -import MenuStore from '../stores/menuStore'; -import MoneyHudStore from '../stores/moneyHudStore'; -import PlayerHudStore from '../stores/playerStatusHudStore'; +import { get } from "svelte/store"; +import CompassHudStore from "../stores/compassHudStore"; +import MenuStore from "../stores/menuStore"; +import MoneyHudStore from "../stores/moneyHudStore"; +import PlayerHudStore from "../stores/playerStatusHudStore"; import ExternalStatusStore from "../stores/externalStatusStore"; -import LayoutStore from '../stores/layoutStore'; -import VehicleHudStore from '../stores/vehicleHudStore'; -import ColorEffectStore from '../stores/colorEffectStore'; -import ProfileStore from '../stores/profileStore'; -import { colorStoreLocalStorageName, - playerStoreLocalStorageName, - layoutStoreLocalStorageName, - profileLocalStorageName, -} from '../types/types'; +import LayoutStore from "../stores/layoutStore"; +import VehicleHudStore from "../stores/vehicleHudStore"; +import ColorEffectStore from "../stores/colorEffectStore"; +import ProfileStore from "../stores/profileStore"; +import { initI18n } from './i18n'; +import { + colorStoreLocalStorageName, + playerStoreLocalStorageName, + layoutStoreLocalStorageName, + profileLocalStorageName, +} from "../types/types"; interface nuiMessage { data: { - action: string, - topic?: string, - [key: string]: any, - }, + action: string; + topic?: string; + [key: string]: any; + }; } export function EventHandler() { @@ -46,7 +48,7 @@ export function EventHandler() { break; case "status": VehicleHudStore.receiveUpdateMessage(event.data as any); - break; + break; } break; case "externalstatus": @@ -55,7 +57,9 @@ export function EventHandler() { ExternalStatusStore.receiveBuffStatusMessage(event.data as any); break; case "enhancement": - ExternalStatusStore.receiveEnhancementStatusMessage(event.data as any); + ExternalStatusStore.receiveEnhancementStatusMessage( + event.data as any + ); break; } break; @@ -105,6 +109,9 @@ export function EventHandler() { LayoutStore.receiveUIUpdateMessage(event.data.layout); ColorEffectStore.receiveUIUpdateMessage(event.data.colors); break; + case "setLang": + initI18n(event.data.lang); + break; } } @@ -126,14 +133,15 @@ export async function fetchNui(eventName: string, data: unknown = {}) { try { const resp = await fetch(`https://${resourceName}/${eventName}`, options); return await resp.json(); - } catch(err) { - } + } catch (err) {} } function serializeIconData(iconData) { let result = {}; - for(const [key, value] of Object.entries(iconData)) { - let newObject = (({ icon, isShowing, name, progressValue, ...o }) => o)(value as any) + for (const [key, value] of Object.entries(iconData)) { + let newObject = (({ icon, isShowing, name, progressValue, ...o }) => o)( + value as any + ); result[key] = newObject; } return result; @@ -141,8 +149,10 @@ function serializeIconData(iconData) { function serializeColorData(colorData) { let result = {}; - for(const [key, value] of Object.entries(colorData)) { - let newObject = (({ currentEffect, editableColors, ...o }) => o)(value as any) + for (const [key, value] of Object.entries(colorData)) { + let newObject = (({ currentEffect, editableColors, ...o }) => o)( + value as any + ); result[key] = newObject; } return result; @@ -160,7 +170,7 @@ export function saveUIDataToServer() { colors: serializedColorData, }; - fetchNui('saveUISettings', sendData); + fetchNui("saveUISettings", sendData); } export async function saveUIDataToLocalStorage() { @@ -169,20 +179,27 @@ export async function saveUIDataToLocalStorage() { const layoutData = get(LayoutStore); const profileData = get(ProfileStore); - localStorage.setItem(colorStoreLocalStorageName, JSON.stringify( - { + localStorage.setItem( + colorStoreLocalStorageName, + JSON.stringify({ ...colorData.icons, - globalColorSettings: colorData.globalColorSettings - })); + globalColorSettings: colorData.globalColorSettings, + }) + ); - localStorage.setItem(playerStoreLocalStorageName, JSON.stringify( - { + localStorage.setItem( + playerStoreLocalStorageName, + JSON.stringify({ ...playerStatusIcondata.icons, globalIconSettings: playerStatusIcondata.globalIconSettings, dynamicIcons: playerStatusIcondata.dynamicIcons, - })); + }) + ); localStorage.setItem(layoutStoreLocalStorageName, JSON.stringify(layoutData)); - localStorage.setItem(profileLocalStorageName, JSON.stringify( {"profiles": profileData} )); -} \ No newline at end of file + localStorage.setItem( + profileLocalStorageName, + JSON.stringify({ profiles: profileData }) + ); +} diff --git a/svelte-source/src/utils/i18n.ts b/svelte-source/src/utils/i18n.ts new file mode 100644 index 0000000..759060a --- /dev/null +++ b/svelte-source/src/utils/i18n.ts @@ -0,0 +1,137 @@ +import { writable } from "svelte/store"; + +interface Translation { + hudSettings, statusIcons, resetHud, resetHudDescription, + resetSettings, resettingHud, resetSettingsDescriptionLine1, resetSettingsDescriptionLine2 + optionsMenu, minimapVehicleCheckBoxPrimary, minimapVehicleCheckBoxSecondary, compassVehicleCheckBoxPrimary + compassVehicleCheckBoxSecondary, compassFollowCheckBoxPrimary, compassFollowCheckBoxSecondary, notificationsMenu, + menuSoundEffectsEnabled, resetSoundEffectsEnabled, guiSoundEffectsEnabled, mapNotificationsEnabled, + lowFuelNotificationsEnabled, cinematicModeNotificationEnabled, statusMenu, showHealthAlways, + showArmorAlways, showHungerAlways, showThirstAlways, showStressAlways, + showOxygenAlways, vehicleMenu, minimapTypeCircle, minimapTypeSquare, + minimapTypeDescription, minimapEnabled, minimapBordersEnabled, showEngineAlways, + showNitroAlways, compassMenu, compassEnabled, compassEnabledDescription, + showStreetNamesEnabled, showStreetNamesDescription, showCompassPointerEnabled, showCompassPointerDescription, + cinematicMenu, showCinematicBarsEnabled, statusIconsSettings, designMode, + resetStatusIconSettings, saveChangesToServer, globalStatusIconsSettings, iconShape, + globalSizeAndPositionSection, widthSize, heightSize, ringSize, + showProgressOutline, xAxisPosition, yAxisPosition, rotation, + iconXAxisPosition, iconYAxisPosition, iconSize, xAxisCurve, + yAxisCurve, globalColorSection, progressColor, progressContrast, + progressShadow, iconColor, iconContrast, iconShadow, + outlineColor, outlineContrast, outlineShadow, innerColor, + singleStatusIconSettings, iconStatusToEdit, singleIconSizeAndPositionSection, singleIconColorSection, + iconState, globalStatusIconLayoutSettings, iconLayout, betweenIconSpacing, + yAxisSpacing, xAxisSpacing, utilityFunctions, copyProgressColorsToIconsColors, + customizationProfiles, addNewProfile, saveHudToProfile, applyProfileToHud, + deleteProfile: string; +} + +function loadTranslations(locale: string): Promise { + return fetch(`./${locale}.json`).then((response) => response.json()); +} + +export const i18n = writable({ + hudSettings: "HUD Settings", + statusIcons: "Status Icons", + resetHud: "Reset HUD", + resetSettings: "Reset Settings", + resettingHud: "Resetting Hud...", + resetHudDescription: "If your hud is acting up, give it a good ol' reset! Or you can do /resethud", + resetSettingsDescriptionLine1: "If you want to reset your settings back to default; click this shiny button!", + resetSettingsDescriptionLine2: "(you will have to relog for your menu to reset changes successfully)", + optionsMenu: "Options", + minimapVehicleCheckBoxPrimary: "Show Minimap Only in Vehicle", + minimapVehicleCheckBoxSecondary: "Disabling this will always keep your minimap on your screen", + compassVehicleCheckBoxPrimary: "Show Compass Only in Vehicle", + compassVehicleCheckBoxSecondary: "Disabling this will always keep your compass on your screen", + compassFollowCheckBoxPrimary: "Show Compass Follow Cam", + compassFollowCheckBoxSecondary: "Disabling this will make it so you can no longer use your mouse to rotate the compass around", + notificationsMenu: "Notifications", + menuSoundEffectsEnabled: "Menu Sound Effect Enabled", + resetSoundEffectsEnabled: "Reset Hud Sound Effects Enabled", + guiSoundEffectsEnabled: "GUI Sound Effects Enabled", + mapNotificationsEnabled: "Map Notifications Enabled", + lowFuelNotificationsEnabled: "Low Fuel Alert Enabled", + cinematicModeNotificationEnabled: "Cinematic Mode Notifications", + statusMenu: "Status", + showHealthAlways: "Show Health Always", + showArmorAlways: "Show Armor Always", + showHungerAlways: "Show Hunger Always", + showThirstAlways: "Show Thirst Always", + showStressAlways: "Show Stress Always", + showOxygenAlways: "Show Oxygen Always", + vehicleMenu: "Vehicle", + minimapTypeCircle: "Minimap Circle", + minimapTypeSquare: "Minimap Square", + minimapTypeDescription: "Whether it's square or circle you desire, you have the ability to choose!", + minimapEnabled: "Minimap Enabled", + minimapBordersEnabled: "Minimap Borders Enabled", + showEngineAlways: "Show Engine Always", + showNitroAlways: "Show Nitro Always", + compassMenu: "Compass", + compassEnabled: "Compass Enabled", + compassEnabledDescription: "Disabling this will make it so you can't see the compass navigation", + showStreetNamesEnabled: "Show Street Names Enabled", + showStreetNamesDescription: "Disabling this will make it so you can't see the street names / locations", + showCompassPointerEnabled: "Show Compass Pointer Enabled", + showCompassPointerDescription: "Disabling this will make it so you can't see your pointer index to pinpoint your exact cardinal directions", + cinematicMenu: "Cinematic Mode", + showCinematicBarsEnabled: "Show Cinematic Bars Enabled", + statusIconsSettings: "Status Icons Settings", + designMode: "Design Mode", + resetStatusIconSettings: "Reset Status Icon Settings", + saveChangesToServer: "Save Changes To Server", + globalStatusIconsSettings: "Global Status Icons Settings", + iconShape: "Icon Shape", + globalSizeAndPositionSection: "Global Size & Position Section", + widthSize: "Width Size", + heightSize: "Height Size", + ringSize: "Ring Size", + showProgressOutline: "Show Progress Outline", + xAxisPosition: "X-Axis Position", + yAxisPosition: "Y-Axis Position", + rotation: "Rotation", + iconXAxisPosition: "Icon X-Axis Position", + iconYAxisPosition: "Icon Y-Axis Position", + iconSize: "Icon Size", + xAxisCurve: "X-Axis Curve", + yAxisCurve: "Y-Axis Curve", + globalColorSection: "Global Color Section", + progressColor: "Progress Color", + progressContrast: "Progress Contrast", + progressShadow: "Progress Shadow", + iconColor: "Icon Color", + iconContrast: "Icon Contrast", + iconShadow: "Icon Shadow", + outlineColor: "Outline Color", + outlineContrast: "Outline Contrast", + outlineShadow: "Outline Shadow", + innerColor: "Inner Color", + singleStatusIconSettings: "Single Status Icon Settings", + iconStatusToEdit: "Icon Status To Edit", + singleIconSizeAndPositionSection: "Single Icon Size & Position Section", + singleIconColorSection: "Single Icon Color Section", + globalStatusIconLayoutSettings: "Global Status Icon Layout Settings", + iconLayout: "Icon Layout", + iconState: "Icon State", + betweenIconSpacing: "Between Icon Spacing", + yAxisSpacing: "Y-Axis Spacing", + xAxisSpacing: "X-Axis Spacing", + utilityFunctions: "Utility Functions", + copyProgressColorsToIconsColors: "Copy Progress Colors To Icon Colors", + customizationProfiles: "Customization Profiles", + addNewProfile: "Add New Profile", + saveHudToProfile: "Save HUD To Profile", + applyProfileToHud: "Apply Profile To HUD", + deleteProfile: "Delete Profile" +}); + +export async function initI18n(locale: string): Promise { + try { + const translations = await loadTranslations(locale); + i18n.set(translations); + } catch (error) { + console.error("Failed to load translations:", error); + } +} diff --git a/svelte-source/vite.config.ts b/svelte-source/vite.config.ts index 02d358f..7d44d2d 100644 --- a/svelte-source/vite.config.ts +++ b/svelte-source/vite.config.ts @@ -1,12 +1,13 @@ -import { defineConfig } from 'vite' -import { svelte } from '@sveltejs/vite-plugin-svelte' -import WindiCSS from 'vite-plugin-windicss' +import { defineConfig } from "vite"; +import { svelte } from "@sveltejs/vite-plugin-svelte"; +import WindiCSS from "vite-plugin-windicss"; import { minify } from "html-minifier"; -import viteCompression from 'vite-plugin-compression'; +import viteCompression from "vite-plugin-compression"; +import { viteStaticCopy } from 'vite-plugin-static-copy'; const minifyHtml = () => { return { - name: 'html-transform', + name: "html-transform", transformIndexHtml(html) { return minify(html, { collapseWhitespace: true, @@ -15,29 +16,36 @@ const minifyHtml = () => { }; }; - export default defineConfig(({ mode }) => { - const isProduction = mode === 'production'; + const isProduction = mode === "production"; return { - plugins: [WindiCSS(), svelte(), + plugins: [ + WindiCSS(), + svelte(), isProduction && minifyHtml(), // isProduction && viteCompression({algorithm: "brotliCompress", ext:".bz"}) + isProduction && + viteStaticCopy({ + targets: [ + { src: "./src/locale/*.json", dest: "../html" }, // Copy localization files to html folder + ], + }), ], - base: './', // fivem nui needs to have local dir reference, why god why + base: "./", // fivem nui needs to have local dir reference, why god why build: { minify: isProduction, emptyOutDir: true, - outDir: '../html', - assetsDir: './', + outDir: "../html", + assetsDir: "./", rollupOptions: { output: { // By not having hashes in the name, you don't have to update the manifest, yay! entryFileNames: `[name].js`, chunkFileNames: `[name].js`, - assetFileNames: `[name].[ext]` - } - } + assetFileNames: `[name].[ext]`, + }, + }, }, }; -}); \ No newline at end of file +});