2 lines
No EOL
304 KiB
JavaScript
2 lines
No EOL
304 KiB
JavaScript
(function(){var e={5679:function(e,n,o){"use strict";o.d(n,{b:function(){return r}});var r,t=o(5082),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};(function(e){e["Classic"]="classic",e["Paper"]="paper",e["Nordic"]="nordic",e["Aqua"]="aqua"})(r||(r={})),n["Z"]={classic:l,paper:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},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:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},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:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},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,n,o){"use strict";o.d(n,{wA:function(){return a},tj:function(){return f},QI:function(){return s},EE:function(){return r},tZ:function(){return m},Kf:function(){return d},Rh:function(){return y},bD:function(){return b}});var r,t=o(3336),l=(o(2526),o(1817),o(1539),o(4747),o(7941),o(9706)),i=o(9583),u=o(4865),a=Symbol("Component"),f=Symbol("GatherProps"),c=0;function s(){var e=arguments,n=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:"feature-";return function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")](c++):n+c++}()}function m(e){return e[i.mM]=!0,e}function d(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:r.None;return e?r.Visible:o}function y(e,n,o){void 0===e[n]&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](void 0):void 0!=o}()&&(e[n]=o)}function b(e,n){var o=[],r=function e(r){Object.keys(r).forEach((function(i){var a=r[i];a&&"object"===(0,t.Z)(a)&&(a.type===n?o.push(a):function(){return 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)}()&&function(){return void 0!==(0,u.isRef)(a)&&null!==(0,u.isRef)(a)&&(0,u.isRef)(a)[Symbol.for("!")]?(0,u.isRef)(a)[Symbol.for("!")]():!(0,u.isRef)(a)}()&&e(a))}))};return r(e),o}(function(e){e[e["Visible"]=0]="Visible",e[e["Hidden"]=1]="Hidden",e[e["None"]=2]="None"})(r||(r={}))},630:function(e,n,o){"use strict";o.d(n,{Z:function(){return r},w:function(){return t}});o(2526),o(1817),o(1539);var r=Symbol("RegisterLinkNode"),t=Symbol("UnregisterLinkNode")},7302:function(e,n,o){"use strict";o.r(n),o.d(n,{globalBus:function(){return c},startGameLoop:function(){return y}});var r=o(8534),t=(o(5666),o(2526),o(1817),o(1539),o(7042),o(86),o(8783),o(3948),o(2345)),l=o(9706),i=o(8111),u=o(5967),a=o(9266),f=o(3032),c=(0,i.i)(),s=null,m=null;function d(){var e,n=Date.now(),o=function(){return n-u.Z.time!==void 0&&n-u.Z.time!==null&&(n-u.Z.time)[Symbol.for("/")]?(n-u.Z.time)[Symbol.for("/")](1e3):(n-u.Z.time)/1e3}();u.Z.time=n;var r=o;if(f.Z.lastTenTicks.push(r),function(){return void 0!==f.Z.lastTenTicks.length&&null!==f.Z.lastTenTicks.length&&f.Z.lastTenTicks.length[Symbol.for(">")]?f.Z.lastTenTicks.length[Symbol.for(">")](10):f.Z.lastTenTicks.length>10}()&&(f.Z.lastTenTicks=f.Z.lastTenTicks.slice(1)),!(function(){return void 0!==(e=m)&&null!==(e=m)&&(e=m)[Symbol.for("!==")]?(e=m)[Symbol.for("!==")](null):null!==(e=m)}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()&&e.value&&function(){return void 0!==u.Z.keepGoing&&null!==u.Z.keepGoing&&u.Z.keepGoing[Symbol.for("!")]?u.Z.keepGoing[Symbol.for("!")]():!u.Z.keepGoing}())&&!f.Z.hasNaN&&(o=new l.ZP(o).max(0),0!==u.Z.devSpeed)){if(function(){return void 0!==u.Z.offlineTime&&null!==u.Z.offlineTime&&u.Z.offlineTime[Symbol.for("!=")]?u.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=u.Z.offlineTime}()){if(l.ZP.gt(u.Z.offlineTime,function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())&&(u.Z.offlineTime=new l.ZP(function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())),l.ZP.gt(u.Z.offlineTime,0)&&function(){return void 0!==u.Z.devSpeed&&null!==u.Z.devSpeed&&u.Z.devSpeed[Symbol.for("!==")]?u.Z.devSpeed[Symbol.for("!==")](0):0!==u.Z.devSpeed}()){var i=l.ZP.div(u.Z.offlineTime,10).max(o);u.Z.offlineTime=l.ZP.sub(u.Z.offlineTime,i),o=o.add(i)}else 0===u.Z.devSpeed&&(u.Z.offlineTime=l.ZP.add(u.Z.offlineTime,o));(function(){return void 0!==u.Z.offlineProd&&null!==u.Z.offlineProd&&u.Z.offlineProd[Symbol.for("!")]?u.Z.offlineProd[Symbol.for("!")]():!u.Z.offlineProd}()||l.ZP.lt(u.Z.offlineTime,0))&&(u.Z.offlineTime=null)}o=l.ZP.min(o,t.maxTickLength),function(){return void 0!==u.Z.devSpeed&&null!==u.Z.devSpeed&&u.Z.devSpeed[Symbol.for("!=")]?u.Z.devSpeed[Symbol.for("!=")](void 0):void 0!=u.Z.devSpeed}()&&(o=o.times(u.Z.devSpeed)),o.eq(0)||(u.Z.timePlayed=l.ZP.add(u.Z.timePlayed,o),c.emit("update",o,r),a.ZP.unthrottled?(requestAnimationFrame(d),function(){return void 0!==s&&null!==s&&s[Symbol.for("!=")]?s[Symbol.for("!=")](null):null!=s}()&&(clearInterval(s),s=null)):function(){return void 0!==s&&null!==s&&s[Symbol.for("==")]?s[Symbol.for("==")](null):null==s}()&&(s=setInterval(d,50)))}}function y(){return b.apply(this,arguments)}function b(){return b=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(o.bind(o,4064));case 2:m=e.sent.hasWon,a.ZP.unthrottled?requestAnimationFrame(d):s=setInterval(d,50);case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}},4061:function(e,n,o){"use strict";o.d(n,{n9:function(){return c},nY:function(){return s},ax:function(){return m},Mv:function(){return d}});var r=o(9584),t=o(3336),l=(o(2526),o(1817),o(1539),o(4747),o(7941),o(6699),o(2222),o(7302)),i=o(9706),u=o(3273),a=o(3577),f=o(4865),c=Symbol("PersistentState"),s=Symbol("DefaultValue");function m(e){var n=(0,f.isRef)(e)?e:(0,f.ref)(e);return n[c]=n,n[s]=(0,f.isRef)(e)?e.value:e,n}function d(e,n){var o=e,r=(0,f.ref)(n);o[c]=r,o[s]=(0,f.isRef)(n)?n.value:n}l.globalBus.on("addLayer",(function(e,n){var o=[],l=function e(l){var m=arguments,d=function(){return void 0!==m.length&&null!==m.length&&m.length[Symbol.for(">")]?m.length[Symbol.for(">")](1):m.length>1}()&&function(){return void 0!==m[1]&&null!==m[1]&&m[1][Symbol.for("!==")]?m[1][Symbol.for("!==")](void 0):void 0!==m[1]}()?arguments[1]:[],y=!1;return Object.keys(l).forEach((function(m){var b=l[m];if(b&&"object"===(0,t.Z)(b))if(function(){return void 0!==c&&null!==c&&c[Symbol.for("in")]?c[Symbol.for("in")](b):c in b}()){y=!0;var v=d.reduce((function(e,n){return function(){return n in e!==void 0&&n in e!==null&&(n in e)[Symbol.for("!")]?(n in e)[Symbol.for("!")]():!(n in e)}()&&(e[n]={}),e[n]}),n),S=v[m];v[m]=b[c],!function(){return void 0!==S&&null!==S&&S[Symbol.for("!=")]?S[Symbol.for("!=")](null):null!=S}()?v[m].value=b[s]:v[m].value=S}else if(function(){return b instanceof i.ZP!==void 0&&b instanceof i.ZP!==null&&(b instanceof i.ZP)[Symbol.for("!")]?(b instanceof i.ZP)[Symbol.for("!")]():!(b instanceof i.ZP)}()&&function(){return void 0!==(0,f.isRef)(b)&&null!==(0,f.isRef)(b)&&(0,f.isRef)(b)[Symbol.for("!")]?(0,f.isRef)(b)[Symbol.for("!")]():!(0,f.isRef)(b)}()&&function(){return void 0!==o.includes(b)&&null!==o.includes(b)&&o.includes(b)[Symbol.for("!")]?o.includes(b)[Symbol.for("!")]():!o.includes(b)}()){"symbol"===(0,t.Z)(b.type)&&o.push(b);var g=e(b,[].concat((0,r.Z)(d),[m]));g&&((0,a.kJ)(b)&&function(){return void 0!==(0,a.kJ)(l)&&null!==(0,a.kJ)(l)&&(0,a.kJ)(l)[Symbol.for("!")]?(0,a.kJ)(l)[Symbol.for("!")]():!(0,a.kJ)(l)}()?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.",function(){return void 0!==u.Le&&null!==u.Le&&u.Le[Symbol.for("in")]?u.Le[Symbol.for("in")](l):u.Le in l}()?l[u.Le]:l,m):y=!0)}})),y};l(e)}))},5967:function(e,n,o){"use strict";o.d(n,{U:function(){return m}});var r,t=o(2482),l=o(9584),i=(o(2526),o(1817),o(1539),o(8862),o(2222),o(7556),o(1299),o(1037),o(5003),o(9706)),u=o(1349),a=o(3273),f=o(4865),c=o(3032),s=(0,f.reactive)({id:"",devSpeed:null,name:"",tabs:[],time:function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:new i.ZP(0),keepGoing:!1,modID:"",modVersion:"",layers:{}});function m(e){return JSON.stringify(e,(function(e,n){return(0,f.unref)(n)}))}var d={get:function(e,n){if(n===a.Le||n===a.c4)return e[n];var o=e[a.Le][n];if(function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")]("value"):"value"!==n}()&&(0,u.PO)(o)&&function(){return o instanceof i.ZP!==void 0&&o instanceof i.ZP!==null&&(o instanceof i.ZP)[Symbol.for("!")]?(o instanceof i.ZP)[Symbol.for("!")]():!(o instanceof i.ZP)}()){if(function(){var r,t;return void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](null===(r=e[n])||void 0===r?void 0:r[a.Le]):o!==(null===(t=e[n])||void 0===t?void 0:t[a.Le])}()){var r,f=[].concat((0,l.Z)(e[a.c4]),[n]);e[n]=new Proxy((r={},(0,t.Z)(r,a.Le,o),(0,t.Z)(r,a.c4,f),r),d)}return e[n]}return o},set:function(e,n,o,r){if(function(){return void 0!==c.Z.hasNaN&&null!==c.Z.hasNaN&&c.Z.hasNaN[Symbol.for("!")]?c.Z.hasNaN[Symbol.for("!")]():!c.Z.hasNaN}()&&("number"===typeof o&&isNaN(o)||o instanceof i.ZP&&(isNaN(o.sign)||isNaN(o.layer)||isNaN(o.mag)))){var t=e[a.Le][n];if(function(){return void 0!==("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&null!==("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]?("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]():!("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))}())throw s.autosave=!1,c.Z.hasNaN=!0,c.Z.NaNPath=[].concat((0,l.Z)(e[a.c4]),[n]),c.Z.NaNReceiver=r,console.error("Attempted to set NaN value",[].concat((0,l.Z)(e[a.c4]),[n]),e[a.Le]),"Attempted to set NaN value. See above for details"}return e[a.Le][n]=o,!0},ownKeys:function(e){return Reflect.ownKeys(e[a.Le])},has:function(e,n){return Reflect.has(e[a.Le],n)},getOwnPropertyDescriptor:function(e,n){return Object.getOwnPropertyDescriptor(e[a.Le],n)}};n["Z"]=window.player=new Proxy((r={},(0,t.Z)(r,a.Le,s),(0,t.Z)(r,a.c4,["player"]),r),d)},9266:function(e,n,o){"use strict";o.d(n,{ri:function(){return c},V$:function(){return s},QV:function(){return m}});var r=o(3336),t=(o(8862),o(2526),o(1817),o(1539),o(2345)),l=o(5679),i=o(7302),u=o(463),a=o(4865),f=(0,a.reactive)({active:"",saves:[],showTPS:!0,theme:l.b.Nordic,unthrottled:!1});function c(){try{var e=localStorage.getItem(t.id);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](""):""!==e}()){var n=JSON.parse(decodeURIComponent(escape(atob(e))));"object"===(0,r.Z)(n)&&Object.assign(f,n)}i.globalBus.emit("loadSettings",f)}catch(o){}}(0,a.watch)(f,(function(e){return localStorage.setItem(t.id,btoa(unescape(encodeURIComponent(JSON.stringify(e)))))}),{deep:!0}),n["ZP"]=window.settings=f;window.hardResetSettings=function(){var e={active:"",saves:[],showTPS:!0,theme:l.b.Nordic};i.globalBus.emit("loadSettings",e),Object.assign(f,e),(0,u.y6)()};var s=(0,a.reactive)([]);function m(e){s.push(e)}},3032:function(e,n,o){"use strict";var r=o(4865);n["Z"]=window.state=(0,r.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},1008:function(e,n,o){"use strict";o.d(n,{Z:function(){return U}});var r,t,l,i,u,a,f,c,s,m,d,y=o(3087),b=o(2833),v=o(2482),S=o(3336),g=(o(658),o(2526),o(1817),o(1539),o(9653),o(6977),o(2420),o(3689),o(5192),o(1703),o(9714),o(86),o(4916),o(5306),o(3123),o(3210),o(2481),o(1354),o(4914),17),p=9e15,h=Math.log10(9e15),N=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](9e15):1/9e15}(),k=308,V=function(){return 324[Symbol.for("minus")]?324[Symbol.for("minus")]():-324}(),Z=5,M=!0,x=!1,w=function(){for(var e=[],n=function(){return void 0!==V&&null!==V&&V[Symbol.for("+")]?V[Symbol.for("+")](1):V+1}();function(){return void 0!==n&&null!==n&&n[Symbol.for("<=")]?n[Symbol.for("<=")](k):n<=k}();function(){return void 0!==n&&null!==n&&"object"===(0,S.Z)(n)&&n[Symbol.for("postfix-increment")]?n[Symbol.for("postfix-increment")]():n++}())e.push(Number(function(){return"1e"[Symbol.for("+")]?"1e"[Symbol.for("+")](n):"1e"+n}()));var o=323;return function(n){return e[function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")](o):n+o}()]}}(),C=[2,Math.E,3,4,5,6,7,8,9,10],B=[[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]],E=[[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.9194161097107025[Symbol.for("minus")]?.9194161097107025[Symbol.for("minus")]():-.9194161097107025}(),function(){return.8335625019330468[Symbol.for("minus")]?.8335625019330468[Symbol.for("minus")]():-.8335625019330468}(),function(){return.7425599821143978[Symbol.for("minus")]?.7425599821143978[Symbol.for("minus")]():-.7425599821143978}(),function(){return.6466611521029437[Symbol.for("minus")]?.6466611521029437[Symbol.for("minus")]():-.6466611521029437}(),function(){return.5462617907227869[Symbol.for("minus")]?.5462617907227869[Symbol.for("minus")]():-.5462617907227869}(),function(){return.4419033816638769[Symbol.for("minus")]?.4419033816638769[Symbol.for("minus")]():-.4419033816638769}(),function(){return.3342645487554494[Symbol.for("minus")]?.3342645487554494[Symbol.for("minus")]():-.3342645487554494}(),function(){return.224140440909962[Symbol.for("minus")]?.224140440909962[Symbol.for("minus")]():-.224140440909962}(),function(){return.11241087890006762[Symbol.for("minus")]?.11241087890006762[Symbol.for("minus")]():-.11241087890006762}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.90603157029014[Symbol.for("minus")]?.90603157029014[Symbol.for("minus")]():-.90603157029014}(),function(){return.80786507256596[Symbol.for("minus")]?.80786507256596[Symbol.for("minus")]():-.80786507256596}(),function(){return.7064666939634[Symbol.for("minus")]?.7064666939634[Symbol.for("minus")]():-.7064666939634}(),function(){return.60294836853664[Symbol.for("minus")]?.60294836853664[Symbol.for("minus")]():-.60294836853664}(),function(){return.49849837513117[Symbol.for("minus")]?.49849837513117[Symbol.for("minus")]():-.49849837513117}(),function(){return.39430303318768[Symbol.for("minus")]?.39430303318768[Symbol.for("minus")]():-.39430303318768}(),function(){return.29147201034755[Symbol.for("minus")]?.29147201034755[Symbol.for("minus")]():-.29147201034755}(),function(){return.19097820800866[Symbol.for("minus")]?.19097820800866[Symbol.for("minus")]():-.19097820800866}(),function(){return.09361896280296[Symbol.for("minus")]?.09361896280296[Symbol.for("minus")]():-.09361896280296}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.9021579584316141[Symbol.for("minus")]?.9021579584316141[Symbol.for("minus")]():-.9021579584316141}(),function(){return.8005762598234203[Symbol.for("minus")]?.8005762598234203[Symbol.for("minus")]():-.8005762598234203}(),function(){return.6964780623319391[Symbol.for("minus")]?.6964780623319391[Symbol.for("minus")]():-.6964780623319391}(),function(){return.5911906810998454[Symbol.for("minus")]?.5911906810998454[Symbol.for("minus")]():-.5911906810998454}(),function(){return.486050182576545[Symbol.for("minus")]?.486050182576545[Symbol.for("minus")]():-.486050182576545}(),function(){return.3823089430815083[Symbol.for("minus")]?.3823089430815083[Symbol.for("minus")]():-.3823089430815083}(),function(){return.28106046722897615[Symbol.for("minus")]?.28106046722897615[Symbol.for("minus")]():-.28106046722897615}(),function(){return.1831906535795894[Symbol.for("minus")]?.1831906535795894[Symbol.for("minus")]():-.1831906535795894}(),function(){return.08935809204418144[Symbol.for("minus")]?.08935809204418144[Symbol.for("minus")]():-.08935809204418144}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8917227442365535[Symbol.for("minus")]?.8917227442365535[Symbol.for("minus")]():-.8917227442365535}(),function(){return.781258746326964[Symbol.for("minus")]?.781258746326964[Symbol.for("minus")]():-.781258746326964}(),function(){return.6705130326902455[Symbol.for("minus")]?.6705130326902455[Symbol.for("minus")]():-.6705130326902455}(),function(){return.5612813129406509[Symbol.for("minus")]?.5612813129406509[Symbol.for("minus")]():-.5612813129406509}(),function(){return.4551067709033134[Symbol.for("minus")]?.4551067709033134[Symbol.for("minus")]():-.4551067709033134}(),function(){return.35319256652135966[Symbol.for("minus")]?.35319256652135966[Symbol.for("minus")]():-.35319256652135966}(),function(){return.2563741554088552[Symbol.for("minus")]?.2563741554088552[Symbol.for("minus")]():-.2563741554088552}(),function(){return.1651412821106526[Symbol.for("minus")]?.1651412821106526[Symbol.for("minus")]():-.1651412821106526}(),function(){return.0796919581982668[Symbol.for("minus")]?.0796919581982668[Symbol.for("minus")]():-.0796919581982668}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8843387974366064[Symbol.for("minus")]?.8843387974366064[Symbol.for("minus")]():-.8843387974366064}(),function(){return.7678744063886243[Symbol.for("minus")]?.7678744063886243[Symbol.for("minus")]():-.7678744063886243}(),function(){return.6529563724510552[Symbol.for("minus")]?.6529563724510552[Symbol.for("minus")]():-.6529563724510552}(),function(){return.5415870994657841[Symbol.for("minus")]?.5415870994657841[Symbol.for("minus")]():-.5415870994657841}(),function(){return.4352842206588936[Symbol.for("minus")]?.4352842206588936[Symbol.for("minus")]():-.4352842206588936}(),function(){return.33504449124791424[Symbol.for("minus")]?.33504449124791424[Symbol.for("minus")]():-.33504449124791424}(),function(){return.24138853420685147[Symbol.for("minus")]?.24138853420685147[Symbol.for("minus")]():-.24138853420685147}(),function(){return.15445285440944467[Symbol.for("minus")]?.15445285440944467[Symbol.for("minus")]():-.15445285440944467}(),function(){return.07409659641336663[Symbol.for("minus")]?.07409659641336663[Symbol.for("minus")]():-.07409659641336663}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8786709358426346[Symbol.for("minus")]?.8786709358426346[Symbol.for("minus")]():-.8786709358426346}(),function(){return.7577735191184886[Symbol.for("minus")]?.7577735191184886[Symbol.for("minus")]():-.7577735191184886}(),function(){return.6399546189952064[Symbol.for("minus")]?.6399546189952064[Symbol.for("minus")]():-.6399546189952064}(),function(){return.527284921869926[Symbol.for("minus")]?.527284921869926[Symbol.for("minus")]():-.527284921869926}(),function(){return.4211627631006314[Symbol.for("minus")]?.4211627631006314[Symbol.for("minus")]():-.4211627631006314}(),function(){return.3223479611761232[Symbol.for("minus")]?.3223479611761232[Symbol.for("minus")]():-.3223479611761232}(),function(){return.23107655627789858[Symbol.for("minus")]?.23107655627789858[Symbol.for("minus")]():-.23107655627789858}(),function(){return.1472057700818259[Symbol.for("minus")]?.1472057700818259[Symbol.for("minus")]():-.1472057700818259}(),function(){return.07035171210706326[Symbol.for("minus")]?.07035171210706326[Symbol.for("minus")]():-.07035171210706326}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8740862815291583[Symbol.for("minus")]?.8740862815291583[Symbol.for("minus")]():-.8740862815291583}(),function(){return.7497032990976209[Symbol.for("minus")]?.7497032990976209[Symbol.for("minus")]():-.7497032990976209}(),function(){return.6297119746181752[Symbol.for("minus")]?.6297119746181752[Symbol.for("minus")]():-.6297119746181752}(),function(){return.5161838335958787[Symbol.for("minus")]?.5161838335958787[Symbol.for("minus")]():-.5161838335958787}(),function(){return.41036238255751956[Symbol.for("minus")]?.41036238255751956[Symbol.for("minus")]():-.41036238255751956}(),function(){return.31277212146489963[Symbol.for("minus")]?.31277212146489963[Symbol.for("minus")]():-.31277212146489963}(),function(){return.2233976621705518[Symbol.for("minus")]?.2233976621705518[Symbol.for("minus")]():-.2233976621705518}(),function(){return.1418697367979619[Symbol.for("minus")]?.1418697367979619[Symbol.for("minus")]():-.1418697367979619}(),function(){return.06762117662323441[Symbol.for("minus")]?.06762117662323441[Symbol.for("minus")]():-.06762117662323441}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8702632331800649[Symbol.for("minus")]?.8702632331800649[Symbol.for("minus")]():-.8702632331800649}(),function(){return.7430366914122081[Symbol.for("minus")]?.7430366914122081[Symbol.for("minus")]():-.7430366914122081}(),function(){return.6213373075161548[Symbol.for("minus")]?.6213373075161548[Symbol.for("minus")]():-.6213373075161548}(),function(){return.5072025698095242[Symbol.for("minus")]?.5072025698095242[Symbol.for("minus")]():-.5072025698095242}(),function(){return.40171437727184167[Symbol.for("minus")]?.40171437727184167[Symbol.for("minus")]():-.40171437727184167}(),function(){return.30517930701410456[Symbol.for("minus")]?.30517930701410456[Symbol.for("minus")]():-.30517930701410456}(),function(){return.21736343968190863[Symbol.for("minus")]?.21736343968190863[Symbol.for("minus")]():-.21736343968190863}(),function(){return.137710238299109[Symbol.for("minus")]?.137710238299109[Symbol.for("minus")]():-.137710238299109}(),function(){return.06550774483471955[Symbol.for("minus")]?.06550774483471955[Symbol.for("minus")]():-.06550774483471955}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8670016295947213[Symbol.for("minus")]?.8670016295947213[Symbol.for("minus")]():-.8670016295947213}(),function(){return.7373984232432306[Symbol.for("minus")]?.7373984232432306[Symbol.for("minus")]():-.7373984232432306}(),function(){return.6143173985094293[Symbol.for("minus")]?.6143173985094293[Symbol.for("minus")]():-.6143173985094293}(),function(){return.49973884395492807[Symbol.for("minus")]?.49973884395492807[Symbol.for("minus")]():-.49973884395492807}(),function(){return.394584953527678[Symbol.for("minus")]?.394584953527678[Symbol.for("minus")]():-.394584953527678}(),function(){return.2989649949848695[Symbol.for("minus")]?.2989649949848695[Symbol.for("minus")]():-.2989649949848695}(),function(){return.21245647317021688[Symbol.for("minus")]?.21245647317021688[Symbol.for("minus")]():-.21245647317021688}(),function(){return.13434688362382652[Symbol.for("minus")]?.13434688362382652[Symbol.for("minus")]():-.13434688362382652}(),function(){return.0638072667348083[Symbol.for("minus")]?.0638072667348083[Symbol.for("minus")]():-.0638072667348083}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8641642839543857[Symbol.for("minus")]?.8641642839543857[Symbol.for("minus")]():-.8641642839543857}(),function(){return.732534623168535[Symbol.for("minus")]?.732534623168535[Symbol.for("minus")]():-.732534623168535}(),function(){return.6083127477059322[Symbol.for("minus")]?.6083127477059322[Symbol.for("minus")]():-.6083127477059322}(),function(){return.4934049257184696[Symbol.for("minus")]?.4934049257184696[Symbol.for("minus")]():-.4934049257184696}(),function(){return.3885773075899922[Symbol.for("minus")]?.3885773075899922[Symbol.for("minus")]():-.3885773075899922}(),function(){return.29376029055315767[Symbol.for("minus")]?.29376029055315767[Symbol.for("minus")]():-.29376029055315767}(),function(){return.2083678561173622[Symbol.for("minus")]?.2083678561173622[Symbol.for("minus")]():-.2083678561173622}(),function(){return.13155653399373268[Symbol.for("minus")]?.13155653399373268[Symbol.for("minus")]():-.13155653399373268}(),function(){return.062401588652553186[Symbol.for("minus")]?.062401588652553186[Symbol.for("minus")]():-.062401588652553186}(),0]],P=function(e){return U.fromValue_noAlloc(e)},I=function(e,n,o){return U.fromComponents(e,n,o)},T=function(e,n,o){return U.fromComponents_noNormalize(e,n,o)},F=function(e,n){var o=function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")](1):n+1}(),r=Math.ceil(Math.log10(Math.abs(e))),t=function(){return void 0!==Math.round(e*Math.pow(10,o-r))&&null!==Math.round(e*Math.pow(10,o-r))&&Math.round(e*Math.pow(10,o-r))[Symbol.for("*")]?Math.round(e*Math.pow(10,o-r))[Symbol.for("*")](Math.pow(10,r-o)):Math.round(e*Math.pow(10,o-r))*Math.pow(10,r-o)}();return parseFloat(t.toFixed(Math.max(function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](r):o-r}(),0)))},D=function(e){return function(){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))}()},R=function(e){if(function(){return void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e)}())return e;if(function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](-50):e<-50}())return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;var n=1;while(function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10}())n=function(){return void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](e):n*e}(),function(){void 0!==e&&null!==e&&"object"===(0,S.Z)(e)&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e}();e=function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1}();var o=.9189385332046727;o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((e+.5)*Math.log(e)):o+(e+.5)*Math.log(e)}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](e):o-e}();var r=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e}(),t=e;return o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(12*t)):o+1/(12*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(360*t)):o+1/(360*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1260*t)):o+1/(1260*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1680*t)):o+1/(1680*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1188*t)):o+1/(1188*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](691/(360360*t)):o+691/(360360*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](7/(1092*t)):o+7/(1092*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](3617/(122400*t)):o+3617/(122400*t)}(),function(){return void 0!==Math.exp(o)&&null!==Math.exp(o)&&Math.exp(o)[Symbol.for("/")]?Math.exp(o)[Symbol.for("/")](n):Math.exp(o)/n}()},O=.5671432904097838,_=function(e){var n,o,r=arguments,t=function(){return void 0!==r.length&&null!==r.length&&r.length[Symbol.for(">")]?r.length[Symbol.for(">")](1):r.length>1}()&&function(){return void 0!==r[1]&&null!==r[1]&&r[1][Symbol.for("!==")]?r[1][Symbol.for("!==")](void 0):void 0!==r[1]}()?arguments[1]:1e-10;if(function(){return 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 O;n=function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10}()?0:function(){return 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(var l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](100):l<100}();function(){return void 0!==l&&null!==l&&"object"===(0,S.Z)(l)&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l}()){if(o=function(){return e*Math.exp(-n)+n*n!==void 0&&e*Math.exp(-n)+n*n!==null&&(e*Math.exp(-n)+n*n)[Symbol.for("/")]?(e*Math.exp(-n)+n*n)[Symbol.for("/")](n+1):(e*Math.exp(-n)+n*n)/(n+1)}(),function(){return void 0!==Math.abs(o-n)&&null!==Math.abs(o-n)&&Math.abs(o-n)[Symbol.for("<")]?Math.abs(o-n)[Symbol.for("<")](t*Math.abs(o)):Math.abs(o-n)<t*Math.abs(o)}())return o;n=o}throw Error("Iteration failed to converge: ".concat(e.toString()))};function j(e){var n,o,r,t,l=arguments,i=function(){return void 0!==l.length&&null!==l.length&&l.length[Symbol.for(">")]?l.length[Symbol.for(">")](1):l.length>1}()&&function(){return void 0!==l[1]&&null!==l[1]&&l[1][Symbol.for("!==")]?l[1][Symbol.for("!==")](void 0):void 0!==l[1]}()?arguments[1]:1e-10;if(function(){return 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===U.dZero)return e;if(e===U.dOne)return P(O);U.abs(e);n=U.ln(e);for(var u=0;function(){return void 0!==u&&null!==u&&u[Symbol.for("<")]?u[Symbol.for("<")](100):u<100}();function(){return void 0!==u&&null!==u&&"object"===(0,S.Z)(u)&&u[Symbol.for("prefix-increment")]?u[Symbol.for("prefix-increment")]():++u}()){if(o=U.exp(function(){return void 0!==n&&null!==n&&n[Symbol.for("minus")]?n[Symbol.for("minus")]():-n}()),r=n.sub(e.mul(o)),t=n.sub(r.div(n.add(1).sub(n.add(2).mul(r).div(U.mul(2,n).add(2))))),U.abs(t.sub(n)).lt(U.abs(t).mul(i)))return t;n=t}throw Error("Iteration failed to converge: ".concat(e.toString()))}r=Symbol.for("+"),t=Symbol.for("-"),l=Symbol.for("*"),i=Symbol.for("/"),u=Symbol.for("minus"),a=Symbol.for("=="),f=Symbol.for(">"),c=Symbol.for("<"),s=Symbol.for(">="),m=Symbol.for("<="),d=Symbol.for("!=");var U=function(e,n,o,r,t,l,i,u,a,f,c){function s(e){(0,y.Z)(this,s),(0,v.Z)(this,"sign",Number.NaN),(0,v.Z)(this,"mag",Number.NaN),(0,v.Z)(this,"layer",Number.NaN),e instanceof s||function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e}()&&"object"===(0,S.Z)(e)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e}()&&function(){return"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)}return(0,b.Z)(s,[{key:"m",get:function(){var e=this;if(0===this.sign)return 0;if(0===this.layer){var n,o=Math.floor(Math.log10(this.mag));return n=5e-324===this.mag?5:function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("/")]?e.mag[Symbol.for("/")](w(o)):e.mag/w(o)}(),function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](n):e.sign*n}()}if(1===this.layer){var r=function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("-")]?e.mag[Symbol.for("-")](Math.floor(e.mag)):e.mag-Math.floor(e.mag)}();return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](Math.pow(10,r)):e.sign*Math.pow(10,r)}()}return this.sign},set:function(e){var n=this;!function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<=")]?n.layer[Symbol.for("<=")](2):n.layer<=2}()?(this.sign=Math.sign(e),0===this.sign&&(this.layer,this.exponent)):this.fromMantissaExponent(e,this.e)}},{key:"e",get:function(){var e=this;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(function(){return void 0!==Math.sign(e.mag)&&null!==Math.sign(e.mag)&&Math.sign(e.mag)[Symbol.for("*")]?Math.sign(e.mag)[Symbol.for("*")](Math.pow(10,Math.abs(e.mag))):Math.sign(e.mag)*Math.pow(10,Math.abs(e.mag))}()):function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("*")]?e.mag[Symbol.for("*")](Number.POSITIVE_INFINITY):e.mag*Number.POSITIVE_INFINITY}()},set:function(e){this.fromMantissaExponent(this.m,e)}},{key:"s",get:function(){return this.sign},set:function(e){0===e?(this.sign=0,this.layer=0,this.mag=0):this.sign=e}},{key:"mantissa",get:function(){return this.m},set:function(e){this.m=e}},{key:"exponent",get:function(){return this.e},set:function(e){this.e=e}},{key:e,value:function(e){return this.add(e)}},{key:n,value:function(e){return this.sub(e)}},{key:o,value:function(e){return this.times(e)}},{key:r,value:function(e){return this.div(e)}},{key:t,value:function(){return this.neg()}},{key:l,value:function(e){return this.eq(e)}},{key:i,value:function(e){return this.gt(e)}},{key:u,value:function(e){return this.lt(e)}},{key:a,value:function(e){return this.gte(e)}},{key:f,value:function(e){return this.lte(e)}},{key:c,value:function(e){return this.neq(e)}},{key:"normalize",value:function(){var e=this;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&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()&&(this.mag=function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}(),this.sign=function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign}()),0===this.layer&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](N):e.mag<N}())return e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),this.mag=Math.log10(this.mag),this;var n=Math.abs(this.mag),o=Math.sign(this.mag);if(function(){return void 0!==n&&null!==n&&n[Symbol.for(">=")]?n[Symbol.for(">=")](p):n>=p}())return e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),this.mag=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.log10(n)):o*Math.log10(n)}(),this;while(function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](h):n<h}()&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">")]?e.layer[Symbol.for(">")](0):e.layer>0}())e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.pow(10,n)):o*Math.pow(10,n)}(),n=Math.abs(this.mag),o=Math.sign(this.mag));return 0===this.layer&&(!function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?0===this.mag&&(this.sign=0):(this.mag=function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}(),this.sign=function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign}())),this}},{key:"fromComponents",value:function(e,n,o){return this.sign=e,this.layer=n,this.mag=o,this.normalize(),this}},{key:"fromComponents_noNormalize",value:function(e,n,o){return this.sign=e,this.layer=n,this.mag=o,this}},{key:"fromMantissaExponent",value:function(e,n){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")](Math.log10(e)):n+Math.log10(e)}(),this.normalize(),this}},{key:"fromMantissaExponent_noNormalize",value:function(e,n){return this.fromMantissaExponent(e,n),this}},{key:"fromDecimal",value:function(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}},{key:"fromNumber",value:function(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}},{key:"fromString",value:function(e){M?e=e.replace(",",""):x&&(e=e.replace(",","."));var n=e.split("^^^");if(2===n.length){var o=parseFloat(n[0]),r=parseFloat(n[1]),t=n[1].split(";"),l=1;if(2===t.length&&(l=parseFloat(t[1]),function(){return void 0!==isFinite(l)&&null!==isFinite(l)&&isFinite(l)[Symbol.for("!")]?isFinite(l)[Symbol.for("!")]():!isFinite(l)}()&&(l=1)),isFinite(o)&&isFinite(r)){var i=s.pentate(o,r,l);return this.sign=i.sign,this.layer=i.layer,this.mag=i.mag,this}}var u=e.split("^^");if(2===u.length){var a=parseFloat(u[0]),f=parseFloat(u[1]),c=u[1].split(";"),m=1;if(2===c.length&&(m=parseFloat(c[1]),function(){return void 0!==isFinite(m)&&null!==isFinite(m)&&isFinite(m)[Symbol.for("!")]?isFinite(m)[Symbol.for("!")]():!isFinite(m)}()&&(m=1)),isFinite(a)&&isFinite(f)){var d=s.tetrate(a,f,m);return this.sign=d.sign,this.layer=d.layer,this.mag=d.mag,this}}var y,b,v=e.split("^");if(2===v.length){var g=parseFloat(v[0]),p=parseFloat(v[1]);if(isFinite(g)&&isFinite(p)){var h=s.pow(g,p);return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,this}}e=e.trim().toLowerCase();var N=e.split("pt");if(2===N.length){y=10,b=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var k=parseFloat(N[1]);if(function(){return void 0!==isFinite(k)&&null!==isFinite(k)&&isFinite(k)[Symbol.for("!")]?isFinite(k)[Symbol.for("!")]():!isFinite(k)}()&&(k=1),isFinite(y)&&isFinite(b)){var V=s.tetrate(y,b,k);return this.sign=V.sign,this.layer=V.layer,this.mag=V.mag,this}}if(N=e.split("p"),2===N.length){y=10,b=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var Z=parseFloat(N[1]);if(function(){return void 0!==isFinite(Z)&&null!==isFinite(Z)&&isFinite(Z)[Symbol.for("!")]?isFinite(Z)[Symbol.for("!")]():!isFinite(Z)}()&&(Z=1),isFinite(y)&&isFinite(b)){var w=s.tetrate(y,b,Z);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}var C=e.split("e"),B=function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](1):C.length-1}();if(0===B){var E=parseFloat(e);if(isFinite(E))return this.fromNumber(E)}else if(1===B){var T=parseFloat(e);if(isFinite(T)&&function(){return void 0!==T&&null!==T&&T[Symbol.for("!==")]?T[Symbol.for("!==")](0):0!==T}())return this.fromNumber(T)}var F=e.split("e^");if(2===F.length){this.sign=1,function(){return void 0!==F[0].charAt(0)&&null!==F[0].charAt(0)&&F[0].charAt(0)[Symbol.for("==")]?F[0].charAt(0)[Symbol.for("==")]("-"):"-"==F[0].charAt(0)}()&&(this.sign=function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}());for(var R="",O=0;function(){return void 0!==O&&null!==O&&O[Symbol.for("<")]?O[Symbol.for("<")](F[1].length):O<F[1].length}();function(){return void 0!==O&&null!==O&&"object"===(0,S.Z)(O)&&O[Symbol.for("prefix-increment")]?O[Symbol.for("prefix-increment")]():++O}()){var _=F[1].charCodeAt(O);if(!(function(){return void 0!==_&&null!==_&&_[Symbol.for(">=")]?_[Symbol.for(">=")](43):_>=43}()&&function(){return void 0!==_&&null!==_&&_[Symbol.for("<=")]?_[Symbol.for("<=")](57):_<=57}()||101===_))return this.layer=parseFloat(R),this.mag=parseFloat(F[1].substr(function(){return void 0!==O&&null!==O&&O[Symbol.for("+")]?O[Symbol.for("+")](1):O+1}())),this.normalize(),this;R=function(){return void 0!==R&&null!==R&&R[Symbol.for("+")]?R[Symbol.for("+")](F[1].charAt(O)):R+F[1].charAt(O)}()}}if(function(){return void 0!==B&&null!==B&&B[Symbol.for("<")]?B[Symbol.for("<")](1):B<1}())return this.sign=0,this.layer=0,this.mag=0,this;var j=parseFloat(C[0]);if(0===j)return this.sign=0,this.layer=0,this.mag=0,this;var U=parseFloat(C[function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](1):C.length-1}()]);if(function(){return void 0!==B&&null!==B&&B[Symbol.for(">=")]?B[Symbol.for(">=")](2):B>=2}()){var A=parseFloat(C[function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](2):C.length-2}()]);isFinite(A)&&(U=function(){return void 0!==U&&null!==U&&U[Symbol.for("*")]?U[Symbol.for("*")](Math.sign(A)):U*Math.sign(A)}(),U=function(){return void 0!==U&&null!==U&&U[Symbol.for("+")]?U[Symbol.for("+")](D(A)):U+D(A)}())}if(function(){return void 0!==isFinite(j)&&null!==isFinite(j)&&isFinite(j)[Symbol.for("!")]?isFinite(j)[Symbol.for("!")]():!isFinite(j)}())this.sign="-"===C[0]?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():1,this.layer=B,this.mag=U;else if(1===B)this.sign=Math.sign(j),this.layer=1,this.mag=function(){return void 0!==U&&null!==U&&U[Symbol.for("+")]?U[Symbol.for("+")](Math.log10(Math.abs(j))):U+Math.log10(Math.abs(j))}();else{if(this.sign=Math.sign(j),this.layer=B,2===B){var q=s.mul(I(1,2,U),P(j));return this.sign=q.sign,this.layer=q.layer,this.mag=q.mag,this}this.mag=U}return this.normalize(),this}},{key:"fromValue",value:function(e){return e instanceof s||function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e}()&&"object"===(0,S.Z)(e)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e}()&&function(){return"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)}},{key:"toNumber",value:function(){var e=this;return function(){return void 0!==Number.isFinite(e.layer)&&null!==Number.isFinite(e.layer)&&Number.isFinite(e.layer)[Symbol.for("!")]?Number.isFinite(e.layer)[Symbol.for("!")]():!Number.isFinite(e.layer)}()?Number.NaN:0===this.layer?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}():1===this.layer?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](Math.pow(10,e.mag)):e.sign*Math.pow(10,e.mag)}():function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">")]?e.mag[Symbol.for(">")](0):e.mag>0}()?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](0):e.sign>0}()?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0}},{key:"mantissaWithDecimalPlaces",value:function(e){return isNaN(this.m)?Number.NaN:0===this.m?0:F(this.m,e)}},{key:"magnitudeWithDecimalPlaces",value:function(e){return isNaN(this.mag)?Number.NaN:0===this.mag?0:F(this.mag,e)}},{key:"toString",value:function(){var e=this;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?function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e21):e.mag<1e21}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">")]?e.mag[Symbol.for(">")](1e-7):e.mag>1e-7}()||0===this.mag?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toString():function(){return e.m+"e"!==void 0&&e.m+"e"!==null&&(e.m+"e")[Symbol.for("+")]?(e.m+"e")[Symbol.for("+")](e.e):e.m+"e"+e.e}():1===this.layer?function(){return e.m+"e"!==void 0&&e.m+"e"!==null&&(e.m+"e")[Symbol.for("+")]?(e.m+"e")[Symbol.for("+")](e.e):e.m+"e"+e.e}():function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<=")]?e.layer[Symbol.for("<=")](Z):e.layer<=Z}()?function(){return(-1===e.sign?"-":"")+"e".repeat(e.layer)!==void 0&&(-1===e.sign?"-":"")+"e".repeat(e.layer)!==null&&((-1===e.sign?"-":"")+"e".repeat(e.layer))[Symbol.for("+")]?((-1===e.sign?"-":"")+"e".repeat(e.layer))[Symbol.for("+")](e.mag):(-1===e.sign?"-":"")+"e".repeat(e.layer)+e.mag}():function(){return(-1===e.sign?"-":"")+"(e^"+e.layer+")"!==void 0&&(-1===e.sign?"-":"")+"(e^"+e.layer+")"!==null&&((-1===e.sign?"-":"")+"(e^"+e.layer+")")[Symbol.for("+")]?((-1===e.sign?"-":"")+"(e^"+e.layer+")")[Symbol.for("+")](e.mag):(-1===e.sign?"-":"")+"(e^"+e.layer+")"+e.mag}()}},{key:"toExponential",value:function(e){var n=this;return 0===this.layer?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}().toExponential(e):this.toStringWithDecimalPlaces(e)}},{key:"toFixed",value:function(e){var n=this;return 0===this.layer?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}().toFixed(e):this.toStringWithDecimalPlaces(e)}},{key:"toPrecision",value:function(e){var n=this;return function(){return void 0!==n.e&&null!==n.e&&n.e[Symbol.for("<=")]?n.e[Symbol.for("<=")](-7):n.e<=-7}()?this.toExponential(function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1}()):function(){return void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](n.e):e>n.e}()?this.toFixed(function(){return e-n.exponent!==void 0&&e-n.exponent!==null&&(e-n.exponent)[Symbol.for("-")]?(e-n.exponent)[Symbol.for("-")](1):e-n.exponent-1}()):this.toExponential(function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1}())}},{key:"valueOf",value:function(){return this.toString()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toStringWithDecimalPlaces",value:function(e){var n=this;return 0===this.layer?function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](1e21):n.mag<1e21}()&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](1e-7):n.mag>1e-7}()||0===this.mag?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}().toFixed(e):function(){return F(n.m,e)+"e"!==void 0&&F(n.m,e)+"e"!==null&&(F(n.m,e)+"e")[Symbol.for("+")]?(F(n.m,e)+"e")[Symbol.for("+")](F(n.e,e)):F(n.m,e)+"e"+F(n.e,e)}():1===this.layer?function(){return F(n.m,e)+"e"!==void 0&&F(n.m,e)+"e"!==null&&(F(n.m,e)+"e")[Symbol.for("+")]?(F(n.m,e)+"e")[Symbol.for("+")](F(n.e,e)):F(n.m,e)+"e"+F(n.e,e)}():function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<=")]?n.layer[Symbol.for("<=")](Z):n.layer<=Z}()?function(){return(-1===n.sign?"-":"")+"e".repeat(n.layer)!==void 0&&(-1===n.sign?"-":"")+"e".repeat(n.layer)!==null&&((-1===n.sign?"-":"")+"e".repeat(n.layer))[Symbol.for("+")]?((-1===n.sign?"-":"")+"e".repeat(n.layer))[Symbol.for("+")](F(n.mag,e)):(-1===n.sign?"-":"")+"e".repeat(n.layer)+F(n.mag,e)}():function(){return(-1===n.sign?"-":"")+"(e^"+n.layer+")"!==void 0&&(-1===n.sign?"-":"")+"(e^"+n.layer+")"!==null&&((-1===n.sign?"-":"")+"(e^"+n.layer+")")[Symbol.for("+")]?((-1===n.sign?"-":"")+"(e^"+n.layer+")")[Symbol.for("+")](F(n.mag,e)):(-1===n.sign?"-":"")+"(e^"+n.layer+")"+F(n.mag,e)}()}},{key:"abs",value:function(){return T(0===this.sign?0:1,this.layer,this.mag)}},{key:"neg",value:function(){var e=this;return T(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign}(),this.layer,this.mag)}},{key:"negate",value:function(){return this.neg()}},{key:"negated",value:function(){return this.neg()}},{key:"sgn",value:function(){return this.sign}},{key:"round",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?s.dZero:0===this.layer?I(this.sign,0,Math.round(this.mag)):this}},{key:"floor",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?s.dZero:0===this.layer?I(this.sign,0,Math.floor(this.mag)):this}},{key:"ceil",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?s.dZero:0===this.layer?I(this.sign,0,Math.ceil(this.mag)):this}},{key:"trunc",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?s.dZero:0===this.layer?I(this.sign,0,Math.trunc(this.mag)):this}},{key:"add",value:function(e){var n,o,r=this,t=P(e);if(function(){return void 0!==Number.isFinite(r.layer)&&null!==Number.isFinite(r.layer)&&Number.isFinite(r.layer)[Symbol.for("!")]?Number.isFinite(r.layer)[Symbol.for("!")]():!Number.isFinite(r.layer)}())return this;if(function(){return void 0!==Number.isFinite(t.layer)&&null!==Number.isFinite(t.layer)&&Number.isFinite(t.layer)[Symbol.for("!")]?Number.isFinite(t.layer)[Symbol.for("!")]():!Number.isFinite(t.layer)}())return t;if(0===this.sign)return t;if(0===t.sign)return this;if(this.sign===function(){return void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("minus")]?t.sign[Symbol.for("minus")]():-t.sign}()&&this.layer===t.layer&&this.mag===t.mag)return T(0,0,0);if(function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for(">=")]?r.layer[Symbol.for(">=")](2):r.layer>=2}()||function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](2):t.layer>=2}())return this.maxabs(t);if(!function(){return void 0!==s.cmpabs(r,t)&&null!==s.cmpabs(r,t)&&s.cmpabs(r,t)[Symbol.for(">")]?s.cmpabs(r,t)[Symbol.for(">")](0):s.cmpabs(r,t)>0}()?(n=t,o=this):(n=this,o=t),0===n.layer&&0===o.layer)return P(function(){return n.sign*n.mag!==void 0&&n.sign*n.mag!==null&&(n.sign*n.mag)[Symbol.for("+")]?(n.sign*n.mag)[Symbol.for("+")](o.sign*o.mag):n.sign*n.mag+o.sign*o.mag}());var l=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("*")]?n.layer[Symbol.for("*")](Math.sign(n.mag)):n.layer*Math.sign(n.mag)}(),i=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("*")]?o.layer[Symbol.for("*")](Math.sign(o.mag)):o.layer*Math.sign(o.mag)}();if(function(){return l-i!==void 0&&l-i!==null&&(l-i)[Symbol.for(">=")]?(l-i)[Symbol.for(">=")](2):l-i>=2}())return n;if(0===l&&i===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()){if(function(){return void 0!==Math.abs(o.mag-Math.log10(n.mag))&&null!==Math.abs(o.mag-Math.log10(n.mag))&&Math.abs(o.mag-Math.log10(n.mag))[Symbol.for(">")]?Math.abs(o.mag-Math.log10(n.mag))[Symbol.for(">")](g):Math.abs(o.mag-Math.log10(n.mag))>g}())return n;var u=Math.pow(10,function(){return void 0!==Math.log10(n.mag)&&null!==Math.log10(n.mag)&&Math.log10(n.mag)[Symbol.for("-")]?Math.log10(n.mag)[Symbol.for("-")](o.mag):Math.log10(n.mag)-o.mag}()),a=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](n.sign*u):o.sign+n.sign*u}();return I(Math.sign(a),1,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("+")]?o.mag[Symbol.for("+")](Math.log10(Math.abs(a))):o.mag+Math.log10(Math.abs(a))}())}if(1===l&&0===i){if(function(){return void 0!==Math.abs(n.mag-Math.log10(o.mag))&&null!==Math.abs(n.mag-Math.log10(o.mag))&&Math.abs(n.mag-Math.log10(o.mag))[Symbol.for(">")]?Math.abs(n.mag-Math.log10(o.mag))[Symbol.for(">")](g):Math.abs(n.mag-Math.log10(o.mag))>g}())return n;var f=Math.pow(10,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](Math.log10(o.mag)):n.mag-Math.log10(o.mag)}()),c=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](n.sign*f):o.sign+n.sign*f}();return I(Math.sign(c),1,function(){return void 0!==Math.log10(o.mag)&&null!==Math.log10(o.mag)&&Math.log10(o.mag)[Symbol.for("+")]?Math.log10(o.mag)[Symbol.for("+")](Math.log10(Math.abs(c))):Math.log10(o.mag)+Math.log10(Math.abs(c))}())}if(function(){return void 0!==Math.abs(n.mag-o.mag)&&null!==Math.abs(n.mag-o.mag)&&Math.abs(n.mag-o.mag)[Symbol.for(">")]?Math.abs(n.mag-o.mag)[Symbol.for(">")](g):Math.abs(n.mag-o.mag)>g}())return n;var m=Math.pow(10,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](o.mag):n.mag-o.mag}()),d=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](n.sign*m):o.sign+n.sign*m}();return I(Math.sign(d),1,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("+")]?o.mag[Symbol.for("+")](Math.log10(Math.abs(d))):o.mag+Math.log10(Math.abs(d))}())}},{key:"plus",value:function(e){return this.add(e)}},{key:"sub",value:function(e){return this.add(P(e).neg())}},{key:"subtract",value:function(e){return this.sub(e)}},{key:"minus",value:function(e){return this.sub(e)}},{key:"mul",value:function(e){var n,o,r=this,t=P(e);if(function(){return void 0!==Number.isFinite(r.layer)&&null!==Number.isFinite(r.layer)&&Number.isFinite(r.layer)[Symbol.for("!")]?Number.isFinite(r.layer)[Symbol.for("!")]():!Number.isFinite(r.layer)}())return this;if(function(){return void 0!==Number.isFinite(t.layer)&&null!==Number.isFinite(t.layer)&&Number.isFinite(t.layer)[Symbol.for("!")]?Number.isFinite(t.layer)[Symbol.for("!")]():!Number.isFinite(t.layer)}())return t;if(0===this.sign||0===t.sign)return T(0,0,0);if(this.layer===t.layer&&this.mag===function(){return void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("minus")]?t.mag[Symbol.for("minus")]():-t.mag}())return T(function(){return void 0!==r.sign&&null!==r.sign&&r.sign[Symbol.for("*")]?r.sign[Symbol.for("*")](t.sign):r.sign*t.sign}(),0,1);if(function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for(">")]?r.layer[Symbol.for(">")](t.layer):r.layer>t.layer}()||function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("==")]?r.layer[Symbol.for("==")](t.layer):r.layer==t.layer}()&&function(){return void 0!==Math.abs(r.mag)&&null!==Math.abs(r.mag)&&Math.abs(r.mag)[Symbol.for(">")]?Math.abs(r.mag)[Symbol.for(">")](Math.abs(t.mag)):Math.abs(r.mag)>Math.abs(t.mag)}()?(n=this,o=t):(n=t,o=this),0===n.layer&&0===o.layer)return P(function(){return n.sign*o.sign*n.mag!==void 0&&n.sign*o.sign*n.mag!==null&&(n.sign*o.sign*n.mag)[Symbol.for("*")]?(n.sign*o.sign*n.mag)[Symbol.for("*")](o.mag):n.sign*o.sign*n.mag*o.mag}());if(function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](3):n.layer>=3}()||function(){return n.layer-o.layer!==void 0&&n.layer-o.layer!==null&&(n.layer-o.layer)[Symbol.for(">=")]?(n.layer-o.layer)[Symbol.for(">=")](2):n.layer-o.layer>=2}())return I(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](o.sign):n.sign*o.sign}(),n.layer,n.mag);if(1===n.layer&&0===o.layer)return I(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](o.sign):n.sign*o.sign}(),1,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("+")]?n.mag[Symbol.for("+")](Math.log10(o.mag)):n.mag+Math.log10(o.mag)}());if(1===n.layer&&1===o.layer)return I(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](o.sign):n.sign*o.sign}(),1,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("+")]?n.mag[Symbol.for("+")](o.mag):n.mag+o.mag}());if(2===n.layer&&1===o.layer){var l=I(Math.sign(n.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(n.mag)).add(I(Math.sign(o.mag),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),Math.abs(o.mag)));return I(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](o.sign):n.sign*o.sign}(),function(){return void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("+")]?l.layer[Symbol.for("+")](1):l.layer+1}(),function(){return void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("*")]?l.sign[Symbol.for("*")](l.mag):l.sign*l.mag}())}if(2===n.layer&&2===o.layer){var i=I(Math.sign(n.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(n.mag)).add(I(Math.sign(o.mag),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),Math.abs(o.mag)));return I(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](o.sign):n.sign*o.sign}(),function(){return void 0!==i.layer&&null!==i.layer&&i.layer[Symbol.for("+")]?i.layer[Symbol.for("+")](1):i.layer+1}(),function(){return void 0!==i.sign&&null!==i.sign&&i.sign[Symbol.for("*")]?i.sign[Symbol.for("*")](i.mag):i.sign*i.mag}())}throw Error(function(){return"Bad arguments to mul: "+r+", "!==void 0&&"Bad arguments to mul: "+r+", "!==null&&("Bad arguments to mul: "+r+", ")[Symbol.for("+")]?("Bad arguments to mul: "+r+", ")[Symbol.for("+")](e):"Bad arguments to mul: "+r+", "+e}())}},{key:"multiply",value:function(e){return this.mul(e)}},{key:"times",value:function(e){return this.mul(e)}},{key:"div",value:function(e){var n=P(e);return this.mul(n.recip())}},{key:"divide",value:function(e){return this.div(e)}},{key:"divideBy",value:function(e){return this.div(e)}},{key:"dividedBy",value:function(e){return this.div(e)}},{key:"recip",value:function(){var e=this;return 0===this.mag?s.dNaN:0===this.layer?I(this.sign,0,function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](e.mag):1/e.mag}()):I(this.sign,this.layer,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}())}},{key:"reciprocal",value:function(){return this.recip()}},{key:"reciprocate",value:function(){return this.recip()}},{key:"cmp",value:function(e){var n=this,o=P(e);return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for(">")]?n.sign[Symbol.for(">")](o.sign):n.sign>o.sign}()?1:function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<")]?n.sign[Symbol.for("<")](o.sign):n.sign<o.sign}()?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.cmpabs(e)):n.sign*n.cmpabs(e)}()}},{key:"cmpabs",value:function(e){var n=this,o=P(e),r=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](0):n.mag>0}()?this.layer:function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("minus")]?n.layer[Symbol.for("minus")]():-n.layer}(),t=function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">")]?o.mag[Symbol.for(">")](0):o.mag>0}()?o.layer:function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("minus")]?o.layer[Symbol.for("minus")]():-o.layer}();return function(){return void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](t):r>t}()?1:function(){return void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](t):r<t}()?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](o.mag):n.mag>o.mag}()?1:function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](o.mag):n.mag<o.mag}()?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():0}},{key:"compare",value:function(e){return this.cmp(e)}},{key:"isNan",value:function(){return isNaN(this.sign)||isNaN(this.layer)||isNaN(this.mag)}},{key:"isFinite",value:function(e){function n(){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}((function(){return isFinite(this.sign)&&isFinite(this.layer)&&isFinite(this.mag)}))},{key:"eq",value:function(e){var n=P(e);return this.sign===n.sign&&this.layer===n.layer&&this.mag===n.mag}},{key:"equals",value:function(e){return this.eq(e)}},{key:"neq",value:function(e){var n=this;return function(){return void 0!==n.eq(e)&&null!==n.eq(e)&&n.eq(e)[Symbol.for("!")]?n.eq(e)[Symbol.for("!")]():!n.eq(e)}()}},{key:"notEquals",value:function(e){return this.neq(e)}},{key:"lt",value:function(e){return this.cmp(e)===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()}},{key:"lte",value:function(e){var n=this;return function(){return void 0!==n.gt(e)&&null!==n.gt(e)&&n.gt(e)[Symbol.for("!")]?n.gt(e)[Symbol.for("!")]():!n.gt(e)}()}},{key:"gt",value:function(e){return 1===this.cmp(e)}},{key:"gte",value:function(e){var n=this;return function(){return void 0!==n.lt(e)&&null!==n.lt(e)&&n.lt(e)[Symbol.for("!")]?n.lt(e)[Symbol.for("!")]():!n.lt(e)}()}},{key:"max",value:function(e){var n=P(e);return this.lt(n)?n:this}},{key:"min",value:function(e){var n=P(e);return this.gt(n)?n:this}},{key:"maxabs",value:function(e){var n=this,o=P(e);return function(){return void 0!==n.cmpabs(o)&&null!==n.cmpabs(o)&&n.cmpabs(o)[Symbol.for("<")]?n.cmpabs(o)[Symbol.for("<")](0):n.cmpabs(o)<0}()?o:this}},{key:"minabs",value:function(e){var n=this,o=P(e);return function(){return void 0!==n.cmpabs(o)&&null!==n.cmpabs(o)&&n.cmpabs(o)[Symbol.for(">")]?n.cmpabs(o)[Symbol.for(">")](0):n.cmpabs(o)>0}()?o:this}},{key:"clamp",value:function(e,n){return this.max(e).min(n)}},{key:"clampMin",value:function(e){return this.max(e)}},{key:"clampMax",value:function(e){return this.min(e)}},{key:"cmp_tolerance",value:function(e,n){var o=P(e);return this.eq_tolerance(o,n)?0:this.cmp(o)}},{key:"compare_tolerance",value:function(e,n){return this.cmp_tolerance(e,n)}},{key:"eq_tolerance",value:function(e,n){var o=this,r=P(e);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&(n=1e-7),function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("!==")]?o.sign[Symbol.for("!==")](r.sign):o.sign!==r.sign}())return!1;if(function(){return void 0!==Math.abs(o.layer-r.layer)&&null!==Math.abs(o.layer-r.layer)&&Math.abs(o.layer-r.layer)[Symbol.for(">")]?Math.abs(o.layer-r.layer)[Symbol.for(">")](1):Math.abs(o.layer-r.layer)>1}())return!1;var t=this.mag,l=r.mag;return function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](r.layer):o.layer>r.layer}()&&(l=D(l)),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](r.layer):o.layer<r.layer}()&&(t=D(t)),function(){return void 0!==Math.abs(t-l)&&null!==Math.abs(t-l)&&Math.abs(t-l)[Symbol.for("<=")]?Math.abs(t-l)[Symbol.for("<=")](n*Math.max(Math.abs(t),Math.abs(l))):Math.abs(t-l)<=n*Math.max(Math.abs(t),Math.abs(l))}()}},{key:"equals_tolerance",value:function(e,n){return this.eq_tolerance(e,n)}},{key:"neq_tolerance",value:function(e,n){var o=this;return function(){return void 0!==o.eq_tolerance(e,n)&&null!==o.eq_tolerance(e,n)&&o.eq_tolerance(e,n)[Symbol.for("!")]?o.eq_tolerance(e,n)[Symbol.for("!")]():!o.eq_tolerance(e,n)}()}},{key:"notEquals_tolerance",value:function(e,n){return this.neq_tolerance(e,n)}},{key:"lt_tolerance",value:function(e,n){var o=this,r=P(e);return function(){return void 0!==o.eq_tolerance(r,n)&&null!==o.eq_tolerance(r,n)&&o.eq_tolerance(r,n)[Symbol.for("!")]?o.eq_tolerance(r,n)[Symbol.for("!")]():!o.eq_tolerance(r,n)}()&&this.lt(r)}},{key:"lte_tolerance",value:function(e,n){var o=P(e);return this.eq_tolerance(o,n)||this.lt(o)}},{key:"gt_tolerance",value:function(e,n){var o=this,r=P(e);return function(){return void 0!==o.eq_tolerance(r,n)&&null!==o.eq_tolerance(r,n)&&o.eq_tolerance(r,n)[Symbol.for("!")]?o.eq_tolerance(r,n)[Symbol.for("!")]():!o.eq_tolerance(r,n)}()&&this.gt(r)}},{key:"gte_tolerance",value:function(e,n){var o=P(e);return this.eq_tolerance(o,n)||this.gt(o)}},{key:"pLog10",value:function(){return this.lt(s.dZero)?s.dZero:this.log10()}},{key:"absLog10",value:function(){var e=this;return 0===this.sign?s.dNaN:function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">")]?e.layer[Symbol.for(">")](0):e.layer>0}()?I(Math.sign(this.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(this.mag)):I(1,0,Math.log10(this.mag))}},{key:"log10",value:function(){var e=this;return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0}()?s.dNaN:function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">")]?e.layer[Symbol.for(">")](0):e.layer>0}()?I(Math.sign(this.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(this.mag)):I(this.sign,0,Math.log10(this.mag))}},{key:"log",value:function(e){var n=this;return e=P(e),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()||function(){return 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?s.dNaN:0===this.layer&&0===e.layer?I(this.sign,0,function(){return void 0!==Math.log(n.mag)&&null!==Math.log(n.mag)&&Math.log(n.mag)[Symbol.for("/")]?Math.log(n.mag)[Symbol.for("/")](Math.log(e.mag)):Math.log(n.mag)/Math.log(e.mag)}()):s.div(this.log10(),e.log10())}},{key:"log2",value:function(){var e=this;return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0}()?s.dNaN:0===this.layer?I(this.sign,0,Math.log2(this.mag)):1===this.layer?I(Math.sign(this.mag),0,function(){return void 0!==Math.abs(e.mag)&&null!==Math.abs(e.mag)&&Math.abs(e.mag)[Symbol.for("*")]?Math.abs(e.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(e.mag)}()):2===this.layer?I(Math.sign(this.mag),1,function(){return void 0!==Math.abs(e.mag)&&null!==Math.abs(e.mag)&&Math.abs(e.mag)[Symbol.for("+")]?Math.abs(e.mag)[Symbol.for("+")](.5213902276543247):Math.abs(e.mag)+.5213902276543247}()):I(Math.sign(this.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(this.mag))}},{key:"ln",value:function(){var e=this;return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0}()?s.dNaN:0===this.layer?I(this.sign,0,Math.log(this.mag)):1===this.layer?I(Math.sign(this.mag),0,function(){return void 0!==Math.abs(e.mag)&&null!==Math.abs(e.mag)&&Math.abs(e.mag)[Symbol.for("*")]?Math.abs(e.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(e.mag)}()):2===this.layer?I(Math.sign(this.mag),1,function(){return void 0!==Math.abs(e.mag)&&null!==Math.abs(e.mag)&&Math.abs(e.mag)[Symbol.for("+")]?Math.abs(e.mag)[Symbol.for("+")](.36221568869946325):Math.abs(e.mag)+.36221568869946325}()):I(Math.sign(this.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(this.mag))}},{key:"logarithm",value:function(e){return this.log(e)}},{key:"pow",value:function(e){var n=P(e),o=this,r=n;if(0===o.sign)return r.eq(0)?T(1,0,1):o;if(1===o.sign&&0===o.layer&&1===o.mag)return o;if(0===r.sign)return T(1,0,1);if(1===r.sign&&0===r.layer&&1===r.mag)return o;var t=o.absLog10().mul(r).pow10();return this.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()?1===function(){return void 0!==Math.abs(r.toNumber()%2)&&null!==Math.abs(r.toNumber()%2)&&Math.abs(r.toNumber()%2)[Symbol.for("%")]?Math.abs(r.toNumber()%2)[Symbol.for("%")](2):Math.abs(r.toNumber()%2)%2}()?t.neg():0===function(){return void 0!==Math.abs(r.toNumber()%2)&&null!==Math.abs(r.toNumber()%2)&&Math.abs(r.toNumber()%2)[Symbol.for("%")]?Math.abs(r.toNumber()%2)[Symbol.for("%")](2):Math.abs(r.toNumber()%2)%2}()?t:s.dNaN:t}},{key:"pow10",value:function(){var e=this;if(function(){return void 0!==Number.isFinite(e.layer)&&null!==Number.isFinite(e.layer)&&Number.isFinite(e.layer)[Symbol.for("!")]?Number.isFinite(e.layer)[Symbol.for("!")]():!Number.isFinite(e.layer)}()||function(){return 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 s.dNaN;var n=this;if(0===n.layer){var o=Math.pow(10,function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}());if(Number.isFinite(o)&&function(){return 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 I(1,0,o);if(0===n.sign)return s.dOne;n=T(n.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),Math.log10(n.mag))}return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for(">")]?n.sign[Symbol.for(">")](0):n.sign>0}()&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">=")]?n.mag[Symbol.for(">=")](0):n.mag>=0}()?I(n.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),n.mag):function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<")]?n.sign[Symbol.for("<")](0):n.sign<0}()&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">=")]?n.mag[Symbol.for(">=")](0):n.mag>=0}()?I(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}(),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}()):s.dOne}},{key:"pow_base",value:function(e){return P(e).pow(this)}},{key:"root",value:function(e){var n=P(e);return this.pow(n.recip())}},{key:"factorial",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()||0===this.layer?this.add(1).gamma():1===this.layer?s.exp(s.mul(this,s.ln(this).sub(1))):s.exp(this)}},{key:"gamma",value:function(){var e=this;if(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}())return this.recip();if(0===this.layer){if(this.lt(T(1,0,24)))return P(R(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}()));var n=function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("-")]?e.mag[Symbol.for("-")](1):e.mag-1}(),o=.9189385332046727;o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((n+.5)*Math.log(n)):o+(n+.5)*Math.log(n)}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](n):o-n}();var r=function(){return void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](n):n*n}(),t=n,l=function(){return 12[Symbol.for("*")]?12[Symbol.for("*")](t):12*t}(),i=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),u=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](i):o+i}();if(u===o)return s.exp(o);if(o=u,t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 360[Symbol.for("*")]?360[Symbol.for("*")](t):360*t}(),i=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),u=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i}(),u===o)return s.exp(o);o=u,t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 1260[Symbol.for("*")]?1260[Symbol.for("*")](t):1260*t}();var a=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}();return o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](a):o+a}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 1680[Symbol.for("*")]?1680[Symbol.for("*")](t):1680*t}(),a=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](a):o-a}(),s.exp(o)}return 1===this.layer?s.exp(s.mul(this,s.ln(this).sub(1))):s.exp(this)}},{key:"lngamma",value:function(){return this.gamma().ln()}},{key:"exp",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?s.dOne:0===this.layer&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<=")]?e.mag[Symbol.for("<=")](709.7):e.mag<=709.7}()?P(Math.exp(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):0===this.layer?I(1,1,function(){return e.sign*Math.log10(Math.E)!==void 0&&e.sign*Math.log10(Math.E)!==null&&(e.sign*Math.log10(Math.E))[Symbol.for("*")]?(e.sign*Math.log10(Math.E))[Symbol.for("*")](e.mag):e.sign*Math.log10(Math.E)*e.mag}()):1===this.layer?I(1,2,function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](Math.log10(.4342944819032518)+e.mag):e.sign*(Math.log10(.4342944819032518)+e.mag)}()):I(1,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())}},{key:"sqr",value:function(){return this.pow(2)}},{key:"sqrt",value:function(){var e=this;if(0===this.layer)return P(Math.sqrt(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}()));if(1===this.layer)return I(1,2,function(){return void 0!==Math.log10(e.mag)&&null!==Math.log10(e.mag)&&Math.log10(e.mag)[Symbol.for("-")]?Math.log10(e.mag)[Symbol.for("-")](.3010299956639812):Math.log10(e.mag)-.3010299956639812}());var n=s.div(T(this.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),this.mag),T(1,0,2));return n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),n.normalize(),n}},{key:"cube",value:function(){return this.pow(3)}},{key:"cbrt",value:function(){return this.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](3):1/3}())}},{key:"tetrate",value:function(){var e=arguments,n=this,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:T(1,0,1);if(1===o)return s.pow(this,r);if(0===o)return new s(r);if(this.eq(s.dOne))return s.dOne;if(this.eq(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()))return s.pow(this,r);if(o===Number.POSITIVE_INFINITY){var t=this.toNumber();if(function(){return void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](1.444667861009766):t<=1.444667861009766}()&&function(){return void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](.06598803584531254):t>=.06598803584531254}()){if(function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](1.444667861009099):t>1.444667861009099}())return new s(Math.E);var l=s.ln(this).neg();return l.lambertw().div(l)}return function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](1.444667861009766):t>1.444667861009766}()?new s(Number.POSITIVE_INFINITY):s.dNaN}if(this.eq(s.dZero)){var i=Math.abs(function(){return o+1!==void 0&&o+1!==null&&(o+1)[Symbol.for("%")]?(o+1)[Symbol.for("%")](2):(o+1)%2}());return function(){return void 0!==i&&null!==i&&i[Symbol.for(">")]?i[Symbol.for(">")](1):i>1}()&&(i=function(){return 2[Symbol.for("-")]?2[Symbol.for("-")](i):2-i}()),new s(i)}if(function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0}())return s.iteratedlog(r,this,function(){return void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o}());r=P(r);var u=o;o=Math.trunc(o);var a=function(){return void 0!==u&&null!==u&&u[Symbol.for("-")]?u[Symbol.for("-")](o):u-o}();if(this.gt(s.dZero)&&this.lte(1.444667861009766)){o=Math.min(1e4,o);for(var f=0;function(){return void 0!==f&&null!==f&&f[Symbol.for("<")]?f[Symbol.for("<")](o):f<o}();function(){return void 0!==f&&null!==f&&"object"===(0,S.Z)(f)&&f[Symbol.for("prefix-increment")]?f[Symbol.for("prefix-increment")]():++f}()){var c=r;if(r=this.pow(r),c.eq(r))return r}if(function(){return void 0!==a&&null!==a&&a[Symbol.for("!=")]?a[Symbol.for("!=")](0):0!=a}()){var m=this.pow(r);return r.mul(function(){return 1[Symbol.for("-")]?1[Symbol.for("-")](a):1-a}()).add(m.mul(a))}return r}(function(){return void 0!==a&&null!==a&&a[Symbol.for("!==")]?a[Symbol.for("!==")](0):0!==a})()&&(r.eq(s.dOne)?this.gt(10)?r=this.pow(a):(r=P(s.tetrate_critical(this.toNumber(),a)),this.lt(2)&&(r=r.sub(1).mul(this.minus(1)).plus(1))):r=this.eq(10)?r.layeradd10(a):r.layeradd(a,this));for(var d=0;function(){return void 0!==d&&null!==d&&d[Symbol.for("<")]?d[Symbol.for("<")](o):d<o}();function(){return void 0!==d&&null!==d&&"object"===(0,S.Z)(d)&&d[Symbol.for("prefix-increment")]?d[Symbol.for("prefix-increment")]():++d}()){if(r=this.pow(r),function(){return void 0!==isFinite(r.layer)&&null!==isFinite(r.layer)&&isFinite(r.layer)[Symbol.for("!")]?isFinite(r.layer)[Symbol.for("!")]():!isFinite(r.layer)}()||function(){return void 0!==isFinite(r.mag)&&null!==isFinite(r.mag)&&isFinite(r.mag)[Symbol.for("!")]?isFinite(r.mag)[Symbol.for("!")]():!isFinite(r.mag)}())return r.normalize();if(function(){return r.layer-n.layer!==void 0&&r.layer-n.layer!==null&&(r.layer-n.layer)[Symbol.for(">")]?(r.layer-n.layer)[Symbol.for(">")](3):r.layer-n.layer>3}())return T(r.sign,function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("+")]?r.layer[Symbol.for("+")](o-d-1):r.layer+(o-d-1)}(),r.mag);if(function(){return void 0!==d&&null!==d&&d[Symbol.for(">")]?d[Symbol.for(">")](1e4):d>1e4}())return r}return r}},{key:"iteratedexp",value:function(){var e=arguments,n=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:2,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:T(1,0,1);return this.tetrate(n,o)}},{key:"iteratedlog",value:function(){var e=arguments,n=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:10,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:1;if(function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0}())return s.tetrate(n,function(){return void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o}(),this);n=P(n);var r=P(this),t=o;o=Math.trunc(o);var l=function(){return void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](o):t-o}();if(function(){return r.layer-n.layer!==void 0&&r.layer-n.layer!==null&&(r.layer-n.layer)[Symbol.for(">")]?(r.layer-n.layer)[Symbol.for(">")](3):r.layer-n.layer>3}()){var i=Math.min(o,function(){return r.layer-n.layer!==void 0&&r.layer-n.layer!==null&&(r.layer-n.layer)[Symbol.for("-")]?(r.layer-n.layer)[Symbol.for("-")](3):r.layer-n.layer-3}());o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i}(),r.layer=function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("-")]?r.layer[Symbol.for("-")](i):r.layer-i}()}for(var u=0;function(){return void 0!==u&&null!==u&&u[Symbol.for("<")]?u[Symbol.for("<")](o):u<o}();function(){return void 0!==u&&null!==u&&"object"===(0,S.Z)(u)&&u[Symbol.for("prefix-increment")]?u[Symbol.for("prefix-increment")]():++u}()){if(r=r.log(n),function(){return void 0!==isFinite(r.layer)&&null!==isFinite(r.layer)&&isFinite(r.layer)[Symbol.for("!")]?isFinite(r.layer)[Symbol.for("!")]():!isFinite(r.layer)}()||function(){return void 0!==isFinite(r.mag)&&null!==isFinite(r.mag)&&isFinite(r.mag)[Symbol.for("!")]?isFinite(r.mag)[Symbol.for("!")]():!isFinite(r.mag)}())return r.normalize();if(function(){return void 0!==u&&null!==u&&u[Symbol.for(">")]?u[Symbol.for(">")](1e4):u>1e4}())return r}return function(){return void 0!==l&&null!==l&&l[Symbol.for(">")]?l[Symbol.for(">")](0):l>0}()&&function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](1):l<1}()&&(r=n.eq(10)?r.layeradd10(function(){return void 0!==l&&null!==l&&l[Symbol.for("minus")]?l[Symbol.for("minus")]():-l}()):r.layeradd(function(){return void 0!==l&&null!==l&&l[Symbol.for("minus")]?l[Symbol.for("minus")]():-l}(),n)),r}},{key:"slog",value:function(){var e=arguments,n=this,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:10;if(o=P(o),o.lte(s.dZero))return s.dNaN;if(o.eq(s.dOne))return s.dNaN;if(o.lt(s.dOne))return this.eq(s.dOne)?s.dZero:this.eq(s.dZero)?s.dNegOne:s.dNaN;if(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()||this.eq(s.dZero))return s.dNegOne;var r=0,t=P(this);if(function(){return t.layer-o.layer!==void 0&&t.layer-o.layer!==null&&(t.layer-o.layer)[Symbol.for(">")]?(t.layer-o.layer)[Symbol.for(">")](3):t.layer-o.layer>3}()){var l=function(){return t.layer-o.layer!==void 0&&t.layer-o.layer!==null&&(t.layer-o.layer)[Symbol.for("-")]?(t.layer-o.layer)[Symbol.for("-")](3):t.layer-o.layer-3}();r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](l):r+l}(),t.layer=function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l}()}for(var i=0;function(){return void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](100):i<100}();function(){return void 0!==i&&null!==i&&"object"===(0,S.Z)(i)&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i}())if(t.lt(s.dZero))t=s.pow(o,t),r=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](1):r-1}();else{if(t.lte(s.dOne))return P(function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](s.slog_critical(o.toNumber(),t.toNumber())):r+s.slog_critical(o.toNumber(),t.toNumber())}());r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](1):r+1}(),t=s.log(t,o)}return P(r)}},{key:"layeradd10",value:function(e){e=s.fromValue_noAlloc(e).toNumber();var n=P(this);if(function(){return void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](1):e>=1}()){(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0})()&&function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">")]?n.layer[Symbol.for(">")](0):n.layer>0}()?(n.sign=0,n.mag=0,n.layer=0):n.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()&&function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("==")]?n.layer[Symbol.for("==")](0):0==n.layer}()&&(n.sign=1,n.mag=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}());var o=Math.trunc(e);e=function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](o):e-o}(),n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](o):n.layer+o}()}if(function(){return void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](-1):e<=-1}()){var r=Math.trunc(e);if(e=function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](r):e-r}(),n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](r):n.layer+r}(),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<")]?n.layer[Symbol.for("<")](0):n.layer<0}())for(var t=0;function(){return void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](100):t<100}();function(){return void 0!==t&&null!==t&&"object"===(0,S.Z)(t)&&t[Symbol.for("prefix-increment")]?t[Symbol.for("prefix-increment")]():++t}()){if(function(){void 0!==n.layer&&null!==n.layer&&"object"===(0,S.Z)(n.layer)&&n.layer[Symbol.for("postfix-increment")]?n.layer[Symbol.for("postfix-increment")]():n.layer++}(),n.mag=Math.log10(n.mag),function(){return void 0!==isFinite(n.mag)&&null!==isFinite(n.mag)&&isFinite(n.mag)[Symbol.for("!")]?isFinite(n.mag)[Symbol.for("!")]():!isFinite(n.mag)}())return 0===n.sign&&(n.sign=1),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<")]?n.layer[Symbol.for("<")](0):n.layer<0}()&&(n.layer=0),n.normalize();if(function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](0):n.layer>=0}())break}}while(function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<")]?n.layer[Symbol.for("<")](0):n.layer<0}())(function(){void 0!==n.layer&&null!==n.layer&&"object"===(0,S.Z)(n.layer)&&n.layer[Symbol.for("postfix-increment")]?n.layer[Symbol.for("postfix-increment")]():n.layer++})(),n.mag=Math.log10(n.mag);return 0===n.sign&&(n.sign=1,0===n.mag&&function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](1):n.layer>=1}()&&(n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),n.mag=1)),n.normalize(),function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](0):0!==e}()?n.layeradd(e,10):n}},{key:"layeradd",value:function(e,n){var o=this.slog(n).toNumber(),r=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](e):o+e}();return function(){return void 0!==r&&null!==r&&r[Symbol.for(">=")]?r[Symbol.for(">=")](0):r>=0}()?s.tetrate(n,r):function(){return void 0!==Number.isFinite(r)&&null!==Number.isFinite(r)&&Number.isFinite(r)[Symbol.for("!")]?Number.isFinite(r)[Symbol.for("!")]():!Number.isFinite(r)}()?s.dNaN:function(){return void 0!==r&&null!==r&&r[Symbol.for(">=")]?r[Symbol.for(">=")](-1):r>=-1}()?s.log(s.tetrate(n,function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](1):r+1}()),n):s.log(s.log(s.tetrate(n,function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](2):r+2}()),n),n)}},{key:"lambertw",value:function(){var e=this;if(this.lt(function(){return.3678794411710499[Symbol.for("minus")]?.3678794411710499[Symbol.for("minus")]():-.3678794411710499}()))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}())return P(_(this.toNumber()));if(0===this.layer)return P(_(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}()));if(1===this.layer)return j(this);if(2===this.layer)return j(this);if(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](3):e.layer>=3}())return T(this.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),this.mag);throw"Unhandled behavior in lambertw()"}},{key:"ssqrt",value:function(){var e=this;if(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("==")]?e.sign[Symbol.for("==")](1):1==e.sign}()&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](3):e.layer>=3}())return T(this.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),this.mag);var n=this.ln();return n.div(n.lambertw())}},{key:"pentate",value:function(){var e=arguments,n=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:2,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:T(1,0,1);o=P(o);var r=n;n=Math.trunc(n);var t=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](n):r-n}();(function(){return void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](0):0!==t})()&&(o.eq(s.dOne)?(function(){void 0!==n&&null!==n&&"object"===(0,S.Z)(n)&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n}(),o=new s(t)):o=this.eq(10)?o.layeradd10(t):o.layeradd(t,this));for(var l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](n):l<n}();function(){return void 0!==l&&null!==l&&"object"===(0,S.Z)(l)&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l}()){if(o=this.tetrate(o.toNumber()),function(){return void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer)}()||function(){return 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(function(){return void 0!==l&&null!==l&&l[Symbol.for(">")]?l[Symbol.for(">")](10):l>10}())return o}return o}},{key:"sin",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?this:0===this.layer?P(Math.sin(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):T(0,0,0)}},{key:"cos",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?s.dOne:0===this.layer?P(Math.cos(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):T(0,0,0)}},{key:"tan",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?this:0===this.layer?P(Math.tan(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):T(0,0,0)}},{key:"asin",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?this:0===this.layer?P(Math.asin(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):T(Number.NaN,Number.NaN,Number.NaN)}},{key:"acos",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?P(Math.acos(this.toNumber())):0===this.layer?P(Math.acos(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):T(Number.NaN,Number.NaN,Number.NaN)}},{key:"atan",value:function(){var e=this;return function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()?this:0===this.layer?P(Math.atan(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}())):P(Math.atan(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](Infinity):Infinity*e.sign}()))}},{key:"sinh",value:function(){return this.exp().sub(this.negate().exp()).div(2)}},{key:"cosh",value:function(){return this.exp().add(this.negate().exp()).div(2)}},{key:"tanh",value:function(){return this.sinh().div(this.cosh())}},{key:"asinh",value:function(){return s.ln(this.add(this.sqr().add(1).sqrt()))}},{key:"acosh",value:function(){return s.ln(this.add(this.sqr().sub(1).sqrt()))}},{key:"atanh",value:function(){return this.abs().gte(1)?T(Number.NaN,Number.NaN,Number.NaN):s.ln(this.add(1).div(P(1).sub(this))).div(2)}},{key:"ascensionPenalty",value:function(e){return 0===e?this:this.root(s.pow(10,e))}},{key:"egg",value:function(){return this.add(9)}},{key:"lessThanOrEqualTo",value:function(e){var n=this;return function(){return void 0!==n.cmp(e)&&null!==n.cmp(e)&&n.cmp(e)[Symbol.for("<")]?n.cmp(e)[Symbol.for("<")](1):n.cmp(e)<1}()}},{key:"lessThan",value:function(e){var n=this;return function(){return void 0!==n.cmp(e)&&null!==n.cmp(e)&&n.cmp(e)[Symbol.for("<")]?n.cmp(e)[Symbol.for("<")](0):n.cmp(e)<0}()}},{key:"greaterThanOrEqualTo",value:function(e){var n=this;return function(){return void 0!==n.cmp(e)&&null!==n.cmp(e)&&n.cmp(e)[Symbol.for(">")]?n.cmp(e)[Symbol.for(">")](-1):n.cmp(e)>-1}()}},{key:"greaterThan",value:function(e){var n=this;return function(){return void 0!==n.cmp(e)&&null!==n.cmp(e)&&n.cmp(e)[Symbol.for(">")]?n.cmp(e)[Symbol.for(">")](0):n.cmp(e)>0}()}}],[{key:"fromComponents",value:function(e,n,o){return(new s).fromComponents(e,n,o)}},{key:"fromComponents_noNormalize",value:function(e,n,o){return(new s).fromComponents_noNormalize(e,n,o)}},{key:"fromMantissaExponent",value:function(e,n){return(new s).fromMantissaExponent(e,n)}},{key:"fromMantissaExponent_noNormalize",value:function(e,n){return(new s).fromMantissaExponent_noNormalize(e,n)}},{key:"fromDecimal",value:function(e){return(new s).fromDecimal(e)}},{key:"fromNumber",value:function(e){return(new s).fromNumber(e)}},{key:"fromString",value:function(e){return(new s).fromString(e)}},{key:"fromValue",value:function(e){return(new s).fromValue(e)}},{key:"fromValue_noAlloc",value:function(e){return e instanceof s?e:new s(e)}},{key:"abs",value:function(e){return P(e).abs()}},{key:"neg",value:function(e){return P(e).neg()}},{key:"negate",value:function(e){return P(e).neg()}},{key:"negated",value:function(e){return P(e).neg()}},{key:"sign",value:function(e){return P(e).sign}},{key:"sgn",value:function(e){return P(e).sign}},{key:"round",value:function(e){return P(e).round()}},{key:"floor",value:function(e){return P(e).floor()}},{key:"ceil",value:function(e){return P(e).ceil()}},{key:"trunc",value:function(e){return P(e).trunc()}},{key:"add",value:function(e,n){return P(e).add(n)}},{key:"plus",value:function(e,n){return P(e).add(n)}},{key:"sub",value:function(e,n){return P(e).sub(n)}},{key:"subtract",value:function(e,n){return P(e).sub(n)}},{key:"minus",value:function(e,n){return P(e).sub(n)}},{key:"mul",value:function(e,n){return P(e).mul(n)}},{key:"multiply",value:function(e,n){return P(e).mul(n)}},{key:"times",value:function(e,n){return P(e).mul(n)}},{key:"div",value:function(e,n){return P(e).div(n)}},{key:"divide",value:function(e,n){return P(e).div(n)}},{key:"recip",value:function(e){return P(e).recip()}},{key:"reciprocal",value:function(e){return P(e).recip()}},{key:"reciprocate",value:function(e){return P(e).reciprocate()}},{key:"cmp",value:function(e,n){return P(e).cmp(n)}},{key:"cmpabs",value:function(e,n){return P(e).cmpabs(n)}},{key:"compare",value:function(e,n){return P(e).cmp(n)}},{key:"isNaN",value:function(e){function n(n){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}((function(e){return e=P(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag)}))},{key:"isFinite",value:function(e){function n(n){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}((function(e){return e=P(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}))},{key:"eq",value:function(e,n){return P(e).eq(n)}},{key:"equals",value:function(e,n){return P(e).eq(n)}},{key:"neq",value:function(e,n){return P(e).neq(n)}},{key:"notEquals",value:function(e,n){return P(e).notEquals(n)}},{key:"lt",value:function(e,n){return P(e).lt(n)}},{key:"lte",value:function(e,n){return P(e).lte(n)}},{key:"gt",value:function(e,n){return P(e).gt(n)}},{key:"gte",value:function(e,n){return P(e).gte(n)}},{key:"max",value:function(e,n){return P(e).max(n)}},{key:"min",value:function(e,n){return P(e).min(n)}},{key:"minabs",value:function(e,n){return P(e).minabs(n)}},{key:"maxabs",value:function(e,n){return P(e).maxabs(n)}},{key:"clamp",value:function(e,n,o){return P(e).clamp(n,o)}},{key:"clampMin",value:function(e,n){return P(e).clampMin(n)}},{key:"clampMax",value:function(e,n){return P(e).clampMax(n)}},{key:"cmp_tolerance",value:function(e,n,o){return P(e).cmp_tolerance(n,o)}},{key:"compare_tolerance",value:function(e,n,o){return P(e).cmp_tolerance(n,o)}},{key:"eq_tolerance",value:function(e,n,o){return P(e).eq_tolerance(n,o)}},{key:"equals_tolerance",value:function(e,n,o){return P(e).eq_tolerance(n,o)}},{key:"neq_tolerance",value:function(e,n,o){return P(e).neq_tolerance(n,o)}},{key:"notEquals_tolerance",value:function(e,n,o){return P(e).notEquals_tolerance(n,o)}},{key:"lt_tolerance",value:function(e,n,o){return P(e).lt_tolerance(n,o)}},{key:"lte_tolerance",value:function(e,n,o){return P(e).lte_tolerance(n,o)}},{key:"gt_tolerance",value:function(e,n,o){return P(e).gt_tolerance(n,o)}},{key:"gte_tolerance",value:function(e,n,o){return P(e).gte_tolerance(n,o)}},{key:"pLog10",value:function(e){return P(e).pLog10()}},{key:"absLog10",value:function(e){return P(e).absLog10()}},{key:"log10",value:function(e){return P(e).log10()}},{key:"log",value:function(e,n){return P(e).log(n)}},{key:"log2",value:function(e){return P(e).log2()}},{key:"ln",value:function(e){return P(e).ln()}},{key:"logarithm",value:function(e,n){return P(e).logarithm(n)}},{key:"pow",value:function(e,n){return P(e).pow(n)}},{key:"pow10",value:function(e){return P(e).pow10()}},{key:"root",value:function(e,n){return P(e).root(n)}},{key:"factorial",value:function(e,n){return P(e).factorial()}},{key:"gamma",value:function(e,n){return P(e).gamma()}},{key:"lngamma",value:function(e,n){return P(e).lngamma()}},{key:"exp",value:function(e){return P(e).exp()}},{key:"sqr",value:function(e){return P(e).sqr()}},{key:"sqrt",value:function(e){return P(e).sqrt()}},{key:"cube",value:function(e){return P(e).cube()}},{key:"cbrt",value:function(e){return P(e).cbrt()}},{key:"tetrate",value:function(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:2,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](2):n.length>2}()&&function(){return void 0!==n[2]&&null!==n[2]&&n[2][Symbol.for("!==")]?n[2][Symbol.for("!==")](void 0):void 0!==n[2]}()?arguments[2]:T(1,0,1);return P(e).tetrate(o,r)}},{key:"iteratedexp",value:function(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:2,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](2):n.length>2}()&&function(){return void 0!==n[2]&&null!==n[2]&&n[2][Symbol.for("!==")]?n[2][Symbol.for("!==")](void 0):void 0!==n[2]}()?arguments[2]:T(1,0,1);return P(e).iteratedexp(o,r)}},{key:"iteratedlog",value:function(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:10,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](2):n.length>2}()&&function(){return void 0!==n[2]&&null!==n[2]&&n[2][Symbol.for("!==")]?n[2][Symbol.for("!==")](void 0):void 0!==n[2]}()?arguments[2]:1;return P(e).iteratedlog(o,r)}},{key:"layeradd10",value:function(e,n){return P(e).layeradd10(n)}},{key:"layeradd",value:function(e,n){var o=arguments,r=function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()&&function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()?arguments[2]:10;return P(e).layeradd(n,r)}},{key:"slog",value:function(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:10;return P(e).slog(o)}},{key:"lambertw",value:function(e){return P(e).lambertw()}},{key:"ssqrt",value:function(e){return P(e).ssqrt()}},{key:"pentate",value:function(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:2,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](2):n.length>2}()&&function(){return void 0!==n[2]&&null!==n[2]&&n[2][Symbol.for("!==")]?n[2][Symbol.for("!==")](void 0):void 0!==n[2]}()?arguments[2]:T(1,0,1);return P(e).pentate(o,r)}},{key:"affordGeometricSeries",value:function(e,n,o,r){return this.affordGeometricSeries_core(P(e),P(n),P(o),r)}},{key:"sumGeometricSeries",value:function(e,n,o,r){return this.sumGeometricSeries_core(e,P(n),P(o),r)}},{key:"affordArithmeticSeries",value:function(e,n,o,r){return this.affordArithmeticSeries_core(P(e),P(n),P(o),P(r))}},{key:"sumArithmeticSeries",value:function(e,n,o,r){return this.sumArithmeticSeries_core(P(e),P(n),P(o),P(r))}},{key:"efficiencyOfPurchase",value:function(e,n,o){return this.efficiencyOfPurchase_core(P(e),P(n),P(o))}},{key:"randomDecimalForTesting",value:function(e){if(function(){return 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 T(0,0,0);var n=function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.5):Math.random()>.5}()?1:function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}();if(function(){return 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 T(n,0,1);var o=Math.floor(function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](e+1):Math.random()*(e+1)}()),r=0===o?function(){return 616*Math.random()!==void 0&&616*Math.random()!==null&&(616*Math.random())[Symbol.for("-")]?(616*Math.random())[Symbol.for("-")](308):616*Math.random()-308}():function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](16):16*Math.random()}();(function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9})()&&(r=Math.trunc(r));var t=Math.pow(10,r);return function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9}()&&(t=Math.trunc(t)),I(n,o,t)}},{key:"affordGeometricSeries_core",value:function(e,n,o,r){var t=n.mul(o.pow(r));return s.floor(e.div(t).mul(o.sub(1)).add(1).log10().div(o.log10()))}},{key:"sumGeometricSeries_core",value:function(e,n,o,r){return n.mul(o.pow(r)).mul(s.sub(1,o.pow(e))).div(s.sub(1,o))}},{key:"affordArithmeticSeries_core",value:function(e,n,o,r){var t=n.add(r.mul(o)),l=t.sub(o.div(2)),i=l.pow(2);return l.neg().add(i.add(o.mul(e).mul(2)).sqrt()).div(o).floor()}},{key:"sumArithmeticSeries_core",value:function(e,n,o,r){var t=n.add(r.mul(o));return e.div(2).mul(t.mul(2).plus(e.sub(1).mul(o)))}},{key:"efficiencyOfPurchase_core",value:function(e,n,o){return e.div(n).add(e.div(o))}},{key:"slog_critical",value:function(e,n){return function(){return void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10}()?function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}():s.critical_section(e,n,E)}},{key:"tetrate_critical",value:function(e,n){return s.critical_section(e,n,B)}},{key:"critical_section",value:function(e,n,o){n=function(){return void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](10):10*n}(),function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](0):n<0}()&&(n=0),function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10}()&&(n=10),function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](2):e<2}()&&(e=2),function(){return void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10}()&&(e=10);for(var r=0,t=0,l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](C.length):l<C.length}();function(){return void 0!==l&&null!==l&&"object"===(0,S.Z)(l)&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l}()){if(function(){return void 0!==C[l]&&null!==C[l]&&C[l][Symbol.for("==")]?C[l][Symbol.for("==")](e):C[l]==e}()){r=o[l][Math.floor(n)],t=o[l][Math.ceil(n)];break}if(function(){return void 0!==C[l]&&null!==C[l]&&C[l][Symbol.for("<")]?C[l][Symbol.for("<")](e):C[l]<e}()&&function(){return void 0!==C[l+1]&&null!==C[l+1]&&C[l+1][Symbol.for(">")]?C[l+1][Symbol.for(">")](e):C[l+1]>e}()){var i=function(){return e-C[l]!==void 0&&e-C[l]!==null&&(e-C[l])[Symbol.for("/")]?(e-C[l])[Symbol.for("/")](C[l+1]-C[l]):(e-C[l])/(C[l+1]-C[l])}();r=function(){return o[l][Math.floor(n)]*(1-i)!==void 0&&o[l][Math.floor(n)]*(1-i)!==null&&(o[l][Math.floor(n)]*(1-i))[Symbol.for("+")]?(o[l][Math.floor(n)]*(1-i))[Symbol.for("+")](o[l+1][Math.floor(n)]*i):o[l][Math.floor(n)]*(1-i)+o[l+1][Math.floor(n)]*i}(),t=function(){return o[l][Math.ceil(n)]*(1-i)!==void 0&&o[l][Math.ceil(n)]*(1-i)!==null&&(o[l][Math.ceil(n)]*(1-i))[Symbol.for("+")]?(o[l][Math.ceil(n)]*(1-i))[Symbol.for("+")](o[l+1][Math.ceil(n)]*i):o[l][Math.ceil(n)]*(1-i)+o[l+1][Math.ceil(n)]*i}();break}}var u=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](Math.floor(n)):n-Math.floor(n)}(),a=function(){return r*(1-u)!==void 0&&r*(1-u)!==null&&(r*(1-u))[Symbol.for("+")]?(r*(1-u))[Symbol.for("+")](t*u):r*(1-u)+t*u}();return a}}]),s}(r,t,l,i,u,a,f,c,s,m,d);(0,v.Z)(U,"dZero",T(0,0,0)),(0,v.Z)(U,"dOne",T(1,0,1)),(0,v.Z)(U,"dNegOne",T(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),0,1)),(0,v.Z)(U,"dTwo",T(1,0,2)),(0,v.Z)(U,"dTen",T(1,0,10)),(0,v.Z)(U,"dNaN",T(Number.NaN,Number.NaN,Number.NaN)),(0,v.Z)(U,"dInf",T(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,v.Z)(U,"dNegInf",T(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,v.Z)(U,"dNumberMax",I(1,0,Number.MAX_VALUE)),(0,v.Z)(U,"dNumberMin",I(1,0,Number.MIN_VALUE))},5813:function(e,n,o){"use strict";var r=o(5082),t=o(8534),l=(o(6992),o(8674),o(9601),o(7727),o(5666),o(4865)),i=(o(7941),o(8309),o(2526),o(1817),o(1539),o(6699),o(2023),o(2345)),u=o(9365),a=o(5967);function f(e,n,o,r,t,i){var u=(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:n[0]||(n[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},"←")):(0,l.createCommentVNode)("",!0),e.minimized.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:n[1]||(n[1]=function(n){return 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)(u,{links:e.unref(e.links)},{default:(0,l.withCtx)((function(){return[((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:n[2]||(n[2]=function(n){return e.minimized.value=!0})}," ▼ ")):(0,l.createCommentVNode)("",!0)],4)}var c=o(6084),s=(o(9653),o(561),o(7172)),m=o(1604),d=(0,l.defineComponent)({components:{Links:s.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,m.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,m.P5)(Number),required:!0},name:{type:(0,m.P5)(String),required:!0},color:(0,m.P5)(String),style:(0,m.P5)(String,Object,Array),classes:(0,m.P5)(Object),links:(0,m.P5)(Array),minimizable:(0,m.P5)(Boolean)},setup:function(e){var n=(0,l.toRefs)(e),o=n.display,r=n.index,t=n.minimized,u=n.minWidth,f=n.tab,s=(0,m.vq)(o),d=(0,l.computed)((function(){return i.allowGoBack&&function(){return void 0!==r.value&&null!==r.value&&r.value[Symbol.for(">")]?r.value[Symbol.for(">")](0):r.value>0}()&&function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value}()}));function y(){a.Z.tabs.splice((0,l.unref)(e.index),1/0)}function b(e,n){var o=f.value();(function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](void 0):void 0!=o})()&&(e?(o.style.flexGrow="0",o.style.flexShrink="0",o.style.width="60px",o.style.minWidth=o.style.flexBasis="",o.style.margin="0"):(o.style.flexGrow="",o.style.flexShrink="",o.style.width="",o.style.minWidth=o.style.flexBasis="".concat(n,"px"),o.style.margin=""))}return(0,l.nextTick)((function(){return b(t.value,(0,l.unref)(u.value))})),(0,l.watch)([t,(0,m.o9)(u)],(function(e){var n=(0,c.Z)(e,2),o=n[0],r=n[1];return b(o,r)})),{component:s,showGoBack:d,unref:l.unref,goBack:y}}}),y=o(3744);const b=(0,y.Z)(d,[["render",f],["__scopeId","data-v-3d00bd3c"]]);var v=b,S=o(7286),g=function(e){return(0,l.pushScopeId)("data-v-3303e3d5"),e=e(),(0,l.popScopeId)(),e},p=g((function(){return(0,l.createElementVNode)("h2",null,"Changelog",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),h=g((function(){return(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")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),N=(0,l.defineComponent)({setup:function(e,n){var o=n.expose,r=(0,l.ref)(!1);return o({open:function(){r.value=!0}}),function(e,n){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return r.value=e})},{header:(0,l.withCtx)((function(){return[p]})),body:(0,l.withCtx)((function(){return[h]})),_:1},8,["modelValue"])}}});const k=(0,y.Z)(N,[["__scopeId","data-v-3303e3d5"]]);var V=k,Z=o(9706),M=function(e){return(0,l.pushScopeId)("data-v-0b3812f2"),e=e(),(0,l.popScopeId)(),e},x={class:"info-modal-header"},w=["src","alt"],C={class:"info-modal-title"},B={key:0},E={key:0},P=M((function(){return(0,l.createElementVNode)("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),I=M((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),T=M((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),F=["href"],D=M((function(){return(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),R=M((function(){return(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 ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),O=M((function(){return(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 ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),_=M((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),j=(0,l.defineComponent)({props:{changelog:null},setup:function(e,n){var o=n.expose,r=e,t=i.title,u=i.logo,f=i.author,c=i.discordName,s=i.discordLink,m=i.versionNumber,d=i.versionTitle,y=(0,l.toRefs)(r),b=(0,l.ref)(!1),v=(0,l.computed)((function(){return(0,Z.mr)(a.Z.timePlayed)}));function g(){var e;null===(e=(0,l.unref)(y.changelog))||void 0===e||e.open()}return o({open:function(){b.value=!0}}),function(e,n){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:b.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return b.value=e})},{header:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",x,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,l.unref)(u),alt:(0,l.unref)(t)},null,8,w)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",C,[(0,l.createElementVNode)("h2",null,(0,l.toDisplayString)((0,l.unref)(t)),1),(0,l.createElementVNode)("h4",null,function(){return"v"+(0,l.toDisplayString)((0,l.unref)(m))+": "!==void 0&&"v"+(0,l.toDisplayString)((0,l.unref)(m))+": "!==null&&("v"+(0,l.toDisplayString)((0,l.unref)(m))+": ")[Symbol.for("+")]?("v"+(0,l.toDisplayString)((0,l.unref)(m))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(d))):"v"+(0,l.toDisplayString)((0,l.unref)(m))+": "+(0,l.toDisplayString)((0,l.unref)(d))}(),1)])])]})),body:(0,l.withCtx)((function(e){var n=e.shown;return[n?((0,l.openBlock)(),(0,l.createElementBlock)("div",B,[(0,l.unref)(f)?((0,l.openBlock)(),(0,l.createElementBlock)("div",E,function(){return"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"By "+(0,l.toDisplayString)((0,l.unref)(f))}(),1)):(0,l.createCommentVNode)("",!0),P,I,(0,l.createElementVNode)("div",{class:"link",onClick:g},"Changelog"),T,(0,l.createElementVNode)("div",null,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("a",{key:0,href:(0,l.unref)(s),class:"info-modal-discord-link"},[D,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(c))):" "+(0,l.toDisplayString)((0,l.unref)(c))}(),1)],8,F)):(0,l.createCommentVNode)("",!0)]),R,O,_,(0,l.createElementVNode)("div",null,function(){return"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(v))):"Time Played: "+(0,l.toDisplayString)((0,l.unref)(v))}(),1)])):(0,l.createCommentVNode)("",!0)]})),_:1},8,["modelValue"])}}});const U=(0,y.Z)(j,[["__scopeId","data-v-0b3812f2"]]);var A=U,q=(o(1249),o(5679)),L=o(9266),z=o(1349),W=o(900),G=o(3520),H=o(5939),Y=o(6113),J=function(e){return(0,l.pushScopeId)("data-v-54e795a4"),e=e(),(0,l.popScopeId)(),e},X=J((function(){return(0,l.createElementVNode)("div",{class:"header"},[(0,l.createElementVNode)("h2",null,"Options")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Q=J((function(){return(0,l.createElementVNode)("hr",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),K=(0,l.defineComponent)({setup:function(e,n){var o=n.expose,r=(0,l.ref)(!1);o({open:function(){r.value=!0}});var t=Object.keys(q.Z).map((function(e){return{label:(0,z.IJ)(e),value:e}})),i=(0,l.computed)((function(){return(0,m.MM)((0,Y.tZ)((function(){return(0,l.createVNode)(l.Fragment,null,[L.V$.map(m.sY)])})))})),u=(0,l.toRefs)(L.ZP),f=u.showTPS,c=u.theme,s=u.unthrottled,d=(0,l.toRefs)(a.Z),y=d.autosave,b=d.offlineProd,v=(0,l.computed)({get:function(){return 0===a.Z.devSpeed},set:function(e){a.Z.devSpeed=e?0:null}}),g=(0,Y.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Offline Production"),(0,l.createVNode)(H.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])})),p=(0,Y.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Autosave"),(0,l.createVNode)(H.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])})),h=(0,Y.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Pause game"),(0,l.createVNode)(H.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])}));return function(e,n){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":n[6]||(n[6]=function(e){return r.value=e})},{header:(0,l.withCtx)((function(){return[X]})),body:(0,l.withCtx)((function(){return[(0,l.createVNode)(G.Z,{title:"Theme",options:(0,l.unref)(t),modelValue:(0,l.unref)(c),"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,l.isRef)(c)?c.value=e:null})},null,8,["options","modelValue"]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i)))),(0,l.createVNode)(W.Z,{title:"Show TPS",modelValue:(0,l.unref)(f),"onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,l.isRef)(f)?f.value=e:null})},null,8,["modelValue"]),Q,(0,l.createVNode)(W.Z,{title:"Unthrottled",modelValue:(0,l.unref)(s),"onUpdate:modelValue":n[2]||(n[2]=function(e){return(0,l.isRef)(s)?s.value=e:null})},null,8,["modelValue"]),(0,l.createVNode)(W.Z,{title:(0,l.unref)(g),modelValue:(0,l.unref)(b),"onUpdate:modelValue":n[3]||(n[3]=function(e){return(0,l.isRef)(b)?b.value=e:null})},null,8,["title","modelValue"]),(0,l.createVNode)(W.Z,{title:(0,l.unref)(p),modelValue:(0,l.unref)(y),"onUpdate:modelValue":n[4]||(n[4]=function(e){return(0,l.isRef)(y)?y.value=e:null})},null,8,["title","modelValue"]),(0,l.createVNode)(W.Z,{title:(0,l.unref)(h),modelValue:(0,l.unref)(v),"onUpdate:modelValue":n[5]||(n[5]=function(e){return(0,l.isRef)(v)?v.value=e:null})},null,8,["title","modelValue"])]})),_:1},8,["modelValue"])}}});const $=(0,y.Z)(K,[["__scopeId","data-v-54e795a4"]]);var ee=$,ne=o(3336),oe=(o(8862),o(3948),o(7042),o(2222),o(4747),o(7327),o(463)),re=o(1033),te={key:0},le=["onClick","disabled"],ie={key:0},ue=["onClick"],ae=(0,l.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup:function(e,n){var o=n.emit,r=e,t=(0,l.toRefs)(r),i=(0,l.ref)(!1);function u(){(0,l.unref)(t.skipConfirm)?o("click"):(i.value&&o("click"),i.value=function(){return void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value}())}function a(){i.value=!1}return(0,l.watch)(i,(function(e){o("confirmingChanged",e)})),function(n,o){return(0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["container",{confirming:i.value}])},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",te,"Are you sure?")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:(0,l.withModifiers)(u,["stop"]),class:"button danger",disabled:e.disabled},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",ie,"Yes")):(0,l.renderSlot)(n.$slots,"default",{key:1})],8,le),i.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"button",onClick:(0,l.withModifiers)(a,["stop"])},"No",8,ue)):(0,l.createCommentVNode)("",!0)],2)}}});const fe=(0,y.Z)(ae,[["__scopeId","data-v-bf59fca4"]]);var ce=fe,se=["onClick"],me=(0,l.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup:function(e,n){var o=n.emit,r=(0,l.ref)(!1),t=(0,l.ref)(null);function i(){o("click"),t.value&&clearTimeout(t.value),r.value=!1,(0,l.nextTick)((function(){r.value=!0,t.value=setTimeout((function(){return r.value=!1}),500)}))}return function(n,o){return(0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:(0,l.withModifiers)(i,["stop"]),class:(0,l.normalizeClass)(["feedback",{activated:r.value,left:e.left}])},[(0,l.renderSlot)(n.$slots,"default")],10,se)}}});const de=(0,y.Z)(me,[["__scopeId","data-v-5bbcedd3"]]);var ye=de,be=function(e){return(0,l.pushScopeId)("data-v-4c4580ca"),e=e(),(0,l.popScopeId)(),e},ve=be((function(){return(0,l.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Se={key:0,class:"actions"},ge=be((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"content_paste",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),pe=be((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"content_copy",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),he=[pe],Ne=be((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"edit",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ke=[Ne],Ve=be((function(){return(0,l.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ze={key:1,class:"actions"},Me=be((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"check",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),xe=[Me],we=be((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"close",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ce=[we],Be={key:2,class:"details"},Ee={class:"save-version"},Pe=be((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ie={key:0},Te={key:3,class:"details"},Fe={key:4,class:"details error"},De=be((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Re=(0,l.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup:function(e,n){var o=n.emit,r=e,t=(0,l.toRefs)(r),i=t.save,u=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),f=(0,l.ref)(!1),c=(0,l.ref)(!1),s=(0,l.ref)("");(0,l.watch)(f,(function(){return s.value=i.value.name||""}));var m=(0,l.computed)((function(){return i.value&&i.value.id===a.Z.id})),d=(0,l.computed)((function(){return m.value?a.Z.time:i.value&&i.value.time||0}));function y(){o("editName",s.value),f.value=!1}return function(e,n){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["save",{active:(0,l.unref)(m)}])},[ve,function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Se,[function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!")]?c.value[Symbol.for("!")]():!c.value}()?((0,l.openBlock)(),(0,l.createBlock)(ye,{key:0,onClick:n[0]||(n[0]=function(e){return o("export")}),class:"button",left:""},{default:(0,l.withCtx)((function(){return[ge]})),_:1})):(0,l.createCommentVNode)("",!0),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!")]?c.value[Symbol.for("!")]():!c.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,onClick:n[1]||(n[1]=function(e){return o("duplicate")}),class:"button"},he)):(0,l.createCommentVNode)("",!0),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!")]?c.value[Symbol.for("!")]():!c.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:2,onClick:n[2]||(n[2]=function(e){return f.value=function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()}),class:"button"},ke)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(ce,{disabled:(0,l.unref)(m),onClick:n[3]||(n[3]=function(e){return o("delete")}),onConfirmingChanged:n[4]||(n[4]=function(e){return c.value=e})},{default:(0,l.withCtx)((function(){return[Ve]})),_:1},8,["disabled"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Ze,[(0,l.createElementVNode)("button",{onClick:y,class:"button"},xe),(0,l.createElementVNode)("button",{onClick:n[5]||(n[5]=function(e){return f.value=function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()}),class:"button"},Ce)])),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Be,[(0,l.createElementVNode)("button",{class:"button open",onClick:n[6]||(n[6]=function(e){return o("open")})},[(0,l.createElementVNode)("h3",null,(0,l.toDisplayString)((0,l.unref)(i).name),1)]),(0,l.createElementVNode)("span",Ee,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).modVersion)):"v"+(0,l.toDisplayString)((0,l.unref)(i).modVersion)}(),1),Pe,(0,l.unref)(d)?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ie,function(){return"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(u).format((0,l.unref)(d)))):"Last played "+(0,l.toDisplayString)((0,l.unref)(u).format((0,l.unref)(d)))}(),1)):(0,l.createCommentVNode)("",!0)])):function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&f.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",Te,[(0,l.createVNode)(re.Z,{modelValue:s.value,"onUpdate:modelValue":n[7]||(n[7]=function(e){return s.value=e}),class:"editname",onSubmit:y},null,8,["modelValue"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Fe,[(0,l.createTextVNode)(function(){return" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).id)):" Error: Failed to load save with id "+(0,l.toDisplayString)((0,l.unref)(i).id)}(),1),De,(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(i).error),1)]))],2)}}});const Oe=(0,y.Z)(Re,[["__scopeId","data-v-4c4580ca"]]);var _e=Oe,je=o(9980),Ue=o.n(je),Ae=function(e){return(0,l.pushScopeId)("data-v-199ffea0"),e=e(),(0,l.popScopeId)(),e},qe=Ae((function(){return(0,l.createElementVNode)("h2",null,"Saves Manager",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Le={class:"modal-footer"},ze={class:"field"},We=Ae((function(){return(0,l.createElementVNode)("span",{class:"field-title"},"Create Save",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ge={class:"field-buttons"},He={class:"footer"},Ye=Ae((function(){return(0,l.createElementVNode)("div",{style:{"flex-grow":"1"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Je=(0,l.defineComponent)({setup:function(e,n){var t=n.expose,i=(0,l.ref)(!1),u=(0,l.ref)(null);t({open:function(){i.value=!0}});var f=(0,l.ref)(!1),c=(0,l.ref)("");(0,l.watch)(c,(function(e){e?(0,l.nextTick)((function(){try{var n=JSON.parse(decodeURIComponent(escape(atob(e))));if(function(){return void 0!==(0,ne.Z)(n)&&null!==typeof n&&(0,ne.Z)(n)[Symbol.for("!==")]?(0,ne.Z)(n)[Symbol.for("!==")]("object"):"object"!==(0,ne.Z)(n)}())return void(f.value=!0);var o=(0,oe.QI)();n.id=o,localStorage.setItem(o,btoa(unescape(encodeURIComponent(JSON.stringify(n))))),c.value="",f.value=!1,L.ZP.saves.push(o)}catch(r){f.value=!0}})):f.value=!1}));var s=o(7634),m=(0,l.ref)(s.keys().reduce((function(e,n){return e.push({label:n.slice(2,function(){return 4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4}()),value:s(n).default}),e}),[])),d=(0,l.shallowReactive)({});function y(e){if(function(){return void 0!==d[e]&&null!==d[e]&&d[e][Symbol.for("==")]?d[e][Symbol.for("==")](null):null==d[e]}()){var n=localStorage.getItem(e);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}())d[e]={error:"Save doesn't exist in localStorage",id:e};else if("dW5kZWZpbmVk"===n)d[e]={error:"Save is undefined",id:e};else try{d[e]=(0,r.Z)((0,r.Z)({},JSON.parse(decodeURIComponent(escape(atob(n))))),{},{id:e})}catch(o){d[e]={error:o,id:e},console.warn("SavesManager: Failed to load info about save with id ".concat(e,":\n").concat(o,"\n").concat(n))}}return d[e]}(0,l.watch)(i,(function(e){e&&Object.keys(d).forEach((function(e){return function(){return void 0!==d&&null!==d&&d[Symbol.for("delete")]?d[Symbol.for("delete")]("key"):delete d.key}()}))}));var b=(0,l.computed)((function(){return L.ZP.saves.reduce((function(e,n){return e[n]=y(n),e}),{})}));function v(e){var n;n=a.Z.id===e?(0,oe.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(b.value[e]))));var o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select(),o.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(o)}function g(e){a.Z.id===e&&(0,oe.a1)();var n=(0,r.Z)((0,r.Z)({},b.value[e]),{},{id:(0,oe.QI)()});localStorage.setItem(n.id,btoa(unescape(encodeURIComponent(JSON.stringify(n))))),L.ZP.saves.push(n.id)}function p(e){L.ZP.saves=L.ZP.saves.filter((function(n){return function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](e):n!==e}()})),localStorage.removeItem(e),d[e]=void 0}function h(e){b.value[a.Z.id].time=a.Z.time,(0,oe.a1)(),(0,oe.uW)(b.value[e]),d[e]=void 0}function N(e){var n=JSON.parse(decodeURIComponent(escape(atob(e))));n.id=(0,oe.QI)(),localStorage.setItem(n.id,btoa(unescape(encodeURIComponent(JSON.stringify(n))))),L.ZP.saves.push(n.id)}function k(e,n){var o=b.value[e];o&&(o.name=n,a.Z.id===e?(a.Z.name=n,(0,oe.a1)()):(localStorage.setItem(e,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),d[e]=void 0))}return function(e,n){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:i.value,"onUpdate:modelValue":n[4]||(n[4]=function(e){return i.value=e}),ref_key:"modal",ref:u},{header:(0,l.withCtx)((function(){return[qe]})),body:(0,l.withCtx)((function(){var e;return[(0,l.unref)(null===(e=u.value)||void 0===e?void 0:e.isOpen)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ue()),{key:0,list:(0,l.unref)(L.ZP).saves,handle:".handle",itemKey:function(e){return e}},{item:(0,l.withCtx)((function(e){var n=e.element;return[(0,l.createVNode)(_e,{save:(0,l.unref)(b)[n],onOpen:function(e){return h(n)},onExport:function(e){return v(n)},onEditName:function(e){return k(n,e)},onDuplicate:function(e){return g(n)},onDelete:function(e){return p(n)}},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]})),_:1},8,["list","itemKey"])):(0,l.createCommentVNode)("",!0)]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",Le,[(0,l.createVNode)(re.Z,{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return c.value=e}),title:"Import Save",placeholder:"Paste your save here!",class:(0,l.normalizeClass)({importingFailed:f.value})},null,8,["modelValue","class"]),(0,l.createElementVNode)("div",ze,[We,(0,l.createElementVNode)("div",Ge,[(0,l.createElementVNode)("button",{class:"button",onClick:n[1]||(n[1]=function(){return(0,l.unref)(oe.xM)&&(0,l.unref)(oe.xM).apply(void 0,arguments)})},"New Game"),function(){return 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)(G.Z,{key:0,options:(0,l.unref)(m),modelValue:void 0,"onUpdate:modelValue":n[2]||(n[2]=function(e){return N(e)}),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",He,[Ye,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:n[3]||(n[3]=function(e){return i.value=!1})}," Close ")])])]})),_:1},8,["modelValue"])}}});const Xe=(0,y.Z)(Je,[["__scopeId","data-v-199ffea0"]]);var Qe=Xe,Ke=function(e){return(0,l.pushScopeId)("data-v-72eb8c78"),e=e(),(0,l.popScopeId)(),e},$e=["src","alt"],en={key:1,class:"title"},nn=Ke((function(){return(0,l.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),on={class:"discord"},rn={class:"discord-links"},tn={key:0},ln=["href"],un=Ke((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),an=Ke((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),fn={href:"https://forums.moddingtree.com/",target:"_blank"},cn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),sn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),mn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),dn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),yn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),bn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),vn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Sn={href:"https://forums.moddingtree.com/",target:"_blank"},gn=Ke((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),pn={class:"discord"},hn={class:"discord-links"},Nn={key:0},kn=["href"],Vn=Ke((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Zn=Ke((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Mn=(0,l.defineComponent)({setup:function(e){var n=(0,l.ref)(null),o=(0,l.ref)(null),r=(0,l.ref)(null),t=(0,l.ref)(null),u=i.useHeader,a=i.banner,f=i.title,c=i.discordName,s=i.discordLink,m=i.versionNumber;function d(){window.open(s,"mywindow")}return function(e,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:0,class:"nav"},e.$attrs),[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,src:(0,l.unref)(a),height:"100%",alt:(0,l.unref)(f)},null,8,$e)):((0,l.openBlock)(),(0,l.createElementBlock)("div",en,(0,l.toDisplayString)((0,l.unref)(f)),1)),(0,l.createElementVNode)("div",{onClick:i[0]||(i[0]=function(e){var n;return null===(n=t.value)||void 0===n?void 0:n.open()}),class:"version-container"},[(0,l.createVNode)(H.Z,{display:"Changelog",bottom:"",class:"version"},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):"v"+(0,l.toDisplayString)((0,l.unref)(m))}(),1)]})),_:1})]),nn,(0,l.createElementVNode)("div",on,[(0,l.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",rn,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("li",tn,[(0,l.createElementVNode)("a",{href:(0,l.unref)(s),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(c)),9,ln)])):(0,l.createCommentVNode)("",!0),un,an])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",fn,[(0,l.createVNode)(H.Z,{display:"Forums",bottom:"",yoffset:"5px"},{default:(0,l.withCtx)((function(){return[cn]})),_:1})])]),(0,l.createElementVNode)("div",{onClick:i[1]||(i[1]=function(e){var o;return null===(o=n.value)||void 0===o?void 0:o.open()})},[(0,l.createVNode)(H.Z,{display:"Info",bottom:"",class:"info"},{default:(0,l.withCtx)((function(){return[sn]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[2]||(i[2]=function(e){var n;return null===(n=o.value)||void 0===n?void 0:n.open()})},[(0,l.createVNode)(H.Z,{display:"Saves",bottom:"",xoffset:"-20px"},{default:(0,l.withCtx)((function(){return[mn]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[3]||(i[3]=function(e){var n;return null===(n=r.value)||void 0===n?void 0:n.open()})},[(0,l.createVNode)(H.Z,{display:"Options",bottom:"",xoffset:"-66px"},{default:(0,l.withCtx)((function(){return[dn]})),_:1})])],16)):((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:1,class:"overlay-nav"},e.$attrs),[(0,l.createElementVNode)("div",{onClick:i[4]||(i[4]=function(e){var n;return null===(n=t.value)||void 0===n?void 0:n.open()}),class:"version-container"},[(0,l.createVNode)(H.Z,{display:"Changelog",right:"",xoffset:"25%",class:"version"},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):"v"+(0,l.toDisplayString)((0,l.unref)(m))}(),1)]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[5]||(i[5]=function(e){var n;return null===(n=o.value)||void 0===n?void 0:n.open()})},[(0,l.createVNode)(H.Z,{display:"Saves",right:""},{default:(0,l.withCtx)((function(){return[yn]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[6]||(i[6]=function(e){var n;return null===(n=r.value)||void 0===n?void 0:n.open()})},[(0,l.createVNode)(H.Z,{display:"Options",right:""},{default:(0,l.withCtx)((function(){return[bn]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[7]||(i[7]=function(e){var o;return null===(o=n.value)||void 0===o?void 0:o.open()})},[(0,l.createVNode)(H.Z,{display:"Info",right:""},{default:(0,l.withCtx)((function(){return[vn]})),_:1})]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",Sn,[(0,l.createVNode)(H.Z,{display:"Forums",right:"",xoffset:"7px"},{default:(0,l.withCtx)((function(){return[gn]})),_:1})])]),(0,l.createElementVNode)("div",pn,[(0,l.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",hn,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("li",Nn,[(0,l.createElementVNode)("a",{href:(0,l.unref)(s),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(c)),9,kn)])):(0,l.createCommentVNode)("",!0),Vn,Zn])])],16)),(0,l.createVNode)(A,{ref_key:"info",ref:n,changelog:t.value},null,8,["changelog"]),(0,l.createVNode)(Qe,{ref_key:"savesManager",ref:o},null,512),(0,l.createVNode)(ee,{ref_key:"options",ref:r},null,512),(0,l.createVNode)(V,{ref_key:"changelog",ref:t},null,512)],64)}}});const xn=(0,y.Z)(Mn,[["__scopeId","data-v-72eb8c78"]]);var wn=xn,Cn={class:"tabs-container"},Bn={class:"inner-tab"},En={key:1,class:"separator"},Pn=(0,l.defineComponent)({setup:function(e){var n=(0,l.toRef)(a.Z,"tabs"),o=(0,l.computed)((function(){return Object.keys(u.layers)})),r=i.useHeader;function t(e){var n=e.display,o=e.minimized,r=e.minWidth,t=e.name,l=e.color,i=e.style,u=e.classes,a=e.links,f=e.minimizable;return{display:n,minimized:o,minWidth:r,name:t,color:l,style:i,classes:u,links:a,minimizable:f}}return function(e,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",Cn,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(n),(function(i,a){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{key:a,class:"tab",ref_for:!0,ref:"tab-".concat(a)},[0===a&&function(){return void 0!==(0,l.unref)(r)&&null!==(0,l.unref)(r)&&(0,l.unref)(r)[Symbol.for("!")]?(0,l.unref)(r)[Symbol.for("!")]():!(0,l.unref)(r)}()?((0,l.openBlock)(),(0,l.createBlock)(wn,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Bn,[(0,l.unref)(o).includes(i)?((0,l.openBlock)(),(0,l.createBlock)(v,(0,l.mergeProps)({key:0},t((0,l.unref)(u.layers)[i]),{index:a,tab:function(){var n;return null===(n=e.$refs["tab-".concat(a)])||void 0===n?void 0:n[0]}}),null,16,["index","tab"])):((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(i),{key:1,index:a},null,8,["index"]))]),function(){return void 0!==a&&null!==a&&a[Symbol.for("!==")]?a[Symbol.for("!==")]((0,l.unref)(n).length-1):a!==(0,l.unref)(n).length-1}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",En)):(0,l.createCommentVNode)("",!0)])})),128))])}}});const In=(0,y.Z)(Pn,[["__scopeId","data-v-6bcb9872"]]);var Tn=In,Fn=o(4064),Dn=function(e){return(0,l.pushScopeId)("data-v-364b55bc"),e=e(),(0,l.popScopeId)(),e},Rn={class:"game-over-modal-header"},On=["src","alt"],_n={class:"game-over-modal-title"},jn=Dn((function(){return(0,l.createElementVNode)("h2",null,"Congratulations!",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Un={key:0},An=Dn((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),qn=Dn((function(){return(0,l.createElementVNode)("div",null," Please check the Discord to discuss the game or to check for new content updates! ",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ln=Dn((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),zn=["href"],Wn=Dn((function(){return(0,l.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Gn=(0,l.defineComponent)({setup:function(e){var n=i.title,o=i.logo,r=i.discordName,t=i.discordLink,u=i.versionNumber,f=i.versionTitle,c=(0,l.computed)((function(){return(0,Z.mr)(a.Z.timePlayed)})),s=(0,l.computed)((function(){return Fn.hasWon.value&&function(){return void 0!==a.Z.keepGoing&&null!==a.Z.keepGoing&&a.Z.keepGoing[Symbol.for("!")]?a.Z.keepGoing[Symbol.for("!")]():!a.Z.keepGoing}()})),m=(0,l.toRef)(a.Z,"autosave");function d(){a.Z.keepGoing=!0}function y(){(0,oe.uW)((0,oe.xM)())}return function(e,i){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{"model-value":(0,l.unref)(s)},{header:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",Rn,[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,l.unref)(o),alt:(0,l.unref)(n)},null,8,On)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",_n,[jn,(0,l.createElementVNode)("h4",null,function(){return"You've beaten "+(0,l.toDisplayString)((0,l.unref)(n))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "!==void 0&&"You've beaten "+(0,l.toDisplayString)((0,l.unref)(n))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "!==null&&("You've beaten "+(0,l.toDisplayString)((0,l.unref)(n))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": ")[Symbol.for("+")]?("You've beaten "+(0,l.toDisplayString)((0,l.unref)(n))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"You've beaten "+(0,l.toDisplayString)((0,l.unref)(n))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "+(0,l.toDisplayString)((0,l.unref)(f))}(),1)])])]})),body:(0,l.withCtx)((function(e){var n=e.shown;return[n?((0,l.openBlock)(),(0,l.createElementBlock)("div",Un,[(0,l.createElementVNode)("div",null,function(){return"It took you "+(0,l.toDisplayString)((0,l.unref)(c))!==void 0&&"It took you "+(0,l.toDisplayString)((0,l.unref)(c))!==null&&("It took you "+(0,l.toDisplayString)((0,l.unref)(c)))[Symbol.for("+")]?("It took you "+(0,l.toDisplayString)((0,l.unref)(c)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,l.toDisplayString)((0,l.unref)(c))+" to beat the game."}(),1),An,qn,Ln,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(t),class:"game-over-modal-discord-link"},[Wn,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r))):" "+(0,l.toDisplayString)((0,l.unref)(r))}(),1)],8,zn)]),(0,l.createVNode)(W.Z,{title:"Autosave",modelValue:(0,l.unref)(m),"onUpdate:modelValue":i[0]||(i[0]=function(e){return(0,l.isRef)(m)?m.value=e:null})},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",{class:"game-over-footer"},[(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Keep Going"),(0,l.createElementVNode)("button",{onClick:y,class:"button danger"},"Play Again")])]})),_:1},8,["model-value"])}}});const Hn=(0,y.Z)(Gn,[["__scopeId","data-v-364b55bc"]]);var Yn=Hn,Jn=(o(9600),o(3032)),Xn=function(e){return(0,l.pushScopeId)("data-v-66a04520"),e=e(),(0,l.popScopeId)(),e},Qn=Xn((function(){return(0,l.createElementVNode)("div",{class:"nan-modal-header"},[(0,l.createElementVNode)("h2",null,"NaN value detected!")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Kn={key:0},$n=Xn((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),eo=["href"],no=Xn((function(){return(0,l.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),oo=Xn((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ro={class:"nan-footer"},to=(0,l.defineComponent)({setup:function(e){var n=i.discordName,o=i.discordLink,r=(0,l.toRef)(a.Z,"autosave"),t=(0,l.toRef)(Jn.Z,"hasNaN"),u=(0,l.ref)(null),f=(0,l.computed)((function(){var e;return null===(e=Jn.Z.NaNPath)||void 0===e?void 0:e.join(".")})),c=(0,l.computed)((function(){var e;return null===(e=Jn.Z.NaNPath)||void 0===e?void 0:e.slice(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())[0]})),s=(0,l.computed)((function(){return Jn.Z.NaNReceiver&&c.value?Jn.Z.NaNReceiver[c.value]:null})),m=(0,l.computed)({get:function(){return 0===a.Z.devSpeed},set:function(e){a.Z.devSpeed=e?null:0}});function d(){Jn.Z.NaNReceiver&&c.value&&(Jn.Z.NaNReceiver[c.value]=new Z.ZP(0),Jn.Z.hasNaN=!1)}function y(){Jn.Z.NaNReceiver&&c.value&&(Jn.Z.NaNReceiver[c.value]=new Z.ZP(1),Jn.Z.hasNaN=!1)}function b(){Jn.Z.NaNReceiver&&c.value&&(Jn.Z.NaNReceiver[c.value]=new Z.ZP(NaN),Jn.Z.hasNaN=!1)}return function(e,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(S.Z,(0,l.mergeProps)({modelValue:(0,l.unref)(t),"onUpdate:modelValue":i[4]||(i[4]=function(e){return(0,l.isRef)(t)?t.value=e:null})},e.$attrs),{header:(0,l.withCtx)((function(){return[Qn]})),body:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",null,[(0,l.createTextVNode)(function(){return' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))!==void 0&&' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))!==null&&(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f)))[Symbol.for("+")]?(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))+'" to NaN'}(),1),(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Kn,function(){return(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))!==void 0&&(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))!==null&&((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s))))[Symbol.for("+")]?((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s))))[Symbol.for("+")](")"):(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))+")"}(),1)):(0,l.createCommentVNode)("",!0),(0,l.createTextVNode)(function(){return". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"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)(r)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. "}(),1)]),$n,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(o),class:"nan-modal-discord-link"},[no,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(n))):" "+(0,l.toDisplayString)((0,l.unref)(n))}(),1)],8,eo)]),oo,(0,l.createVNode)(W.Z,{title:"Autosave",modelValue:(0,l.unref)(r),"onUpdate:modelValue":i[0]||(i[0]=function(e){return(0,l.isRef)(r)?r.value=e:null})},null,8,["modelValue"]),(0,l.createVNode)(W.Z,{title:"Pause game",modelValue:(0,l.unref)(m),"onUpdate:modelValue":i[1]||(i[1]=function(e){return(0,l.isRef)(m)?m.value=e:null})},null,8,["modelValue"])]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",ro,[(0,l.createElementVNode)("button",{onClick:i[2]||(i[2]=function(e){var n;return null===(n=u.value)||void 0===n?void 0:n.open()}),class:"button"},"Open Saves Manager"),(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Set to 0"),(0,l.createElementVNode)("button",{onClick:y,class:"button"},"Set to 1"),(0,l.unref)(s)&&(0,l.unref)(Z.ZP).neq((0,l.unref)(s),0)&&(0,l.unref)(Z.ZP).neq((0,l.unref)(s),1)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:i[3]||(i[3]=function(e){return t.value=!1}),class:"button"}," Set to previous ")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:b,class:"button danger"},"Ignore")])]})),_:1},16,["modelValue"]),(0,l.createVNode)(Qe,{ref_key:"savesManager",ref:u},null,512)],64)}}});const lo=(0,y.Z)(to,[["__scopeId","data-v-66a04520"]]);var io=lo,uo=(o(86),{key:0,class:"tpsDisplay"}),ao={key:0,class:"low"},fo=(0,l.defineComponent)({setup:function(e){var n=(0,l.computed)((function(){return Z.ZP.div(Jn.Z.lastTenTicks.length,Jn.Z.lastTenTicks.reduce((function(e,n){return function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](n):e+n}()}),0))})),o=(0,l.ref)([]);(0,l.watchEffect)((function(){o.value.push(Math.round(n.value.toNumber())),function(){return void 0!==o.value.length&&null!==o.value.length&&o.value.length[Symbol.for(">")]?o.value.length[Symbol.for(">")](10):o.value.length>10}()&&(o.value=o.value.slice(1))}));var r=(0,l.computed)((function(){return o.value.reduce((function(e,n){return Z.ZP.max(e,n)}),0)})),t=(0,l.computed)((function(){return Z.ZP.sub(n.value,r.value).gt(1)}));return function(e,o){return function(){return void 0!==(0,l.unref)(n).isNan()&&null!==(0,l.unref)(n).isNan()&&(0,l.unref)(n).isNan()[Symbol.for("!")]?(0,l.unref)(n).isNan()[Symbol.for("!")]():!(0,l.unref)(n).isNan()}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",uo,[(0,l.createTextVNode)(function(){return" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(n)))!==void 0&&" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(n)))!==null&&(" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(n))))[Symbol.for("+")]?(" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(n))))[Symbol.for("+")](" "):" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(n)))+" "}(),1),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((function(){return[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("span",ao,(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(r))),1)):(0,l.createCommentVNode)("",!0)]})),_:1})])):(0,l.createCommentVNode)("",!0)}}});const co=(0,y.Z)(fo,[["__scopeId","data-v-323f9b12"]]);var so=co,mo=(0,l.defineComponent)({setup:function(e){function n(){}var o=i.useHeader,r=(0,l.computed)((function(){return q.Z[L.ZP.theme].variables})),t=(0,l.toRef)(L.ZP,"showTPS");return function(e,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",{id:"modal-root",style:(0,l.normalizeStyle)((0,l.unref)(r))},null,4),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["app",{useHeader:(0,l.unref)(o)}]),onMousemove:n,style:(0,l.normalizeStyle)((0,l.unref)(r))},[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createBlock)(wn,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Tn),(0,l.unref)((0,l.unref)(t))?((0,l.openBlock)(),(0,l.createBlock)(so,{key:1})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Yn),(0,l.createVNode)(io)],38)],64)}}});const yo=(0,y.Z)(mo,[["__scopeId","data-v-e0e491f6"]]);var bo=yo;requestAnimationFrame((0,t.Z)(regeneratorRuntime.mark((function e(){var n,t,u,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 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;"),e.next=3,(0,oe.zD)();case 3:return e.next=5,o(7302);case 5:n=e.sent,t=n.globalBus,u=n.startGameLoop,a=window.vue=(0,l.createApp)((0,r.Z)({},bo)),t.emit("setupVue",a),a.mount("#app"),document.title=i.title,u();case 13:case"end":return e.stop()}}),e)})))),window.modInfo=i},9706:function(e,n,o){"use strict";o.d(n,{WU:function(){return u},Ht:function(){return a},mr:function(){return f}});var r=o(3243),t=r.m6,l=r.Qv,i=r.hm,u=r.WU,a=r.Ht,f=r.mr,c=r.FP,s=r.T3,m=r.Hv;window.Decimal=r.ZP,window.exponentialFormat=t,window.commaFormat=l,window.regularFormat=i,window.format=u,window.formatWhole=a,window.formatTime=f,window.toPlaces=c,window.formatSmall=s,window.invertOOM=m,n["ZP"]=r.ZP},3243:function(e,n,o){"use strict";o.d(n,{m6:function(){return i},Qv:function(){return u},hm:function(){return a},WU:function(){return g},Ht:function(){return p},mr:function(){return h},FP:function(){return N},T3:function(){return k},Hv:function(){return V}});o(2526),o(1817),o(1539),o(6977),o(4916),o(3123),o(5306),o(9653),o(86);var r=o(1008),t=o(2345);n["ZP"]=r.Z;var l=new r.Z(1);function i(e,n){var o=arguments,i=!function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()||!function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()||arguments[2],a=r.Z.log10(e).floor(),f=r.Z.div(e,r.Z.pow(10,a));"10"===f.toStringWithDecimalPlaces(n)&&(f=l,a=a.add(1));var c=a.gte(1e9)?g(a,Math.max(Math.max(n,3),t.defaultDecimalsShown)):a.gte(1e4)?u(a,0):a.toStringWithDecimalPlaces(0);return i?function(){return f.toStringWithDecimalPlaces(n)+"e"!==void 0&&f.toStringWithDecimalPlaces(n)+"e"!==null&&(f.toStringWithDecimalPlaces(n)+"e")[Symbol.for("+")]?(f.toStringWithDecimalPlaces(n)+"e")[Symbol.for("+")](c):f.toStringWithDecimalPlaces(n)+"e"+c}():function(){return"e"[Symbol.for("+")]?"e"[Symbol.for("+")](c):"e"+c}()}function u(e,n){if(null===e||void 0===e)return"NaN";if(e=new r.Z(e),function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.001):e.mag<.001}())return(0).toFixed(n);var o=e.toStringWithDecimalPlaces(n),t=o.split(".");return t[0]=t[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for("==")]?t.length[Symbol.for("==")](1):1==t.length}()?t[0]:function(){return t[0]+"."!==void 0&&t[0]+"."!==null&&(t[0]+".")[Symbol.for("+")]?(t[0]+".")[Symbol.for("+")](t[1]):t[0]+"."+t[1]}()}function a(e,n){return null===e||void 0===e?"NaN":(e=new r.Z(e),function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e-4):e.mag<1e-4}()?(0).toFixed(n):(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.1):e.mag<.1}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](0):0!==n}()&&(n=Math.max(Math.max(n,4),t.defaultDecimalsShown)),e.toStringWithDecimalPlaces(n)))}var f=new r.Z("eeee1000"),c=new r.Z("e100000"),s=new r.Z("e1000"),m=new r.Z(1e9),d=new r.Z(1e6),y=new r.Z(1e3),b=new r.Z(.98),v=new r.Z(.001),S=new r.Z(0);function g(e,n,o){if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&(n=t.defaultDecimalsShown),o=o||t.allowSmall,e=new r.Z(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0}())return function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](g(e.neg(),n)):"-"+g(e.neg(),n)}();if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(f)){var l=e.slog();return l.gte(d)?function(){return"F"[Symbol.for("+")]?"F"[Symbol.for("+")](g(l.floor())):"F"+g(l.floor())}():function(){return r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](u(l.floor(),0)):r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"+u(l.floor(),0)}()}if(e.gte(c))return i(e,0,!1);if(e.gte(s))return i(e,0);if(e.gte(m))return i(e,n);if(e.gte(y))return u(e,0);if(e.gte(v)||function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}())return a(e,n);if(e.eq(S))return(0).toFixed(n);if(e=V(e),e.lt(s)){var b=i(e,n);return b.replace(/([^(?:e|F)]*)$/,"-$1")}return function(){return void 0!==g(e,n)&&null!==g(e,n)&&g(e,n)[Symbol.for("+")]?g(e,n)[Symbol.for("+")]("⁻¹"):g(e,n)+"⁻¹"}()}function p(e){return e=new r.Z(e),function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0}()?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](p(e.neg())):"-"+p(e.neg())}():e.gte(m)||e.lte(b)&&function(){return void 0!==e.eq(S)&&null!==e.eq(S)&&e.eq(S)[Symbol.for("!")]?e.eq(S)[Symbol.for("!")]():!e.eq(S)}()?g(e):g(e,0)}function h(e){return r.Z.lt(e,0)?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](h(r.Z.neg(e))):"-"+h(r.Z.neg(e))}():r.Z.gt(e,function(){return 2[Symbol.for("**")]?2[Symbol.for("**")](51):Math.pow(2,51)}())?function(){return void 0!==g(r.Z.div(e,31536e3))&&null!==g(r.Z.div(e,31536e3))&&g(r.Z.div(e,31536e3))[Symbol.for("+")]?g(r.Z.div(e,31536e3))[Symbol.for("+")]("y"):g(r.Z.div(e,31536e3))+"y"}():(e=new r.Z(e).toNumber(),function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](60):e<60}()?function(){return void 0!==g(e)&&null!==g(e)&&g(e)[Symbol.for("+")]?g(e)[Symbol.for("+")]("s"):g(e)+"s"}():function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](3600):e<3600}()?function(){return p(Math.floor(e/60))+"m "+g(e%60)!==void 0&&p(Math.floor(e/60))+"m "+g(e%60)!==null&&(p(Math.floor(e/60))+"m "+g(e%60))[Symbol.for("+")]?(p(Math.floor(e/60))+"m "+g(e%60))[Symbol.for("+")]("s"):p(Math.floor(e/60))+"m "+g(e%60)+"s"}():function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](86400):e<86400}()?function(){return p(Math.floor(e/3600))+"h "+p(Math.floor(e/60)%60)+"m "+p(e%60)!==void 0&&p(Math.floor(e/3600))+"h "+p(Math.floor(e/60)%60)+"m "+p(e%60)!==null&&(p(Math.floor(e/3600))+"h "+p(Math.floor(e/60)%60)+"m "+p(e%60))[Symbol.for("+")]?(p(Math.floor(e/3600))+"h "+p(Math.floor(e/60)%60)+"m "+p(e%60))[Symbol.for("+")]("s"):p(Math.floor(e/3600))+"h "+p(Math.floor(e/60)%60)+"m "+p(e%60)+"s"}():function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](31536e3):e<31536e3}()?function(){return p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)+"h "+p(Math.floor(e/60)%60)!==void 0&&p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)+"h "+p(Math.floor(e/60)%60)!==null&&(p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)+"h "+p(Math.floor(e/60)%60))[Symbol.for("+")]?(p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)+"h "+p(Math.floor(e/60)%60))[Symbol.for("+")]("m"):p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)+"h "+p(Math.floor(e/60)%60)+"m"}():function(){return p(Math.floor(e/31536e3))+"y "+p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)!==void 0&&p(Math.floor(e/31536e3))+"y "+p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)!==null&&(p(Math.floor(e/31536e3))+"y "+p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24))[Symbol.for("+")]?(p(Math.floor(e/31536e3))+"y "+p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24))[Symbol.for("+")]("h"):p(Math.floor(e/31536e3))+"y "+p(Math.floor(e/84600)%365)+"d "+p(Math.floor(e/3600)%24)+"h"}())}function N(e,n,o){e=new r.Z(e);var t=e.toStringWithDecimalPlaces(n);return new r.Z(t).gte(o)&&(t=r.Z.sub(o,Math.pow(.1,n)).toStringWithDecimalPlaces(n)),t}function k(e,n){return g(e,n,!0)}function V(e){var n=r.Z.log10(e).ceil(),o=r.Z.div(e,r.Z.pow(10,n));return n=n.neg(),e=new r.Z(10).pow(n).times(o),e}},1349:function(e,n,o){"use strict";o.d(n,{IJ:function(){return r},PO:function(){return t},mf:function(){return l}});o(4916),o(5306),o(2526),o(1817),o(1539),o(7042);function r(e){var n=e.replace(/([A-Z])/g," $1");return n=function(){return void 0!==n.charAt(0).toUpperCase()&&null!==n.charAt(0).toUpperCase()&&n.charAt(0).toUpperCase()[Symbol.for("+")]?n.charAt(0).toUpperCase()[Symbol.for("+")](n.slice(1)):n.charAt(0).toUpperCase()+n.slice(1)}(),n}function t(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"function"===typeof e}},9583:function(e,n,o){"use strict";o.d(n,{mM:function(){return l},yB:function(){return i}});o(2526),o(1817),o(1539);var r=o(4865),t=o(1349),l=Symbol("DoNotCache");function i(e,n){var o=e[n];(0,t.mf)(o)&&0===o.length&&function(){return void 0!==o[l]&&null!==o[l]&&o[l][Symbol.for("!")]?o[l][Symbol.for("!")]():!o[l]}()&&(e[n]=(0,r.computed)(o.bind(e)))}},3273:function(e,n,o){"use strict";o.d(n,{Le:function(){return r},c4:function(){return t},z2:function(){return l}});o(2526),o(1817),o(1539),o(1037),o(1299),o(7556),o(5003);var r=Symbol("ProxyState"),t=Symbol("ProxyPath");function l(e){var n={},o=!1;function t(){return function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}()&&(Object.assign(n,e()),o=!0),n}return new Proxy(n,{get:function(e,n){return n===r?t():t()[n]},set:function(){return console.error("Layers and features are shallow readonly"),!1},has:function(e,n){return n===r||Reflect.has(t(),n)},ownKeys:function(){return Reflect.ownKeys(t())},getOwnPropertyDescriptor:function(r,t){return function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}()&&(Object.assign(n,e()),o=!0),Object.getOwnPropertyDescriptor(r,t)}})}},463:function(e,n,o){"use strict";o.d(n,{a1:function(){return s},zD:function(){return m},xM:function(){return y},QI:function(){return b},uW:function(){return v},y6:function(){return g}});var r=o(3336),t=o(8534),l=(o(5666),o(2526),o(1817),o(1539),o(7042),o(2222),o(8783),o(3948),o(4747),o(2345)),i=o(5967),u=o(9266),a=o(9706),f=o(3273);function c(){var e=arguments,n=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:{};return Object.assign({id:"".concat(l.id,"-0"),name:"Default Save",tabs:l.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:new a.ZP(0),timePlayed:new a.ZP(0),keepGoing:!1,modID:l.id,modVersion:l.versionNumber,layers:{}},n)}function s(){var e=btoa(unescape(encodeURIComponent((0,i.U)(i.Z[f.Le]))));return localStorage.setItem(i.Z.id,e),e}function m(){return d.apply(this,arguments)}function d(){return d=(0,t.Z)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if((0,u.ri)(),e.prev=1,n=localStorage.getItem(u.ZP.active),function(){return void 0!==function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&null!==function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()[Symbol.for("!")]?function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()[Symbol.for("!")]():!function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()}()){e.next=7;break}return e.next=6,v(y());case 6:return e.abrupt("return");case 7:if(o=JSON.parse(decodeURIComponent(escape(atob(n)))),function(){return void 0!==function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()&&null!==function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()&&function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()[Symbol.for("!")]?function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()[Symbol.for("!")]():!function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()}()){e.next=12;break}return e.next=11,v(y());case 11:return e.abrupt("return");case 12:return o.id=u.ZP.active,e.next=15,v(o);case 15:e.next=22;break;case 17:return e.prev=17,e.t0=e["catch"](1),console.error("Failed to load save. Falling back to new save.\n",e.t0),e.next=22,v(y());case 22:case"end":return e.stop()}}),e,null,[[1,17]])}))),d.apply(this,arguments)}function y(){var e=b(),n=c({id:e});return localStorage.setItem(e,btoa(unescape(encodeURIComponent((0,i.U)(n))))),u.ZP.saves.push(e),n}function b(){var e,n=0;do{e="".concat(l.id,"-").concat(function(){return void 0!==n&&null!==n&&"object"===(0,r.Z)(n)&&n[Symbol.for("postfix-increment")]?n[Symbol.for("postfix-increment")]():n++}())}while(localStorage.getItem(e));return e}function v(e){return S.apply(this,arguments)}function S(){return S=(0,t.Z)(regeneratorRuntime.mark((function e(n){var r,t,f,s,m,d,y,b;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.info("Loading save",n),e.next=3,Promise.resolve().then(o.bind(o,9365));case 3:return r=e.sent,t=r.layers,f=r.removeLayer,s=r.addLayer,e.next=9,Promise.resolve().then(o.bind(o,4064));case 9:for(b in m=e.sent,d=m.fixOldSave,y=m.getInitialLayers,t)f(t[b]);y(n).forEach((function(e){return s(e,n)})),n=c(n),n.offlineProd&&n.time&&(function(){return void 0!==n.offlineTime&&null!==n.offlineTime&&n.offlineTime[Symbol.for("==")]?n.offlineTime[Symbol.for("==")](void 0):void 0==n.offlineTime}()&&(n.offlineTime=new a.ZP(0)),n.offlineTime=a.ZP.add(n.offlineTime,function(){return Date.now()-n.time!==void 0&&Date.now()-n.time!==null&&(Date.now()-n.time)[Symbol.for("/")]?(Date.now()-n.time)[Symbol.for("/")](1e3):(Date.now()-n.time)/1e3}())),n.time=Date.now(),function(){return void 0!==n.modVersion&&null!==n.modVersion&&n.modVersion[Symbol.for("!==")]?n.modVersion[Symbol.for("!==")](l.versionNumber):n.modVersion!==l.versionNumber}()&&d(n.modVersion,n),Object.assign(i.Z,n),u.ZP.active=i.Z.id;case 20:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}setInterval((function(){i.Z.autosave&&s()}),1e3),window.onbeforeunload=function(){i.Z.autosave&&s()},window.save=s;var g=window.hardReset=(0,t.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v(y());case 2:case"end":return e.stop()}}),e)})))},4064:function(e,n,o){"use strict";o.r(n),o.d(n,{fixOldSave:function(){return Yo},getInitialLayers:function(){return Go},hasWon:function(){return Ho},main:function(){return Wo}});var r=o(4865),t=(o(2526),o(1817),o(1539),function(e){return(0,r.pushScopeId)("data-v-07150322"),e=e(),(0,r.popScopeId)(),e}),l=t((function(){return(0,r.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,r.createElementVNode)("g",{id:"P"},[(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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"})])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())}));function i(e,n){return(0,r.openBlock)(),(0,r.createBlock)(r.Transition,{appear:""},{default:(0,r.withCtx)((function(){return[l]})),_:1})}var u=o(3744);const a={},f=(0,u.Z)(a,[["render",i],["__scopeId","data-v-07150322"]]);var c=f,s=(0,r.defineComponent)({props:{width:{default:"8px"},height:{default:"17px"}},setup:function(e){return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{style:(0,r.normalizeStyle)({width:e.width,height:e.height})},null,4)}}});const m=s;var d=m,y=o(6113),b=o(3336),v=(o(7268),o(86),o(9706)),S=o(7302),g=o(4061);function p(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:"points",r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](2):n.length>2}()&&function(){return void 0!==n[2]&&null!==n[2]&&n[2][Symbol.for("!==")]?n[2][Symbol.for("!==")](void 0):void 0!==n[2]}()?arguments[2]:0,t=!(!function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](3):n.length>3}()||!function(){return void 0!==n[3]&&null!==n[3]&&n[3][Symbol.for("!==")]?n[3][Symbol.for("!==")](void 0):void 0!==n[3]}())&&arguments[3],l=(0,g.ax)(e);return l.displayName=o,l.precision=r,l.small=t,l}function h(e){var n=(0,g.ax)(e.value);return(0,r.watch)(e,(function(e){v.ZP.gt(e,n.value)&&(n.value=e)})),n}function N(e){var n=(0,g.ax)(e.value);return(0,r.watch)(e,(function(e,o){v.ZP.gt(e,o)&&(n.value=v.ZP.add(n.value,v.ZP.sub(e,o)))})),n}function k(e,n){var o=(0,r.ref)(0),t=(0,r.ref)(0),l=(0,r.ref)(0);S.globalBus.on("update",(function(n){if(t.value=0,v.ZP.lte(e.value,1e100))l.value=e.value;else{var r=e.value,i=l.value;if(l.value=r,v.ZP.gt(r,i))if(v.ZP.gte(r,"10^^8"))r=v.ZP.slog(r,1e10),i=v.ZP.slog(i,1e10),o.value=r.sub(i).div(n),t.value=function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}();else while(v.ZP.div(r,i).log(10).div(n).gte("100")&&function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("<=")]?t.value[Symbol.for("<=")](5):t.value<=5}()&&v.ZP.gt(i,0))r=v.ZP.log10(r),i=v.ZP.log10(i),o.value=r.sub(i).div(n),function(){void 0!==t.value&&null!==t.value&&"object"===(0,b.Z)(t.value)&&t.value[Symbol.for("postfix-increment")]?t.value[Symbol.for("postfix-increment")]():t.value++}()}}));var i=(0,r.computed)((function(){return 0===t.value?n?function(){return(0,v.WU)(n.value,e.precision,e.small)+" "+e.displayName!==void 0&&(0,v.WU)(n.value,e.precision,e.small)+" "+e.displayName!==null&&((0,v.WU)(n.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]?((0,v.WU)(n.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]("/s"):(0,v.WU)(n.value,e.precision,e.small)+" "+e.displayName+"/s"}():"":function(){return(0,v.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==void 0&&(0,v.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==null&&((0,v.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]?((0,v.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]("s/sec"):(0,v.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)+"s/sec"}()}));return i}function V(e,n){var o=function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](null):null!==n}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](void 0):void 0!==n}()?n:e.value;return v.ZP.eq(e.precision,0)?(0,v.Ht)(o):(0,v.WU)(o,e.precision,e.small)}var Z=o(9584),M=(o(4553),o(6699),o(2023),o(4747),o(7327),o(1249),o(2222),{key:0,class:"left-side-nodes"}),x={key:1,class:"side-nodes"};function w(e,n,o,t,l,i){var u=(0,r.resolveComponent)("TreeNode");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.unref(e.nodes),(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("span",(0,r.mergeProps)({class:"row",key:o},e.$attrs),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n,(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},e.gatherNodeProps(n),{"force-tooltip":n.forceTooltip}),null,16,["force-tooltip"])})),128))],16)})),128)),e.unref(e.leftSideNodes)?((0,r.openBlock)(),(0,r.createElementBlock)("span",M,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.unref(e.leftSideNodes),(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},e.gatherNodeProps(n),{"force-tooltip":n.forceTooltip,small:""}),null,16,["force-tooltip"])})),128))])):(0,r.createCommentVNode)("",!0),e.unref(e.rightSideNodes)?((0,r.openBlock)(),(0,r.createElementBlock)("span",x,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.unref(e.rightSideNodes),(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},e.gatherNodeProps(n),{"force-tooltip":n.forceTooltip,small:""}),null,16,["force-tooltip"])})),128))])):(0,r.createCommentVNode)("",!0)],64)}var C=o(1604),B=o(5082),E=["disabled"];function P(e,n,o,t,l,i){var u=(0,r.resolveComponent)("MarkNode"),a=(0,r.resolveComponent)("LinkNode"),f=(0,r.resolveComponent)("Tooltip");return function(){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,r.openBlock)(),(0,r.createBlock)(f,(0,r.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:(0,B.Z)({treeNode:!0,can:e.unref(e.canClick),small:e.unref(e.small)},e.unref(e.classes))}),{default:(0,r.withCtx)((function(){var o;return[(0,r.createElementVNode)("button",{onClick:n[0]||(n[0]=function(){return e.click&&e.click.apply(e,arguments)}),onMousedown:n[1]||(n[1]=function(){return e.start&&e.start.apply(e,arguments)}),onMouseleave:n[2]||(n[2]=function(){return e.stop&&e.stop.apply(e,arguments)}),onMouseup:n[3]||(n[3]=function(){return e.stop&&e.stop.apply(e,arguments)}),onTouchstart:n[4]||(n[4]=function(){return e.start&&e.start.apply(e,arguments)}),onTouchend:n[5]||(n[5]=function(){return e.stop&&e.stop.apply(e,arguments)}),onTouchcancel:n[6]||(n[6]=function(){return e.stop&&e.stop.apply(e,arguments)}),style:(0,r.normalizeStyle)([{backgroundColor:e.unref(e.color),boxShadow:"-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ".concat(e.unref(e.glowColor))},function(){return void 0!==(o=e.unref(e.style))&&null!==(o=e.unref(e.style))&&(o=e.unref(e.style))[Symbol.for("!==")]?(o=e.unref(e.style))[Symbol.for("!==")](null):null!==(o=e.unref(e.style))}()&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](void 0):void 0!==o}()?o:[]]),disabled:function(){return 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,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.unref(e.comp))))],44,E),(0,r.createVNode)(u,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(a,{id:e.id},null,8,["id"])]})),_:1},16,["display","force","style","class"])):(0,r.createCommentVNode)("",!0)}o(9653);var I=o(6084),T=o(630),F=(0,r.defineComponent)({props:{id:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=(0,r.inject)(T.Z),l=(0,r.inject)(T.w),i=(0,r.ref)(null),u=(0,r.computed)((function(){return i.value&&i.value.parentElement}));return t&&l&&((0,r.watch)([u,o.id],(function(e,n){var o=(0,I.Z)(e,2),i=o[0],u=o[1],a=(0,I.Z)(n,2),f=a[0],c=a[1];f&&l((0,r.unref)(c)),i&&t(u,i)})),(0,r.onUnmounted)((function(){return l((0,r.unref)(o.id))}))),function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"branch",ref_key:"node",ref:i},null,512)}}});const D=(0,u.Z)(F,[["__scopeId","data-v-1318daf7"]]);var R=D,O={key:0},_={key:0,class:"mark star"},j=["src"],U=(0,r.defineComponent)({props:{mark:{type:[Boolean,String]}},setup:function(e){return function(n,o){return e.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",O,[!0===e.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",_)):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,class:"mark",src:e.mark},null,8,j))])):(0,r.createCommentVNode)("",!0)}}});const A=(0,u.Z)(U,[["__scopeId","data-v-c476c56a"]]);var q=A,L=o(5939);function z(e){var n=e.display,o=e.top,r=e.left,t=e.right,l=e.bottom,i=e.xoffset,u=e.yoffset,a=e.force;return{display:n,top:o,left:r,right:t,bottom:l,xoffset:i,yoffset:u,force:a}}var W=(0,r.defineComponent)({props:{display:(0,C.P5)(Object,String,Function),visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),tooltip:(0,C.P5)(Object,String,Function),onClick:Function,onHold:Function,color:(0,C.P5)(String),glowColor:(0,C.P5)(String),forceTooltip:{type:Object,required:!0},canClick:{type:(0,C.P5)(Boolean),required:!0},mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0},small:(0,C.P5)(Boolean)},components:{Tooltip:L.Z,MarkNode:q,LinkNode:R},setup:function(e){var n=(0,r.toRefs)(e),o=n.tooltip,t=n.forceTooltip,l=n.onClick,i=n.onHold,u=n.display;function a(e){var n;e.shiftKey&&o?t.value=function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value}():null===(n=(0,r.unref)(l))||void 0===n||n()}var f=(0,C.KO)(u),c=(0,r.shallowRef)(void 0);(0,r.watchEffect)((function(){var e=(0,C.Uv)(o);"object"===(0,b.Z)(e)&&function(){return void 0!==(0,C.RU)(e)&&null!==(0,C.RU)(e)&&(0,C.RU)(e)[Symbol.for("!")]?(0,C.RU)(e)[Symbol.for("!")]():!(0,C.RU)(e)}()?c.value=e.display:c.value=e}));var s=(0,r.computed)((function(){var e=(0,C.Uv)(o);return"object"===(0,b.Z)(e)&&function(){return void 0!==(0,C.RU)(e)&&null!==(0,C.RU)(e)&&(0,C.RU)(e)[Symbol.for("!")]?(0,C.RU)(e)[Symbol.for("!")]():!(0,C.RU)(e)}()?e:null})),m=(0,C.ix)(l,i),d=m.start,v=m.stop;return{click:a,start:d,stop:v,comp:f,tooltipDisplay:c,tooltipToBind:s,unref:r.unref,Visibility:y.EE,gatherTooltipProps:z,isCoercableComponent:C.RU}}});const G=(0,u.Z)(W,[["render",P],["__scopeId","data-v-176052a6"]]);var H=G,Y=(0,r.defineComponent)({props:{nodes:{type:(0,C.P5)(Array),required:!0},leftSideNodes:(0,C.P5)(Array),rightSideNodes:(0,C.P5)(Array)},components:{TreeNode:H},setup:function(){function e(e){var n=e.display,o=e.visibility,r=e.style,t=e.classes,l=e.tooltip,i=e.onClick,u=e.onHold,a=e.color,f=e.glowColor,c=e.forceTooltip,s=e.canClick,m=e.mark,d=e.id;return{display:n,visibility:o,style:r,classes:t,tooltip:l,onClick:i,onHold:u,color:a,glowColor:f,forceTooltip:c,canClick:s,mark:m,id:d}}return{gatherNodeProps:e,unref:r.unref}}});const J=(0,u.Z)(Y,[["render",w],["__scopeId","data-v-e6ef63ea"]]);var X=J,Q=(o(3243),o(9583)),K=o(3273),$=Symbol("TreeNode"),ee=Symbol("Tree");function ne(e){return(0,K.z2)((function(){var n=e();return n.id=(0,y.QI)("treeNode-"),n.type=$,n.tooltip?n.forceTooltip=(0,g.ax)(!1):n.forceTooltip=(0,r.ref)(!1),(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"canClick"),(0,y.Rh)(n,"canClick",!0),(0,Q.yB)(n,"color"),(0,Q.yB)(n,"display"),(0,Q.yB)(n,"tooltip"),(0,Q.yB)(n,"glowColor"),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"mark"),n}))}function oe(e){return(0,K.z2)((function(){var n=e();return n.id=(0,y.QI)("tree-"),n.type=ee,n[y.wA]=X,n.isResetting=(0,r.ref)(!1),n.resettingNode=(0,r.ref)(null),n.reset=function(e){var o,r,t=n;t.isResetting.value=!0,t.resettingNode.value=e,null===(o=t.resetPropagation)||void 0===o||o.call(t,t,e),null===(r=t.onReset)||void 0===r||r.call(t,e),t.isResetting.value=!1,t.resettingNode.value=null},n.links=(0,r.computed)((function(){var e,o=n;return function(){return void 0!==(e=(0,r.unref)(o.branches))&&null!==(e=(0,r.unref)(o.branches))&&(e=(0,r.unref)(o.branches))[Symbol.for("!==")]?(e=(0,r.unref)(o.branches))[Symbol.for("!==")](null):null!==(e=(0,r.unref)(o.branches))}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()?e:[]})),(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"nodes"),(0,Q.yB)(n,"leftSideNodes"),(0,Q.yB)(n,"rightSideNodes"),(0,Q.yB)(n,"branches"),n[y.tj]=function(){var e=this.nodes,n=this.leftSideNodes,o=this.rightSideNodes;return{nodes:e,leftSideNodes:n,rightSideNodes:o}},n}))}var re=function(e,n){var o=[n],t=[n];(function(){return void 0!==e.branches&&null!==e.branches&&e.branches[Symbol.for("!=")]?e.branches[Symbol.for("!=")](null):null!=e.branches})()&&function(){var n=(0,r.unref)(e.branches),l=function(){var e=[];t.forEach((function(r){n.filter((function(e){return e.startNode===r||e.endNode===r})).map((function(e){return e.startNode===r?e.endNode:e.startNode})).filter((function(e){return function(){return void 0!==o.includes(e)&&null!==o.includes(e)&&o.includes(e)[Symbol.for("!")]?o.includes(e)[Symbol.for("!")]():!o.includes(e)}()})).forEach((function(n){var o;(function(){return void 0!==e.includes(n)&&null!==e.includes(n)&&e.includes(n)[Symbol.for("!")]?e.includes(n)[Symbol.for("!")]():!e.includes(n)})()&&(e.push(n),null===(o=n.reset)||void 0===o||o.reset())}))})),t=e,o.push.apply(o,(0,Z.Z)(t))};while(function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for(">")]?t.length[Symbol.for(">")](0):t.length>0}())l()}()};var te=o(9365),le=o(5967),ie=o(2482),ue=(o(8862),o(274));function ae(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&"url(".concat(e.image,")")||""},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:[]]),class:(0,r.normalizeClass)((0,B.Z)({feature:!0,achievement:!0,locked:function(){return 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,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component),{key:0})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(f,{id:e.id},null,8,["id"])],6)):(0,r.createCommentVNode)("",!0)}var fe=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:(0,C.P5)(Object,String,Function),earned:{type:(0,C.P5)(Boolean),required:!0},image:(0,C.P5)(String),style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:R,MarkNode:q,Tooltip:L.Z},setup:function(e){var n=(0,r.toRefs)(e),o=n.display;return{component:(0,C.KO)(o),unref:r.unref,Visibility:y.EE}}});const ce=(0,u.Z)(fe,[["render",ae],["__scopeId","data-v-ac31d79a"]]);var se=ce,me=o(3002);o(343);function de(){var e=arguments,n=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()&&function(){return void 0!==e[0]&&null!==e[0]&&e[0][Symbol.for("!==")]?e[0][Symbol.for("!==")](void 0):void 0!==e[0]}()?arguments[0]:"white",o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"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 ".concat(o," ").concat(n),zIndex:1}}function ye(){return de("red","20px")}S.globalBus.on("setupVue",(function(e){return e.use(me.ZP)}));var be=Symbol("Achievement");function ve(e){return(0,K.z2)((function(){var n=e();return(0,g.Mv)(n,!1),n.id=(0,y.QI)("achievement-"),n.type=be,n[y.wA]=se,n.earned=n[g.n9],n.complete=function(){n[g.n9].value=!0},(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"shouldEarn"),(0,Q.yB)(n,"display"),(0,Q.yB)(n,"mark"),(0,Q.yB)(n,"image"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"classes"),n[y.tj]=function(){var e=this.visibility,n=this.display,o=this.earned,r=this.image,t=this.style,l=this.classes,i=this.mark,u=this.id;return{visibility:e,display:n,earned:o,image:r,style:t,classes:l,mark:i,id:u}},n}))}var Se=(0,me.pm)(),ge={};S.globalBus.on("addLayer",(function(e){var n=(0,y.bD)(e,be).filter((function(e){return function(){return void 0!==e.shouldEarn&&null!==e.shouldEarn&&e.shouldEarn[Symbol.for("!=")]?e.shouldEarn[Symbol.for("!=")](null):null!=e.shouldEarn}()}));n.length&&(ge[e.id]=e.on("postUpdate",(function(){n.forEach((function(e){var n;if((0,r.unref)(e.visibility)===y.EE.Visible&&function(){return void 0!==(0,r.unref)(e.earned)&&null!==(0,r.unref)(e.earned)&&(0,r.unref)(e.earned)[Symbol.for("!")]?(0,r.unref)(e.earned)[Symbol.for("!")]():!(0,r.unref)(e.earned)}()&&(0,r.unref)(e.shouldEarn)&&(e[g.n9].value=!0,null===(n=e.onComplete)||void 0===n||n.call(e),e.display)){var o=(0,C.MM)((0,r.unref)(e.display));Se.info((0,r.createVNode)("div",null,[(0,r.createVNode)("h3",null,[(0,r.createTextVNode)("Achievement earned!")]),(0,r.createVNode)("div",null,[(0,r.createVNode)(o,null,null)])]))}}))})))})),S.globalBus.on("removeLayer",(function(e){var n;null===(n=ge[e.id])||void 0===n||n.call(ge),ge[e.id]=void 0}));o(9714),o(7042);function pe(e,n,o,t,l,i){var u=(0,r.resolveComponent)("GridCell");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.unref(e.rows),(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["row",{mergeAdjacent:e.mergeAdjacent}]),key:n},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.unref(e.cols),(function(o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},e.gatherCellProps(e.unref(e.cells)[function(){return 100*n!==void 0&&100*n!==null&&(100*n)[Symbol.for("+")]?(100*n)[Symbol.for("+")](o):100*n+o}()])),null,16)})),128))],2)})),128))],4)):(0,r.createCommentVNode)("",!0)}var he=o(5679),Ne=o(9266),ke=["disabled"],Ve={key:0};function Ze(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:(0,r.normalizeClass)({feature:!0,tile:!0,can:e.unref(e.canClick),locked:function(){return 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,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}]),onClick:n[0]||(n[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)}),onMousedown:n[1]||(n[1]=function(){return e.start&&e.start.apply(e,arguments)}),onMouseleave:n[2]||(n[2]=function(){return e.stop&&e.stop.apply(e,arguments)}),onMouseup:n[3]||(n[3]=function(){return e.stop&&e.stop.apply(e,arguments)}),onTouchstart:n[4]||(n[4]=function(){return e.start&&e.start.apply(e,arguments)}),onTouchend:n[5]||(n[5]=function(){return e.stop&&e.stop.apply(e,arguments)}),onTouchcancel:n[6]||(n[6]=function(){return e.stop&&e.stop.apply(e,arguments)}),disabled:function(){return 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,r.openBlock)(),(0,r.createElementBlock)("div",Ve,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.titleComponent)))])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component),{style:{"white-space":"pre-line"}})),(0,r.createVNode)(a,{id:e.id},null,8,["id"])],46,ke)):(0,r.createCommentVNode)("",!0)}var Me=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},onClick:Function,onHold:Function,display:{type:(0,C.P5)(Object,String,Function),required:!0},title:(0,C.P5)(Object,String,Function),style:(0,C.P5)(String,Object,Array),canClick:{type:(0,C.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{LinkNode:R},setup:function(e){var n=(0,r.toRefs)(e),o=n.onClick,t=n.onHold,l=n.title,i=n.display,u=(0,C.ix)(o,t),a=u.start,f=u.stop,c=(0,C.KO)(l),s=(0,C.vq)(i);return{start:a,stop:f,titleComponent:c,component:s,Visibility:y.EE,unref:r.unref}}});const xe=(0,u.Z)(Me,[["render",Ze],["__scopeId","data-v-bdb02c70"]]);var we=xe,Ce=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},rows:{type:(0,C.P5)(Number),required:!0},cols:{type:(0,C.P5)(Number),required:!0},cells:{type:(0,C.P5)(Object),required:!0}},components:{GridCell:we},setup:function(){var e=(0,r.computed)((function(){return he.Z[Ne.ZP.theme].mergeAdjacent}));function n(e){var n=e.visibility,o=e.onClick,r=e.onHold,t=e.display,l=e.title,i=e.style,u=e.canClick,a=e.id;return{visibility:n,onClick:o,onHold:r,display:t,title:l,style:i,canClick:u,id:a}}return{unref:r.unref,gatherCellProps:n,Visibility:y.EE,mergeAdjacent:e}}});const Be=(0,u.Z)(Ce,[["render",pe]]);var Ee=Be,Pe=o(1349);Symbol("Grid");function Ie(e){return new Proxy({},Te(e))}function Te(e){var n=(0,r.computed)((function(){for(var n=[],o=1;function(){return void 0!==o&&null!==o&&o[Symbol.for("<=")]?o[Symbol.for("<=")]((0,r.unref)(e.rows)):o<=(0,r.unref)(e.rows)}();function(){return void 0!==o&&null!==o&&"object"===(0,b.Z)(o)&&o[Symbol.for("postfix-increment")]?o[Symbol.for("postfix-increment")]():o++}())for(var t=1;function(){return void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")]((0,r.unref)(e.cols)):t<=(0,r.unref)(e.cols)}();function(){return void 0!==t&&null!==t&&"object"===(0,b.Z)(t)&&t[Symbol.for("postfix-increment")]?t[Symbol.for("postfix-increment")]():t++}())n.push(function(){return 100*o!==void 0&&100*o!==null&&(100*o)[Symbol.for("+")]?(100*o)[Symbol.for("+")](t):100*o+t}().toString());return n}));return{get:function(o,r){return"isProxy"===r||("symbol"===(0,b.Z)(r)?e[r]:function(){return void 0!==n.value.includes(r.toString())&&null!==n.value.includes(r.toString())&&n.value.includes(r.toString())[Symbol.for("!")]?n.value.includes(r.toString())[Symbol.for("!")]():!n.value.includes(r.toString())}()?void 0:(function(){return void 0!==o[r]&&null!==o[r]&&o[r][Symbol.for("==")]?o[r][Symbol.for("==")](null):null==o[r]}()&&(o[r]=new Proxy(e,Fe(r.toString()))),o[r]))},set:function(e,n,o){return console.warn("Cannot set grid cells",e,n,o),!1},ownKeys:function(){return n.value},has:function(e,o){return n.value.includes(o.toString())},getOwnPropertyDescriptor:function(e,o){if(n.value.includes(o.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function Fe(e){var n=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],o={};return{get:function(n,t,l){if("isProxy"===t)return!0;var i=n[t];return(0,Pe.mf)(i)?function(){return i.call(l,e,n.getState(e))}:function(){return void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i}()||"symbol"===(0,b.Z)(t)?i:(t=function(){return 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)}(),"startState"===t?i.call(l,e):(i=n["get".concat(t)],(0,Pe.mf)(i)?(function(){return t in o!==void 0&&t in o!==null&&(t in o)[Symbol.for("!")]?(t in o)[Symbol.for("!")]():!(t in o)}()&&(o[t]=(0,r.computed)((function(){return i.call(l,e,n.getState(e))}))),o[t].value):function(){return void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i}()?(0,r.unref)(i):(i=n["on".concat(t)],(0,Pe.mf)(i)?function(){return i.call(l,e,n.getState(e))}:function(){return void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i}()?i:n[t])))},set:function(n,o,r,t){return o="set".concat(function(){return void 0!==o.slice(0,1).toUpperCase()&&null!==o.slice(0,1).toUpperCase()&&o.slice(0,1).toUpperCase()[Symbol.for("+")]?o.slice(0,1).toUpperCase()[Symbol.for("+")](o.slice(1)):o.slice(0,1).toUpperCase()+o.slice(1)}()),function(){return void 0!==o&&null!==o&&o[Symbol.for("in")]?o[Symbol.for("in")](n):o in n}()&&(0,Pe.mf)(n[o])&&function(){return void 0!==n[o].length&&null!==n[o].length&&n[o].length[Symbol.for("<")]?n[o].length[Symbol.for("<")](3):n[o].length<3}()?(n[o].call(t,e,r),!0):(console.warn('No setter for "'.concat(o,'".'),n),!1)},ownKeys:function(){return n},has:function(e,o){return n.includes(o.toString())},getOwnPropertyDescriptor:function(e,o){if(n.includes(o.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function De(e){return(0,K.z2)((function(){var n=e();return(0,g.Mv)(n,{}),n.id=(0,y.QI)("grid-"),n[y.wA]=Ee,n.getID=function(e){return function(){return n.id+"-"!==void 0&&n.id+"-"!==null&&(n.id+"-")[Symbol.for("+")]?(n.id+"-")[Symbol.for("+")](e):n.id+"-"+e}()},n.getState=function(e){var n=this;return function(){return void 0!==n[g.n9].value[e]&&null!==n[g.n9].value[e]&&n[g.n9].value[e][Symbol.for("!=")]?n[g.n9].value[e][Symbol.for("!=")](void 0):void 0!=n[g.n9].value[e]}()?this[g.n9].value[e]:this.cells[e].startState},n.setState=function(e,n){this[g.n9].value[e]=n},n.cells=Ie(n),(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"rows"),(0,Q.yB)(n,"cols"),(0,Q.yB)(n,"getVisibility"),(0,y.Rh)(n,"getVisibility",y.EE.Visible),(0,Q.yB)(n,"getCanClick"),(0,y.Rh)(n,"getCanClick",!0),(0,Q.yB)(n,"getStartState"),(0,Q.yB)(n,"getStyle"),(0,Q.yB)(n,"getClasses"),(0,Q.yB)(n,"getTitle"),(0,Q.yB)(n,"getDisplay"),n[y.tj]=function(){var e=this.visibility,n=this.rows,o=this.cols,r=this.cells,t=this.id;return{visibility:e,rows:n,cols:o,cells:r,id:t}},n}))}o(561);var Re=["disabled"];function Oe(e,n,o,t,l,i){var u=(0,r.resolveComponent)("MarkNode"),a=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0})},[(0,r.createElementVNode)("button",{style:(0,r.normalizeStyle)(e.unref(e.style)),onClick:n[0]||(n[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)}),onMousedown:n[1]||(n[1]=function(){return e.start&&e.start.apply(e,arguments)}),onMouseleave:n[2]||(n[2]=function(){return e.stop&&e.stop.apply(e,arguments)}),onMouseup:n[3]||(n[3]=function(){return e.stop&&e.stop.apply(e,arguments)}),onTouchstart:n[4]||(n[4]=function(){return e.start&&e.start.apply(e,arguments)}),onTouchend:n[5]||(n[5]=function(){return e.stop&&e.stop.apply(e,arguments)}),onTouchcancel:n[6]||(n[6]=function(){return e.stop&&e.stop.apply(e,arguments)}),disabled:function(){return 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,r.normalizeClass)((0,B.Z)({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:function(){return 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,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(a,{id:e.id},null,8,["id"])],46,Re)],4)):(0,r.createCommentVNode)("",!0)}var _e=(0,r.defineComponent)({props:{display:{type:(0,C.P5)(Object,String,Function),required:!0},visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(Object,String,Array),classes:(0,C.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,C.P5)(Boolean),required:!0},small:Boolean,mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:R,MarkNode:q},setup:function(e){var n=(0,r.toRefs)(e),o=n.display,t=n.onClick,l=n.onHold,i=(0,r.shallowRef)("");(0,r.watchEffect)((function(){var e=(0,C.Uv)(o);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())i.value="";else if((0,C.RU)(e))i.value=(0,C.MM)(e);else{var n=(0,C.MM)(e.title||"","h3"),t=(0,C.MM)(e.description,"div");i.value=(0,C.MM)((0,y.tZ)((function(){return(0,r.createVNode)("span",null,[e.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(n,null,null)]):null,(0,r.createVNode)(t,null,null)])})))}}));var u=(0,C.ix)(t,l),a=u.start,f=u.stop;return{start:a,stop:f,comp:i,Visibility:y.EE,unref:r.unref}}});const je=(0,u.Z)(_e,[["render",Oe],["__scopeId","data-v-2d81e1cc"]]);var Ue=je,Ae=Symbol("Clickable");function qe(e){return(0,K.z2)((function(){var n=e();return n.id=(0,y.QI)("clickable-"),n.type=Ae,n[y.wA]=Ue,(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"canClick"),(0,y.Rh)(n,"canClick",!0),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"mark"),(0,Q.yB)(n,"display"),n[y.tj]=function(){var e=this.display,n=this.visibility,o=this.style,r=this.classes,t=this.onClick,l=this.onHold,i=this.canClick,u=this.small,a=this.mark,f=this.id;return{display:e,visibility:n,style:o,classes:r,onClick:t,onHold:l,canClick:i,small:u,mark:a,id:f}},n}))}function Le(e){return qe((function(){var n=e();(0,Q.yB)(n,"showNextAt"),(0,y.Rh)(n,"showNextAt",!0),!function(){return void 0!==n.resetDescription&&null!==n.resetDescription&&n.resetDescription[Symbol.for("==")]?n.resetDescription[Symbol.for("==")](null):null==n.resetDescription}()?(0,Q.yB)(n,"resetDescription"):n.resetDescription=(0,r.computed)((function(){return v.ZP.lt(n.conversion.gainResource.value,1e3)?"Reset for ":""})),function(){return void 0!==n.display&&null!==n.display&&n.display[Symbol.for("==")]?n.display[Symbol.for("==")](null):null==n.display}()&&(n.display=(0,y.tZ)((function(){return(0,r.createVNode)("span",null,[(0,r.unref)(n.resetDescription),(0,r.createVNode)("b",null,[V(n.conversion.gainResource,(0,r.unref)(n.conversion.currentGain))])," ",n.conversion.gainResource.displayName,(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Next:")," ",V(n.conversion.baseResource,(0,r.unref)(n.conversion.nextAt))," ",n.conversion.baseResource.displayName]),[[r.vShow,(0,r.unref)(n.showNextAt)]])])}))),function(){return void 0!==n.canClick&&null!==n.canClick&&n.canClick[Symbol.for("==")]?n.canClick[Symbol.for("==")](null):null==n.canClick}()&&(n.canClick=(0,r.computed)((function(){return v.ZP.gt((0,r.unref)(n.conversion.currentGain),0)})));var o=n.onClick;return n.onClick=function(){n.conversion.convert(),n.tree.reset(n.treeNode),null===o||void 0===o||o()},n}))}function ze(e){return ne((function(){var n=e();return(0,Q.yB)(n,"append"),(0,B.Z)((0,B.Z)({},n),{},{display:n.layerID,onClick:function(){return void 0!==n.append&&null!==n.append&&n.append[Symbol.for("!=")]?n.append[Symbol.for("!=")](null):null!=n.append}()&&n.append?function(){if(le.Z.tabs.includes(n.layerID)){var e=le.Z.tabs.lastIndexOf(n.layerID);le.Z.tabs.splice(e,1)}else le.Z.tabs.push(n.layerID)}:function(){le.Z.tabs.splice(1,1,n.layerID)}})}))}function We(e){return(0,K.z2)((function(){var n=e();return function(){return void 0!==n.currentGain&&null!==n.currentGain&&n.currentGain[Symbol.for("==")]?n.currentGain[Symbol.for("==")](null):null==n.currentGain}()&&(n.currentGain=(0,r.computed)((function(){return n.scaling.currentGain(n)}))),function(){return void 0!==n.nextAt&&null!==n.nextAt&&n.nextAt[Symbol.for("==")]?n.nextAt[Symbol.for("==")](null):null==n.nextAt}()&&(n.nextAt=(0,r.computed)((function(){return n.scaling.nextAt(n)}))),function(){return void 0!==n.convert&&null!==n.convert&&n.convert[Symbol.for("==")]?n.convert[Symbol.for("==")](null):null==n.convert}()&&(n.convert=function(){n.gainResource.value=v.ZP.add(n.gainResource.value,n.modifyGainAmount?n.modifyGainAmount((0,r.unref)(n.currentGain)):(0,r.unref)(n.currentGain)),n.baseResource.value=0}),(0,Q.yB)(n,"currentGain"),(0,Q.yB)(n,"nextAt"),(0,Q.yB)(n,"buyMax"),(0,y.Rh)(n,"buyMax",!0),(0,Q.yB)(n,"roundUpCost"),(0,y.Rh)(n,"roundUpCost",!0),n}))}function Ge(e,n,o){return{currentGain:function(n){var t=v.ZP.div(n.baseResource.value,(0,r.unref)(e)).pow((0,r.unref)(o)).floor().max(0);return t.isNan()?new v.ZP(0):(function(){return void 0!==n.buyMax&&null!==n.buyMax&&n.buyMax[Symbol.for("!")]?n.buyMax[Symbol.for("!")]():!n.buyMax}()&&(t=t.min(1)),t)},nextAt:function(n){var t=v.ZP.add((0,r.unref)(n.currentGain),1).root((0,r.unref)(o)).times((0,r.unref)(e)).max((0,r.unref)(e));return n.roundUpCost&&(t=t.ceil()),t}}}function He(e){return We(e)}function Ye(e){return We((function(){var n=e();return(0,y.Rh)(n,"buyMax",!1),function(){return void 0!==n.currentGain&&null!==n.currentGain&&n.currentGain[Symbol.for("==")]?n.currentGain[Symbol.for("==")](null):null==n.currentGain}()&&(n.currentGain=(0,r.computed)((function(){return v.ZP.sub(n.scaling.currentGain(n),n.gainResource.value).add(1).max(1)}))),(0,y.Rh)(n,"convert",(function(){n.gainResource.value=n.modifyGainAmount?n.modifyGainAmount((0,r.unref)(n.currentGain)):(0,r.unref)(n.currentGain),n.baseResource.value=0})),n}))}function Je(e,n){var o=arguments,r=function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()&&function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()?arguments[2]:.5;return v.ZP.lte(e,n)?e:v.ZP.pow(e,r).times(v.ZP.pow(n,v.ZP.sub(1,r)))}function Xe(e,n){var o=arguments,t=function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()&&function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()?arguments[2]:.5;return(0,B.Z)((0,B.Z)({},e),{},{currentGain:function(o){return Je(e.currentGain(o),(0,r.unref)(n),(0,r.unref)(t))}})}var Qe=function(e){return(0,r.pushScopeId)("data-v-b2658e96"),e=e(),(0,r.popScopeId)(),e},Ke=Qe((function(){return(0,r.createElementVNode)("span",{class:"toggle"},"▼",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())}));function $e(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("CollapseTransition"),f=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["infobox",(0,B.Z)({collapsed:e.unref(e.collapsed),stacked:e.stacked},e.unref(e.classes))]),style:(0,r.normalizeStyle)([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}])},[(0,r.createElementVNode)("button",{class:"title",style:(0,r.normalizeStyle)([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:n[0]||(n[0]=function(n){return e.collapsed.value=function(){return 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)}()})},[Ke,((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.titleComponent)))],4),(0,r.createVNode)(a,null,{default:(0,r.withCtx)((function(){return[function(){return 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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"body",style:(0,r.normalizeStyle)({backgroundColor:e.unref(e.color)})},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.bodyComponent),{style:(0,r.normalizeStyle)(e.unref(e.bodyStyle))},null,8,["style"]))],4)):(0,r.createCommentVNode)("",!0)]})),_:1}),(0,r.createVNode)(f,{id:e.id},null,8,["id"])],6)):(0,r.createCommentVNode)("",!0)}var en=o(423),nn=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:{type:(0,C.P5)(Object,String,Function),required:!0},title:{type:(0,C.P5)(Object,String,Function),required:!0},color:(0,C.P5)(String),collapsed:{type:Object,required:!0},style:(0,C.P5)(Object,String,Array),titleStyle:(0,C.P5)(Object,String,Array),bodyStyle:(0,C.P5)(Object,String,Array),classes:(0,C.P5)(Object),id:{type:String,required:!0}},components:{LinkNode:R,CollapseTransition:en.Z},setup:function(e){var n=(0,r.toRefs)(e),o=n.title,t=n.display,l=(0,C.vq)(o),i=(0,C.vq)(t),u=(0,r.computed)((function(){return he.Z[Ne.ZP.theme].stackedInfoboxes}));return{titleComponent:l,bodyComponent:i,stacked:u,unref:r.unref,Visibility:y.EE}}});const on=(0,u.Z)(nn,[["render",$e],["__scopeId","data-v-b2658e96"]]);var rn=on,tn=Symbol("Infobox");function ln(e){return(0,K.z2)((function(){var n=e();return(0,g.Mv)(n,!1),n.id=(0,y.QI)("infobox-"),n.type=tn,n[y.wA]=rn,n.collapsed=n[g.n9],(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"color"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"titleStyle"),(0,Q.yB)(n,"bodyStyle"),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"title"),(0,Q.yB)(n,"display"),n[y.tj]=function(){var e=this.visibility,n=this.display,o=this.title,r=this.color,t=this.collapsed,l=this.style,i=this.titleStyle,u=this.bodyStyle,a=this.classes,f=this.id;return{visibility:e,display:n,title:o,color:r,collapsed:t,style:l,titleStyle:i,bodyStyle:u,classes:a,id:f}},n}))}o(2479);var un=o(1008),an=Symbol("Reset");function fn(e){return(0,K.z2)((function(){var n=e();return n.id=(0,y.QI)("reset-"),n.type=an,n.reset=function(){var e,o=function e(n){n&&"object"===(0,b.Z)(n)&&(!function(){return void 0!==g.n9&&null!==g.n9&&g.n9[Symbol.for("in")]?g.n9[Symbol.for("in")](n):g.n9 in n}()?function(){return n instanceof un.Z!==void 0&&n instanceof un.Z!==null&&(n instanceof un.Z)[Symbol.for("!")]?(n instanceof un.Z)[Symbol.for("!")]():!(n instanceof un.Z)}()&&function(){return void 0!==(0,r.isRef)(n)&&null!==(0,r.isRef)(n)&&(0,r.isRef)(n)[Symbol.for("!")]?(0,r.isRef)(n)[Symbol.for("!")]():!(0,r.isRef)(n)}()&&Object.values(n).forEach((function(n){return e(n)})):n[g.n9].value=n[g.nY])};(0,r.unref)(n.thingsToReset).forEach(o),S.globalBus.emit("reset",n),null===(e=n.onReset)||void 0===e||e.call(n)},(0,Q.yB)(n,"thingsToReset"),n}))}var cn={};S.globalBus.on("removeLayer",(function(e){var n;null===(n=cn[e.id])||void 0===n||n.call(cn),cn[e.id]=void 0}));var sn=(0,r.defineComponent)({props:{resource:null,color:null},setup:function(e){var n=e,o=(0,r.computed)((function(){return V(n.resource)}));return function(n,t){return(0,r.openBlock)(),(0,r.createElementBlock)("h2",{style:(0,r.normalizeStyle)({color:e.color,"text-shadow":function(){return"0px 0px 10px "[Symbol.for("+")]?"0px 0px 10px "[Symbol.for("+")](e.color):"0px 0px 10px "+e.color}()})},(0,r.toDisplayString)((0,r.unref)(o)),5)}}});const mn=sn;var dn=mn,yn={key:0},bn={key:1},vn=(0,r.createTextVNode)(", "),Sn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),gn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),pn=(0,r.defineComponent)({props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=(0,C.KO)(o.effectDisplay),l=(0,r.computed)((function(){return v.ZP.lt(o.resource.value,"1e1000")}));return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.unref)(l)?((0,r.openBlock)(),(0,r.createElementBlock)("span",yn,"You have ")):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(dn,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),(0,r.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,r.toDisplayString)(e.resource.displayName)):" "+(0,r.toDisplayString)(e.resource.displayName)}(),1),(0,r.unref)(t)?((0,r.openBlock)(),(0,r.createElementBlock)("span",bn,[vn,((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(t))))])):(0,r.createCommentVNode)("",!0),Sn,gn])}}});const hn=pn;var Nn=hn,kn={class:"field"},Vn={key:0,class:"field-title"},Zn=["min","max"],Mn=(0,r.defineComponent)({props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup:function(e,n){var o=n.emit,t=e,l=(0,r.toRefs)(t),i=(0,r.computed)({get:function(){return String((0,r.unref)(l.modelValue)||0)},set:function(e){o("update:modelValue",Number(e))}});return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",kn,[e.title?((0,r.openBlock)(),(0,r.createElementBlock)("span",Vn,(0,r.toDisplayString)(e.title),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(L.Z,{display:"".concat((0,r.unref)(i)),class:(0,r.normalizeClass)({fullWidth:function(){return void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title}()})},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=function(e){return(0,r.isRef)(i)?i.value=e:null}),min:e.min,max:e.max},null,8,Zn),[[r.vModelText,(0,r.unref)(i)]])]})),_:1},8,["display","class"])])}}});const xn=(0,u.Z)(Mn,[["__scopeId","data-v-27120bc0"]]);var wn=xn,Cn=o(1033),Bn=o(900),En=o(9905),Pn=(0,r.defineComponent)({setup:function(e){var n=(0,r.ref)("0"),o=new ResizeObserver(l),t=(0,r.ref)(null);function l(){var e=t.value;if(!function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](void 0):void 0==e}()){var o=0;while(e.previousSibling){var r=e.previousSibling;r.dataset&&function(){return"vSticky"[Symbol.for("in")]?"vSticky"[Symbol.for("in")](r.dataset):"vSticky"in r.dataset}()&&(o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](r.offsetHeight):o+r.offsetHeight}()),e=r}n.value=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]("px"):o+"px"}()}}return(0,r.nextTick)(l),(0,r.onMounted)((function(){var e,n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&o.observe(n)})),function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"sticky",style:(0,r.normalizeStyle)({top:n.value}),ref_key:"element",ref:t,"data-v-sticky":""},[(0,r.renderSlot)(e.$slots,"default")],4)}}});const In=(0,u.Z)(Pn,[["__scopeId","data-v-3b196306"]]);var Tn=In,Fn=(0,r.defineComponent)({props:{height:null},setup:function(e){return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vr",style:(0,r.normalizeStyle)({height:e.height})},null,4)}}});const Dn=(0,u.Z)(Fn,[["__scopeId","data-v-15f6e746"]]);var Rn=Dn,On=o(7286);function _n(e,n,o,t,l,i){var u,a,f,c,s,m,d,y=(0,r.resolveComponent)("MarkNode"),b=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)([{width:function(){return 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:function(){return 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},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}]),class:(0,r.normalizeClass)((0,B.Z)({bar:!0},e.unref(e.classes)))},[(0,r.createElementVNode)("div",{class:"overlayTextContainer border",style:(0,r.normalizeStyle)([{width:function(){return 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:function(){return 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"}()},function(){return void 0!==(a=e.unref(e.borderStyle))&&null!==(a=e.unref(e.borderStyle))&&(a=e.unref(e.borderStyle))[Symbol.for("!==")]?(a=e.unref(e.borderStyle))[Symbol.for("!==")](null):null!==(a=e.unref(e.borderStyle))}()&&function(){return void 0!==a&&null!==a&&a[Symbol.for("!==")]?a[Symbol.for("!==")](void 0):void 0!==a}()?a:{}])},[e.component?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component),{key:0,class:"overlayText",style:(0,r.normalizeStyle)(e.unref(e.textStyle))},null,8,["style"])):(0,r.createCommentVNode)("",!0)],4),(0,r.createElementVNode)("div",{class:"border",style:(0,r.normalizeStyle)([{width:function(){return 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:function(){return 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"}()},function(){return void 0!==(f=e.unref(e.style))&&null!==(f=e.unref(e.style))&&(f=e.unref(e.style))[Symbol.for("!==")]?(f=e.unref(e.style))[Symbol.for("!==")](null):null!==(f=e.unref(e.style))}()&&function(){return void 0!==f&&null!==f&&f[Symbol.for("!==")]?f[Symbol.for("!==")](void 0):void 0!==f}()?f:{},function(){return void 0!==(c=e.unref(e.baseStyle))&&null!==(c=e.unref(e.baseStyle))&&(c=e.unref(e.baseStyle))[Symbol.for("!==")]?(c=e.unref(e.baseStyle))[Symbol.for("!==")](null):null!==(c=e.unref(e.baseStyle))}()&&function(){return void 0!==c&&null!==c&&c[Symbol.for("!==")]?c[Symbol.for("!==")](void 0):void 0!==c}()?c:{},function(){return void 0!==(s=e.unref(e.borderStyle))&&null!==(s=e.unref(e.borderStyle))&&(s=e.unref(e.borderStyle))[Symbol.for("!==")]?(s=e.unref(e.borderStyle))[Symbol.for("!==")](null):null!==(s=e.unref(e.borderStyle))}()&&function(){return void 0!==s&&null!==s&&s[Symbol.for("!==")]?s[Symbol.for("!==")](void 0):void 0!==s}()?s:{}])},[(0,r.createElementVNode)("div",{class:"fill",style:(0,r.normalizeStyle)([e.barStyle,function(){return void 0!==(m=e.unref(e.style))&&null!==(m=e.unref(e.style))&&(m=e.unref(e.style))[Symbol.for("!==")]?(m=e.unref(e.style))[Symbol.for("!==")](null):null!==(m=e.unref(e.style))}()&&function(){return void 0!==m&&null!==m&&m[Symbol.for("!==")]?m[Symbol.for("!==")](void 0):void 0!==m}()?m:{},function(){return void 0!==(d=e.unref(e.fillStyle))&&null!==(d=e.unref(e.fillStyle))&&(d=e.unref(e.fillStyle))[Symbol.for("!==")]?(d=e.unref(e.fillStyle))[Symbol.for("!==")](null):null!==(d=e.unref(e.fillStyle))}()&&function(){return void 0!==d&&null!==d&&d[Symbol.for("!==")]?d[Symbol.for("!==")](void 0):void 0!==d}()?d:{}])},null,4)],4),(0,r.createVNode)(y,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(b,{id:e.id},null,8,["id"])],6)):(0,r.createCommentVNode)("",!0)}var jn=(0,r.defineComponent)({props:{progress:{type:(0,C.P5)(String,Object,Number),required:!0},width:{type:(0,C.P5)(Number),required:!0},height:{type:(0,C.P5)(Number),required:!0},direction:{type:(0,C.P5)(String),required:!0},display:(0,C.P5)(Object,String,Function),visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(Object,String,Array),classes:(0,C.P5)(Object),borderStyle:(0,C.P5)(Object,String,Array),textStyle:(0,C.P5)(Object,String,Array),baseStyle:(0,C.P5)(Object,String,Array),fillStyle:(0,C.P5)(Object,String,Array),mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:q,LinkNode:R},setup:function(e){var n=(0,r.toRefs)(e),o=n.progress,t=n.width,l=n.height,i=n.direction,u=n.display,a=(0,r.computed)((function(){var e=o.value instanceof v.ZP?o.value.toNumber():Number(o.value);return function(){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))}()})),f=(0,r.computed)((function(){var e={width:function(){return(0,C.Uv)(t)+.5!==void 0&&(0,C.Uv)(t)+.5!==null&&((0,C.Uv)(t)+.5)[Symbol.for("+")]?((0,C.Uv)(t)+.5)[Symbol.for("+")]("px"):(0,C.Uv)(t)+.5+"px"}(),height:function(){return(0,C.Uv)(l)+.5!==void 0&&(0,C.Uv)(l)+.5!==null&&((0,C.Uv)(l)+.5)[Symbol.for("+")]?((0,C.Uv)(l)+.5)[Symbol.for("+")]("px"):(0,C.Uv)(l)+.5+"px"}()};switch((0,r.unref)(i)){case An.Up:e.clipPath="inset(".concat(a.value,"% 0% 0% 0%)"),e.width=function(){return(0,C.Uv)(t)+1!==void 0&&(0,C.Uv)(t)+1!==null&&((0,C.Uv)(t)+1)[Symbol.for("+")]?((0,C.Uv)(t)+1)[Symbol.for("+")]("px"):(0,C.Uv)(t)+1+"px"}();break;case An.Down:e.clipPath="inset(0% 0% ".concat(a.value,"% 0%)"),e.width=function(){return(0,C.Uv)(t)+1!==void 0&&(0,C.Uv)(t)+1!==null&&((0,C.Uv)(t)+1)[Symbol.for("+")]?((0,C.Uv)(t)+1)[Symbol.for("+")]("px"):(0,C.Uv)(t)+1+"px"}();break;case An.Right:e.clipPath="inset(0% ".concat(a.value,"% 0% 0%)");break;case An.Left:e.clipPath="inset(0% 0% 0% ".concat(a.value," + '%)");break;case An.Default:e.clipPath="inset(0% 50% 0% 0%)";break}return e})),c=(0,C.KO)(u);return{normalizedProgress:a,barStyle:f,component:c,unref:r.unref,Visibility:y.EE}}});const Un=(0,u.Z)(jn,[["render",_n],["__scopeId","data-v-406e5054"]]);var An,qn=Un,Ln=Symbol("Bar");function zn(e){return(0,K.z2)((function(){var n=e();return n.id=(0,y.QI)("bar-"),n.type=Ln,n[y.wA]=qn,(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"width"),(0,Q.yB)(n,"height"),(0,Q.yB)(n,"direction"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"borderStyle"),(0,Q.yB)(n,"baseStyle"),(0,Q.yB)(n,"textStyle"),(0,Q.yB)(n,"fillStyle"),(0,Q.yB)(n,"progress"),(0,Q.yB)(n,"display"),(0,Q.yB)(n,"mark"),n[y.tj]=function(){var e=this.progress,n=this.width,o=this.height,r=this.direction,t=this.display,l=this.visibility,i=this.style,u=this.classes,a=this.borderStyle,f=this.textStyle,c=this.baseStyle,s=this.fillStyle,m=this.mark,d=this.id;return{progress:e,width:n,height:o,direction:r,display:t,visibility:l,style:i,classes:u,borderStyle:a,textStyle:f,baseStyle:c,fillStyle:s,mark:m,id:d}},n}))}(function(e){e["Up"]="Up",e["Down"]="Down",e["Left"]="Left",e["Right"]="Right",e["Default"]="Up"})(An||(An={}));var Wn=Symbol("Buyable");function Gn(e){return(0,K.z2)((function(){var n=e();if(function(){return void 0!==n.canPurchase&&null!==n.canPurchase&&n.canPurchase[Symbol.for("==")]?n.canPurchase[Symbol.for("==")](null):null==n.canPurchase}()&&(function(){return void 0!==n.resource&&null!==n.resource&&n.resource[Symbol.for("==")]?n.resource[Symbol.for("==")](null):null==n.resource}()||function(){return void 0!==n.cost&&null!==n.cost&&n.cost[Symbol.for("==")]?n.cost[Symbol.for("==")](null):null==n.cost}()))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",n),"Cannot create buyable without a canPurchase property or a resource and cost property";(0,g.Mv)(n,0),n.id=(0,y.QI)("buyable-"),n.type=Wn,n[y.wA]=Ue,n.amount=n[g.n9],n.canAfford=(0,r.computed)((function(){var e=n,o=(0,r.unref)(e.cost);return function(){return void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource}()&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](null):null!=o}()&&v.ZP.gte(e.resource.value,o)})),function(){return void 0!==n.canPurchase&&null!==n.canPurchase&&n.canPurchase[Symbol.for("==")]?n.canPurchase[Symbol.for("==")](null):null==n.canPurchase}()&&(n.canPurchase=(0,r.computed)((function(){return(0,r.unref)(n.visibility)===y.EE.Visible&&(0,r.unref)(n.canAfford)&&v.ZP.lt(n.amount.value,(0,r.unref)(n.purchaseLimit))}))),n.maxed=(0,r.computed)((function(){return v.ZP.gte(n.amount.value,(0,r.unref)(n.purchaseLimit))})),(0,Q.yB)(n,"classes");var o=n.classes;n.classes=(0,r.computed)((function(){var e=(0,r.unref)(o)||{};return n.maxed.value&&(e.bought=!0),e})),(0,Q.yB)(n,"canPurchase"),n.canClick=n.canPurchase,n.onClick=n.purchase=function(){var e,o=n;if(!(function(){return void 0!==(0,r.unref)(o.canPurchase)&&null!==(0,r.unref)(o.canPurchase)&&(0,r.unref)(o.canPurchase)[Symbol.for("!")]?(0,r.unref)(o.canPurchase)[Symbol.for("!")]():!(0,r.unref)(o.canPurchase)}()||function(){return void 0!==o.cost&&null!==o.cost&&o.cost[Symbol.for("==")]?o.cost[Symbol.for("==")](null):null==o.cost}()||function(){return void 0!==o.resource&&null!==o.resource&&o.resource[Symbol.for("==")]?o.resource[Symbol.for("==")](null):null==o.resource}())){var t=(0,r.unref)(o.cost);o.resource.value=v.ZP.sub(o.resource.value,t),o.amount.value=v.ZP.add(o.amount.value,1),null===(e=this.onPurchase)||void 0===e||e.call(this,t)}},(0,Q.yB)(n,"display");var t=n.display;return n.display=(0,y.tZ)((function(){var e=(0,r.unref)(t);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e}()&&function(){return void 0!==(0,C.RU)(e)&&null!==(0,C.RU)(e)&&(0,C.RU)(e)[Symbol.for("!")]?(0,C.RU)(e)[Symbol.for("!")]():!(0,C.RU)(e)}()&&function(){return void 0!==n.cost&&null!==n.cost&&n.cost[Symbol.for("!=")]?n.cost[Symbol.for("!=")](null):null!=n.cost}()&&function(){return void 0!==n.resource&&null!==n.resource&&n.resource[Symbol.for("!=")]?n.resource[Symbol.for("!=")](null):null!=n.resource}()){var o=n,l=(0,C.MM)(e.title||"","h3"),i=(0,C.MM)(e.description),u=(0,C.MM)(e.effectDisplay||"");return(0,r.createVNode)("span",null,[e.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(l,null,null)]):null,(0,r.createVNode)(i,null,null),(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Amount: "),(0,v.Ht)(o.amount.value),(0,r.createTextVNode)(" /")," ",(0,v.Ht)((0,r.unref)(o.purchaseLimit))]),e.effectDisplay?(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Currently: "),(0,r.createVNode)(u,null,null)]):null,o.cost&&function(){return void 0!==o.maxed.value&&null!==o.maxed.value&&o.maxed.value[Symbol.for("!")]?o.maxed.value[Symbol.for("!")]():!o.maxed.value}()?(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Cost: "),(0,v.WU)((0,r.unref)(o.cost)||0)," ",n.resource.displayName]):null])}return""})),(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"cost"),(0,Q.yB)(n,"resource"),(0,Q.yB)(n,"purchaseLimit"),(0,y.Rh)(n,"purchaseLimit",1),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"mark"),(0,Q.yB)(n,"small"),n[y.tj]=function(){var e=this.display,n=this.visibility,o=this.style,r=this.classes,t=this.onClick,l=this.canClick,i=this.small,u=this.mark,a=this.id;return{display:e,visibility:n,style:o,classes:r,onClick:t,canClick:l,small:i,mark:u,id:a}},n}))}o(9826);function Hn(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}]),class:(0,r.normalizeClass)((0,B.Z)({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart),maxed:e.unref(e.maxed)},e.unref(e.classes)))},[(0,r.createElementVNode)("button",{class:"toggleChallenge",onClick:n[0]||(n[0]=function(){return e.toggle&&e.toggle.apply(e,arguments)})},(0,r.toDisplayString)(e.buttonText),1),e.unref(e.comp)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(f,{id:e.id},null,8,["id"])],6)):(0,r.createCommentVNode)("",!0)}var Yn=(0,r.defineComponent)({props:{active:{type:(0,C.P5)(Boolean),required:!0},maxed:{type:(0,C.P5)(Boolean),required:!0},canComplete:{type:(0,C.P5)(Boolean),required:!0},display:(0,C.P5)(String,Object,Function),visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),completed:{type:(0,C.P5)(Boolean),required:!0},canStart:{type:(0,C.P5)(Boolean),required:!0},mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:q,LinkNode:R},setup:function(e){var n=(0,r.toRefs)(e),o=n.active,t=n.maxed,l=n.canComplete,i=n.display,u=(0,r.computed)((function(){return o.value?l.value?"Finish":"Exit Early":t.value?"Completed":"Start"})),a=(0,r.shallowRef)(""),f=(0,r.computed)((function(){var e=(0,C.Uv)(o),n=(0,C.Uv)(l);return e?n?ye():de():{}}));return(0,r.watchEffect)((function(){var e=(0,C.Uv)(i);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())a.value="";else if((0,C.RU)(e))a.value=(0,C.MM)(e);else{var n=(0,C.MM)(e.title||"","h3"),o=(0,C.MM)(e.description,"div"),t=(0,C.MM)(e.goal||""),l=(0,C.MM)(e.reward||""),u=(0,C.MM)(e.effectDisplay||"");a.value=(0,C.MM)((0,y.tZ)((function(){return(0,r.createVNode)("span",null,[e.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(n,null,null)]):null,(0,r.createVNode)(o,null,null),e.goal?(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Goal: "),(0,r.createVNode)(t,null,null)]):null,e.reward?(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Reward: "),(0,r.createVNode)(l,null,null)]):null,e.effectDisplay?(0,r.createVNode)("div",null,[(0,r.createTextVNode)("Currently: "),(0,r.createVNode)(u,null,null)]):null])})))}})),{buttonText:u,notifyStyle:f,comp:a,Visibility:y.EE,unref:r.unref}}});const Jn=(0,u.Z)(Yn,[["render",Hn],["__scopeId","data-v-20a2ad76"]]);var Xn=Jn,Qn=Symbol("ChallengeType");function Kn(e){return(0,K.z2)((function(){var n=e();if(function(){return void 0!==n.canComplete&&null!==n.canComplete&&n.canComplete[Symbol.for("==")]?n.canComplete[Symbol.for("==")](null):null==n.canComplete}()&&(function(){return void 0!==n.resource&&null!==n.resource&&n.resource[Symbol.for("==")]?n.resource[Symbol.for("==")](null):null==n.resource}()||function(){return void 0!==n.goal&&null!==n.goal&&n.goal[Symbol.for("==")]?n.goal[Symbol.for("==")](null):null==n.goal}()))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",n),"Cannot create challenge without a canComplete property or a resource and goal property";n.id=(0,y.QI)("challenge-"),n.type=Qn,n[y.wA]=Xn,n.completions=(0,g.ax)(0),n.active=(0,g.ax)(!1),n.completed=(0,r.computed)((function(){return v.ZP.gt(n.completions.value,0)})),n.maxed=(0,r.computed)((function(){return v.ZP.gte(n.completions.value,(0,r.unref)(n.completionLimit))})),n.toggle=function(){var e=n;if(e.active.value){var o,t;if(e.canComplete&&(0,r.unref)(e.canComplete)&&function(){return void 0!==e.maxed.value&&null!==e.maxed.value&&e.maxed.value[Symbol.for("!")]?e.maxed.value[Symbol.for("!")]():!e.maxed.value}()){var l,i=(0,r.unref)(e.canComplete);"boolean"===typeof i&&(i=1),e.completions.value=v.ZP.min(v.ZP.add(e.completions.value,i),(0,r.unref)(e.completionLimit)),null===(l=e.onComplete)||void 0===l||l.call(e)}e.active.value=!1,null===(o=e.onExit)||void 0===o||o.call(e),null===(t=e.reset)||void 0===t||t.reset()}else if((0,r.unref)(e.canStart)){var u,a;null===(u=e.reset)||void 0===u||u.reset(),e.active.value=!0,null===(a=e.onEnter)||void 0===a||a.call(e)}},(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible);var o=n.visibility;return n.visibility=(0,r.computed)((function(){return!0===Ne.ZP.hideChallenges&&(0,r.unref)(n.maxed)?y.EE.None:(0,r.unref)(o)})),function(){return void 0!==n.canStart&&null!==n.canStart&&n.canStart[Symbol.for("==")]?n.canStart[Symbol.for("==")](null):null==n.canStart}()&&(n.canStart=(0,r.computed)((function(){return(0,r.unref)(n.visibility)===y.EE.Visible&&v.ZP.lt(n.completions.value,(0,r.unref)(n.completionLimit))}))),function(){return void 0!==n.canComplete&&null!==n.canComplete&&n.canComplete[Symbol.for("==")]?n.canComplete[Symbol.for("==")](null):null==n.canComplete}()&&(n.canComplete=(0,r.computed)((function(){var e=n;return!(function(){return void 0!==e.active.value&&null!==e.active.value&&e.active.value[Symbol.for("!")]?e.active.value[Symbol.for("!")]():!e.active.value}()||function(){return void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("==")]?e.resource[Symbol.for("==")](null):null==e.resource}()||function(){return void 0!==e.goal&&null!==e.goal&&e.goal[Symbol.for("==")]?e.goal[Symbol.for("==")](null):null==e.goal}())&&v.ZP.gte(e.resource.value,(0,r.unref)(e.goal))}))),function(){return void 0!==n.mark&&null!==n.mark&&n.mark[Symbol.for("==")]?n.mark[Symbol.for("==")](null):null==n.mark}()&&(n.mark=(0,r.computed)((function(){return v.ZP.gt((0,r.unref)(n.completionLimit),1)&&function(){return void 0!==!(0,r.unref)(n.maxed)&&null!==!(0,r.unref)(n.maxed)&&(!(0,r.unref)(n.maxed))[Symbol.for("!")]?(!(0,r.unref)(n.maxed))[Symbol.for("!")]():!!(0,r.unref)(n.maxed)}()}))),(0,Q.yB)(n,"canStart"),(0,Q.yB)(n,"canComplete"),(0,Q.yB)(n,"completionLimit"),(0,y.Rh)(n,"completionLimit",1),(0,Q.yB)(n,"mark"),(0,Q.yB)(n,"goal"),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"display"),function(){return void 0!==n.reset&&null!==n.reset&&n.reset[Symbol.for("!=")]?n.reset[Symbol.for("!=")](null):null!=n.reset}()&&S.globalBus.on("reset",(function(e){e===n.reset&&n.active.value&&n.toggle()})),n[y.tj]=function(){var e=this.active,n=this.maxed,o=this.canComplete,r=this.display,t=this.visibility,l=this.style,i=this.classes,u=this.completed,a=this.canStart,f=this.mark,c=this.id,s=this.toggle;return{active:e,maxed:n,canComplete:o,display:r,visibility:t,style:l,classes:i,completed:u,canStart:a,mark:f,id:c,toggle:s}},n}))}S.globalBus.on("loadSettings",(function(e){(0,y.Rh)(e,"hideChallenges",!1)})),(0,Ne.QV)((0,y.tZ)((function(){return(0,r.createVNode)(Bn.Z,{title:"Hide Maxed Challenges","onUpdate:modelValue":function(e){return Ne.ZP.hideChallenges=e},modelValue:Ne.ZP.hideChallenges},null)})));var $n={},eo=Symbol("Hotkey");function no(e){return(0,K.z2)((function(){var n=e();return n.type=eo,(0,Q.yB)(n,"enabled"),(0,y.Rh)(n,"enabled",!0),(0,Q.yB)(n,"description"),n}))}S.globalBus.on("addLayer",(function(e){(0,y.bD)(e,eo).forEach((function(e){$n[e.key]=e}))})),S.globalBus.on("removeLayer",(function(e){(0,y.bD)(e,eo).forEach((function(e){$n[e.key]=void 0}))})),document.onkeydown=function(e){var n;if("INPUT"!==(null===(n=e.target)||void 0===n?void 0:n.tagName)&&(!Ho.value||!function(){return void 0!==le.Z.keepGoing&&null!==le.Z.keepGoing&&le.Z.keepGoing[Symbol.for("!")]?le.Z.keepGoing[Symbol.for("!")]():!le.Z.keepGoing}())){var o=e.key;e.shiftKey&&(o=function(){return"shift+"[Symbol.for("+")]?"shift+"[Symbol.for("+")](o):"shift+"+o}()),e.ctrlKey&&(o=function(){return"ctrl+"[Symbol.for("+")]?"ctrl+"[Symbol.for("+")](o):"ctrl+"+o}());var t=$n[o];t&&(0,r.unref)(t.enabled)&&(e.preventDefault(),t.onPress())}};var oo=o(3520);function ro(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}]),class:(0,r.normalizeClass)((0,B.Z)({feature:!0,milestone:!0,done:e.unref(e.earned)},e.unref(e.classes)))},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.unref(e.comp)))),(0,r.createVNode)(a,{id:e.id},null,8,["id"])],6)):(0,r.createCommentVNode)("",!0)}var to=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:{type:(0,C.P5)(String,Object,Function),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),earned:{type:(0,C.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{LinkNode:R},setup:function(e){var n=(0,r.toRefs)(e),o=n.display,t=(0,r.shallowRef)("");return(0,r.watchEffect)((function(){var e=(0,C.Uv)(o);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())t.value="";else if((0,C.RU)(e))t.value=(0,C.MM)(e);else{var n=(0,C.MM)(e.requirement,"h3"),l=(0,C.MM)(e.effectDisplay||"","b"),i=(0,C.MM)(e.optionsDisplay||"","span");t.value=(0,C.MM)((0,y.tZ)((function(){return(0,r.createVNode)("span",null,[(0,r.createVNode)(n,null,null),e.effectDisplay?(0,r.createVNode)("div",null,[(0,r.createVNode)(l,null,null)]):null,e.optionsDisplay?(0,r.createVNode)("div",{class:"equal-spaced"},[(0,r.createVNode)(i,null,null)]):null])})))}})),{comp:t,unref:r.unref,Visibility:y.EE}}});const lo=(0,u.Z)(to,[["render",ro],["__scopeId","data-v-29ed14b0"]]);var io,uo=lo,ao=Symbol("Milestone");function fo(e){return(0,K.z2)((function(){var n=e();(0,g.Mv)(n,!1),n.id=(0,y.QI)("milestone-"),n.type=ao,n[y.wA]=uo,n.earned=n[g.n9],(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible);var o=n.visibility;return n.visibility=(0,r.computed)((function(){var e=(0,r.unref)(n.display);switch(Ne.ZP.msDisplay){default:case io.All:return(0,r.unref)(o);case io.Configurable:return(0,r.unref)(n.earned)&&function(){return void 0!==(null!=e&&"object"==(0,b.Z)(e)&&"optionsDisplay"in e)&&null!==(null!=e&&"object"==(0,b.Z)(e)&&"optionsDisplay"in e)&&(null!=e&&"object"==(0,b.Z)(e)&&"optionsDisplay"in e)[Symbol.for("!")]?(null!=e&&"object"==(0,b.Z)(e)&&"optionsDisplay"in e)[Symbol.for("!")]():!(null!=e&&"object"==(0,b.Z)(e)&&"optionsDisplay"in e)}()?y.EE.None:(0,r.unref)(o);case io.Incomplete:return(0,r.unref)(n.earned)?y.EE.None:(0,r.unref)(o);case io.None:return y.EE.None}})),(0,Q.yB)(n,"shouldEarn"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"display"),n[y.tj]=function(){var e=this.visibility,n=this.display,o=this.style,r=this.classes,t=this.earned,l=this.id;return{visibility:e,display:n,style:o,classes:r,earned:t,id:l}},n}))}(function(e){e["All"]="all",e["Configurable"]="configurable",e["Incomplete"]="incomplete",e["None"]="none"})(io||(io={}));var co=(0,me.pm)(),so={};S.globalBus.on("addLayer",(function(e){var n=(0,y.bD)(e,ao).filter((function(e){return function(){return void 0!==e.shouldEarn&&null!==e.shouldEarn&&e.shouldEarn[Symbol.for("!=")]?e.shouldEarn[Symbol.for("!=")](null):null!=e.shouldEarn}()}));so[e.id]=e.on("postUpdate",(function(){n.forEach((function(e){var n;if((0,r.unref)(e.visibility)===y.EE.Visible&&function(){return void 0!==e.earned.value&&null!==e.earned.value&&e.earned.value[Symbol.for("!")]?e.earned.value[Symbol.for("!")]():!e.earned.value}()&&(0,r.unref)(e.shouldEarn)&&(e[g.n9].value=!0,null===(n=e.onComplete)||void 0===n||n.call(e),e.display)){var o=(0,r.unref)(e.display),t=(0,C.MM)((0,C.RU)(o)?o:o.requirement);co((0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)("h3",null,[(0,r.createTextVNode)("Milestone earned!")]),(0,r.createVNode)("div",null,[(0,r.createVNode)(t,null,null)])]))}}))}))})),S.globalBus.on("removeLayer",(function(e){var n;null===(n=so[e.id])||void 0===n||n.call(so),so[e.id]=void 0})),S.globalBus.on("loadSettings",(function(e){(0,y.Rh)(e,"msDisplay",io.All)}));var mo=Object.values(io).map((function(e){return{label:(0,Pe.IJ)(e),value:e}}));(0,Ne.QV)((0,y.tZ)((function(){return(0,r.createVNode)(oo.Z,{title:"Show Milestones",options:mo,"onUpdate:modelValue":function(e){return Ne.ZP.msDisplay=e},modelValue:Ne.ZP.msDisplay},null)})));var yo=(0,r.defineComponent)({props:{display:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=o.display,l=(0,C.vq)(t);return function(e,n){return(0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(l)))}}});const bo=yo;var vo=bo,So=Symbol("Tab");function go(e){return(0,K.z2)((function(){var n=e();return n.id=(0,y.QI)("tab-"),n.type=So,n[y.wA]=vo,n[y.tj]=function(){var e=this.display;return{display:e}},n}))}o(7941);function po(e,n,o,t,l,i){var u;return function(){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,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:n[0]||(n[0]=function(){return e.selectTab&&e.selectTab.apply(e,arguments)}),class:(0,r.normalizeClass)(["tabButton",(0,B.Z)({active:e.active},e.unref(e.classes))]),style:(0,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}])},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component)))],6)):(0,r.createCommentVNode)("",!0)}var ho=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:{type:(0,C.P5)(Object,String,Function),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),glowColor:(0,C.P5)(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup:function(e,n){var o=n.emit,t=(0,r.toRefs)(e),l=t.display,i=t.glowColor,u=t.floating,a=(0,C.vq)(l),f=(0,r.computed)((function(){var e=(0,C.Uv)(i);return function(){return void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e}()?{}:(0,r.unref)(u)?de(e):{boxShadow:"0px 9px 5px -6px ".concat(e)}}));function c(){o("selectTab")}return{selectTab:c,component:a,glowColorStyle:f,unref:r.unref,Visibility:y.EE}}});const No=(0,u.Z)(ho,[["render",po],["__scopeId","data-v-c30cdd5e"]]);var ko=No;function Vo(e,n,o,t,l,i){var u,a,f=(0,r.resolveComponent)("TabButton"),c=(0,r.resolveComponent)("Sticky");return function(){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,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["tab-family-container",(0,B.Z)((0,B.Z)({},e.unref(e.classes)),e.tabClasses)]),style:(0,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:[],function(){return void 0!==(a=e.tabStyle)&&null!==(a=e.tabStyle)&&(a=e.tabStyle)[Symbol.for("!==")]?(a=e.tabStyle)[Symbol.for("!==")](null):null!==(a=e.tabStyle)}()&&function(){return void 0!==a&&null!==a&&a[Symbol.for("!==")]?a[Symbol.for("!==")](void 0):void 0!==a}()?a:[]])},[(0,r.createVNode)(c,{class:"tab-buttons-container"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["tab-buttons",{floating:e.floating}])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.unref(e.tabs),(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)({onSelectTab:function(n){return e.selected.value=o},floating:e.floating,key:o,active:e.unref(n.tab)===e.unref(e.activeTab)},e.gatherButtonProps(n)),null,16,["onSelectTab","floating","active"])})),128))],2)]})),_:1}),e.unref(e.activeTab)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.unref(e.component)),{key:0})):(0,r.createCommentVNode)("",!0)],6)):(0,r.createCommentVNode)("",!0)}var Zo=(0,r.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},activeTab:{type:(0,C.P5)(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:(0,C.P5)(Object),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object)},components:{Sticky:Tn,TabButton:ko},setup:function(e){var n=(0,r.toRefs)(e),o=n.activeTab,t=(0,r.computed)((function(){return he.Z[Ne.ZP.theme].floatingTabs})),l=(0,r.shallowRef)("");(0,r.watchEffect)((function(){var e=(0,C.Uv)(o);!function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()?(0,C.RU)(e)?l.value=(0,C.MM)(e):l.value=(0,C.MM)((0,r.unref)(e.display)):l.value=""}));var i=(0,r.computed)((function(){var e=(0,C.Uv)(o),n=(0,C.RU)(e)||function(){return void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e}()?void 0:(0,r.unref)(e.classes);return n})),u=(0,r.computed)((function(){var e=(0,C.Uv)(o);return(0,C.RU)(e)||function(){return void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e}()?void 0:(0,r.unref)(e.style)}));function a(e){var n=e.display,o=e.style,r=e.classes,t=e.glowColor,l=e.visibility;return{display:n,style:o,classes:r,glowColor:t,visibility:l}}return{floating:t,tabClasses:i,tabStyle:u,Visibility:y.EE,component:l,gatherButtonProps:a,unref:r.unref}}});const Mo=(0,u.Z)(Zo,[["render",Vo],["__scopeId","data-v-13ef5eca"]]);var xo=Mo,wo=Symbol("TabButton"),Co=Symbol("TabFamily");function Bo(e){return(0,K.z2)((function(){var n=e();if(0===Object.keys(n.tabs).length)throw console.warn("Cannot create tab family with 0 tabs",n),"Cannot create tab family with 0 tabs";for(var o in n.id=(0,y.QI)("tabFamily-"),n.type=Co,n[y.wA]=xo,(0,g.Mv)(n,Object.keys(n.tabs)[0]),n.selected=n[g.n9],n.activeTab=(0,r.computed)((function(){var e=(0,r.unref)(l.tabs);if(function(){return void 0!==n[g.n9].value&&null!==n[g.n9].value&&n[g.n9].value[Symbol.for("in")]?n[g.n9].value[Symbol.for("in")](e):n[g.n9].value in e}()&&(0,r.unref)(e[l[g.n9].value].visibility)===y.EE.Visible)return(0,r.unref)(e[l[g.n9].value].tab);var o=Object.values(e).find((function(e){return(0,r.unref)(e.visibility)===y.EE.Visible}));return o?(0,r.unref)(o.tab):null})),(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"style"),n.tabs){var t=n.tabs[o];t.type=wo,t[y.wA]=ko,(0,Q.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,Q.yB)(t,"tab"),(0,Q.yB)(t,"display"),(0,Q.yB)(t,"classes"),(0,Q.yB)(t,"style"),(0,Q.yB)(t,"glowColor")}n[y.tj]=function(){var e=this.visibility,n=this.activeTab,o=this.selected,r=this.tabs,t=this.style,l=this.classes;return{visibility:e,activeTab:n,selected:o,tabs:r,style:t,classes:l}};var l=n;return l}))}var Eo=["disabled"];function Po(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("LinkNode");return function(){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,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,style:(0,r.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},function(){return void 0!==(u=e.unref(e.style))&&null!==(u=e.unref(e.style))&&(u=e.unref(e.style))[Symbol.for("!==")]?(u=e.unref(e.style))[Symbol.for("!==")](null):null!==(u=e.unref(e.style))}()&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](void 0):void 0!==u}()?u:{}]),onClick:n[0]||(n[0]=function(){return e.purchase&&e.purchase.apply(e,arguments)}),class:(0,r.normalizeClass)((0,B.Z)({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:function(){return 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:function(){return 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,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.unref(e.component)),{key:0})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(f,{id:e.id},null,8,["id"])],14,Eo)):(0,r.createCommentVNode)("",!0)}var Io=(0,r.defineComponent)({props:{display:{type:(0,C.P5)(String,Object,Function),required:!0},visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),resource:Object,cost:(0,C.P5)(String,Object,Number),canPurchase:{type:(0,C.P5)(Boolean),required:!0},bought:{type:(0,C.P5)(Boolean),required:!0},mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{LinkNode:R,MarkNode:q},setup:function(e){var n=(0,r.toRefs)(e),o=n.display,t=n.cost,l=(0,r.shallowRef)("");return(0,r.watchEffect)((function(){var n=(0,C.Uv)(o);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}())l.value="";else if((0,C.RU)(n))l.value=(0,C.MM)(n);else{var i=(0,C.Uv)(t),u=(0,C.MM)(n.title||"","h3"),a=(0,C.MM)(n.description,"div"),f=(0,C.MM)(n.effectDisplay||"");l.value=(0,C.MM)((0,y.tZ)((function(){var o;return(0,r.createVNode)("span",null,[n.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(u,null,null)]):null,(0,r.createVNode)(a,null,null),n.effectDisplay?(0,r.createVNode)("div",null,[(0,r.createTextVNode)("Currently: "),(0,r.createVNode)(f,null,null)]):null,function(){return void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource}()?(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Cost: "),e.resource&&V(e.resource,i)," ",null===(o=e.resource)||void 0===o?void 0:o.displayName]):null])})))}})),{component:l,unref:r.unref,Visibility:y.EE}}});const To=(0,u.Z)(Io,[["render",Po],["__scopeId","data-v-3e054969"]]);var Fo=To,Do=Symbol("Upgrade");function Ro(e){return(0,K.z2)((function(){var n=e();return(0,g.Mv)(n,!1),n.id=(0,y.QI)("upgrade-"),n.type=Do,n[y.wA]=Fo,function(){return void 0!==n.canAfford&&null!==n.canAfford&&n.canAfford[Symbol.for("==")]?n.canAfford[Symbol.for("==")](null):null==n.canAfford}()&&(function(){return void 0!==n.resource&&null!==n.resource&&n.resource[Symbol.for("==")]?n.resource[Symbol.for("==")](null):null==n.resource}()||function(){return void 0!==n.cost&&null!==n.cost&&n.cost[Symbol.for("==")]?n.cost[Symbol.for("==")](null):null==n.cost}())&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",n),n.bought=n[g.n9],!function(){return void 0!==n.canAfford&&null!==n.canAfford&&n.canAfford[Symbol.for("==")]?n.canAfford[Symbol.for("==")](null):null==n.canAfford}()?(0,Q.yB)(n,"canAfford"):n.canAfford=(0,r.computed)((function(){var e=n;return function(){return void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource}()&&function(){return void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("!=")]?e.cost[Symbol.for("!=")](null):null!=e.cost}()&&v.ZP.gte(e.resource.value,(0,r.unref)(e.cost))})),n.canPurchase=(0,r.computed)((function(){return(0,r.unref)(n.visibility)===y.EE.Visible&&(0,r.unref)(n.canAfford)&&function(){return void 0!==(0,r.unref)(n.bought)&&null!==(0,r.unref)(n.bought)&&(0,r.unref)(n.bought)[Symbol.for("!")]?(0,r.unref)(n.bought)[Symbol.for("!")]():!(0,r.unref)(n.bought)}()})),n.purchase=function(){var e,o=n;(function(){return void 0!==(0,r.unref)(o.canPurchase)&&null!==(0,r.unref)(o.canPurchase)&&(0,r.unref)(o.canPurchase)[Symbol.for("!")]?(0,r.unref)(o.canPurchase)[Symbol.for("!")]():!(0,r.unref)(o.canPurchase)})()||(function(){return void 0!==o.resource&&null!==o.resource&&o.resource[Symbol.for("!=")]?o.resource[Symbol.for("!=")](null):null!=o.resource}()&&function(){return void 0!==o.cost&&null!==o.cost&&o.cost[Symbol.for("!=")]?o.cost[Symbol.for("!=")](null):null!=o.cost}()&&(o.resource.value=v.ZP.sub(o.resource.value,(0,r.unref)(o.cost))),o[g.n9].value=!0,null===(e=o.onPurchase)||void 0===e||e.call(o))},(0,Q.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,Q.yB)(n,"classes"),(0,Q.yB)(n,"style"),(0,Q.yB)(n,"display"),(0,Q.yB)(n,"mark"),(0,Q.yB)(n,"cost"),(0,Q.yB)(n,"resource"),n[y.tj]=function(){var e=this.display,n=this.visibility,o=this.style,r=this.classes,t=this.resource,l=this.cost,i=this.canPurchase,u=this.bought,a=this.mark,f=this.id,c=this.purchase;return{display:e,visibility:n,style:o,classes:r,resource:t,cost:l,canPurchase:i,bought:u,mark:a,id:f,purchase:c}},n}))}function Oo(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&function(){return void 0!==(0,r.isVNode)(e)&&null!==(0,r.isVNode)(e)&&(0,r.isVNode)(e)[Symbol.for("!")]?(0,r.isVNode)(e)[Symbol.for("!")]():!(0,r.isVNode)(e)}()}var _o=(0,te.createLayer)((function(){var e="c",n="#4BDC13",o="Candies",t=p(0,"lollipops"),l=h(t),i=(0,g.ax)(!1),u=(0,g.ax)("pointy"),a=(0,g.ax)(10),f=(0,g.ax)(new v.ZP(10)),c=(0,r.computed)((function(){return v.ZP.pow(t.value,.2)})),s=(0,r.computed)((function(){return v.ZP.times(t.value,10)})),m=ln((function(){return{title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"}})),b=fo((function(){return{shouldEarn:function(){return v.ZP.gte(l.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}}})),S=fo((function(){return{visibility:function(){return(0,y.Kf)(b.earned.value)},shouldEarn:function(){return v.ZP.gte(l.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(Bn.Z,{title:"beep","onUpdate:modelValue":function(e){return i.value=e},modelValue:i.value},null),(0,r.createVNode)(Bn.Z,{title:"boop","onUpdate:modelValue":function(e){return Ao.boop.value=e},modelValue:Ao.boop.value},null)])}))},style:function(){return this.earned?{backgroundColor:"#1111DD"}:{}}}})),N=[b,S],k=Kn((function(){return{title:"Fun",completionLimit:3,display:function(){return{description:"Makes the game 0% harder<br>".concat((0,v.Ht)(this.completions.value),"/").concat(this.completionLimit," completions"),goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:function(){return void 0!==(0,v.WU)(Z.value)&&null!==(0,v.WU)(Z.value)&&(0,v.WU)(Z.value)[Symbol.for("+")]?(0,v.WU)(Z.value)[Symbol.for("+")]("x"):(0,v.WU)(Z.value)+"x"}()}},visibility:function(){return(0,y.Kf)(v.ZP.gt(l.value,0))},goal:20,resource:Wo.points,onComplete:function(){console.log("hiii")},onEnter:function(){Wo.points.value=0,Wo.best.value=Wo.points.value,Wo.total.value=Wo.points.value,console.log("So challenging")},onExit:function(){console.log("Sweet freedom!")},style:{height:"200px"}}})),Z=(0,r.computed)((function(){return v.ZP.add(t.value,1).tetrate(.02)})),M=Ro((function(){return{display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:t}})),x=Ro((function(){return{display:function(){return{description:"Point generation is faster based on your unspent Lollipops",effectDisplay:"".concat((0,v.WU)(w.value),"x")}},cost:1,resource:t,visibility:function(){return(0,y.Kf)(M.bought.value)}}})),w=(0,r.computed)((function(){var e=v.ZP.add(t.value,1).pow(.5);return e.gte("1e20000000")&&(e=e.sqrt().times("1e10000000")),e})),B=Ro((function(){return{visibility:function(){return(0,y.Kf)(x.bought.value)},canAfford:function(){return v.ZP.lt(Wo.points.value,7)},onPurchase:function(){Wo.points.value=v.ZP.add(Wo.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style:function(){var e=this;return this.bought?{backgroundColor:"#1111dd"}:function(){return void 0!==e.canAfford&&null!==e.canAfford&&e.canAfford[Symbol.for("!")]?e.canAfford[Symbol.for("!")]():!e.canAfford}()?{backgroundColor:"#dd1111"}:{}}}})),E=Ro((function(){return{resource:p(I.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}}})),P=[M,x,B],I=Gn((function(){return{resource:t,cost:function(){var e=new v.ZP(this.amount.value);e.gte(25)&&(e=e.pow(2).div(25));var n=v.ZP.pow(2,e.pow(1.5));return n.floor()},display:function(){return{title:"Exhancers",description:"Adds ".concat((0,v.WU)(T.value)," things and multiplies stuff by ").concat((0,v.WU)(F.value),".")}},onPurchase:function(e){f.value=v.ZP.add(f.value,e)},style:{height:"222px"},purchaseLimit:4}})),T=(0,r.computed)((function(){return v.ZP.gte(I.amount.value,0)?v.ZP.pow(25,v.ZP.pow(I.amount.value,1.1)):v.ZP.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](25):.04}(),v.ZP.times(I.amount.value,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()).pow(1.1))})),F=(0,r.computed)((function(){return v.ZP.gte(I.amount.value,0)?v.ZP.pow(25,v.ZP.pow(I.amount.value,1.1)):v.ZP.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](25):.04}(),v.ZP.times(I.amount.value,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()).pow(1.1))})),D=(0,g.ax)(!1),R=(0,r.ref)(!1),O=qe((function(){return{small:!0,display:"Respec Thingies",onClick:function(){D.value&&function(){return void 0!==R.value&&null!==R.value&&R.value[Symbol.for("!")]?R.value[Symbol.for("!")]():!R.value}()?R.value=!0:(t.value=v.ZP.add(t.value,f.value),I.amount.value=0,Wo.tree.reset(G))}}})),_=qe((function(){return{small:!0,display:"Sell One",onClick:function(){v.ZP.lte(I.amount.value,0)||(I.amount.value=v.ZP.sub(I.amount.value,1),t.value=v.ZP.add(t.value,I.cost.value),f.value=v.ZP.sub(f.value,I.cost.value))}}})),j=(0,y.tZ)((function(){return(0,r.createVNode)(En.Z,null,{default:function(){return[(0,r.createVNode)(ue.Z,null,{default:function(){return[(0,r.createVNode)(Bn.Z,{title:"Confirm","onUpdate:modelValue":function(e){return D.value=e},modelValue:D.value},null),(0,C._4)(O)]}}),(0,C._4)(I),(0,C._4)(_),(0,r.createVNode)(On.Z,{modelValue:R.value,"onUpdate:modelValue":function(e){return R.value=e}},{header:function(){return(0,r.createVNode)("h2",null,[(0,r.createTextVNode)("Confirm Respec")])},body:function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.createTextVNode)("Are you sure? Respeccing these doesn't accomplish much")])},footer:function(){return(0,r.createVNode)("div",{class:"modal-default-footer"},[(0,r.createVNode)("div",{class:"modal-default-flex-grow"},null),(0,r.createVNode)("button",{class:"button modal-default-button",onClick:function(){return R.value=!1}},[(0,r.createTextVNode)("Cancel")]),(0,r.createVNode)("button",{class:"button modal-default-button danger",onClick:function(){O.onClick(),R.value=!1}},[(0,r.createTextVNode)("Respec")])])}})]}})})),U=zn((function(){return{fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:An.Right,width:300,height:30,progress:function(){return v.ZP.add(Wo.points.value,1).log(10).div(10).toNumber()},display:function(){return function(){return void 0!==(0,v.WU)(Wo.points.value)&&null!==(0,v.WU)(Wo.points.value)&&(0,v.WU)(Wo.points.value)[Symbol.for("+")]?(0,v.WU)(Wo.points.value)[Symbol.for("+")](" / 1e10 points"):(0,v.WU)(Wo.points.value)+" / 1e10 points"}()}}})),A=zn((function(){return{fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:An.Up,width:50,height:200,progress:function(){return v.ZP.div(Wo.points.value,100)},display:function(){return function(){return void 0!==(0,v.Ht)(v.ZP.div(Wo.points.value,1).min(100))&&null!==(0,v.Ht)(v.ZP.div(Wo.points.value,1).min(100))&&(0,v.Ht)(v.ZP.div(Wo.points.value,1).min(100))[Symbol.for("+")]?(0,v.Ht)(v.ZP.div(Wo.points.value,1).min(100))[Symbol.for("+")]("%"):(0,v.Ht)(v.ZP.div(Wo.points.value,1).min(100))+"%"}()}}})),q=zn((function(){return{fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:An.Up,width:100,height:30,progress:function(){return v.ZP.div(t.value,50)}}})),L=He((function(){return{scaling:Xe(Ge(10,5,.5),1e100,.5),baseResource:Wo.points,gainResource:t,roundUpCost:!0}})),z=fn((function(){return{thingsToReset:function(){return[_o]}}})),W=[no((function(){return{key:"c",description:"reset for lollipops or whatever",onPress:function(){H.canClick.value&&H.onClick()}}})),no((function(){return{key:"ctrl+c",description:"respec things",onPress:function(){O.onClick()}}}))],G=ze((function(){return{layerID:e,color:n,reset:z,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip:function(){var e=V(t);return v.ZP.gt(I.amount.value,0)&&(e=function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")]("<br><i><br><br><br>".concat((0,v.Ht)(I.amount.value)," Exhancers</i>")):e+"<br><i><br><br><br>".concat((0,v.Ht)(I.amount.value)," Exhancers</i>")}()),e},style:{color:"#3325CC",textDecoration:"underline"}}})),H=Le((function(){return{conversion:L,tree:Wo.tree,treeNode:G,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}})),Y=ne((function(){return{display:"TH",color:"#6d3678",canClick:function(){return v.ZP.gte(Wo.points.value,10)},tooltip:"Thanos your points",onClick:function(){Wo.points.value=v.ZP.div(Wo.points.value,2),console.log("Thanos'd")},glowColor:function(){return v.ZP.eq(I.amount.value,1)?"orange":""}}})),J=ne((function(){return{display:"h",color:function(){return he.Z[Ne.ZP.theme].variables["--locked"]},tooltip:{display:(0,r.computed)((function(){return"Restore your points to ".concat((0,v.WU)(a.value))})),right:!0},canClick:function(){return v.ZP.lt(Wo.points.value,a.value)},onClick:function(){Wo.points.value=a.value}}})),X=ne((function(){return{visibility:y.EE.Hidden}})),Q=oe((function(){return{nodes:function(){return[[Ao.treeNode,G],[Y,X,J]]},branches:function(){return[{startNode:Ao.treeNode,endNode:G,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:G,endNode:Y},{startNode:Y,endNode:J}]}}})),K=Bo((function(){return{tabs:{first:{tab:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[C._4.apply(void 0,P),(0,C._4)(E),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("confirmed")])])})),display:"first"},second:{tab:Ao.display,display:"second"}},style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}}})),$=Bo((function(){return{tabs:{mainTab:{tab:go((function(){return{display:(0,y.tZ)((function(){var e;return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(Nn,{resource:t,color:n,effectDisplay:"which are boosting waffles by ".concat((0,v.WU)(c.value)," and increasing the Ice Cream cap by ").concat((0,v.WU)(s.value))},null),(0,r.createVNode)(Tn,null,Oo(e=(0,C.sY)(H))?e:{default:function(){return[e]}}),(0,r.createVNode)(dn,{resource:t,color:n},null),(0,r.createVNode)(d,{height:"5px"},null),(0,r.createVNode)("button",{onClick:function(){return console.log("yeet")}},[(0,r.createTextVNode)("'HI'")]),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("Name your points!")]),(0,r.createVNode)(Cn.Z,{modelValue:u.value,"onUpdate:modelValue":function(e){return u.value=e}},null),(0,r.createVNode)(Tn,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:function(){return[(0,r.createTextVNode)("I have "),V(Wo.points),(0,r.createTextVNode)(" "),u.value,(0,r.createTextVNode)(" points!")]}}),(0,r.createVNode)("hr",null,null),C.Dy.apply(void 0,N),(0,r.createVNode)(d,null,null),C._4.apply(void 0,P),(0,C._4)(E),(0,C._4)(k)])}))}})),display:"main tab",glowColor:function(){return M.canPurchase.value||x.canPurchase.value||B.canPurchase.value||k.canComplete.value?"blue":""},style:{color:"orange"}},thingies:{tab:go((function(){return{style:function(){return{backgroundColor:"#222222","--background":"#222222"}},display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,C.sY)(j),(0,r.createVNode)(d,null,null),(0,r.createVNode)(ue.Z,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:function(){return[(0,r.createVNode)(Bn.Z,{"onUpdate:modelValue":function(e){return i.value=e},modelValue:i.value},null),(0,r.createVNode)(d,{width:"30px",height:"10px"},null),(0,r.createVNode)("div",null,[(0,r.createVNode)("span",null,[(0,r.createTextVNode)("Beep")])]),(0,r.createVNode)(d,null,null),(0,r.createVNode)(Rn,{height:"200px"},null)]}}),(0,r.createVNode)(d,null,null),(0,r.createVNode)("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)])}))}})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}},jail:{tab:go((function(){return{display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,C.sY)(m),(0,C.sY)(U),(0,r.createVNode)(d,null,null),(0,r.createVNode)(ue.Z,null,{default:function(){return[(0,r.createVNode)(En.Z,{style:"background-color: #555555; padding: 15px"},{default:function(){return[(0,r.createVNode)("div",{style:"color: teal"},[(0,r.createTextVNode)("Sugar level:")]),(0,r.createVNode)(d,null,null),(0,C.sY)(A)]}}),(0,r.createVNode)(d,null,null),(0,r.createVNode)(En.Z,null,{default:function(){return[(0,r.createVNode)("div",null,[(0,r.createTextVNode)("idk")]),(0,r.createVNode)(d,{width:"0",height:"50px"},null),(0,C.sY)(q)]}})]}}),(0,r.createVNode)(d,null,null),(0,r.createVNode)("div",null,[(0,r.createTextVNode)('It\'s jail because "bars"! So funny! Ha ha!')]),(0,C.sY)(Q)])}))}})),display:"jail"},illuminati:{tab:go((function(){return{display:(0,y.tZ)((function(){return(0,r.createVNode)("div",null,[(0,r.createVNode)("h1",null,[(0,r.createTextVNode)(" C O N F I R M E D ")]),(0,r.createVNode)(d,null,null),(0,C.sY)(K),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("Adjust how many points H gives you!")]),(0,r.createVNode)(wn,{"onUpdate:modelValue":function(e){return a.value=e},modelValue:a.value,min:1,max:30},null)])})),style:{backgroundColor:"#3325CC"}}})),visibility:function(){return(0,y.Kf)(B.bought.value)},display:"illuminati"}}}}));return{id:e,color:n,name:o,links:function(){var e=Q.links.value.slice();return e.push({startNode:J,endNode:q,"stroke-width":"5px",stroke:"red",offsetEnd:{x:function(){return(-50)[Symbol.for("+")]?(-50)[Symbol.for("+")](100*q.progress.value.toNumber()):100*q.progress.value.toNumber()-50}(),y:0}}),e},points:t,best:l,beep:i,thingy:u,otherThingy:a,spentOnBuyables:f,waffleBoost:c,icecreamCap:s,coolInfo:m,lollipopMilestones:N,funChallenge:k,funEffect:Z,generatorUpgrade:M,lollipopMultiplierUpgrade:x,lollipopMultiplierEffect:w,unlockIlluminatiUpgrade:B,quasiUpgrade:E,exhancers:I,respecBuyables:O,sellExhancer:_,bars:{tallBoi:A,longBoi:U,flatBoi:q},tree:Q,g:Y,h:J,spook:X,conversion:L,reset:z,hotkeys:W,treeNode:G,resetButton:H,confirmRespec:D,minWidth:800,tabs:$,display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,C.sY)($)])}))}})),jo=_o,Uo=(0,te.createLayer)((function(){var e="f",n="#FE0102",o="Farms",t=p(0,"farm points"),l=(0,g.ax)(!1),i=ln((function(){return{title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}}})),u=(0,g.ax)("Start"),a=qe((function(){return{display:function(){return{title:"Clicky clicky!",description:function(){return"Current state:<br>"[Symbol.for("+")]?"Current state:<br>"[Symbol.for("+")](u.value):"Current state:<br>"+u.value}()}},initialState:"Start",canClick:function(){return function(){return void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!==")]?u.value[Symbol.for("!==")]("Borkened..."):"Borkened..."!==u.value}()},onClick:function(){switch(u.value){case"Start":u.value="A new state!";break;case"A new state!":u.value="Keep going!";break;case"Keep going!":u.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":u.value="Borkened...";break;default:u.value="Start";break}},onHold:function(){console.log("Clickkkkk...")},style:function(){switch(u.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{}}}}})),f=qe((function(){return{onClick:function(){(function(){return void 0!==u.value&&null!==u.value&&u.value[Symbol.for("==")]?u.value[Symbol.for("==")]("Borkened..."):"Borkened..."==u.value})()&&(u.value="Start")},display:function(){return function(){return void 0!==u.value&&null!==u.value&&u.value[Symbol.for("==")]?u.value[Symbol.for("==")]("Borkened..."):"Borkened..."==u.value}()?"Fix the clickable!":"Does nothing"}}})),c=fn((function(){return{thingsToReset:function(){return[Uo]}}})),s=Ye((function(){return{scaling:Ge(10,3,.5),baseResource:Wo.points,gainResource:t,modifyGainAmount:function(e){return v.ZP.times(e,jo.otherThingy.value)}}})),m=ze((function(){return{layerID:e,color:n,reset:c,tooltip:function(){return m.canClick.value?"".concat(V(t)," ").concat(t.displayName):"This weird farmer dinosaur will only see you if you have at least 10 points. You only have ".concat(V(Wo.points))},canClick:function(){return v.ZP.gte(Wo.points.value,10)}}})),d=Le((function(){return{conversion:s,tree:Wo.tree,treeNode:m,display:(0,y.tZ)((function(){return d.conversion.buyMax?(0,r.createVNode)("span",null,[(0,r.createTextVNode)("Hi! I'm a "),(0,r.createVNode)("u",null,[(0,r.createTextVNode)("weird dinosaur")]),(0,r.createTextVNode)(" and I'll give you")," ",(0,r.createVNode)("b",null,[(0,v.Ht)(d.conversion.currentGain.value)]),(0,r.createTextVNode)(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",(0,v.Ht)(d.conversion.nextAt.value),(0,r.createTextVNode)(" points)")]):(0,r.createVNode)("span",null,[(0,r.createTextVNode)("Hi! I'm a "),(0,r.createVNode)("u",null,[(0,r.createTextVNode)("weird dinosaur")]),(0,r.createTextVNode)(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",(0,v.Ht)(d.conversion.nextAt.value),(0,r.createTextVNode)(" points)")])}))}})),b=(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,C.sY)(i),(0,r.createVNode)(Nn,{resource:t,color:n},null),(0,C.sY)(d),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("You have "),(0,v.Ht)(s.baseResource.value),(0,r.createTextVNode)(" points")]),(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createVNode)("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("Bork Bork!")])]),(0,C.sY)(a)])}));return{id:e,color:n,name:o,points:t,boop:l,coolInfo:i,clickable:a,clickableState:u,resetClickable:f,reset:c,conversion:s,treeNode:m,resetButton:d,display:b}})),Ao=Uo;function qo(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&function(){return void 0!==(0,r.isVNode)(e)&&null!==(0,r.isVNode)(e)&&(0,r.isVNode)(e)[Symbol.for("!")]?(0,r.isVNode)(e)[Symbol.for("!")]():!(0,r.isVNode)(e)}()}var Lo=(0,te.createLayer)((function(){var e="a",n="yellow",o="Achievements",t=p(0,"achievement power"),l=ne((function(){return{display:"A",color:n,tooltip:{display:"Achievements",right:!0},onClick:function(){Wo.showAchievements()}}})),i=ve((function(){return{image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:(0,r.computed)((function(){return i.earned.value?"You did it!":"How did this happen?"})),shouldEarn:!0}})),u=ve((function(){return{display:"Impossible!",tooltip:(0,r.computed)((function(){return u.earned.value?"HOW????":"Mwahahaha!"})),style:{color:"#04e050"}}})),a=ve((function(){return{display:"EIEIO",tooltip:"Get a farm point.\n\nReward: The dinosaur is now your friend (you can max Farm Points).",shouldEarn:function(){return v.ZP.gte(Ao.points.value,1)},onComplete:function(){console.log("Bork bork bork!")}}})),f=[i,u,a],c=De((function(){return{rows:2,cols:2,getStartState:function(e){return e},getStyle:function(e,n){return{backgroundColor:"#".concat(function(){return 1234*Number(n)!==void 0&&1234*Number(n)!==null&&(1234*Number(n))[Symbol.for("%")]?(1234*Number(n))[Symbol.for("%")](999999):1234*Number(n)%999999}())}},getTitle:function(e){var n=this,o="";return"101"===e?o="top":"102"===e?o="bottom":"201"===e?o="left":"202"===e&&(o="right"),(0,y.tZ)((function(){return(0,r.createVNode)(L.Z,(0,r.mergeProps)({display:JSON.stringify(n.cells[e].style)},(0,ie.Z)({},o,!0)),{default:function(){return[(0,r.createVNode)("h3",null,[(0,r.createTextVNode)("Gridable #"),e])]}})}))},getDisplay:function(e,n){return String(n)},getCanClick:function(){return v.ZP.eq(Wo.points.value,10)},onClick:function(e,n){this.cells[e].state=function(){return void 0!==Number(n)&&null!==Number(n)&&Number(n)[Symbol.for("+")]?Number(n)[Symbol.for("+")](1):Number(n)+1}()}}})),s=(0,y.tZ)((function(){var e,n,o;return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(ue.Z,null,{default:function(){return[(0,r.createVNode)(L.Z,{display:i.tooltip,bottom:!0},qo(e=(0,C.sY)(i))?e:{default:function(){return[e]}}),(0,r.createVNode)(L.Z,{display:u.tooltip,bottom:!0},qo(n=(0,C.sY)(u))?n:{default:function(){return[n]}}),(0,r.createVNode)(L.Z,{display:a.tooltip,bottom:!0},qo(o=(0,C.sY)(a))?o:{default:function(){return[o]}})]}}),(0,C._4)(c)])}));return{id:e,color:n,name:o,points:t,achievements:f,grid:c,treeNode:l,display:s}})),zo=Lo,Wo=(0,te.createLayer)((function(){var e=p(10),n=h(e),o=N(e),t=(0,r.computed)((function(){if(function(){return void 0!==jo.generatorUpgrade.bought.value&&null!==jo.generatorUpgrade.bought.value&&jo.generatorUpgrade.bought.value[Symbol.for("!")]?jo.generatorUpgrade.bought.value[Symbol.for("!")]():!jo.generatorUpgrade.bought.value}())return new v.ZP(0);var e=new v.ZP(3.19);return jo.lollipopMultiplierUpgrade.bought.value&&(e=e.times(jo.lollipopMultiplierEffect.value)),e}));S.globalBus.on("update",(function(n){e.value=v.ZP.add(e.value,v.ZP.times(t.value,n))}));var l=k(e,t),i=(0,te.setupLayerModal)(zo),u=i.openModal,a=i.modal,f=oe((function(){return{nodes:[[jo.treeNode],[Ao.treeNode,jo.spook]],leftSideNodes:[zo.treeNode,jo.h],branches:[{startNode:Ao.treeNode,endNode:jo.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset:function(){e.value=(0,r.toRaw)(this.resettingNode.value)===(0,r.toRaw)(jo.treeNode)?0:10,n.value=e.value,o.value=e.value},resetPropagation:re}}));return{id:"main",name:"Tree",links:f.links,display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Game Paused")]),[[r.vShow,0===le.Z.devSpeed]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Dev Speed: "),(0,v.WU)(le.Z.devSpeed||0),(0,r.createTextVNode)("x")]),[[r.vShow,le.Z.devSpeed&&function(){return void 0!==le.Z.devSpeed&&null!==le.Z.devSpeed&&le.Z.devSpeed[Symbol.for("!==")]?le.Z.devSpeed[Symbol.for("!==")](1):1!==le.Z.devSpeed}()]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Offline Time: "),(0,v.mr)(le.Z.offlineTime||0)]),[[r.vShow,function(){return void 0!==le.Z.offlineTime&&null!==le.Z.offlineTime&&le.Z.offlineTime[Symbol.for("!=")]?le.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=le.Z.offlineTime}()]]),(0,r.createVNode)("div",null,[(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)("You have ")]),[[r.vShow,v.ZP.lt(e.value,"1e1000")]]),(0,r.createVNode)("h2",null,[(0,v.WU)(e.value)]),(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)(" points")]),[[r.vShow,v.ZP.lt(e.value,"1e1e6")]])]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("("),l.value,(0,r.createTextVNode)(")")]),[[r.vShow,v.ZP.gt(t.value,0)]]),(0,r.createVNode)(d,null,null),(0,r.createVNode)("button",{onClick:u},[(0,r.createTextVNode)("open achievements")]),(0,C.sY)(a),(0,C.sY)(f),(0,r.createVNode)(c,{height:"200px",style:"margin: 10px auto; display: block"},null)])})),points:e,best:n,total:o,oomps:l,tree:f,showAchievements:u}})),Go=function(e){return[Wo,Ao,jo,zo]},Ho=(0,r.computed)((function(){return v.ZP.gt(Wo.points.value,25)}));function Yo(e,n){}},9365:function(e,n,o){"use strict";o.r(n),o.d(n,{layers:function(){return m},createLayer:function(){return d},addLayer:function(){return y},getLayer:function(){return b},removeLayer:function(){return v},reloadLayer:function(){return S},setupLayerModal:function(){return g}});var r=o(4865),t=(o(2526),o(1817),o(1539),o(8309),o(4747),o(2479),o(7286)),l=o(6113),i=o(9583),u=o(3273),a=o(8111),f=o(7302),c=o(4061),s=o(5967),m={};function d(e){return(0,u.z2)((function(){var n=e(),o=n.emitter=(0,a.i)();return n.on=o.on.bind(o),n.emit=o.emit.bind(o),n.minimized=(0,c.ax)(!1),(0,i.yB)(n,"color"),(0,i.yB)(n,"display"),(0,i.yB)(n,"name"),(0,l.Rh)(n,"name",n.id),(0,i.yB)(n,"minWidth"),(0,l.Rh)(n,"minWidth",600),(0,i.yB)(n,"minimizable"),(0,l.Rh)(n,"minimizable",!0),(0,i.yB)(n,"links"),n}))}function y(e,n){console.info("Adding layer",e.id),m[e.id]?console.error("Attempted to add layer with same ID as existing layer",e.id,m[e.id]):((0,l.Rh)(n,"layers",{}),function(){return void 0!==n.layers[e.id]&&null!==n.layers[e.id]&&n.layers[e.id][Symbol.for("==")]?n.layers[e.id][Symbol.for("==")](null):null==n.layers[e.id]}()&&(n.layers[e.id]={}),m[e.id]=e,f.globalBus.emit("addLayer",e,n.layers[e.id]))}function b(e){return m[e]}function v(e){console.info("Removing layer",e.id),f.globalBus.emit("removeLayer",e),m[e.id]=void 0}function S(e){v(e),y(e,s.Z)}function g(e){var n=(0,r.ref)(!1);return{openModal:function(){return n.value=!0},modal:(0,l.tZ)((function(){return(0,r.createVNode)(t.Z,{modelValue:n.value,"onUpdate:modelValue":function(e){return n.value=e}},{header:function(){return(0,r.createVNode)("h2",null,[(0,r.unref)(e.name)])},body:(0,r.unref)(e.display)})}))}}window.layers=m,f.globalBus.on("update",(function(e){Object.values(m).forEach((function(n){null===n||void 0===n||n.emit("preUpdate",e)})),Object.values(m).forEach((function(n){null===n||void 0===n||n.emit("update",e)})),Object.values(m).forEach((function(n){null===n||void 0===n||n.emit("postUpdate",e)}))}))},1604:function(e,n,o){"use strict";o.d(n,{MM:function(){return c},sY:function(){return s},_4:function(){return m},Dy:function(){return d},RU:function(){return y},ix:function(){return b},vq:function(){return v},KO:function(){return S},o9:function(){return g},Uv:function(){return p},P5:function(){return h}});var r=o(3336),t=o(4865),l=(o(2526),o(1817),o(1539),o(3210),o(2222),o(1249),o(6699),o(2023),o(9905)),i=o(274),u=o(6113),a=o(9583);function f(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&function(){return void 0!==(0,t.isVNode)(e)&&null!==(0,t.isVNode)(e)&&(0,t.isVNode)(e)[Symbol.for("!")]?(0,t.isVNode)(e)[Symbol.for("!")]():!(0,t.isVNode)(e)}()}function c(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:"span";return"function"===typeof e?(0,t.defineComponent)({render:e}):"string"===typeof e?function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0}()?(e=e.trim(),function(){return void 0!==e.charAt(0)&&null!==e.charAt(0)&&e.charAt(0)[Symbol.for("!==")]?e.charAt(0)[Symbol.for("!==")]("<"):"<"!==e.charAt(0)}()&&(e="<".concat(o,">").concat(e,"</").concat(o,">")),(0,t.defineComponent)({template:e})):(0,t.defineComponent)({render:function(){return{}}}):e}function s(e){if(y(e))return"function"===typeof e?e():c(e);var n=e[u.wA];return(0,t.createVNode)(n,e[u.tj](),null)}function m(){for(var e,n=arguments.length,o=new Array(n),l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](n):l<n}();function(){return void 0!==l&&null!==l&&"object"===(0,r.Z)(l)&&l[Symbol.for("postfix-increment")]?l[Symbol.for("postfix-increment")]():l++}())o[l]=arguments[l];return(0,t.createVNode)(i.Z,null,f(e=o.map(s))?e:{default:function(){return[e]}})}function d(){for(var e,n=arguments.length,o=new Array(n),i=0;function(){return void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](n):i<n}();function(){return void 0!==i&&null!==i&&"object"===(0,r.Z)(i)&&i[Symbol.for("postfix-increment")]?i[Symbol.for("postfix-increment")]():i++}())o[i]=arguments[i];return(0,t.createVNode)(l.Z,null,f(e=o.map(s))?e:{default:function(){return[e]}})}function y(e){return"string"===typeof e||("object"===(0,r.Z)(e)?!function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&(function(){return"render"[Symbol.for("in")]?"render"[Symbol.for("in")](e):"render"in e}()||function(){return"component"[Symbol.for("in")]?"component"[Symbol.for("in")](e):"component"in e}()):"function"===typeof e&&!0===e[a.mM])}function b(e,n){var o=(0,t.ref)(null);function r(){(function(){return void 0!==o.value&&null!==o.value&&o.value[Symbol.for("!")]?o.value[Symbol.for("!")]():!o.value})()&&(o.value=setInterval(i,250))}function l(){o.value&&(clearInterval(o.value),o.value=null)}function i(){n&&n.value?n.value():e&&e.value&&e.value()}return{start:r,stop:l,handleHolding:i}}function v(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:"div",r=(0,t.shallowRef)();return(0,t.watchEffect)((function(){r.value=c(p(e),o)})),r}function S(e){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:"div",r=(0,t.shallowRef)(null);return(0,t.watchEffect)((function(){var n=p(e);r.value=function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()?null:c(n,o)})),r}function g(e){return(0,t.computed)((function(){return p(e)}))}function p(e){return(0,t.unref)((0,t.unref)(e))}function h(){for(var e=arguments.length,n=new Array(e),o=0;function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](e):o<e}();function(){return void 0!==o&&null!==o&&"object"===(0,r.Z)(o)&&o[Symbol.for("postfix-increment")]?o[Symbol.for("postfix-increment")]():o++}())n[o]=arguments[o];return function(){return void 0!==n.includes(Object)&&null!==n.includes(Object)&&n.includes(Object)[Symbol.for("!")]?n.includes(Object)[Symbol.for("!")]():!n.includes(Object)}()&&n.push(Object),n}},7286:function(e,n,o){"use strict";o.d(n,{Z:function(){return S}});o(2526),o(1817),o(1539);var r=o(4865),t=o(7172),l=["onPointerdown"],i={class:"modal-wrapper"},u={class:"modal-container"},a={class:"modal-header"},f=(0,r.createTextVNode)(" default header "),c={class:"modal-body"},s=(0,r.createTextVNode)(" default body "),m=(0,r.createTextVNode)(" default body "),d={class:"modal-footer"},y=(0,r.createElementVNode)("div",{class:"modal-default-flex-grow"},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),b=(0,r.defineComponent)({props:{modelValue:{type:Boolean},links:null},emits:["update:modelValue"],setup:function(e,n){var o=n.expose,b=n.emit,v=e,S=(0,r.toRefs)(v),g=(0,r.computed)((function(){return S.modelValue||h.value}));function p(){b("update:modelValue",!1)}var h=(0,r.ref)(!1);return o({isOpen:g}),function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"#modal-root"},[(0,r.createVNode)(r.Transition,{name:"modal",onBeforeEnter:o[0]||(o[0]=function(e){return h.value=!0}),onAfterLeave:o[1]||(o[1]=function(e){return h.value=!1})},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",(0,r.mergeProps)({class:"modal-mask",onPointerdown:(0,r.withModifiers)(p,["self"])},n.$attrs),[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(n.$slots,"header",{shown:(0,r.unref)(g)},(function(){return[f]}))]),(0,r.createElementVNode)("div",c,[e.links?((0,r.openBlock)(),(0,r.createBlock)(t.Z,{key:0,links:e.links},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(n.$slots,"body",{shown:(0,r.unref)(g)},(function(){return[s]}))]})),_:3},8,["links"])):(0,r.renderSlot)(n.$slots,"body",{key:1,shown:(0,r.unref)(g)},(function(){return[m]}))]),(0,r.createElementVNode)("div",d,[(0,r.renderSlot)(n.$slots,"footer",{shown:(0,r.unref)(g)},(function(){return[(0,r.createElementVNode)("div",{class:"modal-default-footer"},[y,(0,r.createElementVNode)("button",{class:"button modal-default-button",onClick:p}," Close ")])]}))])])])],16,l),[[r.vShow,e.modelValue]])]})),_:3})])}}});const v=b;var S=v},5939:function(e,n,o){"use strict";o.d(n,{Z:function(){return f}});var r=o(4865);function t(e,n,o,t,l,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["tooltip-container",{shown:e.isShown}]),onMouseenter:n[0]||(n[0]=function(n){return e.isHovered=!0}),onMouseleave:n[1]||(n[1]=function(n){return e.isHovered=!1})},[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0),(0,r.createVNode)(r.Transition,{name:"fade"},{default:(0,r.withCtx)((function(){return[e.isShown?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["tooltip",{top:e.unref(e.top),left:e.unref(e.left),right:e.unref(e.right),bottom:e.unref(e.bottom)}]),style:(0,r.normalizeStyle)({"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"})},[e.comp?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.comp),{key:0})):(0,r.createCommentVNode)("",!0)],6)):(0,r.createCommentVNode)("",!0)]})),_:1})],34)}var l=o(1604),i=(0,r.defineComponent)({props:{display:(0,l.P5)(Object,String,Function),top:(0,l.P5)(Boolean),left:(0,l.P5)(Boolean),right:(0,l.P5)(Boolean),bottom:(0,l.P5)(Boolean),xoffset:(0,l.P5)(String),yoffset:(0,l.P5)(String),force:(0,l.P5)(Boolean)},setup:function(e){var n=(0,r.toRefs)(e),o=n.display,t=n.force,i=(0,r.ref)(!1),u=(0,r.computed)((function(){return((0,l.Uv)(t)||i.value)&&a.value})),a=(0,l.KO)(o);return{isHovered:i,isShown:u,comp:a,unref:r.unref}}}),u=o(3744);const a=(0,u.Z)(i,[["render",t],["__scopeId","data-v-2ee899a0"]]);var f=a},3520:function(e,n,o){"use strict";o.d(n,{Z:function(){return c}});o(9826),o(1539),o(2526),o(1817);var r=o(4865),t=o(1604),l=o(9179),i={class:"field"},u={key:0,class:"field-title"},a=(0,r.defineComponent)({props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup:function(e,n){var o=n.emit,a=e,f=(0,t.KO)((0,r.toRef)(a,"title"),"span"),c=(0,r.ref)(a.options.find((function(e){return e.value===a.modelValue})));function s(e){o("update:modelValue",e.value)}return(0,r.watch)((0,r.toRef)(a,"modelValue"),(function(e){(function(){var n,o,r,t,l;return void 0!==(null===(n=c.value)||void 0===n?void 0:n.value)&&null!==(null===(o=c.value)||void 0===o?void 0:o.value)&&(null===(r=c.value)||void 0===r?void 0:r.value)[Symbol.for("!==")]?(null===(t=c.value)||void 0===t?void 0:t.value)[Symbol.for("!==")](e):(null===(l=c.value)||void 0===l?void 0:l.value)!==e})()&&(c.value=a.options.find((function(n){return n.value===e})))})),function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.unref)(f)?((0,r.openBlock)(),(0,r.createElementBlock)("span",u,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(f))))])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)((0,r.unref)(l.Z),{options:e.options,modelValue:c.value,"onUpdate:modelValue":[o[0]||(o[0]=function(e){return c.value=e}),s],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])])}}});const f=a;var c=f},1033:function(e,n,o){"use strict";o.d(n,{Z:function(){return d}});o(2526),o(1817),o(1539);var r=o(4865),t=o(1604),l=o(7197),i=["onSubmit"],u={class:"field"},a={key:0,class:"field-title"},f=["placeholder"],c=(0,r.defineComponent)({props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup:function(e,n){var o=n.emit,c=e,s=(0,r.toRefs)(c),m=(0,r.computed)((function(){var e;return(null===(e=s.title)||void 0===e?void 0:e.value)&&(0,t.MM)((0,r.unref)(s.title.value),"span")})),d=(0,r.ref)(null);(0,r.onMounted)((function(){var e;null===(e=d.value)||void 0===e||e.focus()}));var y=(0,r.computed)({get:function(){return(0,r.unref)(s.modelValue)||""},set:function(e){o("update:modelValue",e)}});function b(){o("submit")}return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("form",{onSubmit:(0,r.withModifiers)(b,["prevent"])},[(0,r.createElementVNode)("div",u,[(0,r.unref)(m)?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(m))))])):(0,r.createCommentVNode)("",!0),e.textArea?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(l.Z),{key:1,modelValue:(0,r.unref)(y),"onUpdate:modelValue":o[0]||(o[0]=function(e){return(0,r.isRef)(y)?y.value=e:null}),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:b,ref_key:"field",ref:d},null,8,["modelValue","placeholder","maxHeight"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:2,type:"text","onUpdate:modelValue":o[1]||(o[1]=function(e){return(0,r.isRef)(y)?y.value=e:null}),placeholder:e.placeholder,class:(0,r.normalizeClass)({fullWidth:function(){return void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title}()}),onBlur:b,ref_key:"field",ref:d},null,42,f)),[[r.vModelText,(0,r.unref)(y)]])])],40,i)}}}),s=o(3744);const m=(0,s.Z)(c,[["__scopeId","data-v-540fa62c"]]);var d=m},900:function(e,n,o){"use strict";o.d(n,{Z:function(){return f}});o(2526),o(1817),o(1539);var r=o(4865),t=o(1604),l={class:"field"},i=(0,r.defineComponent)({props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup:function(e,n){var o=n.emit,i=e,u=(0,r.computed)((function(){return(0,t.MM)((0,r.unref)(i.title)||"<span></span>","span")})),a=(0,r.computed)({get:function(){return function(){return void 0!==!i.modelValue&&null!==!i.modelValue&&(!i.modelValue)[Symbol.for("!")]?(!i.modelValue)[Symbol.for("!")]():!!i.modelValue}()},set:function(e){o("update:modelValue",e)}});return function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("label",l,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.isRef)(a)?a.value=e:null})},null,512),[[r.vModelCheckbox,(0,r.unref)(a)]]),((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(u))))])}}}),u=o(3744);const a=(0,u.Z)(i,[["__scopeId","data-v-7db643c6"]]);var f=a},9905:function(e,n,o){"use strict";o.d(n,{Z:function(){return f}});var r=o(4865),t=o(5679),l=o(9266),i={class:"table"},u=(0,r.defineComponent)({setup:function(e){var n=(0,r.computed)((function(){return t.Z[l.ZP.theme].mergeAdjacent}));return function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["col",{mergeAdjacent:(0,r.unref)(n)}])},[(0,r.renderSlot)(e.$slots,"default")],2)])}}});const a=u;var f=a},274:function(e,n,o){"use strict";o.d(n,{Z:function(){return f}});var r=o(4865),t=o(5679),l=o(9266),i={class:"table"},u=(0,r.defineComponent)({setup:function(e){var n=(0,r.computed)((function(){return t.Z[l.ZP.theme].mergeAdjacent}));return function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["row",{mergeAdjacent:(0,r.unref)(n)}])},[(0,r.renderSlot)(e.$slots,"default")],2)])}}});const a=u;var f=a},7172:function(e,n,o){"use strict";o.d(n,{Z:function(){return m}});o(2526),o(1817),o(1539),o(7327),o(4747),o(7941);var r=o(4865),t=o(630),l=(o(9254),["x1","y1","x2","y2"]),i=(0,r.defineComponent)({props:{link:null,startNode:null,endNode:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=(0,r.computed)((function(){var e={x:o.startNode.value.x||0,y:o.startNode.value.y||0};return o.link.value.offsetStart&&(e.x=function(){return void 0!==e.x&&null!==e.x&&e.x[Symbol.for("+")]?e.x[Symbol.for("+")]((0,r.unref)(o.link.value.offsetStart).x):e.x+(0,r.unref)(o.link.value.offsetStart).x}(),e.y=function(){return void 0!==e.y&&null!==e.y&&e.y[Symbol.for("+")]?e.y[Symbol.for("+")]((0,r.unref)(o.link.value.offsetStart).y):e.y+(0,r.unref)(o.link.value.offsetStart).y}()),e})),i=(0,r.computed)((function(){var e={x:o.endNode.value.x||0,y:o.endNode.value.y||0};return o.link.value.offsetEnd&&(e.x=function(){return void 0!==e.x&&null!==e.x&&e.x[Symbol.for("+")]?e.x[Symbol.for("+")]((0,r.unref)(o.link.value.offsetEnd).x):e.x+(0,r.unref)(o.link.value.offsetEnd).x}(),e.y=function(){return void 0!==e.y&&null!==e.y&&e.y[Symbol.for("+")]?e.y[Symbol.for("+")]((0,r.unref)(o.link.value.offsetEnd).y):e.y+(0,r.unref)(o.link.value.offsetEnd).y}()),e}));return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("line",(0,r.mergeProps)({"stroke-width":"15px",stroke:"white"},e.link,{x1:(0,r.unref)(t).x,y1:(0,r.unref)(t).y,x2:(0,r.unref)(i).x,y2:(0,r.unref)(i).y}),null,16,l)}}});const u=i;var a=u,f=(0,r.defineComponent)({props:{links:null},setup:function(e){var n,o=e,l=(0,r.toRef)(o,"links"),i=new MutationObserver(b),u=new ResizeObserver(b),f=(0,r.ref)({}),c=(0,r.ref)(null);(0,r.onMounted)((function(){var e=c.value;(function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e})()&&u.observe(e)}));var s=(0,r.computed)((function(){var e;return function(){var n,o,r,t,i;return void 0!==(e=null===(n=l.value)||void 0===n?void 0:n.filter((function(e){var n,o,r,t,l=f.value;return void 0!=(null===(n=l[e.startNode.id])||void 0===n?void 0:n.x)&&void 0!=(null===(o=l[e.startNode.id])||void 0===o?void 0:o.y)&&void 0!=(null===(r=l[e.endNode.id])||void 0===r?void 0:r.x)&&void 0!=(null===(t=l[e.endNode.id])||void 0===t?void 0:t.y)})))&&null!==(e=null===(o=l.value)||void 0===o?void 0:o.filter((function(e){var n,o,r,t,l=f.value;return void 0!=(null===(n=l[e.startNode.id])||void 0===n?void 0:n.x)&&void 0!=(null===(o=l[e.startNode.id])||void 0===o?void 0:o.y)&&void 0!=(null===(r=l[e.endNode.id])||void 0===r?void 0:r.x)&&void 0!=(null===(t=l[e.endNode.id])||void 0===t?void 0:t.y)})))&&(e=null===(r=l.value)||void 0===r?void 0:r.filter((function(e){var n,o,r,t,l=f.value;return void 0!=(null===(n=l[e.startNode.id])||void 0===n?void 0:n.x)&&void 0!=(null===(o=l[e.startNode.id])||void 0===o?void 0:o.y)&&void 0!=(null===(r=l[e.endNode.id])||void 0===r?void 0:r.x)&&void 0!=(null===(t=l[e.endNode.id])||void 0===t?void 0:t.y)})))[Symbol.for("!==")]?(e=null===(t=l.value)||void 0===t?void 0:t.filter((function(e){var n,o,r,t,l=f.value;return void 0!=(null===(n=l[e.startNode.id])||void 0===n?void 0:n.x)&&void 0!=(null===(o=l[e.startNode.id])||void 0===o?void 0:o.y)&&void 0!=(null===(r=l[e.endNode.id])||void 0===r?void 0:r.x)&&void 0!=(null===(t=l[e.endNode.id])||void 0===t?void 0:t.y)})))[Symbol.for("!==")](null):null!==(e=null===(i=l.value)||void 0===i?void 0:i.filter((function(e){var n,o,r,t,l=f.value;return void 0!=(null===(n=l[e.startNode.id])||void 0===n?void 0:n.x)&&void 0!=(null===(o=l[e.startNode.id])||void 0===o?void 0:o.y)&&void 0!=(null===(r=l[e.endNode.id])||void 0===r?void 0:r.x)&&void 0!=(null===(t=l[e.endNode.id])||void 0===t?void 0:t.y)})))}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()?e:[]})),m={attributes:!0,childList:!0,subtree:!1};(0,r.provide)(t.Z,(function(e,n){f.value[e]={element:n},i.observe(n,m),(0,r.nextTick)((function(){(function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!=")]?c.value[Symbol.for("!=")](null):null!=c.value})()&&v(e)}))})),(0,r.provide)(t.w,(function(e){f.value[e]=void 0}));var d=!0,y=null===(n=c.value)||void 0===n?void 0:n.getBoundingClientRect();function b(){(function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!=")]?c.value[Symbol.for("!=")](null):null!=c.value})()&&d&&(d=!1,(0,r.nextTick)((function(){var e;y=null===(e=c.value)||void 0===e?void 0:e.getBoundingClientRect(),Object.keys(f.value).forEach((function(e){return v(e)})),d=!0})))}function v(e){var n=f.value[e];if(!function(){return void 0!==n&&null!==n&&n[Symbol.for("!")]?n[Symbol.for("!")]():!n}()&&!function(){return void 0!==y&&null!==y&&y[Symbol.for("==")]?y[Symbol.for("==")](null):null==y}()){var o=n.element.getBoundingClientRect();n.x=function(){return o.x+o.width/2!==void 0&&o.x+o.width/2!==null&&(o.x+o.width/2)[Symbol.for("-")]?(o.x+o.width/2)[Symbol.for("-")](y.x):o.x+o.width/2-y.x}(),n.y=function(){return o.y+o.height/2!==void 0&&o.y+o.height/2!==null&&(o.y+o.height/2)[Symbol.for("-")]?(o.y+o.height/2)[Symbol.for("-")](y.y):o.y+o.height/2-y.y}()}}return function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.renderSlot)(e.$slots,"default"),(0,r.createElementVNode)("div",{ref_key:"resizeListener",ref:c,class:"resize-listener"},null,512),(0,r.unref)(s)?((0,r.openBlock)(),(0,r.createElementBlock)("svg",(0,r.normalizeProps)((0,r.mergeProps)({key:0},e.$attrs)),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(s),(function(e,n){return(0,r.openBlock)(),(0,r.createBlock)(a,{key:n,link:e,startNode:f.value[e.startNode.id],endNode:f.value[e.endNode.id]},null,8,["link","startNode","endNode"])})),128))],16)):(0,r.createCommentVNode)("",!0)],64)}}}),c=o(3744);const s=(0,c.Z)(f,[["__scopeId","data-v-9f482c6a"]]);var m=s},2736:function(e,n,o){"use strict";o.r(n),n["default"]="eyJpZCI6InRtdC14LTEwNSIsIm5hbWUiOiJEZWZhdWx0IFNhZmZmZiAtIHNvbWV0aGluZyBlbHNlIiwidGFicyI6WyJtYWluIiwiYyJdLCJ0aW1lIjoxNjI0MjQ1MjYxMDg3LCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsInRpbWVQbGF5ZWQiOiIzNDQ4LjYxNTc4MTcwOTAxIiwia2VlcEdvaW5nIjpmYWxzZSwibGFzdFRlblRpY2tzIjpbMC4wNTEsMC4wNSwwLjA0OSwwLjA1LDAuMDUsMC4wNTEsMC4wNDksMC4wNSwwLjA1LDAuMDUxXSwic2hvd1RQUyI6dHJ1ZSwibXNEaXNwbGF5IjoiYWxsIiwiaGlkZUNoYWxsZW5nZXMiOmZhbHNlLCJ0aGVtZSI6InBhcGVyIiwic3VidGFicyI6e30sIm1pbmltaXplZCI6e30sIm1vZElEIjoidG10LXgiLCJtb2RWZXJzaW9uIjoiMC4wIiwicG9pbnRzIjoiMzMwMC4zNzc3NzM4NTkwNTUiLCJtYWluIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJmIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e30sImNsaWNrYWJsZXMiOnsiMTEiOiJTdGFydCJ9LCJ1bmxvY2tlZCI6ZmFsc2UsInBvaW50cyI6IjAiLCJib29wIjpmYWxzZX0sImMiOnsidXBncmFkZXMiOlsiMTEiXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e30sImJ1eWFibGVzIjp7IjExIjoiMCJ9LCJjaGFsbGVuZ2VzIjp7IjExIjoiMCJ9LCJ1bmxvY2tlZCI6dHJ1ZSwicG9pbnRzIjoiMCIsImJlc3QiOiIxIiwidG90YWwiOiIwIiwiYmVlcCI6ZmFsc2UsInRoaW5neSI6InBvaW50eSIsIm90aGVyVGhpbmd5IjoxMCwic3BlbnRPbkJ1eWFibGVzIjoiMCJ9LCJhIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbIjExIl0sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9LCJ1bmxvY2tlZCI6dHJ1ZSwicG9pbnRzIjoiMCJ9LCJnIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJoIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJzcG9vayI6eyJ1cGdyYWRlcyI6W10sImFjaGlldmVtZW50cyI6W10sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9fSwib29tcHNNYWciOjAsImxhc3RQb2ludHMiOiIzMzAwLjM3Nzc3Mzg1OTA1NSJ9"},7634:function(e,n,o){var r={"./safff.txt":2736};function t(e){var n=l(e);return o(n)}function l(e){if(!o.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}t.keys=function(){return Object.keys(r)},t.resolve=l,e.exports=t,t.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}')}},n={};function o(r){var t=n[r];if(void 0!==t)return t.exports;var l=n[r]={exports:{}};return e[r].call(l.exports,l,l.exports,o),l.exports}o.m=e,function(){var e=[];o.O=function(n,r,t,l){if(!r){var i=1/0;for(c=0;c<e.length;c++){r=e[c][0],t=e[c][1],l=e[c][2];for(var u=!0,a=0;a<r.length;a++)(!1&l||i>=l)&&Object.keys(o.O).every((function(e){return o.O[e](r[a])}))?r.splice(a--,1):(u=!1,l<i&&(i=l));if(u){e.splice(c--,1);var f=t();void 0!==f&&(n=f)}}return n}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[r,t,l]}}(),function(){o.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(n,{a:n}),n}}(),function(){o.d=function(e,n){for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){o.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};o.O.j=function(n){return 0===e[n]};var n=function(n,r){var t,l,i=r[0],u=r[1],a=r[2],f=0;if(i.some((function(n){return 0!==e[n]}))){for(t in u)o.o(u,t)&&(o.m[t]=u[t]);if(a)var c=a(o)}for(n&&n(r);f<i.length;f++)l=i[f],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(c)},r=self["webpackChunkprofectus"]=self["webpackChunkprofectus"]||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var r=o.O(void 0,[998],(function(){return o(5813)}));r=o.O(r)})();
|
|
//# sourceMappingURL=app-legacy.649f486d.js.map
|