2 lines
No EOL
324 KiB
JavaScript
2 lines
No EOL
324 KiB
JavaScript
(function(){var e={1037: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"},floatingTabs:!0,mergeAdjacent:!0,showPin:!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"}),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"}),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 v}});var r,t=o(3336),l=(o(2526),o(1817),o(1539),o(4747),o(7941),o(5613)),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 v(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={}))},4096:function(e,n,o){"use strict";o.d(n,{A:function(){return r},Z:function(){return f}});var r,t=o(2482),l=(o(2526),o(1817),o(1539),o(264)),i=o(6113),u=o(9583),a=o(4061);function f(e,n){n.pinnable&&(!function(){return"pinned"[Symbol.for("in")]?"pinned"[Symbol.for("in")](e):"pinned"in e}()?e.pinned=n.pinned=(0,a.ax)(!1):(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),n.pinnable=!1)),(0,u.yB)(n,"display"),(0,u.yB)(n,"classes"),(0,u.yB)(n,"style"),(0,u.yB)(n,"direction"),(0,i.Rh)(n,"direction",r.UP),(0,u.yB)(n,"xoffset"),(0,u.yB)(n,"yoffset");var o=e[i.wA];e[i.wA]=l.Z;var f=e[i.tj].bind(e);return e[i.tj]=function(){var e,n=this.display,r=this.classes,l=this.style,u=this.direction,a=this.xoffset,c=this.yoffset,s=this.pinned;return{element:(e={},(0,t.Z)(e,i.wA,o),(0,t.Z)(e,i.tj,f),e),display:n,classes:r,style:l,direction:u,xoffset:a,yoffset:c,pinned:s}}.bind(n),n}(function(e){e[e["UP"]=0]="UP",e[e["LEFT"]=1]="LEFT",e[e["RIGHT"]=2]="RIGHT",e[e["DOWN"]=3]="DOWN"})(r||(r={}))},7302:function(e,n,o){"use strict";o.r(n),o.d(n,{globalBus:function(){return s},startGameLoop:function(){return v}});var r=o(8534),t=(o(5666),o(2526),o(1817),o(1539),o(7042),o(5192),o(9653),o(8783),o(3948),o(6453)),l=o(5613),i=o(8111),u=o(4865),a=o(5967),f=o(9266),c=o(3032),s=(0,i.i)(),m=null,d=null;function y(){var e,n=Date.now(),o=function(){return n-a.Z.time!==void 0&&n-a.Z.time!==null&&(n-a.Z.time)[Symbol.for("/")]?(n-a.Z.time)[Symbol.for("/")](1e3):(n-a.Z.time)/1e3}();a.Z.time=n;var r=o;if(c.Z.lastTenTicks.push(r),function(){return void 0!==c.Z.lastTenTicks.length&&null!==c.Z.lastTenTicks.length&&c.Z.lastTenTicks.length[Symbol.for(">")]?c.Z.lastTenTicks.length[Symbol.for(">")](10):c.Z.lastTenTicks.length>10}()&&(c.Z.lastTenTicks=c.Z.lastTenTicks.slice(1)),!(function(){return void 0!==(e=d)&&null!==(e=d)&&(e=d)[Symbol.for("!==")]?(e=d)[Symbol.for("!==")](null):null!==(e=d)}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()&&e.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}())&&!c.Z.hasNaN&&(o=Math.max(o,0),0!==a.Z.devSpeed)){if(function(){return void 0!==a.Z.offlineTime&&null!==a.Z.offlineTime&&a.Z.offlineTime[Symbol.for("!=")]?a.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=a.Z.offlineTime}()){if(l.ZP.gt(a.Z.offlineTime,function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())&&(a.Z.offlineTime=function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}()),l.ZP.gt(a.Z.offlineTime,0)&&function(){return void 0!==a.Z.devSpeed&&null!==a.Z.devSpeed&&a.Z.devSpeed[Symbol.for("!==")]?a.Z.devSpeed[Symbol.for("!==")](0):0!==a.Z.devSpeed}()){var i=Math.max(function(){return void 0!==a.Z.offlineTime&&null!==a.Z.offlineTime&&a.Z.offlineTime[Symbol.for("/")]?a.Z.offlineTime[Symbol.for("/")](10):a.Z.offlineTime/10}(),o);a.Z.offlineTime=function(){return void 0!==a.Z.offlineTime&&null!==a.Z.offlineTime&&a.Z.offlineTime[Symbol.for("-")]?a.Z.offlineTime[Symbol.for("-")](i):a.Z.offlineTime-i}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](i):o+i}()}else 0===a.Z.devSpeed&&(a.Z.offlineTime=function(){return void 0!==a.Z.offlineTime&&null!==a.Z.offlineTime&&a.Z.offlineTime[Symbol.for("+")]?a.Z.offlineTime[Symbol.for("+")](o):a.Z.offlineTime+o}());(function(){return void 0!==a.Z.offlineProd&&null!==a.Z.offlineProd&&a.Z.offlineProd[Symbol.for("!")]?a.Z.offlineProd[Symbol.for("!")]():!a.Z.offlineProd}()||l.ZP.lt(a.Z.offlineTime,0))&&(a.Z.offlineTime=null)}o=Math.min(o,t.maxTickLength),function(){return void 0!==a.Z.devSpeed&&null!==a.Z.devSpeed&&a.Z.devSpeed[Symbol.for("!=")]?a.Z.devSpeed[Symbol.for("!=")](void 0):void 0!=a.Z.devSpeed}()&&(o=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](a.Z.devSpeed):o*a.Z.devSpeed}()),function(){return void 0!==Number.isFinite(o)&&null!==Number.isFinite(o)&&Number.isFinite(o)[Symbol.for("!")]?Number.isFinite(o)[Symbol.for("!")]():!Number.isFinite(o)}()&&(o=1e308),l.ZP.eq(o,0)||(a.Z.timePlayed=function(){return void 0!==a.Z.timePlayed&&null!==a.Z.timePlayed&&a.Z.timePlayed[Symbol.for("+")]?a.Z.timePlayed[Symbol.for("+")](o):a.Z.timePlayed+o}(),function(){return void 0!==Number.isFinite(a.Z.timePlayed)&&null!==Number.isFinite(a.Z.timePlayed)&&Number.isFinite(a.Z.timePlayed)[Symbol.for("!")]?Number.isFinite(a.Z.timePlayed)[Symbol.for("!")]():!Number.isFinite(a.Z.timePlayed)}()&&(a.Z.timePlayed=1e308),s.emit("update",o,r),f.ZP.unthrottled?(requestAnimationFrame(y),function(){return void 0!==m&&null!==m&&m[Symbol.for("!=")]?m[Symbol.for("!=")](null):null!=m}()&&(clearInterval(m),m=null)):function(){return void 0!==m&&null!==m&&m[Symbol.for("==")]?m[Symbol.for("==")](null):null==m}()&&(m=setInterval(y,50)))}}function v(){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,1657));case 2:d=e.sent.hasWon,(0,u.watch)(d,(function(e){e&&s.emit("gameWon")})),f.ZP.unthrottled?requestAnimationFrame(y):m=setInterval(y,50);case 5:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}},4061:function(e,n,o){"use strict";o.d(n,{n9:function(){return s},nY:function(){return m},ax:function(){return b}});var r=o(9584),t=o(3336),l=(o(2526),o(1817),o(1539),o(1703),o(9600),o(1249),o(7042),o(4916),o(3123),o(3210),o(4747),o(7941),o(6699),o(2222),o(7302)),i=o(5613),u=o(3273),a=o(3577),f=o(4865),c=o(9365),s=Symbol("PersistentState"),m=Symbol("DefaultValue"),d=Symbol("StackTrace"),y=Symbol("Deleted");function v(){var e;return(null===(e=(new Error).stack)||void 0===e?void 0:e.split("\n").slice(3,5).map((function(e){return e.trim()})).join("\n"))||""}function b(e){var n=(0,f.isRef)(e)?e:(0,f.ref)(e);return n[s]=n,n[m]=(0,f.isRef)(e)?e.value:e,n[d]=v(),n[y]=!1,0===c.addingLayers.length?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,function(){return"\nCreated at:\n"[Symbol.for("+")]?"\nCreated at:\n"[Symbol.for("+")](n[d]):"\nCreated at:\n"+n[d]}()):c.persistentRefs[c.addingLayers[function(){return void 0!==c.addingLayers.length&&null!==c.addingLayers.length&&c.addingLayers.length[Symbol.for("-")]?c.addingLayers.length[Symbol.for("-")](1):c.addingLayers.length-1}()]].add(n),n}l.globalBus.on("addLayer",(function(e,n){var o=[],l=function l(v){var b=arguments,S=function(){return void 0!==b.length&&null!==b.length&&b.length[Symbol.for(">")]?b.length[Symbol.for(">")](1):b.length>1}()&&function(){return void 0!==b[1]&&null!==b[1]&&b[1][Symbol.for("!==")]?b[1][Symbol.for("!==")](void 0):void 0!==b[1]}()?arguments[1]:[],g=!1;return Object.keys(v).forEach((function(b){var p=v[b];if(p&&"object"===(0,t.Z)(p))if(function(){return void 0!==s&&null!==s&&s[Symbol.for("in")]?s[Symbol.for("in")](p):s in p}()){if(g=!0,p[y])return void console.warn("Deleted persistent ref present in returned object. Ignoring...",p,function(){return"\nCreated at:\n"[Symbol.for("+")]?"\nCreated at:\n"[Symbol.for("+")](p[d]):"\nCreated at:\n"+p[d]}());c.persistentRefs[e.id].delete(function(){return void 0!==u.Le&&null!==u.Le&&u.Le[Symbol.for("in")]?u.Le[Symbol.for("in")](p):u.Le in p}()?p[u.Le]:p);var h=S.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),N=h[b];h[b]=p[s],(0,f.isReactive)(h)?!function(){return void 0!==N&&null!==N&&N[Symbol.for("!=")]?N[Symbol.for("!=")](null):null!=N}()?h[b]=p[m]:h[b]=N:!function(){return void 0!==N&&null!==N&&N[Symbol.for("!=")]?N[Symbol.for("!=")](null):null!=N}()?h[b].value=p[m]:h[b].value=N}else if(function(){return p instanceof i.ZP!==void 0&&p instanceof i.ZP!==null&&(p instanceof i.ZP)[Symbol.for("!")]?(p instanceof i.ZP)[Symbol.for("!")]():!(p instanceof i.ZP)}()&&function(){return void 0!==(0,f.isRef)(p)&&null!==(0,f.isRef)(p)&&(0,f.isRef)(p)[Symbol.for("!")]?(0,f.isRef)(p)[Symbol.for("!")]():!(0,f.isRef)(p)}()&&function(){return void 0!==o.includes(p)&&null!==o.includes(p)&&o.includes(p)[Symbol.for("!")]?o.includes(p)[Symbol.for("!")]():!o.includes(p)}()){"symbol"===(0,t.Z)(p.type)&&o.push(p);var k=l(p,[].concat((0,r.Z)(S),[b]));k&&((0,a.kJ)(p)&&function(){return void 0!==(0,a.kJ)(v)&&null!==(0,a.kJ)(v)&&(0,a.kJ)(v)[Symbol.for("!")]?(0,a.kJ)(v)[Symbol.for("!")]():!(0,a.kJ)(v)}()?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")](v):u.Le in v}()?v[u.Le]:v,b):g=!0)}})),g};l(e),c.persistentRefs[e.id].forEach((function(n){console.error("Created persistent ref in ".concat(e.id," without registering it to the layer! Make sure to include everything persistent in the returned object"),n,function(){return"\nCreated at:\n"[Symbol.for("+")]?"\nCreated at:\n"[Symbol.for("+")](n[d]):"\nCreated at:\n"+n[d]}())})),c.persistentRefs[e.id].clear()}))},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(4858),o(5003),o(5613)),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: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},II:function(){return d},fw:function(){return y},t:function(){return v}});var r=o(3336),t=(o(7714),o(2801),o(1174),o(8862),o(2526),o(1817),o(1539),o(6453)),l=o(1037),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)}var d=(0,a.reactive)([]);function y(e){d.push(e)}var v=(0,a.reactive)([])},3032:function(e,n,o){"use strict";var r=o(4865);n["Z"]=window.state=(0,r.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},6098:function(e,n,o){"use strict";var r=o(8534),t=(o(6992),o(8674),o(9601),o(7727),o(5666),o(4865)),l=(o(1249),o(6113)),i=o(1604),u=(o(7941),o(8309),o(2526),o(1817),o(1539),o(6699),o(2023),o(6453)),a=o(9365),f=o(5967);function c(e,n,o,r,l,i){var u=(0,t.resolveComponent)("Context");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"layer-container",style:(0,t.normalizeStyle)({"--layer-color":e.unref(e.color)})},[e.showGoBack?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:"goBack",onClick:n[0]||(n[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},"←")):(0,t.createCommentVNode)("",!0),e.minimized.value?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:n[1]||(n[1]=function(n){return e.minimized.value=!1})},[(0,t.createElementVNode)("div",null,(0,t.toDisplayString)(e.unref(e.name)),1)])):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:(0,t.normalizeClass)(["layer-tab",[{showGoBack:e.showGoBack},e.unref(e.classes)]]),style:(0,t.normalizeStyle)(e.unref(e.style))},[(0,t.createVNode)(u,{ref:"contextRef"},{default:(0,t.withCtx)((function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.component)))]})),_:1},512)],6)),e.unref(e.minimizable)?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:3,class:"minimize",onClick:n[2]||(n[2]=function(n){return e.minimized.value=!0})}," ▼ ")):(0,t.createCommentVNode)("",!0)],4)}var s=o(6084),m=(o(9653),o(561),o(4048),o(5053)),d=(0,t.defineComponent)({components:{Context:m.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,i.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,i.P5)(Number,String),required:!0},name:{type:(0,i.P5)(String),required:!0},color:(0,i.P5)(String),style:(0,i.P5)(String,Object,Array),classes:(0,i.P5)(Object),minimizable:(0,i.P5)(Boolean),nodes:{type:Object,required:!0}},setup:function(e){var n=(0,t.toRefs)(e),o=n.display,r=n.index,l=n.minimized,a=n.minWidth,c=n.tab,m=(0,i.vq)(o),d=(0,t.computed)((function(){return u.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!==l.value&&null!==l.value&&l.value[Symbol.for("!")]?l.value[Symbol.for("!")]():!l.value}()}));function y(){f.Z.tabs.splice((0,t.unref)(e.index),1/0)}(0,t.nextTick)((function(){return b(l.value,(0,t.unref)(a.value))})),(0,t.watch)([l,(0,i.o9)(a)],(function(e){var n=(0,s.Z)(e,2),o=n[0],r=n[1];return b(o,r)}));var v=(0,t.ref)(null);function b(e,n){var o="number"===typeof n||Number.isNaN(parseInt(n))?function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")]("px"):n+"px"}():n,r=c.value();(function(){return void 0!==r&&null!==r&&r[Symbol.for("!=")]?r[Symbol.for("!=")](void 0):void 0!=r})()&&(e?(r.style.flexGrow="0",r.style.flexShrink="0",r.style.width="60px",r.style.minWidth=r.style.flexBasis="",r.style.margin="0"):(r.style.flexGrow="",r.style.flexShrink="",r.style.width="",r.style.minWidth=r.style.flexBasis="".concat(o,"px"),r.style.margin=""))}return(0,t.watch)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.nodes}),(function(n){n&&(e.nodes.value=n)})),{component:m,showGoBack:d,contextRef:v,unref:t.unref,goBack:y}}}),y=o(3744);const v=(0,y.Z)(d,[["render",c],["__scopeId","data-v-66dc9e3e"]]);var b=v,S=o(6948),g=function(e){return(0,t.pushScopeId)("data-v-5f8298e6"),e=e(),(0,t.popScopeId)(),e},p=g((function(){return(0,t.createElementVNode)("h2",null,"Changelog",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),h=g((function(){return(0,t.createElementVNode)("details",{open:""},[(0,t.createElementVNode)("summary",null,[(0,t.createTextVNode)("v0.0 Initial Commit - "),(0,t.createElementVNode)("time",null,"2021-09-04")]),(0,t.createTextVNode)(" This is the first release :D "),(0,t.createElementVNode)("ul",null,[(0,t.createElementVNode)("li",{class:"feature"},"Did everything"),(0,t.createElementVNode)("li",{class:"fix"},"Had some fun"),(0,t.createElementVNode)("li",{class:"breaking"},"Removed everything"),(0,t.createElementVNode)("li",{class:"balancing"},"Created some bugs to fix later")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),N=(0,t.defineComponent)({setup:function(e,n){var o=n.expose,r=(0,t.ref)(!1);return o({open:function(){r.value=!0}}),function(e,n){return(0,t.openBlock)(),(0,t.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return r.value=e})},{header:(0,t.withCtx)((function(){return[p]})),body:(0,t.withCtx)((function(){return[h]})),_:1},8,["modelValue"])}}});const k=(0,y.Z)(N,[["__scopeId","data-v-5f8298e6"]]);var V=k,x=o(9266),M=o(5613),Z=function(e){return(0,t.pushScopeId)("data-v-3eb46986"),e=e(),(0,t.popScopeId)(),e},C={class:"info-modal-header"},w=["src","alt"],B={class:"info-modal-title"},P={key:0},E={key:0},T={key:0},F=Z((function(){return(0,t.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=Z((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),D=Z((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),R=["href"],O=Z((function(){return(0,t.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),_=Z((function(){return(0,t.createElementVNode)("div",null,[(0,t.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[(0,t.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,t.createTextVNode)(" The Paper Pilot Community ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),j=Z((function(){return(0,t.createElementVNode)("div",null,[(0,t.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[(0,t.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,t.createTextVNode)(" The Modding Tree ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),A=Z((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),U=(0,t.defineComponent)({props:{changelog:null},setup:function(e,n){var o=n.expose,r=e,a=u.title,c=u.logo,s=u.author,m=u.discordName,d=u.discordLink,y=u.versionNumber,v=u.versionTitle,b=(0,t.toRefs)(r),g=(0,t.ref)(!1),p=(0,t.computed)((function(){return(0,M.mr)(f.Z.timePlayed)})),h=(0,t.computed)((function(){return(0,i.MM)((0,l.tZ)((function(){return(0,t.createVNode)(t.Fragment,null,[x.II.map(i.sY)])})))}));function N(){var e;null===(e=(0,t.unref)(b.changelog))||void 0===e||e.open()}return o({open:function(){g.value=!0}}),function(e,n){return(0,t.openBlock)(),(0,t.createBlock)(S.Z,{modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return g.value=e})},{header:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",C,[(0,t.unref)(c)?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,t.unref)(c),alt:(0,t.unref)(a)},null,8,w)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",B,[(0,t.createElementVNode)("h2",null,(0,t.toDisplayString)((0,t.unref)(a)),1),(0,t.createElementVNode)("h4",null,[(0,t.createTextVNode)(function(){return" v"[Symbol.for("+")]?" v"[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(y))):" v"+(0,t.toDisplayString)((0,t.unref)(y))}(),1),(0,t.unref)(v)?((0,t.openBlock)(),(0,t.createElementBlock)("span",P,function(){return": "[Symbol.for("+")]?": "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(v))):": "+(0,t.toDisplayString)((0,t.unref)(v))}(),1)):(0,t.createCommentVNode)("",!0)])])])]})),body:(0,t.withCtx)((function(e){var n=e.shown;return[n?((0,t.openBlock)(),(0,t.createElementBlock)("div",E,[(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createElementBlock)("div",T,function(){return"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(s))):"By "+(0,t.toDisplayString)((0,t.unref)(s))}(),1)):(0,t.createCommentVNode)("",!0),F,I,(0,t.createElementVNode)("div",{class:"link",onClick:N},"Changelog"),D,(0,t.createElementVNode)("div",null,[function(){return void 0!==(0,t.unref)(d)&&null!==(0,t.unref)(d)&&(0,t.unref)(d)[Symbol.for("!==")]?(0,t.unref)(d)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,t.unref)(d)}()?((0,t.openBlock)(),(0,t.createElementBlock)("a",{key:0,href:(0,t.unref)(d),class:"info-modal-discord-link"},[O,(0,t.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(m))):" "+(0,t.toDisplayString)((0,t.unref)(m))}(),1)],8,R)):(0,t.createCommentVNode)("",!0)]),_,j,A,(0,t.createElementVNode)("div",null,function(){return"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(p))):"Time Played: "+(0,t.toDisplayString)((0,t.unref)(p))}(),1),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(h))))])):(0,t.createCommentVNode)("",!0)]})),_:1},8,["modelValue"])}}});const q=(0,y.Z)(U,[["__scopeId","data-v-3eb46986"]]);var z=q,L=o(1037),G=o(1349),H=o(3525),W=o(9868),Y=o(264),K=function(e){return(0,t.pushScopeId)("data-v-85d7ae40"),e=e(),(0,t.popScopeId)(),e},J=K((function(){return(0,t.createElementVNode)("div",{class:"header"},[(0,t.createElementVNode)("h2",null,"Options")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Q=K((function(){return(0,t.createElementVNode)("hr",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),$=(0,t.defineComponent)({setup:function(e,n){var o=n.expose,r=(0,t.ref)(!1);o({open:function(){r.value=!0}});var a=Object.keys(L.Z).map((function(e){return{label:(0,G.IJ)(e),value:e}})),c=(0,t.computed)((function(){return(0,i.MM)((0,l.tZ)((function(){return(0,t.createVNode)(t.Fragment,null,[x.V$.map(i.sY)])})))})),s=(0,t.toRefs)(x.ZP),m=s.showTPS,d=s.theme,y=s.unthrottled,v=(0,t.toRefs)(f.Z),b=v.autosave,g=v.offlineProd,p=(0,t.computed)({get:function(){return 0===f.Z.devSpeed},set:function(e){f.Z.devSpeed=e?0:null}}),h=(0,l.tZ)((function(){return(0,t.createVNode)("span",null,[(0,t.createTextVNode)("Offline Production"),(0,t.createVNode)(Y.Z,{display:"Save-specific"},{default:function(){return[(0,t.createTextVNode)("*")]}})])})),N=(0,l.tZ)((function(){return(0,t.createVNode)("span",null,[(0,t.createTextVNode)("Autosave"),(0,t.createVNode)(Y.Z,{display:"Save-specific"},{default:function(){return[(0,t.createTextVNode)("*")]}})])})),k=(0,l.tZ)((function(){return(0,t.createVNode)("span",null,[(0,t.createTextVNode)("Pause game"),(0,t.createVNode)(Y.Z,{display:"Save-specific"},{default:function(){return[(0,t.createTextVNode)("*")]}})])}));return function(e,n){return(0,t.openBlock)(),(0,t.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":n[6]||(n[6]=function(e){return r.value=e})},{header:(0,t.withCtx)((function(){return[J]})),body:(0,t.withCtx)((function(){return[(0,t.createVNode)(H.Z,{title:"Theme",options:(0,t.unref)(a),modelValue:(0,t.unref)(d),"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,t.isRef)(d)?d.value=e:null})},null,8,["options","modelValue"]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(c)))),(0,t.createVNode)(W.Z,{title:"Show TPS",modelValue:(0,t.unref)(m),"onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,t.isRef)(m)?m.value=e:null})},null,8,["modelValue"]),Q,(0,t.createVNode)(W.Z,{title:"Unthrottled",modelValue:(0,t.unref)(y),"onUpdate:modelValue":n[2]||(n[2]=function(e){return(0,t.isRef)(y)?y.value=e:null})},null,8,["modelValue"]),(0,t.createVNode)(W.Z,{title:(0,t.unref)(h),modelValue:(0,t.unref)(g),"onUpdate:modelValue":n[3]||(n[3]=function(e){return(0,t.isRef)(g)?g.value=e:null})},null,8,["title","modelValue"]),(0,t.createVNode)(W.Z,{title:(0,t.unref)(N),modelValue:(0,t.unref)(b),"onUpdate:modelValue":n[4]||(n[4]=function(e){return(0,t.isRef)(b)?b.value=e:null})},null,8,["title","modelValue"]),(0,t.unref)(u).enablePausing?((0,t.openBlock)(),(0,t.createBlock)(W.Z,{key:0,title:(0,t.unref)(k),modelValue:(0,t.unref)(p),"onUpdate:modelValue":n[5]||(n[5]=function(e){return(0,t.isRef)(p)?p.value=e:null})},null,8,["title","modelValue"])):(0,t.createCommentVNode)("",!0)]})),_:1},8,["modelValue"])}}});const X=(0,y.Z)($,[["__scopeId","data-v-85d7ae40"]]);var ee=X,ne=o(5082),oe=o(3336),re=(o(7714),o(2801),o(1174),o(8862),o(3948),o(7042),o(2222),o(4747),o(7327),o(463)),te=o(4520),le={key:0},ie=["onClick","disabled"],ue={key:0},ae=["onClick"],fe=(0,t.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup:function(e,n){var o=n.emit,r=e,l=(0,t.toRefs)(r),i=(0,t.ref)(!1);function u(){(0,t.unref)(l.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,t.watch)(i,(function(e){o("confirmingChanged",e)})),function(n,o){return(0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["container",{confirming:i.value}])},[i.value?((0,t.openBlock)(),(0,t.createElementBlock)("span",le,"Are you sure?")):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("button",{onClick:(0,t.withModifiers)(u,["stop"]),class:"button danger",disabled:e.disabled},[i.value?((0,t.openBlock)(),(0,t.createElementBlock)("span",ue,"Yes")):(0,t.renderSlot)(n.$slots,"default",{key:1})],8,ie),i.value?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:1,class:"button",onClick:(0,t.withModifiers)(a,["stop"])},"No",8,ae)):(0,t.createCommentVNode)("",!0)],2)}}});const ce=(0,y.Z)(fe,[["__scopeId","data-v-bf59fca4"]]);var se=ce,me=["onClick"],de=(0,t.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup:function(e,n){var o=n.emit,r=(0,t.ref)(!1),l=(0,t.ref)(null);function i(){o("click"),l.value&&clearTimeout(l.value),r.value=!1,(0,t.nextTick)((function(){r.value=!0,l.value=setTimeout((function(){return r.value=!1}),500)}))}return function(n,o){return(0,t.openBlock)(),(0,t.createElementBlock)("button",{onClick:(0,t.withModifiers)(i,["stop"]),class:(0,t.normalizeClass)(["feedback",{activated:r.value,left:e.left}])},[(0,t.renderSlot)(n.$slots,"default")],10,me)}}});const ye=(0,y.Z)(de,[["__scopeId","data-v-5bbcedd3"]]);var ve=ye,be=function(e){return(0,t.pushScopeId)("data-v-6a0cf7ac"),e=e(),(0,t.popScopeId)(),e},Se=be((function(){return(0,t.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ge={key:0,class:"actions"},pe=be((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"content_paste",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),he=be((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"content_copy",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ne=[he],ke=be((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"edit",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ve=[ke],xe=be((function(){return(0,t.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Me={key:1,class:"actions"},Ze=be((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"check",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ce=[Ze],we=be((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"close",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Be=[we],Pe={key:2,class:"details"},Ee={class:"save-version"},Te=be((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Fe={key:0},Ie={key:3,class:"details"},De={key:4,class:"details error"},Re=be((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Oe=(0,t.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup:function(e,n){var o=n.emit,r=e,l=(0,t.toRefs)(r),i=l.save,u=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=(0,t.ref)(!1),c=(0,t.ref)(!1),s=(0,t.ref)("");(0,t.watch)(a,(function(){return s.value=i.value.name||""}));var m=(0,t.computed)((function(){return i.value&&i.value.id===f.Z.id})),d=(0,t.computed)((function(){return m.value?f.Z.time:i.value&&i.value.time||0}));function y(){o("editName",s.value),a.value=!1}return function(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["save",{active:(0,t.unref)(m)}])},[Se,function(){return void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value}()?((0,t.openBlock)(),(0,t.createElementBlock)("div",ge,[function(){return void 0!==(0,t.unref)(i).error&&null!==(0,t.unref)(i).error&&(0,t.unref)(i).error[Symbol.for("==")]?(0,t.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,t.unref)(i).error}()&&function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!")]?c.value[Symbol.for("!")]():!c.value}()?((0,t.openBlock)(),(0,t.createBlock)(ve,{key:0,onClick:n[0]||(n[0]=function(e){return o("export")}),class:"button",left:""},{default:(0,t.withCtx)((function(){return[pe]})),_:1})):(0,t.createCommentVNode)("",!0),function(){return void 0!==(0,t.unref)(i).error&&null!==(0,t.unref)(i).error&&(0,t.unref)(i).error[Symbol.for("==")]?(0,t.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,t.unref)(i).error}()&&function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!")]?c.value[Symbol.for("!")]():!c.value}()?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:1,onClick:n[1]||(n[1]=function(e){return o("duplicate")}),class:"button"},Ne)):(0,t.createCommentVNode)("",!0),function(){return void 0!==(0,t.unref)(i).error&&null!==(0,t.unref)(i).error&&(0,t.unref)(i).error[Symbol.for("==")]?(0,t.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,t.unref)(i).error}()&&function(){return void 0!==c.value&&null!==c.value&&c.value[Symbol.for("!")]?c.value[Symbol.for("!")]():!c.value}()?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:2,onClick:n[2]||(n[2]=function(e){return a.value=function(){return void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value}()}),class:"button"},Ve)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(se,{disabled:(0,t.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,t.withCtx)((function(){return[xe]})),_:1},8,["disabled"])])):((0,t.openBlock)(),(0,t.createElementBlock)("div",Me,[(0,t.createElementVNode)("button",{onClick:y,class:"button"},Ce),(0,t.createElementVNode)("button",{onClick:n[5]||(n[5]=function(e){return a.value=function(){return void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value}()}),class:"button"},Be)])),function(){return void 0!==(0,t.unref)(i).error&&null!==(0,t.unref)(i).error&&(0,t.unref)(i).error[Symbol.for("==")]?(0,t.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,t.unref)(i).error}()&&function(){return void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value}()?((0,t.openBlock)(),(0,t.createElementBlock)("div",Pe,[(0,t.createElementVNode)("button",{class:"button open",onClick:n[6]||(n[6]=function(e){return o("open")})},[(0,t.createElementVNode)("h3",null,(0,t.toDisplayString)((0,t.unref)(i).name),1)]),(0,t.createElementVNode)("span",Ee,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(i).modVersion)):"v"+(0,t.toDisplayString)((0,t.unref)(i).modVersion)}(),1),Te,(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createElementBlock)("div",Fe,function(){return"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(u).format((0,t.unref)(d)))):"Last played "+(0,t.toDisplayString)((0,t.unref)(u).format((0,t.unref)(d)))}(),1)):(0,t.createCommentVNode)("",!0)])):function(){return void 0!==(0,t.unref)(i).error&&null!==(0,t.unref)(i).error&&(0,t.unref)(i).error[Symbol.for("==")]?(0,t.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,t.unref)(i).error}()&&a.value?((0,t.openBlock)(),(0,t.createElementBlock)("div",Ie,[(0,t.createVNode)(te.Z,{modelValue:s.value,"onUpdate:modelValue":n[7]||(n[7]=function(e){return s.value=e}),class:"editname",onSubmit:y},null,8,["modelValue"])])):((0,t.openBlock)(),(0,t.createElementBlock)("div",De,[(0,t.createTextVNode)(function(){return" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(i).id)):" Error: Failed to load save with id "+(0,t.toDisplayString)((0,t.unref)(i).id)}(),1),Re,(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(i).error),1)]))],2)}}});const _e=(0,y.Z)(Oe,[["__scopeId","data-v-6a0cf7ac"]]);var je=_e,Ae=o(9980),Ue=o.n(Ae),qe=function(e){return(0,t.pushScopeId)("data-v-7d95f59e"),e=e(),(0,t.popScopeId)(),e},ze=qe((function(){return(0,t.createElementVNode)("h2",null,"Saves Manager",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Le={class:"modal-footer"},Ge={class:"field"},He=qe((function(){return(0,t.createElementVNode)("span",{class:"field-title"},"Create Save",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),We={class:"field-buttons"},Ye={class:"footer"},Ke=qe((function(){return(0,t.createElementVNode)("div",{style:{"flex-grow":"1"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Je=(0,t.defineComponent)({setup:function(e,n){var r=n.expose,l=(0,t.ref)(!1),i=(0,t.ref)(null);r({open:function(){l.value=!0}});var u=(0,t.ref)(!1),a=(0,t.ref)("");(0,t.watch)(a,(function(e){e?(0,t.nextTick)((function(){try{var n=JSON.parse(decodeURIComponent(escape(atob(e))));if(function(){return void 0!==(0,oe.Z)(n)&&null!==typeof n&&(0,oe.Z)(n)[Symbol.for("!==")]?(0,oe.Z)(n)[Symbol.for("!==")]("object"):"object"!==(0,oe.Z)(n)}())return void(u.value=!0);var o=(0,re.QI)();n.id=o,localStorage.setItem(o,btoa(unescape(encodeURIComponent(JSON.stringify(n))))),a.value="",u.value=!1,x.ZP.saves.push(o)}catch(r){u.value=!0}})):u.value=!1}));var c=o(7634),s=(0,t.ref)(c.keys().reduce((function(e,n){return e.push({label:n.slice(2,function(){return 4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4}()),value:c(n).default}),e}),[])),m=(0,t.shallowReactive)({});function d(e){if(function(){return void 0!==m[e]&&null!==m[e]&&m[e][Symbol.for("==")]?m[e][Symbol.for("==")](null):null==m[e]}()){var n=localStorage.getItem(e);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}())m[e]={error:"Save doesn't exist in localStorage",id:e};else if("dW5kZWZpbmVk"===n)m[e]={error:"Save is undefined",id:e};else try{m[e]=(0,ne.Z)((0,ne.Z)({},JSON.parse(decodeURIComponent(escape(atob(n))))),{},{id:e})}catch(o){m[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 m[e]}(0,t.watch)(l,(function(e){e&&Object.keys(m).forEach((function(e){return function(){return void 0!==m&&null!==m&&m[Symbol.for("delete")]?m[Symbol.for("delete")]("key"):delete m.key}()}))}));var y=(0,t.computed)((function(){return x.ZP.saves.reduce((function(e,n){return e[n]=d(n),e}),{})}));function v(e){var n;n=f.Z.id===e?(0,re.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(y.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 b(e){f.Z.id===e&&(0,re.a1)();var n=(0,ne.Z)((0,ne.Z)({},y.value[e]),{},{id:(0,re.QI)()});localStorage.setItem(n.id,btoa(unescape(encodeURIComponent(JSON.stringify(n))))),x.ZP.saves.push(n.id)}function g(e){x.ZP.saves=x.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),m[e]=void 0}function p(e){y.value[f.Z.id].time=f.Z.time,(0,re.a1)(),(0,re.uW)(y.value[e]),m[e]=void 0}function h(e){var n=JSON.parse(decodeURIComponent(escape(atob(e))));n.id=(0,re.QI)(),localStorage.setItem(n.id,btoa(unescape(encodeURIComponent(JSON.stringify(n))))),x.ZP.saves.push(n.id)}function N(e,n){var o=y.value[e];o&&(o.name=n,f.Z.id===e?(f.Z.name=n,(0,re.a1)()):(localStorage.setItem(e,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),m[e]=void 0))}return function(e,n){return(0,t.openBlock)(),(0,t.createBlock)(S.Z,{modelValue:l.value,"onUpdate:modelValue":n[4]||(n[4]=function(e){return l.value=e}),ref_key:"modal",ref:i},{header:(0,t.withCtx)((function(){return[ze]})),body:(0,t.withCtx)((function(e){var n=e.shown;return[n?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Ue()),{key:0,list:(0,t.unref)(x.ZP).saves,handle:".handle",itemKey:function(e){return e}},{item:(0,t.withCtx)((function(e){var n=e.element;return[(0,t.createVNode)(je,{save:(0,t.unref)(y)[n],onOpen:function(e){return p(n)},onExport:function(e){return v(n)},onEditName:function(e){return N(n,e)},onDuplicate:function(e){return b(n)},onDelete:function(e){return g(n)}},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]})),_:1},8,["list","itemKey"])):(0,t.createCommentVNode)("",!0)]})),footer:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",Le,[(0,t.createVNode)(te.Z,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return a.value=e}),title:"Import Save",placeholder:"Paste your save here!",class:(0,t.normalizeClass)({importingFailed:u.value})},null,8,["modelValue","class"]),(0,t.createElementVNode)("div",Ge,[He,(0,t.createElementVNode)("div",We,[(0,t.createElementVNode)("button",{class:"button",onClick:n[1]||(n[1]=function(){return(0,t.unref)(re.xM)&&(0,t.unref)(re.xM).apply(void 0,arguments)})},"New Game"),function(){return void 0!==Object.keys((0,t.unref)(s)).length&&null!==Object.keys((0,t.unref)(s)).length&&Object.keys((0,t.unref)(s)).length[Symbol.for(">")]?Object.keys((0,t.unref)(s)).length[Symbol.for(">")](0):Object.keys((0,t.unref)(s)).length>0}()?((0,t.openBlock)(),(0,t.createBlock)(H.Z,{key:0,options:(0,t.unref)(s),modelValue:void 0,"onUpdate:modelValue":n[2]||(n[2]=function(e){return h(e)}),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,t.createCommentVNode)("",!0)])]),(0,t.createElementVNode)("div",Ye,[Ke,(0,t.createElementVNode)("button",{class:"button modal-default-button",onClick:n[3]||(n[3]=function(e){return l.value=!1})}," Close ")])])]})),_:1},8,["modelValue"])}}});const Qe=(0,y.Z)(Je,[["__scopeId","data-v-7d95f59e"]]);var $e=Qe,Xe=o(4096),en=function(e){return(0,t.pushScopeId)("data-v-71847eca"),e=e(),(0,t.popScopeId)(),e},nn=["src","alt"],on={key:1,class:"title"},rn=en((function(){return(0,t.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),tn={class:"discord"},ln={class:"discord-links"},un={key:0},an=["href"],fn=en((function(){return(0,t.createElementVNode)("li",null,[(0,t.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),cn=en((function(){return(0,t.createElementVNode)("li",null,[(0,t.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),sn={href:"https://forums.moddingtree.com/",target:"_blank"},mn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),dn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),yn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),vn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),bn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Sn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),gn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),pn={href:"https://forums.moddingtree.com/",target:"_blank"},hn=en((function(){return(0,t.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Nn={class:"discord"},kn={class:"discord-links"},Vn={key:0},xn=["href"],Mn=en((function(){return(0,t.createElementVNode)("li",null,[(0,t.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=en((function(){return(0,t.createElementVNode)("li",null,[(0,t.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Cn=(0,t.defineComponent)({setup:function(e){var n=(0,t.ref)(null),o=(0,t.ref)(null),r=(0,t.ref)(null),l=(0,t.ref)(null),i=u.useHeader,a=u.banner,f=u.title,c=u.discordName,s=u.discordLink,m=u.versionNumber;function d(){window.open(s,"mywindow")}return function(e,u){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.unref)(i)?((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,t.mergeProps)({key:0,class:"nav"},e.$attrs),[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:(0,t.unref)(a),class:"banner",alt:(0,t.unref)(f)},null,8,nn)):((0,t.openBlock)(),(0,t.createElementBlock)("div",on,(0,t.toDisplayString)((0,t.unref)(f)),1)),(0,t.createElementVNode)("div",{onClick:u[0]||(u[0]=function(e){var n;return null===(n=l.value)||void 0===n?void 0:n.open()}),class:"version-container"},[(0,t.createVNode)(Y.Z,{display:"Changelog",direction:(0,t.unref)(Xe.A).DOWN,class:"version"},{default:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(m))):"v"+(0,t.toDisplayString)((0,t.unref)(m))}(),1)]})),_:1},8,["direction"])]),rn,(0,t.createElementVNode)("div",tn,[(0,t.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,t.createElementVNode)("ul",ln,[function(){return void 0!==(0,t.unref)(s)&&null!==(0,t.unref)(s)&&(0,t.unref)(s)[Symbol.for("!==")]?(0,t.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,t.unref)(s)}()?((0,t.openBlock)(),(0,t.createElementBlock)("li",un,[(0,t.createElementVNode)("a",{href:(0,t.unref)(s),target:"_blank"},(0,t.toDisplayString)((0,t.unref)(c)),9,an)])):(0,t.createCommentVNode)("",!0),fn,cn])]),(0,t.createElementVNode)("div",null,[(0,t.createElementVNode)("a",sn,[(0,t.createVNode)(Y.Z,{display:"Forums",direction:(0,t.unref)(Xe.A).DOWN,yoffset:"5px"},{default:(0,t.withCtx)((function(){return[mn]})),_:1},8,["direction"])])]),(0,t.createElementVNode)("div",{onClick:u[1]||(u[1]=function(e){var o;return null===(o=n.value)||void 0===o?void 0:o.open()})},[(0,t.createVNode)(Y.Z,{display:"Info",direction:(0,t.unref)(Xe.A).DOWN,class:"info"},{default:(0,t.withCtx)((function(){return[dn]})),_:1},8,["direction"])]),(0,t.createElementVNode)("div",{onClick:u[2]||(u[2]=function(e){var n;return null===(n=o.value)||void 0===n?void 0:n.open()})},[(0,t.createVNode)(Y.Z,{display:"Saves",direction:(0,t.unref)(Xe.A).DOWN,xoffset:"-20px"},{default:(0,t.withCtx)((function(){return[yn]})),_:1},8,["direction"])]),(0,t.createElementVNode)("div",{onClick:u[3]||(u[3]=function(e){var n;return null===(n=r.value)||void 0===n?void 0:n.open()})},[(0,t.createVNode)(Y.Z,{display:"Options",direction:(0,t.unref)(Xe.A).DOWN,xoffset:"-66px"},{default:(0,t.withCtx)((function(){return[vn]})),_:1},8,["direction"])])],16)):((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,t.mergeProps)({key:1,class:"overlay-nav"},e.$attrs),[(0,t.createElementVNode)("div",{onClick:u[4]||(u[4]=function(e){var n;return null===(n=l.value)||void 0===n?void 0:n.open()}),class:"version-container"},[(0,t.createVNode)(Y.Z,{display:"Changelog",direction:(0,t.unref)(Xe.A).RIGHT,xoffset:"25%",class:"version"},{default:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(m))):"v"+(0,t.toDisplayString)((0,t.unref)(m))}(),1)]})),_:1},8,["direction"])]),(0,t.createElementVNode)("div",{onClick:u[5]||(u[5]=function(e){var n;return null===(n=o.value)||void 0===n?void 0:n.open()})},[(0,t.createVNode)(Y.Z,{display:"Saves",direction:(0,t.unref)(Xe.A).RIGHT},{default:(0,t.withCtx)((function(){return[bn]})),_:1},8,["direction"])]),(0,t.createElementVNode)("div",{onClick:u[6]||(u[6]=function(e){var n;return null===(n=r.value)||void 0===n?void 0:n.open()})},[(0,t.createVNode)(Y.Z,{display:"Options",direction:(0,t.unref)(Xe.A).RIGHT},{default:(0,t.withCtx)((function(){return[Sn]})),_:1},8,["direction"])]),(0,t.createElementVNode)("div",{onClick:u[7]||(u[7]=function(e){var o;return null===(o=n.value)||void 0===o?void 0:o.open()})},[(0,t.createVNode)(Y.Z,{display:"Info",direction:(0,t.unref)(Xe.A).RIGHT},{default:(0,t.withCtx)((function(){return[gn]})),_:1},8,["direction"])]),(0,t.createElementVNode)("div",null,[(0,t.createElementVNode)("a",pn,[(0,t.createVNode)(Y.Z,{display:"Forums",direction:(0,t.unref)(Xe.A).RIGHT,xoffset:"7px"},{default:(0,t.withCtx)((function(){return[hn]})),_:1},8,["direction"])])]),(0,t.createElementVNode)("div",Nn,[(0,t.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,t.createElementVNode)("ul",kn,[function(){return void 0!==(0,t.unref)(s)&&null!==(0,t.unref)(s)&&(0,t.unref)(s)[Symbol.for("!==")]?(0,t.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,t.unref)(s)}()?((0,t.openBlock)(),(0,t.createElementBlock)("li",Vn,[(0,t.createElementVNode)("a",{href:(0,t.unref)(s),target:"_blank"},(0,t.toDisplayString)((0,t.unref)(c)),9,xn)])):(0,t.createCommentVNode)("",!0),Mn,Zn])])],16)),(0,t.createVNode)(z,{ref_key:"info",ref:n,changelog:l.value},null,8,["changelog"]),(0,t.createVNode)($e,{ref_key:"savesManager",ref:o},null,512),(0,t.createVNode)(ee,{ref_key:"options",ref:r},null,512),(0,t.createVNode)(V,{ref_key:"changelog",ref:l},null,512)],64)}}});const wn=(0,y.Z)(Cn,[["__scopeId","data-v-71847eca"]]);var Bn=wn,Pn={class:"inner-tab"},En={key:1,class:"separator"},Tn=(0,t.defineComponent)({setup:function(e){var n=(0,t.toRef)(f.Z,"tabs"),o=(0,t.computed)((function(){return Object.keys(a.layers)})),r=u.useHeader;function l(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.minimizable,f=e.nodes;return{display:n,minimized:o,minWidth:r,name:t,color:l,style:i,classes:u,minimizable:a,nodes:f}}return function(e,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["tabs-container",{useHeader:(0,t.unref)(r)}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),(function(i,u){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{key:u,class:"tab",ref_for:!0,ref:"tab-".concat(u)},[0===u&&function(){return void 0!==(0,t.unref)(r)&&null!==(0,t.unref)(r)&&(0,t.unref)(r)[Symbol.for("!")]?(0,t.unref)(r)[Symbol.for("!")]():!(0,t.unref)(r)}()?((0,t.openBlock)(),(0,t.createBlock)(Bn,{key:0})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",Pn,[(0,t.unref)(o).includes(i)?((0,t.openBlock)(),(0,t.createBlock)(b,(0,t.mergeProps)({key:0},l((0,t.unref)(a.layers)[i]),{index:u,tab:function(){var n;return null===(n=e.$refs["tab-".concat(u)])||void 0===n?void 0:n[0]}}),null,16,["index","tab"])):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i),{key:1,index:u},null,8,["index"]))]),function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")]((0,t.unref)(n).length-1):u!==(0,t.unref)(n).length-1}()?((0,t.openBlock)(),(0,t.createElementBlock)("div",En)):(0,t.createCommentVNode)("",!0)])})),128))],2)}}});const Fn=(0,y.Z)(Tn,[["__scopeId","data-v-4fd7697b"]]);var In=Fn,Dn=o(1657),Rn=function(e){return(0,t.pushScopeId)("data-v-06188cc8"),e=e(),(0,t.popScopeId)(),e},On={class:"game-over-modal-header"},_n=["src","alt"],jn={class:"game-over-modal-title"},An=Rn((function(){return(0,t.createElementVNode)("h2",null,"Congratulations!",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Un={key:0},qn=Rn((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),zn=Rn((function(){return(0,t.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=Rn((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Gn=["href"],Hn=Rn((function(){return(0,t.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Wn=(0,t.defineComponent)({setup:function(e){var n=u.title,o=u.logo,r=u.discordName,l=u.discordLink,i=u.versionNumber,a=u.versionTitle,c=(0,t.computed)((function(){return(0,M.mr)(f.Z.timePlayed)})),s=(0,t.computed)((function(){return Dn.hasWon.value&&function(){return void 0!==f.Z.keepGoing&&null!==f.Z.keepGoing&&f.Z.keepGoing[Symbol.for("!")]?f.Z.keepGoing[Symbol.for("!")]():!f.Z.keepGoing}()})),m=(0,t.toRef)(f.Z,"autosave");function d(){f.Z.keepGoing=!0}function y(){(0,re.uW)((0,re.xM)())}return function(e,u){return(0,t.openBlock)(),(0,t.createBlock)(S.Z,{"model-value":(0,t.unref)(s)},{header:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",On,[(0,t.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,t.unref)(o),alt:(0,t.unref)(n)},null,8,_n)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",jn,[An,(0,t.createElementVNode)("h4",null,function(){return"You've beaten "+(0,t.toDisplayString)((0,t.unref)(n))+" v"+(0,t.toDisplayString)((0,t.unref)(i))+": "!==void 0&&"You've beaten "+(0,t.toDisplayString)((0,t.unref)(n))+" v"+(0,t.toDisplayString)((0,t.unref)(i))+": "!==null&&("You've beaten "+(0,t.toDisplayString)((0,t.unref)(n))+" v"+(0,t.toDisplayString)((0,t.unref)(i))+": ")[Symbol.for("+")]?("You've beaten "+(0,t.toDisplayString)((0,t.unref)(n))+" v"+(0,t.toDisplayString)((0,t.unref)(i))+": ")[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(a))):"You've beaten "+(0,t.toDisplayString)((0,t.unref)(n))+" v"+(0,t.toDisplayString)((0,t.unref)(i))+": "+(0,t.toDisplayString)((0,t.unref)(a))}(),1)])])]})),body:(0,t.withCtx)((function(e){var n=e.shown;return[n?((0,t.openBlock)(),(0,t.createElementBlock)("div",Un,[(0,t.createElementVNode)("div",null,function(){return"It took you "+(0,t.toDisplayString)((0,t.unref)(c))!==void 0&&"It took you "+(0,t.toDisplayString)((0,t.unref)(c))!==null&&("It took you "+(0,t.toDisplayString)((0,t.unref)(c)))[Symbol.for("+")]?("It took you "+(0,t.toDisplayString)((0,t.unref)(c)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,t.toDisplayString)((0,t.unref)(c))+" to beat the game."}(),1),qn,zn,Ln,(0,t.createElementVNode)("div",null,[(0,t.createElementVNode)("a",{href:(0,t.unref)(l),class:"game-over-modal-discord-link"},[Hn,(0,t.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(r))):" "+(0,t.toDisplayString)((0,t.unref)(r))}(),1)],8,Gn)]),(0,t.createVNode)(W.Z,{title:"Autosave",modelValue:(0,t.unref)(m),"onUpdate:modelValue":u[0]||(u[0]=function(e){return(0,t.isRef)(m)?m.value=e:null})},null,8,["modelValue"])])):(0,t.createCommentVNode)("",!0)]})),footer:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",{class:"game-over-footer"},[(0,t.createElementVNode)("button",{onClick:d,class:"button"},"Keep Going"),(0,t.createElementVNode)("button",{onClick:y,class:"button danger"},"Play Again")])]})),_:1},8,["model-value"])}}});const Yn=(0,y.Z)(Wn,[["__scopeId","data-v-06188cc8"]]);var Kn=Yn,Jn=(o(9600),o(3032)),Qn=function(e){return(0,t.pushScopeId)("data-v-5935214c"),e=e(),(0,t.popScopeId)(),e},$n=Qn((function(){return(0,t.createElementVNode)("div",{class:"nan-modal-header"},[(0,t.createElementVNode)("h2",null,"NaN value detected!")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Xn={key:0},eo=Qn((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),no=["href"],oo=Qn((function(){return(0,t.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ro=Qn((function(){return(0,t.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),to={class:"nan-footer"},lo=(0,t.defineComponent)({setup:function(e){var n=u.discordName,o=u.discordLink,r=(0,t.toRef)(f.Z,"autosave"),l=(0,t.toRef)(Jn.Z,"hasNaN"),i=(0,t.ref)(null),a=(0,t.computed)((function(){var e;return null===(e=Jn.Z.NaNPath)||void 0===e?void 0:e.join(".")})),c=(0,t.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,t.computed)((function(){return Jn.Z.NaNReceiver&&c.value?Jn.Z.NaNReceiver[c.value]:null})),m=(0,t.computed)({get:function(){return 0===f.Z.devSpeed},set:function(e){f.Z.devSpeed=e?null:0}});function d(){Jn.Z.NaNReceiver&&c.value&&(Jn.Z.NaNReceiver[c.value]=new M.ZP(0),Jn.Z.hasNaN=!1)}function y(){Jn.Z.NaNReceiver&&c.value&&(Jn.Z.NaNReceiver[c.value]=new M.ZP(1),Jn.Z.hasNaN=!1)}function v(){Jn.Z.NaNReceiver&&c.value&&(Jn.Z.NaNReceiver[c.value]=new M.ZP(NaN),Jn.Z.hasNaN=!1)}return function(e,f){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)(S.Z,(0,t.mergeProps)({modelValue:(0,t.unref)(l),"onUpdate:modelValue":f[4]||(f[4]=function(e){return(0,t.isRef)(l)?l.value=e:null})},e.$attrs),{header:(0,t.withCtx)((function(){return[$n]})),body:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",null,[(0,t.createTextVNode)(function(){return' Attempted to assign "'+(0,t.toDisplayString)((0,t.unref)(a))!==void 0&&' Attempted to assign "'+(0,t.toDisplayString)((0,t.unref)(a))!==null&&(' Attempted to assign "'+(0,t.toDisplayString)((0,t.unref)(a)))[Symbol.for("+")]?(' Attempted to assign "'+(0,t.toDisplayString)((0,t.unref)(a)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,t.toDisplayString)((0,t.unref)(a))+'" to NaN'}(),1),(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createElementBlock)("span",Xn,function(){return(0,t.toDisplayString)(" ")+"(previously "+(0,t.toDisplayString)((0,t.unref)(M.WU)((0,t.unref)(s)))!==void 0&&(0,t.toDisplayString)(" ")+"(previously "+(0,t.toDisplayString)((0,t.unref)(M.WU)((0,t.unref)(s)))!==null&&((0,t.toDisplayString)(" ")+"(previously "+(0,t.toDisplayString)((0,t.unref)(M.WU)((0,t.unref)(s))))[Symbol.for("+")]?((0,t.toDisplayString)(" ")+"(previously "+(0,t.toDisplayString)((0,t.unref)(M.WU)((0,t.unref)(s))))[Symbol.for("+")](")"):(0,t.toDisplayString)(" ")+"(previously "+(0,t.toDisplayString)((0,t.unref)(M.WU)((0,t.unref)(s)))+")"}(),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)(function(){return". Auto-saving has been "+(0,t.toDisplayString)((0,t.unref)(r)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,t.toDisplayString)((0,t.unref)(r)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,t.toDisplayString)((0,t.unref)(r)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,t.toDisplayString)((0,t.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,t.toDisplayString)((0,t.unref)(r)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. "}(),1)]),eo,(0,t.createElementVNode)("div",null,[(0,t.createElementVNode)("a",{href:(0,t.unref)(o),class:"nan-modal-discord-link"},[oo,(0,t.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,t.toDisplayString)((0,t.unref)(n))):" "+(0,t.toDisplayString)((0,t.unref)(n))}(),1)],8,no)]),ro,(0,t.createVNode)(W.Z,{title:"Autosave",modelValue:(0,t.unref)(r),"onUpdate:modelValue":f[0]||(f[0]=function(e){return(0,t.isRef)(r)?r.value=e:null})},null,8,["modelValue"]),(0,t.unref)(u).enablePausing?((0,t.openBlock)(),(0,t.createBlock)(W.Z,{key:0,title:"Pause game",modelValue:(0,t.unref)(m),"onUpdate:modelValue":f[1]||(f[1]=function(e){return(0,t.isRef)(m)?m.value=e:null})},null,8,["modelValue"])):(0,t.createCommentVNode)("",!0)]})),footer:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",to,[(0,t.createElementVNode)("button",{onClick:f[2]||(f[2]=function(e){var n;return null===(n=i.value)||void 0===n?void 0:n.open()}),class:"button"},"Open Saves Manager"),(0,t.createElementVNode)("button",{onClick:d,class:"button"},"Set to 0"),(0,t.createElementVNode)("button",{onClick:y,class:"button"},"Set to 1"),(0,t.unref)(s)&&(0,t.unref)(M.ZP).neq((0,t.unref)(s),0)&&(0,t.unref)(M.ZP).neq((0,t.unref)(s),1)?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,onClick:f[3]||(f[3]=function(e){return l.value=!1}),class:"button"}," Set to previous ")):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("button",{onClick:v,class:"button danger"},"Ignore")])]})),_:1},16,["modelValue"]),(0,t.createVNode)($e,{ref_key:"savesManager",ref:i},null,512)],64)}}});const io=(0,y.Z)(lo,[["__scopeId","data-v-5935214c"]]);var uo=io,ao=(o(86),{key:0,class:"tpsDisplay"}),fo={key:0,class:"low"},co=(0,t.defineComponent)({setup:function(e){var n=(0,t.computed)((function(){return M.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,t.ref)([]);(0,t.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,t.computed)((function(){return o.value.reduce((function(e,n){return M.ZP.max(e,n)}),0)})),l=(0,t.computed)((function(){return M.ZP.sub(n.value,r.value).gt(1)}));return function(e,o){return function(){return void 0!==(0,t.unref)(n).isNan()&&null!==(0,t.unref)(n).isNan()&&(0,t.unref)(n).isNan()[Symbol.for("!")]?(0,t.unref)(n).isNan()[Symbol.for("!")]():!(0,t.unref)(n).isNan()}()?((0,t.openBlock)(),(0,t.createElementBlock)("div",ao,[(0,t.createTextVNode)(function(){return" TPS: "+(0,t.toDisplayString)((0,t.unref)(M.Ht)((0,t.unref)(n)))!==void 0&&" TPS: "+(0,t.toDisplayString)((0,t.unref)(M.Ht)((0,t.unref)(n)))!==null&&(" TPS: "+(0,t.toDisplayString)((0,t.unref)(M.Ht)((0,t.unref)(n))))[Symbol.for("+")]?(" TPS: "+(0,t.toDisplayString)((0,t.unref)(M.Ht)((0,t.unref)(n))))[Symbol.for("+")](" "):" TPS: "+(0,t.toDisplayString)((0,t.unref)(M.Ht)((0,t.unref)(n)))+" "}(),1),(0,t.createVNode)(t.Transition,{name:"fade"},{default:(0,t.withCtx)((function(){return[(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)("span",fo,(0,t.toDisplayString)((0,t.unref)(M.Ht)((0,t.unref)(r))),1)):(0,t.createCommentVNode)("",!0)]})),_:1})])):(0,t.createCommentVNode)("",!0)}}});const so=(0,y.Z)(co,[["__scopeId","data-v-c0663118"]]);var mo=so,yo=(0,t.defineComponent)({setup:function(e){var n=u.useHeader,o=(0,t.computed)((function(){return L.Z[x.ZP.theme].variables})),r=(0,t.toRef)(x.ZP,"showTPS"),a=(0,t.computed)((function(){return(0,i.MM)((0,l.tZ)((function(){return(0,t.createVNode)(t.Fragment,null,[x.t.map(i.sY)])})))}));return function(e,l){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)("div",{id:"modal-root",style:(0,t.normalizeStyle)((0,t.unref)(o))},null,4),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["app",{useHeader:(0,t.unref)(n)}]),style:(0,t.normalizeStyle)((0,t.unref)(o))},[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(Bn,{key:0})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(In),(0,t.unref)((0,t.unref)(r))?((0,t.openBlock)(),(0,t.createBlock)(mo,{key:1})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(Kn),(0,t.createVNode)(uo),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(a))))],6)],64)}}});const vo=(0,y.Z)(yo,[["__scopeId","data-v-f13f28b6"]]);var bo=vo;if(document.title=u.title,""===u.id)throw"Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json";requestAnimationFrame((0,r.Z)(regeneratorRuntime.mark((function e(){var n,r,l,i;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,re.zD)();case 3:return e.next=5,o(7302);case 5:n=e.sent,r=n.globalBus,l=n.startGameLoop,i=window.vue=(0,t.createApp)(bo),r.emit("setupVue",i),i.mount("#app"),l();case 12:case"end":return e.stop()}}),e)})))),window.projInfo=u},5613:function(e,n,o){"use strict";o.d(n,{ZP:function(){return Se},WU:function(){return se},mr:function(){return de},Ht:function(){return me}});o(2526),o(1817),o(1539),o(6977),o(4916),o(3123),o(5306),o(9653),o(86);var r,t,l,i,u,a,f,c,s,m,d,y=o(3087),v=o(2833),b=o(2482),S=o(3336),g=(o(658),o(2420),o(3689),o(5192),o(1703),o(9714),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}(),x=5,M=!0,Z=!1,C=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}()]}}(),w=[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]],P=[[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]],E=function(e){return A.fromValue_noAlloc(e)},T=function(e,n,o){return A.fromComponents(e,n,o)},F=function(e,n,o){return A.fromComponents_noNormalize(e,n,o)},I=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===A.dZero)return e;if(e===A.dOne)return E(O);A.abs(e);n=A.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=A.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(A.mul(2,n).add(2))))),A.abs(t.sub(n)).lt(A.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 A=function(){function e(n){(0,y.Z)(this,e),(0,b.Z)(this,"sign",Number.NaN),(0,b.Z)(this,"mag",Number.NaN),(0,b.Z)(this,"layer",Number.NaN),n instanceof e||function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&"object"===(0,S.Z)(n)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](n):"sign"in n}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](n):"mag"in n}()&&function(){return"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](n):"layer"in n}()?this.fromDecimal(n):"number"===typeof n?this.fromNumber(n):"string"===typeof n?this.fromString(n):(this.sign=0,this.layer=0,this.mag=0)}return(0,v.Z)(e,[{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("/")](C(o)):e.mag/C(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:r,value:function(e){return this.add(e)}},{key:t,value:function(e){return this.sub(e)}},{key:l,value:function(e){return this.times(e)}},{key:i,value:function(e){return this.div(e)}},{key:u,value:function(){return this.neg()}},{key:a,value:function(e){return this.eq(e)}},{key:f,value:function(e){return this.gt(e)}},{key:c,value:function(e){return this.lt(e)}},{key:s,value:function(e){return this.gte(e)}},{key:m,value:function(e){return this.lte(e)}},{key:d,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(n){M?n=n.replace(",",""):Z&&(n=n.replace(",","."));var o=n.split("^^^");if(2===o.length){var r=parseFloat(o[0]),t=parseFloat(o[1]),l=o[1].split(";"),i=1;if(2===l.length&&(i=parseFloat(l[1]),function(){return void 0!==isFinite(i)&&null!==isFinite(i)&&isFinite(i)[Symbol.for("!")]?isFinite(i)[Symbol.for("!")]():!isFinite(i)}()&&(i=1)),isFinite(r)&&isFinite(t)){var u=e.pentate(r,t,i);return this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this}}var a=n.split("^^");if(2===a.length){var f=parseFloat(a[0]),c=parseFloat(a[1]),s=a[1].split(";"),m=1;if(2===s.length&&(m=parseFloat(s[1]),function(){return void 0!==isFinite(m)&&null!==isFinite(m)&&isFinite(m)[Symbol.for("!")]?isFinite(m)[Symbol.for("!")]():!isFinite(m)}()&&(m=1)),isFinite(f)&&isFinite(c)){var d=e.tetrate(f,c,m);return this.sign=d.sign,this.layer=d.layer,this.mag=d.mag,this}}var y,v,b=n.split("^");if(2===b.length){var g=parseFloat(b[0]),p=parseFloat(b[1]);if(isFinite(g)&&isFinite(p)){var h=e.pow(g,p);return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,this}}n=n.trim().toLowerCase();var N=n.split("pt");if(2===N.length){y=10,v=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(v)){var V=e.tetrate(y,v,k);return this.sign=V.sign,this.layer=V.layer,this.mag=V.mag,this}}if(N=n.split("p"),2===N.length){y=10,v=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var x=parseFloat(N[1]);if(function(){return void 0!==isFinite(x)&&null!==isFinite(x)&&isFinite(x)[Symbol.for("!")]?isFinite(x)[Symbol.for("!")]():!isFinite(x)}()&&(x=1),isFinite(y)&&isFinite(v)){var C=e.tetrate(y,v,x);return this.sign=C.sign,this.layer=C.layer,this.mag=C.mag,this}}var w=n.split("e"),B=function(){return void 0!==w.length&&null!==w.length&&w.length[Symbol.for("-")]?w.length[Symbol.for("-")](1):w.length-1}();if(0===B){var P=parseFloat(n);if(isFinite(P))return this.fromNumber(P)}else if(1===B){var F=parseFloat(n);if(isFinite(F)&&function(){return void 0!==F&&null!==F&&F[Symbol.for("!==")]?F[Symbol.for("!==")](0):0!==F}())return this.fromNumber(F)}var I=n.split("e^");if(2===I.length){this.sign=1,function(){return void 0!==I[0].charAt(0)&&null!==I[0].charAt(0)&&I[0].charAt(0)[Symbol.for("==")]?I[0].charAt(0)[Symbol.for("==")]("-"):"-"==I[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("<")](I[1].length):O<I[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 _=I[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(I[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("+")](I[1].charAt(O)):R+I[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(w[0]);if(0===j)return this.sign=0,this.layer=0,this.mag=0,this;var A=parseFloat(w[function(){return void 0!==w.length&&null!==w.length&&w.length[Symbol.for("-")]?w.length[Symbol.for("-")](1):w.length-1}()]);if(function(){return void 0!==B&&null!==B&&B[Symbol.for(">=")]?B[Symbol.for(">=")](2):B>=2}()){var U=parseFloat(w[function(){return void 0!==w.length&&null!==w.length&&w.length[Symbol.for("-")]?w.length[Symbol.for("-")](2):w.length-2}()]);isFinite(U)&&(A=function(){return void 0!==A&&null!==A&&A[Symbol.for("*")]?A[Symbol.for("*")](Math.sign(U)):A*Math.sign(U)}(),A=function(){return void 0!==A&&null!==A&&A[Symbol.for("+")]?A[Symbol.for("+")](D(U)):A+D(U)}())}if(function(){return void 0!==isFinite(j)&&null!==isFinite(j)&&isFinite(j)[Symbol.for("!")]?isFinite(j)[Symbol.for("!")]():!isFinite(j)}())this.sign="-"===w[0]?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():1,this.layer=B,this.mag=A;else if(1===B)this.sign=Math.sign(j),this.layer=1,this.mag=function(){return void 0!==A&&null!==A&&A[Symbol.for("+")]?A[Symbol.for("+")](Math.log10(Math.abs(j))):A+Math.log10(Math.abs(j))}();else{if(this.sign=Math.sign(j),this.layer=B,2===B){var q=e.mul(T(1,2,A),E(j));return this.sign=q.sign,this.layer=q.layer,this.mag=q.mag,this}this.mag=A}return this.normalize(),this}},{key:"fromValue",value:function(n){return n instanceof e||function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&"object"===(0,S.Z)(n)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](n):"sign"in n}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](n):"mag"in n}()&&function(){return"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](n):"layer"in n}()?this.fromDecimal(n):"number"===typeof n?this.fromNumber(n):"string"===typeof n?this.fromString(n):(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:I(this.m,e)}},{key:"magnitudeWithDecimalPlaces",value:function(e){return isNaN(this.mag)?Number.NaN:0===this.mag?0:I(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("<=")](x):e.layer<=x}()?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 I(n.m,e)+"e"!==void 0&&I(n.m,e)+"e"!==null&&(I(n.m,e)+"e")[Symbol.for("+")]?(I(n.m,e)+"e")[Symbol.for("+")](I(n.e,e)):I(n.m,e)+"e"+I(n.e,e)}():1===this.layer?function(){return I(n.m,e)+"e"!==void 0&&I(n.m,e)+"e"!==null&&(I(n.m,e)+"e")[Symbol.for("+")]?(I(n.m,e)+"e")[Symbol.for("+")](I(n.e,e)):I(n.m,e)+"e"+I(n.e,e)}():function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<=")]?n.layer[Symbol.for("<=")](x):n.layer<=x}()?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("+")](I(n.mag,e)):(-1===n.sign?"-":"")+"e".repeat(n.layer)+I(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("+")](I(n.mag,e)):(-1===n.sign?"-":"")+"(e^"+n.layer+")"+I(n.mag,e)}()}},{key:"abs",value:function(){return F(0===this.sign?0:1,this.layer,this.mag)}},{key:"neg",value:function(){var e=this;return F(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 n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?e.dZero:0===this.layer?T(this.sign,0,Math.round(this.mag)):this}},{key:"floor",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?e.dZero:0===this.layer?T(this.sign,0,Math.floor(this.mag)):this}},{key:"ceil",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?e.dZero:0===this.layer?T(this.sign,0,Math.ceil(this.mag)):this}},{key:"trunc",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?e.dZero:0===this.layer?T(this.sign,0,Math.trunc(this.mag)):this}},{key:"add",value:function(n){var o,r,t=this,l=E(n);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 this;if(function(){return void 0!==Number.isFinite(l.layer)&&null!==Number.isFinite(l.layer)&&Number.isFinite(l.layer)[Symbol.for("!")]?Number.isFinite(l.layer)[Symbol.for("!")]():!Number.isFinite(l.layer)}())return l;if(0===this.sign)return l;if(0===l.sign)return this;if(this.sign===function(){return void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("minus")]?l.sign[Symbol.for("minus")]():-l.sign}()&&this.layer===l.layer&&this.mag===l.mag)return F(0,0,0);if(function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](2):t.layer>=2}()||function(){return void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for(">=")]?l.layer[Symbol.for(">=")](2):l.layer>=2}())return this.maxabs(l);if(!function(){return void 0!==e.cmpabs(t,l)&&null!==e.cmpabs(t,l)&&e.cmpabs(t,l)[Symbol.for(">")]?e.cmpabs(t,l)[Symbol.for(">")](0):e.cmpabs(t,l)>0}()?(o=l,r=this):(o=this,r=l),0===o.layer&&0===r.layer)return E(function(){return o.sign*o.mag!==void 0&&o.sign*o.mag!==null&&(o.sign*o.mag)[Symbol.for("+")]?(o.sign*o.mag)[Symbol.for("+")](r.sign*r.mag):o.sign*o.mag+r.sign*r.mag}());var 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)}(),u=function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("*")]?r.layer[Symbol.for("*")](Math.sign(r.mag)):r.layer*Math.sign(r.mag)}();if(function(){return i-u!==void 0&&i-u!==null&&(i-u)[Symbol.for(">=")]?(i-u)[Symbol.for(">=")](2):i-u>=2}())return o;if(0===i&&u===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()){if(function(){return void 0!==Math.abs(r.mag-Math.log10(o.mag))&&null!==Math.abs(r.mag-Math.log10(o.mag))&&Math.abs(r.mag-Math.log10(o.mag))[Symbol.for(">")]?Math.abs(r.mag-Math.log10(o.mag))[Symbol.for(">")](g):Math.abs(r.mag-Math.log10(o.mag))>g}())return o;var a=Math.pow(10,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("-")](r.mag):Math.log10(o.mag)-r.mag}()),f=function(){return void 0!==r.sign&&null!==r.sign&&r.sign[Symbol.for("+")]?r.sign[Symbol.for("+")](o.sign*a):r.sign+o.sign*a}();return T(Math.sign(f),1,function(){return void 0!==r.mag&&null!==r.mag&&r.mag[Symbol.for("+")]?r.mag[Symbol.for("+")](Math.log10(Math.abs(f))):r.mag+Math.log10(Math.abs(f))}())}if(1===i&&0===u){if(function(){return void 0!==Math.abs(o.mag-Math.log10(r.mag))&&null!==Math.abs(o.mag-Math.log10(r.mag))&&Math.abs(o.mag-Math.log10(r.mag))[Symbol.for(">")]?Math.abs(o.mag-Math.log10(r.mag))[Symbol.for(">")](g):Math.abs(o.mag-Math.log10(r.mag))>g}())return o;var c=Math.pow(10,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("-")]?o.mag[Symbol.for("-")](Math.log10(r.mag)):o.mag-Math.log10(r.mag)}()),s=function(){return void 0!==r.sign&&null!==r.sign&&r.sign[Symbol.for("+")]?r.sign[Symbol.for("+")](o.sign*c):r.sign+o.sign*c}();return T(Math.sign(s),1,function(){return void 0!==Math.log10(r.mag)&&null!==Math.log10(r.mag)&&Math.log10(r.mag)[Symbol.for("+")]?Math.log10(r.mag)[Symbol.for("+")](Math.log10(Math.abs(s))):Math.log10(r.mag)+Math.log10(Math.abs(s))}())}if(function(){return void 0!==Math.abs(o.mag-r.mag)&&null!==Math.abs(o.mag-r.mag)&&Math.abs(o.mag-r.mag)[Symbol.for(">")]?Math.abs(o.mag-r.mag)[Symbol.for(">")](g):Math.abs(o.mag-r.mag)>g}())return o;var m=Math.pow(10,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("-")]?o.mag[Symbol.for("-")](r.mag):o.mag-r.mag}()),d=function(){return void 0!==r.sign&&null!==r.sign&&r.sign[Symbol.for("+")]?r.sign[Symbol.for("+")](o.sign*m):r.sign+o.sign*m}();return T(Math.sign(d),1,function(){return void 0!==r.mag&&null!==r.mag&&r.mag[Symbol.for("+")]?r.mag[Symbol.for("+")](Math.log10(Math.abs(d))):r.mag+Math.log10(Math.abs(d))}())}},{key:"plus",value:function(e){return this.add(e)}},{key:"sub",value:function(e){return this.add(E(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=E(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 F(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 F(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 E(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 T(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 T(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 T(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=T(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(T(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 T(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=T(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(T(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 T(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=E(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 n=this;return 0===this.mag?e.dNaN:0===this.layer?T(this.sign,0,function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](n.mag):1/n.mag}()):T(this.sign,this.layer,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}())}},{key:"reciprocal",value:function(){return this.recip()}},{key:"reciprocate",value:function(){return this.recip()}},{key:"cmp",value:function(e){var n=this,o=E(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=E(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=E(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=E(e);return this.lt(n)?n:this}},{key:"min",value:function(e){var n=E(e);return this.gt(n)?n:this}},{key:"maxabs",value:function(e){var n=this,o=E(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=E(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=E(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=E(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=E(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=E(e);return this.eq_tolerance(o,n)||this.lt(o)}},{key:"gt_tolerance",value:function(e,n){var o=this,r=E(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=E(e);return this.eq_tolerance(o,n)||this.gt(o)}},{key:"pLog10",value:function(){return this.lt(e.dZero)?e.dZero:this.log10()}},{key:"absLog10",value:function(){var n=this;return 0===this.sign?e.dNaN:function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">")]?n.layer[Symbol.for(">")](0):n.layer>0}()?T(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag)):T(1,0,Math.log10(this.mag))}},{key:"log10",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?e.dNaN:function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">")]?n.layer[Symbol.for(">")](0):n.layer>0}()?T(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag)):T(this.sign,0,Math.log10(this.mag))}},{key:"log",value:function(n){var o=this;return n=E(n),function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("<=")]?o.sign[Symbol.for("<=")](0):o.sign<=0}()||function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()||1===n.sign&&0===n.layer&&1===n.mag?e.dNaN:0===this.layer&&0===n.layer?T(this.sign,0,function(){return void 0!==Math.log(o.mag)&&null!==Math.log(o.mag)&&Math.log(o.mag)[Symbol.for("/")]?Math.log(o.mag)[Symbol.for("/")](Math.log(n.mag)):Math.log(o.mag)/Math.log(n.mag)}()):e.div(this.log10(),n.log10())}},{key:"log2",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?e.dNaN:0===this.layer?T(this.sign,0,Math.log2(this.mag)):1===this.layer?T(Math.sign(this.mag),0,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("*")]?Math.abs(n.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(n.mag)}()):2===this.layer?T(Math.sign(this.mag),1,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("+")]?Math.abs(n.mag)[Symbol.for("+")](.5213902276543247):Math.abs(n.mag)+.5213902276543247}()):T(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag))}},{key:"ln",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?e.dNaN:0===this.layer?T(this.sign,0,Math.log(this.mag)):1===this.layer?T(Math.sign(this.mag),0,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("*")]?Math.abs(n.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(n.mag)}()):2===this.layer?T(Math.sign(this.mag),1,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("+")]?Math.abs(n.mag)[Symbol.for("+")](.36221568869946325):Math.abs(n.mag)+.36221568869946325}()):T(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag))}},{key:"logarithm",value:function(e){return this.log(e)}},{key:"pow",value:function(n){var o=E(n),r=this,t=o;if(0===r.sign)return t.eq(0)?F(1,0,1):r;if(1===r.sign&&0===r.layer&&1===r.mag)return r;if(0===t.sign)return F(1,0,1);if(1===t.sign&&0===t.layer&&1===t.mag)return r;var l=r.absLog10().mul(t).pow10();return this.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()?1===function(){return void 0!==Math.abs(t.toNumber()%2)&&null!==Math.abs(t.toNumber()%2)&&Math.abs(t.toNumber()%2)[Symbol.for("%")]?Math.abs(t.toNumber()%2)[Symbol.for("%")](2):Math.abs(t.toNumber()%2)%2}()?l.neg():0===function(){return void 0!==Math.abs(t.toNumber()%2)&&null!==Math.abs(t.toNumber()%2)&&Math.abs(t.toNumber()%2)[Symbol.for("%")]?Math.abs(t.toNumber()%2)[Symbol.for("%")](2):Math.abs(t.toNumber()%2)%2}()?l:e.dNaN:l}},{key:"pow10",value:function(){var n=this;if(function(){return void 0!==Number.isFinite(n.layer)&&null!==Number.isFinite(n.layer)&&Number.isFinite(n.layer)[Symbol.for("!")]?Number.isFinite(n.layer)[Symbol.for("!")]():!Number.isFinite(n.layer)}()||function(){return void 0!==Number.isFinite(n.mag)&&null!==Number.isFinite(n.mag)&&Number.isFinite(n.mag)[Symbol.for("!")]?Number.isFinite(n.mag)[Symbol.for("!")]():!Number.isFinite(n.mag)}())return e.dNaN;var o=this;if(0===o.layer){var r=Math.pow(10,function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("*")]?o.sign[Symbol.for("*")](o.mag):o.sign*o.mag}());if(Number.isFinite(r)&&function(){return void 0!==Math.abs(r)&&null!==Math.abs(r)&&Math.abs(r)[Symbol.for(">=")]?Math.abs(r)[Symbol.for(">=")](.1):Math.abs(r)>=.1}())return T(1,0,r);if(0===o.sign)return e.dOne;o=F(o.sign,function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](1):o.layer+1}(),Math.log10(o.mag))}return function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for(">")]?o.sign[Symbol.for(">")](0):o.sign>0}()&&function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">=")]?o.mag[Symbol.for(">=")](0):o.mag>=0}()?T(o.sign,function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](1):o.layer+1}(),o.mag):function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("<")]?o.sign[Symbol.for("<")](0):o.sign<0}()&&function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">=")]?o.mag[Symbol.for(">=")](0):o.mag>=0}()?T(function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("minus")]?o.sign[Symbol.for("minus")]():-o.sign}(),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](1):o.layer+1}(),function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag}()):e.dOne}},{key:"pow_base",value:function(e){return E(e).pow(this)}},{key:"root",value:function(e){var n=E(e);return this.pow(n.recip())}},{key:"factorial",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()||0===this.layer?this.add(1).gamma():1===this.layer?e.exp(e.mul(this,e.ln(this).sub(1))):e.exp(this)}},{key:"gamma",value:function(){var n=this;if(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}())return this.recip();if(0===this.layer){if(this.lt(F(1,0,24)))return E(R(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));var o=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](1):n.mag-1}(),r=.9189385332046727;r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")]((o+.5)*Math.log(o)):r+(o+.5)*Math.log(o)}(),r=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](o):r-o}();var t=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](o):o*o}(),l=o,i=function(){return 12[Symbol.for("*")]?12[Symbol.for("*")](l):12*l}(),u=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](i):1/i}(),a=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](u):r+u}();if(a===r)return e.exp(r);if(r=a,l=function(){return void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t}(),i=function(){return 360[Symbol.for("*")]?360[Symbol.for("*")](l):360*l}(),u=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](i):1/i}(),a=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](u):r-u}(),a===r)return e.exp(r);r=a,l=function(){return void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t}(),i=function(){return 1260[Symbol.for("*")]?1260[Symbol.for("*")](l):1260*l}();var f=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](i):1/i}();return r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](f):r+f}(),l=function(){return void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t}(),i=function(){return 1680[Symbol.for("*")]?1680[Symbol.for("*")](l):1680*l}(),f=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](i):1/i}(),r=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](f):r-f}(),e.exp(r)}return 1===this.layer?e.exp(e.mul(this,e.ln(this).sub(1))):e.exp(this)}},{key:"lngamma",value:function(){return this.gamma().ln()}},{key:"exp",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?e.dOne:0===this.layer&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<=")]?n.mag[Symbol.for("<=")](709.7):n.mag<=709.7}()?E(Math.exp(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):0===this.layer?T(1,1,function(){return n.sign*Math.log10(Math.E)!==void 0&&n.sign*Math.log10(Math.E)!==null&&(n.sign*Math.log10(Math.E))[Symbol.for("*")]?(n.sign*Math.log10(Math.E))[Symbol.for("*")](n.mag):n.sign*Math.log10(Math.E)*n.mag}()):1===this.layer?T(1,2,function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.log10(.4342944819032518)+n.mag):n.sign*(Math.log10(.4342944819032518)+n.mag)}()):T(1,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.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())}},{key:"sqr",value:function(){return this.pow(2)}},{key:"sqrt",value:function(){var n=this;if(0===this.layer)return E(Math.sqrt(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));if(1===this.layer)return T(1,2,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("-")](.3010299956639812):Math.log10(n.mag)-.3010299956639812}());var o=e.div(F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag),F(1,0,2));return o.layer=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](1):o.layer+1}(),o.normalize(),o}},{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 n=arguments,o=this,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,t=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]:F(1,0,1);if(1===r)return e.pow(this,t);if(0===r)return new e(t);if(this.eq(e.dOne))return e.dOne;if(this.eq(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()))return e.pow(this,t);if(r===Number.POSITIVE_INFINITY){var l=this.toNumber();if(function(){return void 0!==l&&null!==l&&l[Symbol.for("<=")]?l[Symbol.for("<=")](1.444667861009766):l<=1.444667861009766}()&&function(){return void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](.06598803584531254):l>=.06598803584531254}()){if(function(){return void 0!==l&&null!==l&&l[Symbol.for(">")]?l[Symbol.for(">")](1.444667861009099):l>1.444667861009099}())return new e(Math.E);var i=e.ln(this).neg();return i.lambertw().div(i)}return function(){return void 0!==l&&null!==l&&l[Symbol.for(">")]?l[Symbol.for(">")](1.444667861009766):l>1.444667861009766}()?new e(Number.POSITIVE_INFINITY):e.dNaN}if(this.eq(e.dZero)){var u=Math.abs(function(){return r+1!==void 0&&r+1!==null&&(r+1)[Symbol.for("%")]?(r+1)[Symbol.for("%")](2):(r+1)%2}());return function(){return void 0!==u&&null!==u&&u[Symbol.for(">")]?u[Symbol.for(">")](1):u>1}()&&(u=function(){return 2[Symbol.for("-")]?2[Symbol.for("-")](u):2-u}()),new e(u)}if(function(){return void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](0):r<0}())return e.iteratedlog(t,this,function(){return void 0!==r&&null!==r&&r[Symbol.for("minus")]?r[Symbol.for("minus")]():-r}());t=E(t);var a=r;r=Math.trunc(r);var f=function(){return void 0!==a&&null!==a&&a[Symbol.for("-")]?a[Symbol.for("-")](r):a-r}();if(this.gt(e.dZero)&&this.lte(1.444667861009766)){r=Math.min(1e4,r);for(var c=0;function(){return void 0!==c&&null!==c&&c[Symbol.for("<")]?c[Symbol.for("<")](r):c<r}();function(){return void 0!==c&&null!==c&&"object"===(0,S.Z)(c)&&c[Symbol.for("prefix-increment")]?c[Symbol.for("prefix-increment")]():++c}()){var s=t;if(t=this.pow(t),s.eq(t))return t}if(function(){return void 0!==f&&null!==f&&f[Symbol.for("!=")]?f[Symbol.for("!=")](0):0!=f}()){var m=this.pow(t);return t.mul(function(){return 1[Symbol.for("-")]?1[Symbol.for("-")](f):1-f}()).add(m.mul(f))}return t}(function(){return void 0!==f&&null!==f&&f[Symbol.for("!==")]?f[Symbol.for("!==")](0):0!==f})()&&(t.eq(e.dOne)?this.gt(10)?t=this.pow(f):(t=E(e.tetrate_critical(this.toNumber(),f)),this.lt(2)&&(t=t.sub(1).mul(this.minus(1)).plus(1))):t=this.eq(10)?t.layeradd10(f):t.layeradd(f,this));for(var d=0;function(){return void 0!==d&&null!==d&&d[Symbol.for("<")]?d[Symbol.for("<")](r):d<r}();function(){return void 0!==d&&null!==d&&"object"===(0,S.Z)(d)&&d[Symbol.for("prefix-increment")]?d[Symbol.for("prefix-increment")]():++d}()){if(t=this.pow(t),function(){return void 0!==isFinite(t.layer)&&null!==isFinite(t.layer)&&isFinite(t.layer)[Symbol.for("!")]?isFinite(t.layer)[Symbol.for("!")]():!isFinite(t.layer)}()||function(){return void 0!==isFinite(t.mag)&&null!==isFinite(t.mag)&&isFinite(t.mag)[Symbol.for("!")]?isFinite(t.mag)[Symbol.for("!")]():!isFinite(t.mag)}())return t.normalize();if(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}())return F(t.sign,function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("+")]?t.layer[Symbol.for("+")](r-d-1):t.layer+(r-d-1)}(),t.mag);if(function(){return void 0!==d&&null!==d&&d[Symbol.for(">")]?d[Symbol.for(">")](1e4):d>1e4}())return t}return t}},{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]:F(1,0,1);return this.tetrate(n,o)}},{key:"iteratedlog",value:function(){var n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:10,r=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]:1;if(function(){return void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](0):r<0}())return e.tetrate(o,function(){return void 0!==r&&null!==r&&r[Symbol.for("minus")]?r[Symbol.for("minus")]():-r}(),this);o=E(o);var t=E(this),l=r;r=Math.trunc(r);var i=function(){return void 0!==l&&null!==l&&l[Symbol.for("-")]?l[Symbol.for("-")](r):l-r}();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 u=Math.min(r,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("-")](u):r-u}(),t.layer=function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](u):t.layer-u}()}for(var a=0;function(){return void 0!==a&&null!==a&&a[Symbol.for("<")]?a[Symbol.for("<")](r):a<r}();function(){return void 0!==a&&null!==a&&"object"===(0,S.Z)(a)&&a[Symbol.for("prefix-increment")]?a[Symbol.for("prefix-increment")]():++a}()){if(t=t.log(o),function(){return void 0!==isFinite(t.layer)&&null!==isFinite(t.layer)&&isFinite(t.layer)[Symbol.for("!")]?isFinite(t.layer)[Symbol.for("!")]():!isFinite(t.layer)}()||function(){return void 0!==isFinite(t.mag)&&null!==isFinite(t.mag)&&isFinite(t.mag)[Symbol.for("!")]?isFinite(t.mag)[Symbol.for("!")]():!isFinite(t.mag)}())return t.normalize();if(function(){return void 0!==a&&null!==a&&a[Symbol.for(">")]?a[Symbol.for(">")](1e4):a>1e4}())return t}return function(){return void 0!==i&&null!==i&&i[Symbol.for(">")]?i[Symbol.for(">")](0):i>0}()&&function(){return void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](1):i<1}()&&(t=o.eq(10)?t.layeradd10(function(){return void 0!==i&&null!==i&&i[Symbol.for("minus")]?i[Symbol.for("minus")]():-i}()):t.layeradd(function(){return void 0!==i&&null!==i&&i[Symbol.for("minus")]?i[Symbol.for("minus")]():-i}(),o)),t}},{key:"slog",value:function(){var n=arguments,o=this,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:10;if(r=E(r),r.lte(e.dZero))return e.dNaN;if(r.eq(e.dOne))return e.dNaN;if(r.lt(e.dOne))return this.eq(e.dOne)?e.dZero:this.eq(e.dZero)?e.dNegOne:e.dNaN;if(function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("<")]?o.mag[Symbol.for("<")](0):o.mag<0}()||this.eq(e.dZero))return e.dNegOne;var t=0,l=E(this);if(function(){return l.layer-r.layer!==void 0&&l.layer-r.layer!==null&&(l.layer-r.layer)[Symbol.for(">")]?(l.layer-r.layer)[Symbol.for(">")](3):l.layer-r.layer>3}()){var i=function(){return l.layer-r.layer!==void 0&&l.layer-r.layer!==null&&(l.layer-r.layer)[Symbol.for("-")]?(l.layer-r.layer)[Symbol.for("-")](3):l.layer-r.layer-3}();t=function(){return void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](i):t+i}(),l.layer=function(){return void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](i):l.layer-i}()}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(l.lt(e.dZero))l=e.pow(r,l),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](1):t-1}();else{if(l.lte(e.dOne))return E(function(){return void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](e.slog_critical(r.toNumber(),l.toNumber())):t+e.slog_critical(r.toNumber(),l.toNumber())}());t=function(){return void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1):t+1}(),l=e.log(l,r)}return E(t)}},{key:"layeradd10",value:function(n){n=e.fromValue_noAlloc(n).toNumber();var o=E(this);if(function(){return void 0!==n&&null!==n&&n[Symbol.for(">=")]?n[Symbol.for(">=")](1):n>=1}()){(function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("<")]?o.mag[Symbol.for("<")](0):o.mag<0})()&&function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](0):o.layer>0}()?(o.sign=0,o.mag=0,o.layer=0):o.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()&&function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("==")]?o.layer[Symbol.for("==")](0):0==o.layer}()&&(o.sign=1,o.mag=function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag}());var r=Math.trunc(n);n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](r):n-r}(),o.layer=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](r):o.layer+r}()}if(function(){return void 0!==n&&null!==n&&n[Symbol.for("<=")]?n[Symbol.for("<=")](-1):n<=-1}()){var t=Math.trunc(n);if(n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](t):n-t}(),o.layer=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t}(),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0}())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(function(){void 0!==o.layer&&null!==o.layer&&"object"===(0,S.Z)(o.layer)&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++}(),o.mag=Math.log10(o.mag),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 0===o.sign&&(o.sign=1),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0}()&&(o.layer=0),o.normalize();if(function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](0):o.layer>=0}())break}}while(function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0}())(function(){void 0!==o.layer&&null!==o.layer&&"object"===(0,S.Z)(o.layer)&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag);return 0===o.sign&&(o.sign=1,0===o.mag&&function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](1):o.layer>=1}()&&(o.layer=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),o.mag=1)),o.normalize(),function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](0):0!==n}()?o.layeradd(n,10):o}},{key:"layeradd",value:function(n,o){var r=this.slog(o).toNumber(),t=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](n):r+n}();return function(){return void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](0):t>=0}()?e.tetrate(o,t):function(){return void 0!==Number.isFinite(t)&&null!==Number.isFinite(t)&&Number.isFinite(t)[Symbol.for("!")]?Number.isFinite(t)[Symbol.for("!")]():!Number.isFinite(t)}()?e.dNaN:function(){return void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](-1):t>=-1}()?e.log(e.tetrate(o,function(){return void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1):t+1}()),o):e.log(e.log(e.tetrate(o,function(){return void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](2):t+2}()),o),o)}},{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 E(_(this.toNumber()));if(0===this.layer)return E(_(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 F(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 F(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 n=arguments,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,r=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]:F(1,0,1);r=E(r);var t=o;o=Math.trunc(o);var l=function(){return void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](o):t-o}();(function(){return void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l})()&&(r.eq(e.dOne)?(function(){void 0!==o&&null!==o&&"object"===(0,S.Z)(o)&&o[Symbol.for("prefix-increment")]?o[Symbol.for("prefix-increment")]():++o}(),r=new e(l)):r=this.eq(10)?r.layeradd10(l):r.layeradd(l,this));for(var i=0;function(){return void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](o):i<o}();function(){return void 0!==i&&null!==i&&"object"===(0,S.Z)(i)&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i}()){if(r=this.tetrate(r.toNumber()),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!==i&&null!==i&&i[Symbol.for(">")]?i[Symbol.for(">")](10):i>10}())return r}return r}},{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?E(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}())):F(0,0,0)}},{key:"cos",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?e.dOne:0===this.layer?E(Math.cos(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(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?E(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}())):F(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?E(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}())):F(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}()?E(Math.acos(this.toNumber())):0===this.layer?E(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}())):F(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?E(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}())):E(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 e.ln(this.add(this.sqr().add(1).sqrt()))}},{key:"acosh",value:function(){return e.ln(this.add(this.sqr().sub(1).sqrt()))}},{key:"atanh",value:function(){return this.abs().gte(1)?F(Number.NaN,Number.NaN,Number.NaN):e.ln(this.add(1).div(E(1).sub(this))).div(2)}},{key:"ascensionPenalty",value:function(n){return 0===n?this:this.root(e.pow(10,n))}},{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(n,o,r){return(new e).fromComponents(n,o,r)}},{key:"fromComponents_noNormalize",value:function(n,o,r){return(new e).fromComponents_noNormalize(n,o,r)}},{key:"fromMantissaExponent",value:function(n,o){return(new e).fromMantissaExponent(n,o)}},{key:"fromMantissaExponent_noNormalize",value:function(n,o){return(new e).fromMantissaExponent_noNormalize(n,o)}},{key:"fromDecimal",value:function(n){return(new e).fromDecimal(n)}},{key:"fromNumber",value:function(n){return(new e).fromNumber(n)}},{key:"fromString",value:function(n){return(new e).fromString(n)}},{key:"fromValue",value:function(n){return(new e).fromValue(n)}},{key:"fromValue_noAlloc",value:function(n){return n instanceof e?n:new e(n)}},{key:"abs",value:function(e){return E(e).abs()}},{key:"neg",value:function(e){return E(e).neg()}},{key:"negate",value:function(e){return E(e).neg()}},{key:"negated",value:function(e){return E(e).neg()}},{key:"sign",value:function(e){return E(e).sign}},{key:"sgn",value:function(e){return E(e).sign}},{key:"round",value:function(e){return E(e).round()}},{key:"floor",value:function(e){return E(e).floor()}},{key:"ceil",value:function(e){return E(e).ceil()}},{key:"trunc",value:function(e){return E(e).trunc()}},{key:"add",value:function(e,n){return E(e).add(n)}},{key:"plus",value:function(e,n){return E(e).add(n)}},{key:"sub",value:function(e,n){return E(e).sub(n)}},{key:"subtract",value:function(e,n){return E(e).sub(n)}},{key:"minus",value:function(e,n){return E(e).sub(n)}},{key:"mul",value:function(e,n){return E(e).mul(n)}},{key:"multiply",value:function(e,n){return E(e).mul(n)}},{key:"times",value:function(e,n){return E(e).mul(n)}},{key:"div",value:function(e,n){return E(e).div(n)}},{key:"divide",value:function(e,n){return E(e).div(n)}},{key:"recip",value:function(e){return E(e).recip()}},{key:"reciprocal",value:function(e){return E(e).recip()}},{key:"reciprocate",value:function(e){return E(e).reciprocate()}},{key:"cmp",value:function(e,n){return E(e).cmp(n)}},{key:"cmpabs",value:function(e,n){return E(e).cmpabs(n)}},{key:"compare",value:function(e,n){return E(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=E(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=E(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}))},{key:"eq",value:function(e,n){return E(e).eq(n)}},{key:"equals",value:function(e,n){return E(e).eq(n)}},{key:"neq",value:function(e,n){return E(e).neq(n)}},{key:"notEquals",value:function(e,n){return E(e).notEquals(n)}},{key:"lt",value:function(e,n){return E(e).lt(n)}},{key:"lte",value:function(e,n){return E(e).lte(n)}},{key:"gt",value:function(e,n){return E(e).gt(n)}},{key:"gte",value:function(e,n){return E(e).gte(n)}},{key:"max",value:function(e,n){return E(e).max(n)}},{key:"min",value:function(e,n){return E(e).min(n)}},{key:"minabs",value:function(e,n){return E(e).minabs(n)}},{key:"maxabs",value:function(e,n){return E(e).maxabs(n)}},{key:"clamp",value:function(e,n,o){return E(e).clamp(n,o)}},{key:"clampMin",value:function(e,n){return E(e).clampMin(n)}},{key:"clampMax",value:function(e,n){return E(e).clampMax(n)}},{key:"cmp_tolerance",value:function(e,n,o){return E(e).cmp_tolerance(n,o)}},{key:"compare_tolerance",value:function(e,n,o){return E(e).cmp_tolerance(n,o)}},{key:"eq_tolerance",value:function(e,n,o){return E(e).eq_tolerance(n,o)}},{key:"equals_tolerance",value:function(e,n,o){return E(e).eq_tolerance(n,o)}},{key:"neq_tolerance",value:function(e,n,o){return E(e).neq_tolerance(n,o)}},{key:"notEquals_tolerance",value:function(e,n,o){return E(e).notEquals_tolerance(n,o)}},{key:"lt_tolerance",value:function(e,n,o){return E(e).lt_tolerance(n,o)}},{key:"lte_tolerance",value:function(e,n,o){return E(e).lte_tolerance(n,o)}},{key:"gt_tolerance",value:function(e,n,o){return E(e).gt_tolerance(n,o)}},{key:"gte_tolerance",value:function(e,n,o){return E(e).gte_tolerance(n,o)}},{key:"pLog10",value:function(e){return E(e).pLog10()}},{key:"absLog10",value:function(e){return E(e).absLog10()}},{key:"log10",value:function(e){return E(e).log10()}},{key:"log",value:function(e,n){return E(e).log(n)}},{key:"log2",value:function(e){return E(e).log2()}},{key:"ln",value:function(e){return E(e).ln()}},{key:"logarithm",value:function(e,n){return E(e).logarithm(n)}},{key:"pow",value:function(e,n){return E(e).pow(n)}},{key:"pow10",value:function(e){return E(e).pow10()}},{key:"root",value:function(e,n){return E(e).root(n)}},{key:"factorial",value:function(e,n){return E(e).factorial()}},{key:"gamma",value:function(e,n){return E(e).gamma()}},{key:"lngamma",value:function(e,n){return E(e).lngamma()}},{key:"exp",value:function(e){return E(e).exp()}},{key:"sqr",value:function(e){return E(e).sqr()}},{key:"sqrt",value:function(e){return E(e).sqrt()}},{key:"cube",value:function(e){return E(e).cube()}},{key:"cbrt",value:function(e){return E(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]:F(1,0,1);return E(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]:F(1,0,1);return E(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 E(e).iteratedlog(o,r)}},{key:"layeradd10",value:function(e,n){return E(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 E(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 E(e).slog(o)}},{key:"lambertw",value:function(e){return E(e).lambertw()}},{key:"ssqrt",value:function(e){return E(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]:F(1,0,1);return E(e).pentate(o,r)}},{key:"affordGeometricSeries",value:function(e,n,o,r){return this.affordGeometricSeries_core(E(e),E(n),E(o),r)}},{key:"sumGeometricSeries",value:function(e,n,o,r){return this.sumGeometricSeries_core(e,E(n),E(o),r)}},{key:"affordArithmeticSeries",value:function(e,n,o,r){return this.affordArithmeticSeries_core(E(e),E(n),E(o),E(r))}},{key:"sumArithmeticSeries",value:function(e,n,o,r){return this.sumArithmeticSeries_core(E(e),E(n),E(o),E(r))}},{key:"efficiencyOfPurchase",value:function(e,n,o){return this.efficiencyOfPurchase_core(E(e),E(n),E(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 F(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 F(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)),T(n,o,t)}},{key:"affordGeometricSeries_core",value:function(n,o,r,t){var l=o.mul(r.pow(t));return e.floor(n.div(l).mul(r.sub(1)).add(1).log10().div(r.log10()))}},{key:"sumGeometricSeries_core",value:function(n,o,r,t){return o.mul(r.pow(t)).mul(e.sub(1,r.pow(n))).div(e.sub(1,r))}},{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(n,o){return function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10}()?function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1}():e.critical_section(n,o,P)}},{key:"tetrate_critical",value:function(n,o){return e.critical_section(n,o,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("<")](w.length):l<w.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!==w[l]&&null!==w[l]&&w[l][Symbol.for("==")]?w[l][Symbol.for("==")](e):w[l]==e}()){r=o[l][Math.floor(n)],t=o[l][Math.ceil(n)];break}if(function(){return void 0!==w[l]&&null!==w[l]&&w[l][Symbol.for("<")]?w[l][Symbol.for("<")](e):w[l]<e}()&&function(){return void 0!==w[l+1]&&null!==w[l+1]&&w[l+1][Symbol.for(">")]?w[l+1][Symbol.for(">")](e):w[l+1]>e}()){var i=function(){return e-w[l]!==void 0&&e-w[l]!==null&&(e-w[l])[Symbol.for("/")]?(e-w[l])[Symbol.for("/")](w[l+1]-w[l]):(e-w[l])/(w[l+1]-w[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}}]),e}();(0,b.Z)(A,"dZero",F(0,0,0)),(0,b.Z)(A,"dOne",F(1,0,1)),(0,b.Z)(A,"dNegOne",F(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),0,1)),(0,b.Z)(A,"dTwo",F(1,0,2)),(0,b.Z)(A,"dTen",F(1,0,10)),(0,b.Z)(A,"dNaN",F(Number.NaN,Number.NaN,Number.NaN)),(0,b.Z)(A,"dInf",F(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,b.Z)(A,"dNegInf",F(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,b.Z)(A,"dNumberMax",T(1,0,Number.MAX_VALUE)),(0,b.Z)(A,"dNumberMin",T(1,0,Number.MIN_VALUE));var U=o(6453),q=A,z=new A(1);function L(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],t=A.log10(e).floor(),l=A.div(e,A.pow(10,t));"10"===l.toStringWithDecimalPlaces(n)&&(l=z,t=t.add(1));var i=t.gte(1e9)?oe(t,Math.max(Math.max(n,3),U.defaultDecimalsShown)):t.gte(1e4)?G(t,0):t.toStringWithDecimalPlaces(0);return r?function(){return l.toStringWithDecimalPlaces(n)+"e"!==void 0&&l.toStringWithDecimalPlaces(n)+"e"!==null&&(l.toStringWithDecimalPlaces(n)+"e")[Symbol.for("+")]?(l.toStringWithDecimalPlaces(n)+"e")[Symbol.for("+")](i):l.toStringWithDecimalPlaces(n)+"e"+i}():function(){return"e"[Symbol.for("+")]?"e"[Symbol.for("+")](i):"e"+i}()}function G(e,n){if(null===e||void 0===e)return"NaN";if(e=new A(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),r=o.split(".");return r[0]=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),function(){return void 0!==r.length&&null!==r.length&&r.length[Symbol.for("==")]?r.length[Symbol.for("==")](1):1==r.length}()?r[0]:function(){return r[0]+"."!==void 0&&r[0]+"."!==null&&(r[0]+".")[Symbol.for("+")]?(r[0]+".")[Symbol.for("+")](r[1]):r[0]+"."+r[1]}()}function H(e,n){return null===e||void 0===e?"NaN":(e=new A(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),U.defaultDecimalsShown)),e.toStringWithDecimalPlaces(n)))}var W=new A("eeee1000"),Y=new A("e100000"),K=new A("e1000"),J=new A(1e9),Q=new A(1e6),$=new A(1e3),X=new A(.98),ee=new A(.001),ne=new A(0);function oe(e,n,o){var r;if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&(n=U.defaultDecimalsShown),o=function(){return void 0!==(r=o)&&null!==(r=o)&&(r=o)[Symbol.for("!==")]?(r=o)[Symbol.for("!==")](null):null!==(r=o)}()&&function(){return void 0!==r&&null!==r&&r[Symbol.for("!==")]?r[Symbol.for("!==")](void 0):void 0!==r}()?r:U.defaultShowSmall,e=new A(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("+")](oe(e.neg(),n)):"-"+oe(e.neg(),n)}();if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(W)){var t=e.slog();return t.gte(Q)?function(){return"F"[Symbol.for("+")]?"F"[Symbol.for("+")](oe(t.floor())):"F"+oe(t.floor())}():function(){return A.pow(10,t.sub(t.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&A.pow(10,t.sub(t.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(A.pow(10,t.sub(t.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(A.pow(10,t.sub(t.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](G(t.floor(),0)):A.pow(10,t.sub(t.floor())).toStringWithDecimalPlaces(3)+"F"+G(t.floor(),0)}()}if(e.gte(Y))return L(e,0,!1);if(e.gte(K))return L(e,0);if(e.gte(J))return L(e,n);if(e.gte($))return G(e,0);if(e.gte(ee)||function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}())return H(e,n);if(e.eq(ne))return(0).toFixed(n);if(e=ue(e),e.lt(K)){var l=L(e,n);return l.replace(/([^(?:e|F)]*)$/,"-$1")}return function(){return void 0!==oe(e,n)&&null!==oe(e,n)&&oe(e,n)[Symbol.for("+")]?oe(e,n)[Symbol.for("+")]("⁻¹"):oe(e,n)+"⁻¹"}()}function re(e){return e=new A(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("+")](re(e.neg())):"-"+re(e.neg())}():e.gte(J)||e.lte(X)&&function(){return void 0!==e.eq(ne)&&null!==e.eq(ne)&&e.eq(ne)[Symbol.for("!")]?e.eq(ne)[Symbol.for("!")]():!e.eq(ne)}()?oe(e):oe(e,0)}function te(e){return A.lt(e,0)?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](te(A.neg(e))):"-"+te(A.neg(e))}():A.gt(e,function(){return 2[Symbol.for("**")]?2[Symbol.for("**")](51):Math.pow(2,51)}())?function(){return void 0!==oe(A.div(e,31536e3))&&null!==oe(A.div(e,31536e3))&&oe(A.div(e,31536e3))[Symbol.for("+")]?oe(A.div(e,31536e3))[Symbol.for("+")]("y"):oe(A.div(e,31536e3))+"y"}():(e=new A(e).toNumber(),function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](60):e<60}()?function(){return void 0!==oe(e)&&null!==oe(e)&&oe(e)[Symbol.for("+")]?oe(e)[Symbol.for("+")]("s"):oe(e)+"s"}():function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](3600):e<3600}()?function(){return re(Math.floor(e/60))+"m "+oe(e%60)!==void 0&&re(Math.floor(e/60))+"m "+oe(e%60)!==null&&(re(Math.floor(e/60))+"m "+oe(e%60))[Symbol.for("+")]?(re(Math.floor(e/60))+"m "+oe(e%60))[Symbol.for("+")]("s"):re(Math.floor(e/60))+"m "+oe(e%60)+"s"}():function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](86400):e<86400}()?function(){return re(Math.floor(e/3600))+"h "+re(Math.floor(e/60)%60)+"m "+re(e%60)!==void 0&&re(Math.floor(e/3600))+"h "+re(Math.floor(e/60)%60)+"m "+re(e%60)!==null&&(re(Math.floor(e/3600))+"h "+re(Math.floor(e/60)%60)+"m "+re(e%60))[Symbol.for("+")]?(re(Math.floor(e/3600))+"h "+re(Math.floor(e/60)%60)+"m "+re(e%60))[Symbol.for("+")]("s"):re(Math.floor(e/3600))+"h "+re(Math.floor(e/60)%60)+"m "+re(e%60)+"s"}():function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](31536e3):e<31536e3}()?function(){return re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)+"h "+re(Math.floor(e/60)%60)!==void 0&&re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)+"h "+re(Math.floor(e/60)%60)!==null&&(re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)+"h "+re(Math.floor(e/60)%60))[Symbol.for("+")]?(re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)+"h "+re(Math.floor(e/60)%60))[Symbol.for("+")]("m"):re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)+"h "+re(Math.floor(e/60)%60)+"m"}():function(){return re(Math.floor(e/31536e3))+"y "+re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)!==void 0&&re(Math.floor(e/31536e3))+"y "+re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)!==null&&(re(Math.floor(e/31536e3))+"y "+re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24))[Symbol.for("+")]?(re(Math.floor(e/31536e3))+"y "+re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24))[Symbol.for("+")]("h"):re(Math.floor(e/31536e3))+"y "+re(Math.floor(e/84600)%365)+"d "+re(Math.floor(e/3600)%24)+"h"}())}function le(e,n,o){e=new A(e);var r=e.toStringWithDecimalPlaces(n);return new A(r).gte(o)&&(r=A.sub(o,Math.pow(.1,n)).toStringWithDecimalPlaces(n)),r}function ie(e,n){return oe(e,n,!0)}function ue(e){var n=A.log10(e).ceil(),o=A.div(e,A.pow(10,n));return n=n.neg(),e=new A(10).pow(n).times(o),e}var ae=L,fe=G,ce=H,se=oe,me=re,de=te,ye=le,ve=ie,be=ue;window.Decimal=q,window.exponentialFormat=ae,window.commaFormat=fe,window.regularFormat=ce,window.format=se,window.formatWhole=me,window.formatTime=de,window.toPlaces=ye,window.formatSmall=ve,window.invertOOM=be;var Se=q},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},UI:function(){return u}});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)))}function u(e){return(0,t.mf)(e)&&function(){return void 0!==e[l]&&null!==e[l]&&e[l][Symbol.for("!")]?e[l][Symbol.for("!")]():!e[l]}()&&(e=(0,r.computed)(e)),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(4858),o(1299),o(7556),o(5003);var r=Symbol("ProxyState"),t=Symbol("ProxyPath");function l(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]:{},t=o,l=!1;function i(){return function(){return void 0!==l&&null!==l&&l[Symbol.for("!")]?l[Symbol.for("!")]():!l}()&&(Object.assign(t,e(t)),l=!0),t}return new Proxy(t,{get:function(e,n){return n===r?i():i()[n]},set:function(e,n,o){return i()[n]=o,!0},has:function(e,n){return n===r||Reflect.has(i(),n)},ownKeys:function(){return Reflect.ownKeys(i())},getOwnPropertyDescriptor:function(n,o){return function(){return void 0!==l&&null!==l&&l[Symbol.for("!")]?l[Symbol.for("!")]():!l}()&&(Object.assign(t,e(t)),l=!0),Object.getOwnPropertyDescriptor(n,o)}})}},463:function(e,n,o){"use strict";o.d(n,{a1:function(){return c},zD:function(){return s},xM:function(){return d},QI:function(){return y},uW:function(){return v},y6:function(){return S}});var r=o(3336),t=o(8534),l=(o(5666),o(2526),o(1817),o(1539),o(7042),o(7714),o(2801),o(1174),o(2222),o(8783),o(3948),o(4747),o(6453)),i=o(5967),u=o(9266),a=o(3273);function f(){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:0,timePlayed:0,keepGoing:!1,modID:l.id,modVersion:l.versionNumber,layers:{}},n)}function c(){var e=btoa(unescape(encodeURIComponent((0,i.U)(i.Z[a.Le]))));return localStorage.setItem(i.Z.id,e),e}function s(){return m.apply(this,arguments)}function m(){return m=(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(d());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(d());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(d());case 22:case"end":return e.stop()}}),e,null,[[1,17]])}))),m.apply(this,arguments)}function d(){var e=y(),n=f({id:e});return localStorage.setItem(e,btoa(unescape(encodeURIComponent((0,i.U)(n))))),u.ZP.saves.push(e),n}function y(){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 b.apply(this,arguments)}function b(){return b=(0,t.Z)(regeneratorRuntime.mark((function e(n){var r,t,a,c,s,m,d,y;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,a=r.removeLayer,c=r.addLayer,e.next=9,Promise.resolve().then(o.bind(o,1657));case 9:for(y in s=e.sent,m=s.fixOldSave,d=s.getInitialLayers,t)a(t[y]);d(n).forEach((function(e){return c(e,n)})),n=f(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=0),n.offlineTime=function(){return void 0!==n.offlineTime&&null!==n.offlineTime&&n.offlineTime[Symbol.for("+")]?n.offlineTime[Symbol.for("+")]((Date.now()-n.time)/1e3):n.offlineTime+(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}()&&m(n.modVersion,n),Object.assign(i.Z,n),u.ZP.active=i.Z.id;case 20:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}setInterval((function(){i.Z.autosave&&c()}),1e3),window.onbeforeunload=function(){i.Z.autosave&&c()},window.save=c;var S=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(d());case 2:case"end":return e.stop()}}),e)})))},5246:function(e,n,o){"use strict";o(2526),o(1817),o(1539),o(4747),o(7327),o(2479);var r=o(9365),t=o(6591),l=o(1604),i=o(4865);e=o.hmd(e),n["Z"]=(0,i.defineComponent)({props:{style:(0,l.P5)(String,Object,Array),classes:(0,l.P5)(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup:function(n){var o=(0,i.ref)(null),l=new ResizeObserver(c),u=(0,i.inject)(r.NodesInjectionKey),a=(0,i.ref)(null);(0,i.onMounted)((function(){var r,u,f=a.value;(function(){return void 0!==f&&null!==f&&f[Symbol.for("!=")]?f[Symbol.for("!=")](null):null!=f})()&&(l.observe(f),o.value=new t.MxU({resizeTo:f,backgroundAlpha:0}),null===(u=a.value)||void 0===u||u.appendChild(o.value.view),n.onInit(o.value));c(),"apply"===(null===(r=e.hot)||void 0===r?void 0:r.status())&&n.onHotReload&&(0,i.nextTick)(n.onHotReload)})),(0,i.onBeforeUnmount)((function(){var e;null===(e=o.value)||void 0===e||e.destroy()}));var f=!0;function c(){f&&(f=!1,(0,i.nextTick)((function(){var e;(function(){return void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!=")]?a.value[Symbol.for("!=")](null):null!=a.value})()&&n.onContainerResized&&(Object.values(u.value).filter((function(e){return e})).forEach((function(e){return e.rect=e.element.getBoundingClientRect()})),n.onContainerResized(a.value.getBoundingClientRect()),null===(e=o.value)||void 0===e||e.resize());f=!0})))}return document.fonts.ready.then(c),{unref:i.unref,resizeListener:a}}})},1657:function(e,n,o){"use strict";o.r(n),o.d(n,{fixOldSave:function(){return yr},getInitialLayers:function(){return mr},hasWon:function(){return dr},main:function(){return sr}});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),v=o(3336),b=(o(7268),o(86),o(5613)),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",t=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,l=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]:void 0,i=(0,r.isRef)(e)?e:(0,g.ax)(e);return i.displayName=o,i.precision=t,i.small=l,i}function h(e){var n=(0,g.ax)(e.value);return(0,r.watch)(e,(function(e){b.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){b.ZP.gt(e,o)&&(n.value=b.ZP.add(n.value,b.ZP.sub(e,o)))})),n}var k=new b.ZP("10^^8"),V=new b.ZP("1e100");function x(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,b.ZP.lte(e.value,V))l.value=e.value;else{var r=e.value,i=l.value;if(l.value=r,b.ZP.gt(r,i))if(b.ZP.gte(r,k))r=b.ZP.slog(r,1e10),i=b.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(b.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}()&&b.ZP.gt(i,0))r=b.ZP.log10(r),i=b.ZP.log10(i),o.value=r.sub(i).div(n),function(){void 0!==t.value&&null!==t.value&&"object"===(0,v.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,b.WU)(n.value,e.precision,e.small)+" "+e.displayName!==void 0&&(0,b.WU)(n.value,e.precision,e.small)+" "+e.displayName!==null&&((0,b.WU)(n.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]?((0,b.WU)(n.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]("/s"):(0,b.WU)(n.value,e.precision,e.small)+" "+e.displayName+"/s"}():"":function(){return(0,b.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==void 0&&(0,b.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==null&&((0,b.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]?((0,b.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]("s/sec"):(0,b.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)+"s/sec"}()}));return i}function M(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 b.ZP.eq(e.precision,0)?(0,b.Ht)(o):(0,b.WU)(o,e.precision,e.small)}var Z=o(9584);o(4553),o(6699),o(2023),o(4747),o(7327),o(1249),o(2222);function C(e,n,o,t,l,i){var u=(0,r.resolveComponent)("Links");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.nodesComp))),e.leftNodesComp?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.leftNodesComp),{key:0})):(0,r.createCommentVNode)("",!0),e.rightNodesComp?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.rightNodesComp),{key:1})):(0,r.createCommentVNode)("",!0),e.branches?((0,r.openBlock)(),(0,r.createBlock)(u,{key:2,links:e.unref(e.branches)},null,8,["links"])):(0,r.createCommentVNode)("",!0)],64)}var w=o(1604),B=(o(2479),o(9365)),P=(o(9254),["x1","y1","x2","y2"]),E=(0,r.defineComponent)({props:{link:null,startNode:null,endNode:null,boundingRect:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=(0,r.computed)((function(){var e=o.startNode.value.rect,n=o.boundingRect.value,r=n?{x:function(){return e.x+e.width/2!==void 0&&e.x+e.width/2!==null&&(e.x+e.width/2)[Symbol.for("-")]?(e.x+e.width/2)[Symbol.for("-")](n.x):e.x+e.width/2-n.x}(),y:function(){return e.y+e.height/2!==void 0&&e.y+e.height/2!==null&&(e.y+e.height/2)[Symbol.for("-")]?(e.y+e.height/2)[Symbol.for("-")](n.y):e.y+e.height/2-n.y}()}:{x:0,y:0};return o.link.value.offsetStart&&(r.x=function(){return void 0!==r.x&&null!==r.x&&r.x[Symbol.for("+")]?r.x[Symbol.for("+")](o.link.value.offsetStart.x):r.x+o.link.value.offsetStart.x}(),r.y=function(){return void 0!==r.y&&null!==r.y&&r.y[Symbol.for("+")]?r.y[Symbol.for("+")](o.link.value.offsetStart.y):r.y+o.link.value.offsetStart.y}()),r})),l=(0,r.computed)((function(){var e=o.endNode.value.rect,n=o.boundingRect.value,r=n?{x:function(){return e.x+e.width/2!==void 0&&e.x+e.width/2!==null&&(e.x+e.width/2)[Symbol.for("-")]?(e.x+e.width/2)[Symbol.for("-")](n.x):e.x+e.width/2-n.x}(),y:function(){return e.y+e.height/2!==void 0&&e.y+e.height/2!==null&&(e.y+e.height/2)[Symbol.for("-")]?(e.y+e.height/2)[Symbol.for("-")](n.y):e.y+e.height/2-n.y}()}:{x:0,y:0};return o.link.value.offsetEnd&&(r.x=function(){return void 0!==r.x&&null!==r.x&&r.x[Symbol.for("+")]?r.x[Symbol.for("+")](o.link.value.offsetEnd.x):r.x+o.link.value.offsetEnd.x}(),r.y=function(){return void 0!==r.y&&null!==r.y&&r.y[Symbol.for("+")]?r.y[Symbol.for("+")](o.link.value.offsetEnd.y):r.y+o.link.value.offsetEnd.y}()),r}));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)(l).x,y2:(0,r.unref)(l).y}),null,16,P)}}});const T=E;var F=T,I=(0,r.defineComponent)({props:{links:null},setup:function(e){var n,o=e,t=(0,r.toRef)(o,"links"),l=new ResizeObserver(c),i=(0,r.inject)(B.NodesInjectionKey),u=(0,r.ref)(null);(0,r.onMounted)((function(){var e=u.value;(function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e})()&&l.observe(e)}));var a=!0,f=(0,r.ref)(null===(n=u.value)||void 0===n?void 0:n.getBoundingClientRect());function c(){(function(){return void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!=")]?u.value[Symbol.for("!=")](null):null!=u.value})()&&a&&(a=!1,(0,r.nextTick)((function(){var e;f.value=null===(e=u.value)||void 0===e?void 0:e.getBoundingClientRect(),Object.values(i.value).forEach((function(e){return e.rect=e.element.getBoundingClientRect()})),a=!0})))}document.fonts.ready.then(c);var s=(0,r.computed)((function(){var e,n=i.value;return function(){var o,r,l,i,u;return void 0!==(e=null===(o=t.value)||void 0===o?void 0:o.filter((function(e){var o,r;return(null===(o=n[e.startNode.id])||void 0===o?void 0:o.rect)&&(null===(r=n[e.startNode.id])||void 0===r?void 0:r.rect)})))&&null!==(e=null===(r=t.value)||void 0===r?void 0:r.filter((function(e){var o,r;return(null===(o=n[e.startNode.id])||void 0===o?void 0:o.rect)&&(null===(r=n[e.startNode.id])||void 0===r?void 0:r.rect)})))&&(e=null===(l=t.value)||void 0===l?void 0:l.filter((function(e){var o,r;return(null===(o=n[e.startNode.id])||void 0===o?void 0:o.rect)&&(null===(r=n[e.startNode.id])||void 0===r?void 0:r.rect)})))[Symbol.for("!==")]?(e=null===(i=t.value)||void 0===i?void 0:i.filter((function(e){var o,r;return(null===(o=n[e.startNode.id])||void 0===o?void 0:o.rect)&&(null===(r=n[e.startNode.id])||void 0===r?void 0:r.rect)})))[Symbol.for("!==")](null):null!==(e=null===(u=t.value)||void 0===u?void 0:u.filter((function(e){var o,r;return(null===(o=n[e.startNode.id])||void 0===o?void 0:o.rect)&&(null===(r=n[e.startNode.id])||void 0===r?void 0:r.rect)})))}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()?e:[]}));return function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(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)(F,{key:n,link:e,boundingRect:(0,r.unref)(f),startNode:(0,r.unref)(i)[e.startNode.id],endNode:(0,r.unref)(i)[e.endNode.id]},null,8,["link","boundingRect","startNode","endNode"])})),128))],16)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{ref_key:"resizeListener",ref:u,class:"resize-listener"},null,512)],64)}}});const D=(0,u.Z)(I,[["__scopeId","data-v-e35b0402"]]);var R=D,O=(0,r.defineComponent)({props:{nodes:{type:(0,w.P5)(Array),required:!0},leftSideNodes:(0,w.P5)(Array),rightSideNodes:(0,w.P5)(Array),branches:(0,w.P5)(Array)},components:{Links:R},setup:function(e){var n=(0,r.toRefs)(e),o=n.nodes,t=n.leftSideNodes,l=n.rightSideNodes,i=(0,r.shallowRef)();(0,r.watchEffect)((function(){var e=(0,w.Uv)(o);i.value=(0,w.MM)((0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[e.map((function(e){return(0,r.createVNode)("span",{class:"row"},[e.map(w.qF)])}))])})))}));var u=(0,r.shallowRef)();(0,r.watchEffect)((function(){var e=(0,w.Uv)(t);u.value=e?(0,w.MM)((0,y.tZ)((function(){return(0,r.createVNode)("span",{class:"left-side-nodes small"},[e.map(w.qF)])}))):""}));var a=(0,r.shallowRef)();return(0,r.watchEffect)((function(){var e=(0,w.Uv)(l);a.value=e?(0,w.MM)((0,y.tZ)((function(){return(0,r.createVNode)("span",{class:"side-nodes small"},[e.map(w.qF)])}))):""})),{unref:r.unref,nodesComp:i,leftNodesComp:u,rightNodesComp:a}}});const _=(0,u.Z)(O,[["render",C],["__scopeId","data-v-51e99c22"]]);var j=_,A=o(5082);function U(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("Node");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:(0,r.normalizeClass)((0,A.Z)({treeNode:!0,can:e.unref(e.canClick)},e.unref(e.classes)))},[(0,r.createElementVNode)("div",{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)}),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!==(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.unref(e.comp))))],36),(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)}o(9653);var q=o(6084),z=(0,r.defineComponent)({props:{id:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=(0,r.inject)(B.RegisterNodeInjectionKey),l=(0,r.inject)(B.UnregisterNodeInjectionKey),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,q.Z)(e,2),i=o[0],u=o[1],a=(0,q.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:"node",ref_key:"node",ref:i},null,512)}}});const L=(0,u.Z)(z,[["__scopeId","data-v-63ded336"]]);var G=L,H={key:0},W={key:0,class:"mark star"},Y=["src"],K=(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",H,[!0===e.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",W)):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,class:"mark",src:e.mark},null,8,Y))])):(0,r.createCommentVNode)("",!0)}}});const J=(0,u.Z)(K,[["__scopeId","data-v-c476c56a"]]);var Q=J,$=(0,r.defineComponent)({props:{display:(0,w.P5)(Object,String,Function),visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),onClick:Function,onHold:Function,color:(0,w.P5)(String),glowColor:(0,w.P5)(String),canClick:{type:(0,w.P5)(Boolean),required:!0},mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Q,Node:G},setup:function(e){var n=(0,r.toRefs)(e),o=n.onClick,t=n.onHold,l=n.display,i=(0,w.KO)(l),u=(0,w.ix)(o,t),a=u.start,f=u.stop;return{start:a,stop:f,comp:i,unref:r.unref,Visibility:y.EE,isCoercableComponent:w.RU}}});const X=(0,u.Z)($,[["render",U],["__scopeId","data-v-426d9bce"]]);var ee=X,ne=o(9583),oe=o(3273),re=Symbol("TreeNode"),te=Symbol("Tree");function le(e){return(0,oe.z2)((function(){var n=e();if(n.id=(0,y.QI)("treeNode-"),n.type=re,n[y.wA]=ee,(0,ne.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,ne.yB)(n,"canClick"),(0,y.Rh)(n,"canClick",!0),(0,ne.yB)(n,"color"),(0,ne.yB)(n,"display"),(0,ne.yB)(n,"glowColor"),(0,ne.yB)(n,"classes"),(0,ne.yB)(n,"style"),(0,ne.yB)(n,"mark"),n.onClick){var o=n.onClick.bind(n);n.onClick=function(){(0,r.unref)(n.canClick)&&o()}}if(n.onHold){var t=n.onHold.bind(n);n.onHold=function(){(0,r.unref)(n.canClick)&&t()}}return 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.color,u=this.glowColor,a=this.canClick,f=this.mark,c=this.id;return{display:e,visibility:n,style:o,classes:r,onClick:t,onHold:l,color:i,glowColor:u,canClick:a,mark:f,id:c}},n}))}function ie(e){return(0,oe.z2)((function(){var n=e();return n.id=(0,y.QI)("tree-"),n.type=te,n[y.wA]=j,n.isResetting=(0,r.ref)(!1),n.resettingNode=(0,r.shallowRef)(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,ne.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,ne.yB)(n,"nodes"),(0,ne.yB)(n,"leftSideNodes"),(0,ne.yB)(n,"rightSideNodes"),(0,ne.yB)(n,"branches"),n[y.tj]=function(){var e=this.nodes,n=this.leftSideNodes,o=this.rightSideNodes,r=this.branches;return{nodes:e,leftSideNodes:n,rightSideNodes:o,branches:r}},n}))}var ue=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()}()};function ae(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]:null,t=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,l=(0,ne.UI)(t);return(0,r.computed)((function(){return function(){return void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o}()||b.ZP.gte(e.value,(0,r.unref)(l))?function(){return M(e)+" "!==void 0&&M(e)+" "!==null&&(M(e)+" ")[Symbol.for("+")]?(M(e)+" ")[Symbol.for("+")](e.displayName):M(e)+" "+e.displayName}():"Reach ".concat(b.ZP.eq(o.precision,0)?(0,b.Ht)((0,r.unref)(l)):(0,b.WU)((0,r.unref)(l),o.precision)," ").concat(o.displayName," to unlock (You have ").concat(b.ZP.eq(o.precision,0)?(0,b.Ht)(o.value):(0,b.WU)(o.value,o.precision),")")}))}var fe=o(5967),ce=o(2482),se=(o(8862),o(274)),me=o(264);function de(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("Node");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,A.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 ye=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:(0,w.P5)(Object,String,Function),earned:{type:(0,w.P5)(Boolean),required:!0},image:(0,w.P5)(String),style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{Node:G,MarkNode:Q},setup:function(e){var n=(0,r.toRefs)(e),o=n.display;return{component:(0,w.KO)(o),unref:r.unref,Visibility:y.EE}}});const ve=(0,u.Z)(ye,[["render",de],["__scopeId","data-v-e3f32402"]]);var be=ve,Se=o(3002);o(343);function ge(){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 pe(){return ge("red","20px")}S.globalBus.on("setupVue",(function(e){return e.use(Se.ZP)}));var he=(0,Se.pm)(),Ne=Symbol("Achievement");function ke(e){return(0,oe.z2)((function(n){var o=Object.assign(n,e());if(o.id=(0,y.QI)("achievement-"),o.type=Ne,o[y.wA]=be,o.earned=o[g.n9],o.complete=function(){o[g.n9].value=!0},(0,ne.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,ne.yB)(o,"display"),(0,ne.yB)(o,"mark"),(0,ne.yB)(o,"image"),(0,ne.yB)(o,"style"),(0,ne.yB)(o,"classes"),o[y.tj]=function(){var e=this.visibility,n=this.display,o=this.earned,t=this.image,l=this.style,i=this.classes,u=this.mark,a=this.id;return{visibility:e,display:n,earned:o,image:t,style:(0,r.unref)(l),classes:i,mark:u,id:a}},o.shouldEarn){var t=o;(0,r.watchEffect)((function(){var e,n;if(function(){return void 0!==t.earned.value&&null!==t.earned.value&&t.earned.value[Symbol.for("!")]?t.earned.value[Symbol.for("!")]():!t.earned.value}()&&(0,r.unref)(t.visibility)===y.EE.Visible&&function(){return void 0!==(e=t.shouldEarn)&&null!==(e=t.shouldEarn)&&(e=t.shouldEarn)[Symbol.for("!==")]?(e=t.shouldEarn)[Symbol.for("!==")](null):null!==(e=t.shouldEarn)}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()&&e.call(t)&&(t.earned.value=!0,null===(n=t.onComplete)||void 0===n||n.call(t),t.display)){var o=(0,w.MM)((0,r.unref)(t.display));he.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)])]))}}))}return o}),(0,g.ax)(!1))}o(9714),o(7042);function Ve(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 xe=o(1037),Me=o(9266),Ze={key:0};function Ce(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("Node");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)})},[e.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ze,[((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"])],38)):(0,r.createCommentVNode)("",!0)}var we=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},onClick:Function,onHold:Function,display:{type:(0,w.P5)(Object,String,Function),required:!0},title:(0,w.P5)(Object,String,Function),style:(0,w.P5)(String,Object,Array),canClick:{type:(0,w.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:G},setup:function(e){var n=(0,r.toRefs)(e),o=n.onClick,t=n.onHold,l=n.title,i=n.display,u=(0,w.ix)(o,t),a=u.start,f=u.stop,c=(0,w.KO)(l),s=(0,w.vq)(i);return{start:a,stop:f,titleComponent:c,component:s,Visibility:y.EE,unref:r.unref}}});const Be=(0,u.Z)(we,[["render",Ce],["__scopeId","data-v-b1182ac6"]]);var Pe=Be,Ee=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},rows:{type:(0,w.P5)(Number),required:!0},cols:{type:(0,w.P5)(Number),required:!0},cells:{type:(0,w.P5)(Object),required:!0}},components:{GridCell:Pe},setup:function(){var e=(0,r.computed)((function(){return xe.Z[Me.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 Te=(0,u.Z)(Ee,[["render",Ve]]);var Fe=Te,Ie=o(1349);Symbol("Grid");function De(e){return new Proxy({},Re(e))}function Re(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,v.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,v.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,v.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,Oe(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 Oe(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,Ie.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,v.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,Ie.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,Ie.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,Ie.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 _e(e){return(0,oe.z2)((function(n){var o=Object.assign(n,e());if(o.id=(0,y.QI)("grid-"),o[y.wA]=Fe,o.getID=function(e){return function(){return o.id+"-"!==void 0&&o.id+"-"!==null&&(o.id+"-")[Symbol.for("+")]?(o.id+"-")[Symbol.for("+")](e):o.id+"-"+e}()},o.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},o.setState=function(e,n){this[g.n9].value[e]=n},o.cells=De(o),(0,ne.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,ne.yB)(o,"rows"),(0,ne.yB)(o,"cols"),(0,ne.yB)(o,"getVisibility"),(0,y.Rh)(o,"getVisibility",y.EE.Visible),(0,ne.yB)(o,"getCanClick"),(0,y.Rh)(o,"getCanClick",!0),(0,ne.yB)(o,"getStartState"),(0,ne.yB)(o,"getStyle"),(0,ne.yB)(o,"getClasses"),(0,ne.yB)(o,"getTitle"),(0,ne.yB)(o,"getDisplay"),o.onClick){var t=o.onClick.bind(o);o.onClick=function(e,n){(0,r.unref)(o.cells[e].canClick)&&t(e,n)}}if(o.onHold){var l=o.onHold.bind(o);o.onHold=function(e,n){(0,r.unref)(o.cells[e].canClick)&&l(e,n)}}return o[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}},o}),(0,g.ax)({}))}o(561);function je(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("Node");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.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)}),class:(0,r.normalizeClass)((0,A.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)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,r.createVNode)(f,{id:e.id},null,8,["id"])],38)):(0,r.createCommentVNode)("",!0)}var Ae=(0,r.defineComponent)({props:{display:{type:(0,w.P5)(Object,String,Function),required:!0},visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(Object,String,Array),classes:(0,w.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,w.P5)(Boolean),required:!0},small:Boolean,mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{Node:G,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,w.Uv)(o);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())i.value="";else if((0,w.RU)(e))i.value=(0,w.MM)(e);else{var n=(0,w.MM)(e.title||"","h3"),t=(0,w.MM)(e.description,"div");i.value=(0,w.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,w.ix)(t,l),a=u.start,f=u.stop;return{start:a,stop:f,comp:i,Visibility:y.EE,unref:r.unref}}});const Ue=(0,u.Z)(Ae,[["render",je],["__scopeId","data-v-6b39988a"]]);var qe=Ue,ze=Symbol("Clickable");function Le(e){return(0,oe.z2)((function(){var n=e();if(n.id=(0,y.QI)("clickable-"),n.type=ze,n[y.wA]=qe,(0,ne.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,ne.yB)(n,"canClick"),(0,y.Rh)(n,"canClick",!0),(0,ne.yB)(n,"classes"),(0,ne.yB)(n,"style"),(0,ne.yB)(n,"mark"),(0,ne.yB)(n,"display"),n.onClick){var o=n.onClick.bind(n);n.onClick=function(e){(0,r.unref)(n.canClick)&&o(e)}}if(n.onHold){var t=n.onHold.bind(n);n.onHold=function(){(0,r.unref)(n.canClick)&&t()}}return n[y.tj]=function(){var e=this.display,n=this.visibility,o=this.style,t=this.classes,l=this.onClick,i=this.onHold,u=this.canClick,a=this.small,f=this.mark,c=this.id;return{display:e,visibility:n,style:(0,r.unref)(o),classes:t,onClick:l,onHold:i,canClick:u,small:a,mark:f,id:c}},n}))}function Ge(e){return Le((function(){var n=e();(0,ne.yB)(n,"showNextAt"),(0,y.Rh)(n,"showNextAt",!0),(0,y.Rh)(n,"minimumGain",1),!function(){return void 0!==n.resetDescription&&null!==n.resetDescription&&n.resetDescription[Symbol.for("==")]?n.resetDescription[Symbol.for("==")](null):null==n.resetDescription}()?(0,ne.yB)(n,"resetDescription"):n.resetDescription=(0,r.computed)((function(){return b.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,[M(n.conversion.gainResource,b.ZP.max((0,r.unref)(n.conversion.actualGain),(0,r.unref)(n.minimumGain)))])," ",n.conversion.gainResource.displayName,(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),n.conversion.buyMax?"Next:":"Req:"," ",M(n.conversion.baseResource,n.conversion.buyMax||b.ZP.floor((0,r.unref)(n.conversion.actualGain)).neq(1)?(0,r.unref)(n.conversion.nextAt):(0,r.unref)(n.conversion.currentAt))," ",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 b.ZP.gte((0,r.unref)(n.conversion.actualGain),(0,r.unref)(n.minimumGain))})));var o=n.onClick;return n.onClick=function(){(function(){return void 0!==(0,r.unref)(n.canClick)&&null!==(0,r.unref)(n.canClick)&&(0,r.unref)(n.canClick)[Symbol.for("!")]?(0,r.unref)(n.canClick)[Symbol.for("!")]():!(0,r.unref)(n.canClick)})()||(n.conversion.convert(),n.tree.reset(n.treeNode),null===o||void 0===o||o())},n}))}function He(e){return le((function(){var n=e();return(0,ne.yB)(n,"display"),(0,y.Rh)(n,"display",n.layerID),(0,ne.yB)(n,"append"),(0,A.Z)((0,A.Z)({},n),{},{display:n.layerID,onClick:(0,r.unref)(n.append)?function(){if(fe.Z.tabs.includes(n.layerID)){var e=fe.Z.tabs.lastIndexOf(n.layerID);fe.Z.tabs.splice(e,1)}else fe.Z.tabs.push(n.layerID)}:function(){fe.Z.tabs.splice(1,1,n.layerID)}})}))}function We(e){return(0,oe.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(){var e=n.gainModifier?n.gainModifier.apply(n.scaling.currentGain(n)):n.scaling.currentGain(n);return e=b.ZP.floor(e).max(0),function(){return void 0!==(0,r.unref)(n.buyMax)&&null!==(0,r.unref)(n.buyMax)&&(0,r.unref)(n.buyMax)[Symbol.for("!")]?(0,r.unref)(n.buyMax)[Symbol.for("!")]():!(0,r.unref)(n.buyMax)}()&&(e=e.min(1)),e}))),function(){return void 0!==n.actualGain&&null!==n.actualGain&&n.actualGain[Symbol.for("==")]?n.actualGain[Symbol.for("==")](null):null==n.actualGain}()&&(n.actualGain=n.currentGain),function(){return void 0!==n.currentAt&&null!==n.currentAt&&n.currentAt[Symbol.for("==")]?n.currentAt[Symbol.for("==")](null):null==n.currentAt}()&&(n.currentAt=(0,r.computed)((function(){var e=n.scaling.currentAt(n);return n.roundUpCost&&(e=b.ZP.ceil(e)),e}))),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(){var e=n.scaling.nextAt(n);return n.roundUpCost&&(e=b.ZP.ceil(e)),e}))),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=b.ZP.add(n.gainResource.value,(0,r.unref)(n.currentGain)),n.baseResource.value=0}),(0,ne.yB)(n,"currentGain"),(0,ne.yB)(n,"actualGain"),(0,ne.yB)(n,"currentAt"),(0,ne.yB)(n,"nextAt"),(0,ne.yB)(n,"buyMax"),(0,y.Rh)(n,"buyMax",!0),(0,ne.yB)(n,"roundUpCost"),(0,y.Rh)(n,"roundUpCost",!0),n}))}function Ye(e,n){return{currentGain:function(o){var t=b.ZP.div(o.baseResource.value,(0,r.unref)(e)).pow((0,r.unref)(n));return t.isNan()?new b.ZP(0):t},currentAt:function(o){var t=(0,r.unref)(o.currentGain);return o.gainModifier&&(t=o.gainModifier.revert(t)),t=b.ZP.max(0,t),b.ZP.root(t,(0,r.unref)(n)).times((0,r.unref)(e))},nextAt:function(o){var t=b.ZP.add((0,r.unref)(o.currentGain),1);return o.gainModifier&&(t=o.gainModifier.revert(t)),t=b.ZP.max(0,t),b.ZP.root(t,(0,r.unref)(n)).times((0,r.unref)(e)).max((0,r.unref)(e))}}}function Ke(e){return We(e)}function Je(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(){var e=n.gainModifier?n.gainModifier.apply(n.scaling.currentGain(n)):n.scaling.currentGain(n);return e=b.ZP.floor(e).max(n.gainResource.value),function(){return void 0!==(0,r.unref)(n.buyMax)&&null!==(0,r.unref)(n.buyMax)&&(0,r.unref)(n.buyMax)[Symbol.for("!")]?(0,r.unref)(n.buyMax)[Symbol.for("!")]():!(0,r.unref)(n.buyMax)}()&&(e=e.min(b.ZP.add(n.gainResource.value,1))),e}))),function(){return void 0!==n.actualGain&&null!==n.actualGain&&n.actualGain[Symbol.for("==")]?n.actualGain[Symbol.for("==")](null):null==n.actualGain}()&&(n.actualGain=(0,r.computed)((function(){var e=b.ZP.sub(n.scaling.currentGain(n),n.gainResource.value).max(0);return function(){return void 0!==(0,r.unref)(n.buyMax)&&null!==(0,r.unref)(n.buyMax)&&(0,r.unref)(n.buyMax)[Symbol.for("!")]?(0,r.unref)(n.buyMax)[Symbol.for("!")]():!(0,r.unref)(n.buyMax)}()&&(e=e.min(1)),e}))),(0,y.Rh)(n,"convert",(function(){n.gainResource.value=n.gainModifier?n.gainModifier.apply((0,r.unref)(n.currentGain)):(0,r.unref)(n.currentGain),n.baseResource.value=0})),n}))}function Qe(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 b.ZP.lte(e,n)?e:b.ZP.pow(e,r).times(b.ZP.pow(n,b.ZP.sub(1,r)))}function $e(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,A.Z)((0,A.Z)({},e),{},{currentGain:function(o){return Qe(e.currentGain(o),(0,r.unref)(n),(0,r.unref)(t))}})}var Xe=function(e){return(0,r.pushScopeId)("data-v-6447a93e"),e=e(),(0,r.popScopeId)(),e},en=Xe((function(){return(0,r.createElementVNode)("span",{class:"toggle"},"▼",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())}));function nn(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("CollapseTransition"),f=(0,r.resolveComponent)("Node");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,A.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)}()})},[en,((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 on=o(423),rn=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:{type:(0,w.P5)(Object,String,Function),required:!0},title:{type:(0,w.P5)(Object,String,Function),required:!0},color:(0,w.P5)(String),collapsed:{type:Object,required:!0},style:(0,w.P5)(Object,String,Array),titleStyle:(0,w.P5)(Object,String,Array),bodyStyle:(0,w.P5)(Object,String,Array),classes:(0,w.P5)(Object),id:{type:String,required:!0}},components:{Node:G,CollapseTransition:on.Z},setup:function(e){var n=(0,r.toRefs)(e),o=n.title,t=n.display,l=(0,w.vq)(o),i=(0,w.vq)(t),u=(0,r.computed)((function(){return xe.Z[Me.ZP.theme].mergeAdjacent}));return{titleComponent:l,bodyComponent:i,stacked:u,unref:r.unref,Visibility:y.EE}}});const tn=(0,u.Z)(rn,[["render",nn],["__scopeId","data-v-6447a93e"]]);var ln=tn,un=Symbol("Infobox");function an(e){return(0,oe.z2)((function(n){var o=Object.assign(n,e());return o.id=(0,y.QI)("infobox-"),o.type=un,o[y.wA]=ln,o.collapsed=o[g.n9],(0,ne.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,ne.yB)(o,"color"),(0,ne.yB)(o,"style"),(0,ne.yB)(o,"titleStyle"),(0,ne.yB)(o,"bodyStyle"),(0,ne.yB)(o,"classes"),(0,ne.yB)(o,"title"),(0,ne.yB)(o,"display"),o[y.tj]=function(){var e=this.visibility,n=this.display,o=this.title,t=this.color,l=this.collapsed,i=this.style,u=this.titleStyle,a=this.bodyStyle,f=this.classes,c=this.id;return{visibility:e,display:n,title:o,color:t,collapsed:l,style:(0,r.unref)(i),titleStyle:u,bodyStyle:a,classes:f,id:c}},o}),(0,g.ax)(!1))}function fn(e,n,o,t,l,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"resizeListener",class:(0,r.normalizeClass)(["resize-listener",e.unref(e.classes)]),style:(0,r.normalizeStyle)(e.unref(e.style))},null,6)}var cn=o(5246);const sn=(0,u.Z)(cn.Z,[["render",fn],["__scopeId","data-v-4e1c0c10"]]);var mn=sn,dn=o(1845),yn=Symbol("Particles");function vn(e){return(0,oe.z2)((function(){var n,o=e();o.id=(0,y.QI)("particles-"),o.type=yn,o[y.wA]=mn,o.app=(0,r.shallowRef)(null),o.addEmitter=function(e){var n=o;return n.app.value?Promise.resolve(new dn.Q5(n.app.value.stage,e)):new Promise((function(n){t.push({resolve:n,config:e})}))};var t=[];function l(e){o.app.value=e,t.forEach((function(n){var o=n.resolve,r=n.config;return o(new dn.Q5(e.stage,r))})),t=[]}return o.onContainerResized=null===(n=o.onContainerResized)||void 0===n?void 0:n.bind(o),o[y.tj]=function(){var e=this.id,n=this.style,o=this.classes,t=this.onContainerResized,i=this.onHotReload;return{id:e,style:(0,r.unref)(n),classes:o,onContainerResized:t,onHotReload:i,onInit:l}},o}))}window.upgradeConfig=dn.oC;var bn=Symbol("Reset");function Sn(e){return(0,oe.z2)((function(){var n=e();return n.id=(0,y.QI)("reset-"),n.type=bn,n.reset=function(){var e,o=function e(n){n&&"object"===(0,v.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 b.ZP!==void 0&&n instanceof b.ZP!==null&&(n instanceof b.ZP)[Symbol.for("!")]?(n instanceof b.ZP)[Symbol.for("!")]():!(n instanceof b.ZP)}()&&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,ne.yB)(n,"thingsToReset"),n}))}var gn={};S.globalBus.on("removeLayer",(function(e){var n;null===(n=gn[e.id])||void 0===n||n.call(gn),gn[e.id]=void 0}));var pn=(0,r.defineComponent)({props:{resource:null,color:null},setup:function(e){var n=e,o=(0,r.computed)((function(){return M(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 hn=pn;var Nn=hn,kn={key:0},Vn={key:1},xn=(0,r.createTextVNode)(", "),Mn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),Zn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),Cn=(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,w.KO)(o.effectDisplay),l=(0,r.computed)((function(){return b.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",kn,"You have ")):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(Nn,{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",Vn,[xn,((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(t))))])):(0,r.createCommentVNode)("",!0),Mn,Zn])}}});const wn=Cn;var Bn=wn,Pn=o(4096);function En(e,n,o){var t=(0,ne.UI)(e),l=(0,ne.UI)(n),i=(0,ne.UI)(!!function(){return void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o}()||o);return{apply:function(e){return b.ZP.add(e,(0,r.unref)(t))},revert:function(e){return b.ZP.sub(e,(0,r.unref)(t))},enabled:i,description:(0,y.tZ)((function(){return(0,r.createVNode)("div",{class:"modifier-container"},[(0,r.createVNode)("span",{class:"modifier-amount"},[(0,r.createTextVNode)("+"),(0,b.WU)((0,r.unref)(t))]),(0,r.unref)(l)?(0,r.createVNode)("span",{class:"modifier-description"},[(0,w.qF)((0,r.unref)(l))]):null])}))}}function Tn(e,n,o){var t=(0,ne.UI)(e),l=(0,ne.UI)(n),i=(0,ne.UI)(!!function(){return void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o}()||o);return{apply:function(e){return b.ZP.times(e,(0,r.unref)(t))},revert:function(e){return b.ZP.div(e,(0,r.unref)(t))},enabled:i,description:(0,y.tZ)((function(){return(0,r.createVNode)("div",{class:"modifier-container"},[(0,r.createVNode)("span",{class:"modifier-amount"},[(0,r.createTextVNode)("x"),(0,b.WU)((0,r.unref)(t))]),(0,r.unref)(l)?(0,r.createVNode)("span",{class:"modifier-description"},[(0,w.qF)((0,r.unref)(l))]):null])}))}}function Fn(e,n,o){var t=(0,ne.UI)(e),l=(0,ne.UI)(n),i=(0,ne.UI)(!!function(){return void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o}()||o);return{apply:function(e){return b.ZP.pow(e,(0,r.unref)(t))},revert:function(e){return b.ZP.root(e,(0,r.unref)(t))},enabled:i,description:(0,y.tZ)((function(){return(0,r.createVNode)("div",{class:"modifier-container"},[(0,r.createVNode)("span",{class:"modifier-amount"},[(0,r.createTextVNode)("^"),(0,b.WU)((0,r.unref)(t))]),(0,r.unref)(l)?(0,r.createVNode)("span",{class:"modifier-description"},[(0,w.qF)((0,r.unref)(l))]):null])}))}}function In(){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,v.Z)(o)&&o[Symbol.for("postfix-increment")]?o[Symbol.for("postfix-increment")]():o++}())n[o]=arguments[o];return{apply:function(e){return n.filter((function(e){return(0,r.unref)(e.enabled)})).reduce((function(e,n){return n.apply(e)}),e)},revert:function(e){return n.filter((function(e){return(0,r.unref)(e.enabled)})).reduceRight((function(e,n){return n.revert(e)}),e)},enabled:(0,r.computed)((function(){return function(){return void 0!==n.filter((function(e){return(0,r.unref)(e.enabled)})).length&&null!==n.filter((function(e){return(0,r.unref)(e.enabled)})).length&&n.filter((function(e){return(0,r.unref)(e.enabled)})).length[Symbol.for(">")]?n.filter((function(e){return(0,r.unref)(e.enabled)})).length[Symbol.for(">")](0):n.filter((function(e){return(0,r.unref)(e.enabled)})).length>0}()})),description:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[n.filter((function(e){return(0,r.unref)(e.enabled)})).map((function(e){return(0,r.unref)(e.description)})).filter((function(e){return e})).map(w.qF)])}))}}function Dn(e,n,o){var t=arguments,l=function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for(">")]?t.length[Symbol.for(">")](3):t.length>3}()&&function(){return void 0!==t[3]&&null!==t[3]&&t[3][Symbol.for("!==")]?t[3][Symbol.for("!==")](void 0):void 0!==t[3]}()?arguments[3]:1,i=function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for(">")]?t.length[Symbol.for(">")](4):t.length>4}()&&function(){return void 0!==t[4]&&null!==t[4]&&t[4][Symbol.for("!==")]?t[4][Symbol.for("!==")](void 0):void 0!==t[4]}()?arguments[4]:"";return(0,r.createVNode)("div",null,[(0,r.createVNode)("h3",null,[e,n?(0,r.createVNode)("span",{class:"subtitle"},[(0,r.createTextVNode)(" ("),n,(0,r.createTextVNode)(")")]):null]),(0,r.createVNode)("br",null,null),(0,r.createVNode)("div",{class:"modifier-container"},[(0,r.createVNode)("span",{class:"modifier-amount"},[(0,b.WU)(l),i]),(0,r.createVNode)("span",{class:"modifier-description"},[(0,r.createTextVNode)("Base")])]),(0,w.qF)((0,r.unref)(o.description)),(0,r.createVNode)("hr",null,null),(0,r.createTextVNode)("Total: "),(0,b.WU)(o.apply(l)),i])}var Rn={class:"field"},On={key:0,class:"field-title"},_n=["min","max"],jn=(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",Rn,[e.title?((0,r.openBlock)(),(0,r.createElementBlock)("span",On,(0,r.toDisplayString)(e.title),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(me.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,_n),[[r.vModelText,(0,r.unref)(i)]])]})),_:1},8,["display","class"])])}}});const An=(0,u.Z)(jn,[["__scopeId","data-v-20a0a34d"]]);var Un=An,qn=o(4520),zn=o(9868),Ln=o(9905),Gn=(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),document.fonts.ready.then(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 Hn=(0,u.Z)(Gn,[["__scopeId","data-v-6987dd96"]]);var Wn=Hn,Yn=(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 Kn=(0,u.Z)(Yn,[["__scopeId","data-v-15f6e746"]]);var Jn=Kn,Qn=o(6948);function $n(e,n,o,t,l,i){var u,a,f,c,s,m,d,y=(0,r.resolveComponent)("MarkNode"),v=(0,r.resolveComponent)("Node");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,A.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)(v,{id:e.id},null,8,["id"])],6)):(0,r.createCommentVNode)("",!0)}var Xn=(0,r.defineComponent)({props:{progress:{type:(0,w.P5)(String,Object,Number),required:!0},width:{type:(0,w.P5)(Number),required:!0},height:{type:(0,w.P5)(Number),required:!0},direction:{type:(0,w.P5)(String),required:!0},display:(0,w.P5)(Object,String,Function),visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(Object,String,Array),classes:(0,w.P5)(Object),borderStyle:(0,w.P5)(Object,String,Array),textStyle:(0,w.P5)(Object,String,Array),baseStyle:(0,w.P5)(Object,String,Array),fillStyle:(0,w.P5)(Object,String,Array),mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Q,Node:G},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 b.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,w.Uv)(t)+.5!==void 0&&(0,w.Uv)(t)+.5!==null&&((0,w.Uv)(t)+.5)[Symbol.for("+")]?((0,w.Uv)(t)+.5)[Symbol.for("+")]("px"):(0,w.Uv)(t)+.5+"px"}(),height:function(){return(0,w.Uv)(l)+.5!==void 0&&(0,w.Uv)(l)+.5!==null&&((0,w.Uv)(l)+.5)[Symbol.for("+")]?((0,w.Uv)(l)+.5)[Symbol.for("+")]("px"):(0,w.Uv)(l)+.5+"px"}()};switch((0,r.unref)(i)){case no.Up:e.clipPath="inset(".concat(a.value,"% 0% 0% 0%)"),e.width=function(){return(0,w.Uv)(t)+1!==void 0&&(0,w.Uv)(t)+1!==null&&((0,w.Uv)(t)+1)[Symbol.for("+")]?((0,w.Uv)(t)+1)[Symbol.for("+")]("px"):(0,w.Uv)(t)+1+"px"}();break;case no.Down:e.clipPath="inset(0% 0% ".concat(a.value,"% 0%)"),e.width=function(){return(0,w.Uv)(t)+1!==void 0&&(0,w.Uv)(t)+1!==null&&((0,w.Uv)(t)+1)[Symbol.for("+")]?((0,w.Uv)(t)+1)[Symbol.for("+")]("px"):(0,w.Uv)(t)+1+"px"}();break;case no.Right:e.clipPath="inset(0% ".concat(a.value,"% 0% 0%)");break;case no.Left:e.clipPath="inset(0% 0% 0% ".concat(a.value," + '%)");break;case no.Default:e.clipPath="inset(0% 50% 0% 0%)";break}return e})),c=(0,w.KO)(u);return{normalizedProgress:a,barStyle:f,component:c,unref:r.unref,Visibility:y.EE}}});const eo=(0,u.Z)(Xn,[["render",$n],["__scopeId","data-v-e6e3c366"]]);var no,oo=eo,ro=Symbol("Bar");function to(e){return(0,oe.z2)((function(){var n=e();return n.id=(0,y.QI)("bar-"),n.type=ro,n[y.wA]=oo,(0,ne.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,ne.yB)(n,"width"),(0,ne.yB)(n,"height"),(0,ne.yB)(n,"direction"),(0,ne.yB)(n,"style"),(0,ne.yB)(n,"classes"),(0,ne.yB)(n,"borderStyle"),(0,ne.yB)(n,"baseStyle"),(0,ne.yB)(n,"textStyle"),(0,ne.yB)(n,"fillStyle"),(0,ne.yB)(n,"progress"),(0,ne.yB)(n,"display"),(0,ne.yB)(n,"mark"),n[y.tj]=function(){var e=this.progress,n=this.width,o=this.height,t=this.direction,l=this.display,i=this.visibility,u=this.style,a=this.classes,f=this.borderStyle,c=this.textStyle,s=this.baseStyle,m=this.fillStyle,d=this.mark,y=this.id;return{progress:e,width:n,height:o,direction:t,display:l,visibility:i,style:(0,r.unref)(u),classes:a,borderStyle:f,textStyle:c,baseStyle:s,fillStyle:m,mark:d,id:y}},n}))}(function(e){e["Up"]="Up",e["Down"]="Down",e["Left"]="Left",e["Right"]="Right",e["Default"]="Up"})(no||(no={}));var lo=Symbol("Buyable");function io(e){return(0,oe.z2)((function(n){var o=Object.assign(n,e());if(function(){return void 0!==o.canPurchase&&null!==o.canPurchase&&o.canPurchase[Symbol.for("==")]?o.canPurchase[Symbol.for("==")](null):null==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}()))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",o),"Cannot create buyable without a canPurchase property or a resource and cost property";o.id=(0,y.QI)("buyable-"),o.type=lo,o[y.wA]=qe,o.amount=o[g.n9],o.canAfford=(0,r.computed)((function(){var e=o,n=(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!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&b.ZP.gte(e.resource.value,n)})),function(){return void 0!==o.canPurchase&&null!==o.canPurchase&&o.canPurchase[Symbol.for("==")]?o.canPurchase[Symbol.for("==")](null):null==o.canPurchase}()&&(o.canPurchase=(0,r.computed)((function(){return(0,r.unref)(o.visibility)===y.EE.Visible&&(0,r.unref)(o.canAfford)&&b.ZP.lt(o.amount.value,(0,r.unref)(o.purchaseLimit))}))),o.maxed=(0,r.computed)((function(){return b.ZP.gte(o.amount.value,(0,r.unref)(o.purchaseLimit))})),(0,ne.yB)(o,"classes");var t=o.classes;o.classes=(0,r.computed)((function(){var e=(0,r.unref)(t)||{};return o.maxed.value&&(e.bought=!0),e})),(0,ne.yB)(o,"canPurchase"),o.canClick=o.canPurchase,o.onClick=o.purchase=function(){var e,n=o;if(!(function(){return void 0!==(0,r.unref)(n.canPurchase)&&null!==(0,r.unref)(n.canPurchase)&&(0,r.unref)(n.canPurchase)[Symbol.for("!")]?(0,r.unref)(n.canPurchase)[Symbol.for("!")]():!(0,r.unref)(n.canPurchase)}()||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 t=(0,r.unref)(n.cost);n.resource.value=b.ZP.sub(n.resource.value,t),n.amount.value=b.ZP.add(n.amount.value,1),null===(e=this.onPurchase)||void 0===e||e.call(this,t)}},(0,ne.yB)(o,"display");var l=o.display;return o.display=(0,y.tZ)((function(){var e=(0,r.unref)(l);if((0,w.RU)(e)){var n=(0,w.MM)(e);return(0,r.createVNode)(n,null,null)}if(function(){return void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e}()&&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=o,i=(0,w.MM)(e.title||"","h3"),u=(0,w.MM)(e.description),a=(0,w.MM)(e.effectDisplay||""),f=(0,r.unref)(t.purchaseLimit)===b.ZP.dInf?(0,r.createVNode)(r.Fragment,null,[(0,r.createTextVNode)("Amount: "),(0,b.Ht)(t.amount.value)]):(0,r.createVNode)(r.Fragment,null,[(0,r.createTextVNode)("Amount: "),(0,b.Ht)(t.amount.value),(0,r.createTextVNode)(" /")," ",(0,b.Ht)((0,r.unref)(t.purchaseLimit))]);return(0,r.createVNode)("span",null,[e.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(i,null,null)]):null,(0,r.createVNode)(u,null,null),(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),f]),e.effectDisplay?(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Currently: "),(0,r.createVNode)(a,null,null)]):null,t.cost&&function(){return void 0!==t.maxed.value&&null!==t.maxed.value&&t.maxed.value[Symbol.for("!")]?t.maxed.value[Symbol.for("!")]():!t.maxed.value}()?(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Cost: "),(0,b.WU)((0,r.unref)(t.cost)||0)," ",o.resource.displayName]):null])}return""})),(0,ne.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,ne.yB)(o,"cost"),(0,ne.yB)(o,"resource"),(0,ne.yB)(o,"purchaseLimit"),(0,y.Rh)(o,"purchaseLimit",b.ZP.dInf),(0,ne.yB)(o,"style"),(0,ne.yB)(o,"mark"),(0,ne.yB)(o,"small"),o[y.tj]=function(){var e=this.display,n=this.visibility,o=this.style,t=this.classes,l=this.onClick,i=this.canClick,u=this.small,a=this.mark,f=this.id;return{display:e,visibility:n,style:(0,r.unref)(o),classes:t,onClick:l,canClick:i,small:u,mark:a,id:f}},o}),(0,g.ax)(0))}o(9826),o(3577);var uo=["disabled"];function ao(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("Node");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,A.Z)({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart)&&function(){return void 0!==e.unref(e.maxed)&&null!==e.unref(e.maxed)&&e.unref(e.maxed)[Symbol.for("!")]?e.unref(e.maxed)[Symbol.for("!")]():!e.unref(e.maxed)}(),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)}),disabled:function(){return void 0!==e.unref(e.canStart)&&null!==e.unref(e.canStart)&&e.unref(e.canStart)[Symbol.for("!")]?e.unref(e.canStart)[Symbol.for("!")]():!e.unref(e.canStart)}()||e.unref(e.maxed)},(0,r.toDisplayString)(e.buttonText),9,uo),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 fo=(0,r.defineComponent)({props:{active:{type:(0,w.P5)(Boolean),required:!0},maxed:{type:(0,w.P5)(Boolean),required:!0},canComplete:{type:(0,w.P5)(Boolean),required:!0},display:(0,w.P5)(String,Object,Function),visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),completed:{type:(0,w.P5)(Boolean),required:!0},canStart:{type:(0,w.P5)(Boolean),required:!0},mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:Q,Node:G},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,w.Uv)(o),n=(0,w.Uv)(l);return e?n?pe():ge():{}}));return(0,r.watchEffect)((function(){var e=(0,w.Uv)(i);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())a.value="";else if((0,w.RU)(e))a.value=(0,w.MM)(e);else{var n=(0,w.MM)(e.title||"","h3"),o=(0,w.MM)(e.description,"div"),t=(0,w.MM)(e.goal||""),l=(0,w.MM)(e.reward||""),u=(0,w.MM)(e.effectDisplay||"");a.value=(0,w.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 co=(0,u.Z)(fo,[["render",ao],["__scopeId","data-v-5e580749"]]);var so=co,mo=Symbol("ChallengeType");function yo(e){var n=(0,g.ax)(0),o=(0,g.ax)(!1);return(0,oe.z2)((function(){var t=e();if(function(){return void 0!==t.canComplete&&null!==t.canComplete&&t.canComplete[Symbol.for("==")]?t.canComplete[Symbol.for("==")](null):null==t.canComplete}()&&(function(){return void 0!==t.resource&&null!==t.resource&&t.resource[Symbol.for("==")]?t.resource[Symbol.for("==")](null):null==t.resource}()||function(){return void 0!==t.goal&&null!==t.goal&&t.goal[Symbol.for("==")]?t.goal[Symbol.for("==")](null):null==t.goal}()))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",t),"Cannot create challenge without a canComplete property or a resource and goal property";t.id=(0,y.QI)("challenge-"),t.type=mo,t[y.wA]=so,t.completions=n,t.active=o,t.completed=(0,r.computed)((function(){return b.ZP.gt(t.completions.value,0)})),t.maxed=(0,r.computed)((function(){return b.ZP.gte(t.completions.value,(0,r.unref)(t.completionLimit))})),t.toggle=function(){var e=t;if(e.active.value){var n,o;if((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=b.ZP.min(b.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===(n=e.onExit)||void 0===n||n.call(e),null===(o=e.reset)||void 0===o||o.reset()}else if((0,r.unref)(e.canStart)&&(0,r.unref)(e.visibility)===y.EE.Visible&&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 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)}},t.complete=function(e){var n,o,l,i=t,u=(0,r.unref)(i.canComplete);i.active.value&&function(){return void 0!==u&&null!==u&&u[Symbol.for("!==")]?u[Symbol.for("!==")](!1):!1!==u}()&&(!0===u||b.ZP.neq(0,u))&&function(){return void 0!==i.maxed.value&&null!==i.maxed.value&&i.maxed.value[Symbol.for("!")]?i.maxed.value[Symbol.for("!")]():!i.maxed.value}()&&("boolean"===typeof u&&(u=1),i.completions.value=b.ZP.min(b.ZP.add(i.completions.value,u),(0,r.unref)(i.completionLimit)),null===(n=i.onComplete)||void 0===n||n.call(i),function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](!0):!0!==e}()&&(i.active.value=!1,null===(o=i.onExit)||void 0===o||o.call(i),null===(l=i.reset)||void 0===l||l.reset()))},(0,ne.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible);var l=t.visibility;return t.visibility=(0,r.computed)((function(){return!0===Me.ZP.hideChallenges&&(0,r.unref)(t.maxed)?y.EE.None:(0,r.unref)(l)})),function(){return void 0!==t.canComplete&&null!==t.canComplete&&t.canComplete[Symbol.for("==")]?t.canComplete[Symbol.for("==")](null):null==t.canComplete}()&&(t.canComplete=(0,r.computed)((function(){var e=t;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}())&&b.ZP.gte(e.resource.value,(0,r.unref)(e.goal))}))),function(){return void 0!==t.mark&&null!==t.mark&&t.mark[Symbol.for("==")]?t.mark[Symbol.for("==")](null):null==t.mark}()&&(t.mark=(0,r.computed)((function(){return b.ZP.gt((0,r.unref)(t.completionLimit),1)&&function(){return void 0!==!(0,r.unref)(t.maxed)&&null!==!(0,r.unref)(t.maxed)&&(!(0,r.unref)(t.maxed))[Symbol.for("!")]?(!(0,r.unref)(t.maxed))[Symbol.for("!")]():!!(0,r.unref)(t.maxed)}()}))),(0,ne.yB)(t,"canStart"),(0,y.Rh)(t,"canStart",!0),(0,ne.yB)(t,"canComplete"),(0,ne.yB)(t,"completionLimit"),(0,y.Rh)(t,"completionLimit",1),(0,ne.yB)(t,"mark"),(0,ne.yB)(t,"goal"),(0,ne.yB)(t,"classes"),(0,ne.yB)(t,"style"),(0,ne.yB)(t,"display"),function(){return void 0!==t.reset&&null!==t.reset&&t.reset[Symbol.for("!=")]?t.reset[Symbol.for("!=")](null):null!=t.reset}()&&S.globalBus.on("reset",(function(e){e===t.reset&&t.active.value&&t.toggle()})),t[y.tj]=function(){var e=this.active,n=this.maxed,o=this.canComplete,t=this.display,l=this.visibility,i=this.style,u=this.classes,a=this.completed,f=this.canStart,c=this.mark,s=this.id,m=this.toggle;return{active:e,maxed:n,canComplete:o,display:t,visibility:l,style:(0,r.unref)(i),classes:u,completed:a,canStart:f,mark:c,id:s,toggle:m}},t}))}S.globalBus.on("loadSettings",(function(e){(0,y.Rh)(e,"hideChallenges",!1)})),(0,Me.QV)((0,y.tZ)((function(){return(0,r.createVNode)(zn.Z,{title:"Hide Maxed Challenges","onUpdate:modelValue":function(e){return Me.ZP.hideChallenges=e},modelValue:Me.ZP.hideChallenges},null)})));var vo=(0,r.shallowReactive)({}),bo=Symbol("Hotkey");function So(e){return(0,oe.z2)((function(){var n=e();return n.type=bo,(0,ne.yB)(n,"enabled"),(0,y.Rh)(n,"enabled",!0),(0,ne.yB)(n,"description"),n}))}S.globalBus.on("addLayer",(function(e){(0,y.bD)(e,bo).forEach((function(e){vo[e.key]=e}))})),S.globalBus.on("removeLayer",(function(e){(0,y.bD)(e,bo).forEach((function(e){vo[e.key]=void 0}))})),document.onkeydown=function(e){var n;if("INPUT"!==(null===(n=e.target)||void 0===n?void 0:n.tagName)&&(!dr.value||!function(){return void 0!==fe.Z.keepGoing&&null!==fe.Z.keepGoing&&fe.Z.keepGoing[Symbol.for("!")]?fe.Z.keepGoing[Symbol.for("!")]():!fe.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=vo[o];t&&(0,r.unref)(t.enabled)&&(e.preventDefault(),t.onPress())}},(0,Me.fw)((0,y.tZ)((function(){var e=Object.values(vo).filter((function(e){return(0,r.unref)(null===e||void 0===e?void 0:e.enabled)}));return 0===e.length?"":(0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createVNode)("h4",null,[(0,r.createTextVNode)("Hotkeys")]),e.map((function(e){return(0,r.createVNode)("div",null,[null===e||void 0===e?void 0:e.key,(0,r.createTextVNode)(": "),null===e||void 0===e?void 0:e.description])}))])})));var go=Symbol("Links");function po(e){return(0,oe.z2)((function(){var n=e();return n.type=go,n[y.wA]=R,(0,ne.yB)(n,"links"),n[y.tj]=function(){var e=this.links;return{links:e}},n}))}var ho=o(3525);function No(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("Node");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,A.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 ko=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:{type:(0,w.P5)(String,Object,Function),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),earned:{type:(0,w.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:G},setup:function(e){var n=(0,r.toRefs)(e),o=n.display,t=(0,r.shallowRef)("");return(0,r.watchEffect)((function(){var e=(0,w.Uv)(o);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())t.value="";else if((0,w.RU)(e))t.value=(0,w.MM)(e);else{var n=(0,w.MM)(e.requirement,"h3"),l=(0,w.MM)(e.effectDisplay||"","b"),i=(0,w.MM)(e.optionsDisplay||"","span");t.value=(0,w.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 Vo=(0,u.Z)(ko,[["render",No],["__scopeId","data-v-0b660ac3"]]);var xo,Mo=Vo,Zo=(0,Se.pm)(),Co=Symbol("Milestone");function wo(e){return(0,oe.z2)((function(n){var o=Object.assign(n,e());o.id=(0,y.QI)("milestone-"),o.type=Co,o[y.wA]=Mo,o.earned=o[g.n9],o.complete=function(){o[g.n9].value=!0},(0,ne.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible);var t=o.visibility;if(o.visibility=(0,r.computed)((function(){var e=(0,r.unref)(o.display);switch(Me.ZP.msDisplay){default:case xo.All:return(0,r.unref)(t);case xo.Configurable:return(0,r.unref)(o.earned)&&function(){return void 0!==(null!=e&&"object"==(0,v.Z)(e)&&"optionsDisplay"in e)&&null!==(null!=e&&"object"==(0,v.Z)(e)&&"optionsDisplay"in e)&&(null!=e&&"object"==(0,v.Z)(e)&&"optionsDisplay"in e)[Symbol.for("!")]?(null!=e&&"object"==(0,v.Z)(e)&&"optionsDisplay"in e)[Symbol.for("!")]():!(null!=e&&"object"==(0,v.Z)(e)&&"optionsDisplay"in e)}()?y.EE.None:(0,r.unref)(t);case xo.Incomplete:return(0,r.unref)(o.earned)?y.EE.None:(0,r.unref)(t);case xo.None:return y.EE.None}})),(0,ne.yB)(o,"style"),(0,ne.yB)(o,"classes"),(0,ne.yB)(o,"display"),o[y.tj]=function(){var e=this.visibility,n=this.display,o=this.style,t=this.classes,l=this.earned,i=this.id;return{visibility:e,display:n,style:(0,r.unref)(o),classes:t,earned:l,id:i}},o.shouldEarn){var l=o;(0,r.watchEffect)((function(){var e,n;if(function(){return void 0!==l.earned.value&&null!==l.earned.value&&l.earned.value[Symbol.for("!")]?l.earned.value[Symbol.for("!")]():!l.earned.value}()&&(0,r.unref)(l.visibility)===y.EE.Visible&&function(){return void 0!==(e=l.shouldEarn)&&null!==(e=l.shouldEarn)&&(e=l.shouldEarn)[Symbol.for("!==")]?(e=l.shouldEarn)[Symbol.for("!==")](null):null!==(e=l.shouldEarn)}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()&&e.call(l)&&(l.earned.value=!0,null===(n=l.onComplete)||void 0===n||n.call(l),l.display)){var o=(0,r.unref)(l.display),t=(0,w.MM)((0,w.RU)(o)?o:o.requirement);Zo((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)])]))}}))}return o}),(0,g.ax)(!1))}(function(e){e["All"]="all",e["Configurable"]="configurable",e["Incomplete"]="incomplete",e["None"]="none"})(xo||(xo={})),S.globalBus.on("loadSettings",(function(e){(0,y.Rh)(e,"msDisplay",xo.All)}));var Bo=Object.values(xo).map((function(e){return{label:(0,Ie.IJ)(e),value:e}}));(0,Me.QV)((0,y.tZ)((function(){return(0,r.createVNode)(ho.Z,{title:"Show Milestones",options:Bo,"onUpdate:modelValue":function(e){return Me.ZP.msDisplay=e},modelValue:Me.ZP.msDisplay},null)})));var Po=(0,r.defineComponent)({props:{display:null},setup:function(e){var n=e,o=(0,r.toRefs)(n),t=o.display,l=(0,w.vq)(t);return function(e,n){return(0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(l)))}}});const Eo=Po;var To=Eo,Fo=Symbol("Tab");function Io(e){return(0,oe.z2)((function(){var n=e();return n.id=(0,y.QI)("tab-"),n.type=Fo,n[y.wA]=To,n[y.tj]=function(){var e=this.display;return{display:e}},n}))}o(7941);function Do(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,A.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 Ro=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},display:{type:(0,w.P5)(Object,String,Function),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),glowColor:(0,w.P5)(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup:function(e,n){var o=n.emit,t=(0,r.toRefs)(e),l=t.display,i=t.glowColor,u=t.floating,a=(0,w.vq)(l),f=(0,r.computed)((function(){var e=(0,w.Uv)(i);return function(){return void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e}()?{}:(0,r.unref)(u)?ge(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 Oo=(0,u.Z)(Ro,[["render",Do],["__scopeId","data-v-361380c0"]]);var _o=Oo;function jo(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,A.Z)((0,A.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 Ao=(0,r.defineComponent)({props:{visibility:{type:(0,w.P5)(Number),required:!0},activeTab:{type:(0,w.P5)(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:(0,w.P5)(Object),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object)},components:{Sticky:Wn,TabButton:_o},setup:function(e){var n=(0,r.toRefs)(e),o=n.activeTab,t=(0,r.computed)((function(){return xe.Z[Me.ZP.theme].floatingTabs})),l=(0,r.shallowRef)("");(0,r.watchEffect)((function(){var e=(0,w.Uv)(o);!function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()?(0,w.RU)(e)?l.value=(0,w.MM)(e):l.value=(0,w.MM)((0,r.unref)(e.display)):l.value=""}));var i=(0,r.computed)((function(){var e=(0,w.Uv)(o),n=(0,w.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,w.Uv)(o);return(0,w.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 Uo=(0,u.Z)(Ao,[["render",jo],["__scopeId","data-v-38d5b5f9"]]);var qo=Uo,zo=Symbol("TabButton"),Lo=Symbol("TabFamily");function Go(e,n){if(0===Object.keys(e).length)throw console.warn("Cannot create tab family with 0 tabs"),"Cannot create tab family with 0 tabs";return(0,oe.z2)((function(o){var t=Object.assign(o,null===n||void 0===n?void 0:n());t.id=(0,y.QI)("tabFamily-"),t.type=Lo,t[y.wA]=qo,t.tabs=Object.keys(e).reduce((function(n,o){var r=e[o]();return r.type=zo,r[y.wA]=_o,(0,ne.yB)(r,"visibility"),(0,y.Rh)(r,"visibility",y.EE.Visible),(0,ne.yB)(r,"tab"),(0,ne.yB)(r,"display"),(0,ne.yB)(r,"classes"),(0,ne.yB)(r,"style"),(0,ne.yB)(r,"glowColor"),n[o]=r,n}),{}),t.selected=t[g.n9],t.activeTab=(0,r.computed)((function(){var e=(0,r.unref)(l.tabs);if(function(){return void 0!==t[g.n9].value&&null!==t[g.n9].value&&t[g.n9].value[Symbol.for("in")]?t[g.n9].value[Symbol.for("in")](e):t[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 n=Object.values(e).find((function(e){return(0,r.unref)(e.visibility)===y.EE.Visible}));return n?(0,r.unref)(n.tab):null})),(0,ne.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,ne.yB)(t,"classes"),(0,ne.yB)(t,"style"),t[y.tj]=function(){var e=this.visibility,n=this.activeTab,o=this.selected,t=this.tabs,l=this.style,i=this.classes;return{visibility:e,activeTab:n,selected:o,tabs:t,style:(0,r.unref)(l),classes:i}};var l=t;return l}),(0,g.ax)(Object.keys(e)[0]))}var Ho=["disabled"];function Wo(e,n,o,t,l,i){var u,a=(0,r.resolveComponent)("MarkNode"),f=(0,r.resolveComponent)("Node");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,A.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,Ho)):(0,r.createCommentVNode)("",!0)}var Yo=(0,r.defineComponent)({props:{display:{type:(0,w.P5)(String,Object,Function),required:!0},visibility:{type:(0,w.P5)(Number),required:!0},style:(0,w.P5)(String,Object,Array),classes:(0,w.P5)(Object),resource:Object,cost:(0,w.P5)(String,Object,Number),canPurchase:{type:(0,w.P5)(Boolean),required:!0},bought:{type:(0,w.P5)(Boolean),required:!0},mark:(0,w.P5)(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:G,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,w.Uv)(o);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}())l.value="";else if((0,w.RU)(n))l.value=(0,w.MM)(n);else{var i=(0,w.Uv)(t),u=(0,w.MM)(n.title||"","h3"),a=(0,w.MM)(n.description,"div"),f=(0,w.MM)(n.effectDisplay||"");l.value=(0,w.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&&M(e.resource,i)," ",null===(o=e.resource)||void 0===o?void 0:o.displayName]):null])})))}})),{component:l,unref:r.unref,Visibility:y.EE}}});const Ko=(0,u.Z)(Yo,[["render",Wo],["__scopeId","data-v-264c96b4"]]);var Jo=Ko,Qo=Symbol("Upgrade");function $o(e){return(0,oe.z2)((function(n){var o=Object.assign(n,e());return o.id=(0,y.QI)("upgrade-"),o.type=Qo,o[y.wA]=Jo,function(){return void 0!==o.canAfford&&null!==o.canAfford&&o.canAfford[Symbol.for("==")]?o.canAfford[Symbol.for("==")](null):null==o.canAfford}()&&(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}())&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",o),o.bought=o[g.n9],!function(){return void 0!==o.canAfford&&null!==o.canAfford&&o.canAfford[Symbol.for("==")]?o.canAfford[Symbol.for("==")](null):null==o.canAfford}()?(0,ne.yB)(o,"canAfford"):o.canAfford=(0,r.computed)((function(){var e=o;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}()&&b.ZP.gte(e.resource.value,(0,r.unref)(e.cost))})),o.canPurchase=(0,r.computed)((function(){return(0,r.unref)(o.visibility)===y.EE.Visible&&(0,r.unref)(o.canAfford)&&function(){return void 0!==(0,r.unref)(o.bought)&&null!==(0,r.unref)(o.bought)&&(0,r.unref)(o.bought)[Symbol.for("!")]?(0,r.unref)(o.bought)[Symbol.for("!")]():!(0,r.unref)(o.bought)}()})),o.purchase=function(){var e,n=o;(function(){return void 0!==(0,r.unref)(n.canPurchase)&&null!==(0,r.unref)(n.canPurchase)&&(0,r.unref)(n.canPurchase)[Symbol.for("!")]?(0,r.unref)(n.canPurchase)[Symbol.for("!")]():!(0,r.unref)(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}()&&(n.resource.value=b.ZP.sub(n.resource.value,(0,r.unref)(n.cost))),n[g.n9].value=!0,null===(e=n.onPurchase)||void 0===e||e.call(n))},(0,ne.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,ne.yB)(o,"classes"),(0,ne.yB)(o,"style"),(0,ne.yB)(o,"display"),(0,ne.yB)(o,"mark"),(0,ne.yB)(o,"cost"),(0,ne.yB)(o,"resource"),o[y.tj]=function(){var e=this.display,n=this.visibility,o=this.style,t=this.classes,l=this.resource,i=this.cost,u=this.canPurchase,a=this.bought,f=this.mark,c=this.id,s=this.purchase;return{display:e,visibility:n,style:(0,r.unref)(o),classes:t,resource:l,cost:i,canPurchase:u,bought:a,mark:f,id:c,purchase:s}},o}),(0,g.ax)(!1))}function Xo(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 er="c",nr=(0,B.createLayer)(er,(function(){var e="#4BDC13",n="Candies",o=p(0,"lollipops"),t=h(o),l=(0,g.ax)(!1),i=(0,g.ax)("pointy"),u=(0,g.ax)(10),a=(0,g.ax)(new b.ZP(10)),f=(0,r.computed)((function(){return b.ZP.pow(o.value,.2)})),c=(0,r.computed)((function(){return b.ZP.times(o.value,10)})),s=an((function(){return{title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"}})),m=wo((function(){return{shouldEarn:function(){return b.ZP.gte(t.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}}})),v=wo((function(){return{visibility:function(){return(0,y.Kf)(m.earned.value)},shouldEarn:function(){return b.ZP.gte(t.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)(zn.Z,{title:"beep","onUpdate:modelValue":function(e){return l.value=e},modelValue:l.value},null),(0,r.createVNode)(zn.Z,{title:"boop","onUpdate:modelValue":function(e){return ir.boop.value=e},modelValue:ir.boop.value},null)])}))},style:function(){return this.earned?{backgroundColor:"#1111DD"}:{}}}})),S=[m,v],N=yo((function(){return{title:"Fun",completionLimit:3,display:function(){return{description:"Makes the game 0% harder<br>".concat((0,b.Ht)(this.completions.value),"/").concat(this.completionLimit," completions"),goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:function(){return void 0!==(0,b.WU)(k.value)&&null!==(0,b.WU)(k.value)&&(0,b.WU)(k.value)[Symbol.for("+")]?(0,b.WU)(k.value)[Symbol.for("+")]("x"):(0,b.WU)(k.value)+"x"}()}},visibility:function(){return(0,y.Kf)(b.ZP.gt(t.value,0))},goal:20,resource:sr.points,onComplete:function(){console.log("hiii")},onEnter:function(){sr.points.value=0,sr.best.value=sr.points.value,sr.total.value=sr.points.value,console.log("So challenging")},onExit:function(){console.log("Sweet freedom!")},style:{height:"200px"}}})),k=(0,r.computed)((function(){return b.ZP.add(o.value,1).tetrate(.02)})),V=$o((function(){return{display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:o}})),x=$o((function(){return{display:function(){return{description:"Point generation is faster based on your unspent Lollipops",effectDisplay:"".concat((0,b.WU)(Z.value),"x")}},cost:1,resource:o,visibility:function(){return(0,y.Kf)(V.bought.value)}}})),Z=(0,r.computed)((function(){var e=b.ZP.add(o.value,1).pow(.5);return e.gte("1e20000000")&&(e=e.sqrt().times("1e10000000")),e})),C=$o((function(){return{visibility:function(){return(0,y.Kf)(x.bought.value)},canAfford:function(){return b.ZP.lt(sr.points.value,7)},onPurchase:function(){sr.points.value=b.ZP.add(sr.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"}:{}}}})),B=$o((function(){return{resource:p(E.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}}})),P=[V,x,C],E=io((function(){return{resource:o,cost:function(){var e=new b.ZP(this.amount.value);e.gte(25)&&(e=e.pow(2).div(25));var n=b.ZP.pow(2,e.pow(1.5));return n.floor()},display:function(){return{title:"Exhancers",description:"Adds ".concat((0,b.WU)(T.value)," things and multiplies stuff by ").concat((0,b.WU)(F.value),".")}},onPurchase:function(e){a.value=b.ZP.add(a.value,e)},style:{height:"222px"},purchaseLimit:4}})),T=(0,r.computed)((function(){return b.ZP.gte(E.amount.value,0)?b.ZP.pow(25,b.ZP.pow(E.amount.value,1.1)):b.ZP.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](25):.04}(),b.ZP.times(E.amount.value,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()).pow(1.1))})),F=(0,r.computed)((function(){return b.ZP.gte(E.amount.value,0)?b.ZP.pow(25,b.ZP.pow(E.amount.value,1.1)):b.ZP.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](25):.04}(),b.ZP.times(E.amount.value,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()).pow(1.1))})),I=(0,g.ax)(!1),D=(0,r.ref)(!1),R=Le((function(){return{small:!0,display:"Respec Thingies",onClick:function(){I.value&&function(){return void 0!==D.value&&null!==D.value&&D.value[Symbol.for("!")]?D.value[Symbol.for("!")]():!D.value}()?D.value=!0:(o.value=b.ZP.add(o.value,a.value),E.amount.value=0,sr.tree.reset(G))}}})),O=Le((function(){return{small:!0,display:"Sell One",onClick:function(){b.ZP.lte(E.amount.value,0)||(E.amount.value=b.ZP.sub(E.amount.value,1),o.value=b.ZP.add(o.value,E.cost.value),a.value=b.ZP.sub(a.value,E.cost.value))}}})),_=(0,y.tZ)((function(){return(0,r.createVNode)(Ln.Z,null,{default:function(){return[(0,r.createVNode)(se.Z,null,{default:function(){return[(0,r.createVNode)(zn.Z,{title:"Confirm","onUpdate:modelValue":function(e){return I.value=e},modelValue:I.value},null),(0,w._4)(R)]}}),(0,w._4)(E),(0,w._4)(O),(0,r.createVNode)(Qn.Z,{modelValue:D.value,"onUpdate:modelValue":function(e){return D.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 D.value=!1}},[(0,r.createTextVNode)("Cancel")]),(0,r.createVNode)("button",{class:"button modal-default-button danger",onClick:function(){R.onClick(),D.value=!1}},[(0,r.createTextVNode)("Respec")])])}})]}})})),j=to((function(){return{fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:no.Right,width:300,height:30,progress:function(){return b.ZP.add(sr.points.value,1).log(10).div(10).toNumber()},display:function(){return function(){return void 0!==(0,b.WU)(sr.points.value)&&null!==(0,b.WU)(sr.points.value)&&(0,b.WU)(sr.points.value)[Symbol.for("+")]?(0,b.WU)(sr.points.value)[Symbol.for("+")](" / 1e10 points"):(0,b.WU)(sr.points.value)+" / 1e10 points"}()}}})),A=to((function(){return{fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:no.Up,width:50,height:200,progress:function(){return b.ZP.div(sr.points.value,100)},display:function(){return function(){return void 0!==(0,b.Ht)(b.ZP.div(sr.points.value,1).min(100))&&null!==(0,b.Ht)(b.ZP.div(sr.points.value,1).min(100))&&(0,b.Ht)(b.ZP.div(sr.points.value,1).min(100))[Symbol.for("+")]?(0,b.Ht)(b.ZP.div(sr.points.value,1).min(100))[Symbol.for("+")]("%"):(0,b.Ht)(b.ZP.div(sr.points.value,1).min(100))+"%"}()}}})),U=to((function(){return{fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:no.Up,width:100,height:30,progress:function(){return b.ZP.div(o.value,50)}}})),q=Ke((function(){return{scaling:$e(Ye(10,.5),1e100,.5),baseResource:sr.points,gainResource:o,roundUpCost:!0,gainModifier:In(Fn(2,"Because I felt like it"),En(1,"Nice modifier"))}})),z=Sn((function(){return{thingsToReset:function(){return[nr]}}})),L=[So((function(){return{key:"c",description:"reset for lollipops or whatever",onPress:function(){H.canClick.value&&H.onClick()}}})),So((function(){return{key:"ctrl+c",description:"respec things",onPress:function(){R.onClick()}}}))],G=He((function(){return{layerID:er,color:e,reset:z,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip:function(){var e=M(o);return b.ZP.gt(E.amount.value,0)&&(e=function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")]("<br><i><br><br><br>".concat((0,b.Ht)(E.amount.value)," Exhancers</i>")):e+"<br><i><br><br><br>".concat((0,b.Ht)(E.amount.value)," Exhancers</i>")}()),e},style:{color:"#3325CC",textDecoration:"underline"}}}));(0,Pn.Z)(G,{display:ae(o),pinnable:!0});var H=Ge((function(){return{conversion:q,tree:sr.tree,treeNode:G,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}}));(0,Pn.Z)(H,{display:(0,y.tZ)((function(){return Dn("Modifiers","",q.gainModifier,q.scaling.currentGain(q))})),pinnable:!0,direction:Pn.A.DOWN,style:"width: 400px; text-align: left"});var W=le((function(){return{display:"TH",color:"#6d3678",canClick:function(){return b.ZP.gte(sr.points.value,10)},tooltip:"Thanos your points",onClick:function(){sr.points.value=b.ZP.div(sr.points.value,2),console.log("Thanos'd")},glowColor:function(){return b.ZP.eq(E.amount.value,1)?"orange":""}}})),Y=le((function(){return{display:"h",color:function(){return xe.Z[Me.ZP.theme].variables["--locked"]},tooltip:{display:(0,r.computed)((function(){return"Restore your points to ".concat((0,b.WU)(u.value))})),right:!0},canClick:function(){return b.ZP.lt(sr.points.value,u.value)},onClick:function(){sr.points.value=u.value}}})),K=le((function(){return{visibility:y.EE.Hidden}})),J=ie((function(){return{nodes:function(){return[[ir.treeNode,G],[W,K,Y]]},branches:function(){return[{startNode:ir.treeNode,endNode:G,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:G,endNode:W},{startNode:W,endNode:Y}]}}})),Q=po((function(){return{links:[{startNode:Y,endNode:U,"stroke-width":"5px",stroke:"red",offsetEnd:{x:function(){return(-50)[Symbol.for("+")]?(-50)[Symbol.for("+")](100*U.progress.value.toNumber()):100*U.progress.value.toNumber()-50}(),y:0}}]}})),$=Go({first:function(){return{tab:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[w._4.apply(void 0,P),(0,w._4)(B),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("confirmed")])])})),display:"first"}},second:function(){return{tab:ir.display,display:"second"}}},(function(){return{style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}}})),X=Go({mainTab:function(){return{tab:Io((function(){return{display:(0,y.tZ)((function(){var n;return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(Bn,{resource:o,color:e,effectDisplay:"which are boosting waffles by ".concat((0,b.WU)(f.value)," and increasing the Ice Cream cap by ").concat((0,b.WU)(c.value))},null),(0,r.createVNode)(Wn,null,Xo(n=(0,w.sY)(H))?n:{default:function(){return[n]}}),(0,r.createVNode)(Nn,{resource:o,color:e},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)(qn.Z,{modelValue:i.value,"onUpdate:modelValue":function(e){return i.value=e}},null),(0,r.createVNode)(Wn,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:function(){return[(0,r.createTextVNode)("I have "),M(sr.points),(0,r.createTextVNode)(" "),i.value,(0,r.createTextVNode)(" points!")]}}),(0,r.createVNode)("hr",null,null),w.Dy.apply(void 0,S),(0,r.createVNode)(d,null,null),w._4.apply(void 0,P),(0,w._4)(B),(0,w._4)(N)])}))}})),display:"main tab",glowColor:function(){return V.canPurchase.value||x.canPurchase.value||C.canPurchase.value||N.canComplete.value?"blue":""},style:{color:"orange"}}},thingies:function(){return{tab:Io((function(){return{style:function(){return{backgroundColor:"#222222","--background":"#222222"}},display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,w.sY)(_),(0,r.createVNode)(d,null,null),(0,r.createVNode)(se.Z,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:function(){return[(0,r.createVNode)(zn.Z,{"onUpdate:modelValue":function(e){return l.value=e},modelValue:l.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)(Jn,{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:function(){return{tab:Io((function(){return{display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,w.sY)(s),(0,w.sY)(j),(0,r.createVNode)(d,null,null),(0,r.createVNode)(se.Z,null,{default:function(){return[(0,r.createVNode)(Ln.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,w.sY)(A)]}}),(0,r.createVNode)(d,null,null),(0,r.createVNode)(Ln.Z,null,{default:function(){return[(0,r.createVNode)("div",null,[(0,r.createTextVNode)("idk")]),(0,r.createVNode)(d,{width:"0",height:"50px"},null),(0,w.sY)(U)]}})]}}),(0,r.createVNode)(d,null,null),(0,r.createVNode)("div",null,[(0,r.createTextVNode)('It\'s jail because "bars"! So funny! Ha ha!')]),(0,w.sY)(J)])}))}})),display:"jail"}},illuminati:function(){return{tab:Io((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,w.sY)($),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("Adjust how many points H gives you!")]),(0,r.createVNode)(Un,{"onUpdate:modelValue":function(e){return u.value=e},modelValue:u.value,min:1,max:30},null)])})),style:{backgroundColor:"#3325CC"}}})),visibility:function(){return(0,y.Kf)(C.bought.value)},display:"illuminati"}}});return{id:er,color:e,name:n,points:o,best:t,beep:l,thingy:i,otherThingy:u,spentOnBuyables:a,waffleBoost:f,icecreamCap:c,coolInfo:s,lollipopMilestones:S,funChallenge:N,funEffect:k,generatorUpgrade:V,lollipopMultiplierUpgrade:x,lollipopMultiplierEffect:Z,unlockIlluminatiUpgrade:C,quasiUpgrade:B,exhancers:E,respecBuyables:R,sellExhancer:O,bars:{tallBoi:A,longBoi:j,flatBoi:U},tree:J,g:W,h:Y,spook:K,conversion:q,reset:z,hotkeys:L,treeNode:G,resetButton:H,confirmRespec:I,minWidth:800,tabs:X,display:(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,w.sY)(X),(0,w.sY)(Q)])}))}})),or=nr,rr=JSON.parse('{"lifetime":{"min":0.5,"max":1},"ease":[{"s":0,"cp":0.329,"e":0.548},{"s":0.548,"cp":0.767,"e":0.876},{"s":0.876,"cp":0.985,"e":1}],"frequency":0.001,"emitterLifetime":0.1,"maxParticles":100,"addAtBack":true,"pos":{"x":0,"y":0},"emit":false,"behaviors":[{"type":"alpha","config":{"alpha":{"list":[{"time":0,"value":0.74},{"time":1,"value":0}]}}},{"type":"moveSpeed","config":{"speed":{"list":[{"time":0,"value":300},{"time":1,"value":0}]},"minMult":1}},{"type":"scale","config":{"scale":{"list":[{"time":0,"value":1},{"time":1,"value":0.25}]},"minMult":1}},{"type":"color","config":{"color":{"list":[{"time":0,"value":"#ffdfa0"},{"time":1,"value":"#100f0c"}]}}},{"type":"rotation","config":{"accel":0,"minSpeed":0,"maxSpeed":200,"minStart":0,"maxStart":360}},{"type":"textureRandom","config":{"textures":["/particle.png"]}},{"type":"spawnShape","config":{"type":"rect","data":{"x":0,"y":0,"w":0,"h":0}}}]}'),tr="f",lr=(0,B.createLayer)(tr,(function(){var e="#FE0102",n="Farms",o=p(0,"farm points"),t=(0,g.ax)(!1),l=an((function(){return{title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}}})),i=(0,g.ax)("Start"),u=Le((function(){return{display:function(){return{title:"Clicky clicky!",description:function(){return"Current state:<br>"[Symbol.for("+")]?"Current state:<br>"[Symbol.for("+")](i.value):"Current state:<br>"+i.value}()}},initialState:"Start",canClick:function(){return function(){return void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!==")]?i.value[Symbol.for("!==")]("Borkened..."):"Borkened..."!==i.value}()},onClick:function(e){switch(i.value){case"Start":i.value="A new state!";break;case"A new state!":i.value="Keep going!";break;case"Keep going!":i.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":var n=function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](void 0):void 0==e}()?void 0:function(){return"touches"[Symbol.for("in")]?"touches"[Symbol.for("in")](e):"touches"in e}()?e.touches[0]:e,o=Object.assign({},rr,{pos:{x:function(){var e,o,r,t,l,i,u,a,f,c,s;return void 0!==(null!==(e=null===n||void 0===n?void 0:n.clientX)&&void 0!==e?e:0)&&null!==(null!==(o=null===n||void 0===n?void 0:n.clientX)&&void 0!==o?o:0)&&(null!==(r=null===n||void 0===n?void 0:n.clientX)&&void 0!==r?r:0)[Symbol.for("-")]?(null!==(t=null===n||void 0===n?void 0:n.clientX)&&void 0!==t?t:0)[Symbol.for("-")](null!==(l=null===(i=v.boundingRect)||void 0===i||null===(u=i.value)||void 0===u?void 0:u.left)&&void 0!==l?l:0):(null!==(a=null===n||void 0===n?void 0:n.clientX)&&void 0!==a?a:0)-(null!==(f=null===(c=v.boundingRect)||void 0===c||null===(s=c.value)||void 0===s?void 0:s.left)&&void 0!==f?f:0)}(),y:function(){var e,o,r,t,l,i,u,a,f,c,s;return void 0!==(null!==(e=null===n||void 0===n?void 0:n.clientY)&&void 0!==e?e:0)&&null!==(null!==(o=null===n||void 0===n?void 0:n.clientY)&&void 0!==o?o:0)&&(null!==(r=null===n||void 0===n?void 0:n.clientY)&&void 0!==r?r:0)[Symbol.for("-")]?(null!==(t=null===n||void 0===n?void 0:n.clientY)&&void 0!==t?t:0)[Symbol.for("-")](null!==(l=null===(i=v.boundingRect)||void 0===i||null===(u=i.value)||void 0===u?void 0:u.top)&&void 0!==l?l:0):(null!==(a=null===n||void 0===n?void 0:n.clientY)&&void 0!==a?a:0)-(null!==(f=null===(c=v.boundingRect)||void 0===c||null===(s=c.value)||void 0===s?void 0:s.top)&&void 0!==f?f:0)}()}});v.addEmitter(o).then((function(e){return e.playOnceAndDestroy()})),i.value="Borkened...";break;default:i.value="Start";break}},onHold:function(){console.log("Clickkkkk...")},style:function(){switch(i.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{}}}}})),a=Le((function(){return{onClick:function(){(function(){return void 0!==i.value&&null!==i.value&&i.value[Symbol.for("==")]?i.value[Symbol.for("==")]("Borkened..."):"Borkened..."==i.value})()&&(i.value="Start")},display:function(){return function(){return void 0!==i.value&&null!==i.value&&i.value[Symbol.for("==")]?i.value[Symbol.for("==")]("Borkened..."):"Borkened..."==i.value}()?"Fix the clickable!":"Does nothing"},small:!0}})),f=Sn((function(){return{thingsToReset:function(){return[lr]}}})),c=Je((function(){return{scaling:Ye(10,.5),baseResource:sr.points,gainResource:o,modifyGainAmount:Tn(or.otherThingy)}})),s=He((function(){return{layerID:tr,color:e,reset:f,tooltip:function(){return s.canClick.value?"".concat(M(o)," ").concat(o.displayName):"This weird farmer dinosaur will only see you if you have at least 10 points. You only have ".concat(M(sr.points))},canClick:function(){return b.ZP.gte(sr.points.value,10)}}}));(0,Pn.Z)(s,{display:ae(o),pinnable:!0});var m=Ge((function(){return{conversion:c,tree:sr.tree,treeNode:s,display:(0,y.tZ)((function(){return m.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,b.Ht)(m.conversion.currentGain.value)]),(0,r.createTextVNode)(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",(0,b.Ht)(m.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,b.Ht)(m.conversion.nextAt.value),(0,r.createTextVNode)(" points)")])}))}})),v=vn((function(){return{boundingRect:(0,r.ref)(null),onContainerResized:function(e){this.boundingRect.value=e},style:"z-index: 2"}})),S=(0,y.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,w.sY)(l),(0,r.createVNode)(Bn,{resource:o,color:e},null),(0,w.sY)(m),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("You have "),(0,b.Ht)(c.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,r.createVNode)(d,null,null),(0,w._4)(a),(0,w._4)(u),(0,w.sY)(v)])}));return{id:tr,color:e,name:n,points:o,boop:t,coolInfo:l,clickable:u,clickableState:i,reset:f,conversion:c,treeNode:s,resetButton:m,display:S}})),ir=lr;function ur(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 ar="a",fr=(0,B.createLayer)(ar,(function(){var e="yellow",n="Achievements",o=p(0,"achievement power"),t=le((function(){return{display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick:function(){sr.showAchievements()}}})),l=ke((function(){return{image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:(0,r.computed)((function(){return l.earned.value?"You did it!":"How did this happen?"})),shouldEarn:function(){return!0}}})),i=ke((function(){return{display:"Impossible!",tooltip:(0,r.computed)((function(){return i.earned.value?"HOW????":"Mwahahaha!"})),style:{color:"#04e050"}}})),u=ke((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 b.ZP.gte(ir.points.value,1)},onComplete:function(){console.log("Bork bork bork!")}}})),a=[l,i,u],f=_e((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)(me.Z,(0,r.mergeProps)({display:JSON.stringify(n.cells[e].style)},(0,ce.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 b.ZP.eq(sr.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}()}}})),c=(0,y.tZ)((function(){var e,n,o;return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(se.Z,null,{default:function(){return[(0,r.createVNode)(me.Z,{display:l.tooltip,bottom:!0},ur(e=(0,w.sY)(l))?e:{default:function(){return[e]}}),(0,r.createVNode)(me.Z,{display:i.tooltip,bottom:!0},ur(n=(0,w.sY)(i))?n:{default:function(){return[n]}}),(0,r.createVNode)(me.Z,{display:u.tooltip,bottom:!0},ur(o=(0,w.sY)(u))?o:{default:function(){return[o]}})]}}),(0,w._4)(f)])}));return{id:ar,color:e,name:n,points:o,achievements:a,grid:f,treeNode:t,display:c}})),cr=fr,sr=(0,B.createLayer)("main",(function(){var e=p(10),n=h(e),o=N(e),t=(0,r.computed)((function(){if(function(){return void 0!==or.generatorUpgrade.bought.value&&null!==or.generatorUpgrade.bought.value&&or.generatorUpgrade.bought.value[Symbol.for("!")]?or.generatorUpgrade.bought.value[Symbol.for("!")]():!or.generatorUpgrade.bought.value}())return new b.ZP(0);var e=new b.ZP(3.19);return or.lollipopMultiplierUpgrade.bought.value&&(e=e.times(or.lollipopMultiplierEffect.value)),e}));S.globalBus.on("update",(function(n){e.value=b.ZP.add(e.value,b.ZP.times(t.value,n))}));var l=x(e,t),i=(0,B.setupLayerModal)(cr),u=i.openModal,a=i.modal,f=ie((function(){return{nodes:[[or.treeNode],[ir.treeNode,or.spook]],leftSideNodes:[cr.treeNode,or.h],branches:[{startNode:ir.treeNode,endNode:or.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset:function(){e.value=(0,r.toRaw)(this.resettingNode.value)===(0,r.toRaw)(or.treeNode)?0:10,n.value=e.value,o.value=e.value},resetPropagation:ue}}));return{name:"Tree",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===fe.Z.devSpeed]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Dev Speed: "),(0,b.WU)(fe.Z.devSpeed||0),(0,r.createTextVNode)("x")]),[[r.vShow,fe.Z.devSpeed&&function(){return void 0!==fe.Z.devSpeed&&null!==fe.Z.devSpeed&&fe.Z.devSpeed[Symbol.for("!==")]?fe.Z.devSpeed[Symbol.for("!==")](1):1!==fe.Z.devSpeed}()]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Offline Time: "),(0,b.mr)(fe.Z.offlineTime||0)]),[[r.vShow,function(){return void 0!==fe.Z.offlineTime&&null!==fe.Z.offlineTime&&fe.Z.offlineTime[Symbol.for("!=")]?fe.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=fe.Z.offlineTime}()]]),(0,r.createVNode)("div",null,[(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)("You have ")]),[[r.vShow,b.ZP.lt(e.value,"1e1000")]]),(0,r.createVNode)("h2",null,[(0,b.WU)(e.value)]),(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)(" points")]),[[r.vShow,b.ZP.lt(e.value,"1e1e6")]])]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("("),l.value,(0,r.createTextVNode)(")")]),[[r.vShow,b.ZP.gt(t.value,0)]]),(0,r.createVNode)(d,null,null),(0,r.createVNode)("button",{onClick:u},[(0,r.createTextVNode)("open achievements")]),(0,w.sY)(a),(0,w.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}})),mr=function(e){return[sr,ir,or,cr]},dr=(0,r.computed)((function(){return b.ZP.gt(sr.points.value,25)}));function yr(e,n){}},9365:function(e,n,o){"use strict";o.r(n),o.d(n,{RegisterNodeInjectionKey:function(){return m},UnregisterNodeInjectionKey:function(){return d},NodesInjectionKey:function(){return y},layers:function(){return v},persistentRefs:function(){return b},addingLayers:function(){return S},createLayer:function(){return g},addLayer:function(){return p},getLayer:function(){return h},removeLayer:function(){return N},reloadLayer:function(){return k},setupLayerModal:function(){return V}});var r=o(4865),t=(o(2526),o(1817),o(1539),o(189),o(8783),o(3948),o(8309),o(4747),o(2479),o(6948)),l=o(6113),i=o(9583),u=o(3273),a=o(8111),f=o(7302),c=o(4061),s=o(5967),m=Symbol("RegisterNode"),d=Symbol("UnregisterNode"),y=Symbol("Nodes"),v={};window.layers=v;var b={},S=[];function g(e,n){return(0,u.z2)((function(){var o={},t=o.emitter=(0,a.i)();if(o.on=t.on.bind(t),o.emit=t.emit.bind(t),o.nodes=(0,r.ref)({}),o.id=e,S.push(e),b[e]=new Set,o.minimized=(0,c.ax)(!1),Object.assign(o,n.call(o)),function(){return void 0!==S[S.length-1]&&null!==S[S.length-1]&&S[S.length-1][Symbol.for("==")]?S[S.length-1][Symbol.for("==")](null):null==S[S.length-1]}()||function(){return void 0!==S[S.length-1]&&null!==S[S.length-1]&&S[S.length-1][Symbol.for("!==")]?S[S.length-1][Symbol.for("!==")](e):S[S.length-1]!==e}())throw"Adding layers stack in invalid state. This should not happen\nStack: ".concat(S,"\nTrying to pop ").concat(o.id);return S.pop(),(0,i.yB)(o,"color"),(0,i.yB)(o,"display"),(0,i.yB)(o,"name"),(0,l.Rh)(o,"name",o.id),(0,i.yB)(o,"minWidth"),(0,l.Rh)(o,"minWidth",600),(0,i.yB)(o,"minimizable"),(0,l.Rh)(o,"minimizable",!0),o}))}function p(e,n){console.info("Adding layer",e.id),v[e.id]?console.error("Attempted to add layer with same ID as existing layer",e.id,v[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]={}),v[e.id]=e,f.globalBus.emit("addLayer",e,n.layers[e.id]))}function h(e){return v[e]}function N(e){console.info("Removing layer",e.id),f.globalBus.emit("removeLayer",e),v[e.id]=void 0}function k(e){N(e),p(e,s.Z)}function V(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)})}))}}f.globalBus.on("update",(function(e){Object.values(v).forEach((function(n){null===n||void 0===n||n.emit("preUpdate",e)})),Object.values(v).forEach((function(n){null===n||void 0===n||n.emit("update",e)})),Object.values(v).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},qF:function(){return y},RU:function(){return v},ix:function(){return b},vq:function(){return S},KO:function(){return g},o9:function(){return p},Uv:function(){return h},P5:function(){return N}});var r=o(3336),t=o(4865),l=(o(2526),o(1817),o(1539),o(3210),o(2222),o(1249),o(7327),o(7042),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(v(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){if(v(e)){if("function"===typeof e)return e();if("string"===typeof e)return(0,t.createVNode)(t.Fragment,null,[e]);var n=e;return(0,t.createVNode)(n,null,null)}var o=e[u.wA];return(0,t.createVNode)(o,e[u.tj](),null)}function v(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),r=(0,t.ref)(void 0);function l(e){(function(){return void 0!==o.value&&null!==o.value&&o.value[Symbol.for("!")]?o.value[Symbol.for("!")]():!o.value})()&&(o.value=setInterval(u,250)),r.value=e}function i(){o.value&&(clearInterval(o.value),o.value=null)}function u(){n&&n.value?n.value():e&&e.value&&e.value(r.value)}return(0,t.onUnmounted)(i),{start:l,stop:i,handleHolding:u}}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)();return(0,t.watchEffect)((function(){r.value=c(h(e),o)})),r}function g(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=h(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 p(e){return(0,t.computed)((function(){return h(e)}))}function h(e){return(0,t.unref)((0,t.unref)(e))}function N(){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}},5053:function(e,n,o){"use strict";o.d(n,{Z:function(){return u}});o(2526),o(1817),o(1539);var r=o(4865),t=o(9365),l=(0,r.defineComponent)({setup:function(e,n){var o=n.expose,l=(0,r.ref)({});o({nodes:l});var i={attributes:!0,childList:!0,subtree:!1};function u(e){var n=l.value[e];(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n})()||(n.rect=n.element.getBoundingClientRect())}return(0,r.provide)(t.RegisterNodeInjectionKey,(function(e,n){var o=new MutationObserver((function(){return u(e)}));o.observe(n,i),l.value[e]={element:n,observer:o,rect:n.getBoundingClientRect()},(0,r.nextTick)((function(){return u(e)}))})),(0,r.provide)(t.UnregisterNodeInjectionKey,(function(e){var n;null===(n=l.value[e])||void 0===n||n.observer.disconnect(),l.value[e]=void 0})),(0,r.provide)(t.NodesInjectionKey,l),function(e,n){return(0,r.renderSlot)(e.$slots,"default")}}});const i=l;var u=i},6948:function(e,n,o){"use strict";o.d(n,{Z:function(){return b}});o(2526),o(1817),o(1539);var r=o(4865),t=o(5053),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={class:"modal-footer"},d=(0,r.createElementVNode)("div",{class:"modal-default-flex-grow"},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),y=(0,r.defineComponent)({props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup:function(e,n){var o=n.expose,y=n.emit,v=e,b=(0,r.toRefs)(v),S=(0,r.computed)((function(){return b.modelValue||p.value}));function g(){y("update:modelValue",!1)}var p=(0,r.ref)(!1),h=(0,r.ref)(null),N=(0,r.computed)((function(){var e;return function(){var n,o,r,t,l;return void 0!==(e=null===(n=h.value)||void 0===n?void 0:n.nodes)&&null!==(e=null===(o=h.value)||void 0===o?void 0:o.nodes)&&(e=null===(r=h.value)||void 0===r?void 0:r.nodes)[Symbol.for("!==")]?(e=null===(t=h.value)||void 0===t?void 0:t.nodes)[Symbol.for("!==")](null):null!==(e=null===(l=h.value)||void 0===l?void 0:l.nodes)}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()?e:null}));return o({isOpen:S,nodes:N}),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 p.value=!0}),onAfterLeave:o[1]||(o[1]=function(e){return p.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)(g,["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)(S)},(function(){return[f]}))]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(t.Z,{ref_key:"contextRef",ref:h},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(n.$slots,"body",{shown:(0,r.unref)(S)},(function(){return[s]}))]})),_:3},512)]),(0,r.createElementVNode)("div",m,[(0,r.renderSlot)(n.$slots,"footer",{shown:(0,r.unref)(S)},(function(){return[(0,r.createElementVNode)("div",{class:"modal-default-footer"},[d,(0,r.createElementVNode)("button",{class:"button modal-default-button",onClick:g}," Close ")])]}))])])])],16,l),[[r.vShow,e.modelValue]])]})),_:3})])}}});const v=y;var b=v},3525: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},4520: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 v(){o("submit")}return function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("form",{onSubmit:(0,r.withModifiers)(v,["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:v,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:v,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-8bda704a"]]);var d=m},9868: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-43cf95d0"]]);var f=a},9905:function(e,n,o){"use strict";o.d(n,{Z:function(){return f}});var r=o(4865),t=o(1037),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(1037),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},264:function(e,n,o){"use strict";o.d(n,{Z:function(){return v}});var r=o(5082),t=(o(2526),o(1817),o(1539),o(4865)),l={key:0,class:"material-icons pinned"};function i(e,n,o,i,u,a){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.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}),onClickCapture:n[2]||(n[2]=function(){return e.togglePinned&&e.togglePinned.apply(e,arguments)})},[(0,t.renderSlot)(e.$slots,"default",{},void 0,!0),e.elementComp?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.elementComp),{key:0})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:"fade"},{default:(0,t.withCtx)((function(){var n;return[e.isShown?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["tooltip",(0,r.Z)({top:e.unref(e.direction)===e.TooltipDirection.UP,left:e.unref(e.direction)===e.TooltipDirection.LEFT,right:e.unref(e.direction)===e.TooltipDirection.RIGHT,bottom:e.unref(e.direction)===e.TooltipDirection.DOWN},e.unref(e.classes))]),style:(0,t.normalizeStyle)([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},function(){return void 0!==(n=e.unref(e.style))&&null!==(n=e.unref(e.style))&&(n=e.unref(e.style))[Symbol.for("!==")]?(n=e.unref(e.style))[Symbol.for("!==")](null):null!==(n=e.unref(e.style))}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](void 0):void 0!==n}()?n:{}])},[e.showPin?((0,t.openBlock)(),(0,t.createElementBlock)("span",l,"push_pin")):(0,t.createCommentVNode)("",!0),e.comp?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.comp),{key:1})):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)]})),_:1})],34)}o(9653);var u=o(1037),a=o(6113),f=o(9266),c=o(1604),s=o(4096),m=(0,t.defineComponent)({props:{element:(0,c.P5)(Object),display:{type:(0,c.P5)(Object,String,Function),required:!0},style:(0,c.P5)(Object,String,Array),classes:(0,c.P5)(Object),direction:(0,c.P5)(Number),xoffset:(0,c.P5)(String),yoffset:(0,c.P5)(String),pinned:Object},setup:function(e){var n=(0,t.toRefs)(e),o=n.element,r=n.display,l=n.pinned,i=(0,t.ref)(!1),m=(0,t.computed)((function(){return((0,c.Uv)(l)||i.value)&&d.value})),d=(0,c.KO)(r),y=(0,t.shallowRef)(null);function v(e){var n=l;e.shiftKey&&n&&(n.value=function(){return void 0!==n.value&&null!==n.value&&n.value[Symbol.for("!")]?n.value[Symbol.for("!")]():!n.value}(),e.stopPropagation(),e.preventDefault())}(0,t.watchEffect)((function(){var e=(0,c.Uv)(o);y.value=function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()?null:(0,c.MM)((0,a.tZ)((function(){return(0,c.sY)(e)})))}));var b=(0,t.computed)((function(){return(0,c.Uv)(l)&&u.Z[f.ZP.theme].showPin}));return{TooltipDirection:s.A,isHovered:i,isShown:m,comp:d,elementComp:y,unref:t.unref,togglePinned:v,showPin:b}}}),d=o(3744);const y=(0,d.Z)(m,[["render",i],["__scopeId","data-v-adb5f26e"]]);var v=y},7634:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=7634,e.exports=n},6453: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,"defaultShowSmall":false,"defaultDecimalsShown":2,"useHeader":true,"banner":null,"logo":"Logo.png","initialTabs":["main","c"],"maxTickLength":3600,"offlineLimit":1,"enablePausing":true}')}},n={};function o(r){var t=n[r];if(void 0!==t)return t.exports;var l=n[r]={id:r,loaded:!1,exports:{}};return e[r].call(l.exports,l,l.exports,o),l.loaded=!0,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.hmd=function(e){return e=Object.create(e),e.children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e}}(),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(){o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),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(6098)}));r=o.O(r)})();
|
|
//# sourceMappingURL=app-legacy.ccf53970.js.map
|