2 lines
No EOL
259 KiB
JavaScript
2 lines
No EOL
259 KiB
JavaScript
(function(){var e={1037:function(e,o,t){"use strict";t.d(o,{b:function(){return r}});const l={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#eee","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},stackedInfoboxes:!1,floatingTabs:!0,showSingleTab:!1,mergeAdjacent:!0};var r;(function(e){e["Classic"]="classic",e["Paper"]="paper",e["Nordic"]="nordic",e["Aqua"]="aqua"})(r||(r={})),o["Z"]={classic:l,paper:{...l,variables:{...l.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},stackedInfoboxes:!0,floatingTabs:!1},nordic:{...l,variables:{...l.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},stackedInfoboxes:!0,floatingTabs:!1},aqua:{...l,variables:{...l.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}}},6113:function(e,o,t){"use strict";t.d(o,{wA:function(){return i},tj:function(){return a},QI:function(){return u},EE:function(){return m},tZ:function(){return c},Kf:function(){return f},Rh:function(){return d},bD:function(){return y}});var l=t(9706),r=t(9583),n=t(4865);const i=Symbol("Component"),a=Symbol("GatherProps");let s=0;function u(e="feature-"){return(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](s++):e+s++)()}var m;function c(e){return e[r.mM]=!0,e}function f(e,o=m.None){return e?m.Visible:o}function d(e,o,t){void 0===e[o]&&(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](void 0):void 0!=t)()&&(e[o]=t)}function y(e,o){const t=[],r=e=>{Object.keys(e).forEach((i=>{const a=e[i];a&&"object"===typeof a&&(a.type===o?t.push(a):(()=>a instanceof l.ZP!==void 0&&a instanceof l.ZP!==null&&(a instanceof l.ZP)[Symbol.for("!")]?(a instanceof l.ZP)[Symbol.for("!")]():!(a instanceof l.ZP))()&&(()=>void 0!==(0,n.isRef)(a)&&null!==(0,n.isRef)(a)&&(0,n.isRef)(a)[Symbol.for("!")]?(0,n.isRef)(a)[Symbol.for("!")]():!(0,n.isRef)(a))()&&r(a))}))};return r(e),t}(function(e){e[e["Visible"]=0]="Visible",e[e["Hidden"]=1]="Hidden",e[e["None"]=2]="None"})(m||(m={}))},630:function(e,o,t){"use strict";t.d(o,{Z:function(){return l},w:function(){return r}});const l=Symbol("RegisterLinkNode"),r=Symbol("UnregisterLinkNode")},7302:function(e,o,t){"use strict";t.r(o),t.d(o,{globalBus:function(){return u},startGameLoop:function(){return d}});var l=t(2345),r=t(9706),n=t(8111),i=t(5967),a=t(9266),s=t(3032);const u=(0,n.i)();let m=null,c=null;function f(){const e=Date.now();let o=(()=>e-i.Z.time!==void 0&&e-i.Z.time!==null&&(e-i.Z.time)[Symbol.for("/")]?(e-i.Z.time)[Symbol.for("/")](1e3):(e-i.Z.time)/1e3)();i.Z.time=e;const t=o;if(s.Z.lastTenTicks.push(t),(()=>void 0!==s.Z.lastTenTicks.length&&null!==s.Z.lastTenTicks.length&&s.Z.lastTenTicks.length[Symbol.for(">")]?s.Z.lastTenTicks.length[Symbol.for(">")](10):s.Z.lastTenTicks.length>10)()&&(s.Z.lastTenTicks=s.Z.lastTenTicks.slice(1)),(!c?.value||!(()=>void 0!==i.Z.keepGoing&&null!==i.Z.keepGoing&&i.Z.keepGoing[Symbol.for("!")]?i.Z.keepGoing[Symbol.for("!")]():!i.Z.keepGoing)())&&!s.Z.hasNaN&&(o=new r.ZP(o).max(0),0!==i.Z.devSpeed)){if((()=>void 0!==i.Z.offlineTime&&null!==i.Z.offlineTime&&i.Z.offlineTime[Symbol.for("!=")]?i.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=i.Z.offlineTime)()){if(r.ZP.gt(i.Z.offlineTime,(()=>void 0!==l.offlineLimit&&null!==l.offlineLimit&&l.offlineLimit[Symbol.for("*")]?l.offlineLimit[Symbol.for("*")](3600):3600*l.offlineLimit)())&&(i.Z.offlineTime=new r.ZP((()=>void 0!==l.offlineLimit&&null!==l.offlineLimit&&l.offlineLimit[Symbol.for("*")]?l.offlineLimit[Symbol.for("*")](3600):3600*l.offlineLimit)())),r.ZP.gt(i.Z.offlineTime,0)&&(()=>void 0!==i.Z.devSpeed&&null!==i.Z.devSpeed&&i.Z.devSpeed[Symbol.for("!==")]?i.Z.devSpeed[Symbol.for("!==")](0):0!==i.Z.devSpeed)()){const e=r.ZP.div(i.Z.offlineTime,10).max(o);i.Z.offlineTime=r.ZP.sub(i.Z.offlineTime,e),o=o.add(e)}else 0===i.Z.devSpeed&&(i.Z.offlineTime=r.ZP.add(i.Z.offlineTime,o));((()=>void 0!==i.Z.offlineProd&&null!==i.Z.offlineProd&&i.Z.offlineProd[Symbol.for("!")]?i.Z.offlineProd[Symbol.for("!")]():!i.Z.offlineProd)()||r.ZP.lt(i.Z.offlineTime,0))&&(i.Z.offlineTime=null)}o=r.ZP.min(o,l.maxTickLength),(()=>void 0!==i.Z.devSpeed&&null!==i.Z.devSpeed&&i.Z.devSpeed[Symbol.for("!=")]?i.Z.devSpeed[Symbol.for("!=")](void 0):void 0!=i.Z.devSpeed)()&&(o=o.times(i.Z.devSpeed)),o.eq(0)||(i.Z.timePlayed=r.ZP.add(i.Z.timePlayed,o),u.emit("update",o,t),a.ZP.unthrottled?(requestAnimationFrame(f),(()=>void 0!==m&&null!==m&&m[Symbol.for("!=")]?m[Symbol.for("!=")](null):null!=m)()&&(clearInterval(m),m=null)):(()=>void 0!==m&&null!==m&&m[Symbol.for("==")]?m[Symbol.for("==")](null):null==m)()&&(m=setInterval(f,50)))}}async function d(){c=(await Promise.resolve().then(t.bind(t,4064))).hasWon,a.ZP.unthrottled?requestAnimationFrame(f):m=setInterval(f,50)}},4061:function(e,o,t){"use strict";t.d(o,{n9:function(){return s},nY:function(){return u},ax:function(){return m},Mv:function(){return c}});var l=t(7302),r=t(9706),n=t(3273),i=t(3577),a=t(4865);const s=Symbol("PersistentState"),u=Symbol("DefaultValue");function m(e){const o=(0,a.isRef)(e)?e:(0,a.ref)(e);return o[s]=o,o[u]=(0,a.isRef)(e)?e.value:e,o}function c(e,o){const t=e,l=(0,a.ref)(o);t[s]=l,t[u]=(0,a.isRef)(o)?o.value:o}l.globalBus.on("addLayer",((e,o)=>{const t=[],l=(e,m=[])=>{let c=!1;return Object.keys(e).forEach((f=>{const d=e[f];if(d&&"object"===typeof d)if((()=>void 0!==s&&null!==s&&s[Symbol.for("in")]?s[Symbol.for("in")](d):s in d)()){c=!0;const e=m.reduce(((e,o)=>((()=>o in e!==void 0&&o in e!==null&&(o in e)[Symbol.for("!")]?(o in e)[Symbol.for("!")]():!(o in e))()&&(e[o]={}),e[o])),o),t=e[f];e[f]=d[s],(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](null):null!=t)()?e[f].value=t:e[f].value=d[u]}else if((()=>d instanceof r.ZP!==void 0&&d instanceof r.ZP!==null&&(d instanceof r.ZP)[Symbol.for("!")]?(d instanceof r.ZP)[Symbol.for("!")]():!(d instanceof r.ZP))()&&(()=>void 0!==(0,a.isRef)(d)&&null!==(0,a.isRef)(d)&&(0,a.isRef)(d)[Symbol.for("!")]?(0,a.isRef)(d)[Symbol.for("!")]():!(0,a.isRef)(d))()&&(()=>void 0!==t.includes(d)&&null!==t.includes(d)&&t.includes(d)[Symbol.for("!")]?t.includes(d)[Symbol.for("!")]():!t.includes(d))()){"symbol"===typeof d.type&&t.push(d);const o=l(d,[...m,f]);o&&((0,i.kJ)(d)&&(()=>void 0!==(0,i.kJ)(e)&&null!==(0,i.kJ)(e)&&(0,i.kJ)(e)[Symbol.for("!")]?(0,i.kJ)(e)[Symbol.for("!")]():!(0,i.kJ)(e))()?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",(()=>void 0!==n.Le&&null!==n.Le&&n.Le[Symbol.for("in")]?n.Le[Symbol.for("in")](e):n.Le in e)()?e[n.Le]:e,f):c=!0)}})),c};l(e)}))},5967:function(e,o,t){"use strict";t.d(o,{U:function(){return u}});var l=t(9706),r=t(1349),n=t(3273),i=t(4865),a=t(3032);const s=(0,i.reactive)({id:"",devSpeed:null,name:"",tabs:[],time:(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:new l.ZP(0),keepGoing:!1,modID:"",modVersion:"",layers:{}});function u(e){return JSON.stringify(e,((e,o)=>(0,i.unref)(o)))}const m={get(e,o){if(o===n.Le||o===n.c4)return e[o];const t=e[n.Le][o];if((()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")]("value"):"value"!==o)()&&(0,r.PO)(t)&&(()=>t instanceof l.ZP!==void 0&&t instanceof l.ZP!==null&&(t instanceof l.ZP)[Symbol.for("!")]?(t instanceof l.ZP)[Symbol.for("!")]():!(t instanceof l.ZP))()){if((()=>void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](e[o]?.[n.Le]):t!==e[o]?.[n.Le])()){const l=[...e[n.c4],o];e[o]=new Proxy({[n.Le]:t,[n.c4]:l},m)}return e[o]}return t},set(e,o,t,r){if((()=>void 0!==a.Z.hasNaN&&null!==a.Z.hasNaN&&a.Z.hasNaN[Symbol.for("!")]?a.Z.hasNaN[Symbol.for("!")]():!a.Z.hasNaN)()&&("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))){const t=e[n.Le][o];if((()=>void 0!==("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&null!==("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]?("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]():!("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag))))())throw s.autosave=!1,a.Z.hasNaN=!0,a.Z.NaNPath=[...e[n.c4],o],a.Z.NaNReceiver=r,console.error("Attempted to set NaN value",[...e[n.c4],o],e[n.Le]),"Attempted to set NaN value. See above for details"}return e[n.Le][o]=t,!0},ownKeys(e){return Reflect.ownKeys(e[n.Le])},has(e,o){return Reflect.has(e[n.Le],o)},getOwnPropertyDescriptor(e,o){return Object.getOwnPropertyDescriptor(e[n.Le],o)}};o["Z"]=window.player=new Proxy({[n.Le]:s,[n.c4]:["player"]},m)},9266:function(e,o,t){"use strict";t.d(o,{ri:function(){return u},V$:function(){return m},QV:function(){return c}});var l=t(2345),r=t(1037),n=t(7302),i=t(463),a=t(4865);const s=(0,a.reactive)({active:"",saves:[],showTPS:!0,theme:r.b.Nordic,unthrottled:!1});function u(){try{const e=localStorage.getItem(l.id);if((()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](""):""!==e)()){const o=JSON.parse(decodeURIComponent(escape(atob(e))));"object"===typeof o&&Object.assign(s,o)}n.globalBus.emit("loadSettings",s)}catch{}}(0,a.watch)(s,(e=>localStorage.setItem(l.id,btoa(unescape(encodeURIComponent(JSON.stringify(e)))))),{deep:!0}),o["ZP"]=window.settings=s;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:r.b.Nordic};n.globalBus.emit("loadSettings",e),Object.assign(s,e),(0,i.y6)()};const m=(0,a.reactive)([]);function c(e){m.push(e)}},3032:function(e,o,t){"use strict";var l=t(4865);o["Z"]=window.state=(0,l.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},1008:function(e,o,t){"use strict";t.d(o,{Z:function(){return _}});var l=t(2482);t(1703);let r,n,i,a,s,u,m,c,f,d,y;const b=17,h=9e15,p=Math.log10(9e15),v=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](9e15):1/9e15)(),S=308,g=(()=>324[Symbol.for("minus")]?324[Symbol.for("minus")]():-324)(),N=5,k=!0,V=!1,M=function(){const e=[];for(let t=(()=>void 0!==g&&null!==g&&g[Symbol.for("+")]?g[Symbol.for("+")](1):g+1)();(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](S):t<=S)();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("postfix-increment")]?t[Symbol.for("postfix-increment")]():t++)())e.push(Number((()=>"1e"[Symbol.for("+")]?"1e"[Symbol.for("+")](t):"1e"+t)()));const o=323;return function(t){return e[(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](o):t+o)()]}}(),x=[2,Math.E,3,4,5,6,7,8,9,10],w=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],C=[[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.9194161097107025[Symbol.for("minus")]?.9194161097107025[Symbol.for("minus")]():-.9194161097107025)(),(()=>.8335625019330468[Symbol.for("minus")]?.8335625019330468[Symbol.for("minus")]():-.8335625019330468)(),(()=>.7425599821143978[Symbol.for("minus")]?.7425599821143978[Symbol.for("minus")]():-.7425599821143978)(),(()=>.6466611521029437[Symbol.for("minus")]?.6466611521029437[Symbol.for("minus")]():-.6466611521029437)(),(()=>.5462617907227869[Symbol.for("minus")]?.5462617907227869[Symbol.for("minus")]():-.5462617907227869)(),(()=>.4419033816638769[Symbol.for("minus")]?.4419033816638769[Symbol.for("minus")]():-.4419033816638769)(),(()=>.3342645487554494[Symbol.for("minus")]?.3342645487554494[Symbol.for("minus")]():-.3342645487554494)(),(()=>.224140440909962[Symbol.for("minus")]?.224140440909962[Symbol.for("minus")]():-.224140440909962)(),(()=>.11241087890006762[Symbol.for("minus")]?.11241087890006762[Symbol.for("minus")]():-.11241087890006762)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.90603157029014[Symbol.for("minus")]?.90603157029014[Symbol.for("minus")]():-.90603157029014)(),(()=>.80786507256596[Symbol.for("minus")]?.80786507256596[Symbol.for("minus")]():-.80786507256596)(),(()=>.7064666939634[Symbol.for("minus")]?.7064666939634[Symbol.for("minus")]():-.7064666939634)(),(()=>.60294836853664[Symbol.for("minus")]?.60294836853664[Symbol.for("minus")]():-.60294836853664)(),(()=>.49849837513117[Symbol.for("minus")]?.49849837513117[Symbol.for("minus")]():-.49849837513117)(),(()=>.39430303318768[Symbol.for("minus")]?.39430303318768[Symbol.for("minus")]():-.39430303318768)(),(()=>.29147201034755[Symbol.for("minus")]?.29147201034755[Symbol.for("minus")]():-.29147201034755)(),(()=>.19097820800866[Symbol.for("minus")]?.19097820800866[Symbol.for("minus")]():-.19097820800866)(),(()=>.09361896280296[Symbol.for("minus")]?.09361896280296[Symbol.for("minus")]():-.09361896280296)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.9021579584316141[Symbol.for("minus")]?.9021579584316141[Symbol.for("minus")]():-.9021579584316141)(),(()=>.8005762598234203[Symbol.for("minus")]?.8005762598234203[Symbol.for("minus")]():-.8005762598234203)(),(()=>.6964780623319391[Symbol.for("minus")]?.6964780623319391[Symbol.for("minus")]():-.6964780623319391)(),(()=>.5911906810998454[Symbol.for("minus")]?.5911906810998454[Symbol.for("minus")]():-.5911906810998454)(),(()=>.486050182576545[Symbol.for("minus")]?.486050182576545[Symbol.for("minus")]():-.486050182576545)(),(()=>.3823089430815083[Symbol.for("minus")]?.3823089430815083[Symbol.for("minus")]():-.3823089430815083)(),(()=>.28106046722897615[Symbol.for("minus")]?.28106046722897615[Symbol.for("minus")]():-.28106046722897615)(),(()=>.1831906535795894[Symbol.for("minus")]?.1831906535795894[Symbol.for("minus")]():-.1831906535795894)(),(()=>.08935809204418144[Symbol.for("minus")]?.08935809204418144[Symbol.for("minus")]():-.08935809204418144)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8917227442365535[Symbol.for("minus")]?.8917227442365535[Symbol.for("minus")]():-.8917227442365535)(),(()=>.781258746326964[Symbol.for("minus")]?.781258746326964[Symbol.for("minus")]():-.781258746326964)(),(()=>.6705130326902455[Symbol.for("minus")]?.6705130326902455[Symbol.for("minus")]():-.6705130326902455)(),(()=>.5612813129406509[Symbol.for("minus")]?.5612813129406509[Symbol.for("minus")]():-.5612813129406509)(),(()=>.4551067709033134[Symbol.for("minus")]?.4551067709033134[Symbol.for("minus")]():-.4551067709033134)(),(()=>.35319256652135966[Symbol.for("minus")]?.35319256652135966[Symbol.for("minus")]():-.35319256652135966)(),(()=>.2563741554088552[Symbol.for("minus")]?.2563741554088552[Symbol.for("minus")]():-.2563741554088552)(),(()=>.1651412821106526[Symbol.for("minus")]?.1651412821106526[Symbol.for("minus")]():-.1651412821106526)(),(()=>.0796919581982668[Symbol.for("minus")]?.0796919581982668[Symbol.for("minus")]():-.0796919581982668)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8843387974366064[Symbol.for("minus")]?.8843387974366064[Symbol.for("minus")]():-.8843387974366064)(),(()=>.7678744063886243[Symbol.for("minus")]?.7678744063886243[Symbol.for("minus")]():-.7678744063886243)(),(()=>.6529563724510552[Symbol.for("minus")]?.6529563724510552[Symbol.for("minus")]():-.6529563724510552)(),(()=>.5415870994657841[Symbol.for("minus")]?.5415870994657841[Symbol.for("minus")]():-.5415870994657841)(),(()=>.4352842206588936[Symbol.for("minus")]?.4352842206588936[Symbol.for("minus")]():-.4352842206588936)(),(()=>.33504449124791424[Symbol.for("minus")]?.33504449124791424[Symbol.for("minus")]():-.33504449124791424)(),(()=>.24138853420685147[Symbol.for("minus")]?.24138853420685147[Symbol.for("minus")]():-.24138853420685147)(),(()=>.15445285440944467[Symbol.for("minus")]?.15445285440944467[Symbol.for("minus")]():-.15445285440944467)(),(()=>.07409659641336663[Symbol.for("minus")]?.07409659641336663[Symbol.for("minus")]():-.07409659641336663)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8786709358426346[Symbol.for("minus")]?.8786709358426346[Symbol.for("minus")]():-.8786709358426346)(),(()=>.7577735191184886[Symbol.for("minus")]?.7577735191184886[Symbol.for("minus")]():-.7577735191184886)(),(()=>.6399546189952064[Symbol.for("minus")]?.6399546189952064[Symbol.for("minus")]():-.6399546189952064)(),(()=>.527284921869926[Symbol.for("minus")]?.527284921869926[Symbol.for("minus")]():-.527284921869926)(),(()=>.4211627631006314[Symbol.for("minus")]?.4211627631006314[Symbol.for("minus")]():-.4211627631006314)(),(()=>.3223479611761232[Symbol.for("minus")]?.3223479611761232[Symbol.for("minus")]():-.3223479611761232)(),(()=>.23107655627789858[Symbol.for("minus")]?.23107655627789858[Symbol.for("minus")]():-.23107655627789858)(),(()=>.1472057700818259[Symbol.for("minus")]?.1472057700818259[Symbol.for("minus")]():-.1472057700818259)(),(()=>.07035171210706326[Symbol.for("minus")]?.07035171210706326[Symbol.for("minus")]():-.07035171210706326)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8740862815291583[Symbol.for("minus")]?.8740862815291583[Symbol.for("minus")]():-.8740862815291583)(),(()=>.7497032990976209[Symbol.for("minus")]?.7497032990976209[Symbol.for("minus")]():-.7497032990976209)(),(()=>.6297119746181752[Symbol.for("minus")]?.6297119746181752[Symbol.for("minus")]():-.6297119746181752)(),(()=>.5161838335958787[Symbol.for("minus")]?.5161838335958787[Symbol.for("minus")]():-.5161838335958787)(),(()=>.41036238255751956[Symbol.for("minus")]?.41036238255751956[Symbol.for("minus")]():-.41036238255751956)(),(()=>.31277212146489963[Symbol.for("minus")]?.31277212146489963[Symbol.for("minus")]():-.31277212146489963)(),(()=>.2233976621705518[Symbol.for("minus")]?.2233976621705518[Symbol.for("minus")]():-.2233976621705518)(),(()=>.1418697367979619[Symbol.for("minus")]?.1418697367979619[Symbol.for("minus")]():-.1418697367979619)(),(()=>.06762117662323441[Symbol.for("minus")]?.06762117662323441[Symbol.for("minus")]():-.06762117662323441)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8702632331800649[Symbol.for("minus")]?.8702632331800649[Symbol.for("minus")]():-.8702632331800649)(),(()=>.7430366914122081[Symbol.for("minus")]?.7430366914122081[Symbol.for("minus")]():-.7430366914122081)(),(()=>.6213373075161548[Symbol.for("minus")]?.6213373075161548[Symbol.for("minus")]():-.6213373075161548)(),(()=>.5072025698095242[Symbol.for("minus")]?.5072025698095242[Symbol.for("minus")]():-.5072025698095242)(),(()=>.40171437727184167[Symbol.for("minus")]?.40171437727184167[Symbol.for("minus")]():-.40171437727184167)(),(()=>.30517930701410456[Symbol.for("minus")]?.30517930701410456[Symbol.for("minus")]():-.30517930701410456)(),(()=>.21736343968190863[Symbol.for("minus")]?.21736343968190863[Symbol.for("minus")]():-.21736343968190863)(),(()=>.137710238299109[Symbol.for("minus")]?.137710238299109[Symbol.for("minus")]():-.137710238299109)(),(()=>.06550774483471955[Symbol.for("minus")]?.06550774483471955[Symbol.for("minus")]():-.06550774483471955)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8670016295947213[Symbol.for("minus")]?.8670016295947213[Symbol.for("minus")]():-.8670016295947213)(),(()=>.7373984232432306[Symbol.for("minus")]?.7373984232432306[Symbol.for("minus")]():-.7373984232432306)(),(()=>.6143173985094293[Symbol.for("minus")]?.6143173985094293[Symbol.for("minus")]():-.6143173985094293)(),(()=>.49973884395492807[Symbol.for("minus")]?.49973884395492807[Symbol.for("minus")]():-.49973884395492807)(),(()=>.394584953527678[Symbol.for("minus")]?.394584953527678[Symbol.for("minus")]():-.394584953527678)(),(()=>.2989649949848695[Symbol.for("minus")]?.2989649949848695[Symbol.for("minus")]():-.2989649949848695)(),(()=>.21245647317021688[Symbol.for("minus")]?.21245647317021688[Symbol.for("minus")]():-.21245647317021688)(),(()=>.13434688362382652[Symbol.for("minus")]?.13434688362382652[Symbol.for("minus")]():-.13434688362382652)(),(()=>.0638072667348083[Symbol.for("minus")]?.0638072667348083[Symbol.for("minus")]():-.0638072667348083)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8641642839543857[Symbol.for("minus")]?.8641642839543857[Symbol.for("minus")]():-.8641642839543857)(),(()=>.732534623168535[Symbol.for("minus")]?.732534623168535[Symbol.for("minus")]():-.732534623168535)(),(()=>.6083127477059322[Symbol.for("minus")]?.6083127477059322[Symbol.for("minus")]():-.6083127477059322)(),(()=>.4934049257184696[Symbol.for("minus")]?.4934049257184696[Symbol.for("minus")]():-.4934049257184696)(),(()=>.3885773075899922[Symbol.for("minus")]?.3885773075899922[Symbol.for("minus")]():-.3885773075899922)(),(()=>.29376029055315767[Symbol.for("minus")]?.29376029055315767[Symbol.for("minus")]():-.29376029055315767)(),(()=>.2083678561173622[Symbol.for("minus")]?.2083678561173622[Symbol.for("minus")]():-.2083678561173622)(),(()=>.13155653399373268[Symbol.for("minus")]?.13155653399373268[Symbol.for("minus")]():-.13155653399373268)(),(()=>.062401588652553186[Symbol.for("minus")]?.062401588652553186[Symbol.for("minus")]():-.062401588652553186)(),0]],Z=function(e){return _.fromValue_noAlloc(e)},B=function(e,o,t){return _.fromComponents(e,o,t)},E=function(e,o,t){return _.fromComponents_noNormalize(e,o,t)},P=function(e,o){const t=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)(),l=Math.ceil(Math.log10(Math.abs(e))),r=(()=>void 0!==Math.round(e*Math.pow(10,t-l))&&null!==Math.round(e*Math.pow(10,t-l))&&Math.round(e*Math.pow(10,t-l))[Symbol.for("*")]?Math.round(e*Math.pow(10,t-l))[Symbol.for("*")](Math.pow(10,l-t)):Math.round(e*Math.pow(10,t-l))*Math.pow(10,l-t))();return parseFloat(r.toFixed(Math.max((()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](l):t-l)(),0)))},I=function(e){return(()=>void 0!==Math.sign(e)&&null!==Math.sign(e)&&Math.sign(e)[Symbol.for("*")]?Math.sign(e)[Symbol.for("*")](Math.log10(Math.abs(e))):Math.sign(e)*Math.log10(Math.abs(e)))()},T=function(e){if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))())return e;if((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](-50):e<-50)())return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let o=1;while((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10)())o=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](e):o*e)(),(()=>{void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e})();e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)();let t=.9189385332046727;t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")]((e+.5)*Math.log(e)):t+(e+.5)*Math.log(e))(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();const l=(()=>void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e)();let r=e;return t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(12*r)):t+1/(12*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(360*r)):t+1/(360*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1260*r)):t+1/(1260*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1680*r)):t+1/(1680*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1188*r)):t+1/(1188*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](691/(360360*r)):t+691/(360360*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](7/(1092*r)):t+7/(1092*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](3617/(122400*r)):t+3617/(122400*r))(),(()=>void 0!==Math.exp(t)&&null!==Math.exp(t)&&Math.exp(t)[Symbol.for("/")]?Math.exp(t)[Symbol.for("/")](o):Math.exp(t)/o)()},F=.5671432904097838,D=function(e,o=1e-10){let t,l;if((()=>void 0!==Number.isFinite(e)&&null!==Number.isFinite(e)&&Number.isFinite(e)[Symbol.for("!")]?Number.isFinite(e)[Symbol.for("!")]():!Number.isFinite(e))())return e;if(0===e)return e;if(1===e)return F;t=(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10)()?0:(()=>void 0!==Math.log(e)&&null!==Math.log(e)&&Math.log(e)[Symbol.for("-")]?Math.log(e)[Symbol.for("-")](Math.log(Math.log(e))):Math.log(e)-Math.log(Math.log(e)))();for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](100):r<100)();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(l=(()=>e*Math.exp(-t)+t*t!==void 0&&e*Math.exp(-t)+t*t!==null&&(e*Math.exp(-t)+t*t)[Symbol.for("/")]?(e*Math.exp(-t)+t*t)[Symbol.for("/")](t+1):(e*Math.exp(-t)+t*t)/(t+1))(),(()=>void 0!==Math.abs(l-t)&&null!==Math.abs(l-t)&&Math.abs(l-t)[Symbol.for("<")]?Math.abs(l-t)[Symbol.for("<")](o*Math.abs(l)):Math.abs(l-t)<o*Math.abs(l))())return l;t=l}throw Error(`Iteration failed to converge: ${e.toString()}`)};function O(e,o=1e-10){let t,l,r,n;if((()=>void 0!==Number.isFinite(e.mag)&&null!==Number.isFinite(e.mag)&&Number.isFinite(e.mag)[Symbol.for("!")]?Number.isFinite(e.mag)[Symbol.for("!")]():!Number.isFinite(e.mag))())return e;if(e===_.dZero)return e;if(e===_.dOne)return Z(F);_.abs(e);t=_.ln(e);for(let i=0;(()=>void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](100):i<100)();(()=>void 0!==i&&null!==i&&"object"===typeof i&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i)()){if(l=_.exp((()=>void 0!==t&&null!==t&&t[Symbol.for("minus")]?t[Symbol.for("minus")]():-t)()),r=t.sub(e.mul(l)),n=t.sub(r.div(t.add(1).sub(t.add(2).mul(r).div(_.mul(2,t).add(2))))),_.abs(n.sub(t)).lt(_.abs(n).mul(o)))return n;t=n}throw Error(`Iteration failed to converge: ${e.toString()}`)}r=Symbol.for("+"),n=Symbol.for("-"),i=Symbol.for("*"),a=Symbol.for("/"),s=Symbol.for("minus"),u=Symbol.for("=="),m=Symbol.for(">"),c=Symbol.for("<"),f=Symbol.for(">="),d=Symbol.for("<="),y=Symbol.for("!=");class _{constructor(e){(0,l.Z)(this,"sign",Number.NaN),(0,l.Z)(this,"mag",Number.NaN),(0,l.Z)(this,"layer",Number.NaN),e instanceof _||(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&"object"===typeof e&&(()=>"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e)()&&(()=>"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e)()&&(()=>"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](e):"layer"in e)()?this.fromDecimal(e):"number"===typeof e?this.fromNumber(e):"string"===typeof e?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0)}get m(){if(0===this.sign)return 0;if(0===this.layer){const e=Math.floor(Math.log10(this.mag));let o;return o=5e-324===this.mag?5:(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("/")]?this.mag[Symbol.for("/")](M(e)):this.mag/M(e))(),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](o):this.sign*o)()}if(1===this.layer){const e=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("-")]?this.mag[Symbol.for("-")](Math.floor(this.mag)):this.mag-Math.floor(this.mag))();return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.pow(10,e)):this.sign*Math.pow(10,e))()}return this.sign}set m(e){(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](2):this.layer<=2)()?this.fromMantissaExponent(e,this.e):(this.sign=Math.sign(e),0===this.sign&&(this.layer,this.exponent))}get e(){return 0===this.sign?0:0===this.layer?Math.floor(Math.log10(this.mag)):1===this.layer?Math.floor(this.mag):2===this.layer?Math.floor((()=>void 0!==Math.sign(this.mag)&&null!==Math.sign(this.mag)&&Math.sign(this.mag)[Symbol.for("*")]?Math.sign(this.mag)[Symbol.for("*")](Math.pow(10,Math.abs(this.mag))):Math.sign(this.mag)*Math.pow(10,Math.abs(this.mag)))()):(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("*")]?this.mag[Symbol.for("*")](Number.POSITIVE_INFINITY):this.mag*Number.POSITIVE_INFINITY)()}set e(e){this.fromMantissaExponent(this.m,e)}get s(){return this.sign}set s(e){0===e?(this.sign=0,this.layer=0,this.mag=0):this.sign=e}get mantissa(){return this.m}set mantissa(e){this.m=e}get exponent(){return this.e}set exponent(e){this.e=e}static fromComponents(e,o,t){return(new _).fromComponents(e,o,t)}static fromComponents_noNormalize(e,o,t){return(new _).fromComponents_noNormalize(e,o,t)}static fromMantissaExponent(e,o){return(new _).fromMantissaExponent(e,o)}static fromMantissaExponent_noNormalize(e,o){return(new _).fromMantissaExponent_noNormalize(e,o)}static fromDecimal(e){return(new _).fromDecimal(e)}static fromNumber(e){return(new _).fromNumber(e)}static fromString(e){return(new _).fromString(e)}static fromValue(e){return(new _).fromValue(e)}static fromValue_noAlloc(e){return e instanceof _?e:new _(e)}static abs(e){return Z(e).abs()}static neg(e){return Z(e).neg()}static negate(e){return Z(e).neg()}static negated(e){return Z(e).neg()}static sign(e){return Z(e).sign}static sgn(e){return Z(e).sign}static round(e){return Z(e).round()}static floor(e){return Z(e).floor()}static ceil(e){return Z(e).ceil()}static trunc(e){return Z(e).trunc()}static add(e,o){return Z(e).add(o)}static plus(e,o){return Z(e).add(o)}static sub(e,o){return Z(e).sub(o)}static subtract(e,o){return Z(e).sub(o)}static minus(e,o){return Z(e).sub(o)}static mul(e,o){return Z(e).mul(o)}static multiply(e,o){return Z(e).mul(o)}static times(e,o){return Z(e).mul(o)}static div(e,o){return Z(e).div(o)}static divide(e,o){return Z(e).div(o)}static recip(e){return Z(e).recip()}static reciprocal(e){return Z(e).recip()}static reciprocate(e){return Z(e).reciprocate()}static cmp(e,o){return Z(e).cmp(o)}static cmpabs(e,o){return Z(e).cmpabs(o)}static compare(e,o){return Z(e).cmp(o)}static isNaN(e){return e=Z(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag)}static isFinite(e){return e=Z(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}static eq(e,o){return Z(e).eq(o)}static equals(e,o){return Z(e).eq(o)}static neq(e,o){return Z(e).neq(o)}static notEquals(e,o){return Z(e).notEquals(o)}static lt(e,o){return Z(e).lt(o)}static lte(e,o){return Z(e).lte(o)}static gt(e,o){return Z(e).gt(o)}static gte(e,o){return Z(e).gte(o)}static max(e,o){return Z(e).max(o)}static min(e,o){return Z(e).min(o)}static minabs(e,o){return Z(e).minabs(o)}static maxabs(e,o){return Z(e).maxabs(o)}static clamp(e,o,t){return Z(e).clamp(o,t)}static clampMin(e,o){return Z(e).clampMin(o)}static clampMax(e,o){return Z(e).clampMax(o)}static cmp_tolerance(e,o,t){return Z(e).cmp_tolerance(o,t)}static compare_tolerance(e,o,t){return Z(e).cmp_tolerance(o,t)}static eq_tolerance(e,o,t){return Z(e).eq_tolerance(o,t)}static equals_tolerance(e,o,t){return Z(e).eq_tolerance(o,t)}static neq_tolerance(e,o,t){return Z(e).neq_tolerance(o,t)}static notEquals_tolerance(e,o,t){return Z(e).notEquals_tolerance(o,t)}static lt_tolerance(e,o,t){return Z(e).lt_tolerance(o,t)}static lte_tolerance(e,o,t){return Z(e).lte_tolerance(o,t)}static gt_tolerance(e,o,t){return Z(e).gt_tolerance(o,t)}static gte_tolerance(e,o,t){return Z(e).gte_tolerance(o,t)}static pLog10(e){return Z(e).pLog10()}static absLog10(e){return Z(e).absLog10()}static log10(e){return Z(e).log10()}static log(e,o){return Z(e).log(o)}static log2(e){return Z(e).log2()}static ln(e){return Z(e).ln()}static logarithm(e,o){return Z(e).logarithm(o)}static pow(e,o){return Z(e).pow(o)}static pow10(e){return Z(e).pow10()}static root(e,o){return Z(e).root(o)}static factorial(e,o){return Z(e).factorial()}static gamma(e,o){return Z(e).gamma()}static lngamma(e,o){return Z(e).lngamma()}static exp(e){return Z(e).exp()}static sqr(e){return Z(e).sqr()}static sqrt(e){return Z(e).sqrt()}static cube(e){return Z(e).cube()}static cbrt(e){return Z(e).cbrt()}static tetrate(e,o=2,t=E(1,0,1)){return Z(e).tetrate(o,t)}static iteratedexp(e,o=2,t=E(1,0,1)){return Z(e).iteratedexp(o,t)}static iteratedlog(e,o=10,t=1){return Z(e).iteratedlog(o,t)}static layeradd10(e,o){return Z(e).layeradd10(o)}static layeradd(e,o,t=10){return Z(e).layeradd(o,t)}static slog(e,o=10){return Z(e).slog(o)}static lambertw(e){return Z(e).lambertw()}static ssqrt(e){return Z(e).ssqrt()}static pentate(e,o=2,t=E(1,0,1)){return Z(e).pentate(o,t)}static affordGeometricSeries(e,o,t,l){return this.affordGeometricSeries_core(Z(e),Z(o),Z(t),l)}static sumGeometricSeries(e,o,t,l){return this.sumGeometricSeries_core(e,Z(o),Z(t),l)}static affordArithmeticSeries(e,o,t,l){return this.affordArithmeticSeries_core(Z(e),Z(o),Z(t),Z(l))}static sumArithmeticSeries(e,o,t,l){return this.sumArithmeticSeries_core(Z(e),Z(o),Z(t),Z(l))}static efficiencyOfPurchase(e,o,t){return this.efficiencyOfPurchase_core(Z(e),Z(o),Z(t))}static randomDecimalForTesting(e){if((()=>20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1)())return E(0,0,0);const o=(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.5):Math.random()>.5)()?1:(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)();if((()=>20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1)())return E(o,0,1);const t=Math.floor((()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](e+1):Math.random()*(e+1))());let l=0===t?(()=>616*Math.random()!==void 0&&616*Math.random()!==null&&(616*Math.random())[Symbol.for("-")]?(616*Math.random())[Symbol.for("-")](308):616*Math.random()-308)():(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](16):16*Math.random())();(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9)()&&(l=Math.trunc(l));let r=Math.pow(10,l);return(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9)()&&(r=Math.trunc(r)),B(o,t,r)}static affordGeometricSeries_core(e,o,t,l){const r=o.mul(t.pow(l));return _.floor(e.div(r).mul(t.sub(1)).add(1).log10().div(t.log10()))}static sumGeometricSeries_core(e,o,t,l){return o.mul(t.pow(l)).mul(_.sub(1,t.pow(e))).div(_.sub(1,t))}static affordArithmeticSeries_core(e,o,t,l){const r=o.add(l.mul(t)),n=r.sub(t.div(2)),i=n.pow(2);return n.neg().add(i.add(t.mul(e).mul(2)).sqrt()).div(t).floor()}static sumArithmeticSeries_core(e,o,t,l){const r=o.add(l.mul(t));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(t)))}static efficiencyOfPurchase_core(e,o,t){return e.div(o).add(e.div(t))}[r](e){return this.add(e)}[n](e){return this.sub(e)}[i](e){return this.times(e)}[a](e){return this.div(e)}[s](){return this.neg()}[u](e){return this.eq(e)}[m](e){return this.gt(e)}[c](e){return this.lt(e)}[f](e){return this.gte(e)}[d](e){return this.lte(e)}[y](e){return this.neq(e)}normalize(){if(0===this.sign||0===this.mag&&0===this.layer)return this.sign=0,this.mag=0,this.layer=0,this;if(0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()&&(this.mag=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)(),this.sign=(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)()),0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](v):this.mag<v)())return this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),this.mag=Math.log10(this.mag),this;let e=Math.abs(this.mag),o=Math.sign(this.mag);if((()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](h):e>=h)())return this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.log10(e)):o*Math.log10(e))(),this;while((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](p):e<p)()&&(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)())this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.pow(10,e)):o*Math.pow(10,e))(),e=Math.abs(this.mag),o=Math.sign(this.mag));return 0===this.layer&&((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?(this.mag=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)(),this.sign=(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)()):0===this.mag&&(this.sign=0)),this}fromComponents(e,o,t){return this.sign=e,this.layer=o,this.mag=t,this.normalize(),this}fromComponents_noNormalize(e,o,t){return this.sign=e,this.layer=o,this.mag=t,this}fromMantissaExponent(e,o){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](Math.log10(e)):o+Math.log10(e))(),this.normalize(),this}fromMantissaExponent_noNormalize(e,o){return this.fromMantissaExponent(e,o),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){k?e=e.replace(",",""):V&&(e=e.replace(",","."));const o=e.split("^^^");if(2===o.length){const e=parseFloat(o[0]),t=parseFloat(o[1]),l=o[1].split(";");let r=1;if(2===l.length&&(r=parseFloat(l[1]),(()=>void 0!==isFinite(r)&&null!==isFinite(r)&&isFinite(r)[Symbol.for("!")]?isFinite(r)[Symbol.for("!")]():!isFinite(r))()&&(r=1)),isFinite(e)&&isFinite(t)){const o=_.pentate(e,t,r);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}const t=e.split("^^");if(2===t.length){const e=parseFloat(t[0]),o=parseFloat(t[1]),l=t[1].split(";");let r=1;if(2===l.length&&(r=parseFloat(l[1]),(()=>void 0!==isFinite(r)&&null!==isFinite(r)&&isFinite(r)[Symbol.for("!")]?isFinite(r)[Symbol.for("!")]():!isFinite(r))()&&(r=1)),isFinite(e)&&isFinite(o)){const t=_.tetrate(e,o,r);return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this}}const l=e.split("^");if(2===l.length){const e=parseFloat(l[0]),o=parseFloat(l[1]);if(isFinite(e)&&isFinite(o)){const t=_.pow(e,o);return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this}}let r,n;e=e.trim().toLowerCase();let i=e.split("pt");if(2===i.length){r=10,n=parseFloat(i[0]),i[1]=i[1].replace("(",""),i[1]=i[1].replace(")","");let e=parseFloat(i[1]);if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))()&&(e=1),isFinite(r)&&isFinite(n)){const o=_.tetrate(r,n,e);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}if(i=e.split("p"),2===i.length){r=10,n=parseFloat(i[0]),i[1]=i[1].replace("(",""),i[1]=i[1].replace(")","");let e=parseFloat(i[1]);if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))()&&(e=1),isFinite(r)&&isFinite(n)){const o=_.tetrate(r,n,e);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}const a=e.split("e"),s=(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](1):a.length-1)();if(0===s){const o=parseFloat(e);if(isFinite(o))return this.fromNumber(o)}else if(1===s){const o=parseFloat(e);if(isFinite(o)&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](0):0!==o)())return this.fromNumber(o)}const u=e.split("e^");if(2===u.length){this.sign=1,(()=>void 0!==u[0].charAt(0)&&null!==u[0].charAt(0)&&u[0].charAt(0)[Symbol.for("==")]?u[0].charAt(0)[Symbol.for("==")]("-"):"-"==u[0].charAt(0))()&&(this.sign=(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());let e="";for(let o=0;(()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](u[1].length):o<u[1].length)();(()=>void 0!==o&&null!==o&&"object"===typeof o&&o[Symbol.for("prefix-increment")]?o[Symbol.for("prefix-increment")]():++o)()){const t=u[1].charCodeAt(o);if(!((()=>void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](43):t>=43)()&&(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](57):t<=57)()||101===t))return this.layer=parseFloat(e),this.mag=parseFloat(u[1].substr((()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)())),this.normalize(),this;e=(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](u[1].charAt(o)):e+u[1].charAt(o))()}}if((()=>void 0!==s&&null!==s&&s[Symbol.for("<")]?s[Symbol.for("<")](1):s<1)())return this.sign=0,this.layer=0,this.mag=0,this;const m=parseFloat(a[0]);if(0===m)return this.sign=0,this.layer=0,this.mag=0,this;let c=parseFloat(a[(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](1):a.length-1)()]);if((()=>void 0!==s&&null!==s&&s[Symbol.for(">=")]?s[Symbol.for(">=")](2):s>=2)()){const e=parseFloat(a[(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](2):a.length-2)()]);isFinite(e)&&(c=(()=>void 0!==c&&null!==c&&c[Symbol.for("*")]?c[Symbol.for("*")](Math.sign(e)):c*Math.sign(e))(),c=(()=>void 0!==c&&null!==c&&c[Symbol.for("+")]?c[Symbol.for("+")](I(e)):c+I(e))())}if((()=>void 0!==isFinite(m)&&null!==isFinite(m)&&isFinite(m)[Symbol.for("!")]?isFinite(m)[Symbol.for("!")]():!isFinite(m))())this.sign="-"===a[0]?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():1,this.layer=s,this.mag=c;else if(1===s)this.sign=Math.sign(m),this.layer=1,this.mag=(()=>void 0!==c&&null!==c&&c[Symbol.for("+")]?c[Symbol.for("+")](Math.log10(Math.abs(m))):c+Math.log10(Math.abs(m)))();else{if(this.sign=Math.sign(m),this.layer=s,2===s){const e=_.mul(B(1,2,c),Z(m));return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}this.mag=c}return this.normalize(),this}fromValue(e){return e instanceof _||(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&"object"===typeof e&&(()=>"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e)()&&(()=>"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e)()&&(()=>"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](e):"layer"in e)()?this.fromDecimal(e):"number"===typeof e?this.fromNumber(e):"string"===typeof e?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return(()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))()?Number.NaN:0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)():1===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.pow(10,this.mag)):this.sign*Math.pow(10,this.mag))():(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](0):this.mag>0)()?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for(">")]?this.sign[Symbol.for(">")](0):this.sign>0)()?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:0===this.m?0:P(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:0===this.mag?0:P(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?1===this.sign?"Infinity":"-Infinity":0===this.layer?(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](1e21):this.mag<1e21)()&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](1e-7):this.mag>1e-7)()||0===this.mag?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toString():(()=>this.m+"e"!==void 0&&this.m+"e"!==null&&(this.m+"e")[Symbol.for("+")]?(this.m+"e")[Symbol.for("+")](this.e):this.m+"e"+this.e)():1===this.layer?(()=>this.m+"e"!==void 0&&this.m+"e"!==null&&(this.m+"e")[Symbol.for("+")]?(this.m+"e")[Symbol.for("+")](this.e):this.m+"e"+this.e)():(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](N):this.layer<=N)()?(()=>(-1===this.sign?"-":"")+"e".repeat(this.layer)!==void 0&&(-1===this.sign?"-":"")+"e".repeat(this.layer)!==null&&((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")]?((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")](this.mag):(-1===this.sign?"-":"")+"e".repeat(this.layer)+this.mag)():(()=>(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==void 0&&(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==null&&((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")]?((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")](this.mag):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+this.mag)()}toExponential(e){return 0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return 0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return(()=>void 0!==this.e&&null!==this.e&&this.e[Symbol.for("<=")]?this.e[Symbol.for("<=")](-7):this.e<=-7)()?this.toExponential((()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)()):(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](this.e):e>this.e)()?this.toFixed((()=>e-this.exponent!==void 0&&e-this.exponent!==null&&(e-this.exponent)[Symbol.for("-")]?(e-this.exponent)[Symbol.for("-")](1):e-this.exponent-1)()):this.toExponential((()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)())}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return 0===this.layer?(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](1e21):this.mag<1e21)()&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](1e-7):this.mag>1e-7)()||0===this.mag?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toFixed(e):(()=>P(this.m,e)+"e"!==void 0&&P(this.m,e)+"e"!==null&&(P(this.m,e)+"e")[Symbol.for("+")]?(P(this.m,e)+"e")[Symbol.for("+")](P(this.e,e)):P(this.m,e)+"e"+P(this.e,e))():1===this.layer?(()=>P(this.m,e)+"e"!==void 0&&P(this.m,e)+"e"!==null&&(P(this.m,e)+"e")[Symbol.for("+")]?(P(this.m,e)+"e")[Symbol.for("+")](P(this.e,e)):P(this.m,e)+"e"+P(this.e,e))():(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](N):this.layer<=N)()?(()=>(-1===this.sign?"-":"")+"e".repeat(this.layer)!==void 0&&(-1===this.sign?"-":"")+"e".repeat(this.layer)!==null&&((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")]?((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")](P(this.mag,e)):(-1===this.sign?"-":"")+"e".repeat(this.layer)+P(this.mag,e))():(()=>(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==void 0&&(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==null&&((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")]?((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")](P(this.mag,e)):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+P(this.mag,e))()}abs(){return E(0===this.sign?0:1,this.layer,this.mag)}neg(){return E((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)(),this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?B(this.sign,0,Math.round(this.mag)):this}floor(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?B(this.sign,0,Math.floor(this.mag)):this}ceil(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?B(this.sign,0,Math.ceil(this.mag)):this}trunc(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?B(this.sign,0,Math.trunc(this.mag)):this}add(e){const o=Z(e);if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))())return this;if((()=>void 0!==Number.isFinite(o.layer)&&null!==Number.isFinite(o.layer)&&Number.isFinite(o.layer)[Symbol.for("!")]?Number.isFinite(o.layer)[Symbol.for("!")]():!Number.isFinite(o.layer))())return o;if(0===this.sign)return o;if(0===o.sign)return this;if(this.sign===(()=>void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("minus")]?o.sign[Symbol.for("minus")]():-o.sign)()&&this.layer===o.layer&&this.mag===o.mag)return E(0,0,0);let t,l;if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](2):this.layer>=2)()||(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](2):o.layer>=2)())return this.maxabs(o);if((()=>void 0!==_.cmpabs(this,o)&&null!==_.cmpabs(this,o)&&_.cmpabs(this,o)[Symbol.for(">")]?_.cmpabs(this,o)[Symbol.for(">")](0):_.cmpabs(this,o)>0)()?(t=this,l=o):(t=o,l=this),0===t.layer&&0===l.layer)return Z((()=>t.sign*t.mag!==void 0&&t.sign*t.mag!==null&&(t.sign*t.mag)[Symbol.for("+")]?(t.sign*t.mag)[Symbol.for("+")](l.sign*l.mag):t.sign*t.mag+l.sign*l.mag)());const r=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("*")]?t.layer[Symbol.for("*")](Math.sign(t.mag)):t.layer*Math.sign(t.mag))(),n=(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("*")]?l.layer[Symbol.for("*")](Math.sign(l.mag)):l.layer*Math.sign(l.mag))();if((()=>r-n!==void 0&&r-n!==null&&(r-n)[Symbol.for(">=")]?(r-n)[Symbol.for(">=")](2):r-n>=2)())return t;if(0===r&&n===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()){if((()=>void 0!==Math.abs(l.mag-Math.log10(t.mag))&&null!==Math.abs(l.mag-Math.log10(t.mag))&&Math.abs(l.mag-Math.log10(t.mag))[Symbol.for(">")]?Math.abs(l.mag-Math.log10(t.mag))[Symbol.for(">")](b):Math.abs(l.mag-Math.log10(t.mag))>b)())return t;{const e=Math.pow(10,(()=>void 0!==Math.log10(t.mag)&&null!==Math.log10(t.mag)&&Math.log10(t.mag)[Symbol.for("-")]?Math.log10(t.mag)[Symbol.for("-")](l.mag):Math.log10(t.mag)-l.mag)()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return B(Math.sign(o),1,(()=>void 0!==l.mag&&null!==l.mag&&l.mag[Symbol.for("+")]?l.mag[Symbol.for("+")](Math.log10(Math.abs(o))):l.mag+Math.log10(Math.abs(o)))())}}if(1===r&&0===n){if((()=>void 0!==Math.abs(t.mag-Math.log10(l.mag))&&null!==Math.abs(t.mag-Math.log10(l.mag))&&Math.abs(t.mag-Math.log10(l.mag))[Symbol.for(">")]?Math.abs(t.mag-Math.log10(l.mag))[Symbol.for(">")](b):Math.abs(t.mag-Math.log10(l.mag))>b)())return t;{const e=Math.pow(10,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("-")]?t.mag[Symbol.for("-")](Math.log10(l.mag)):t.mag-Math.log10(l.mag))()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return B(Math.sign(o),1,(()=>void 0!==Math.log10(l.mag)&&null!==Math.log10(l.mag)&&Math.log10(l.mag)[Symbol.for("+")]?Math.log10(l.mag)[Symbol.for("+")](Math.log10(Math.abs(o))):Math.log10(l.mag)+Math.log10(Math.abs(o)))())}}if((()=>void 0!==Math.abs(t.mag-l.mag)&&null!==Math.abs(t.mag-l.mag)&&Math.abs(t.mag-l.mag)[Symbol.for(">")]?Math.abs(t.mag-l.mag)[Symbol.for(">")](b):Math.abs(t.mag-l.mag)>b)())return t;{const e=Math.pow(10,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("-")]?t.mag[Symbol.for("-")](l.mag):t.mag-l.mag)()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return B(Math.sign(o),1,(()=>void 0!==l.mag&&null!==l.mag&&l.mag[Symbol.for("+")]?l.mag[Symbol.for("+")](Math.log10(Math.abs(o))):l.mag+Math.log10(Math.abs(o)))())}}plus(e){return this.add(e)}sub(e){return this.add(Z(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const o=Z(e);if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))())return this;if((()=>void 0!==Number.isFinite(o.layer)&&null!==Number.isFinite(o.layer)&&Number.isFinite(o.layer)[Symbol.for("!")]?Number.isFinite(o.layer)[Symbol.for("!")]():!Number.isFinite(o.layer))())return o;if(0===this.sign||0===o.sign)return E(0,0,0);if(this.layer===o.layer&&this.mag===(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag)())return E((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](o.sign):this.sign*o.sign)(),0,1);let t,l;if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](o.layer):this.layer>o.layer)()||(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("==")]?this.layer[Symbol.for("==")](o.layer):this.layer==o.layer)()&&(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for(">")]?Math.abs(this.mag)[Symbol.for(">")](Math.abs(o.mag)):Math.abs(this.mag)>Math.abs(o.mag))()?(t=this,l=o):(t=o,l=this),0===t.layer&&0===l.layer)return Z((()=>t.sign*l.sign*t.mag!==void 0&&t.sign*l.sign*t.mag!==null&&(t.sign*l.sign*t.mag)[Symbol.for("*")]?(t.sign*l.sign*t.mag)[Symbol.for("*")](l.mag):t.sign*l.sign*t.mag*l.mag)());if((()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](3):t.layer>=3)()||(()=>t.layer-l.layer!==void 0&&t.layer-l.layer!==null&&(t.layer-l.layer)[Symbol.for(">=")]?(t.layer-l.layer)[Symbol.for(">=")](2):t.layer-l.layer>=2)())return B((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),t.layer,t.mag);if(1===t.layer&&0===l.layer)return B((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),1,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("+")]?t.mag[Symbol.for("+")](Math.log10(l.mag)):t.mag+Math.log10(l.mag))());if(1===t.layer&&1===l.layer)return B((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),1,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("+")]?t.mag[Symbol.for("+")](l.mag):t.mag+l.mag)());if(2===t.layer&&1===l.layer){const e=B(Math.sign(t.mag),(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](1):t.layer-1)(),Math.abs(t.mag)).add(B(Math.sign(l.mag),(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](1):l.layer-1)(),Math.abs(l.mag)));return B((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)())}if(2===t.layer&&2===l.layer){const e=B(Math.sign(t.mag),(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](1):t.layer-1)(),Math.abs(t.mag)).add(B(Math.sign(l.mag),(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](1):l.layer-1)(),Math.abs(l.mag)));return B((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)())}throw Error((()=>"Bad arguments to mul: "+this+", "!==void 0&&"Bad arguments to mul: "+this+", "!==null&&("Bad arguments to mul: "+this+", ")[Symbol.for("+")]?("Bad arguments to mul: "+this+", ")[Symbol.for("+")](e):"Bad arguments to mul: "+this+", "+e)())}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const o=Z(e);return this.mul(o.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return 0===this.mag?_.dNaN:0===this.layer?B(this.sign,0,(()=>1[Symbol.for("/")]?1[Symbol.for("/")](this.mag):1/this.mag)()):B(this.sign,this.layer,(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)())}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const o=Z(e);return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for(">")]?this.sign[Symbol.for(">")](o.sign):this.sign>o.sign)()?1:(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<")]?this.sign[Symbol.for("<")](o.sign):this.sign<o.sign)()?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.cmpabs(e)):this.sign*this.cmpabs(e))()}cmpabs(e){const o=Z(e),t=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](0):this.mag>0)()?this.layer:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("minus")]?this.layer[Symbol.for("minus")]():-this.layer)(),l=(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">")]?o.mag[Symbol.for(">")](0):o.mag>0)()?o.layer:(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("minus")]?o.layer[Symbol.for("minus")]():-o.layer)();return(()=>void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](l):t>l)()?1:(()=>void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](l):t<l)()?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](o.mag):this.mag>o.mag)()?1:(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](o.mag):this.mag<o.mag)()?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():0}compare(e){return this.cmp(e)}isNan(){return isNaN(this.sign)||isNaN(this.layer)||isNaN(this.mag)}isFinite(){return isFinite(this.sign)&&isFinite(this.layer)&&isFinite(this.mag)}eq(e){const o=Z(e);return this.sign===o.sign&&this.layer===o.layer&&this.mag===o.mag}equals(e){return this.eq(e)}neq(e){return(()=>void 0!==this.eq(e)&&null!==this.eq(e)&&this.eq(e)[Symbol.for("!")]?this.eq(e)[Symbol.for("!")]():!this.eq(e))()}notEquals(e){return this.neq(e)}lt(e){return this.cmp(e)===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()}lte(e){return(()=>void 0!==this.gt(e)&&null!==this.gt(e)&&this.gt(e)[Symbol.for("!")]?this.gt(e)[Symbol.for("!")]():!this.gt(e))()}gt(e){return 1===this.cmp(e)}gte(e){return(()=>void 0!==this.lt(e)&&null!==this.lt(e)&&this.lt(e)[Symbol.for("!")]?this.lt(e)[Symbol.for("!")]():!this.lt(e))()}max(e){const o=Z(e);return this.lt(o)?o:this}min(e){const o=Z(e);return this.gt(o)?o:this}maxabs(e){const o=Z(e);return(()=>void 0!==this.cmpabs(o)&&null!==this.cmpabs(o)&&this.cmpabs(o)[Symbol.for("<")]?this.cmpabs(o)[Symbol.for("<")](0):this.cmpabs(o)<0)()?o:this}minabs(e){const o=Z(e);return(()=>void 0!==this.cmpabs(o)&&null!==this.cmpabs(o)&&this.cmpabs(o)[Symbol.for(">")]?this.cmpabs(o)[Symbol.for(">")](0):this.cmpabs(o)>0)()?o:this}clamp(e,o){return this.max(e).min(o)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,o){const t=Z(e);return this.eq_tolerance(t,o)?0:this.cmp(t)}compare_tolerance(e,o){return this.cmp_tolerance(e,o)}eq_tolerance(e,o){const t=Z(e);if((()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()&&(o=1e-7),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("!==")]?this.sign[Symbol.for("!==")](t.sign):this.sign!==t.sign)())return!1;if((()=>void 0!==Math.abs(this.layer-t.layer)&&null!==Math.abs(this.layer-t.layer)&&Math.abs(this.layer-t.layer)[Symbol.for(">")]?Math.abs(this.layer-t.layer)[Symbol.for(">")](1):Math.abs(this.layer-t.layer)>1)())return!1;let l=this.mag,r=t.mag;return(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](t.layer):this.layer>t.layer)()&&(r=I(r)),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<")]?this.layer[Symbol.for("<")](t.layer):this.layer<t.layer)()&&(l=I(l)),(()=>void 0!==Math.abs(l-r)&&null!==Math.abs(l-r)&&Math.abs(l-r)[Symbol.for("<=")]?Math.abs(l-r)[Symbol.for("<=")](o*Math.max(Math.abs(l),Math.abs(r))):Math.abs(l-r)<=o*Math.max(Math.abs(l),Math.abs(r)))()}equals_tolerance(e,o){return this.eq_tolerance(e,o)}neq_tolerance(e,o){return(()=>void 0!==this.eq_tolerance(e,o)&&null!==this.eq_tolerance(e,o)&&this.eq_tolerance(e,o)[Symbol.for("!")]?this.eq_tolerance(e,o)[Symbol.for("!")]():!this.eq_tolerance(e,o))()}notEquals_tolerance(e,o){return this.neq_tolerance(e,o)}lt_tolerance(e,o){const t=Z(e);return(()=>void 0!==this.eq_tolerance(t,o)&&null!==this.eq_tolerance(t,o)&&this.eq_tolerance(t,o)[Symbol.for("!")]?this.eq_tolerance(t,o)[Symbol.for("!")]():!this.eq_tolerance(t,o))()&&this.lt(t)}lte_tolerance(e,o){const t=Z(e);return this.eq_tolerance(t,o)||this.lt(t)}gt_tolerance(e,o){const t=Z(e);return(()=>void 0!==this.eq_tolerance(t,o)&&null!==this.eq_tolerance(t,o)&&this.eq_tolerance(t,o)[Symbol.for("!")]?this.eq_tolerance(t,o)[Symbol.for("!")]():!this.eq_tolerance(t,o))()&&this.gt(t)}gte_tolerance(e,o){const t=Z(e);return this.eq_tolerance(t,o)||this.gt(t)}pLog10(){return this.lt(_.dZero)?_.dZero:this.log10()}absLog10(){return 0===this.sign?_.dNaN:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)()?B(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag)):B(1,0,Math.log10(this.mag))}log10(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?_.dNaN:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)()?B(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag)):B(this.sign,0,Math.log10(this.mag))}log(e){return e=Z(e),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()||(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0)()||1===e.sign&&0===e.layer&&1===e.mag?_.dNaN:0===this.layer&&0===e.layer?B(this.sign,0,(()=>void 0!==Math.log(this.mag)&&null!==Math.log(this.mag)&&Math.log(this.mag)[Symbol.for("/")]?Math.log(this.mag)[Symbol.for("/")](Math.log(e.mag)):Math.log(this.mag)/Math.log(e.mag))()):_.div(this.log10(),e.log10())}log2(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?_.dNaN:0===this.layer?B(this.sign,0,Math.log2(this.mag)):1===this.layer?B(Math.sign(this.mag),0,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("*")]?Math.abs(this.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(this.mag))()):2===this.layer?B(Math.sign(this.mag),1,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("+")]?Math.abs(this.mag)[Symbol.for("+")](.5213902276543247):Math.abs(this.mag)+.5213902276543247)()):B(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag))}ln(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?_.dNaN:0===this.layer?B(this.sign,0,Math.log(this.mag)):1===this.layer?B(Math.sign(this.mag),0,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("*")]?Math.abs(this.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(this.mag))()):2===this.layer?B(Math.sign(this.mag),1,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("+")]?Math.abs(this.mag)[Symbol.for("+")](.36221568869946325):Math.abs(this.mag)+.36221568869946325)()):B(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const o=Z(e),t=this,l=o;if(0===t.sign)return l.eq(0)?E(1,0,1):t;if(1===t.sign&&0===t.layer&&1===t.mag)return t;if(0===l.sign)return E(1,0,1);if(1===l.sign&&0===l.layer&&1===l.mag)return t;const r=t.absLog10().mul(l).pow10();return this.sign===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()?1===(()=>void 0!==Math.abs(l.toNumber()%2)&&null!==Math.abs(l.toNumber()%2)&&Math.abs(l.toNumber()%2)[Symbol.for("%")]?Math.abs(l.toNumber()%2)[Symbol.for("%")](2):Math.abs(l.toNumber()%2)%2)()?r.neg():0===(()=>void 0!==Math.abs(l.toNumber()%2)&&null!==Math.abs(l.toNumber()%2)&&Math.abs(l.toNumber()%2)[Symbol.for("%")]?Math.abs(l.toNumber()%2)[Symbol.for("%")](2):Math.abs(l.toNumber()%2)%2)()?r:_.dNaN:r}pow10(){if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))()||(()=>void 0!==Number.isFinite(this.mag)&&null!==Number.isFinite(this.mag)&&Number.isFinite(this.mag)[Symbol.for("!")]?Number.isFinite(this.mag)[Symbol.for("!")]():!Number.isFinite(this.mag))())return _.dNaN;let e=this;if(0===e.layer){const o=Math.pow(10,(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)());if(Number.isFinite(o)&&(()=>void 0!==Math.abs(o)&&null!==Math.abs(o)&&Math.abs(o)[Symbol.for(">=")]?Math.abs(o)[Symbol.for(">=")](.1):Math.abs(o)>=.1)())return B(1,0,o);if(0===e.sign)return _.dOne;e=E(e.sign,(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),Math.log10(e.mag))}return(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](0):e.sign>0)()&&(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0)()?B(e.sign,(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),e.mag):(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)()&&(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0)()?B((()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag)()):_.dOne}pow_base(e){return Z(e).pow(this)}root(e){const o=Z(e);return this.pow(o.recip())}factorial(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()||0===this.layer?this.add(1).gamma():1===this.layer?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}gamma(){if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)())return this.recip();if(0===this.layer){if(this.lt(E(1,0,24)))return Z(T((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));const e=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("-")]?this.mag[Symbol.for("-")](1):this.mag-1)();let o=.9189385332046727;o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((e+.5)*Math.log(e)):o+(e+.5)*Math.log(e))(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](e):o-e)();const t=(()=>void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e)();let l=e,r=(()=>12[Symbol.for("*")]?12[Symbol.for("*")](l):12*l)(),n=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)(),i=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](n):o+n)();if(i===o)return _.exp(o);if(o=i,l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),r=(()=>360[Symbol.for("*")]?360[Symbol.for("*")](l):360*l)(),n=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)(),i=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](n):o-n)(),i===o)return _.exp(o);o=i,l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),r=(()=>1260[Symbol.for("*")]?1260[Symbol.for("*")](l):1260*l)();let a=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)();return o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](a):o+a)(),l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),r=(()=>1680[Symbol.for("*")]?1680[Symbol.for("*")](l):1680*l)(),a=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](a):o-a)(),_.exp(o)}return 1===this.layer?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}lngamma(){return this.gamma().ln()}exp(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dOne:0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<=")]?this.mag[Symbol.for("<=")](709.7):this.mag<=709.7)()?Z(Math.exp((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):0===this.layer?B(1,1,(()=>this.sign*Math.log10(Math.E)!==void 0&&this.sign*Math.log10(Math.E)!==null&&(this.sign*Math.log10(Math.E))[Symbol.for("*")]?(this.sign*Math.log10(Math.E))[Symbol.for("*")](this.mag):this.sign*Math.log10(Math.E)*this.mag)()):1===this.layer?B(1,2,(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.log10(.4342944819032518)+this.mag):this.sign*(Math.log10(.4342944819032518)+this.mag))()):B(1,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())}sqr(){return this.pow(2)}sqrt(){if(0===this.layer)return Z(Math.sqrt((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));if(1===this.layer)return B(1,2,(()=>void 0!==Math.log10(this.mag)&&null!==Math.log10(this.mag)&&Math.log10(this.mag)[Symbol.for("-")]?Math.log10(this.mag)[Symbol.for("-")](.3010299956639812):Math.log10(this.mag)-.3010299956639812)());{const e=_.div(E(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag),E(1,0,2));return e.layer=(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](3):1/3)())}tetrate(e=2,o=E(1,0,1)){if(1===e)return _.pow(this,o);if(0===e)return new _(o);if(this.eq(_.dOne))return _.dOne;if(this.eq((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))return _.pow(this,o);if(e===Number.POSITIVE_INFINITY){const e=this.toNumber();if((()=>void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](1.444667861009766):e<=1.444667861009766)()&&(()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](.06598803584531254):e>=.06598803584531254)()){if((()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](1.444667861009099):e>1.444667861009099)())return new _(Math.E);const o=_.ln(this).neg();return o.lambertw().div(o)}return(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](1.444667861009766):e>1.444667861009766)()?new _(Number.POSITIVE_INFINITY):_.dNaN}if(this.eq(_.dZero)){let o=Math.abs((()=>e+1!==void 0&&e+1!==null&&(e+1)[Symbol.for("%")]?(e+1)[Symbol.for("%")](2):(e+1)%2)());return(()=>void 0!==o&&null!==o&&o[Symbol.for(">")]?o[Symbol.for(">")](1):o>1)()&&(o=(()=>2[Symbol.for("-")]?2[Symbol.for("-")](o):2-o)()),new _(o)}if((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](0):e<0)())return _.iteratedlog(o,this,(()=>void 0!==e&&null!==e&&e[Symbol.for("minus")]?e[Symbol.for("minus")]():-e)());o=Z(o);const t=e;e=Math.trunc(e);const l=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();if(this.gt(_.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let t=0;(()=>void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](e):t<e)();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("prefix-increment")]?t[Symbol.for("prefix-increment")]():++t)()){const e=o;if(o=this.pow(o),e.eq(o))return o}if((()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](0):0!=l)()){const e=this.pow(o);return o.mul((()=>1[Symbol.for("-")]?1[Symbol.for("-")](l):1-l)()).add(e.mul(l))}return o}(()=>void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l)()&&(o.eq(_.dOne)?this.gt(10)?o=this.pow(l):(o=Z(_.tetrate_critical(this.toNumber(),l)),this.lt(2)&&(o=o.sub(1).mul(this.minus(1)).plus(1))):o=this.eq(10)?o.layeradd10(l):o.layeradd(l,this));for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](e):r<e)();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(o=this.pow(o),(()=>void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer))()||(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return o.normalize();if((()=>o.layer-this.layer!==void 0&&o.layer-this.layer!==null&&(o.layer-this.layer)[Symbol.for(">")]?(o.layer-this.layer)[Symbol.for(">")](3):o.layer-this.layer>3)())return E(o.sign,(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](e-r-1):o.layer+(e-r-1))(),o.mag);if((()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](1e4):r>1e4)())return o}return o}iteratedexp(e=2,o=E(1,0,1)){return this.tetrate(e,o)}iteratedlog(e=10,o=1){if((()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0)())return _.tetrate(e,(()=>void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o)(),this);e=Z(e);let t=Z(this);const l=o;o=Math.trunc(o);const r=(()=>void 0!==l&&null!==l&&l[Symbol.for("-")]?l[Symbol.for("-")](o):l-o)();if((()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for(">")]?(t.layer-e.layer)[Symbol.for(">")](3):t.layer-e.layer>3)()){const l=Math.min(o,(()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for("-")]?(t.layer-e.layer)[Symbol.for("-")](3):t.layer-e.layer-3)());o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](l):o-l)(),t.layer=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l)()}for(let n=0;(()=>void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](o):n<o)();(()=>void 0!==n&&null!==n&&"object"===typeof n&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n)()){if(t=t.log(e),(()=>void 0!==isFinite(t.layer)&&null!==isFinite(t.layer)&&isFinite(t.layer)[Symbol.for("!")]?isFinite(t.layer)[Symbol.for("!")]():!isFinite(t.layer))()||(()=>void 0!==isFinite(t.mag)&&null!==isFinite(t.mag)&&isFinite(t.mag)[Symbol.for("!")]?isFinite(t.mag)[Symbol.for("!")]():!isFinite(t.mag))())return t.normalize();if((()=>void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](1e4):n>1e4)())return t}return(()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](0):r>0)()&&(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](1):r<1)()&&(t=e.eq(10)?t.layeradd10((()=>void 0!==r&&null!==r&&r[Symbol.for("minus")]?r[Symbol.for("minus")]():-r)()):t.layeradd((()=>void 0!==r&&null!==r&&r[Symbol.for("minus")]?r[Symbol.for("minus")]():-r)(),e)),t}slog(e=10){if(e=Z(e),e.lte(_.dZero))return _.dNaN;if(e.eq(_.dOne))return _.dNaN;if(e.lt(_.dOne))return this.eq(_.dOne)?_.dZero:this.eq(_.dZero)?_.dNegOne:_.dNaN;if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()||this.eq(_.dZero))return _.dNegOne;let o=0,t=Z(this);if((()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for(">")]?(t.layer-e.layer)[Symbol.for(">")](3):t.layer-e.layer>3)()){const l=(()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for("-")]?(t.layer-e.layer)[Symbol.for("-")](3):t.layer-e.layer-3)();o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](l):o+l)(),t.layer=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l)()}for(let l=0;(()=>void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](100):l<100)();(()=>void 0!==l&&null!==l&&"object"===typeof l&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l)())if(t.lt(_.dZero))t=_.pow(e,t),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1)();else{if(t.lte(_.dOne))return Z((()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](_.slog_critical(e.toNumber(),t.toNumber())):o+_.slog_critical(e.toNumber(),t.toNumber()))());o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)(),t=_.log(t,e)}return Z(o)}static slog_critical(e,o){return(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10)()?(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1)():_.critical_section(e,o,C)}static tetrate_critical(e,o){return _.critical_section(e,o,w)}static critical_section(e,o,t){o=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](10):10*o)(),(()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0)()&&(o=0),(()=>void 0!==o&&null!==o&&o[Symbol.for(">")]?o[Symbol.for(">")](10):o>10)()&&(o=10),(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](2):e<2)()&&(e=2),(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10)()&&(e=10);let l=0,r=0;for(let a=0;(()=>void 0!==a&&null!==a&&a[Symbol.for("<")]?a[Symbol.for("<")](x.length):a<x.length)();(()=>void 0!==a&&null!==a&&"object"===typeof a&&a[Symbol.for("prefix-increment")]?a[Symbol.for("prefix-increment")]():++a)()){if((()=>void 0!==x[a]&&null!==x[a]&&x[a][Symbol.for("==")]?x[a][Symbol.for("==")](e):x[a]==e)()){l=t[a][Math.floor(o)],r=t[a][Math.ceil(o)];break}if((()=>void 0!==x[a]&&null!==x[a]&&x[a][Symbol.for("<")]?x[a][Symbol.for("<")](e):x[a]<e)()&&(()=>void 0!==x[a+1]&&null!==x[a+1]&&x[a+1][Symbol.for(">")]?x[a+1][Symbol.for(">")](e):x[a+1]>e)()){const n=(()=>e-x[a]!==void 0&&e-x[a]!==null&&(e-x[a])[Symbol.for("/")]?(e-x[a])[Symbol.for("/")](x[a+1]-x[a]):(e-x[a])/(x[a+1]-x[a]))();l=(()=>t[a][Math.floor(o)]*(1-n)!==void 0&&t[a][Math.floor(o)]*(1-n)!==null&&(t[a][Math.floor(o)]*(1-n))[Symbol.for("+")]?(t[a][Math.floor(o)]*(1-n))[Symbol.for("+")](t[a+1][Math.floor(o)]*n):t[a][Math.floor(o)]*(1-n)+t[a+1][Math.floor(o)]*n)(),r=(()=>t[a][Math.ceil(o)]*(1-n)!==void 0&&t[a][Math.ceil(o)]*(1-n)!==null&&(t[a][Math.ceil(o)]*(1-n))[Symbol.for("+")]?(t[a][Math.ceil(o)]*(1-n))[Symbol.for("+")](t[a+1][Math.ceil(o)]*n):t[a][Math.ceil(o)]*(1-n)+t[a+1][Math.ceil(o)]*n)();break}}const n=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](Math.floor(o)):o-Math.floor(o))(),i=(()=>l*(1-n)!==void 0&&l*(1-n)!==null&&(l*(1-n))[Symbol.for("+")]?(l*(1-n))[Symbol.for("+")](r*n):l*(1-n)+r*n)();return i}layeradd10(e){e=_.fromValue_noAlloc(e).toNumber();const o=Z(this);if((()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](1):e>=1)()){(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("<")]?o.mag[Symbol.for("<")](0):o.mag<0)()&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](0):o.layer>0)()?(o.sign=0,o.mag=0,o.layer=0):o.sign===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("==")]?o.layer[Symbol.for("==")](0):0==o.layer)()&&(o.sign=1,o.mag=(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag)());const t=Math.trunc(e);e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](t):e-t)(),o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t)()}if((()=>void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](-1):e<=-1)()){const t=Math.trunc(e);if(e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](t):e-t)(),o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t)(),(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)())for(let e=0;(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](100):e<100)();(()=>void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e)()){if((()=>{void 0!==o.layer&&null!==o.layer&&"object"===typeof o.layer&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag),(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return 0===o.sign&&(o.sign=1),(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)()&&(o.layer=0),o.normalize();if((()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](0):o.layer>=0)())break}}while((()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)())(()=>{void 0!==o.layer&&null!==o.layer&&"object"===typeof o.layer&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag);return 0===o.sign&&(o.sign=1,0===o.mag&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](1):o.layer>=1)()&&(o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1)(),o.mag=1)),o.normalize(),(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](0):0!==e)()?o.layeradd(e,10):o}layeradd(e,o){const t=this.slog(o).toNumber(),l=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](e):t+e)();return(()=>void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](0):l>=0)()?_.tetrate(o,l):(()=>void 0!==Number.isFinite(l)&&null!==Number.isFinite(l)&&Number.isFinite(l)[Symbol.for("!")]?Number.isFinite(l)[Symbol.for("!")]():!Number.isFinite(l))()?_.dNaN:(()=>void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](-1):l>=-1)()?_.log(_.tetrate(o,(()=>void 0!==l&&null!==l&&l[Symbol.for("+")]?l[Symbol.for("+")](1):l+1)()),o):_.log(_.log(_.tetrate(o,(()=>void 0!==l&&null!==l&&l[Symbol.for("+")]?l[Symbol.for("+")](2):l+2)()),o),o)}lambertw(){if(this.lt((()=>.3678794411710499[Symbol.for("minus")]?.3678794411710499[Symbol.for("minus")]():-.3678794411710499)()))throw Error("lambertw is unimplemented for results less than -1, sorry!");if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)())return Z(D(this.toNumber()));if(0===this.layer)return Z(D((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));if(1===this.layer)return O(this);if(2===this.layer)return O(this);if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](3):this.layer>=3)())return E(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("==")]?this.sign[Symbol.for("==")](1):1==this.sign)()&&(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](3):this.layer>=3)())return E(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,o=E(1,0,1)){o=Z(o);const t=e;e=Math.trunc(e);const l=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();(()=>void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l)()&&(o.eq(_.dOne)?((()=>{void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e})(),o=new _(l)):o=this.eq(10)?o.layeradd10(l):o.layeradd(l,this));for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](e):r<e)();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(o=this.tetrate(o.toNumber()),(()=>void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer))()||(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return o.normalize();if((()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](10):r>10)())return o}return o}sin(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?Z(Math.sin((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(0,0,0)}cos(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dOne:0===this.layer?Z(Math.cos((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(0,0,0)}tan(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?Z(Math.tan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(0,0,0)}asin(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?Z(Math.asin((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(Number.NaN,Number.NaN,Number.NaN)}acos(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?Z(Math.acos(this.toNumber())):0===this.layer?Z(Math.acos((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(Number.NaN,Number.NaN,Number.NaN)}atan(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?Z(Math.atan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):Z(Math.atan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Infinity):Infinity*this.sign)()))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return _.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return _.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?E(Number.NaN,Number.NaN,Number.NaN):_.ln(this.add(1).div(Z(1).sub(this))).div(2)}ascensionPenalty(e){return 0===e?this:this.root(_.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for("<")]?this.cmp(e)[Symbol.for("<")](1):this.cmp(e)<1)()}lessThan(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for("<")]?this.cmp(e)[Symbol.for("<")](0):this.cmp(e)<0)()}greaterThanOrEqualTo(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for(">")]?this.cmp(e)[Symbol.for(">")](-1):this.cmp(e)>-1)()}greaterThan(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for(">")]?this.cmp(e)[Symbol.for(">")](0):this.cmp(e)>0)()}}(0,l.Z)(_,"dZero",E(0,0,0)),(0,l.Z)(_,"dOne",E(1,0,1)),(0,l.Z)(_,"dNegOne",E((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),0,1)),(0,l.Z)(_,"dTwo",E(1,0,2)),(0,l.Z)(_,"dTen",E(1,0,10)),(0,l.Z)(_,"dNaN",E(Number.NaN,Number.NaN,Number.NaN)),(0,l.Z)(_,"dInf",E(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,l.Z)(_,"dNegInf",E((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,l.Z)(_,"dNumberMax",B(1,0,Number.MAX_VALUE)),(0,l.Z)(_,"dNumberMin",B(1,0,Number.MIN_VALUE))},5813:function(e,o,t){"use strict";var l=t(4865),r=t(2345),n=t(9365),i=t(5967);function a(e,o,t,r,n,i){const a=(0,l.resolveComponent)("Links");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"layer-container",style:(0,l.normalizeStyle)({"--layer-color":e.unref(e.color)})},[e.showGoBack?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:"goBack",onClick:o[0]||(o[0]=(...o)=>e.goBack&&e.goBack(...o))},"←")):(0,l.createCommentVNode)("",!0),e.minimized.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:o[1]||(o[1]=o=>e.minimized.value=!1)},[(0,l.createElementVNode)("div",null,(0,l.toDisplayString)(e.unref(e.name)),1)])):((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(["layer-tab",[{showGoBack:e.showGoBack},e.unref(e.classes)]]),style:(0,l.normalizeStyle)(e.unref(e.style))},[(0,l.createVNode)(a,{links:e.unref(e.links)},{default:(0,l.withCtx)((()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component)))])),_:1},8,["links"])],6)),e.unref(e.minimizable)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:3,class:"minimize",onClick:o[2]||(o[2]=o=>e.minimized.value=!0)}," ▼ ")):(0,l.createCommentVNode)("",!0)],4)}var s=t(7172),u=t(1604),m=(0,l.defineComponent)({components:{Links:s.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,u.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,u.P5)(Number),required:!0},name:{type:(0,u.P5)(String),required:!0},color:(0,u.P5)(String),style:(0,u.P5)(String,Object,Array),classes:(0,u.P5)(Object),links:(0,u.P5)(Array),minimizable:(0,u.P5)(Boolean)},setup(e){const{display:o,index:t,minimized:n,minWidth:a,tab:s}=(0,l.toRefs)(e),m=(0,u.vq)(o),c=(0,l.computed)((()=>r.allowGoBack&&(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for(">")]?t.value[Symbol.for(">")](0):t.value>0)()&&(()=>void 0!==n.value&&null!==n.value&&n.value[Symbol.for("!")]?n.value[Symbol.for("!")]():!n.value)()));function f(){i.Z.tabs.splice((0,l.unref)(e.index),1/0)}function d(e,o){const t=s.value();(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](void 0):void 0!=t)()&&(e?(t.style.flexGrow="0",t.style.flexShrink="0",t.style.width="60px",t.style.minWidth=t.style.flexBasis="",t.style.margin="0"):(t.style.flexGrow="",t.style.flexShrink="",t.style.width="",t.style.minWidth=t.style.flexBasis=`${o}px`,t.style.margin=""))}return(0,l.nextTick)((()=>d(n.value,(0,l.unref)(a.value)))),(0,l.watch)([n,(0,u.o9)(a)],(([e,o])=>d(e,o))),{component:m,showGoBack:c,unref:l.unref,goBack:f}}}),c=t(3744);const f=(0,c.Z)(m,[["render",a],["__scopeId","data-v-3d00bd3c"]]);var d=f,y=t(7286);const b=e=>((0,l.pushScopeId)("data-v-3303e3d5"),e=e(),(0,l.popScopeId)(),e),h=b((()=>(0,l.createElementVNode)("h2",null,"Changelog",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),p=b((()=>(0,l.createElementVNode)("details",{open:""},[(0,l.createElementVNode)("summary",null,[(0,l.createTextVNode)("v0.0 Initial Commit - "),(0,l.createElementVNode)("time",null,"2021-09-04")]),(0,l.createTextVNode)(" This is the first release :D "),(0,l.createElementVNode)("ul",null,[(0,l.createElementVNode)("li",{class:"feature"},"Did everything"),(0,l.createElementVNode)("li",{class:"fix"},"Had some fun"),(0,l.createElementVNode)("li",{class:"breaking"},"Removed everything"),(0,l.createElementVNode)("li",{class:"balancing"},"Created some bugs to fix later")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var v=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)(!1);return o({open(){t.value=!0}}),(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(y.Z,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value=e)},{header:(0,l.withCtx)((()=>[h])),body:(0,l.withCtx)((()=>[p])),_:1},8,["modelValue"]))}});const S=(0,c.Z)(v,[["__scopeId","data-v-3303e3d5"]]);var g=S,N=t(9706);const k=e=>((0,l.pushScopeId)("data-v-0b3812f2"),e=e(),(0,l.popScopeId)(),e),V={class:"info-modal-header"},M=["src","alt"],x={class:"info-modal-title"},w={key:0},C={key:0},Z=k((()=>(0,l.createElementVNode)("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),B=k((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),E=k((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),P=["href"],I=k((()=>(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),T=k((()=>(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Paper Pilot Community ")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),F=k((()=>(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Modding Tree ")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),D=k((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var O=(0,l.defineComponent)({props:{changelog:null},setup(e,{expose:o}){const t=e,{title:n,logo:a,author:s,discordName:u,discordLink:m,versionNumber:c,versionTitle:f}=r,d=(0,l.toRefs)(t),b=(0,l.ref)(!1),h=(0,l.computed)((()=>(0,N.mr)(i.Z.timePlayed)));function p(){(0,l.unref)(d.changelog)?.open()}return o({open(){b.value=!0}}),(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(y.Z,{modelValue:b.value,"onUpdate:modelValue":o[0]||(o[0]=e=>b.value=e)},{header:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",V,[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,l.unref)(a),alt:(0,l.unref)(n)},null,8,M)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",x,[(0,l.createElementVNode)("h2",null,(0,l.toDisplayString)((0,l.unref)(n)),1),(0,l.createElementVNode)("h4",null,(()=>"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "!==void 0&&"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "!==null&&("v"+(0,l.toDisplayString)((0,l.unref)(c))+": ")[Symbol.for("+")]?("v"+(0,l.toDisplayString)((0,l.unref)(c))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "+(0,l.toDisplayString)((0,l.unref)(f)))(),1)])])])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",w,[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("div",C,(()=>"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(s))):"By "+(0,l.toDisplayString)((0,l.unref)(s)))(),1)):(0,l.createCommentVNode)("",!0),Z,B,(0,l.createElementVNode)("div",{class:"link",onClick:p},"Changelog"),E,(0,l.createElementVNode)("div",null,[(()=>void 0!==(0,l.unref)(m)&&null!==(0,l.unref)(m)&&(0,l.unref)(m)[Symbol.for("!==")]?(0,l.unref)(m)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(m))()?((0,l.openBlock)(),(0,l.createElementBlock)("a",{key:0,href:(0,l.unref)(m),class:"info-modal-discord-link"},[I,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(u))):" "+(0,l.toDisplayString)((0,l.unref)(u)))(),1)],8,P)):(0,l.createCommentVNode)("",!0)]),T,F,D,(0,l.createElementVNode)("div",null,(()=>"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(h))):"Time Played: "+(0,l.toDisplayString)((0,l.unref)(h)))(),1)])):(0,l.createCommentVNode)("",!0)])),_:1},8,["modelValue"]))}});const _=(0,c.Z)(O,[["__scopeId","data-v-0b3812f2"]]);var R=_,j=t(1037),U=t(9266),A=t(1349),q=t(900),L=t(3520),z=t(5939),W=t(6113);const G=e=>((0,l.pushScopeId)("data-v-54e795a4"),e=e(),(0,l.popScopeId)(),e),H=G((()=>(0,l.createElementVNode)("div",{class:"header"},[(0,l.createElementVNode)("h2",null,"Options")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Y=G((()=>(0,l.createElementVNode)("hr",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var J=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)(!1);o({open(){t.value=!0}});const r=Object.keys(j.Z).map((e=>({label:(0,A.IJ)(e),value:e}))),n=(0,l.computed)((()=>(0,u.MM)((0,W.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[U.V$.map(u.sY)])))))),{showTPS:a,theme:s,unthrottled:m}=(0,l.toRefs)(U.ZP),{autosave:c,offlineProd:f}=(0,l.toRefs)(i.Z),d=(0,l.computed)({get(){return 0===i.Z.devSpeed},set(e){i.Z.devSpeed=e?0:null}}),b=(0,W.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Offline Production"),(0,l.createVNode)(z.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})]))),h=(0,W.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Autosave"),(0,l.createVNode)(z.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})]))),p=(0,W.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Pause game"),(0,l.createVNode)(z.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})])));return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(y.Z,{modelValue:t.value,"onUpdate:modelValue":o[6]||(o[6]=e=>t.value=e)},{header:(0,l.withCtx)((()=>[H])),body:(0,l.withCtx)((()=>[(0,l.createVNode)(L.Z,{title:"Theme",options:(0,l.unref)(r),modelValue:(0,l.unref)(s),"onUpdate:modelValue":o[0]||(o[0]=e=>(0,l.isRef)(s)?s.value=e:null)},null,8,["options","modelValue"]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(n)))),(0,l.createVNode)(q.Z,{title:"Show TPS",modelValue:(0,l.unref)(a),"onUpdate:modelValue":o[1]||(o[1]=e=>(0,l.isRef)(a)?a.value=e:null)},null,8,["modelValue"]),Y,(0,l.createVNode)(q.Z,{title:"Unthrottled",modelValue:(0,l.unref)(m),"onUpdate:modelValue":o[2]||(o[2]=e=>(0,l.isRef)(m)?m.value=e:null)},null,8,["modelValue"]),(0,l.createVNode)(q.Z,{title:(0,l.unref)(b),modelValue:(0,l.unref)(f),"onUpdate:modelValue":o[3]||(o[3]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["title","modelValue"]),(0,l.createVNode)(q.Z,{title:(0,l.unref)(h),modelValue:(0,l.unref)(c),"onUpdate:modelValue":o[4]||(o[4]=e=>(0,l.isRef)(c)?c.value=e:null)},null,8,["title","modelValue"]),(0,l.createVNode)(q.Z,{title:(0,l.unref)(p),modelValue:(0,l.unref)(d),"onUpdate:modelValue":o[5]||(o[5]=e=>(0,l.isRef)(d)?d.value=e:null)},null,8,["title","modelValue"])])),_:1},8,["modelValue"]))}});const $=(0,c.Z)(J,[["__scopeId","data-v-54e795a4"]]);var X=$,K=t(463),Q=t(1033);const ee={key:0},oe=["onClick","disabled"],te={key:0},le=["onClick"];var re=(0,l.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:o}){const t=e,r=(0,l.toRefs)(t),n=(0,l.ref)(!1);function i(){(0,l.unref)(r.skipConfirm)?o("click"):(n.value&&o("click"),n.value=(()=>void 0!==n.value&&null!==n.value&&n.value[Symbol.for("!")]?n.value[Symbol.for("!")]():!n.value)())}function a(){n.value=!1}return(0,l.watch)(n,(e=>{o("confirmingChanged",e)})),(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["container",{confirming:n.value}])},[n.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",ee,"Are you sure?")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:(0,l.withModifiers)(i,["stop"]),class:"button danger",disabled:e.disabled},[n.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",te,"Yes")):(0,l.renderSlot)(o.$slots,"default",{key:1})],8,oe),n.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"button",onClick:(0,l.withModifiers)(a,["stop"])},"No",8,le)):(0,l.createCommentVNode)("",!0)],2))}});const ne=(0,c.Z)(re,[["__scopeId","data-v-bf59fca4"]]);var ie=ne;const ae=["onClick"];var se=(0,l.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:o}){const t=(0,l.ref)(!1),r=(0,l.ref)(null);function n(){o("click"),r.value&&clearTimeout(r.value),t.value=!1,(0,l.nextTick)((()=>{t.value=!0,r.value=setTimeout((()=>t.value=!1),500)}))}return(o,r)=>((0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:(0,l.withModifiers)(n,["stop"]),class:(0,l.normalizeClass)(["feedback",{activated:t.value,left:e.left}])},[(0,l.renderSlot)(o.$slots,"default")],10,ae))}});const ue=(0,c.Z)(se,[["__scopeId","data-v-5bbcedd3"]]);var me=ue;const ce=e=>((0,l.pushScopeId)("data-v-4c4580ca"),e=e(),(0,l.popScopeId)(),e),fe=ce((()=>(0,l.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),de={key:0,class:"actions"},ye=ce((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"content_paste",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),be=ce((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"content_copy",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),he=[be],pe=ce((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"edit",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ve=[pe],Se=ce((()=>(0,l.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ge={key:1,class:"actions"},Ne=ce((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"check",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ke=[Ne],Ve=ce((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"close",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Me=[Ve],xe={key:2,class:"details"},we={class:"save-version"},Ce=ce((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ze={key:0},Be={key:3,class:"details"},Ee={key:4,class:"details error"},Pe=ce((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var Ie=(0,l.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:o}){const t=e,{save:r}=(0,l.toRefs)(t),n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=(0,l.ref)(!1),s=(0,l.ref)(!1),u=(0,l.ref)("");(0,l.watch)(a,(()=>u.value=r.value.name||""));const m=(0,l.computed)((()=>r.value&&r.value.id===i.Z.id)),c=(0,l.computed)((()=>m.value?i.Z.time:r.value&&r.value.time||0));function f(){o("editName",u.value),a.value=!1}return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["save",{active:(0,l.unref)(m)}])},[fe,(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",de,[(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==s.value&&null!==s.value&&s.value[Symbol.for("!")]?s.value[Symbol.for("!")]():!s.value)()?((0,l.openBlock)(),(0,l.createBlock)(me,{key:0,onClick:t[0]||(t[0]=e=>o("export")),class:"button",left:""},{default:(0,l.withCtx)((()=>[ye])),_:1})):(0,l.createCommentVNode)("",!0),(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==s.value&&null!==s.value&&s.value[Symbol.for("!")]?s.value[Symbol.for("!")]():!s.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,onClick:t[1]||(t[1]=e=>o("duplicate")),class:"button"},he)):(0,l.createCommentVNode)("",!0),(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==s.value&&null!==s.value&&s.value[Symbol.for("!")]?s.value[Symbol.for("!")]():!s.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:2,onClick:t[2]||(t[2]=e=>a.value=(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()),class:"button"},ve)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(ie,{disabled:(0,l.unref)(m),onClick:t[3]||(t[3]=e=>o("delete")),onConfirmingChanged:t[4]||(t[4]=e=>s.value=e)},{default:(0,l.withCtx)((()=>[Se])),_:1},8,["disabled"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",ge,[(0,l.createElementVNode)("button",{onClick:f,class:"button"},ke),(0,l.createElementVNode)("button",{onClick:t[5]||(t[5]=e=>a.value=(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()),class:"button"},Me)])),(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",xe,[(0,l.createElementVNode)("button",{class:"button open",onClick:t[6]||(t[6]=e=>o("open"))},[(0,l.createElementVNode)("h3",null,(0,l.toDisplayString)((0,l.unref)(r).name),1)]),(0,l.createElementVNode)("span",we,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r).modVersion)):"v"+(0,l.toDisplayString)((0,l.unref)(r).modVersion))(),1),Ce,(0,l.unref)(c)?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ze,(()=>"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(n).format((0,l.unref)(c)))):"Last played "+(0,l.toDisplayString)((0,l.unref)(n).format((0,l.unref)(c))))(),1)):(0,l.createCommentVNode)("",!0)])):(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&a.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",Be,[(0,l.createVNode)(Q.Z,{modelValue:u.value,"onUpdate:modelValue":t[7]||(t[7]=e=>u.value=e),class:"editname",onSubmit:f},null,8,["modelValue"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Ee,[(0,l.createTextVNode)((()=>" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r).id)):" Error: Failed to load save with id "+(0,l.toDisplayString)((0,l.unref)(r).id))(),1),Pe,(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(r).error),1)]))],2))}});const Te=(0,c.Z)(Ie,[["__scopeId","data-v-4c4580ca"]]);var Fe=Te,De=t(9980),Oe=t.n(De);const _e=e=>((0,l.pushScopeId)("data-v-199ffea0"),e=e(),(0,l.popScopeId)(),e),Re=_e((()=>(0,l.createElementVNode)("h2",null,"Saves Manager",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),je={class:"modal-footer"},Ue={class:"field"},Ae=_e((()=>(0,l.createElementVNode)("span",{class:"field-title"},"Create Save",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),qe={class:"field-buttons"},Le={class:"footer"},ze=_e((()=>(0,l.createElementVNode)("div",{style:{"flex-grow":"1"}},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var We=(0,l.defineComponent)({setup(e,{expose:o}){const r=(0,l.ref)(!1),n=(0,l.ref)(null);o({open(){r.value=!0}});const a=(0,l.ref)(!1),s=(0,l.ref)("");(0,l.watch)(s,(e=>{e?(0,l.nextTick)((()=>{try{const o=JSON.parse(decodeURIComponent(escape(atob(e))));if((()=>void 0!==typeof o&&null!==typeof o&&(typeof o)[Symbol.for("!==")]?(typeof o)[Symbol.for("!==")]("object"):"object"!==typeof o)())return void(a.value=!0);const t=(0,K.QI)();o.id=t,localStorage.setItem(t,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),s.value="",a.value=!1,U.ZP.saves.push(t)}catch(o){a.value=!0}})):a.value=!1}));let u=t(7634),m=(0,l.ref)(u.keys().reduce(((e,o)=>(e.push({label:o.slice(2,(()=>4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4)()),value:u(o).default}),e)),[]));const c=(0,l.shallowReactive)({});function f(e){if((()=>void 0!==c[e]&&null!==c[e]&&c[e][Symbol.for("==")]?c[e][Symbol.for("==")](null):null==c[e])()){const t=localStorage.getItem(e);if((()=>void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t)())c[e]={error:"Save doesn't exist in localStorage",id:e};else if("dW5kZWZpbmVk"===t)c[e]={error:"Save is undefined",id:e};else try{c[e]={...JSON.parse(decodeURIComponent(escape(atob(t)))),id:e}}catch(o){c[e]={error:o,id:e},console.warn(`SavesManager: Failed to load info about save with id ${e}:\n${o}\n${t}`)}}return c[e]}(0,l.watch)(r,(e=>{e&&Object.keys(c).forEach((e=>(()=>void 0!==c&&null!==c&&c[Symbol.for("delete")]?c[Symbol.for("delete")]("key"):delete c.key)()))}));const d=(0,l.computed)((()=>U.ZP.saves.reduce(((e,o)=>(e[o]=f(o),e)),{})));function b(e){let o;o=i.Z.id===e?(0,K.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(d.value[e]))));const t=document.createElement("textarea");t.value=o,document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(t)}function h(e){i.Z.id===e&&(0,K.a1)();const o={...d.value[e],id:(0,K.QI)()};localStorage.setItem(o.id,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),U.ZP.saves.push(o.id)}function p(e){U.ZP.saves=U.ZP.saves.filter((o=>(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](e):o!==e)())),localStorage.removeItem(e),c[e]=void 0}function v(e){d.value[i.Z.id].time=i.Z.time,(0,K.a1)(),(0,K.uW)(d.value[e]),c[e]=void 0}function S(e){const o=JSON.parse(decodeURIComponent(escape(atob(e))));o.id=(0,K.QI)(),localStorage.setItem(o.id,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),U.ZP.saves.push(o.id)}function g(e,o){const t=d.value[e];t&&(t.name=o,i.Z.id===e?(i.Z.name=o,(0,K.a1)()):(localStorage.setItem(e,btoa(unescape(encodeURIComponent(JSON.stringify(t))))),c[e]=void 0))}return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(y.Z,{modelValue:r.value,"onUpdate:modelValue":o[4]||(o[4]=e=>r.value=e),ref_key:"modal",ref:n},{header:(0,l.withCtx)((()=>[Re])),body:(0,l.withCtx)((()=>[(0,l.unref)(n.value?.isOpen)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Oe()),{key:0,list:(0,l.unref)(U.ZP).saves,handle:".handle",itemKey:e=>e},{item:(0,l.withCtx)((({element:e})=>[(0,l.createVNode)(Fe,{save:(0,l.unref)(d)[e],onOpen:o=>v(e),onExport:o=>b(e),onEditName:o=>g(e,o),onDuplicate:o=>h(e),onDelete:o=>p(e)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])])),_:1},8,["list","itemKey"])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",je,[(0,l.createVNode)(Q.Z,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e),title:"Import Save",placeholder:"Paste your save here!",class:(0,l.normalizeClass)({importingFailed:a.value})},null,8,["modelValue","class"]),(0,l.createElementVNode)("div",Ue,[Ae,(0,l.createElementVNode)("div",qe,[(0,l.createElementVNode)("button",{class:"button",onClick:o[1]||(o[1]=(...e)=>(0,l.unref)(K.xM)&&(0,l.unref)(K.xM)(...e))},"New Game"),(()=>void 0!==Object.keys((0,l.unref)(m)).length&&null!==Object.keys((0,l.unref)(m)).length&&Object.keys((0,l.unref)(m)).length[Symbol.for(">")]?Object.keys((0,l.unref)(m)).length[Symbol.for(">")](0):Object.keys((0,l.unref)(m)).length>0)()?((0,l.openBlock)(),(0,l.createBlock)(L.Z,{key:0,options:(0,l.unref)(m),modelValue:void 0,"onUpdate:modelValue":o[2]||(o[2]=e=>S(e)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",Le,[ze,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:o[3]||(o[3]=e=>r.value=!1)}," Close ")])])])),_:1},8,["modelValue"]))}});const Ge=(0,c.Z)(We,[["__scopeId","data-v-199ffea0"]]);var He=Ge;const Ye=e=>((0,l.pushScopeId)("data-v-72eb8c78"),e=e(),(0,l.popScopeId)(),e),Je=["src","alt"],$e={key:1,class:"title"},Xe=Ye((()=>(0,l.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ke={class:"discord"},Qe={class:"discord-links"},eo={key:0},oo=["href"],to=Ye((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),lo=Ye((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ro={href:"https://forums.moddingtree.com/",target:"_blank"},no=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"forum",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),io=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"info",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ao=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),so=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"settings",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),uo=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),mo=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"settings",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),co=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"info",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),fo={href:"https://forums.moddingtree.com/",target:"_blank"},yo=Ye((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"forum",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),bo={class:"discord"},ho={class:"discord-links"},po={key:0},vo=["href"],So=Ye((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),go=Ye((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var No=(0,l.defineComponent)({setup(e){const o=(0,l.ref)(null),t=(0,l.ref)(null),n=(0,l.ref)(null),i=(0,l.ref)(null),{useHeader:a,banner:s,title:u,discordName:m,discordLink:c,versionNumber:f}=r;function d(){window.open(c,"mywindow")}return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:0,class:"nav"},e.$attrs),[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,src:(0,l.unref)(s),height:"100%",alt:(0,l.unref)(u)},null,8,Je)):((0,l.openBlock)(),(0,l.createElementBlock)("div",$e,(0,l.toDisplayString)((0,l.unref)(u)),1)),(0,l.createElementVNode)("div",{onClick:r[0]||(r[0]=e=>i.value?.open()),class:"version-container"},[(0,l.createVNode)(z.Z,{display:"Changelog",bottom:"",class:"version"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("span",null,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"v"+(0,l.toDisplayString)((0,l.unref)(f)))(),1)])),_:1})]),Xe,(0,l.createElementVNode)("div",Ke,[(0,l.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",Qe,[(()=>void 0!==(0,l.unref)(c)&&null!==(0,l.unref)(c)&&(0,l.unref)(c)[Symbol.for("!==")]?(0,l.unref)(c)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(c))()?((0,l.openBlock)(),(0,l.createElementBlock)("li",eo,[(0,l.createElementVNode)("a",{href:(0,l.unref)(c),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,oo)])):(0,l.createCommentVNode)("",!0),to,lo])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",ro,[(0,l.createVNode)(z.Z,{display:"Forums",bottom:"",yoffset:"5px"},{default:(0,l.withCtx)((()=>[no])),_:1})])]),(0,l.createElementVNode)("div",{onClick:r[1]||(r[1]=e=>o.value?.open())},[(0,l.createVNode)(z.Z,{display:"Info",bottom:"",class:"info"},{default:(0,l.withCtx)((()=>[io])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[2]||(r[2]=e=>t.value?.open())},[(0,l.createVNode)(z.Z,{display:"Saves",bottom:"",xoffset:"-20px"},{default:(0,l.withCtx)((()=>[ao])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[3]||(r[3]=e=>n.value?.open())},[(0,l.createVNode)(z.Z,{display:"Options",bottom:"",xoffset:"-66px"},{default:(0,l.withCtx)((()=>[so])),_:1})])],16)):((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:1,class:"overlay-nav"},e.$attrs),[(0,l.createElementVNode)("div",{onClick:r[4]||(r[4]=e=>i.value?.open()),class:"version-container"},[(0,l.createVNode)(z.Z,{display:"Changelog",right:"",xoffset:"25%",class:"version"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("span",null,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"v"+(0,l.toDisplayString)((0,l.unref)(f)))(),1)])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[5]||(r[5]=e=>t.value?.open())},[(0,l.createVNode)(z.Z,{display:"Saves",right:""},{default:(0,l.withCtx)((()=>[uo])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[6]||(r[6]=e=>n.value?.open())},[(0,l.createVNode)(z.Z,{display:"Options",right:""},{default:(0,l.withCtx)((()=>[mo])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[7]||(r[7]=e=>o.value?.open())},[(0,l.createVNode)(z.Z,{display:"Info",right:""},{default:(0,l.withCtx)((()=>[co])),_:1})]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",fo,[(0,l.createVNode)(z.Z,{display:"Forums",right:"",xoffset:"7px"},{default:(0,l.withCtx)((()=>[yo])),_:1})])]),(0,l.createElementVNode)("div",bo,[(0,l.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",ho,[(()=>void 0!==(0,l.unref)(c)&&null!==(0,l.unref)(c)&&(0,l.unref)(c)[Symbol.for("!==")]?(0,l.unref)(c)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(c))()?((0,l.openBlock)(),(0,l.createElementBlock)("li",po,[(0,l.createElementVNode)("a",{href:(0,l.unref)(c),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,vo)])):(0,l.createCommentVNode)("",!0),So,go])])],16)),(0,l.createVNode)(R,{ref_key:"info",ref:o,changelog:i.value},null,8,["changelog"]),(0,l.createVNode)(He,{ref_key:"savesManager",ref:t},null,512),(0,l.createVNode)(X,{ref_key:"options",ref:n},null,512),(0,l.createVNode)(g,{ref_key:"changelog",ref:i},null,512)],64))}});const ko=(0,c.Z)(No,[["__scopeId","data-v-72eb8c78"]]);var Vo=ko;const Mo={class:"tabs-container"},xo={class:"inner-tab"},wo={key:1,class:"separator"};var Co=(0,l.defineComponent)({setup(e){const o=(0,l.toRef)(i.Z,"tabs"),t=(0,l.computed)((()=>Object.keys(n.layers))),a=r.useHeader;function s(e){const{display:o,minimized:t,minWidth:l,name:r,color:n,style:i,classes:a,links:s,minimizable:u}=e;return{display:o,minimized:t,minWidth:l,name:r,color:n,style:i,classes:a,links:s,minimizable:u}}return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",Mo,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(o),((r,i)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:i,class:"tab",ref_for:!0,ref:`tab-${i}`},[0===i&&(()=>void 0!==(0,l.unref)(a)&&null!==(0,l.unref)(a)&&(0,l.unref)(a)[Symbol.for("!")]?(0,l.unref)(a)[Symbol.for("!")]():!(0,l.unref)(a))()?((0,l.openBlock)(),(0,l.createBlock)(Vo,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",xo,[(0,l.unref)(t).includes(r)?((0,l.openBlock)(),(0,l.createBlock)(d,(0,l.mergeProps)({key:0},s((0,l.unref)(n.layers)[r]),{index:i,tab:()=>e.$refs[`tab-${i}`]?.[0]}),null,16,["index","tab"])):((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(r),{key:1,index:i},null,8,["index"]))]),(()=>void 0!==i&&null!==i&&i[Symbol.for("!==")]?i[Symbol.for("!==")]((0,l.unref)(o).length-1):i!==(0,l.unref)(o).length-1)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",wo)):(0,l.createCommentVNode)("",!0)])))),128))]))}});const Zo=(0,c.Z)(Co,[["__scopeId","data-v-6bcb9872"]]);var Bo=Zo,Eo=t(4064);const Po=e=>((0,l.pushScopeId)("data-v-364b55bc"),e=e(),(0,l.popScopeId)(),e),Io={class:"game-over-modal-header"},To=["src","alt"],Fo={class:"game-over-modal-title"},Do=Po((()=>(0,l.createElementVNode)("h2",null,"Congratulations!",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Oo={key:0},_o=Po((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ro=Po((()=>(0,l.createElementVNode)("div",null," Please check the Discord to discuss the game or to check for new content updates! ",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),jo=Po((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Uo=["href"],Ao=Po((()=>(0,l.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var qo=(0,l.defineComponent)({setup(e){const{title:o,logo:t,discordName:n,discordLink:a,versionNumber:s,versionTitle:u}=r,m=(0,l.computed)((()=>(0,N.mr)(i.Z.timePlayed))),c=(0,l.computed)((()=>Eo.hasWon.value&&(()=>void 0!==i.Z.keepGoing&&null!==i.Z.keepGoing&&i.Z.keepGoing[Symbol.for("!")]?i.Z.keepGoing[Symbol.for("!")]():!i.Z.keepGoing)())),f=(0,l.toRef)(i.Z,"autosave");function d(){i.Z.keepGoing=!0}function b(){(0,K.uW)((0,K.xM)())}return(e,r)=>((0,l.openBlock)(),(0,l.createBlock)(y.Z,{"model-value":(0,l.unref)(c)},{header:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",Io,[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,l.unref)(t),alt:(0,l.unref)(o)},null,8,To)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Fo,[Do,(0,l.createElementVNode)("h4",null,(()=>"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": "!==void 0&&"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": "!==null&&("You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": ")[Symbol.for("+")]?("You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(u))):"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": "+(0,l.toDisplayString)((0,l.unref)(u)))(),1)])])])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",Oo,[(0,l.createElementVNode)("div",null,(()=>"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==void 0&&"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==null&&("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")]?("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,l.toDisplayString)((0,l.unref)(m))+" to beat the game.")(),1),_o,Ro,jo,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(a),class:"game-over-modal-discord-link"},[Ao,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(n))):" "+(0,l.toDisplayString)((0,l.unref)(n)))(),1)],8,Uo)]),(0,l.createVNode)(q.Z,{title:"Autosave",modelValue:(0,l.unref)(f),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",{class:"game-over-footer"},[(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Keep Going"),(0,l.createElementVNode)("button",{onClick:b,class:"button danger"},"Play Again")])])),_:1},8,["model-value"]))}});const Lo=(0,c.Z)(qo,[["__scopeId","data-v-364b55bc"]]);var zo=Lo,Wo=t(3032);const Go=e=>((0,l.pushScopeId)("data-v-66a04520"),e=e(),(0,l.popScopeId)(),e),Ho=Go((()=>(0,l.createElementVNode)("div",{class:"nan-modal-header"},[(0,l.createElementVNode)("h2",null,"NaN value detected!")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Yo={key:0},Jo=Go((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),$o=["href"],Xo=Go((()=>(0,l.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ko=Go((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Qo={class:"nan-footer"};var et=(0,l.defineComponent)({setup(e){const{discordName:o,discordLink:t}=r,n=(0,l.toRef)(i.Z,"autosave"),a=(0,l.toRef)(Wo.Z,"hasNaN"),s=(0,l.ref)(null),u=(0,l.computed)((()=>Wo.Z.NaNPath.join("."))),m=(0,l.computed)((()=>Wo.Z.NaNPath.slice((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())[0])),c=(0,l.computed)((()=>Wo.Z.NaNReceiver&&m.value?Wo.Z.NaNReceiver[m.value]:null)),f=(0,l.computed)({get(){return 0===i.Z.devSpeed},set(e){i.Z.devSpeed=e?null:0}});function d(){Wo.Z.NaNReceiver&&m.value&&(Wo.Z.NaNReceiver[m.value]=new N.ZP(0),Wo.Z.hasNaN=!1)}function b(){Wo.Z.NaNReceiver&&m.value&&(Wo.Z.NaNReceiver[m.value]=new N.ZP(1),Wo.Z.hasNaN=!1)}function h(){Wo.Z.NaNReceiver&&m.value&&(Wo.Z.NaNReceiver[m.value]=new N.ZP(NaN),Wo.Z.hasNaN=!1)}return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(y.Z,(0,l.mergeProps)({modelValue:(0,l.unref)(a),"onUpdate:modelValue":r[4]||(r[4]=e=>(0,l.isRef)(a)?a.value=e:null)},e.$attrs),{header:(0,l.withCtx)((()=>[Ho])),body:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",null,[(0,l.createTextVNode)((()=>' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u))!==void 0&&' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u))!==null&&(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u)))[Symbol.for("+")]?(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u))+'" to NaN')(),1),(0,l.unref)(c)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Yo,(()=>(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(c)))!==void 0&&(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(c)))!==null&&((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(c))))[Symbol.for("+")]?((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(c))))[Symbol.for("+")](")"):(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(c)))+")")(),1)):(0,l.createCommentVNode)("",!0),(0,l.createTextVNode)((()=>". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled"))[Symbol.for("+")](". Check the console for more details, and consider sharing it with the developers on discord. "):". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ")(),1)]),Jo,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(t),class:"nan-modal-discord-link"},[Xo,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(o))):" "+(0,l.toDisplayString)((0,l.unref)(o)))(),1)],8,$o)]),Ko,(0,l.createVNode)(q.Z,{title:"Autosave",modelValue:(0,l.unref)(n),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,l.isRef)(n)?n.value=e:null)},null,8,["modelValue"]),(0,l.createVNode)(q.Z,{title:"Pause game",modelValue:(0,l.unref)(f),"onUpdate:modelValue":r[1]||(r[1]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["modelValue"])])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",Qo,[(0,l.createElementVNode)("button",{onClick:r[2]||(r[2]=e=>s.value?.open()),class:"button"},"Open Saves Manager"),(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Set to 0"),(0,l.createElementVNode)("button",{onClick:b,class:"button"},"Set to 1"),(0,l.unref)(c)&&(0,l.unref)(N.ZP).neq((0,l.unref)(c),0)&&(0,l.unref)(N.ZP).neq((0,l.unref)(c),1)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:r[3]||(r[3]=e=>a.value=!1),class:"button"}," Set to previous ")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:h,class:"button danger"},"Ignore")])])),_:1},16,["modelValue"]),(0,l.createVNode)(He,{ref_key:"savesManager",ref:s},null,512)],64))}});const ot=(0,c.Z)(et,[["__scopeId","data-v-66a04520"]]);var tt=ot;const lt={key:0,class:"tpsDisplay"},rt={key:0,class:"low"};var nt=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>N.ZP.div(Wo.Z.lastTenTicks.length,Wo.Z.lastTenTicks.reduce(((e,o)=>(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](o):e+o)()),0)))),t=(0,l.ref)([]);(0,l.watchEffect)((()=>{t.value.push(Math.round(o.value.toNumber())),(()=>void 0!==t.value.length&&null!==t.value.length&&t.value.length[Symbol.for(">")]?t.value.length[Symbol.for(">")](10):t.value.length>10)()&&(t.value=t.value.slice(1))}));const r=(0,l.computed)((()=>t.value.reduce(((e,o)=>N.ZP.max(e,o)),0))),n=(0,l.computed)((()=>N.ZP.sub(o.value,r.value).gt(1)));return(e,t)=>(()=>void 0!==(0,l.unref)(o).isNan()&&null!==(0,l.unref)(o).isNan()&&(0,l.unref)(o).isNan()[Symbol.for("!")]?(0,l.unref)(o).isNan()[Symbol.for("!")]():!(0,l.unref)(o).isNan())()?((0,l.openBlock)(),(0,l.createElementBlock)("div",lt,[(0,l.createTextVNode)((()=>" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o)))!==void 0&&" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o)))!==null&&(" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o))))[Symbol.for("+")]?(" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o))))[Symbol.for("+")](" "):" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o)))+" ")(),1),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((()=>[(0,l.unref)(n)?((0,l.openBlock)(),(0,l.createElementBlock)("span",rt,(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(r))),1)):(0,l.createCommentVNode)("",!0)])),_:1})])):(0,l.createCommentVNode)("",!0)}});const it=(0,c.Z)(nt,[["__scopeId","data-v-323f9b12"]]);var at=it,st=(0,l.defineComponent)({setup(e){function o(){}const t=r.useHeader,n=(0,l.computed)((()=>j.Z[U.ZP.theme].variables)),i=(0,l.toRef)(U.ZP,"showTPS");return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",{id:"modal-root",style:(0,l.normalizeStyle)((0,l.unref)(n))},null,4),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["app",{useHeader:(0,l.unref)(t)}]),onMousemove:o,style:(0,l.normalizeStyle)((0,l.unref)(n))},[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createBlock)(Vo,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Bo),(0,l.unref)((0,l.unref)(i))?((0,l.openBlock)(),(0,l.createBlock)(at,{key:1})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(zo),(0,l.createVNode)(tt)],38)],64))}});const ut=(0,c.Z)(st,[["__scopeId","data-v-e0e491f6"]]);var mt=ut;requestAnimationFrame((async()=>{console.log("%cMade in Profectus%c\nLearn more at www.moddingtree.com","font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await(0,K.zD)();const{globalBus:e,startGameLoop:o}=await t(7302),n=window.vue=(0,l.createApp)({...mt});e.emit("setupVue",n),n.mount("#app"),document.title=r.title,o()})),window.modInfo=r},9706:function(e,o,t){"use strict";t.d(o,{WU:function(){return a},Ht:function(){return s},mr:function(){return u}});var l=t(3243);const{exponentialFormat:r,commaFormat:n,regularFormat:i,format:a,formatWhole:s,formatTime:u,toPlaces:m,formatSmall:c,invertOOM:f}=l;window.Decimal=l["default"],window.exponentialFormat=r,window.commaFormat=n,window.regularFormat=i,window.format=a,window.formatWhole=s,window.formatTime=u,window.toPlaces=m,window.formatSmall=c,window.invertOOM=f,o["ZP"]=l["default"]},3243:function(e,o,t){"use strict";t.r(o),t.d(o,{exponentialFormat:function(){return i},commaFormat:function(){return a},regularFormat:function(){return s},format:function(){return v},formatWhole:function(){return S},formatTime:function(){return g},toPlaces:function(){return N},formatSmall:function(){return k},invertOOM:function(){return V}});var l=t(1008),r=t(2345);o["default"]=l.Z;const n=new l.Z(1);function i(e,o,t=!0){let i=l.Z.log10(e).floor(),s=l.Z.div(e,l.Z.pow(10,i));"10"===s.toStringWithDecimalPlaces(o)&&(s=n,i=i.add(1));const u=i.gte(1e9)?v(i,Math.max(Math.max(o,3),r.defaultDecimalsShown)):i.gte(1e4)?a(i,0):i.toStringWithDecimalPlaces(0);return t?(()=>s.toStringWithDecimalPlaces(o)+"e"!==void 0&&s.toStringWithDecimalPlaces(o)+"e"!==null&&(s.toStringWithDecimalPlaces(o)+"e")[Symbol.for("+")]?(s.toStringWithDecimalPlaces(o)+"e")[Symbol.for("+")](u):s.toStringWithDecimalPlaces(o)+"e"+u)():(()=>"e"[Symbol.for("+")]?"e"[Symbol.for("+")](u):"e"+u)()}function a(e,o){if(null===e||void 0===e)return"NaN";if(e=new l.Z(e),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.001):e.mag<.001)())return(0).toFixed(o);const t=e.toStringWithDecimalPlaces(o),r=t.split(".");return r[0]=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),(()=>void 0!==r.length&&null!==r.length&&r.length[Symbol.for("==")]?r.length[Symbol.for("==")](1):1==r.length)()?r[0]:(()=>r[0]+"."!==void 0&&r[0]+"."!==null&&(r[0]+".")[Symbol.for("+")]?(r[0]+".")[Symbol.for("+")](r[1]):r[0]+"."+r[1])()}function s(e,o){return null===e||void 0===e?"NaN":(e=new l.Z(e),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e-4):e.mag<1e-4)()?(0).toFixed(o):((()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.1):e.mag<.1)()&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](0):0!==o)()&&(o=Math.max(Math.max(o,4),r.defaultDecimalsShown)),e.toStringWithDecimalPlaces(o)))}const u=new l.Z("eeee1000"),m=new l.Z("e100000"),c=new l.Z("e1000"),f=new l.Z(1e9),d=new l.Z(1e6),y=new l.Z(1e3),b=new l.Z(.98),h=new l.Z(.001),p=new l.Z(0);function v(e,o,t){if((()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()&&(o=r.defaultDecimalsShown),t=t||r.allowSmall,e=new l.Z(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if((()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)())return(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](v(e.neg(),o)):"-"+v(e.neg(),o))();if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(u)){const o=e.slog();return o.gte(d)?(()=>"F"[Symbol.for("+")]?"F"[Symbol.for("+")](v(o.floor())):"F"+v(o.floor()))():(()=>l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](a(o.floor(),0)):l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"+a(o.floor(),0))()}if(e.gte(m))return i(e,0,!1);if(e.gte(c))return i(e,0);if(e.gte(f))return i(e,o);if(e.gte(y))return a(e,0);if(e.gte(h)||(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)())return s(e,o);if(e.eq(p))return(0).toFixed(o);if(e=V(e),e.lt(c)){const t=i(e,o);return t.replace(/([^(?:e|F)]*)$/,"-$1")}return(()=>void 0!==v(e,o)&&null!==v(e,o)&&v(e,o)[Symbol.for("+")]?v(e,o)[Symbol.for("+")]("⁻¹"):v(e,o)+"⁻¹")()}function S(e){return e=new l.Z(e),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)()?(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](S(e.neg())):"-"+S(e.neg()))():e.gte(f)||e.lte(b)&&(()=>void 0!==e.eq(p)&&null!==e.eq(p)&&e.eq(p)[Symbol.for("!")]?e.eq(p)[Symbol.for("!")]():!e.eq(p))()?v(e):v(e,0)}function g(e){return l.Z.lt(e,0)?(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](g(l.Z.neg(e))):"-"+g(l.Z.neg(e)))():l.Z.gt(e,(()=>2[Symbol.for("**")]?2[Symbol.for("**")](51):2**51)())?(()=>void 0!==v(l.Z.div(e,31536e3))&&null!==v(l.Z.div(e,31536e3))&&v(l.Z.div(e,31536e3))[Symbol.for("+")]?v(l.Z.div(e,31536e3))[Symbol.for("+")]("y"):v(l.Z.div(e,31536e3))+"y")():(e=new l.Z(e).toNumber(),(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](60):e<60)()?(()=>void 0!==v(e)&&null!==v(e)&&v(e)[Symbol.for("+")]?v(e)[Symbol.for("+")]("s"):v(e)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](3600):e<3600)()?(()=>S(Math.floor(e/60))+"m "+v(e%60)!==void 0&&S(Math.floor(e/60))+"m "+v(e%60)!==null&&(S(Math.floor(e/60))+"m "+v(e%60))[Symbol.for("+")]?(S(Math.floor(e/60))+"m "+v(e%60))[Symbol.for("+")]("s"):S(Math.floor(e/60))+"m "+v(e%60)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](86400):e<86400)()?(()=>S(Math.floor(e/3600))+"h "+S(Math.floor(e/60)%60)+"m "+S(e%60)!==void 0&&S(Math.floor(e/3600))+"h "+S(Math.floor(e/60)%60)+"m "+S(e%60)!==null&&(S(Math.floor(e/3600))+"h "+S(Math.floor(e/60)%60)+"m "+S(e%60))[Symbol.for("+")]?(S(Math.floor(e/3600))+"h "+S(Math.floor(e/60)%60)+"m "+S(e%60))[Symbol.for("+")]("s"):S(Math.floor(e/3600))+"h "+S(Math.floor(e/60)%60)+"m "+S(e%60)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](31536e3):e<31536e3)()?(()=>S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)+"h "+S(Math.floor(e/60)%60)!==void 0&&S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)+"h "+S(Math.floor(e/60)%60)!==null&&(S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)+"h "+S(Math.floor(e/60)%60))[Symbol.for("+")]?(S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)+"h "+S(Math.floor(e/60)%60))[Symbol.for("+")]("m"):S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)+"h "+S(Math.floor(e/60)%60)+"m")():(()=>S(Math.floor(e/31536e3))+"y "+S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)!==void 0&&S(Math.floor(e/31536e3))+"y "+S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)!==null&&(S(Math.floor(e/31536e3))+"y "+S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24))[Symbol.for("+")]?(S(Math.floor(e/31536e3))+"y "+S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24))[Symbol.for("+")]("h"):S(Math.floor(e/31536e3))+"y "+S(Math.floor(e/84600)%365)+"d "+S(Math.floor(e/3600)%24)+"h")())}function N(e,o,t){e=new l.Z(e);let r=e.toStringWithDecimalPlaces(o);return new l.Z(r).gte(t)&&(r=l.Z.sub(t,Math.pow(.1,o)).toStringWithDecimalPlaces(o)),r}function k(e,o){return v(e,o,!0)}function V(e){let o=l.Z.log10(e).ceil();const t=l.Z.div(e,l.Z.pow(10,o));return o=o.neg(),e=new l.Z(10).pow(o).times(t),e}},1349:function(e,o,t){"use strict";function l(e){let o=e.replace(/([A-Z])/g," $1");return o=(()=>void 0!==o.charAt(0).toUpperCase()&&null!==o.charAt(0).toUpperCase()&&o.charAt(0).toUpperCase()[Symbol.for("+")]?o.charAt(0).toUpperCase()[Symbol.for("+")](o.slice(1)):o.charAt(0).toUpperCase()+o.slice(1))(),o}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e){return"function"===typeof e}t.d(o,{IJ:function(){return l},PO:function(){return r},mf:function(){return n}})},9583:function(e,o,t){"use strict";t.d(o,{mM:function(){return n},yB:function(){return i}});var l=t(4865),r=t(1349);const n=Symbol("DoNotCache");function i(e,o){const t=e[o];(0,r.mf)(t)&&0===t.length&&(()=>void 0!==t[n]&&null!==t[n]&&t[n][Symbol.for("!")]?t[n][Symbol.for("!")]():!t[n])()&&(e[o]=(0,l.computed)(t.bind(e)))}},3273:function(e,o,t){"use strict";t.d(o,{Le:function(){return l},c4:function(){return r},z2:function(){return n}});const l=Symbol("ProxyState"),r=Symbol("ProxyPath");function n(e){const o={};let t=!1;function r(){return(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)()&&(Object.assign(o,e()),t=!0),o}return new Proxy(o,{get(e,o){return o===l?r():r()[o]},set(){return console.error("Layers and features are shallow readonly"),!1},has(e,o){return o===l||Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(l,r){return(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)()&&(Object.assign(o,e()),t=!0),Object.getOwnPropertyDescriptor(l,r)}})}},463:function(e,o,t){"use strict";t.d(o,{a1:function(){return u},zD:function(){return m},xM:function(){return c},QI:function(){return f},uW:function(){return d},y6:function(){return y}});var l=t(2345),r=t(5967),n=t(9266),i=t(9706),a=t(3273);function s(e={}){return Object.assign({id:`${l.id}-0`,name:"Default Save",tabs:l.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:new i.ZP(0),timePlayed:new i.ZP(0),keepGoing:!1,modID:l.id,modVersion:l.versionNumber,layers:{}},e)}function u(){const e=btoa(unescape(encodeURIComponent((0,r.U)(r.Z[a.Le]))));return localStorage.setItem(r.Z.id,e),e}async function m(){(0,n.ri)();try{const e=localStorage.getItem(n.ZP.active);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void await d(c());const o=JSON.parse(decodeURIComponent(escape(atob(e))));if((()=>void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id)())return void await d(c());o.id=n.ZP.active,await d(o)}catch(e){console.error("Failed to load save. Falling back to new save.\n",e),await d(c())}}function c(){const e=f(),o=s({id:e});return localStorage.setItem(e,btoa(unescape(encodeURIComponent((0,r.U)(o))))),n.ZP.saves.push(e),o}function f(){let e,o=0;do{e=`${l.id}-${(()=>void 0!==o&&null!==o&&"object"===typeof o&&o[Symbol.for("postfix-increment")]?o[Symbol.for("postfix-increment")]():o++)()}`}while(localStorage.getItem(e));return e}async function d(e){console.info("Loading save",e);const{layers:o,removeLayer:a,addLayer:u}=await Promise.resolve().then(t.bind(t,9365)),{fixOldSave:m,getInitialLayers:c}=await Promise.resolve().then(t.bind(t,4064));for(const t in o)a(o[t]);c(e).forEach((o=>u(o,e))),e=s(e),e.offlineProd&&e.time&&((()=>void 0!==e.offlineTime&&null!==e.offlineTime&&e.offlineTime[Symbol.for("==")]?e.offlineTime[Symbol.for("==")](void 0):void 0==e.offlineTime)()&&(e.offlineTime=new i.ZP(0)),e.offlineTime=i.ZP.add(e.offlineTime,(()=>Date.now()-e.time!==void 0&&Date.now()-e.time!==null&&(Date.now()-e.time)[Symbol.for("/")]?(Date.now()-e.time)[Symbol.for("/")](1e3):(Date.now()-e.time)/1e3)())),e.time=Date.now(),(()=>void 0!==e.modVersion&&null!==e.modVersion&&e.modVersion[Symbol.for("!==")]?e.modVersion[Symbol.for("!==")](l.versionNumber):e.modVersion!==l.versionNumber)()&&m(e.modVersion,e),Object.assign(r.Z,e),n.ZP.active=r.Z.id}setInterval((()=>{r.Z.autosave&&u()}),1e3),window.onbeforeunload=()=>{r.Z.autosave&&u()},window.save=u;const y=window.hardReset=async()=>{await d(c())}},4064:function(e,o,t){"use strict";t.r(o),t.d(o,{fixOldSave:function(){return qt},getInitialLayers:function(){return Ut},hasWon:function(){return At},main:function(){return jt}});var l=t(4865);const r=e=>((0,l.pushScopeId)("data-v-07150322"),e=e(),(0,l.popScopeId)(),e),n=r((()=>(0,l.createElementVNode)("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[(0,l.createElementVNode)("g",{id:"P"},[(0,l.createElementVNode)("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),(0,l.createElementVNode)("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),(0,l.createElementVNode)("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),(0,l.createElementVNode)("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),(0,l.createElementVNode)("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),(0,l.createElementVNode)("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),(0,l.createElementVNode)("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));function i(e,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{appear:""},{default:(0,l.withCtx)((()=>[n])),_:1})}var a=t(3744);const s={},u=(0,a.Z)(s,[["render",i],["__scopeId","data-v-07150322"]]);var m=u,c=(0,l.defineComponent)({props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{style:(0,l.normalizeStyle)({width:e.width,height:e.height})},null,4))}});const f=c;var d=f,y=t(6113),b=t(9706),h=t(7302),p=t(4061);function v(e,o="points",t=0,l=!1){const r=(0,p.ax)(e);return r.displayName=o,r.precision=t,r.small=l,r}function S(e){const o=(0,p.ax)(e.value);return(0,l.watch)(e,(e=>{b.ZP.gt(e,o.value)&&(o.value=e)})),o}function g(e){const o=(0,p.ax)(e.value);return(0,l.watch)(e,((e,t)=>{b.ZP.gt(e,t)&&(o.value=b.ZP.add(o.value,b.ZP.sub(e,t)))})),o}function N(e,o){const t=(0,l.ref)(0),r=(0,l.ref)(0),n=(0,l.ref)(0);h.globalBus.on("update",(o=>{if(r.value=0,b.ZP.lte(e.value,1e100))return void(n.value=e.value);let l=e.value,i=n.value;if(n.value=l,b.ZP.gt(l,i))if(b.ZP.gte(l,"10^^8"))l=b.ZP.slog(l,1e10),i=b.ZP.slog(i,1e10),t.value=l.sub(i).div(o),r.value=(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)();else while(b.ZP.div(l,i).log(10).div(o).gte("100")&&(()=>void 0!==r.value&&null!==r.value&&r.value[Symbol.for("<=")]?r.value[Symbol.for("<=")](5):r.value<=5)()&&b.ZP.gt(i,0))l=b.ZP.log10(l),i=b.ZP.log10(i),t.value=l.sub(i).div(o),(()=>{void 0!==r.value&&null!==r.value&&"object"===typeof r.value&&r.value[Symbol.for("postfix-increment")]?r.value[Symbol.for("postfix-increment")]():r.value++})()}));const i=(0,l.computed)((()=>0===r.value?o?(()=>(0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName!==void 0&&(0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName!==null&&((0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]?((0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]("/s"):(0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName+"/s")():"":(()=>(0,b.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)!==void 0&&(0,b.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)!==null&&((0,b.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value))[Symbol.for("+")]?((0,b.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value))[Symbol.for("+")]("s/sec"):(0,b.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)+"s/sec")()));return i}function k(e,o){const t=o??e.value;return b.ZP.eq(e.precision,0)?(0,b.Ht)(t):(0,b.WU)(t,e.precision,e.small)}const V={key:0,class:"left-side-nodes"},M={key:1,class:"side-nodes"};function x(e,o,t,r,n,i){const a=(0,l.resolveComponent)("TreeNode");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.nodes),((o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",(0,l.mergeProps)({class:"row",key:t},e.$attrs),[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(o,((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherNodeProps(o),{"force-tooltip":o.forceTooltip}),null,16,["force-tooltip"])))),128))],16)))),128)),e.unref(e.leftSideNodes)?((0,l.openBlock)(),(0,l.createElementBlock)("span",V,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.leftSideNodes),((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherNodeProps(o),{"force-tooltip":o.forceTooltip,small:""}),null,16,["force-tooltip"])))),128))])):(0,l.createCommentVNode)("",!0),e.unref(e.rightSideNodes)?((0,l.openBlock)(),(0,l.createElementBlock)("span",M,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.rightSideNodes),((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherNodeProps(o),{"force-tooltip":o.forceTooltip,small:""}),null,16,["force-tooltip"])))),128))])):(0,l.createCommentVNode)("",!0)],64)}var w=t(1604);const C=["disabled"];function Z(e,o,t,r,n,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode"),u=(0,l.resolveComponent)("Tooltip");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createBlock)(u,(0,l.mergeProps)({key:0},e.tooltipToBind&&e.gatherTooltipProps(e.tooltipToBind),{display:e.tooltipDisplay,force:e.forceTooltip,style:{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},class:{treeNode:!0,can:e.unref(e.canClick),small:e.unref(e.small),...e.unref(e.classes)}}),{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("button",{onClick:o[0]||(o[0]=(...o)=>e.click&&e.click(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),style:(0,l.normalizeStyle)([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},e.unref(e.style)??[]]),disabled:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))()},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp))))],44,C),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])])),_:1},16,["display","force","style","class"])):(0,l.createCommentVNode)("",!0)}var B=t(630),E=(0,l.defineComponent)({props:{id:null},setup(e){const o=e,t=(0,l.toRefs)(o),r=(0,l.inject)(B.Z),n=(0,l.inject)(B.w),i=(0,l.ref)(null),a=(0,l.computed)((()=>i.value&&i.value.parentElement));return r&&n&&((0,l.watch)([a,t.id],(([e,o],[t,i])=>{t&&n((0,l.unref)(i)),e&&r(o,e)})),(0,l.onUnmounted)((()=>n((0,l.unref)(t.id))))),(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"branch",ref_key:"node",ref:i},null,512))}});const P=(0,a.Z)(E,[["__scopeId","data-v-1318daf7"]]);var I=P;const T={key:0},F={key:0,class:"mark star"},D=["src"];var O=(0,l.defineComponent)({props:{mark:{type:[Boolean,String]}},setup(e){return(o,t)=>e.mark?((0,l.openBlock)(),(0,l.createElementBlock)("div",T,[!0===e.mark?((0,l.openBlock)(),(0,l.createElementBlock)("div",F)):((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:1,class:"mark",src:e.mark},null,8,D))])):(0,l.createCommentVNode)("",!0)}});const _=(0,a.Z)(O,[["__scopeId","data-v-c476c56a"]]);var R=_,j=t(5939);function U(e){const{display:o,top:t,left:l,right:r,bottom:n,xoffset:i,yoffset:a,force:s}=e;return{display:o,top:t,left:l,right:r,bottom:n,xoffset:i,yoffset:a,force:s}}var A=(0,l.defineComponent)({props:{display:(0,w.P5)(Object,String,Function),visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),tooltip:(0,w.P5)(Object,String,Function),onClick:Function,onHold:Function,color:(0,w.P5)(String),glowColor:(0,w.P5)(String),forceTooltip:{type:Object,required:!0},canClick:{type:(0,w.P5)(Boolean),required:!0},mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0},small:(0,w.P5)(Boolean)},components:{Tooltip:j.Z,MarkNode:R,LinkNode:I},setup(e){const{tooltip:o,forceTooltip:t,onClick:r,onHold:n,display:i}=(0,l.toRefs)(e);function a(e){e.shiftKey&&o?t.value=(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value)():(0,l.unref)(r)?.()}const s=(0,w.KO)(i),u=(0,l.shallowRef)(void 0);(0,l.watchEffect)((()=>{const e=(0,w.Uv)(o);"object"===typeof e&&(()=>void 0!==(0,w.RU)(e)&&null!==(0,w.RU)(e)&&(0,w.RU)(e)[Symbol.for("!")]?(0,w.RU)(e)[Symbol.for("!")]():!(0,w.RU)(e))()?u.value=e.display:u.value=e}));const m=(0,l.computed)((()=>{const e=(0,w.Uv)(o);return"object"===typeof e&&(()=>void 0!==(0,w.RU)(e)&&null!==(0,w.RU)(e)&&(0,w.RU)(e)[Symbol.for("!")]?(0,w.RU)(e)[Symbol.for("!")]():!(0,w.RU)(e))()?e:null})),{start:c,stop:f}=(0,w.ix)(r,n);return{click:a,start:c,stop:f,comp:s,tooltipDisplay:u,tooltipToBind:m,unref:l.unref,Visibility:y.EE,gatherTooltipProps:U,isCoercableComponent:w.RU}}});const q=(0,a.Z)(A,[["render",Z],["__scopeId","data-v-176052a6"]]);var L=q,z=(0,l.defineComponent)({props:{nodes:{type:(0,w.P5)(Array),required:!0},leftSideNodes:(0,w.P5)(Array),rightSideNodes:(0,w.P5)(Array)},components:{TreeNode:L},setup(){function e(e){const{display:o,visibility:t,style:l,classes:r,tooltip:n,onClick:i,onHold:a,color:s,glowColor:u,forceTooltip:m,canClick:c,mark:f,id:d}=e;return{display:o,visibility:t,style:l,classes:r,tooltip:n,onClick:i,onHold:a,color:s,glowColor:u,forceTooltip:m,canClick:c,mark:f,id:d}}return{gatherNodeProps:e,unref:l.unref}}});const W=(0,a.Z)(z,[["render",x],["__scopeId","data-v-e6ef63ea"]]);var G=W,H=(t(3243),t(9583)),Y=t(3273);const J=Symbol("TreeNode"),$=Symbol("Tree");function X(e){return(0,Y.z2)((()=>{const o=e();return o.id=(0,y.QI)("treeNode-"),o.type=J,o.tooltip?o.forceTooltip=(0,p.ax)(!1):o.forceTooltip=(0,l.ref)(!1),(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"canClick"),(0,y.Rh)(o,"canClick",!0),(0,H.yB)(o,"color"),(0,H.yB)(o,"display"),(0,H.yB)(o,"tooltip"),(0,H.yB)(o,"glowColor"),(0,H.yB)(o,"classes"),(0,H.yB)(o,"style"),(0,H.yB)(o,"mark"),o}))}function K(e){return(0,Y.z2)((()=>{const o=e();return o.id=(0,y.QI)("tree-"),o.type=$,o[y.wA]=G,o.isResetting=(0,l.ref)(!1),o.resettingNode=(0,l.ref)(null),o.reset=function(e){const t=o;t.isResetting.value=!0,t.resettingNode.value=e,t.resetPropagation?.(t,e),t.onReset?.(e),t.isResetting.value=!1,t.resettingNode.value=null},o.links=(0,l.computed)((()=>{const e=o;return(0,l.unref)(e.branches)??[]})),(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"nodes"),(0,H.yB)(o,"leftSideNodes"),(0,H.yB)(o,"rightSideNodes"),(0,H.yB)(o,"branches"),o[y.tj]=function(){const{nodes:e,leftSideNodes:o,rightSideNodes:t}=this;return{nodes:e,leftSideNodes:o,rightSideNodes:t}},o}))}const Q=function(e,o){const t=[o];let r=[o];if((()=>void 0!==e.branches&&null!==e.branches&&e.branches[Symbol.for("!=")]?e.branches[Symbol.for("!=")](null):null!=e.branches)()){const o=(0,l.unref)(e.branches);while((()=>void 0!==r.length&&null!==r.length&&r.length[Symbol.for(">")]?r.length[Symbol.for(">")](0):r.length>0)()){const e=[];r.forEach((l=>{o.filter((e=>e.startNode===l||e.endNode===l)).map((e=>e.startNode===l?e.endNode:e.startNode)).filter((e=>(()=>void 0!==t.includes(e)&&null!==t.includes(e)&&t.includes(e)[Symbol.for("!")]?t.includes(e)[Symbol.for("!")]():!t.includes(e))())).forEach((o=>{(()=>void 0!==e.includes(o)&&null!==e.includes(o)&&e.includes(o)[Symbol.for("!")]?e.includes(o)[Symbol.for("!")]():!e.includes(o))()&&(e.push(o),o.reset?.reset())}))})),r=e,t.push(...r)}}};var ee=t(9365),oe=t(5967),te=t(274);function le(e,o,t,r,n,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},e.unref(e.style)??[]]),class:(0,l.normalizeClass)({feature:!0,achievement:!0,locked:(()=>void 0!==e.unref(e.earned)&&null!==e.unref(e.earned)&&e.unref(e.earned)[Symbol.for("!")]?e.unref(e.earned)[Symbol.for("!")]():!e.unref(e.earned))(),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var re=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:(0,w.P5)(Object,String,Function),earned:{type:(0,w.P5)(Boolean),required:!0},image:(0,w.P5)(String),style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:I,MarkNode:R,Tooltip:j.Z},setup(e){const{display:o}=(0,l.toRefs)(e);return{component:(0,w.KO)(o),unref:l.unref,Visibility:y.EE}}});const ne=(0,a.Z)(re,[["render",le],["__scopeId","data-v-ac31d79a"]]);var ie=ne,ae=t(3002);t(343);function se(e="white",o="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${o} ${e}`,zIndex:1}}function ue(){return se("red","20px")}h.globalBus.on("setupVue",(e=>e.use(ae.ZP)));const me=Symbol("Achievement");function ce(e){return(0,Y.z2)((()=>{const o=e();return(0,p.Mv)(o,!1),o.id=(0,y.QI)("achievement-"),o.type=me,o[y.wA]=ie,o.earned=o[p.n9],o.complete=function(){o[p.n9].value=!0},(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"shouldEarn"),(0,H.yB)(o,"display"),(0,H.yB)(o,"mark"),(0,H.yB)(o,"image"),(0,H.yB)(o,"style"),(0,H.yB)(o,"classes"),o[y.tj]=function(){const{visibility:e,display:o,earned:t,image:l,style:r,classes:n,mark:i,id:a}=this;return{visibility:e,display:o,earned:t,image:l,style:r,classes:n,mark:i,id:a}},o}))}const fe=(0,ae.pm)(),de={};function ye(e,o,t,r,n,i){const a=(0,l.resolveComponent)("GridCell");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.rows),(o=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["row",{mergeAdjacent:e.mergeAdjacent}]),key:o},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.cols),(t=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherCellProps(e.unref(e.cells)[(()=>100*o!==void 0&&100*o!==null&&(100*o)[Symbol.for("+")]?(100*o)[Symbol.for("+")](t):100*o+t)()])),null,16)))),128))],2)))),128))],4)):(0,l.createCommentVNode)("",!0)}h.globalBus.on("addLayer",(e=>{const o=(0,y.bD)(e,me).filter((e=>(()=>void 0!==e.shouldEarn&&null!==e.shouldEarn&&e.shouldEarn[Symbol.for("!=")]?e.shouldEarn[Symbol.for("!=")](null):null!=e.shouldEarn)()));o.length&&(de[e.id]=e.on("postUpdate",(()=>{o.forEach((e=>{if((0,l.unref)(e.visibility)===y.EE.Visible&&(()=>void 0!==(0,l.unref)(e.earned)&&null!==(0,l.unref)(e.earned)&&(0,l.unref)(e.earned)[Symbol.for("!")]?(0,l.unref)(e.earned)[Symbol.for("!")]():!(0,l.unref)(e.earned))()&&(0,l.unref)(e.shouldEarn)&&(e[p.n9].value=!0,e.onComplete?.(),e.display)){const o=(0,w.MM)((0,l.unref)(e.display));fe.info((0,l.createVNode)("div",null,[(0,l.createVNode)("h3",null,[(0,l.createTextVNode)("Achievement earned!")]),(0,l.createVNode)("div",null,[(0,l.createVNode)(o,null,null)])]))}}))})))})),h.globalBus.on("removeLayer",(e=>{de[e.id]?.(),de[e.id]=void 0}));var be=t(1037),he=t(9266);const pe=["disabled"],ve={key:0};function Se(e,o,t,r,n,i){const a=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:(0,l.normalizeClass)({feature:!0,tile:!0,can:e.unref(e.canClick),locked:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))()}),style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),onClick:o[0]||(o[0]=(...o)=>e.onClick&&e.onClick(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),disabled:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))()},[e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",ve,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.titleComponent)))])):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component),{style:{"white-space":"pre-line"}})),(0,l.createVNode)(a,{id:e.id},null,8,["id"])],46,pe)):(0,l.createCommentVNode)("",!0)}var ge=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},onClick:Function,onHold:Function,display:{type:(0,w.P5)(Object,String,Function),required:!0},title:(0,w.P5)(Object,String,Function),style:(0,w.P5)(String,Object,Array),canClick:{type:(0,w.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{LinkNode:I},setup(e){const{onClick:o,onHold:t,title:r,display:n}=(0,l.toRefs)(e),{start:i,stop:a}=(0,w.ix)(o,t),s=(0,w.KO)(r),u=(0,w.vq)(n);return{start:i,stop:a,titleComponent:s,component:u,Visibility:y.EE,unref:l.unref}}});const Ne=(0,a.Z)(ge,[["render",Se],["__scopeId","data-v-bdb02c70"]]);var ke=Ne,Ve=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},rows:{type:(0,w.P5)(Number),required:!0},cols:{type:(0,w.P5)(Number),required:!0},cells:{type:(0,w.P5)(Object),required:!0}},components:{GridCell:ke},setup(){const e=(0,l.computed)((()=>be.Z[he.ZP.theme].mergeAdjacent));function o(e){const{visibility:o,onClick:t,onHold:l,display:r,title:n,style:i,canClick:a,id:s}=e;return{visibility:o,onClick:t,onHold:l,display:r,title:n,style:i,canClick:a,id:s}}return{unref:l.unref,gatherCellProps:o,Visibility:y.EE,mergeAdjacent:e}}});const Me=(0,a.Z)(Ve,[["render",ye]]);var xe=Me,we=t(1349);Symbol("Grid");function Ce(e){return new Proxy({},Ze(e))}function Ze(e){const o=(0,l.computed)((()=>{const o=[];for(let t=1;(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")]((0,l.unref)(e.rows)):t<=(0,l.unref)(e.rows))();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("postfix-increment")]?t[Symbol.for("postfix-increment")]():t++)())for(let r=1;(()=>void 0!==r&&null!==r&&r[Symbol.for("<=")]?r[Symbol.for("<=")]((0,l.unref)(e.cols)):r<=(0,l.unref)(e.cols))();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("postfix-increment")]?r[Symbol.for("postfix-increment")]():r++)())o.push((()=>100*t!==void 0&&100*t!==null&&(100*t)[Symbol.for("+")]?(100*t)[Symbol.for("+")](r):100*t+r)().toString());return o}));return{get(t,l){return"isProxy"===l||("symbol"===typeof l?e[l]:(()=>void 0!==o.value.includes(l.toString())&&null!==o.value.includes(l.toString())&&o.value.includes(l.toString())[Symbol.for("!")]?o.value.includes(l.toString())[Symbol.for("!")]():!o.value.includes(l.toString()))()?void 0:((()=>void 0!==t[l]&&null!==t[l]&&t[l][Symbol.for("==")]?t[l][Symbol.for("==")](null):null==t[l])()&&(t[l]=new Proxy(e,Be(l.toString()))),t[l]))},set(e,o,t){return console.warn("Cannot set grid cells",e,o,t),!1},ownKeys(){return o.value},has(e,t){return o.value.includes(t.toString())},getOwnPropertyDescriptor(e,t){if(o.value.includes(t.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function Be(e){const o=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],t={};return{get(o,r,n){if("isProxy"===r)return!0;let i=o[r];return(0,we.mf)(i)?()=>i.call(n,e,o.getState(e)):(()=>void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i)()||"symbol"===typeof r?i:(r=(()=>void 0!==r.slice(0,1).toUpperCase()&&null!==r.slice(0,1).toUpperCase()&&r.slice(0,1).toUpperCase()[Symbol.for("+")]?r.slice(0,1).toUpperCase()[Symbol.for("+")](r.slice(1)):r.slice(0,1).toUpperCase()+r.slice(1))(),"startState"===r?i.call(n,e):(i=o[`get${r}`],(0,we.mf)(i)?((()=>r in t!==void 0&&r in t!==null&&(r in t)[Symbol.for("!")]?(r in t)[Symbol.for("!")]():!(r in t))()&&(t[r]=(0,l.computed)((()=>i.call(n,e,o.getState(e))))),t[r].value):(()=>void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i)()?(0,l.unref)(i):(i=o[`on${r}`],(0,we.mf)(i)?()=>i.call(n,e,o.getState(e)):(()=>void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i)()?i:o[r])))},set(o,t,l,r){return t=`set${(()=>void 0!==t.slice(0,1).toUpperCase()&&null!==t.slice(0,1).toUpperCase()&&t.slice(0,1).toUpperCase()[Symbol.for("+")]?t.slice(0,1).toUpperCase()[Symbol.for("+")](t.slice(1)):t.slice(0,1).toUpperCase()+t.slice(1))()}`,(()=>void 0!==t&&null!==t&&t[Symbol.for("in")]?t[Symbol.for("in")](o):t in o)()&&(0,we.mf)(o[t])&&(()=>void 0!==o[t].length&&null!==o[t].length&&o[t].length[Symbol.for("<")]?o[t].length[Symbol.for("<")](3):o[t].length<3)()?(o[t].call(r,e,l),!0):(console.warn(`No setter for "${t}".`,o),!1)},ownKeys(){return o},has(e,t){return o.includes(t.toString())},getOwnPropertyDescriptor(e,t){if(o.includes(t.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function Ee(e){return(0,Y.z2)((()=>{const o=e();return(0,p.Mv)(o,{}),o.id=(0,y.QI)("grid-"),o[y.wA]=xe,o.getID=function(e){return(()=>o.id+"-"!==void 0&&o.id+"-"!==null&&(o.id+"-")[Symbol.for("+")]?(o.id+"-")[Symbol.for("+")](e):o.id+"-"+e)()},o.getState=function(e){return(()=>void 0!==this[p.n9].value[e]&&null!==this[p.n9].value[e]&&this[p.n9].value[e][Symbol.for("!=")]?this[p.n9].value[e][Symbol.for("!=")](void 0):void 0!=this[p.n9].value[e])()?this[p.n9].value[e]:this.cells[e].startState},o.setState=function(e,o){this[p.n9].value[e]=o},o.cells=Ce(o),(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"rows"),(0,H.yB)(o,"cols"),(0,H.yB)(o,"getVisibility"),(0,y.Rh)(o,"getVisibility",y.EE.Visible),(0,H.yB)(o,"getCanClick"),(0,y.Rh)(o,"getCanClick",!0),(0,H.yB)(o,"getStartState"),(0,H.yB)(o,"getStyle"),(0,H.yB)(o,"getClasses"),(0,H.yB)(o,"getTitle"),(0,H.yB)(o,"getDisplay"),o[y.tj]=function(){const{visibility:e,rows:o,cols:t,cells:l,id:r}=this;return{visibility:e,rows:o,cols:t,cells:l,id:r}},o}))}const Pe=["disabled"];function Ie(e,o,t,r,n,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0})},[(0,l.createElementVNode)("button",{style:(0,l.normalizeStyle)(e.unref(e.style)),onClick:o[0]||(o[0]=(...o)=>e.onClick&&e.onClick(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),disabled:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))(),class:(0,l.normalizeClass)({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))(),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],46,Pe)],4)):(0,l.createCommentVNode)("",!0)}var Te=(0,l.defineComponent)({props:{display:{type:(0,w.P5)(Object,String,Function),required:!0},visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(Object,String,Array),classes:(0,w.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,w.P5)(Boolean),required:!0},small:Boolean,mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:I,MarkNode:R},setup(e){const{display:o,onClick:t,onHold:r}=(0,l.toRefs)(e),n=(0,l.shallowRef)("");(0,l.watchEffect)((()=>{const e=(0,w.Uv)(o);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(n.value="");if((0,w.RU)(e))return void(n.value=(0,w.MM)(e));const t=(0,w.MM)(e.title||"","h3"),r=(0,w.MM)(e.description,"div");n.value=(0,w.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(t,null,null)]):null,(0,l.createVNode)(r,null,null)]))))}));const{start:i,stop:a}=(0,w.ix)(t,r);return{start:i,stop:a,comp:n,Visibility:y.EE,unref:l.unref}}});const Fe=(0,a.Z)(Te,[["render",Ie],["__scopeId","data-v-2d81e1cc"]]);var De=Fe;const Oe=Symbol("Clickable");function _e(e){return(0,Y.z2)((()=>{const o=e();return o.id=(0,y.QI)("clickable-"),o.type=Oe,o[y.wA]=De,(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"canClick"),(0,y.Rh)(o,"canClick",!0),(0,H.yB)(o,"classes"),(0,H.yB)(o,"style"),(0,H.yB)(o,"mark"),(0,H.yB)(o,"display"),o[y.tj]=function(){const{display:e,visibility:o,style:t,classes:l,onClick:r,onHold:n,canClick:i,small:a,mark:s,id:u}=this;return{display:e,visibility:o,style:t,classes:l,onClick:r,onHold:n,canClick:i,small:a,mark:s,id:u}},o}))}function Re(e){return _e((()=>{const o=e();(0,H.yB)(o,"showNextAt"),(0,y.Rh)(o,"showNextAt",!0),(()=>void 0!==o.resetDescription&&null!==o.resetDescription&&o.resetDescription[Symbol.for("==")]?o.resetDescription[Symbol.for("==")](null):null==o.resetDescription)()?o.resetDescription=(0,l.computed)((()=>b.ZP.lt(o.conversion.gainResource.value,1e3)?"Reset for ":"")):(0,H.yB)(o,"resetDescription"),(()=>void 0!==o.display&&null!==o.display&&o.display[Symbol.for("==")]?o.display[Symbol.for("==")](null):null==o.display)()&&(o.display=(0,y.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.unref)(o.resetDescription),(0,l.createVNode)("b",null,[k(o.conversion.gainResource,(0,l.unref)(o.conversion.currentGain))])," ",o.conversion.gainResource.displayName,(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Next:")," ",k(o.conversion.baseResource,(0,l.unref)(o.conversion.nextAt))," ",o.conversion.baseResource.displayName]),[[l.vShow,(0,l.unref)(o.showNextAt)]])])))),(()=>void 0!==o.canClick&&null!==o.canClick&&o.canClick[Symbol.for("==")]?o.canClick[Symbol.for("==")](null):null==o.canClick)()&&(o.canClick=(0,l.computed)((()=>b.ZP.gt((0,l.unref)(o.conversion.currentGain),0))));const t=o.onClick;return o.onClick=function(){o.conversion.convert(),o.tree.reset(o.treeNode),t?.()},o}))}function je(e){return X((()=>{const o=e();return(0,H.yB)(o,"append"),{...o,display:o.layerID,onClick:(()=>void 0!==o.append&&null!==o.append&&o.append[Symbol.for("!=")]?o.append[Symbol.for("!=")](null):null!=o.append)()&&o.append?function(){if(oe.Z.tabs.includes(o.layerID)){const e=oe.Z.tabs.lastIndexOf(o.layerID);oe.Z.tabs.splice(e,1)}else oe.Z.tabs.push(o.layerID)}:function(){oe.Z.tabs.splice(1,1,o.layerID)}}}))}function Ue(e){return(0,Y.z2)((()=>{const o=e();return(()=>void 0!==o.currentGain&&null!==o.currentGain&&o.currentGain[Symbol.for("==")]?o.currentGain[Symbol.for("==")](null):null==o.currentGain)()&&(o.currentGain=(0,l.computed)((()=>o.scaling.currentGain(o)))),(()=>void 0!==o.nextAt&&null!==o.nextAt&&o.nextAt[Symbol.for("==")]?o.nextAt[Symbol.for("==")](null):null==o.nextAt)()&&(o.nextAt=(0,l.computed)((()=>o.scaling.nextAt(o)))),(()=>void 0!==o.convert&&null!==o.convert&&o.convert[Symbol.for("==")]?o.convert[Symbol.for("==")](null):null==o.convert)()&&(o.convert=function(){o.gainResource.value=b.ZP.add(o.gainResource.value,o.modifyGainAmount?o.modifyGainAmount((0,l.unref)(o.currentGain)):(0,l.unref)(o.currentGain)),o.baseResource.value=0}),(0,H.yB)(o,"currentGain"),(0,H.yB)(o,"nextAt"),(0,H.yB)(o,"buyMax"),(0,y.Rh)(o,"buyMax",!0),(0,H.yB)(o,"roundUpCost"),(0,y.Rh)(o,"roundUpCost",!0),o}))}function Ae(e,o,t){return{currentGain(o){let r=b.ZP.div(o.baseResource.value,(0,l.unref)(e)).pow((0,l.unref)(t)).floor().max(0);return r.isNan()?new b.ZP(0):((()=>void 0!==o.buyMax&&null!==o.buyMax&&o.buyMax[Symbol.for("!")]?o.buyMax[Symbol.for("!")]():!o.buyMax)()&&(r=r.min(1)),r)},nextAt(o){let r=b.ZP.add((0,l.unref)(o.currentGain),1).root((0,l.unref)(t)).times((0,l.unref)(e)).max((0,l.unref)(e));return o.roundUpCost&&(r=r.ceil()),r}}}function qe(e){return Ue(e)}function Le(e){return Ue((()=>{const o=e();return(0,y.Rh)(o,"buyMax",!1),(()=>void 0!==o.currentGain&&null!==o.currentGain&&o.currentGain[Symbol.for("==")]?o.currentGain[Symbol.for("==")](null):null==o.currentGain)()&&(o.currentGain=(0,l.computed)((()=>b.ZP.sub(o.scaling.currentGain(o),o.gainResource.value).add(1).max(1)))),(0,y.Rh)(o,"convert",(function(){o.gainResource.value=o.modifyGainAmount?o.modifyGainAmount((0,l.unref)(o.currentGain)):(0,l.unref)(o.currentGain),o.baseResource.value=0})),o}))}function ze(e,o,t=.5){return b.ZP.lte(e,o)?e:b.ZP.pow(e,t).times(b.ZP.pow(o,b.ZP.sub(1,t)))}function We(e,o,t=.5){return{...e,currentGain:r=>ze(e.currentGain(r),(0,l.unref)(o),(0,l.unref)(t))}}const Ge=e=>((0,l.pushScopeId)("data-v-b2658e96"),e=e(),(0,l.popScopeId)(),e),He=Ge((()=>(0,l.createElementVNode)("span",{class:"toggle"},"▼",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));function Ye(e,o,t,r,n,i){const a=(0,l.resolveComponent)("CollapseTransition"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:(0,l.normalizeStyle)([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}])},[(0,l.createElementVNode)("button",{class:"title",style:(0,l.normalizeStyle)([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:o[0]||(o[0]=o=>e.collapsed.value=(()=>void 0!==e.unref(e.collapsed)&&null!==e.unref(e.collapsed)&&e.unref(e.collapsed)[Symbol.for("!")]?e.unref(e.collapsed)[Symbol.for("!")]():!e.unref(e.collapsed))())},[He,((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.titleComponent)))],4),(0,l.createVNode)(a,null,{default:(0,l.withCtx)((()=>[(()=>void 0!==e.unref(e.collapsed)&&null!==e.unref(e.collapsed)&&e.unref(e.collapsed)[Symbol.for("!")]?e.unref(e.collapsed)[Symbol.for("!")]():!e.unref(e.collapsed))()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"body",style:(0,l.normalizeStyle)({backgroundColor:e.unref(e.color)})},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.bodyComponent),{style:(0,l.normalizeStyle)(e.unref(e.bodyStyle))},null,8,["style"]))],4)):(0,l.createCommentVNode)("",!0)])),_:1}),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var Je=t(423),$e=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:{type:(0,w.P5)(Object,String,Function),required:!0},title:{type:(0,w.P5)(Object,String,Function),required:!0},color:(0,w.P5)(String),collapsed:{type:Object,required:!0},style:(0,w.P5)(Object,String,Array),titleStyle:(0,w.P5)(Object,String,Array),bodyStyle:(0,w.P5)(Object,String,Array),classes:(0,w.P5)(Object),id:{type:String,required:!0}},components:{LinkNode:I,CollapseTransition:Je.Z},setup(e){const{title:o,display:t}=(0,l.toRefs)(e),r=(0,w.vq)(o),n=(0,w.vq)(t),i=(0,l.computed)((()=>be.Z[he.ZP.theme].stackedInfoboxes));return{titleComponent:r,bodyComponent:n,stacked:i,unref:l.unref,Visibility:y.EE}}});const Xe=(0,a.Z)($e,[["render",Ye],["__scopeId","data-v-b2658e96"]]);var Ke=Xe;const Qe=Symbol("Infobox");function eo(e){return(0,Y.z2)((()=>{const o=e();return(0,p.Mv)(o,!1),o.id=(0,y.QI)("infobox-"),o.type=Qe,o[y.wA]=Ke,o.collapsed=o[p.n9],(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"color"),(0,H.yB)(o,"style"),(0,H.yB)(o,"titleStyle"),(0,H.yB)(o,"bodyStyle"),(0,H.yB)(o,"classes"),(0,H.yB)(o,"title"),(0,H.yB)(o,"display"),o[y.tj]=function(){const{visibility:e,display:o,title:t,color:l,collapsed:r,style:n,titleStyle:i,bodyStyle:a,classes:s,id:u}=this;return{visibility:e,display:o,title:t,color:l,collapsed:r,style:n,titleStyle:i,bodyStyle:a,classes:s,id:u}},o}))}var oo=t(1008);const to=Symbol("Reset");function lo(e){return(0,Y.z2)((()=>{const o=e();return o.id=(0,y.QI)("reset-"),o.type=to,o.reset=function(){const e=o=>{o&&"object"===typeof o&&((()=>void 0!==p.n9&&null!==p.n9&&p.n9[Symbol.for("in")]?p.n9[Symbol.for("in")](o):p.n9 in o)()?o[p.n9].value=o[p.nY]:(()=>o instanceof oo.Z!==void 0&&o instanceof oo.Z!==null&&(o instanceof oo.Z)[Symbol.for("!")]?(o instanceof oo.Z)[Symbol.for("!")]():!(o instanceof oo.Z))()&&(()=>void 0!==(0,l.isRef)(o)&&null!==(0,l.isRef)(o)&&(0,l.isRef)(o)[Symbol.for("!")]?(0,l.isRef)(o)[Symbol.for("!")]():!(0,l.isRef)(o))()&&Object.values(o).forEach((o=>e(o))))};(0,l.unref)(o.thingsToReset).forEach(e),h.globalBus.emit("reset",o),o.onReset?.()},(0,H.yB)(o,"thingsToReset"),o}))}const ro={};h.globalBus.on("removeLayer",(e=>{ro[e.id]?.(),ro[e.id]=void 0}));var no=(0,l.defineComponent)({props:{resource:null,color:null},setup(e){const o=e,t=(0,l.computed)((()=>k(o.resource)));return(o,r)=>((0,l.openBlock)(),(0,l.createElementBlock)("h2",{style:(0,l.normalizeStyle)({color:e.color,"text-shadow":(()=>"0px 0px 10px "[Symbol.for("+")]?"0px 0px 10px "[Symbol.for("+")](e.color):"0px 0px 10px "+e.color)()})},(0,l.toDisplayString)((0,l.unref)(t)),5))}});const io=no;var ao=io;const so={key:0},uo={key:1},mo=(0,l.createTextVNode)(", "),co=(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()),fo=(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());var yo=(0,l.defineComponent)({props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const o=e,t=(0,l.toRefs)(o),r=(0,w.KO)(t.effectDisplay),n=(0,l.computed)((()=>b.ZP.lt(t.resource.value,"1e1000")));return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",null,[(0,l.unref)(n)?((0,l.openBlock)(),(0,l.createElementBlock)("span",so,"You have ")):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(ao,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)(e.resource.displayName)):" "+(0,l.toDisplayString)(e.resource.displayName))(),1),(0,l.unref)(r)?((0,l.openBlock)(),(0,l.createElementBlock)("span",uo,[mo,((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(r))))])):(0,l.createCommentVNode)("",!0),co,fo]))}});const bo=yo;var ho=bo;const po={class:"field"},vo={key:0,class:"field-title"},So=["min","max"];var go=(0,l.defineComponent)({props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,r=(0,l.toRefs)(t),n=(0,l.computed)({get(){return String((0,l.unref)(r.modelValue)||0)},set(e){o("update:modelValue",Number(e))}});return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",po,[e.title?((0,l.openBlock)(),(0,l.createElementBlock)("span",vo,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(j.Z,{display:`${(0,l.unref)(n)}`,class:(0,l.normalizeClass)({fullWidth:(()=>void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title)()})},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"range","onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.isRef)(n)?n.value=e:null),min:e.min,max:e.max},null,8,So),[[l.vModelText,(0,l.unref)(n)]])])),_:1},8,["display","class"])]))}});const No=(0,a.Z)(go,[["__scopeId","data-v-27120bc0"]]);var ko=No,Vo=t(1033),Mo=t(900),xo=t(9905),wo=(0,l.defineComponent)({setup(e){const o=(0,l.ref)("0"),t=new ResizeObserver(n),r=(0,l.ref)(null);function n(){let e=r.value;if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](void 0):void 0==e)())return;let t=0;while(e.previousSibling){const o=e.previousSibling;o.dataset&&(()=>"vSticky"[Symbol.for("in")]?"vSticky"[Symbol.for("in")](o.dataset):"vSticky"in o.dataset)()&&(t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](o.offsetHeight):t+o.offsetHeight)()),e=o}o.value=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")]("px"):t+"px")()}return(0,l.nextTick)(n),(0,l.onMounted)((()=>{const e=r.value?.parentElement;e&&t.observe(e)})),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"sticky",style:(0,l.normalizeStyle)({top:o.value}),ref_key:"element",ref:r,"data-v-sticky":""},[(0,l.renderSlot)(e.$slots,"default")],4))}});const Co=(0,a.Z)(wo,[["__scopeId","data-v-3b196306"]]);var Zo=Co,Bo=(0,l.defineComponent)({props:{height:null},setup(e){return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"vr",style:(0,l.normalizeStyle)({height:e.height})},null,4))}});const Eo=(0,a.Z)(Bo,[["__scopeId","data-v-15f6e746"]]);var Po=Eo,Io=t(7286);function To(e,o,t,r,n,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{width:(()=>void 0!==e.unref(e.width)&&null!==e.unref(e.width)&&e.unref(e.width)[Symbol.for("+")]?e.unref(e.width)[Symbol.for("+")]("px"):e.unref(e.width)+"px")(),height:(()=>void 0!==e.unref(e.height)&&null!==e.unref(e.height)&&e.unref(e.height)[Symbol.for("+")]?e.unref(e.height)[Symbol.for("+")]("px"):e.unref(e.height)+"px")(),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),class:(0,l.normalizeClass)({bar:!0,...e.unref(e.classes)})},[(0,l.createElementVNode)("div",{class:"overlayTextContainer border",style:(0,l.normalizeStyle)([{width:(()=>void 0!==e.unref(e.width)&&null!==e.unref(e.width)&&e.unref(e.width)[Symbol.for("+")]?e.unref(e.width)[Symbol.for("+")]("px"):e.unref(e.width)+"px")(),height:(()=>void 0!==e.unref(e.height)&&null!==e.unref(e.height)&&e.unref(e.height)[Symbol.for("+")]?e.unref(e.height)[Symbol.for("+")]("px"):e.unref(e.height)+"px")()},e.unref(e.borderStyle)??{}])},[e.component?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component),{key:0,class:"overlayText",style:(0,l.normalizeStyle)(e.unref(e.textStyle))},null,8,["style"])):(0,l.createCommentVNode)("",!0)],4),(0,l.createElementVNode)("div",{class:"border",style:(0,l.normalizeStyle)([{width:(()=>void 0!==e.unref(e.width)&&null!==e.unref(e.width)&&e.unref(e.width)[Symbol.for("+")]?e.unref(e.width)[Symbol.for("+")]("px"):e.unref(e.width)+"px")(),height:(()=>void 0!==e.unref(e.height)&&null!==e.unref(e.height)&&e.unref(e.height)[Symbol.for("+")]?e.unref(e.height)[Symbol.for("+")]("px"):e.unref(e.height)+"px")()},e.unref(e.style)??{},e.unref(e.baseStyle)??{},e.unref(e.borderStyle)??{}])},[(0,l.createElementVNode)("div",{class:"fill",style:(0,l.normalizeStyle)([e.barStyle,e.unref(e.style)??{},e.unref(e.fillStyle)??{}])},null,4)],4),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var Fo=(0,l.defineComponent)({props:{progress:{type:(0,w.P5)(String,Object,Number),required:!0},width:{type:(0,w.P5)(Number),required:!0},height:{type:(0,w.P5)(Number),required:!0},direction:{type:(0,w.P5)(String),required:!0},display:(0,w.P5)(Object,String,Function),visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(Object,String,Array),classes:(0,w.P5)(Object),borderStyle:(0,w.P5)(Object,String,Array),textStyle:(0,w.P5)(Object,String,Array),baseStyle:(0,w.P5)(Object,String,Array),fillStyle:(0,w.P5)(Object,String,Array),mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:R,LinkNode:I},setup(e){const{progress:o,width:t,height:r,direction:n,display:i}=(0,l.toRefs)(e),a=(0,l.computed)((()=>{let e=o.value instanceof b.ZP?o.value.toNumber():Number(o.value);return(()=>1-Math.min(Math.max(e,0),1)!==void 0&&1-Math.min(Math.max(e,0),1)!==null&&(1-Math.min(Math.max(e,0),1))[Symbol.for("*")]?(1-Math.min(Math.max(e,0),1))[Symbol.for("*")](100):100*(1-Math.min(Math.max(e,0),1)))()})),s=(0,l.computed)((()=>{const e={width:(()=>(0,w.Uv)(t)+.5!==void 0&&(0,w.Uv)(t)+.5!==null&&((0,w.Uv)(t)+.5)[Symbol.for("+")]?((0,w.Uv)(t)+.5)[Symbol.for("+")]("px"):(0,w.Uv)(t)+.5+"px")(),height:(()=>(0,w.Uv)(r)+.5!==void 0&&(0,w.Uv)(r)+.5!==null&&((0,w.Uv)(r)+.5)[Symbol.for("+")]?((0,w.Uv)(r)+.5)[Symbol.for("+")]("px"):(0,w.Uv)(r)+.5+"px")()};switch((0,l.unref)(n)){case Ro.Up:e.clipPath=`inset(${a.value}% 0% 0% 0%)`,e.width=(()=>(0,w.Uv)(t)+1!==void 0&&(0,w.Uv)(t)+1!==null&&((0,w.Uv)(t)+1)[Symbol.for("+")]?((0,w.Uv)(t)+1)[Symbol.for("+")]("px"):(0,w.Uv)(t)+1+"px")();break;case Ro.Down:e.clipPath=`inset(0% 0% ${a.value}% 0%)`,e.width=(()=>(0,w.Uv)(t)+1!==void 0&&(0,w.Uv)(t)+1!==null&&((0,w.Uv)(t)+1)[Symbol.for("+")]?((0,w.Uv)(t)+1)[Symbol.for("+")]("px"):(0,w.Uv)(t)+1+"px")();break;case Ro.Right:e.clipPath=`inset(0% ${a.value}% 0% 0%)`;break;case Ro.Left:e.clipPath=`inset(0% 0% 0% ${a.value} + '%)`;break;case Ro.Default:e.clipPath="inset(0% 50% 0% 0%)";break}return e})),u=(0,w.KO)(i);return{normalizedProgress:a,barStyle:s,component:u,unref:l.unref,Visibility:y.EE}}});const Do=(0,a.Z)(Fo,[["render",To],["__scopeId","data-v-406e5054"]]);var Oo=Do;const _o=Symbol("Bar");var Ro;function jo(e){return(0,Y.z2)((()=>{const o=e();return o.id=(0,y.QI)("bar-"),o.type=_o,o[y.wA]=Oo,(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"width"),(0,H.yB)(o,"height"),(0,H.yB)(o,"direction"),(0,H.yB)(o,"style"),(0,H.yB)(o,"classes"),(0,H.yB)(o,"borderStyle"),(0,H.yB)(o,"baseStyle"),(0,H.yB)(o,"textStyle"),(0,H.yB)(o,"fillStyle"),(0,H.yB)(o,"progress"),(0,H.yB)(o,"display"),(0,H.yB)(o,"mark"),o[y.tj]=function(){const{progress:e,width:o,height:t,direction:l,display:r,visibility:n,style:i,classes:a,borderStyle:s,textStyle:u,baseStyle:m,fillStyle:c,mark:f,id:d}=this;return{progress:e,width:o,height:t,direction:l,display:r,visibility:n,style:i,classes:a,borderStyle:s,textStyle:u,baseStyle:m,fillStyle:c,mark:f,id:d}},o}))}(function(e){e["Up"]="Up",e["Down"]="Down",e["Left"]="Left",e["Right"]="Right",e["Default"]="Up"})(Ro||(Ro={}));const Uo=Symbol("Buyable");function Ao(e){return(0,Y.z2)((()=>{const o=e();if((()=>void 0!==o.canPurchase&&null!==o.canPurchase&&o.canPurchase[Symbol.for("==")]?o.canPurchase[Symbol.for("==")](null):null==o.canPurchase)()&&((()=>void 0!==o.resource&&null!==o.resource&&o.resource[Symbol.for("==")]?o.resource[Symbol.for("==")](null):null==o.resource)()||(()=>void 0!==o.cost&&null!==o.cost&&o.cost[Symbol.for("==")]?o.cost[Symbol.for("==")](null):null==o.cost)()))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",o),"Cannot create buyable without a canPurchase property or a resource and cost property";(0,p.Mv)(o,0),o.id=(0,y.QI)("buyable-"),o.type=Uo,o[y.wA]=De,o.amount=o[p.n9],o.canAfford=(0,l.computed)((()=>{const e=o,t=(0,l.unref)(e.cost);return(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()&&(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](null):null!=t)()&&b.ZP.gte(e.resource.value,t)})),(()=>void 0!==o.canPurchase&&null!==o.canPurchase&&o.canPurchase[Symbol.for("==")]?o.canPurchase[Symbol.for("==")](null):null==o.canPurchase)()&&(o.canPurchase=(0,l.computed)((()=>(0,l.unref)(o.visibility)===y.EE.Visible&&(0,l.unref)(o.canAfford)&&b.ZP.lt(o.amount.value,(0,l.unref)(o.purchaseLimit))))),o.maxed=(0,l.computed)((()=>b.ZP.gte(o.amount.value,(0,l.unref)(o.purchaseLimit)))),(0,H.yB)(o,"classes");const t=o.classes;o.classes=(0,l.computed)((()=>{const e=(0,l.unref)(t)||{};return o.maxed.value&&(e.bought=!0),e})),(0,H.yB)(o,"canPurchase"),o.canClick=o.canPurchase,o.onClick=o.purchase=function(){const e=o;if((()=>void 0!==(0,l.unref)(e.canPurchase)&&null!==(0,l.unref)(e.canPurchase)&&(0,l.unref)(e.canPurchase)[Symbol.for("!")]?(0,l.unref)(e.canPurchase)[Symbol.for("!")]():!(0,l.unref)(e.canPurchase))()||(()=>void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("==")]?e.cost[Symbol.for("==")](null):null==e.cost)()||(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("==")]?e.resource[Symbol.for("==")](null):null==e.resource)())return;const t=(0,l.unref)(e.cost);e.resource.value=b.ZP.sub(e.resource.value,t),e.amount.value=b.ZP.add(e.amount.value,1),this.onPurchase?.(t)},(0,H.yB)(o,"display");const r=o.display;return o.display=(0,y.tZ)((()=>{const e=(0,l.unref)(r);if((()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&(()=>void 0!==(0,w.RU)(e)&&null!==(0,w.RU)(e)&&(0,w.RU)(e)[Symbol.for("!")]?(0,w.RU)(e)[Symbol.for("!")]():!(0,w.RU)(e))()&&(()=>void 0!==o.cost&&null!==o.cost&&o.cost[Symbol.for("!=")]?o.cost[Symbol.for("!=")](null):null!=o.cost)()&&(()=>void 0!==o.resource&&null!==o.resource&&o.resource[Symbol.for("!=")]?o.resource[Symbol.for("!=")](null):null!=o.resource)()){const t=o,r=(0,w.MM)(e.title||"","h3"),n=(0,w.MM)(e.description),i=(0,w.MM)(e.effectDisplay||"");return(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(r,null,null)]):null,(0,l.createVNode)(n,null,null),(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Amount: "),(0,b.Ht)(t.amount.value),(0,l.createTextVNode)(" /")," ",(0,b.Ht)((0,l.unref)(t.purchaseLimit))]),e.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Currently: "),(0,l.createVNode)(i,null,null)]):null,t.cost&&(()=>void 0!==t.maxed.value&&null!==t.maxed.value&&t.maxed.value[Symbol.for("!")]?t.maxed.value[Symbol.for("!")]():!t.maxed.value)()?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Cost: "),(0,b.WU)((0,l.unref)(t.cost)||0)," ",o.resource.displayName]):null])}return""})),(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"cost"),(0,H.yB)(o,"resource"),(0,H.yB)(o,"purchaseLimit"),(0,y.Rh)(o,"purchaseLimit",1),(0,H.yB)(o,"style"),(0,H.yB)(o,"mark"),(0,H.yB)(o,"small"),o[y.tj]=function(){const{display:e,visibility:o,style:t,classes:l,onClick:r,canClick:n,small:i,mark:a,id:s}=this;return{display:e,visibility:o,style:t,classes:l,onClick:r,canClick:n,small:i,mark:a,id:s}},o}))}function qo(e,o,t,r,n,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,e.unref(e.style)??{}]),class:(0,l.normalizeClass)({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart),maxed:e.unref(e.maxed),...e.unref(e.classes)})},[(0,l.createElementVNode)("button",{class:"toggleChallenge",onClick:o[0]||(o[0]=(...o)=>e.toggle&&e.toggle(...o))},(0,l.toDisplayString)(e.buttonText),1),e.unref(e.comp)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var Lo=(0,l.defineComponent)({props:{active:{type:(0,w.P5)(Boolean),required:!0},maxed:{type:(0,w.P5)(Boolean),required:!0},canComplete:{type:(0,w.P5)(Boolean),required:!0},display:(0,w.P5)(String,Object,Function),visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),completed:{type:(0,w.P5)(Boolean),required:!0},canStart:{type:(0,w.P5)(Boolean),required:!0},mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:R,LinkNode:I},setup(e){const{active:o,maxed:t,canComplete:r,display:n}=(0,l.toRefs)(e),i=(0,l.computed)((()=>o.value?r.value?"Finish":"Exit Early":t.value?"Completed":"Start")),a=(0,l.shallowRef)(""),s=(0,l.computed)((()=>{const e=(0,w.Uv)(o),t=(0,w.Uv)(r);return e?t?ue():se():{}}));return(0,l.watchEffect)((()=>{const e=(0,w.Uv)(n);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(a.value="");if((0,w.RU)(e))return void(a.value=(0,w.MM)(e));const o=(0,w.MM)(e.title||"","h3"),t=(0,w.MM)(e.description,"div"),r=(0,w.MM)(e.goal||""),i=(0,w.MM)(e.reward||""),s=(0,w.MM)(e.effectDisplay||"");a.value=(0,w.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(o,null,null)]):null,(0,l.createVNode)(t,null,null),e.goal?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Goal: "),(0,l.createVNode)(r,null,null)]):null,e.reward?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Reward: "),(0,l.createVNode)(i,null,null)]):null,e.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Currently: "),(0,l.createVNode)(s,null,null)]):null]))))})),{buttonText:i,notifyStyle:s,comp:a,Visibility:y.EE,unref:l.unref}}});const zo=(0,a.Z)(Lo,[["render",qo],["__scopeId","data-v-20a2ad76"]]);var Wo=zo;const Go=Symbol("ChallengeType");function Ho(e){return(0,Y.z2)((()=>{const o=e();if((()=>void 0!==o.canComplete&&null!==o.canComplete&&o.canComplete[Symbol.for("==")]?o.canComplete[Symbol.for("==")](null):null==o.canComplete)()&&((()=>void 0!==o.resource&&null!==o.resource&&o.resource[Symbol.for("==")]?o.resource[Symbol.for("==")](null):null==o.resource)()||(()=>void 0!==o.goal&&null!==o.goal&&o.goal[Symbol.for("==")]?o.goal[Symbol.for("==")](null):null==o.goal)()))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",o),"Cannot create challenge without a canComplete property or a resource and goal property";o.id=(0,y.QI)("challenge-"),o.type=Go,o[y.wA]=Wo,o.completions=(0,p.ax)(0),o.active=(0,p.ax)(!1),o.completed=(0,l.computed)((()=>b.ZP.gt(o.completions.value,0))),o.maxed=(0,l.computed)((()=>b.ZP.gte(o.completions.value,(0,l.unref)(o.completionLimit)))),o.toggle=function(){const e=o;if(e.active.value){if(e.canComplete&&(0,l.unref)(e.canComplete)&&(()=>void 0!==e.maxed.value&&null!==e.maxed.value&&e.maxed.value[Symbol.for("!")]?e.maxed.value[Symbol.for("!")]():!e.maxed.value)()){let o=(0,l.unref)(e.canComplete);"boolean"===typeof o&&(o=1),e.completions.value=b.ZP.min(b.ZP.add(e.completions.value,o),(0,l.unref)(e.completionLimit)),e.onComplete?.()}e.active.value=!1,e.onExit?.(),e.reset?.reset()}else(0,l.unref)(e.canStart)&&(e.reset?.reset(),e.active.value=!0,e.onEnter?.())},(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible);const t=o.visibility;return o.visibility=(0,l.computed)((()=>!0===he.ZP.hideChallenges&&(0,l.unref)(o.maxed)?y.EE.None:(0,l.unref)(t))),(()=>void 0!==o.canStart&&null!==o.canStart&&o.canStart[Symbol.for("==")]?o.canStart[Symbol.for("==")](null):null==o.canStart)()&&(o.canStart=(0,l.computed)((()=>(0,l.unref)(o.visibility)===y.EE.Visible&&b.ZP.lt(o.completions.value,(0,l.unref)(o.completionLimit))))),(()=>void 0!==o.canComplete&&null!==o.canComplete&&o.canComplete[Symbol.for("==")]?o.canComplete[Symbol.for("==")](null):null==o.canComplete)()&&(o.canComplete=(0,l.computed)((()=>{const e=o;return!((()=>void 0!==e.active.value&&null!==e.active.value&&e.active.value[Symbol.for("!")]?e.active.value[Symbol.for("!")]():!e.active.value)()||(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("==")]?e.resource[Symbol.for("==")](null):null==e.resource)()||(()=>void 0!==e.goal&&null!==e.goal&&e.goal[Symbol.for("==")]?e.goal[Symbol.for("==")](null):null==e.goal)())&&b.ZP.gte(e.resource.value,(0,l.unref)(e.goal))}))),(()=>void 0!==o.mark&&null!==o.mark&&o.mark[Symbol.for("==")]?o.mark[Symbol.for("==")](null):null==o.mark)()&&(o.mark=(0,l.computed)((()=>b.ZP.gt((0,l.unref)(o.completionLimit),1)&&(()=>void 0!==!(0,l.unref)(o.maxed)&&null!==!(0,l.unref)(o.maxed)&&(!(0,l.unref)(o.maxed))[Symbol.for("!")]?(!(0,l.unref)(o.maxed))[Symbol.for("!")]():!!(0,l.unref)(o.maxed))()))),(0,H.yB)(o,"canStart"),(0,H.yB)(o,"canComplete"),(0,H.yB)(o,"completionLimit"),(0,y.Rh)(o,"completionLimit",1),(0,H.yB)(o,"mark"),(0,H.yB)(o,"goal"),(0,H.yB)(o,"classes"),(0,H.yB)(o,"style"),(0,H.yB)(o,"display"),(()=>void 0!==o.reset&&null!==o.reset&&o.reset[Symbol.for("!=")]?o.reset[Symbol.for("!=")](null):null!=o.reset)()&&h.globalBus.on("reset",(e=>{e===o.reset&&o.active.value&&o.toggle()})),o[y.tj]=function(){const{active:e,maxed:o,canComplete:t,display:l,visibility:r,style:n,classes:i,completed:a,canStart:s,mark:u,id:m,toggle:c}=this;return{active:e,maxed:o,canComplete:t,display:l,visibility:r,style:n,classes:i,completed:a,canStart:s,mark:u,id:m,toggle:c}},o}))}h.globalBus.on("loadSettings",(e=>{(0,y.Rh)(e,"hideChallenges",!1)})),(0,he.QV)((0,y.tZ)((()=>(0,l.createVNode)(Mo.Z,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>he.ZP.hideChallenges=e,modelValue:he.ZP.hideChallenges},null))));const Yo={},Jo=Symbol("Hotkey");function $o(e){return(0,Y.z2)((()=>{const o=e();return o.type=Jo,(0,H.yB)(o,"enabled"),(0,y.Rh)(o,"enabled",!0),(0,H.yB)(o,"description"),o}))}h.globalBus.on("addLayer",(e=>{(0,y.bD)(e,Jo).forEach((e=>{Yo[e.key]=e}))})),h.globalBus.on("removeLayer",(e=>{(0,y.bD)(e,Jo).forEach((e=>{Yo[e.key]=void 0}))})),document.onkeydown=function(e){if("INPUT"===e.target?.tagName)return;if(At.value&&(()=>void 0!==oe.Z.keepGoing&&null!==oe.Z.keepGoing&&oe.Z.keepGoing[Symbol.for("!")]?oe.Z.keepGoing[Symbol.for("!")]():!oe.Z.keepGoing)())return;let o=e.key;e.shiftKey&&(o=(()=>"shift+"[Symbol.for("+")]?"shift+"[Symbol.for("+")](o):"shift+"+o)()),e.ctrlKey&&(o=(()=>"ctrl+"[Symbol.for("+")]?"ctrl+"[Symbol.for("+")](o):"ctrl+"+o)());const t=Yo[o];t&&(0,l.unref)(t.enabled)&&(e.preventDefault(),t.onPress())};var Xo=t(3520);function Ko(e,o,t,r,n,i){const a=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),class:(0,l.normalizeClass)({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)))),(0,l.createVNode)(a,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var Qo=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:{type:(0,w.P5)(String,Object,Function),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),earned:{type:(0,w.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{LinkNode:I},setup(e){const{display:o}=(0,l.toRefs)(e),t=(0,l.shallowRef)("");return(0,l.watchEffect)((()=>{const e=(0,w.Uv)(o);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(t.value="");if((0,w.RU)(e))return void(t.value=(0,w.MM)(e));const r=(0,w.MM)(e.requirement,"h3"),n=(0,w.MM)(e.effectDisplay||"","b"),i=(0,w.MM)(e.optionsDisplay||"","span");t.value=(0,w.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createVNode)(r,null,null),e.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createVNode)(n,null,null)]):null,e.optionsDisplay?(0,l.createVNode)("div",{class:"equal-spaced"},[(0,l.createVNode)(i,null,null)]):null]))))})),{comp:t,unref:l.unref,Visibility:y.EE}}});const et=(0,a.Z)(Qo,[["render",Ko],["__scopeId","data-v-29ed14b0"]]);var ot=et;const tt=Symbol("Milestone");var lt;function rt(e){return(0,Y.z2)((()=>{const o=e();(0,p.Mv)(o,!1),o.id=(0,y.QI)("milestone-"),o.type=tt,o[y.wA]=ot,o.earned=o[p.n9],(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible);const t=o.visibility;return o.visibility=(0,l.computed)((()=>{const e=(0,l.unref)(o.display);switch(he.ZP.msDisplay){default:case lt.All:return(0,l.unref)(t);case lt.Configurable:return(0,l.unref)(o.earned)&&(()=>void 0!==(null!=e&&"object"==typeof e&&"optionsDisplay"in e)&&null!==(null!=e&&"object"==typeof e&&"optionsDisplay"in e)&&(null!=e&&"object"==typeof e&&"optionsDisplay"in e)[Symbol.for("!")]?(null!=e&&"object"==typeof e&&"optionsDisplay"in e)[Symbol.for("!")]():!(null!=e&&"object"==typeof e&&"optionsDisplay"in e))()?y.EE.None:(0,l.unref)(t);case lt.Incomplete:return(0,l.unref)(o.earned)?y.EE.None:(0,l.unref)(t);case lt.None:return y.EE.None}})),(0,H.yB)(o,"shouldEarn"),(0,H.yB)(o,"style"),(0,H.yB)(o,"classes"),(0,H.yB)(o,"display"),o[y.tj]=function(){const{visibility:e,display:o,style:t,classes:l,earned:r,id:n}=this;return{visibility:e,display:o,style:t,classes:l,earned:r,id:n}},o}))}(function(e){e["All"]="all",e["Configurable"]="configurable",e["Incomplete"]="incomplete",e["None"]="none"})(lt||(lt={}));const nt=(0,ae.pm)(),it={};h.globalBus.on("addLayer",(e=>{const o=(0,y.bD)(e,tt).filter((e=>(()=>void 0!==e.shouldEarn&&null!==e.shouldEarn&&e.shouldEarn[Symbol.for("!=")]?e.shouldEarn[Symbol.for("!=")](null):null!=e.shouldEarn)()));it[e.id]=e.on("postUpdate",(()=>{o.forEach((e=>{if((0,l.unref)(e.visibility)===y.EE.Visible&&(()=>void 0!==e.earned.value&&null!==e.earned.value&&e.earned.value[Symbol.for("!")]?e.earned.value[Symbol.for("!")]():!e.earned.value)()&&(0,l.unref)(e.shouldEarn)&&(e[p.n9].value=!0,e.onComplete?.(),e.display)){const o=(0,l.unref)(e.display),t=(0,w.MM)((0,w.RU)(o)?o:o.requirement);nt((0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)("h3",null,[(0,l.createTextVNode)("Milestone earned!")]),(0,l.createVNode)("div",null,[(0,l.createVNode)(t,null,null)])]))}}))}))})),h.globalBus.on("removeLayer",(e=>{it[e.id]?.(),it[e.id]=void 0})),h.globalBus.on("loadSettings",(e=>{(0,y.Rh)(e,"msDisplay",lt.All)}));const at=Object.values(lt).map((e=>({label:(0,we.IJ)(e),value:e})));(0,he.QV)((0,y.tZ)((()=>(0,l.createVNode)(Xo.Z,{title:"Show Milestones",options:at,"onUpdate:modelValue":e=>he.ZP.msDisplay=e,modelValue:he.ZP.msDisplay},null))));var st=(0,l.defineComponent)({props:{display:null},setup(e){const o=e,{display:t}=(0,l.toRefs)(o),r=(0,w.vq)(t);return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(r))))}});const ut=st;var mt=ut;const ct=Symbol("Tab");function ft(e){return(0,Y.z2)((()=>{const o=e();return o.id=(0,y.QI)("tab-"),o.type=ct,o[y.wA]=mt,o[y.tj]=function(){const{display:e}=this;return{display:e}},o}))}function dt(e,o,t,r,n,i){return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:o[0]||(o[0]=(...o)=>e.selectTab&&e.selectTab(...o)),class:(0,l.normalizeClass)(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,e.unref(e.style)??{}])},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component)))],6)):(0,l.createCommentVNode)("",!0)}var yt=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:{type:(0,w.P5)(Object,String,Function),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),glowColor:(0,w.P5)(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:o}){const{display:t,glowColor:r,floating:n}=(0,l.toRefs)(e),i=(0,w.vq)(t),a=(0,l.computed)((()=>{const e=(0,w.Uv)(r);return(()=>void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e)()?{}:(0,l.unref)(n)?se(e):{boxShadow:`0px 9px 5px -6px ${e}`}}));function s(){o("selectTab")}return{selectTab:s,component:i,glowColorStyle:a,unref:l.unref,Visibility:y.EE}}});const bt=(0,a.Z)(yt,[["render",dt],["__scopeId","data-v-c30cdd5e"]]);var ht=bt;function pt(e,o,t,r,n,i){const a=(0,l.resolveComponent)("TabButton"),s=(0,l.resolveComponent)("Sticky");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??[],e.tabStyle??[]])},[(0,l.createVNode)(s,{class:"tab-buttons-container"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["tab-buttons",{floating:e.floating}])},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.tabs),((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({onSelectTab:o=>e.selected.value=t,floating:e.floating,key:t,active:e.unref(o.tab)===e.unref(e.activeTab)},e.gatherButtonProps(o)),null,16,["onSelectTab","floating","active"])))),128))],2)])),_:1}),e.unref(e.activeTab)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.component)),{key:0})):(0,l.createCommentVNode)("",!0)],6)):(0,l.createCommentVNode)("",!0)}var vt=(0,l.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},activeTab:{type:(0,w.P5)(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:(0,w.P5)(Object),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object)},components:{Sticky:Zo,TabButton:ht},setup(e){const{activeTab:o}=(0,l.toRefs)(e),t=(0,l.computed)((()=>be.Z[he.ZP.theme].floatingTabs)),r=(0,l.shallowRef)("");(0,l.watchEffect)((()=>{const e=(0,w.Uv)(o);(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)()?r.value="":(0,w.RU)(e)?r.value=(0,w.MM)(e):r.value=(0,w.MM)((0,l.unref)(e.display))}));const n=(0,l.computed)((()=>{const e=(0,w.Uv)(o),t=(0,w.RU)(e)||(()=>void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e)()?void 0:(0,l.unref)(e.classes);return t})),i=(0,l.computed)((()=>{const e=(0,w.Uv)(o);return(0,w.RU)(e)||(()=>void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e)()?void 0:(0,l.unref)(e.style)}));function a(e){const{display:o,style:t,classes:l,glowColor:r,visibility:n}=e;return{display:o,style:t,classes:l,glowColor:r,visibility:n}}return{floating:t,tabClasses:n,tabStyle:i,Visibility:y.EE,component:r,gatherButtonProps:a,unref:l.unref}}});const St=(0,a.Z)(vt,[["render",pt],["__scopeId","data-v-13ef5eca"]]);var gt=St;const Nt=Symbol("TabButton"),kt=Symbol("TabFamily");function Vt(e){return(0,Y.z2)((()=>{const o=e();if(0===Object.keys(o.tabs).length)throw console.warn("Cannot create tab family with 0 tabs",o),"Cannot create tab family with 0 tabs";o.id=(0,y.QI)("tabFamily-"),o.type=kt,o[y.wA]=gt,(0,p.Mv)(o,Object.keys(o.tabs)[0]),o.selected=o[p.n9],o.activeTab=(0,l.computed)((()=>{const e=(0,l.unref)(t.tabs);if((()=>void 0!==o[p.n9].value&&null!==o[p.n9].value&&o[p.n9].value[Symbol.for("in")]?o[p.n9].value[Symbol.for("in")](e):o[p.n9].value in e)()&&(0,l.unref)(e[t[p.n9].value].visibility)===y.EE.Visible)return(0,l.unref)(e[t[p.n9].value].tab);const r=Object.values(e).find((e=>(0,l.unref)(e.visibility)===y.EE.Visible));return r?(0,l.unref)(r.tab):null})),(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"classes"),(0,H.yB)(o,"style");for(const e in o.tabs){const t=o.tabs[e];t.type=Nt,t[y.wA]=ht,(0,H.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,H.yB)(t,"tab"),(0,H.yB)(t,"display"),(0,H.yB)(t,"classes"),(0,H.yB)(t,"style"),(0,H.yB)(t,"glowColor")}o[y.tj]=function(){const{visibility:e,activeTab:o,selected:t,tabs:l,style:r,classes:n}=this;return{visibility:e,activeTab:o,selected:t,tabs:l,style:r,classes:n}};const t=o;return t}))}const Mt=["disabled"];function xt(e,o,t,r,n,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),onClick:o[0]||(o[0]=(...o)=>e.purchase&&e.purchase(...o)),class:(0,l.normalizeClass)({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:(()=>void 0!==e.unref(e.canPurchase)&&null!==e.unref(e.canPurchase)&&e.unref(e.canPurchase)[Symbol.for("!")]?e.unref(e.canPurchase)[Symbol.for("!")]():!e.unref(e.canPurchase))(),bought:e.unref(e.bought),...e.unref(e.classes)}),disabled:(()=>void 0!==e.unref(e.canPurchase)&&null!==e.unref(e.canPurchase)&&e.unref(e.canPurchase)[Symbol.for("!")]?e.unref(e.canPurchase)[Symbol.for("!")]():!e.unref(e.canPurchase))()},[e.unref(e.component)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.component)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],14,Mt)):(0,l.createCommentVNode)("",!0)}var wt=(0,l.defineComponent)({props:{display:{type:(0,w.P5)(String,Object,Function),required:!0},visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),resource:Object,cost:(0,w.P5)(String,Object,Number),canPurchase:{type:(0,w.P5)(Boolean),required:!0},bought:{type:(0,w.P5)(Boolean),required:!0},mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{LinkNode:I,MarkNode:R},setup(e){const{display:o,cost:t}=(0,l.toRefs)(e),r=(0,l.shallowRef)("");return(0,l.watchEffect)((()=>{const n=(0,w.Uv)(o);if((()=>void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n)())return void(r.value="");if((0,w.RU)(n))return void(r.value=(0,w.MM)(n));const i=(0,w.Uv)(t),a=(0,w.MM)(n.title||"","h3"),s=(0,w.MM)(n.description,"div"),u=(0,w.MM)(n.effectDisplay||"");r.value=(0,w.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[n.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(a,null,null)]):null,(0,l.createVNode)(s,null,null),n.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Currently: "),(0,l.createVNode)(u,null,null)]):null,(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()?(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Cost: "),e.resource&&k(e.resource,i)," ",e.resource?.displayName]):null]))))})),{component:r,unref:l.unref,Visibility:y.EE}}});const Ct=(0,a.Z)(wt,[["render",xt],["__scopeId","data-v-3e054969"]]);var Zt=Ct;const Bt=Symbol("Upgrade");function Et(e){return(0,Y.z2)((()=>{const o=e();return(0,p.Mv)(o,!1),o.id=(0,y.QI)("upgrade-"),o.type=Bt,o[y.wA]=Zt,(()=>void 0!==o.canAfford&&null!==o.canAfford&&o.canAfford[Symbol.for("==")]?o.canAfford[Symbol.for("==")](null):null==o.canAfford)()&&((()=>void 0!==o.resource&&null!==o.resource&&o.resource[Symbol.for("==")]?o.resource[Symbol.for("==")](null):null==o.resource)()||(()=>void 0!==o.cost&&null!==o.cost&&o.cost[Symbol.for("==")]?o.cost[Symbol.for("==")](null):null==o.cost)())&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",o),o.bought=o[p.n9],(()=>void 0!==o.canAfford&&null!==o.canAfford&&o.canAfford[Symbol.for("==")]?o.canAfford[Symbol.for("==")](null):null==o.canAfford)()?o.canAfford=(0,l.computed)((()=>{const e=o;return(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()&&(()=>void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("!=")]?e.cost[Symbol.for("!=")](null):null!=e.cost)()&&b.ZP.gte(e.resource.value,(0,l.unref)(e.cost))})):(0,H.yB)(o,"canAfford"),o.canPurchase=(0,l.computed)((()=>(0,l.unref)(o.visibility)===y.EE.Visible&&(0,l.unref)(o.canAfford)&&(()=>void 0!==(0,l.unref)(o.bought)&&null!==(0,l.unref)(o.bought)&&(0,l.unref)(o.bought)[Symbol.for("!")]?(0,l.unref)(o.bought)[Symbol.for("!")]():!(0,l.unref)(o.bought))())),o.purchase=function(){const e=o;(()=>void 0!==(0,l.unref)(e.canPurchase)&&null!==(0,l.unref)(e.canPurchase)&&(0,l.unref)(e.canPurchase)[Symbol.for("!")]?(0,l.unref)(e.canPurchase)[Symbol.for("!")]():!(0,l.unref)(e.canPurchase))()||((()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()&&(()=>void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("!=")]?e.cost[Symbol.for("!=")](null):null!=e.cost)()&&(e.resource.value=b.ZP.sub(e.resource.value,(0,l.unref)(e.cost))),e[p.n9].value=!0,e.onPurchase?.())},(0,H.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,H.yB)(o,"classes"),(0,H.yB)(o,"style"),(0,H.yB)(o,"display"),(0,H.yB)(o,"mark"),(0,H.yB)(o,"cost"),(0,H.yB)(o,"resource"),o[y.tj]=function(){const{display:e,visibility:o,style:t,classes:l,resource:r,cost:n,canPurchase:i,bought:a,mark:s,id:u,purchase:m}=this;return{display:e,visibility:o,style:t,classes:l,resource:r,cost:n,canPurchase:i,bought:a,mark:s,id:u,purchase:m}},o}))}function Pt(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&(()=>void 0!==(0,l.isVNode)(e)&&null!==(0,l.isVNode)(e)&&(0,l.isVNode)(e)[Symbol.for("!")]?(0,l.isVNode)(e)[Symbol.for("!")]():!(0,l.isVNode)(e))()}const It=(0,ee.createLayer)((()=>{const e="c",o="#4BDC13",t="Candies",r=v(0,"lollipops"),n=S(r),i=(0,p.ax)(!1),a=(0,p.ax)("pointy"),s=(0,p.ax)(10),u=(0,p.ax)(new b.ZP(10)),m=(0,l.computed)((()=>b.ZP.pow(r.value,.2))),c=(0,l.computed)((()=>b.ZP.times(r.value,10))),f=eo((()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"}))),h=rt((()=>({shouldEarn(){return b.ZP.gte(n.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}}))),g=rt((()=>({visibility(){return(0,y.Kf)(h.earned.value)},shouldEarn(){return b.ZP.gte(n.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(Mo.Z,{title:"beep","onUpdate:modelValue":e=>i.value=e,modelValue:i.value},null),(0,l.createVNode)(Mo.Z,{title:"boop","onUpdate:modelValue":e=>Dt.boop.value=e,modelValue:Dt.boop.value},null)])))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}}))),N=[h,g],V=Ho((()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder<br>${(0,b.Ht)(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:(()=>void 0!==(0,b.WU)(M.value)&&null!==(0,b.WU)(M.value)&&(0,b.WU)(M.value)[Symbol.for("+")]?(0,b.WU)(M.value)[Symbol.for("+")]("x"):(0,b.WU)(M.value)+"x")()}},visibility(){return(0,y.Kf)(b.ZP.gt(n.value,0))},goal:20,resource:jt.points,onComplete(){console.log("hiii")},onEnter(){jt.points.value=0,jt.best.value=jt.points.value,jt.total.value=jt.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}}))),M=(0,l.computed)((()=>b.ZP.add(r.value,1).tetrate(.02))),x=Et((()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:r}))),C=Et((()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${(0,b.WU)(Z.value)}x`}),cost:1,resource:r,visibility:()=>(0,y.Kf)(x.bought.value)}))),Z=(0,l.computed)((()=>{let e=b.ZP.add(r.value,1).pow(.5);return e.gte("1e20000000")&&(e=e.sqrt().times("1e10000000")),e})),B=Et((()=>({visibility(){return(0,y.Kf)(C.bought.value)},canAfford(){return b.ZP.lt(jt.points.value,7)},onPurchase(){jt.points.value=b.ZP.add(jt.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return this.bought?{backgroundColor:"#1111dd"}:(()=>void 0!==this.canAfford&&null!==this.canAfford&&this.canAfford[Symbol.for("!")]?this.canAfford[Symbol.for("!")]():!this.canAfford)()?{backgroundColor:"#dd1111"}:{}}}))),E=Et((()=>({resource:v(I.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}}))),P=[x,C,B],I=Ao((()=>({resource:r,cost(){let e=new b.ZP(this.amount.value);e.gte(25)&&(e=e.pow(2).div(25));const o=b.ZP.pow(2,e.pow(1.5));return o.floor()},display(){return{title:"Exhancers",description:`Adds ${(0,b.WU)(T.value)} things and multiplies stuff by ${(0,b.WU)(F.value)}.`}},onPurchase(e){u.value=b.ZP.add(u.value,e)},style:{height:"222px"},purchaseLimit:4}))),T=(0,l.computed)((()=>b.ZP.gte(I.amount.value,0)?b.ZP.pow(25,b.ZP.pow(I.amount.value,1.1)):b.ZP.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](25):.04)(),b.ZP.times(I.amount.value,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()).pow(1.1)))),F=(0,l.computed)((()=>b.ZP.gte(I.amount.value,0)?b.ZP.pow(25,b.ZP.pow(I.amount.value,1.1)):b.ZP.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](25):.04)(),b.ZP.times(I.amount.value,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()).pow(1.1)))),D=(0,p.ax)(!1),O=(0,l.ref)(!1),_=_e((()=>({small:!0,display:"Respec Thingies",onClick(){D.value&&(()=>void 0!==O.value&&null!==O.value&&O.value[Symbol.for("!")]?O.value[Symbol.for("!")]():!O.value)()?O.value=!0:(r.value=b.ZP.add(r.value,u.value),I.amount.value=0,jt.tree.reset(G))}}))),R=_e((()=>({small:!0,display:"Sell One",onClick(){b.ZP.lte(I.amount.value,0)||(I.amount.value=b.ZP.sub(I.amount.value,1),r.value=b.ZP.add(r.value,I.cost.value),u.value=b.ZP.sub(u.value,I.cost.value))}}))),j=(0,y.tZ)((()=>(0,l.createVNode)(xo.Z,null,{default:()=>[(0,l.createVNode)(te.Z,null,{default:()=>[(0,l.createVNode)(Mo.Z,{title:"Confirm","onUpdate:modelValue":e=>D.value=e,modelValue:D.value},null),(0,w._4)(_)]}),(0,w._4)(I),(0,w._4)(R),(0,l.createVNode)(Io.Z,{modelValue:O.value,"onUpdate:modelValue":e=>O.value=e},{header:()=>(0,l.createVNode)("h2",null,[(0,l.createTextVNode)("Confirm Respec")]),body:()=>(0,l.createVNode)(l.Fragment,null,[(0,l.createTextVNode)("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>(0,l.createVNode)("div",{class:"modal-default-footer"},[(0,l.createVNode)("div",{class:"modal-default-flex-grow"},null),(0,l.createVNode)("button",{class:"button modal-default-button",onClick:()=>O.value=!1},[(0,l.createTextVNode)("Cancel")]),(0,l.createVNode)("button",{class:"button modal-default-button danger",onClick:()=>{_.onClick(),O.value=!1}},[(0,l.createTextVNode)("Respec")])])})]}))),U=jo((()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:Ro.Right,width:300,height:30,progress(){return b.ZP.add(jt.points.value,1).log(10).div(10).toNumber()},display(){return(()=>void 0!==(0,b.WU)(jt.points.value)&&null!==(0,b.WU)(jt.points.value)&&(0,b.WU)(jt.points.value)[Symbol.for("+")]?(0,b.WU)(jt.points.value)[Symbol.for("+")](" / 1e10 points"):(0,b.WU)(jt.points.value)+" / 1e10 points")()}}))),A=jo((()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:Ro.Up,width:50,height:200,progress(){return b.ZP.div(jt.points.value,100)},display(){return(()=>void 0!==(0,b.Ht)(b.ZP.div(jt.points.value,1).min(100))&&null!==(0,b.Ht)(b.ZP.div(jt.points.value,1).min(100))&&(0,b.Ht)(b.ZP.div(jt.points.value,1).min(100))[Symbol.for("+")]?(0,b.Ht)(b.ZP.div(jt.points.value,1).min(100))[Symbol.for("+")]("%"):(0,b.Ht)(b.ZP.div(jt.points.value,1).min(100))+"%")()}}))),q=jo((()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:Ro.Up,width:100,height:30,progress(){return b.ZP.div(r.value,50)}}))),L=qe((()=>({scaling:We(Ae(10,5,.5),1e100,.5),baseResource:jt.points,gainResource:r,roundUpCost:!0}))),z=lo((()=>({thingsToReset:()=>[It]}))),W=[$o((()=>({key:"c",description:"reset for lollipops or whatever",onPress(){H.canClick.value&&H.onClick()}}))),$o((()=>({key:"ctrl+c",description:"respec things",onPress(){_.onClick()}})))],G=je((()=>({layerID:e,color:o,reset:z,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let e=k(r);return b.ZP.gt(I.amount.value,0)&&(e=(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](`<br><i><br><br><br>${(0,b.Ht)(I.amount.value)} Exhancers</i>`):e+`<br><i><br><br><br>${(0,b.Ht)(I.amount.value)} Exhancers</i>`)()),e},style:{color:"#3325CC",textDecoration:"underline"}}))),H=Re((()=>({conversion:L,tree:jt.tree,treeNode:G,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}))),Y=X((()=>({display:"TH",color:"#6d3678",canClick(){return b.ZP.gte(jt.points.value,10)},tooltip:"Thanos your points",onClick(){jt.points.value=b.ZP.div(jt.points.value,2),console.log("Thanos'd")},glowColor(){return b.ZP.eq(I.amount.value,1)?"orange":""}}))),J=X((()=>({display:"h",color(){return be.Z[he.ZP.theme].variables["--locked"]},tooltip:{display:(0,l.computed)((()=>`Restore your points to ${(0,b.WU)(s.value)}`)),right:!0},canClick(){return b.ZP.lt(jt.points.value,s.value)},onClick(){jt.points.value=s.value}}))),$=X((()=>({visibility:y.EE.Hidden}))),Q=K((()=>({nodes(){return[[Dt.treeNode,G],[Y,$,J]]},branches(){return[{startNode:Dt.treeNode,endNode:G,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:G,endNode:Y},{startNode:Y,endNode:J}]}}))),ee=Vt((()=>({tabs:{first:{tab:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,w._4)(...P),(0,w._4)(E),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("confirmed")])]))),display:"first"},second:{tab:Dt.display,display:"second"}},style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}}))),oe=Vt((()=>({tabs:{mainTab:{tab:ft((()=>({display:(0,y.tZ)((()=>{let e;return(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(ho,{resource:r,color:o,effectDisplay:`which are boosting waffles by ${(0,b.WU)(m.value)} and increasing the Ice Cream cap by ${(0,b.WU)(c.value)}`},null),(0,l.createVNode)(Zo,null,Pt(e=(0,w.sY)(H))?e:{default:()=>[e]}),(0,l.createVNode)(ao,{resource:r,color:o},null),(0,l.createVNode)(d,{height:"5px"},null),(0,l.createVNode)("button",{onClick:()=>console.log("yeet")},[(0,l.createTextVNode)("'HI'")]),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Name your points!")]),(0,l.createVNode)(Vo.Z,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e},null),(0,l.createVNode)(Zo,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[(0,l.createTextVNode)("I have "),k(jt.points),(0,l.createTextVNode)(" "),a.value,(0,l.createTextVNode)(" points!")]}),(0,l.createVNode)("hr",null,null),(0,w.Dy)(...N),(0,l.createVNode)(d,null,null),(0,w._4)(...P),(0,w._4)(E),(0,w._4)(V)])}))}))),display:"main tab",glowColor(){return x.canPurchase.value||C.canPurchase.value||B.canPurchase.value||V.canComplete.value?"blue":""},style:{color:"orange"}},thingies:{tab:ft((()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,w.sY)(j),(0,l.createVNode)(d,null,null),(0,l.createVNode)(te.Z,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[(0,l.createVNode)(Mo.Z,{"onUpdate:modelValue":e=>i.value=e,modelValue:i.value},null),(0,l.createVNode)(d,{width:"30px",height:"10px"},null),(0,l.createVNode)("div",null,[(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Beep")])]),(0,l.createVNode)(d,null,null),(0,l.createVNode)(Po,{height:"200px"},null)]}),(0,l.createVNode)(d,null,null),(0,l.createVNode)("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)])))}))),glowColor:"white",display:"thingies",style:{borderColor:"orange"}},jail:{tab:ft((()=>({display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,w.sY)(f),(0,w.sY)(U),(0,l.createVNode)(d,null,null),(0,l.createVNode)(te.Z,null,{default:()=>[(0,l.createVNode)(xo.Z,{style:"background-color: #555555; padding: 15px"},{default:()=>[(0,l.createVNode)("div",{style:"color: teal"},[(0,l.createTextVNode)("Sugar level:")]),(0,l.createVNode)(d,null,null),(0,w.sY)(A)]}),(0,l.createVNode)(d,null,null),(0,l.createVNode)(xo.Z,null,{default:()=>[(0,l.createVNode)("div",null,[(0,l.createTextVNode)("idk")]),(0,l.createVNode)(d,{width:"0",height:"50px"},null),(0,w.sY)(q)]})]}),(0,l.createVNode)(d,null,null),(0,l.createVNode)("div",null,[(0,l.createTextVNode)('It\'s jail because "bars"! So funny! Ha ha!')]),(0,w.sY)(Q)])))}))),display:"jail"},illuminati:{tab:ft((()=>({display:(0,y.tZ)((()=>(0,l.createVNode)("div",null,[(0,l.createVNode)("h1",null,[(0,l.createTextVNode)(" C O N F I R M E D ")]),(0,l.createVNode)(d,null,null),(0,w.sY)(ee),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Adjust how many points H gives you!")]),(0,l.createVNode)(ko,{"onUpdate:modelValue":e=>s.value=e,modelValue:s.value,min:1,max:30},null)]))),style:{backgroundColor:"#3325CC"}}))),visibility(){return(0,y.Kf)(B.bought.value)},display:"illuminati"}}})));return{id:e,color:o,name:t,links(){const e=Q.links.value.slice();return e.push({startNode:J,endNode:q,"stroke-width":"5px",stroke:"red",offsetEnd:{x:(()=>(-50)[Symbol.for("+")]?(-50)[Symbol.for("+")](100*q.progress.value.toNumber()):100*q.progress.value.toNumber()-50)(),y:0}}),e},points:r,best:n,beep:i,thingy:a,otherThingy:s,spentOnBuyables:u,waffleBoost:m,icecreamCap:c,coolInfo:f,lollipopMilestones:N,funChallenge:V,funEffect:M,generatorUpgrade:x,lollipopMultiplierUpgrade:C,lollipopMultiplierEffect:Z,unlockIlluminatiUpgrade:B,quasiUpgrade:E,exhancers:I,respecBuyables:_,sellExhancer:R,bars:{tallBoi:A,longBoi:U,flatBoi:q},tree:Q,g:Y,h:J,spook:$,conversion:L,reset:z,hotkeys:W,treeNode:G,resetButton:H,confirmRespec:D,minWidth:800,tabs:oe,display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,w.sY)(oe)])))}}));var Tt=It;const Ft=(0,ee.createLayer)((()=>{const e="f",o="#FE0102",t="Farms",r=v(0,"farm points"),n=(0,p.ax)(!1),i=eo((()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}}))),a=(0,p.ax)("Start"),s=_e((()=>({display(){return{title:"Clicky clicky!",description:(()=>"Current state:<br>"[Symbol.for("+")]?"Current state:<br>"[Symbol.for("+")](a.value):"Current state:<br>"+a.value)()}},initialState:"Start",canClick(){return(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!==")]?a.value[Symbol.for("!==")]("Borkened..."):"Borkened..."!==a.value)()},onClick(){switch(a.value){case"Start":a.value="A new state!";break;case"A new state!":a.value="Keep going!";break;case"Keep going!":a.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":a.value="Borkened...";break;default:a.value="Start";break}},onHold(){console.log("Clickkkkk...")},style(){switch(a.value){case"Start":return{"background-color":"green"};case"A new state!":return{"background-color":"yellow"};case"Keep going!":return{"background-color":"orange"};case"Maybe that's a bit too far...":return{"background-color":"red"};default:return{}}}}))),u=_e((()=>({onClick(){(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("==")]?a.value[Symbol.for("==")]("Borkened..."):"Borkened..."==a.value)()&&(a.value="Start")},display(){return(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("==")]?a.value[Symbol.for("==")]("Borkened..."):"Borkened..."==a.value)()?"Fix the clickable!":"Does nothing"}}))),m=lo((()=>({thingsToReset:()=>[Ft]}))),c=Le((()=>({scaling:Ae(10,3,.5),baseResource:jt.points,gainResource:r,modifyGainAmount:e=>b.ZP.times(e,Tt.otherThingy.value)}))),f=je((()=>({layerID:e,color:o,reset:m,tooltip(){return f.canClick.value?`${k(r)} ${r.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${k(jt.points)}`},canClick(){return b.ZP.gte(jt.points.value,10)}}))),d=Re((()=>({conversion:c,tree:jt.tree,treeNode:f,display:(0,y.tZ)((()=>d.conversion.buyMax?(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Hi! I'm a "),(0,l.createVNode)("u",null,[(0,l.createTextVNode)("weird dinosaur")]),(0,l.createTextVNode)(" and I'll give you")," ",(0,l.createVNode)("b",null,[(0,b.Ht)(d.conversion.currentGain.value)]),(0,l.createTextVNode)(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",(0,b.Ht)(d.conversion.nextAt.value),(0,l.createTextVNode)(" points)")]):(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Hi! I'm a "),(0,l.createVNode)("u",null,[(0,l.createTextVNode)("weird dinosaur")]),(0,l.createTextVNode)(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",(0,b.Ht)(d.conversion.nextAt.value),(0,l.createTextVNode)(" points)")])))}))),h=(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,w.sY)(i),(0,l.createVNode)(ho,{resource:r,color:o},null),(0,w.sY)(d),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("You have "),(0,b.Ht)(c.baseResource.value),(0,l.createTextVNode)(" points")]),(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createVNode)("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Bork Bork!")])]),(0,w.sY)(s)])));return{id:e,color:o,name:t,points:r,boop:n,coolInfo:i,clickable:s,clickableState:a,resetClickable:u,reset:m,conversion:c,treeNode:f,resetButton:d,display:h}}));var Dt=Ft;function Ot(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&(()=>void 0!==(0,l.isVNode)(e)&&null!==(0,l.isVNode)(e)&&(0,l.isVNode)(e)[Symbol.for("!")]?(0,l.isVNode)(e)[Symbol.for("!")]():!(0,l.isVNode)(e))()}const _t=(0,ee.createLayer)((()=>{const e="a",o="yellow",t="Achievements",r=v(0,"achievement power"),n=X((()=>({display:"A",color:o,tooltip:{display:"Achievements",right:!0},onClick(){jt.showAchievements()}}))),i=ce((()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:(0,l.computed)((()=>i.earned.value?"You did it!":"How did this happen?")),shouldEarn:!0}))),a=ce((()=>({display:"Impossible!",tooltip:(0,l.computed)((()=>a.earned.value?"HOW????":"Mwahahaha!")),style:{color:"#04e050"}}))),s=ce((()=>({display:"EIEIO",tooltip:"Get a farm point.\n\nReward: The dinosaur is now your friend (you can max Farm Points).",shouldEarn:function(){return b.ZP.gte(Dt.points.value,1)},onComplete(){console.log("Bork bork bork!")}}))),u=[i,a,s],m=Ee((()=>({rows:2,cols:2,getStartState(e){return e},getStyle(e,o){return{backgroundColor:`#${(()=>1234*Number(o)!==void 0&&1234*Number(o)!==null&&(1234*Number(o))[Symbol.for("%")]?(1234*Number(o))[Symbol.for("%")](999999):1234*Number(o)%999999)()}`}},getTitle(e){let o="";return"101"===e?o="top":"102"===e?o="bottom":"201"===e?o="left":"202"===e&&(o="right"),(0,y.tZ)((()=>(0,l.createVNode)(j.Z,(0,l.mergeProps)({display:JSON.stringify(this.cells[e].style)},{[o]:!0}),{default:()=>[(0,l.createVNode)("h3",null,[(0,l.createTextVNode)("Gridable #"),e])]})))},getDisplay(e,o){return String(o)},getCanClick(){return b.ZP.eq(jt.points.value,10)},onClick(e,o){this.cells[e].state=(()=>void 0!==Number(o)&&null!==Number(o)&&Number(o)[Symbol.for("+")]?Number(o)[Symbol.for("+")](1):Number(o)+1)()}}))),c=(0,y.tZ)((()=>{let e,o,t;return(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(te.Z,null,{default:()=>[(0,l.createVNode)(j.Z,{display:i.tooltip,bottom:!0},Ot(e=(0,w.sY)(i))?e:{default:()=>[e]}),(0,l.createVNode)(j.Z,{display:a.tooltip,bottom:!0},Ot(o=(0,w.sY)(a))?o:{default:()=>[o]}),(0,l.createVNode)(j.Z,{display:s.tooltip,bottom:!0},Ot(t=(0,w.sY)(s))?t:{default:()=>[t]})]}),(0,w._4)(m)])}));return{id:e,color:o,name:t,points:r,achievements:u,grid:m,treeNode:n,display:c}}));var Rt=_t;const jt=(0,ee.createLayer)((()=>{const e=v(10),o=S(e),t=g(e),r=(0,l.computed)((()=>{if((()=>void 0!==Tt.generatorUpgrade.bought.value&&null!==Tt.generatorUpgrade.bought.value&&Tt.generatorUpgrade.bought.value[Symbol.for("!")]?Tt.generatorUpgrade.bought.value[Symbol.for("!")]():!Tt.generatorUpgrade.bought.value)())return new b.ZP(0);let e=new b.ZP(3.19);return Tt.lollipopMultiplierUpgrade.bought.value&&(e=e.times(Tt.lollipopMultiplierEffect.value)),e}));h.globalBus.on("update",(o=>{e.value=b.ZP.add(e.value,b.ZP.times(r.value,o))}));const n=N(e,r),{openModal:i,modal:a}=(0,ee.setupLayerModal)(Rt),s=K((()=>({nodes:[[Tt.treeNode],[Dt.treeNode,Tt.spook]],leftSideNodes:[Rt.treeNode,Tt.h],branches:[{startNode:Dt.treeNode,endNode:Tt.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=(0,l.toRaw)(this.resettingNode.value)===(0,l.toRaw)(Tt.treeNode)?0:10,o.value=e.value,t.value=e.value},resetPropagation:Q})));return{id:"main",name:"Tree",links:s.links,display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Game Paused")]),[[l.vShow,0===oe.Z.devSpeed]]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Dev Speed: "),(0,b.WU)(oe.Z.devSpeed||0),(0,l.createTextVNode)("x")]),[[l.vShow,oe.Z.devSpeed&&(()=>void 0!==oe.Z.devSpeed&&null!==oe.Z.devSpeed&&oe.Z.devSpeed[Symbol.for("!==")]?oe.Z.devSpeed[Symbol.for("!==")](1):1!==oe.Z.devSpeed)()]]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Offline Time: "),(0,b.mr)(oe.Z.offlineTime||0)]),[[l.vShow,(()=>void 0!==oe.Z.offlineTime&&null!==oe.Z.offlineTime&&oe.Z.offlineTime[Symbol.for("!=")]?oe.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=oe.Z.offlineTime)()]]),(0,l.createVNode)("div",null,[(0,l.withDirectives)((0,l.createVNode)("span",null,[(0,l.createTextVNode)("You have ")]),[[l.vShow,b.ZP.lt(e.value,"1e1000")]]),(0,l.createVNode)("h2",null,[(0,b.WU)(e.value)]),(0,l.withDirectives)((0,l.createVNode)("span",null,[(0,l.createTextVNode)(" points")]),[[l.vShow,b.ZP.lt(e.value,"1e1e6")]])]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("("),n.value,(0,l.createTextVNode)(")")]),[[l.vShow,b.ZP.gt(r.value,0)]]),(0,l.createVNode)(d,null,null),(0,l.createVNode)("button",{onClick:i},[(0,l.createTextVNode)("open achievements")]),(0,w.sY)(a),(0,w.sY)(s),(0,l.createVNode)(m,{height:"200px",style:"margin: 10px auto; display: block"},null)]))),points:e,best:o,total:t,oomps:n,tree:s,showAchievements:i}})),Ut=e=>[jt,Dt,Tt,Rt],At=(0,l.computed)((()=>b.ZP.gt(jt.points.value,25)));function qt(e,o){}},9365:function(e,o,t){"use strict";t.r(o),t.d(o,{layers:function(){return f},createLayer:function(){return d},addLayer:function(){return y},getLayer:function(){return b},removeLayer:function(){return h},reloadLayer:function(){return p},setupLayerModal:function(){return v}});var l=t(4865),r=t(7286),n=t(6113),i=t(9583),a=t(3273),s=t(8111),u=t(7302),m=t(4061),c=t(5967);const f={};function d(e){return(0,a.z2)((()=>{const o=e(),t=o.emitter=(0,s.i)();return o.on=t.on.bind(t),o.emit=t.emit.bind(t),o.minimized=(0,m.ax)(!1),(0,i.yB)(o,"color"),(0,i.yB)(o,"display"),(0,i.yB)(o,"name"),(0,n.Rh)(o,"name",o.id),(0,i.yB)(o,"minWidth"),(0,n.Rh)(o,"minWidth",600),(0,i.yB)(o,"minimizable"),(0,n.Rh)(o,"minimizable",!0),(0,i.yB)(o,"links"),o}))}function y(e,o){console.info("Adding layer",e.id),f[e.id]?console.error("Attempted to add layer with same ID as existing layer",e.id,f[e.id]):((0,n.Rh)(o,"layers",{}),(()=>void 0!==o.layers[e.id]&&null!==o.layers[e.id]&&o.layers[e.id][Symbol.for("==")]?o.layers[e.id][Symbol.for("==")](null):null==o.layers[e.id])()&&(o.layers[e.id]={}),f[e.id]=e,u.globalBus.emit("addLayer",e,o.layers[e.id]))}function b(e){return f[e]}function h(e){console.info("Removing layer",e.id),u.globalBus.emit("removeLayer",e),f[e.id]=void 0}function p(e){h(e),y(e,c.Z)}function v(e){const o=(0,l.ref)(!1);return{openModal:()=>o.value=!0,modal:(0,n.tZ)((()=>(0,l.createVNode)(r.Z,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e},{header:()=>(0,l.createVNode)("h2",null,[(0,l.unref)(e.name)]),body:(0,l.unref)(e.display)})))}}window.layers=f,u.globalBus.on("update",(function(e){Object.values(f).forEach((o=>{o?.emit("preUpdate",e)})),Object.values(f).forEach((o=>{o?.emit("update",e)})),Object.values(f).forEach((o=>{o?.emit("postUpdate",e)}))}))},1604:function(e,o,t){"use strict";t.d(o,{MM:function(){return u},sY:function(){return m},_4:function(){return c},Dy:function(){return f},RU:function(){return d},ix:function(){return y},vq:function(){return b},KO:function(){return h},o9:function(){return p},Uv:function(){return v},P5:function(){return S}});var l=t(4865),r=t(9905),n=t(274),i=t(6113),a=t(9583);function s(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&(()=>void 0!==(0,l.isVNode)(e)&&null!==(0,l.isVNode)(e)&&(0,l.isVNode)(e)[Symbol.for("!")]?(0,l.isVNode)(e)[Symbol.for("!")]():!(0,l.isVNode)(e))()}function u(e,o="span"){return"function"===typeof e?(0,l.defineComponent)({render:e}):"string"===typeof e?(()=>void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0)()?(e=e.trim(),(()=>void 0!==e.charAt(0)&&null!==e.charAt(0)&&e.charAt(0)[Symbol.for("!==")]?e.charAt(0)[Symbol.for("!==")]("<"):"<"!==e.charAt(0))()&&(e=`<${o}>${e}</${o}>`),(0,l.defineComponent)({template:e})):(0,l.defineComponent)({render:()=>({})}):e}function m(e){if(d(e))return"function"===typeof e?e():u(e);const o=e[i.wA];return(0,l.createVNode)(o,e[i.tj](),null)}function c(...e){let o;return(0,l.createVNode)(n.Z,null,s(o=e.map(m))?o:{default:()=>[o]})}function f(...e){let o;return(0,l.createVNode)(r.Z,null,s(o=e.map(m))?o:{default:()=>[o]})}function d(e){return"string"===typeof e||("object"===typeof e?!(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)()&&((()=>"render"[Symbol.for("in")]?"render"[Symbol.for("in")](e):"render"in e)()||(()=>"component"[Symbol.for("in")]?"component"[Symbol.for("in")](e):"component"in e)()):"function"===typeof e&&!0===e[a.mM])}function y(e,o){const t=(0,l.ref)(null);function r(){(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value)()&&(t.value=setInterval(i,250))}function n(){t.value&&(clearInterval(t.value),t.value=null)}function i(){o&&o.value?o.value():e&&e.value&&e.value()}return{start:r,stop:n,handleHolding:i}}function b(e,o="div"){const t=(0,l.shallowRef)();return(0,l.watchEffect)((()=>{t.value=u(v(e),o)})),t}function h(e,o="div"){const t=(0,l.shallowRef)(null);return(0,l.watchEffect)((()=>{const l=v(e);t.value=(()=>void 0!==l&&null!==l&&l[Symbol.for("==")]?l[Symbol.for("==")](null):null==l)()?null:u(l,o)})),t}function p(e){return(0,l.computed)((()=>v(e)))}function v(e){return(0,l.unref)((0,l.unref)(e))}function S(...e){return(()=>void 0!==e.includes(Object)&&null!==e.includes(Object)&&e.includes(Object)[Symbol.for("!")]?e.includes(Object)[Symbol.for("!")]():!e.includes(Object))()&&e.push(Object),e}},7286:function(e,o,t){"use strict";t.d(o,{Z:function(){return p}});var l=t(4865),r=t(7172);const n=["onPointerdown"],i={class:"modal-wrapper"},a={class:"modal-container"},s={class:"modal-header"},u=(0,l.createTextVNode)(" default header "),m={class:"modal-body"},c=(0,l.createTextVNode)(" default body "),f=(0,l.createTextVNode)(" default body "),d={class:"modal-footer"},y=(0,l.createElementVNode)("div",{class:"modal-default-flex-grow"},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());var b=(0,l.defineComponent)({props:{modelValue:{type:Boolean},links:null},emits:["update:modelValue"],setup(e,{expose:o,emit:t}){const b=e,h=(0,l.toRefs)(b),p=(0,l.computed)((()=>h.modelValue||S.value));function v(){t("update:modelValue",!1)}const S=(0,l.ref)(!1);return o({isOpen:p}),(o,t)=>((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:"#modal-root"},[(0,l.createVNode)(l.Transition,{name:"modal",onBeforeEnter:t[0]||(t[0]=e=>S.value=!0),onAfterLeave:t[1]||(t[1]=e=>S.value=!1)},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",(0,l.mergeProps)({class:"modal-mask",onPointerdown:(0,l.withModifiers)(v,["self"])},o.$attrs),[(0,l.createElementVNode)("div",i,[(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("div",s,[(0,l.renderSlot)(o.$slots,"header",{shown:(0,l.unref)(p)},(()=>[u]))]),(0,l.createElementVNode)("div",m,[e.links?((0,l.openBlock)(),(0,l.createBlock)(r.Z,{key:0,links:e.links},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(o.$slots,"body",{shown:(0,l.unref)(p)},(()=>[c]))])),_:3},8,["links"])):(0,l.renderSlot)(o.$slots,"body",{key:1,shown:(0,l.unref)(p)},(()=>[f]))]),(0,l.createElementVNode)("div",d,[(0,l.renderSlot)(o.$slots,"footer",{shown:(0,l.unref)(p)},(()=>[(0,l.createElementVNode)("div",{class:"modal-default-footer"},[y,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:v}," Close ")])]))])])])],16,n),[[l.vShow,e.modelValue]])])),_:3})]))}});const h=b;var p=h},5939:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865);function r(e,o,t,r,n,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["tooltip-container",{shown:e.isShown}]),onMouseenter:o[0]||(o[0]=o=>e.isHovered=!0),onMouseleave:o[1]||(o[1]=o=>e.isHovered=!1)},[(0,l.renderSlot)(e.$slots,"default",{},void 0,!0),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((()=>[e.isShown?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["tooltip",{top:e.unref(e.top),left:e.unref(e.left),right:e.unref(e.right),bottom:e.unref(e.bottom)}]),style:(0,l.normalizeStyle)({"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"})},[e.comp?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.comp),{key:0})):(0,l.createCommentVNode)("",!0)],6)):(0,l.createCommentVNode)("",!0)])),_:1})],34)}var n=t(1604),i=(0,l.defineComponent)({props:{display:(0,n.P5)(Object,String,Function),top:(0,n.P5)(Boolean),left:(0,n.P5)(Boolean),right:(0,n.P5)(Boolean),bottom:(0,n.P5)(Boolean),xoffset:(0,n.P5)(String),yoffset:(0,n.P5)(String),force:(0,n.P5)(Boolean)},setup(e){const{display:o,force:t}=(0,l.toRefs)(e),r=(0,l.ref)(!1),i=(0,l.computed)((()=>((0,n.Uv)(t)||r.value)&&a.value)),a=(0,n.KO)(o);return{isHovered:r,isShown:i,comp:a,unref:l.unref}}}),a=t(3744);const s=(0,a.Z)(i,[["render",r],["__scopeId","data-v-2ee899a0"]]);var u=s},3520:function(e,o,t){"use strict";t.d(o,{Z:function(){return m}});var l=t(4865),r=t(1604),n=t(9179);const i={class:"field"},a={key:0,class:"field-title"};var s=(0,l.defineComponent)({props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,s=(0,r.KO)((0,l.toRef)(t,"title"),"span"),u=(0,l.ref)(t.options.find((e=>e.value===t.modelValue)));function m(e){o("update:modelValue",e.value)}return(0,l.watch)((0,l.toRef)(t,"modelValue"),(e=>{(()=>void 0!==u.value?.value&&null!==u.value?.value&&u.value?.value[Symbol.for("!==")]?u.value?.value[Symbol.for("!==")](e):u.value?.value!==e)()&&(u.value=t.options.find((o=>o.value===e)))})),(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("span",a,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(s))))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(n.Z),{options:e.options,modelValue:u.value,"onUpdate:modelValue":[t[0]||(t[0]=e=>u.value=e),m],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const u=s;var m=u},1033:function(e,o,t){"use strict";t.d(o,{Z:function(){return d}});var l=t(4865),r=t(1604),n=t(7197);const i=["onSubmit"],a={class:"field"},s={key:0,class:"field-title"},u=["placeholder"];var m=(0,l.defineComponent)({props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:o}){const t=e,m=(0,l.toRefs)(t),c=(0,l.computed)((()=>m.title?.value&&(0,r.MM)((0,l.unref)(m.title.value),"span"))),f=(0,l.ref)(null);(0,l.onMounted)((()=>{f.value?.focus()}));const d=(0,l.computed)({get(){return(0,l.unref)(m.modelValue)||""},set(e){o("update:modelValue",e)}});function y(){o("submit")}return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("form",{onSubmit:(0,l.withModifiers)(y,["prevent"])},[(0,l.createElementVNode)("div",a,[(0,l.unref)(c)?((0,l.openBlock)(),(0,l.createElementBlock)("span",s,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(c))))])):(0,l.createCommentVNode)("",!0),e.textArea?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(n.Z),{key:1,modelValue:(0,l.unref)(d),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.isRef)(d)?d.value=e:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:y,ref_key:"field",ref:f},null,8,["modelValue","placeholder","maxHeight"])):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:2,type:"text","onUpdate:modelValue":t[1]||(t[1]=e=>(0,l.isRef)(d)?d.value=e:null),placeholder:e.placeholder,class:(0,l.normalizeClass)({fullWidth:(()=>void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title)()}),onBlur:y,ref_key:"field",ref:f},null,42,u)),[[l.vModelText,(0,l.unref)(d)]])])],40,i))}}),c=t(3744);const f=(0,c.Z)(m,[["__scopeId","data-v-540fa62c"]]);var d=f},900:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865),r=t(1604);const n={class:"field"};var i=(0,l.defineComponent)({props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,i=(0,l.computed)((()=>(0,r.MM)((0,l.unref)(t.title)||"<span></span>","span"))),a=(0,l.computed)({get(){return(()=>void 0!==!t.modelValue&&null!==!t.modelValue&&(!t.modelValue)[Symbol.for("!")]?(!t.modelValue)[Symbol.for("!")]():!!t.modelValue)()},set(e){o("update:modelValue",e)}});return(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("label",n,[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=e=>(0,l.isRef)(a)?a.value=e:null)},null,512),[[l.vModelCheckbox,(0,l.unref)(a)]]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i))))]))}}),a=t(3744);const s=(0,a.Z)(i,[["__scopeId","data-v-7db643c6"]]);var u=s},9905:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865),r=t(1037),n=t(9266);const i={class:"table"};var a=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>r.Z[n.ZP.theme].mergeAdjacent));return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["col",{mergeAdjacent:(0,l.unref)(o)}])},[(0,l.renderSlot)(e.$slots,"default")],2)]))}});const s=a;var u=s},274:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865),r=t(1037),n=t(9266);const i={class:"table"};var a=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>r.Z[n.ZP.theme].mergeAdjacent));return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["row",{mergeAdjacent:(0,l.unref)(o)}])},[(0,l.renderSlot)(e.$slots,"default")],2)]))}});const s=a;var u=s},7172:function(e,o,t){"use strict";t.d(o,{Z:function(){return f}});var l=t(4865),r=t(630);const n=["x1","y1","x2","y2"];var i=(0,l.defineComponent)({props:{link:null,startNode:null,endNode:null},setup(e){const o=e,t=(0,l.toRefs)(o),r=(0,l.computed)((()=>{const e={x:t.startNode.value.x||0,y:t.startNode.value.y||0};return t.link.value.offsetStart&&(e.x=(()=>void 0!==e.x&&null!==e.x&&e.x[Symbol.for("+")]?e.x[Symbol.for("+")]((0,l.unref)(t.link.value.offsetStart).x):e.x+(0,l.unref)(t.link.value.offsetStart).x)(),e.y=(()=>void 0!==e.y&&null!==e.y&&e.y[Symbol.for("+")]?e.y[Symbol.for("+")]((0,l.unref)(t.link.value.offsetStart).y):e.y+(0,l.unref)(t.link.value.offsetStart).y)()),e})),i=(0,l.computed)((()=>{const e={x:t.endNode.value.x||0,y:t.endNode.value.y||0};return t.link.value.offsetEnd&&(e.x=(()=>void 0!==e.x&&null!==e.x&&e.x[Symbol.for("+")]?e.x[Symbol.for("+")]((0,l.unref)(t.link.value.offsetEnd).x):e.x+(0,l.unref)(t.link.value.offsetEnd).x)(),e.y=(()=>void 0!==e.y&&null!==e.y&&e.y[Symbol.for("+")]?e.y[Symbol.for("+")]((0,l.unref)(t.link.value.offsetEnd).y):e.y+(0,l.unref)(t.link.value.offsetEnd).y)()),e}));return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("line",(0,l.mergeProps)({"stroke-width":"15px",stroke:"white"},e.link,{x1:(0,l.unref)(r).x,y1:(0,l.unref)(r).y,x2:(0,l.unref)(i).x,y2:(0,l.unref)(i).y}),null,16,n))}});const a=i;var s=a,u=(0,l.defineComponent)({props:{links:null},setup(e){const o=e,t=(0,l.toRef)(o,"links"),n=new MutationObserver(y),i=new ResizeObserver(y),a=(0,l.ref)({}),u=(0,l.ref)(null);(0,l.onMounted)((()=>{const e=u.value;(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&i.observe(e)}));const m=(0,l.computed)((()=>t.value?.filter((e=>{const o=a.value;return(()=>void 0!==o[e.startNode.id]?.x&&null!==o[e.startNode.id]?.x&&o[e.startNode.id]?.x[Symbol.for("!=")]?o[e.startNode.id]?.x[Symbol.for("!=")](void 0):void 0!=o[e.startNode.id]?.x)()&&(()=>void 0!==o[e.startNode.id]?.y&&null!==o[e.startNode.id]?.y&&o[e.startNode.id]?.y[Symbol.for("!=")]?o[e.startNode.id]?.y[Symbol.for("!=")](void 0):void 0!=o[e.startNode.id]?.y)()&&(()=>void 0!==o[e.endNode.id]?.x&&null!==o[e.endNode.id]?.x&&o[e.endNode.id]?.x[Symbol.for("!=")]?o[e.endNode.id]?.x[Symbol.for("!=")](void 0):void 0!=o[e.endNode.id]?.x)()&&(()=>void 0!==o[e.endNode.id]?.y&&null!==o[e.endNode.id]?.y&&o[e.endNode.id]?.y[Symbol.for("!=")]?o[e.endNode.id]?.y[Symbol.for("!=")](void 0):void 0!=o[e.endNode.id]?.y)()}))??[])),c={attributes:!0,childList:!0,subtree:!1};(0,l.provide)(r.Z,((e,o)=>{a.value[e]={element:o},n.observe(o,c),(0,l.nextTick)((()=>{(()=>void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!=")]?u.value[Symbol.for("!=")](null):null!=u.value)()&&b(e)}))})),(0,l.provide)(r.w,(e=>{a.value[e]=void 0}));let f=!0,d=u.value?.getBoundingClientRect();function y(){(()=>void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!=")]?u.value[Symbol.for("!=")](null):null!=u.value)()&&f&&(f=!1,(0,l.nextTick)((()=>{d=u.value?.getBoundingClientRect(),Object.keys(a.value).forEach((e=>b(e))),f=!0})))}function b(e){const o=a.value[e];if((()=>void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o)()||(()=>void 0!==d&&null!==d&&d[Symbol.for("==")]?d[Symbol.for("==")](null):null==d)())return;const t=o.element.getBoundingClientRect();o.x=(()=>t.x+t.width/2!==void 0&&t.x+t.width/2!==null&&(t.x+t.width/2)[Symbol.for("-")]?(t.x+t.width/2)[Symbol.for("-")](d.x):t.x+t.width/2-d.x)(),o.y=(()=>t.y+t.height/2!==void 0&&t.y+t.height/2!==null&&(t.y+t.height/2)[Symbol.for("-")]?(t.y+t.height/2)[Symbol.for("-")](d.y):t.y+t.height/2-d.y)()}return(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.renderSlot)(e.$slots,"default"),(0,l.createElementVNode)("div",{ref_key:"resizeListener",ref:u,class:"resize-listener"},null,512),(0,l.unref)(m)?((0,l.openBlock)(),(0,l.createElementBlock)("svg",(0,l.normalizeProps)((0,l.mergeProps)({key:0},e.$attrs)),[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(m),((e,o)=>((0,l.openBlock)(),(0,l.createBlock)(s,{key:o,link:e,startNode:a.value[e.startNode.id],endNode:a.value[e.endNode.id]},null,8,["link","startNode","endNode"])))),128))],16)):(0,l.createCommentVNode)("",!0)],64))}}),m=t(3744);const c=(0,m.Z)(u,[["__scopeId","data-v-9f482c6a"]]);var f=c},2736:function(e,o,t){"use strict";t.r(o),o["default"]="eyJpZCI6InRtdC14LTEwNSIsIm5hbWUiOiJEZWZhdWx0IFNhZmZmZiAtIHNvbWV0aGluZyBlbHNlIiwidGFicyI6WyJtYWluIiwiYyJdLCJ0aW1lIjoxNjI0MjQ1MjYxMDg3LCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsInRpbWVQbGF5ZWQiOiIzNDQ4LjYxNTc4MTcwOTAxIiwia2VlcEdvaW5nIjpmYWxzZSwibGFzdFRlblRpY2tzIjpbMC4wNTEsMC4wNSwwLjA0OSwwLjA1LDAuMDUsMC4wNTEsMC4wNDksMC4wNSwwLjA1LDAuMDUxXSwic2hvd1RQUyI6dHJ1ZSwibXNEaXNwbGF5IjoiYWxsIiwiaGlkZUNoYWxsZW5nZXMiOmZhbHNlLCJ0aGVtZSI6InBhcGVyIiwic3VidGFicyI6e30sIm1pbmltaXplZCI6e30sIm1vZElEIjoidG10LXgiLCJtb2RWZXJzaW9uIjoiMC4wIiwicG9pbnRzIjoiMzMwMC4zNzc3NzM4NTkwNTUiLCJtYWluIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJmIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e30sImNsaWNrYWJsZXMiOnsiMTEiOiJTdGFydCJ9LCJ1bmxvY2tlZCI6ZmFsc2UsInBvaW50cyI6IjAiLCJib29wIjpmYWxzZX0sImMiOnsidXBncmFkZXMiOlsiMTEiXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e30sImJ1eWFibGVzIjp7IjExIjoiMCJ9LCJjaGFsbGVuZ2VzIjp7IjExIjoiMCJ9LCJ1bmxvY2tlZCI6dHJ1ZSwicG9pbnRzIjoiMCIsImJlc3QiOiIxIiwidG90YWwiOiIwIiwiYmVlcCI6ZmFsc2UsInRoaW5neSI6InBvaW50eSIsIm90aGVyVGhpbmd5IjoxMCwic3BlbnRPbkJ1eWFibGVzIjoiMCJ9LCJhIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbIjExIl0sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9LCJ1bmxvY2tlZCI6dHJ1ZSwicG9pbnRzIjoiMCJ9LCJnIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJoIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJzcG9vayI6eyJ1cGdyYWRlcyI6W10sImFjaGlldmVtZW50cyI6W10sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9fSwib29tcHNNYWciOjAsImxhc3RQb2ludHMiOiIzMzAwLjM3Nzc3Mzg1OTA1NSJ9"},7634:function(e,o,t){var l={"./safff.txt":2736};function r(e){var o=n(e);return t(o)}function n(e){if(!t.o(l,e)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return l[e]}r.keys=function(){return Object.keys(l)},r.resolve=n,e.exports=r,r.id=7634},2345:function(e){"use strict";e.exports=JSON.parse('{"title":"Profectus","id":"profectus-demo","author":"thepaperpilot","discordName":"The Paper Pilot Community","discordLink":"https://discord.gg/WzejVAx","versionNumber":"0.0","versionTitle":"Initial Commit","allowGoBack":true,"allowSmall":false,"defaultDecimalsShown":2,"useHeader":true,"banner":null,"logo":"Logo.png","initialTabs":["main","c"],"maxTickLength":3600,"offlineLimit":1}')}},o={};function t(l){var r=o[l];if(void 0!==r)return r.exports;var n=o[l]={exports:{}};return e[l].call(n.exports,n,n.exports,t),n.exports}t.m=e,function(){var e=[];t.O=function(o,l,r,n){if(!l){var i=1/0;for(m=0;m<e.length;m++){l=e[m][0],r=e[m][1],n=e[m][2];for(var a=!0,s=0;s<l.length;s++)(!1&n||i>=n)&&Object.keys(t.O).every((function(e){return t.O[e](l[s])}))?l.splice(s--,1):(a=!1,n<i&&(i=n));if(a){e.splice(m--,1);var u=r();void 0!==u&&(o=u)}}return o}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[l,r,n]}}(),function(){t.n=function(e){var o=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(o,{a:o}),o}}(),function(){t.d=function(e,o){for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};t.O.j=function(o){return 0===e[o]};var o=function(o,l){var r,n,i=l[0],a=l[1],s=l[2],u=0;if(i.some((function(o){return 0!==e[o]}))){for(r in a)t.o(a,r)&&(t.m[r]=a[r]);if(s)var m=s(t)}for(o&&o(l);u<i.length;u++)n=i[u],t.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return t.O(m)},l=self["webpackChunkprofectus"]=self["webpackChunkprofectus"]||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))}();var l=t.O(void 0,[998],(function(){return t(5813)}));l=t.O(l)})();
|
|
//# sourceMappingURL=app.021b8da8.js.map
|