(function(){var e={1037:function(e,o,t){"use strict";t.d(o,{b:function(){return n}});const l={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#eee","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var n;(function(e){e["Classic"]="classic",e["Paper"]="paper",e["Nordic"]="nordic",e["Aqua"]="aqua"})(n||(n={})),o["Z"]={classic:l,paper:{...l,variables:{...l.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...l,variables:{...l.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...l,variables:{...l.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}}},6113:function(e,o,t){"use strict";t.d(o,{wA:function(){return i},tj:function(){return a},QI:function(){return u},EE:function(){return m},tZ:function(){return c},Kf:function(){return f},Rh:function(){return d},bD:function(){return y}});var l=t(5613),n=t(9583),r=t(4865);const i=Symbol("Component"),a=Symbol("GatherProps");let s=0;function u(e="feature-"){return(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](s++):e+s++)()}var m;function c(e){return e[n.mM]=!0,e}function f(e,o=m.None){return e?m.Visible:o}function d(e,o,t){void 0===e[o]&&(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](void 0):void 0!=t)()&&(e[o]=t)}function y(e,o){const t=[],n=e=>{Object.keys(e).forEach((i=>{const a=e[i];a&&"object"===typeof a&&(a.type===o?t.push(a):(()=>a instanceof l.ZP!==void 0&&a instanceof l.ZP!==null&&(a instanceof l.ZP)[Symbol.for("!")]?(a instanceof l.ZP)[Symbol.for("!")]():!(a instanceof l.ZP))()&&(()=>void 0!==(0,r.isRef)(a)&&null!==(0,r.isRef)(a)&&(0,r.isRef)(a)[Symbol.for("!")]?(0,r.isRef)(a)[Symbol.for("!")]():!(0,r.isRef)(a))()&&n(a))}))};return n(e),t}(function(e){e[e["Visible"]=0]="Visible",e[e["Hidden"]=1]="Hidden",e[e["None"]=2]="None"})(m||(m={}))},4096:function(e,o,t){"use strict";t.d(o,{A:function(){return l},Z:function(){return s}});var l,n=t(264),r=t(6113),i=t(9583),a=t(4061);function s(e,o){o.pinnable&&((()=>"pinned"[Symbol.for("in")]?"pinned"[Symbol.for("in")](e):"pinned"in e)()?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),o.pinnable=!1):e.pinned=o.pinned=(0,a.ax)(!1)),(0,i.yB)(o,"display"),(0,i.yB)(o,"classes"),(0,i.yB)(o,"style"),(0,i.yB)(o,"direction"),(0,r.Rh)(o,"direction",l.UP),(0,i.yB)(o,"xoffset"),(0,i.yB)(o,"yoffset");const t=e[r.wA];e[r.wA]=n.Z;const s=e[r.tj].bind(e);return e[r.tj]=function(){const{display:e,classes:o,style:l,direction:n,xoffset:i,yoffset:a,pinned:u}=this;return{element:{[r.wA]:t,[r.tj]:s},display:e,classes:o,style:l,direction:n,xoffset:i,yoffset:a,pinned:u}}.bind(o),o}(function(e){e[e["UP"]=0]="UP",e[e["LEFT"]=1]="LEFT",e[e["RIGHT"]=2]="RIGHT",e[e["DOWN"]=3]="DOWN"})(l||(l={}))},7302:function(e,o,t){"use strict";t.r(o),t.d(o,{globalBus:function(){return m},startGameLoop:function(){return y}});var l=t(6453),n=t(5613),r=t(8111),i=t(4865),a=t(5967),s=t(9266),u=t(3032);const m=(0,r.i)();let c=null,f=null;function d(){const e=Date.now();let o=(()=>e-a.Z.time!==void 0&&e-a.Z.time!==null&&(e-a.Z.time)[Symbol.for("/")]?(e-a.Z.time)[Symbol.for("/")](1e3):(e-a.Z.time)/1e3)();a.Z.time=e;const t=o;if(u.Z.lastTenTicks.push(t),(()=>void 0!==u.Z.lastTenTicks.length&&null!==u.Z.lastTenTicks.length&&u.Z.lastTenTicks.length[Symbol.for(">")]?u.Z.lastTenTicks.length[Symbol.for(">")](10):u.Z.lastTenTicks.length>10)()&&(u.Z.lastTenTicks=u.Z.lastTenTicks.slice(1)),(!f?.value||!(()=>void 0!==a.Z.keepGoing&&null!==a.Z.keepGoing&&a.Z.keepGoing[Symbol.for("!")]?a.Z.keepGoing[Symbol.for("!")]():!a.Z.keepGoing)())&&!u.Z.hasNaN&&(o=Math.max(o,0),0!==a.Z.devSpeed)){if((()=>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(n.ZP.gt(a.Z.offlineTime,(()=>void 0!==l.offlineLimit&&null!==l.offlineLimit&&l.offlineLimit[Symbol.for("*")]?l.offlineLimit[Symbol.for("*")](3600):3600*l.offlineLimit)())&&(a.Z.offlineTime=(()=>void 0!==l.offlineLimit&&null!==l.offlineLimit&&l.offlineLimit[Symbol.for("*")]?l.offlineLimit[Symbol.for("*")](3600):3600*l.offlineLimit)()),n.ZP.gt(a.Z.offlineTime,0)&&(()=>void 0!==a.Z.devSpeed&&null!==a.Z.devSpeed&&a.Z.devSpeed[Symbol.for("!==")]?a.Z.devSpeed[Symbol.for("!==")](0):0!==a.Z.devSpeed)()){const e=Math.max((()=>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=(()=>void 0!==a.Z.offlineTime&&null!==a.Z.offlineTime&&a.Z.offlineTime[Symbol.for("-")]?a.Z.offlineTime[Symbol.for("-")](e):a.Z.offlineTime-e)(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](e):o+e)()}else 0===a.Z.devSpeed&&(a.Z.offlineTime=(()=>void 0!==a.Z.offlineTime&&null!==a.Z.offlineTime&&a.Z.offlineTime[Symbol.for("+")]?a.Z.offlineTime[Symbol.for("+")](o):a.Z.offlineTime+o)());((()=>void 0!==a.Z.offlineProd&&null!==a.Z.offlineProd&&a.Z.offlineProd[Symbol.for("!")]?a.Z.offlineProd[Symbol.for("!")]():!a.Z.offlineProd)()||n.ZP.lt(a.Z.offlineTime,0))&&(a.Z.offlineTime=null)}o=Math.min(o,l.maxTickLength),(()=>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=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](a.Z.devSpeed):o*a.Z.devSpeed)()),(()=>void 0!==Number.isFinite(o)&&null!==Number.isFinite(o)&&Number.isFinite(o)[Symbol.for("!")]?Number.isFinite(o)[Symbol.for("!")]():!Number.isFinite(o))()&&(o=1e308),n.ZP.eq(o,0)||(a.Z.timePlayed=(()=>void 0!==a.Z.timePlayed&&null!==a.Z.timePlayed&&a.Z.timePlayed[Symbol.for("+")]?a.Z.timePlayed[Symbol.for("+")](o):a.Z.timePlayed+o)(),(()=>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),m.emit("update",o,t),s.ZP.unthrottled?(requestAnimationFrame(d),(()=>void 0!==c&&null!==c&&c[Symbol.for("!=")]?c[Symbol.for("!=")](null):null!=c)()&&(clearInterval(c),c=null)):(()=>void 0!==c&&null!==c&&c[Symbol.for("==")]?c[Symbol.for("==")](null):null==c)()&&(c=setInterval(d,50)))}}async function y(){f=(await Promise.resolve().then(t.bind(t,7573))).hasWon,(0,i.watch)(f,(e=>{e&&m.emit("gameWon")})),s.ZP.unthrottled?requestAnimationFrame(d):c=setInterval(d,50)}},4061:function(e,o,t){"use strict";t.d(o,{n9:function(){return u},nY:function(){return m},ax:function(){return y}});t(1703);var l=t(7302),n=t(5613),r=t(3273),i=t(3577),a=t(4865),s=t(9365);const u=Symbol("PersistentState"),m=Symbol("DefaultValue"),c=Symbol("StackTrace"),f=Symbol("Deleted");function d(){return(new Error).stack?.split("\n").slice(3,5).map((e=>e.trim())).join("\n")||""}function y(e){const o=(0,a.isRef)(e)?e:(0,a.ref)(e);return o[u]=o,o[m]=(0,a.isRef)(e)?e.value:e,o[c]=d(),o[f]=!1,0===s.addingLayers.length?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",o,(()=>"\nCreated at:\n"[Symbol.for("+")]?"\nCreated at:\n"[Symbol.for("+")](o[c]):"\nCreated at:\n"+o[c])()):s.persistentRefs[s.addingLayers[(()=>void 0!==s.addingLayers.length&&null!==s.addingLayers.length&&s.addingLayers.length[Symbol.for("-")]?s.addingLayers.length[Symbol.for("-")](1):s.addingLayers.length-1)()]].add(o),o}l.globalBus.on("addLayer",((e,o)=>{const t=[],l=(d,y=[])=>{let b=!1;return Object.keys(d).forEach((h=>{const p=d[h];if(p&&"object"===typeof p)if((()=>void 0!==u&&null!==u&&u[Symbol.for("in")]?u[Symbol.for("in")](p):u in p)()){if(b=!0,p[f])return void console.warn("Deleted persistent ref present in returned object. Ignoring...",p,(()=>"\nCreated at:\n"[Symbol.for("+")]?"\nCreated at:\n"[Symbol.for("+")](p[c]):"\nCreated at:\n"+p[c])());s.persistentRefs[e.id].delete((()=>void 0!==r.Le&&null!==r.Le&&r.Le[Symbol.for("in")]?r.Le[Symbol.for("in")](p):r.Le in p)()?p[r.Le]:p);const t=y.reduce(((e,o)=>((()=>o in e!==void 0&&o in e!==null&&(o in e)[Symbol.for("!")]?(o in e)[Symbol.for("!")]():!(o in e))()&&(e[o]={}),e[o])),o),l=t[h];t[h]=p[u],(0,a.isReactive)(t)?(()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](null):null!=l)()?t[h]=l:t[h]=p[m]:(()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](null):null!=l)()?t[h].value=l:t[h].value=p[m]}else if((()=>p instanceof n.ZP!==void 0&&p instanceof n.ZP!==null&&(p instanceof n.ZP)[Symbol.for("!")]?(p instanceof n.ZP)[Symbol.for("!")]():!(p instanceof n.ZP))()&&(()=>void 0!==(0,a.isRef)(p)&&null!==(0,a.isRef)(p)&&(0,a.isRef)(p)[Symbol.for("!")]?(0,a.isRef)(p)[Symbol.for("!")]():!(0,a.isRef)(p))()&&(()=>void 0!==t.includes(p)&&null!==t.includes(p)&&t.includes(p)[Symbol.for("!")]?t.includes(p)[Symbol.for("!")]():!t.includes(p))()){"symbol"===typeof p.type&&t.push(p);const e=l(p,[...y,h]);e&&((0,i.kJ)(p)&&(()=>void 0!==(0,i.kJ)(d)&&null!==(0,i.kJ)(d)&&(0,i.kJ)(d)[Symbol.for("!")]?(0,i.kJ)(d)[Symbol.for("!")]():!(0,i.kJ)(d))()?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",(()=>void 0!==r.Le&&null!==r.Le&&r.Le[Symbol.for("in")]?r.Le[Symbol.for("in")](d):r.Le in d)()?d[r.Le]:d,h):b=!0)}})),b};l(e),s.persistentRefs[e.id].forEach((o=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,o,(()=>"\nCreated at:\n"[Symbol.for("+")]?"\nCreated at:\n"[Symbol.for("+")](o[c]):"\nCreated at:\n"+o[c])())})),s.persistentRefs[e.id].clear()}))},5967:function(e,o,t){"use strict";t.d(o,{U:function(){return u}});var l=t(5613),n=t(1349),r=t(3273),i=t(4865),a=t(3032);const s=(0,i.reactive)({id:"",devSpeed:null,name:"",tabs:[],time:(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function u(e){return JSON.stringify(e,((e,o)=>(0,i.unref)(o)))}const m={get(e,o){if(o===r.Le||o===r.c4)return e[o];const t=e[r.Le][o];if((()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")]("value"):"value"!==o)()&&(0,n.PO)(t)&&(()=>t instanceof l.ZP!==void 0&&t instanceof l.ZP!==null&&(t instanceof l.ZP)[Symbol.for("!")]?(t instanceof l.ZP)[Symbol.for("!")]():!(t instanceof l.ZP))()){if((()=>void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](e[o]?.[r.Le]):t!==e[o]?.[r.Le])()){const l=[...e[r.c4],o];e[o]=new Proxy({[r.Le]:t,[r.c4]:l},m)}return e[o]}return t},set(e,o,t,n){if((()=>void 0!==a.Z.hasNaN&&null!==a.Z.hasNaN&&a.Z.hasNaN[Symbol.for("!")]?a.Z.hasNaN[Symbol.for("!")]():!a.Z.hasNaN)()&&("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))){const t=e[r.Le][o];if((()=>void 0!==("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&null!==("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]?("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]():!("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag))))())throw s.autosave=!1,a.Z.hasNaN=!0,a.Z.NaNPath=[...e[r.c4],o],a.Z.NaNReceiver=n,console.error("Attempted to set NaN value",[...e[r.c4],o],e[r.Le]),"Attempted to set NaN value. See above for details"}return e[r.Le][o]=t,!0},ownKeys(e){return Reflect.ownKeys(e[r.Le])},has(e,o){return Reflect.has(e[r.Le],o)},getOwnPropertyDescriptor(e,o){return Object.getOwnPropertyDescriptor(e[r.Le],o)}};o["Z"]=window.player=new Proxy({[r.Le]:s,[r.c4]:["player"]},m)},9266:function(e,o,t){"use strict";t.d(o,{ri:function(){return u},V$:function(){return m},QV:function(){return c},II:function(){return f},fw:function(){return d},t:function(){return y}});t(2801);var l=t(6453),n=t(1037),r=t(7302),i=t(463),a=t(4865);const s=(0,a.reactive)({active:"",saves:[],showTPS:!0,theme:n.b.Nordic,unthrottled:!1});function u(){try{const e=localStorage.getItem(l.id);if((()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](""):""!==e)()){const o=JSON.parse(decodeURIComponent(escape(atob(e))));"object"===typeof o&&Object.assign(s,o)}r.globalBus.emit("loadSettings",s)}catch{}}(0,a.watch)(s,(e=>localStorage.setItem(l.id,btoa(unescape(encodeURIComponent(JSON.stringify(e)))))),{deep:!0}),o["ZP"]=window.settings=s;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:n.b.Nordic};r.globalBus.emit("loadSettings",e),Object.assign(s,e),(0,i.y6)()};const m=(0,a.reactive)([]);function c(e){m.push(e)}const f=(0,a.reactive)([]);function d(e){f.push(e)}const y=(0,a.reactive)([])},3032:function(e,o,t){"use strict";var l=t(4865);o["Z"]=window.state=(0,l.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},6098:function(e,o,t){"use strict";var l=t(4865),n=t(6113),r=t(1604),i=t(6453),a=t(9365),s=t(5967);function u(e,o,t,n,r,i){const a=(0,l.resolveComponent)("Context");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"layer-container",style:(0,l.normalizeStyle)({"--layer-color":e.unref(e.color)})},[e.showGoBack?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:"goBack",onClick:o[0]||(o[0]=(...o)=>e.goBack&&e.goBack(...o))},"←")):(0,l.createCommentVNode)("",!0),e.minimized.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:o[1]||(o[1]=o=>e.minimized.value=!1)},[(0,l.createElementVNode)("div",null,(0,l.toDisplayString)(e.unref(e.name)),1)])):((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(["layer-tab",[{showGoBack:e.showGoBack},e.unref(e.classes)]]),style:(0,l.normalizeStyle)(e.unref(e.style))},[(0,l.createVNode)(a,{ref:"contextRef"},{default:(0,l.withCtx)((()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component)))])),_:1},512)],6)),e.unref(e.minimizable)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:3,class:"minimize",onClick:o[2]||(o[2]=o=>e.minimized.value=!0)}," ▼ ")):(0,l.createCommentVNode)("",!0)],4)}var m=t(5053),c=(0,l.defineComponent)({components:{Context:m.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,r.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,r.P5)(Number,String),required:!0},name:{type:(0,r.P5)(String),required:!0},color:(0,r.P5)(String),style:(0,r.P5)(String,Object,Array),classes:(0,r.P5)(Object),minimizable:(0,r.P5)(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:o,index:t,minimized:n,minWidth:a,tab:u}=(0,l.toRefs)(e),m=(0,r.vq)(o),c=(0,l.computed)((()=>i.allowGoBack&&(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for(">")]?t.value[Symbol.for(">")](0):t.value>0)()&&(()=>void 0!==n.value&&null!==n.value&&n.value[Symbol.for("!")]?n.value[Symbol.for("!")]():!n.value)()));function f(){s.Z.tabs.splice((0,l.unref)(e.index),1/0)}(0,l.nextTick)((()=>y(n.value,(0,l.unref)(a.value)))),(0,l.watch)([n,(0,r.o9)(a)],(([e,o])=>y(e,o)));const d=(0,l.ref)(null);function y(e,o){const t="number"===typeof o||Number.isNaN(parseInt(o))?(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]("px"):o+"px")():o,l=u.value();(()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](void 0):void 0!=l)()&&(e?(l.style.flexGrow="0",l.style.flexShrink="0",l.style.width="60px",l.style.minWidth=l.style.flexBasis="",l.style.margin="0"):(l.style.flexGrow="",l.style.flexShrink="",l.style.width="",l.style.minWidth=l.style.flexBasis=`${t}px`,l.style.margin=""))}return(0,l.watch)((()=>d.value?.nodes),(o=>{o&&(e.nodes.value=o)})),{component:m,showGoBack:c,contextRef:d,unref:l.unref,goBack:f}}}),f=t(3744);const d=(0,f.Z)(c,[["render",u],["__scopeId","data-v-66dc9e3e"]]);var y=d,b=t(6948);const h=e=>((0,l.pushScopeId)("data-v-5f8298e6"),e=e(),(0,l.popScopeId)(),e),p=h((()=>(0,l.createElementVNode)("h2",null,"Changelog",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),v=h((()=>(0,l.createElementVNode)("details",{open:""},[(0,l.createElementVNode)("summary",null,[(0,l.createTextVNode)("v0.0 Initial Commit - "),(0,l.createElementVNode)("time",null,"2021-09-04")]),(0,l.createTextVNode)(" This is the first release :D "),(0,l.createElementVNode)("ul",null,[(0,l.createElementVNode)("li",{class:"feature"},"Did everything"),(0,l.createElementVNode)("li",{class:"fix"},"Had some fun"),(0,l.createElementVNode)("li",{class:"breaking"},"Removed everything"),(0,l.createElementVNode)("li",{class:"balancing"},"Created some bugs to fix later")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var g=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)(!1);return o({open(){t.value=!0}}),(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(b.Z,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value=e)},{header:(0,l.withCtx)((()=>[p])),body:(0,l.withCtx)((()=>[v])),_:1},8,["modelValue"]))}});const S=(0,f.Z)(g,[["__scopeId","data-v-5f8298e6"]]);var N=S,k=t(9266),V=t(5613);const x=e=>((0,l.pushScopeId)("data-v-3eb46986"),e=e(),(0,l.popScopeId)(),e),M={class:"info-modal-header"},C=["src","alt"],w={class:"info-modal-title"},Z={key:0},B={key:0},P={key:0},E=x((()=>(0,l.createElementVNode)("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),T=x((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),F=x((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),I=["href"],D=x((()=>(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),R=x((()=>(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Paper Pilot Community ")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),O=x((()=>(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Modding Tree ")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),_=x((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var j=(0,l.defineComponent)({props:{changelog:null},setup(e,{expose:o}){const t=e,{title:a,logo:u,author:m,discordName:c,discordLink:f,versionNumber:d,versionTitle:y}=i,h=(0,l.toRefs)(t),p=(0,l.ref)(!1),v=(0,l.computed)((()=>(0,V.mr)(s.Z.timePlayed))),g=(0,l.computed)((()=>(0,r.MM)((0,n.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[k.II.map(r.sY)]))))));function S(){(0,l.unref)(h.changelog)?.open()}return o({open(){p.value=!0}}),(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(b.Z,{modelValue:p.value,"onUpdate:modelValue":o[0]||(o[0]=e=>p.value=e)},{header:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",M,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,l.unref)(u),alt:(0,l.unref)(a)},null,8,C)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",w,[(0,l.createElementVNode)("h2",null,(0,l.toDisplayString)((0,l.unref)(a)),1),(0,l.createElementVNode)("h4",null,[(0,l.createTextVNode)((()=>" v"[Symbol.for("+")]?" v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(d))):" v"+(0,l.toDisplayString)((0,l.unref)(d)))(),1),(0,l.unref)(y)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Z,(()=>": "[Symbol.for("+")]?": "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(y))):": "+(0,l.toDisplayString)((0,l.unref)(y)))(),1)):(0,l.createCommentVNode)("",!0)])])])])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",B,[(0,l.unref)(m)?((0,l.openBlock)(),(0,l.createElementBlock)("div",P,(()=>"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):"By "+(0,l.toDisplayString)((0,l.unref)(m)))(),1)):(0,l.createCommentVNode)("",!0),E,T,(0,l.createElementVNode)("div",{class:"link",onClick:S},"Changelog"),F,(0,l.createElementVNode)("div",null,[(()=>void 0!==(0,l.unref)(f)&&null!==(0,l.unref)(f)&&(0,l.unref)(f)[Symbol.for("!==")]?(0,l.unref)(f)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(f))()?((0,l.openBlock)(),(0,l.createElementBlock)("a",{key:0,href:(0,l.unref)(f),class:"info-modal-discord-link"},[D,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(c))):" "+(0,l.toDisplayString)((0,l.unref)(c)))(),1)],8,I)):(0,l.createCommentVNode)("",!0)]),R,O,_,(0,l.createElementVNode)("div",null,(()=>"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(v))):"Time Played: "+(0,l.toDisplayString)((0,l.unref)(v)))(),1),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(g))))])):(0,l.createCommentVNode)("",!0)])),_:1},8,["modelValue"]))}});const A=(0,f.Z)(j,[["__scopeId","data-v-3eb46986"]]);var U=A,q=t(1037),z=t(1349),L=t(3525),G=t(9868),W=t(264);const H=e=>((0,l.pushScopeId)("data-v-85d7ae40"),e=e(),(0,l.popScopeId)(),e),$=H((()=>(0,l.createElementVNode)("div",{class:"header"},[(0,l.createElementVNode)("h2",null,"Options")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Y=H((()=>(0,l.createElementVNode)("hr",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var K=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)(!1);o({open(){t.value=!0}});const a=Object.keys(q.Z).map((e=>({label:(0,z.IJ)(e),value:e}))),u=(0,l.computed)((()=>(0,r.MM)((0,n.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[k.V$.map(r.sY)])))))),{showTPS:m,theme:c,unthrottled:f}=(0,l.toRefs)(k.ZP),{autosave:d,offlineProd:y}=(0,l.toRefs)(s.Z),h=(0,l.computed)({get(){return 0===s.Z.devSpeed},set(e){s.Z.devSpeed=e?0:null}}),p=(0,n.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Offline Production"),(0,l.createVNode)(W.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})]))),v=(0,n.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Autosave"),(0,l.createVNode)(W.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})]))),g=(0,n.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Pause game"),(0,l.createVNode)(W.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})])));return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(b.Z,{modelValue:t.value,"onUpdate:modelValue":o[6]||(o[6]=e=>t.value=e)},{header:(0,l.withCtx)((()=>[$])),body:(0,l.withCtx)((()=>[(0,l.createVNode)(L.Z,{title:"Theme",options:(0,l.unref)(a),modelValue:(0,l.unref)(c),"onUpdate:modelValue":o[0]||(o[0]=e=>(0,l.isRef)(c)?c.value=e:null)},null,8,["options","modelValue"]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(u)))),(0,l.createVNode)(G.Z,{title:"Show TPS",modelValue:(0,l.unref)(m),"onUpdate:modelValue":o[1]||(o[1]=e=>(0,l.isRef)(m)?m.value=e:null)},null,8,["modelValue"]),Y,(0,l.createVNode)(G.Z,{title:"Unthrottled",modelValue:(0,l.unref)(f),"onUpdate:modelValue":o[2]||(o[2]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["modelValue"]),(0,l.createVNode)(G.Z,{title:(0,l.unref)(p),modelValue:(0,l.unref)(y),"onUpdate:modelValue":o[3]||(o[3]=e=>(0,l.isRef)(y)?y.value=e:null)},null,8,["title","modelValue"]),(0,l.createVNode)(G.Z,{title:(0,l.unref)(v),modelValue:(0,l.unref)(d),"onUpdate:modelValue":o[4]||(o[4]=e=>(0,l.isRef)(d)?d.value=e:null)},null,8,["title","modelValue"]),(0,l.unref)(i).enablePausing?((0,l.openBlock)(),(0,l.createBlock)(G.Z,{key:0,title:(0,l.unref)(g),modelValue:(0,l.unref)(h),"onUpdate:modelValue":o[5]||(o[5]=e=>(0,l.isRef)(h)?h.value=e:null)},null,8,["title","modelValue"])):(0,l.createCommentVNode)("",!0)])),_:1},8,["modelValue"]))}});const J=(0,f.Z)(K,[["__scopeId","data-v-85d7ae40"]]);var Q=J,X=(t(2801),t(463)),ee=t(4520);const oe={key:0},te=["onClick","disabled"],le={key:0},ne=["onClick"];var re=(0,l.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:o}){const t=e,n=(0,l.toRefs)(t),r=(0,l.ref)(!1);function i(){(0,l.unref)(n.skipConfirm)?o("click"):(r.value&&o("click"),r.value=(()=>void 0!==r.value&&null!==r.value&&r.value[Symbol.for("!")]?r.value[Symbol.for("!")]():!r.value)())}function a(){r.value=!1}return(0,l.watch)(r,(e=>{o("confirmingChanged",e)})),(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["container",{confirming:r.value}])},[r.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",oe,"Are you sure?")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:(0,l.withModifiers)(i,["stop"]),class:"button danger",disabled:e.disabled},[r.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",le,"Yes")):(0,l.renderSlot)(o.$slots,"default",{key:1})],8,te),r.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"button",onClick:(0,l.withModifiers)(a,["stop"])},"No",8,ne)):(0,l.createCommentVNode)("",!0)],2))}});const ie=(0,f.Z)(re,[["__scopeId","data-v-bf59fca4"]]);var ae=ie;const se=["onClick"];var ue=(0,l.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:o}){const t=(0,l.ref)(!1),n=(0,l.ref)(null);function r(){o("click"),n.value&&clearTimeout(n.value),t.value=!1,(0,l.nextTick)((()=>{t.value=!0,n.value=setTimeout((()=>t.value=!1),500)}))}return(o,n)=>((0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:(0,l.withModifiers)(r,["stop"]),class:(0,l.normalizeClass)(["feedback",{activated:t.value,left:e.left}])},[(0,l.renderSlot)(o.$slots,"default")],10,se))}});const me=(0,f.Z)(ue,[["__scopeId","data-v-5bbcedd3"]]);var ce=me;const fe=e=>((0,l.pushScopeId)("data-v-6a0cf7ac"),e=e(),(0,l.popScopeId)(),e),de=fe((()=>(0,l.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ye={key:0,class:"actions"},be=fe((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"content_paste",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),he=fe((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"content_copy",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),pe=[he],ve=fe((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"edit",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ge=[ve],Se=fe((()=>(0,l.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ne={key:1,class:"actions"},ke=fe((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"check",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ve=[ke],xe=fe((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"close",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Me=[xe],Ce={key:2,class:"details"},we={class:"save-version"},Ze=fe((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Be={key:0},Pe={key:3,class:"details"},Ee={key:4,class:"details error"},Te=fe((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var Fe=(0,l.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:o}){const t=e,{save:n}=(0,l.toRefs)(t),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),i=(0,l.ref)(!1),a=(0,l.ref)(!1),u=(0,l.ref)("");(0,l.watch)(i,(()=>u.value=n.value.name||""));const m=(0,l.computed)((()=>n.value&&n.value.id===s.Z.id)),c=(0,l.computed)((()=>m.value?s.Z.time:n.value&&n.value.time||0));function f(){o("editName",u.value),i.value=!1}return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["save",{active:(0,l.unref)(m)}])},[de,(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",ye,[(()=>void 0!==(0,l.unref)(n).error&&null!==(0,l.unref)(n).error&&(0,l.unref)(n).error[Symbol.for("==")]?(0,l.unref)(n).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(n).error)()&&(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createBlock)(ce,{key:0,onClick:t[0]||(t[0]=e=>o("export")),class:"button",left:""},{default:(0,l.withCtx)((()=>[be])),_:1})):(0,l.createCommentVNode)("",!0),(()=>void 0!==(0,l.unref)(n).error&&null!==(0,l.unref)(n).error&&(0,l.unref)(n).error[Symbol.for("==")]?(0,l.unref)(n).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(n).error)()&&(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,onClick:t[1]||(t[1]=e=>o("duplicate")),class:"button"},pe)):(0,l.createCommentVNode)("",!0),(()=>void 0!==(0,l.unref)(n).error&&null!==(0,l.unref)(n).error&&(0,l.unref)(n).error[Symbol.for("==")]?(0,l.unref)(n).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(n).error)()&&(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:2,onClick:t[2]||(t[2]=e=>i.value=(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value)()),class:"button"},ge)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(ae,{disabled:(0,l.unref)(m),onClick:t[3]||(t[3]=e=>o("delete")),onConfirmingChanged:t[4]||(t[4]=e=>a.value=e)},{default:(0,l.withCtx)((()=>[Se])),_:1},8,["disabled"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Ne,[(0,l.createElementVNode)("button",{onClick:f,class:"button"},Ve),(0,l.createElementVNode)("button",{onClick:t[5]||(t[5]=e=>i.value=(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value)()),class:"button"},Me)])),(()=>void 0!==(0,l.unref)(n).error&&null!==(0,l.unref)(n).error&&(0,l.unref)(n).error[Symbol.for("==")]?(0,l.unref)(n).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(n).error)()&&(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ce,[(0,l.createElementVNode)("button",{class:"button open",onClick:t[6]||(t[6]=e=>o("open"))},[(0,l.createElementVNode)("h3",null,(0,l.toDisplayString)((0,l.unref)(n).name),1)]),(0,l.createElementVNode)("span",we,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(n).modVersion)):"v"+(0,l.toDisplayString)((0,l.unref)(n).modVersion))(),1),Ze,(0,l.unref)(c)?((0,l.openBlock)(),(0,l.createElementBlock)("div",Be,(()=>"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r).format((0,l.unref)(c)))):"Last played "+(0,l.toDisplayString)((0,l.unref)(r).format((0,l.unref)(c))))(),1)):(0,l.createCommentVNode)("",!0)])):(()=>void 0!==(0,l.unref)(n).error&&null!==(0,l.unref)(n).error&&(0,l.unref)(n).error[Symbol.for("==")]?(0,l.unref)(n).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(n).error)()&&i.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",Pe,[(0,l.createVNode)(ee.Z,{modelValue:u.value,"onUpdate:modelValue":t[7]||(t[7]=e=>u.value=e),class:"editname",onSubmit:f},null,8,["modelValue"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Ee,[(0,l.createTextVNode)((()=>" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(n).id)):" Error: Failed to load save with id "+(0,l.toDisplayString)((0,l.unref)(n).id))(),1),Te,(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(n).error),1)]))],2))}});const Ie=(0,f.Z)(Fe,[["__scopeId","data-v-6a0cf7ac"]]);var De=Ie,Re=t(9980),Oe=t.n(Re);const _e=e=>((0,l.pushScopeId)("data-v-7d95f59e"),e=e(),(0,l.popScopeId)(),e),je=_e((()=>(0,l.createElementVNode)("h2",null,"Saves Manager",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ae={class:"modal-footer"},Ue={class:"field"},qe=_e((()=>(0,l.createElementVNode)("span",{class:"field-title"},"Create Save",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ze={class:"field-buttons"},Le={class:"footer"},Ge=_e((()=>(0,l.createElementVNode)("div",{style:{"flex-grow":"1"}},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var We=(0,l.defineComponent)({setup(e,{expose:o}){const n=(0,l.ref)(!1),r=(0,l.ref)(null);o({open(){n.value=!0}});const i=(0,l.ref)(!1),a=(0,l.ref)("");(0,l.watch)(a,(e=>{e?(0,l.nextTick)((()=>{try{const o=JSON.parse(decodeURIComponent(escape(atob(e))));if((()=>void 0!==typeof o&&null!==typeof o&&(typeof o)[Symbol.for("!==")]?(typeof o)[Symbol.for("!==")]("object"):"object"!==typeof o)())return void(i.value=!0);const t=(0,X.QI)();o.id=t,localStorage.setItem(t,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),a.value="",i.value=!1,k.ZP.saves.push(t)}catch(o){i.value=!0}})):i.value=!1}));let u=t(7634),m=(0,l.ref)(u.keys().reduce(((e,o)=>(e.push({label:o.slice(2,(()=>4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4)()),value:u(o).default}),e)),[]));const c=(0,l.shallowReactive)({});function f(e){if((()=>void 0!==c[e]&&null!==c[e]&&c[e][Symbol.for("==")]?c[e][Symbol.for("==")](null):null==c[e])()){const t=localStorage.getItem(e);if((()=>void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t)())c[e]={error:"Save doesn't exist in localStorage",id:e};else if("dW5kZWZpbmVk"===t)c[e]={error:"Save is undefined",id:e};else try{c[e]={...JSON.parse(decodeURIComponent(escape(atob(t)))),id:e}}catch(o){c[e]={error:o,id:e},console.warn(`SavesManager: Failed to load info about save with id ${e}:\n${o}\n${t}`)}}return c[e]}(0,l.watch)(n,(e=>{e&&Object.keys(c).forEach((e=>(()=>void 0!==c&&null!==c&&c[Symbol.for("delete")]?c[Symbol.for("delete")]("key"):delete c.key)()))}));const d=(0,l.computed)((()=>k.ZP.saves.reduce(((e,o)=>(e[o]=f(o),e)),{})));function y(e){let o;o=s.Z.id===e?(0,X.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(d.value[e]))));const t=document.createElement("textarea");t.value=o,document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(t)}function h(e){s.Z.id===e&&(0,X.a1)();const o={...d.value[e],id:(0,X.QI)()};localStorage.setItem(o.id,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),k.ZP.saves.push(o.id)}function p(e){k.ZP.saves=k.ZP.saves.filter((o=>(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](e):o!==e)())),localStorage.removeItem(e),c[e]=void 0}function v(e){d.value[s.Z.id].time=s.Z.time,(0,X.a1)(),(0,X.uW)(d.value[e]),c[e]=void 0}function g(e){const o=JSON.parse(decodeURIComponent(escape(atob(e))));o.id=(0,X.QI)(),localStorage.setItem(o.id,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),k.ZP.saves.push(o.id)}function S(e,o){const t=d.value[e];t&&(t.name=o,s.Z.id===e?(s.Z.name=o,(0,X.a1)()):(localStorage.setItem(e,btoa(unescape(encodeURIComponent(JSON.stringify(t))))),c[e]=void 0))}return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(b.Z,{modelValue:n.value,"onUpdate:modelValue":o[4]||(o[4]=e=>n.value=e),ref_key:"modal",ref:r},{header:(0,l.withCtx)((()=>[je])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Oe()),{key:0,list:(0,l.unref)(k.ZP).saves,handle:".handle",itemKey:e=>e},{item:(0,l.withCtx)((({element:e})=>[(0,l.createVNode)(De,{save:(0,l.unref)(d)[e],onOpen:o=>v(e),onExport:o=>y(e),onEditName:o=>S(e,o),onDuplicate:o=>h(e),onDelete:o=>p(e)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])])),_:1},8,["list","itemKey"])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",Ae,[(0,l.createVNode)(ee.Z,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),title:"Import Save",placeholder:"Paste your save here!",class:(0,l.normalizeClass)({importingFailed:i.value})},null,8,["modelValue","class"]),(0,l.createElementVNode)("div",Ue,[qe,(0,l.createElementVNode)("div",ze,[(0,l.createElementVNode)("button",{class:"button",onClick:o[1]||(o[1]=(...e)=>(0,l.unref)(X.xM)&&(0,l.unref)(X.xM)(...e))},"New Game"),(()=>void 0!==Object.keys((0,l.unref)(m)).length&&null!==Object.keys((0,l.unref)(m)).length&&Object.keys((0,l.unref)(m)).length[Symbol.for(">")]?Object.keys((0,l.unref)(m)).length[Symbol.for(">")](0):Object.keys((0,l.unref)(m)).length>0)()?((0,l.openBlock)(),(0,l.createBlock)(L.Z,{key:0,options:(0,l.unref)(m),modelValue:void 0,"onUpdate:modelValue":o[2]||(o[2]=e=>g(e)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",Le,[Ge,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:o[3]||(o[3]=e=>n.value=!1)}," Close ")])])])),_:1},8,["modelValue"]))}});const He=(0,f.Z)(We,[["__scopeId","data-v-7d95f59e"]]);var $e=He,Ye=t(4096);const Ke=e=>((0,l.pushScopeId)("data-v-71847eca"),e=e(),(0,l.popScopeId)(),e),Je=["src","alt"],Qe={key:1,class:"title"},Xe=Ke((()=>(0,l.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),eo={class:"discord"},oo={class:"discord-links"},to={key:0},lo=["href"],no=Ke((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ro=Ke((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),io={href:"https://forums.moddingtree.com/",target:"_blank"},ao=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"forum",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),so=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"info",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),uo=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),mo=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"settings",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),co=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),fo=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"settings",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),yo=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"info",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),bo={href:"https://forums.moddingtree.com/",target:"_blank"},ho=Ke((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"forum",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),po={class:"discord"},vo={class:"discord-links"},go={key:0},So=["href"],No=Ke((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ko=Ke((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var Vo=(0,l.defineComponent)({setup(e){const o=(0,l.ref)(null),t=(0,l.ref)(null),n=(0,l.ref)(null),r=(0,l.ref)(null),{useHeader:a,banner:s,title:u,discordName:m,discordLink:c,versionNumber:f}=i;function d(){window.open(c,"mywindow")}return(e,i)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:0,class:"nav"},e.$attrs),[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,src:(0,l.unref)(s),class:"banner",alt:(0,l.unref)(u)},null,8,Je)):((0,l.openBlock)(),(0,l.createElementBlock)("div",Qe,(0,l.toDisplayString)((0,l.unref)(u)),1)),(0,l.createElementVNode)("div",{onClick:i[0]||(i[0]=e=>r.value?.open()),class:"version-container"},[(0,l.createVNode)(W.Z,{display:"Changelog",direction:(0,l.unref)(Ye.A).DOWN,class:"version"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("span",null,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"v"+(0,l.toDisplayString)((0,l.unref)(f)))(),1)])),_:1},8,["direction"])]),Xe,(0,l.createElementVNode)("div",eo,[(0,l.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",oo,[(()=>void 0!==(0,l.unref)(c)&&null!==(0,l.unref)(c)&&(0,l.unref)(c)[Symbol.for("!==")]?(0,l.unref)(c)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(c))()?((0,l.openBlock)(),(0,l.createElementBlock)("li",to,[(0,l.createElementVNode)("a",{href:(0,l.unref)(c),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,lo)])):(0,l.createCommentVNode)("",!0),no,ro])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",io,[(0,l.createVNode)(W.Z,{display:"Forums",direction:(0,l.unref)(Ye.A).DOWN,yoffset:"5px"},{default:(0,l.withCtx)((()=>[ao])),_:1},8,["direction"])])]),(0,l.createElementVNode)("div",{onClick:i[1]||(i[1]=e=>o.value?.open())},[(0,l.createVNode)(W.Z,{display:"Info",direction:(0,l.unref)(Ye.A).DOWN,class:"info"},{default:(0,l.withCtx)((()=>[so])),_:1},8,["direction"])]),(0,l.createElementVNode)("div",{onClick:i[2]||(i[2]=e=>t.value?.open())},[(0,l.createVNode)(W.Z,{display:"Saves",direction:(0,l.unref)(Ye.A).DOWN,xoffset:"-20px"},{default:(0,l.withCtx)((()=>[uo])),_:1},8,["direction"])]),(0,l.createElementVNode)("div",{onClick:i[3]||(i[3]=e=>n.value?.open())},[(0,l.createVNode)(W.Z,{display:"Options",direction:(0,l.unref)(Ye.A).DOWN,xoffset:"-66px"},{default:(0,l.withCtx)((()=>[mo])),_:1},8,["direction"])])],16)):((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:1,class:"overlay-nav"},e.$attrs),[(0,l.createElementVNode)("div",{onClick:i[4]||(i[4]=e=>r.value?.open()),class:"version-container"},[(0,l.createVNode)(W.Z,{display:"Changelog",direction:(0,l.unref)(Ye.A).RIGHT,xoffset:"25%",class:"version"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("span",null,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"v"+(0,l.toDisplayString)((0,l.unref)(f)))(),1)])),_:1},8,["direction"])]),(0,l.createElementVNode)("div",{onClick:i[5]||(i[5]=e=>t.value?.open())},[(0,l.createVNode)(W.Z,{display:"Saves",direction:(0,l.unref)(Ye.A).RIGHT},{default:(0,l.withCtx)((()=>[co])),_:1},8,["direction"])]),(0,l.createElementVNode)("div",{onClick:i[6]||(i[6]=e=>n.value?.open())},[(0,l.createVNode)(W.Z,{display:"Options",direction:(0,l.unref)(Ye.A).RIGHT},{default:(0,l.withCtx)((()=>[fo])),_:1},8,["direction"])]),(0,l.createElementVNode)("div",{onClick:i[7]||(i[7]=e=>o.value?.open())},[(0,l.createVNode)(W.Z,{display:"Info",direction:(0,l.unref)(Ye.A).RIGHT},{default:(0,l.withCtx)((()=>[yo])),_:1},8,["direction"])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",bo,[(0,l.createVNode)(W.Z,{display:"Forums",direction:(0,l.unref)(Ye.A).RIGHT,xoffset:"7px"},{default:(0,l.withCtx)((()=>[ho])),_:1},8,["direction"])])]),(0,l.createElementVNode)("div",po,[(0,l.createElementVNode)("span",{onClick:d,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",vo,[(()=>void 0!==(0,l.unref)(c)&&null!==(0,l.unref)(c)&&(0,l.unref)(c)[Symbol.for("!==")]?(0,l.unref)(c)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(c))()?((0,l.openBlock)(),(0,l.createElementBlock)("li",go,[(0,l.createElementVNode)("a",{href:(0,l.unref)(c),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,So)])):(0,l.createCommentVNode)("",!0),No,ko])])],16)),(0,l.createVNode)(U,{ref_key:"info",ref:o,changelog:r.value},null,8,["changelog"]),(0,l.createVNode)($e,{ref_key:"savesManager",ref:t},null,512),(0,l.createVNode)(Q,{ref_key:"options",ref:n},null,512),(0,l.createVNode)(N,{ref_key:"changelog",ref:r},null,512)],64))}});const xo=(0,f.Z)(Vo,[["__scopeId","data-v-71847eca"]]);var Mo=xo;const Co={class:"inner-tab"},wo={key:1,class:"separator"};var Zo=(0,l.defineComponent)({setup(e){const o=(0,l.toRef)(s.Z,"tabs"),t=(0,l.computed)((()=>Object.keys(a.layers))),n=i.useHeader;function r(e){const{display:o,minimized:t,minWidth:l,name:n,color:r,style:i,classes:a,minimizable:s,nodes:u}=e;return{display:o,minimized:t,minWidth:l,name:n,color:r,style:i,classes:a,minimizable:s,nodes:u}}return(e,i)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["tabs-container",{useHeader:(0,l.unref)(n)}])},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(o),((i,s)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:s,class:"tab",ref_for:!0,ref:`tab-${s}`},[0===s&&(()=>void 0!==(0,l.unref)(n)&&null!==(0,l.unref)(n)&&(0,l.unref)(n)[Symbol.for("!")]?(0,l.unref)(n)[Symbol.for("!")]():!(0,l.unref)(n))()?((0,l.openBlock)(),(0,l.createBlock)(Mo,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Co,[(0,l.unref)(t).includes(i)?((0,l.openBlock)(),(0,l.createBlock)(y,(0,l.mergeProps)({key:0},r((0,l.unref)(a.layers)[i]),{index:s,tab:()=>e.$refs[`tab-${s}`]?.[0]}),null,16,["index","tab"])):((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(i),{key:1,index:s},null,8,["index"]))]),(()=>void 0!==s&&null!==s&&s[Symbol.for("!==")]?s[Symbol.for("!==")]((0,l.unref)(o).length-1):s!==(0,l.unref)(o).length-1)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",wo)):(0,l.createCommentVNode)("",!0)])))),128))],2))}});const Bo=(0,f.Z)(Zo,[["__scopeId","data-v-4fd7697b"]]);var Po=Bo,Eo=t(7573);const To=e=>((0,l.pushScopeId)("data-v-06188cc8"),e=e(),(0,l.popScopeId)(),e),Fo={class:"game-over-modal-header"},Io=["src","alt"],Do={class:"game-over-modal-title"},Ro=To((()=>(0,l.createElementVNode)("h2",null,"Congratulations!",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Oo={key:0},_o=To((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),jo=To((()=>(0,l.createElementVNode)("div",null," Please check the Discord to discuss the game or to check for new content updates! ",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ao=To((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Uo=["href"],qo=To((()=>(0,l.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var zo=(0,l.defineComponent)({setup(e){const{title:o,logo:t,discordName:n,discordLink:r,versionNumber:a,versionTitle:u}=i,m=(0,l.computed)((()=>(0,V.mr)(s.Z.timePlayed))),c=(0,l.computed)((()=>Eo.hasWon.value&&(()=>void 0!==s.Z.keepGoing&&null!==s.Z.keepGoing&&s.Z.keepGoing[Symbol.for("!")]?s.Z.keepGoing[Symbol.for("!")]():!s.Z.keepGoing)())),f=(0,l.toRef)(s.Z,"autosave");function d(){s.Z.keepGoing=!0}function y(){(0,X.uW)((0,X.xM)())}return(e,i)=>((0,l.openBlock)(),(0,l.createBlock)(b.Z,{"model-value":(0,l.unref)(c)},{header:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",Fo,[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,l.unref)(t),alt:(0,l.unref)(o)},null,8,Io)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Do,[Ro,(0,l.createElementVNode)("h4",null,(()=>"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(a))+": "!==void 0&&"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(a))+": "!==null&&("You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(a))+": ")[Symbol.for("+")]?("You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(a))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(u))):"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(a))+": "+(0,l.toDisplayString)((0,l.unref)(u)))(),1)])])])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",Oo,[(0,l.createElementVNode)("div",null,(()=>"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==void 0&&"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==null&&("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")]?("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,l.toDisplayString)((0,l.unref)(m))+" to beat the game.")(),1),_o,jo,Ao,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(r),class:"game-over-modal-discord-link"},[qo,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(n))):" "+(0,l.toDisplayString)((0,l.unref)(n)))(),1)],8,Uo)]),(0,l.createVNode)(G.Z,{title:"Autosave",modelValue:(0,l.unref)(f),"onUpdate:modelValue":i[0]||(i[0]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",{class:"game-over-footer"},[(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Keep Going"),(0,l.createElementVNode)("button",{onClick:y,class:"button danger"},"Play Again")])])),_:1},8,["model-value"]))}});const Lo=(0,f.Z)(zo,[["__scopeId","data-v-06188cc8"]]);var Go=Lo,Wo=t(3032);const Ho=e=>((0,l.pushScopeId)("data-v-5935214c"),e=e(),(0,l.popScopeId)(),e),$o=Ho((()=>(0,l.createElementVNode)("div",{class:"nan-modal-header"},[(0,l.createElementVNode)("h2",null,"NaN value detected!")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Yo={key:0},Ko=Ho((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Jo=["href"],Qo=Ho((()=>(0,l.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Xo=Ho((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),et={class:"nan-footer"};var ot=(0,l.defineComponent)({setup(e){const{discordName:o,discordLink:t}=i,n=(0,l.toRef)(s.Z,"autosave"),r=(0,l.toRef)(Wo.Z,"hasNaN"),a=(0,l.ref)(null),u=(0,l.computed)((()=>Wo.Z.NaNPath.join("."))),m=(0,l.computed)((()=>Wo.Z.NaNPath.slice((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())[0])),c=(0,l.computed)((()=>Wo.Z.NaNReceiver&&m.value?Wo.Z.NaNReceiver[m.value]:null)),f=(0,l.computed)({get(){return 0===s.Z.devSpeed},set(e){s.Z.devSpeed=e?null:0}});function d(){Wo.Z.NaNReceiver&&m.value&&(Wo.Z.NaNReceiver[m.value]=new V.ZP(0),Wo.Z.hasNaN=!1)}function y(){Wo.Z.NaNReceiver&&m.value&&(Wo.Z.NaNReceiver[m.value]=new V.ZP(1),Wo.Z.hasNaN=!1)}function h(){Wo.Z.NaNReceiver&&m.value&&(Wo.Z.NaNReceiver[m.value]=new V.ZP(NaN),Wo.Z.hasNaN=!1)}return(e,s)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(b.Z,(0,l.mergeProps)({modelValue:(0,l.unref)(r),"onUpdate:modelValue":s[4]||(s[4]=e=>(0,l.isRef)(r)?r.value=e:null)},e.$attrs),{header:(0,l.withCtx)((()=>[$o])),body:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",null,[(0,l.createTextVNode)((()=>' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u))!==void 0&&' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u))!==null&&(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u)))[Symbol.for("+")]?(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(u))+'" to NaN')(),1),(0,l.unref)(c)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Yo,(()=>(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(V.WU)((0,l.unref)(c)))!==void 0&&(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(V.WU)((0,l.unref)(c)))!==null&&((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(V.WU)((0,l.unref)(c))))[Symbol.for("+")]?((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(V.WU)((0,l.unref)(c))))[Symbol.for("+")](")"):(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(V.WU)((0,l.unref)(c)))+")")(),1)):(0,l.createCommentVNode)("",!0),(0,l.createTextVNode)((()=>". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled"))[Symbol.for("+")](". Check the console for more details, and consider sharing it with the developers on discord. "):". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(n)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ")(),1)]),Ko,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(t),class:"nan-modal-discord-link"},[Qo,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(o))):" "+(0,l.toDisplayString)((0,l.unref)(o)))(),1)],8,Jo)]),Xo,(0,l.createVNode)(G.Z,{title:"Autosave",modelValue:(0,l.unref)(n),"onUpdate:modelValue":s[0]||(s[0]=e=>(0,l.isRef)(n)?n.value=e:null)},null,8,["modelValue"]),(0,l.unref)(i).enablePausing?((0,l.openBlock)(),(0,l.createBlock)(G.Z,{key:0,title:"Pause game",modelValue:(0,l.unref)(f),"onUpdate:modelValue":s[1]||(s[1]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["modelValue"])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",et,[(0,l.createElementVNode)("button",{onClick:s[2]||(s[2]=e=>a.value?.open()),class:"button"},"Open Saves Manager"),(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Set to 0"),(0,l.createElementVNode)("button",{onClick:y,class:"button"},"Set to 1"),(0,l.unref)(c)&&(0,l.unref)(V.ZP).neq((0,l.unref)(c),0)&&(0,l.unref)(V.ZP).neq((0,l.unref)(c),1)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:s[3]||(s[3]=e=>r.value=!1),class:"button"}," Set to previous ")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:h,class:"button danger"},"Ignore")])])),_:1},16,["modelValue"]),(0,l.createVNode)($e,{ref_key:"savesManager",ref:a},null,512)],64))}});const tt=(0,f.Z)(ot,[["__scopeId","data-v-5935214c"]]);var lt=tt;const nt={key:0,class:"tpsDisplay"},rt={key:0,class:"low"};var it=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>V.ZP.div(Wo.Z.lastTenTicks.length,Wo.Z.lastTenTicks.reduce(((e,o)=>(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](o):e+o)()),0)))),t=(0,l.ref)([]);(0,l.watchEffect)((()=>{t.value.push(Math.round(o.value.toNumber())),(()=>void 0!==t.value.length&&null!==t.value.length&&t.value.length[Symbol.for(">")]?t.value.length[Symbol.for(">")](10):t.value.length>10)()&&(t.value=t.value.slice(1))}));const n=(0,l.computed)((()=>t.value.reduce(((e,o)=>V.ZP.max(e,o)),0))),r=(0,l.computed)((()=>V.ZP.sub(o.value,n.value).gt(1)));return(e,t)=>(()=>void 0!==(0,l.unref)(o).isNan()&&null!==(0,l.unref)(o).isNan()&&(0,l.unref)(o).isNan()[Symbol.for("!")]?(0,l.unref)(o).isNan()[Symbol.for("!")]():!(0,l.unref)(o).isNan())()?((0,l.openBlock)(),(0,l.createElementBlock)("div",nt,[(0,l.createTextVNode)((()=>" TPS: "+(0,l.toDisplayString)((0,l.unref)(V.Ht)((0,l.unref)(o)))!==void 0&&" TPS: "+(0,l.toDisplayString)((0,l.unref)(V.Ht)((0,l.unref)(o)))!==null&&(" TPS: "+(0,l.toDisplayString)((0,l.unref)(V.Ht)((0,l.unref)(o))))[Symbol.for("+")]?(" TPS: "+(0,l.toDisplayString)((0,l.unref)(V.Ht)((0,l.unref)(o))))[Symbol.for("+")](" "):" TPS: "+(0,l.toDisplayString)((0,l.unref)(V.Ht)((0,l.unref)(o)))+" ")(),1),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((()=>[(0,l.unref)(r)?((0,l.openBlock)(),(0,l.createElementBlock)("span",rt,(0,l.toDisplayString)((0,l.unref)(V.Ht)((0,l.unref)(n))),1)):(0,l.createCommentVNode)("",!0)])),_:1})])):(0,l.createCommentVNode)("",!0)}});const at=(0,f.Z)(it,[["__scopeId","data-v-c0663118"]]);var st=at,ut=(0,l.defineComponent)({setup(e){const o=i.useHeader,t=(0,l.computed)((()=>q.Z[k.ZP.theme].variables)),a=(0,l.toRef)(k.ZP,"showTPS"),s=(0,l.computed)((()=>(0,r.MM)((0,n.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[k.t.map(r.sY)]))))));return(e,n)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",{id:"modal-root",style:(0,l.normalizeStyle)((0,l.unref)(t))},null,4),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["app",{useHeader:(0,l.unref)(o)}]),style:(0,l.normalizeStyle)((0,l.unref)(t))},[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createBlock)(Mo,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Po),(0,l.unref)((0,l.unref)(a))?((0,l.openBlock)(),(0,l.createBlock)(st,{key:1})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Go),(0,l.createVNode)(lt),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(s))))],6)],64))}});const mt=(0,f.Z)(ut,[["__scopeId","data-v-f13f28b6"]]);var ct=mt;if(document.title=i.title,""===i.id)throw"Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json";requestAnimationFrame((async()=>{console.log("%cMade in Profectus%c\nLearn more at www.moddingtree.com","font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await(0,X.zD)();const{globalBus:e,startGameLoop:o}=await t(7302),n=window.vue=(0,l.createApp)(ct);e.emit("setupVue",n),n.mount("#app"),o()})),window.projInfo=i},5613:function(e,o,t){"use strict";t.d(o,{ZP:function(){return be},WU:function(){return ue},mr:function(){return ce},Ht:function(){return me}});var l={};t.r(l),t.d(l,{commaFormat:function(){return z},default:function(){return A},exponentialFormat:function(){return q},format:function(){return ee},formatSmall:function(){return ne},formatTime:function(){return te},formatWhole:function(){return oe},invertOOM:function(){return re},regularFormat:function(){return L},toPlaces:function(){return le}});var n=t(2482);t(1703);let r,i,a,s,u,m,c,f,d,y,b;const h=17,p=9e15,v=Math.log10(9e15),g=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](9e15):1/9e15)(),S=308,N=(()=>324[Symbol.for("minus")]?324[Symbol.for("minus")]():-324)(),k=5,V=!0,x=!1,M=function(){const e=[];for(let t=(()=>void 0!==N&&null!==N&&N[Symbol.for("+")]?N[Symbol.for("+")](1):N+1)();(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](S):t<=S)();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("postfix-increment")]?t[Symbol.for("postfix-increment")]():t++)())e.push(Number((()=>"1e"[Symbol.for("+")]?"1e"[Symbol.for("+")](t):"1e"+t)()));const o=323;return function(t){return e[(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](o):t+o)()]}}(),C=[2,Math.E,3,4,5,6,7,8,9,10],w=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],Z=[[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.9194161097107025[Symbol.for("minus")]?.9194161097107025[Symbol.for("minus")]():-.9194161097107025)(),(()=>.8335625019330468[Symbol.for("minus")]?.8335625019330468[Symbol.for("minus")]():-.8335625019330468)(),(()=>.7425599821143978[Symbol.for("minus")]?.7425599821143978[Symbol.for("minus")]():-.7425599821143978)(),(()=>.6466611521029437[Symbol.for("minus")]?.6466611521029437[Symbol.for("minus")]():-.6466611521029437)(),(()=>.5462617907227869[Symbol.for("minus")]?.5462617907227869[Symbol.for("minus")]():-.5462617907227869)(),(()=>.4419033816638769[Symbol.for("minus")]?.4419033816638769[Symbol.for("minus")]():-.4419033816638769)(),(()=>.3342645487554494[Symbol.for("minus")]?.3342645487554494[Symbol.for("minus")]():-.3342645487554494)(),(()=>.224140440909962[Symbol.for("minus")]?.224140440909962[Symbol.for("minus")]():-.224140440909962)(),(()=>.11241087890006762[Symbol.for("minus")]?.11241087890006762[Symbol.for("minus")]():-.11241087890006762)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.90603157029014[Symbol.for("minus")]?.90603157029014[Symbol.for("minus")]():-.90603157029014)(),(()=>.80786507256596[Symbol.for("minus")]?.80786507256596[Symbol.for("minus")]():-.80786507256596)(),(()=>.7064666939634[Symbol.for("minus")]?.7064666939634[Symbol.for("minus")]():-.7064666939634)(),(()=>.60294836853664[Symbol.for("minus")]?.60294836853664[Symbol.for("minus")]():-.60294836853664)(),(()=>.49849837513117[Symbol.for("minus")]?.49849837513117[Symbol.for("minus")]():-.49849837513117)(),(()=>.39430303318768[Symbol.for("minus")]?.39430303318768[Symbol.for("minus")]():-.39430303318768)(),(()=>.29147201034755[Symbol.for("minus")]?.29147201034755[Symbol.for("minus")]():-.29147201034755)(),(()=>.19097820800866[Symbol.for("minus")]?.19097820800866[Symbol.for("minus")]():-.19097820800866)(),(()=>.09361896280296[Symbol.for("minus")]?.09361896280296[Symbol.for("minus")]():-.09361896280296)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.9021579584316141[Symbol.for("minus")]?.9021579584316141[Symbol.for("minus")]():-.9021579584316141)(),(()=>.8005762598234203[Symbol.for("minus")]?.8005762598234203[Symbol.for("minus")]():-.8005762598234203)(),(()=>.6964780623319391[Symbol.for("minus")]?.6964780623319391[Symbol.for("minus")]():-.6964780623319391)(),(()=>.5911906810998454[Symbol.for("minus")]?.5911906810998454[Symbol.for("minus")]():-.5911906810998454)(),(()=>.486050182576545[Symbol.for("minus")]?.486050182576545[Symbol.for("minus")]():-.486050182576545)(),(()=>.3823089430815083[Symbol.for("minus")]?.3823089430815083[Symbol.for("minus")]():-.3823089430815083)(),(()=>.28106046722897615[Symbol.for("minus")]?.28106046722897615[Symbol.for("minus")]():-.28106046722897615)(),(()=>.1831906535795894[Symbol.for("minus")]?.1831906535795894[Symbol.for("minus")]():-.1831906535795894)(),(()=>.08935809204418144[Symbol.for("minus")]?.08935809204418144[Symbol.for("minus")]():-.08935809204418144)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8917227442365535[Symbol.for("minus")]?.8917227442365535[Symbol.for("minus")]():-.8917227442365535)(),(()=>.781258746326964[Symbol.for("minus")]?.781258746326964[Symbol.for("minus")]():-.781258746326964)(),(()=>.6705130326902455[Symbol.for("minus")]?.6705130326902455[Symbol.for("minus")]():-.6705130326902455)(),(()=>.5612813129406509[Symbol.for("minus")]?.5612813129406509[Symbol.for("minus")]():-.5612813129406509)(),(()=>.4551067709033134[Symbol.for("minus")]?.4551067709033134[Symbol.for("minus")]():-.4551067709033134)(),(()=>.35319256652135966[Symbol.for("minus")]?.35319256652135966[Symbol.for("minus")]():-.35319256652135966)(),(()=>.2563741554088552[Symbol.for("minus")]?.2563741554088552[Symbol.for("minus")]():-.2563741554088552)(),(()=>.1651412821106526[Symbol.for("minus")]?.1651412821106526[Symbol.for("minus")]():-.1651412821106526)(),(()=>.0796919581982668[Symbol.for("minus")]?.0796919581982668[Symbol.for("minus")]():-.0796919581982668)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8843387974366064[Symbol.for("minus")]?.8843387974366064[Symbol.for("minus")]():-.8843387974366064)(),(()=>.7678744063886243[Symbol.for("minus")]?.7678744063886243[Symbol.for("minus")]():-.7678744063886243)(),(()=>.6529563724510552[Symbol.for("minus")]?.6529563724510552[Symbol.for("minus")]():-.6529563724510552)(),(()=>.5415870994657841[Symbol.for("minus")]?.5415870994657841[Symbol.for("minus")]():-.5415870994657841)(),(()=>.4352842206588936[Symbol.for("minus")]?.4352842206588936[Symbol.for("minus")]():-.4352842206588936)(),(()=>.33504449124791424[Symbol.for("minus")]?.33504449124791424[Symbol.for("minus")]():-.33504449124791424)(),(()=>.24138853420685147[Symbol.for("minus")]?.24138853420685147[Symbol.for("minus")]():-.24138853420685147)(),(()=>.15445285440944467[Symbol.for("minus")]?.15445285440944467[Symbol.for("minus")]():-.15445285440944467)(),(()=>.07409659641336663[Symbol.for("minus")]?.07409659641336663[Symbol.for("minus")]():-.07409659641336663)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8786709358426346[Symbol.for("minus")]?.8786709358426346[Symbol.for("minus")]():-.8786709358426346)(),(()=>.7577735191184886[Symbol.for("minus")]?.7577735191184886[Symbol.for("minus")]():-.7577735191184886)(),(()=>.6399546189952064[Symbol.for("minus")]?.6399546189952064[Symbol.for("minus")]():-.6399546189952064)(),(()=>.527284921869926[Symbol.for("minus")]?.527284921869926[Symbol.for("minus")]():-.527284921869926)(),(()=>.4211627631006314[Symbol.for("minus")]?.4211627631006314[Symbol.for("minus")]():-.4211627631006314)(),(()=>.3223479611761232[Symbol.for("minus")]?.3223479611761232[Symbol.for("minus")]():-.3223479611761232)(),(()=>.23107655627789858[Symbol.for("minus")]?.23107655627789858[Symbol.for("minus")]():-.23107655627789858)(),(()=>.1472057700818259[Symbol.for("minus")]?.1472057700818259[Symbol.for("minus")]():-.1472057700818259)(),(()=>.07035171210706326[Symbol.for("minus")]?.07035171210706326[Symbol.for("minus")]():-.07035171210706326)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8740862815291583[Symbol.for("minus")]?.8740862815291583[Symbol.for("minus")]():-.8740862815291583)(),(()=>.7497032990976209[Symbol.for("minus")]?.7497032990976209[Symbol.for("minus")]():-.7497032990976209)(),(()=>.6297119746181752[Symbol.for("minus")]?.6297119746181752[Symbol.for("minus")]():-.6297119746181752)(),(()=>.5161838335958787[Symbol.for("minus")]?.5161838335958787[Symbol.for("minus")]():-.5161838335958787)(),(()=>.41036238255751956[Symbol.for("minus")]?.41036238255751956[Symbol.for("minus")]():-.41036238255751956)(),(()=>.31277212146489963[Symbol.for("minus")]?.31277212146489963[Symbol.for("minus")]():-.31277212146489963)(),(()=>.2233976621705518[Symbol.for("minus")]?.2233976621705518[Symbol.for("minus")]():-.2233976621705518)(),(()=>.1418697367979619[Symbol.for("minus")]?.1418697367979619[Symbol.for("minus")]():-.1418697367979619)(),(()=>.06762117662323441[Symbol.for("minus")]?.06762117662323441[Symbol.for("minus")]():-.06762117662323441)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8702632331800649[Symbol.for("minus")]?.8702632331800649[Symbol.for("minus")]():-.8702632331800649)(),(()=>.7430366914122081[Symbol.for("minus")]?.7430366914122081[Symbol.for("minus")]():-.7430366914122081)(),(()=>.6213373075161548[Symbol.for("minus")]?.6213373075161548[Symbol.for("minus")]():-.6213373075161548)(),(()=>.5072025698095242[Symbol.for("minus")]?.5072025698095242[Symbol.for("minus")]():-.5072025698095242)(),(()=>.40171437727184167[Symbol.for("minus")]?.40171437727184167[Symbol.for("minus")]():-.40171437727184167)(),(()=>.30517930701410456[Symbol.for("minus")]?.30517930701410456[Symbol.for("minus")]():-.30517930701410456)(),(()=>.21736343968190863[Symbol.for("minus")]?.21736343968190863[Symbol.for("minus")]():-.21736343968190863)(),(()=>.137710238299109[Symbol.for("minus")]?.137710238299109[Symbol.for("minus")]():-.137710238299109)(),(()=>.06550774483471955[Symbol.for("minus")]?.06550774483471955[Symbol.for("minus")]():-.06550774483471955)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8670016295947213[Symbol.for("minus")]?.8670016295947213[Symbol.for("minus")]():-.8670016295947213)(),(()=>.7373984232432306[Symbol.for("minus")]?.7373984232432306[Symbol.for("minus")]():-.7373984232432306)(),(()=>.6143173985094293[Symbol.for("minus")]?.6143173985094293[Symbol.for("minus")]():-.6143173985094293)(),(()=>.49973884395492807[Symbol.for("minus")]?.49973884395492807[Symbol.for("minus")]():-.49973884395492807)(),(()=>.394584953527678[Symbol.for("minus")]?.394584953527678[Symbol.for("minus")]():-.394584953527678)(),(()=>.2989649949848695[Symbol.for("minus")]?.2989649949848695[Symbol.for("minus")]():-.2989649949848695)(),(()=>.21245647317021688[Symbol.for("minus")]?.21245647317021688[Symbol.for("minus")]():-.21245647317021688)(),(()=>.13434688362382652[Symbol.for("minus")]?.13434688362382652[Symbol.for("minus")]():-.13434688362382652)(),(()=>.0638072667348083[Symbol.for("minus")]?.0638072667348083[Symbol.for("minus")]():-.0638072667348083)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8641642839543857[Symbol.for("minus")]?.8641642839543857[Symbol.for("minus")]():-.8641642839543857)(),(()=>.732534623168535[Symbol.for("minus")]?.732534623168535[Symbol.for("minus")]():-.732534623168535)(),(()=>.6083127477059322[Symbol.for("minus")]?.6083127477059322[Symbol.for("minus")]():-.6083127477059322)(),(()=>.4934049257184696[Symbol.for("minus")]?.4934049257184696[Symbol.for("minus")]():-.4934049257184696)(),(()=>.3885773075899922[Symbol.for("minus")]?.3885773075899922[Symbol.for("minus")]():-.3885773075899922)(),(()=>.29376029055315767[Symbol.for("minus")]?.29376029055315767[Symbol.for("minus")]():-.29376029055315767)(),(()=>.2083678561173622[Symbol.for("minus")]?.2083678561173622[Symbol.for("minus")]():-.2083678561173622)(),(()=>.13155653399373268[Symbol.for("minus")]?.13155653399373268[Symbol.for("minus")]():-.13155653399373268)(),(()=>.062401588652553186[Symbol.for("minus")]?.062401588652553186[Symbol.for("minus")]():-.062401588652553186)(),0]],B=function(e){return _.fromValue_noAlloc(e)},P=function(e,o,t){return _.fromComponents(e,o,t)},E=function(e,o,t){return _.fromComponents_noNormalize(e,o,t)},T=function(e,o){const t=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)(),l=Math.ceil(Math.log10(Math.abs(e))),n=(()=>void 0!==Math.round(e*Math.pow(10,t-l))&&null!==Math.round(e*Math.pow(10,t-l))&&Math.round(e*Math.pow(10,t-l))[Symbol.for("*")]?Math.round(e*Math.pow(10,t-l))[Symbol.for("*")](Math.pow(10,l-t)):Math.round(e*Math.pow(10,t-l))*Math.pow(10,l-t))();return parseFloat(n.toFixed(Math.max((()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](l):t-l)(),0)))},F=function(e){return(()=>void 0!==Math.sign(e)&&null!==Math.sign(e)&&Math.sign(e)[Symbol.for("*")]?Math.sign(e)[Symbol.for("*")](Math.log10(Math.abs(e))):Math.sign(e)*Math.log10(Math.abs(e)))()},I=function(e){if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))())return e;if((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](-50):e<-50)())return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let o=1;while((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10)())o=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](e):o*e)(),(()=>{void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e})();e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)();let t=.9189385332046727;t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")]((e+.5)*Math.log(e)):t+(e+.5)*Math.log(e))(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();const l=(()=>void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e)();let n=e;return t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(12*n)):t+1/(12*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(360*n)):t+1/(360*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1260*n)):t+1/(1260*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1680*n)):t+1/(1680*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1188*n)):t+1/(1188*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](691/(360360*n)):t+691/(360360*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](7/(1092*n)):t+7/(1092*n))(),n=(()=>void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](l):n*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](3617/(122400*n)):t+3617/(122400*n))(),(()=>void 0!==Math.exp(t)&&null!==Math.exp(t)&&Math.exp(t)[Symbol.for("/")]?Math.exp(t)[Symbol.for("/")](o):Math.exp(t)/o)()},D=.5671432904097838,R=function(e,o=1e-10){let t,l;if((()=>void 0!==Number.isFinite(e)&&null!==Number.isFinite(e)&&Number.isFinite(e)[Symbol.for("!")]?Number.isFinite(e)[Symbol.for("!")]():!Number.isFinite(e))())return e;if(0===e)return e;if(1===e)return D;t=(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10)()?0:(()=>void 0!==Math.log(e)&&null!==Math.log(e)&&Math.log(e)[Symbol.for("-")]?Math.log(e)[Symbol.for("-")](Math.log(Math.log(e))):Math.log(e)-Math.log(Math.log(e)))();for(let n=0;(()=>void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](100):n<100)();(()=>void 0!==n&&null!==n&&"object"===typeof n&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n)()){if(l=(()=>e*Math.exp(-t)+t*t!==void 0&&e*Math.exp(-t)+t*t!==null&&(e*Math.exp(-t)+t*t)[Symbol.for("/")]?(e*Math.exp(-t)+t*t)[Symbol.for("/")](t+1):(e*Math.exp(-t)+t*t)/(t+1))(),(()=>void 0!==Math.abs(l-t)&&null!==Math.abs(l-t)&&Math.abs(l-t)[Symbol.for("<")]?Math.abs(l-t)[Symbol.for("<")](o*Math.abs(l)):Math.abs(l-t)void 0!==Number.isFinite(e.mag)&&null!==Number.isFinite(e.mag)&&Number.isFinite(e.mag)[Symbol.for("!")]?Number.isFinite(e.mag)[Symbol.for("!")]():!Number.isFinite(e.mag))())return e;if(e===_.dZero)return e;if(e===_.dOne)return B(D);_.abs(e);t=_.ln(e);for(let i=0;(()=>void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](100):i<100)();(()=>void 0!==i&&null!==i&&"object"===typeof i&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i)()){if(l=_.exp((()=>void 0!==t&&null!==t&&t[Symbol.for("minus")]?t[Symbol.for("minus")]():-t)()),n=t.sub(e.mul(l)),r=t.sub(n.div(t.add(1).sub(t.add(2).mul(n).div(_.mul(2,t).add(2))))),_.abs(r.sub(t)).lt(_.abs(r).mul(o)))return r;t=r}throw Error(`Iteration failed to converge: ${e.toString()}`)}r=Symbol.for("+"),i=Symbol.for("-"),a=Symbol.for("*"),s=Symbol.for("/"),u=Symbol.for("minus"),m=Symbol.for("=="),c=Symbol.for(">"),f=Symbol.for("<"),d=Symbol.for(">="),y=Symbol.for("<="),b=Symbol.for("!=");class _{constructor(e){(0,n.Z)(this,"sign",Number.NaN),(0,n.Z)(this,"mag",Number.NaN),(0,n.Z)(this,"layer",Number.NaN),e instanceof _||(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&"object"===typeof e&&(()=>"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e)()&&(()=>"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e)()&&(()=>"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](e):"layer"in e)()?this.fromDecimal(e):"number"===typeof e?this.fromNumber(e):"string"===typeof e?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0)}get m(){if(0===this.sign)return 0;if(0===this.layer){const e=Math.floor(Math.log10(this.mag));let o;return o=5e-324===this.mag?5:(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("/")]?this.mag[Symbol.for("/")](M(e)):this.mag/M(e))(),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](o):this.sign*o)()}if(1===this.layer){const e=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("-")]?this.mag[Symbol.for("-")](Math.floor(this.mag)):this.mag-Math.floor(this.mag))();return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.pow(10,e)):this.sign*Math.pow(10,e))()}return this.sign}set m(e){(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](2):this.layer<=2)()?this.fromMantissaExponent(e,this.e):(this.sign=Math.sign(e),0===this.sign&&(this.layer,this.exponent))}get e(){return 0===this.sign?0:0===this.layer?Math.floor(Math.log10(this.mag)):1===this.layer?Math.floor(this.mag):2===this.layer?Math.floor((()=>void 0!==Math.sign(this.mag)&&null!==Math.sign(this.mag)&&Math.sign(this.mag)[Symbol.for("*")]?Math.sign(this.mag)[Symbol.for("*")](Math.pow(10,Math.abs(this.mag))):Math.sign(this.mag)*Math.pow(10,Math.abs(this.mag)))()):(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("*")]?this.mag[Symbol.for("*")](Number.POSITIVE_INFINITY):this.mag*Number.POSITIVE_INFINITY)()}set e(e){this.fromMantissaExponent(this.m,e)}get s(){return this.sign}set s(e){0===e?(this.sign=0,this.layer=0,this.mag=0):this.sign=e}get mantissa(){return this.m}set mantissa(e){this.m=e}get exponent(){return this.e}set exponent(e){this.e=e}static fromComponents(e,o,t){return(new _).fromComponents(e,o,t)}static fromComponents_noNormalize(e,o,t){return(new _).fromComponents_noNormalize(e,o,t)}static fromMantissaExponent(e,o){return(new _).fromMantissaExponent(e,o)}static fromMantissaExponent_noNormalize(e,o){return(new _).fromMantissaExponent_noNormalize(e,o)}static fromDecimal(e){return(new _).fromDecimal(e)}static fromNumber(e){return(new _).fromNumber(e)}static fromString(e){return(new _).fromString(e)}static fromValue(e){return(new _).fromValue(e)}static fromValue_noAlloc(e){return e instanceof _?e:new _(e)}static abs(e){return B(e).abs()}static neg(e){return B(e).neg()}static negate(e){return B(e).neg()}static negated(e){return B(e).neg()}static sign(e){return B(e).sign}static sgn(e){return B(e).sign}static round(e){return B(e).round()}static floor(e){return B(e).floor()}static ceil(e){return B(e).ceil()}static trunc(e){return B(e).trunc()}static add(e,o){return B(e).add(o)}static plus(e,o){return B(e).add(o)}static sub(e,o){return B(e).sub(o)}static subtract(e,o){return B(e).sub(o)}static minus(e,o){return B(e).sub(o)}static mul(e,o){return B(e).mul(o)}static multiply(e,o){return B(e).mul(o)}static times(e,o){return B(e).mul(o)}static div(e,o){return B(e).div(o)}static divide(e,o){return B(e).div(o)}static recip(e){return B(e).recip()}static reciprocal(e){return B(e).recip()}static reciprocate(e){return B(e).reciprocate()}static cmp(e,o){return B(e).cmp(o)}static cmpabs(e,o){return B(e).cmpabs(o)}static compare(e,o){return B(e).cmp(o)}static isNaN(e){return e=B(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag)}static isFinite(e){return e=B(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}static eq(e,o){return B(e).eq(o)}static equals(e,o){return B(e).eq(o)}static neq(e,o){return B(e).neq(o)}static notEquals(e,o){return B(e).notEquals(o)}static lt(e,o){return B(e).lt(o)}static lte(e,o){return B(e).lte(o)}static gt(e,o){return B(e).gt(o)}static gte(e,o){return B(e).gte(o)}static max(e,o){return B(e).max(o)}static min(e,o){return B(e).min(o)}static minabs(e,o){return B(e).minabs(o)}static maxabs(e,o){return B(e).maxabs(o)}static clamp(e,o,t){return B(e).clamp(o,t)}static clampMin(e,o){return B(e).clampMin(o)}static clampMax(e,o){return B(e).clampMax(o)}static cmp_tolerance(e,o,t){return B(e).cmp_tolerance(o,t)}static compare_tolerance(e,o,t){return B(e).cmp_tolerance(o,t)}static eq_tolerance(e,o,t){return B(e).eq_tolerance(o,t)}static equals_tolerance(e,o,t){return B(e).eq_tolerance(o,t)}static neq_tolerance(e,o,t){return B(e).neq_tolerance(o,t)}static notEquals_tolerance(e,o,t){return B(e).notEquals_tolerance(o,t)}static lt_tolerance(e,o,t){return B(e).lt_tolerance(o,t)}static lte_tolerance(e,o,t){return B(e).lte_tolerance(o,t)}static gt_tolerance(e,o,t){return B(e).gt_tolerance(o,t)}static gte_tolerance(e,o,t){return B(e).gte_tolerance(o,t)}static pLog10(e){return B(e).pLog10()}static absLog10(e){return B(e).absLog10()}static log10(e){return B(e).log10()}static log(e,o){return B(e).log(o)}static log2(e){return B(e).log2()}static ln(e){return B(e).ln()}static logarithm(e,o){return B(e).logarithm(o)}static pow(e,o){return B(e).pow(o)}static pow10(e){return B(e).pow10()}static root(e,o){return B(e).root(o)}static factorial(e,o){return B(e).factorial()}static gamma(e,o){return B(e).gamma()}static lngamma(e,o){return B(e).lngamma()}static exp(e){return B(e).exp()}static sqr(e){return B(e).sqr()}static sqrt(e){return B(e).sqrt()}static cube(e){return B(e).cube()}static cbrt(e){return B(e).cbrt()}static tetrate(e,o=2,t=E(1,0,1)){return B(e).tetrate(o,t)}static iteratedexp(e,o=2,t=E(1,0,1)){return B(e).iteratedexp(o,t)}static iteratedlog(e,o=10,t=1){return B(e).iteratedlog(o,t)}static layeradd10(e,o){return B(e).layeradd10(o)}static layeradd(e,o,t=10){return B(e).layeradd(o,t)}static slog(e,o=10){return B(e).slog(o)}static lambertw(e){return B(e).lambertw()}static ssqrt(e){return B(e).ssqrt()}static pentate(e,o=2,t=E(1,0,1)){return B(e).pentate(o,t)}static affordGeometricSeries(e,o,t,l){return this.affordGeometricSeries_core(B(e),B(o),B(t),l)}static sumGeometricSeries(e,o,t,l){return this.sumGeometricSeries_core(e,B(o),B(t),l)}static affordArithmeticSeries(e,o,t,l){return this.affordArithmeticSeries_core(B(e),B(o),B(t),B(l))}static sumArithmeticSeries(e,o,t,l){return this.sumArithmeticSeries_core(B(e),B(o),B(t),B(l))}static efficiencyOfPurchase(e,o,t){return this.efficiencyOfPurchase_core(B(e),B(o),B(t))}static randomDecimalForTesting(e){if((()=>20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1)())return E(0,0,0);const o=(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.5):Math.random()>.5)()?1:(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)();if((()=>20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1)())return E(o,0,1);const t=Math.floor((()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](e+1):Math.random()*(e+1))());let l=0===t?(()=>616*Math.random()!==void 0&&616*Math.random()!==null&&(616*Math.random())[Symbol.for("-")]?(616*Math.random())[Symbol.for("-")](308):616*Math.random()-308)():(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](16):16*Math.random())();(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9)()&&(l=Math.trunc(l));let n=Math.pow(10,l);return(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9)()&&(n=Math.trunc(n)),P(o,t,n)}static affordGeometricSeries_core(e,o,t,l){const n=o.mul(t.pow(l));return _.floor(e.div(n).mul(t.sub(1)).add(1).log10().div(t.log10()))}static sumGeometricSeries_core(e,o,t,l){return o.mul(t.pow(l)).mul(_.sub(1,t.pow(e))).div(_.sub(1,t))}static affordArithmeticSeries_core(e,o,t,l){const n=o.add(l.mul(t)),r=n.sub(t.div(2)),i=r.pow(2);return r.neg().add(i.add(t.mul(e).mul(2)).sqrt()).div(t).floor()}static sumArithmeticSeries_core(e,o,t,l){const n=o.add(l.mul(t));return e.div(2).mul(n.mul(2).plus(e.sub(1).mul(t)))}static efficiencyOfPurchase_core(e,o,t){return e.div(o).add(e.div(t))}[r](e){return this.add(e)}[i](e){return this.sub(e)}[a](e){return this.times(e)}[s](e){return this.div(e)}[u](){return this.neg()}[m](e){return this.eq(e)}[c](e){return this.gt(e)}[f](e){return this.lt(e)}[d](e){return this.gte(e)}[y](e){return this.lte(e)}[b](e){return this.neq(e)}normalize(){if(0===this.sign||0===this.mag&&0===this.layer)return this.sign=0,this.mag=0,this.layer=0,this;if(0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()&&(this.mag=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)(),this.sign=(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)()),0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](g):this.magvoid 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),this.mag=Math.log10(this.mag),this;let e=Math.abs(this.mag),o=Math.sign(this.mag);if((()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](p):e>=p)())return this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.log10(e)):o*Math.log10(e))(),this;while((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](v):evoid 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)())this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.pow(10,e)):o*Math.pow(10,e))(),e=Math.abs(this.mag),o=Math.sign(this.mag));return 0===this.layer&&((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?(this.mag=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)(),this.sign=(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)()):0===this.mag&&(this.sign=0)),this}fromComponents(e,o,t){return this.sign=e,this.layer=o,this.mag=t,this.normalize(),this}fromComponents_noNormalize(e,o,t){return this.sign=e,this.layer=o,this.mag=t,this}fromMantissaExponent(e,o){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](Math.log10(e)):o+Math.log10(e))(),this.normalize(),this}fromMantissaExponent_noNormalize(e,o){return this.fromMantissaExponent(e,o),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){V?e=e.replace(",",""):x&&(e=e.replace(",","."));const o=e.split("^^^");if(2===o.length){const e=parseFloat(o[0]),t=parseFloat(o[1]),l=o[1].split(";");let n=1;if(2===l.length&&(n=parseFloat(l[1]),(()=>void 0!==isFinite(n)&&null!==isFinite(n)&&isFinite(n)[Symbol.for("!")]?isFinite(n)[Symbol.for("!")]():!isFinite(n))()&&(n=1)),isFinite(e)&&isFinite(t)){const o=_.pentate(e,t,n);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}const t=e.split("^^");if(2===t.length){const e=parseFloat(t[0]),o=parseFloat(t[1]),l=t[1].split(";");let n=1;if(2===l.length&&(n=parseFloat(l[1]),(()=>void 0!==isFinite(n)&&null!==isFinite(n)&&isFinite(n)[Symbol.for("!")]?isFinite(n)[Symbol.for("!")]():!isFinite(n))()&&(n=1)),isFinite(e)&&isFinite(o)){const t=_.tetrate(e,o,n);return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this}}const l=e.split("^");if(2===l.length){const e=parseFloat(l[0]),o=parseFloat(l[1]);if(isFinite(e)&&isFinite(o)){const t=_.pow(e,o);return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this}}let n,r;e=e.trim().toLowerCase();let i=e.split("pt");if(2===i.length){n=10,r=parseFloat(i[0]),i[1]=i[1].replace("(",""),i[1]=i[1].replace(")","");let e=parseFloat(i[1]);if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))()&&(e=1),isFinite(n)&&isFinite(r)){const o=_.tetrate(n,r,e);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}if(i=e.split("p"),2===i.length){n=10,r=parseFloat(i[0]),i[1]=i[1].replace("(",""),i[1]=i[1].replace(")","");let e=parseFloat(i[1]);if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))()&&(e=1),isFinite(n)&&isFinite(r)){const o=_.tetrate(n,r,e);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}const a=e.split("e"),s=(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](1):a.length-1)();if(0===s){const o=parseFloat(e);if(isFinite(o))return this.fromNumber(o)}else if(1===s){const o=parseFloat(e);if(isFinite(o)&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](0):0!==o)())return this.fromNumber(o)}const u=e.split("e^");if(2===u.length){this.sign=1,(()=>void 0!==u[0].charAt(0)&&null!==u[0].charAt(0)&&u[0].charAt(0)[Symbol.for("==")]?u[0].charAt(0)[Symbol.for("==")]("-"):"-"==u[0].charAt(0))()&&(this.sign=(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());let e="";for(let o=0;(()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](u[1].length):ovoid 0!==o&&null!==o&&"object"===typeof o&&o[Symbol.for("prefix-increment")]?o[Symbol.for("prefix-increment")]():++o)()){const t=u[1].charCodeAt(o);if(!((()=>void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](43):t>=43)()&&(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](57):t<=57)()||101===t))return this.layer=parseFloat(e),this.mag=parseFloat(u[1].substr((()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)())),this.normalize(),this;e=(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](u[1].charAt(o)):e+u[1].charAt(o))()}}if((()=>void 0!==s&&null!==s&&s[Symbol.for("<")]?s[Symbol.for("<")](1):s<1)())return this.sign=0,this.layer=0,this.mag=0,this;const m=parseFloat(a[0]);if(0===m)return this.sign=0,this.layer=0,this.mag=0,this;let c=parseFloat(a[(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](1):a.length-1)()]);if((()=>void 0!==s&&null!==s&&s[Symbol.for(">=")]?s[Symbol.for(">=")](2):s>=2)()){const e=parseFloat(a[(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](2):a.length-2)()]);isFinite(e)&&(c=(()=>void 0!==c&&null!==c&&c[Symbol.for("*")]?c[Symbol.for("*")](Math.sign(e)):c*Math.sign(e))(),c=(()=>void 0!==c&&null!==c&&c[Symbol.for("+")]?c[Symbol.for("+")](F(e)):c+F(e))())}if((()=>void 0!==isFinite(m)&&null!==isFinite(m)&&isFinite(m)[Symbol.for("!")]?isFinite(m)[Symbol.for("!")]():!isFinite(m))())this.sign="-"===a[0]?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():1,this.layer=s,this.mag=c;else if(1===s)this.sign=Math.sign(m),this.layer=1,this.mag=(()=>void 0!==c&&null!==c&&c[Symbol.for("+")]?c[Symbol.for("+")](Math.log10(Math.abs(m))):c+Math.log10(Math.abs(m)))();else{if(this.sign=Math.sign(m),this.layer=s,2===s){const e=_.mul(P(1,2,c),B(m));return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}this.mag=c}return this.normalize(),this}fromValue(e){return e instanceof _||(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&"object"===typeof e&&(()=>"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e)()&&(()=>"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e)()&&(()=>"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](e):"layer"in e)()?this.fromDecimal(e):"number"===typeof e?this.fromNumber(e):"string"===typeof e?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return(()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))()?Number.NaN:0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)():1===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.pow(10,this.mag)):this.sign*Math.pow(10,this.mag))():(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](0):this.mag>0)()?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for(">")]?this.sign[Symbol.for(">")](0):this.sign>0)()?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:0===this.m?0:T(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:0===this.mag?0:T(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?1===this.sign?"Infinity":"-Infinity":0===this.layer?(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](1e21):this.mag<1e21)()&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](1e-7):this.mag>1e-7)()||0===this.mag?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toString():(()=>this.m+"e"!==void 0&&this.m+"e"!==null&&(this.m+"e")[Symbol.for("+")]?(this.m+"e")[Symbol.for("+")](this.e):this.m+"e"+this.e)():1===this.layer?(()=>this.m+"e"!==void 0&&this.m+"e"!==null&&(this.m+"e")[Symbol.for("+")]?(this.m+"e")[Symbol.for("+")](this.e):this.m+"e"+this.e)():(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](k):this.layer<=k)()?(()=>(-1===this.sign?"-":"")+"e".repeat(this.layer)!==void 0&&(-1===this.sign?"-":"")+"e".repeat(this.layer)!==null&&((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")]?((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")](this.mag):(-1===this.sign?"-":"")+"e".repeat(this.layer)+this.mag)():(()=>(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==void 0&&(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==null&&((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")]?((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")](this.mag):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+this.mag)()}toExponential(e){return 0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return 0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return(()=>void 0!==this.e&&null!==this.e&&this.e[Symbol.for("<=")]?this.e[Symbol.for("<=")](-7):this.e<=-7)()?this.toExponential((()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)()):(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](this.e):e>this.e)()?this.toFixed((()=>e-this.exponent!==void 0&&e-this.exponent!==null&&(e-this.exponent)[Symbol.for("-")]?(e-this.exponent)[Symbol.for("-")](1):e-this.exponent-1)()):this.toExponential((()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)())}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return 0===this.layer?(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](1e21):this.mag<1e21)()&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](1e-7):this.mag>1e-7)()||0===this.mag?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toFixed(e):(()=>T(this.m,e)+"e"!==void 0&&T(this.m,e)+"e"!==null&&(T(this.m,e)+"e")[Symbol.for("+")]?(T(this.m,e)+"e")[Symbol.for("+")](T(this.e,e)):T(this.m,e)+"e"+T(this.e,e))():1===this.layer?(()=>T(this.m,e)+"e"!==void 0&&T(this.m,e)+"e"!==null&&(T(this.m,e)+"e")[Symbol.for("+")]?(T(this.m,e)+"e")[Symbol.for("+")](T(this.e,e)):T(this.m,e)+"e"+T(this.e,e))():(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](k):this.layer<=k)()?(()=>(-1===this.sign?"-":"")+"e".repeat(this.layer)!==void 0&&(-1===this.sign?"-":"")+"e".repeat(this.layer)!==null&&((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")]?((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")](T(this.mag,e)):(-1===this.sign?"-":"")+"e".repeat(this.layer)+T(this.mag,e))():(()=>(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==void 0&&(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==null&&((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")]?((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")](T(this.mag,e)):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+T(this.mag,e))()}abs(){return E(0===this.sign?0:1,this.layer,this.mag)}neg(){return E((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)(),this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?P(this.sign,0,Math.round(this.mag)):this}floor(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?P(this.sign,0,Math.floor(this.mag)):this}ceil(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?P(this.sign,0,Math.ceil(this.mag)):this}trunc(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dZero:0===this.layer?P(this.sign,0,Math.trunc(this.mag)):this}add(e){const o=B(e);if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))())return this;if((()=>void 0!==Number.isFinite(o.layer)&&null!==Number.isFinite(o.layer)&&Number.isFinite(o.layer)[Symbol.for("!")]?Number.isFinite(o.layer)[Symbol.for("!")]():!Number.isFinite(o.layer))())return o;if(0===this.sign)return o;if(0===o.sign)return this;if(this.sign===(()=>void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("minus")]?o.sign[Symbol.for("minus")]():-o.sign)()&&this.layer===o.layer&&this.mag===o.mag)return E(0,0,0);let t,l;if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](2):this.layer>=2)()||(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](2):o.layer>=2)())return this.maxabs(o);if((()=>void 0!==_.cmpabs(this,o)&&null!==_.cmpabs(this,o)&&_.cmpabs(this,o)[Symbol.for(">")]?_.cmpabs(this,o)[Symbol.for(">")](0):_.cmpabs(this,o)>0)()?(t=this,l=o):(t=o,l=this),0===t.layer&&0===l.layer)return B((()=>t.sign*t.mag!==void 0&&t.sign*t.mag!==null&&(t.sign*t.mag)[Symbol.for("+")]?(t.sign*t.mag)[Symbol.for("+")](l.sign*l.mag):t.sign*t.mag+l.sign*l.mag)());const n=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("*")]?t.layer[Symbol.for("*")](Math.sign(t.mag)):t.layer*Math.sign(t.mag))(),r=(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("*")]?l.layer[Symbol.for("*")](Math.sign(l.mag)):l.layer*Math.sign(l.mag))();if((()=>n-r!==void 0&&n-r!==null&&(n-r)[Symbol.for(">=")]?(n-r)[Symbol.for(">=")](2):n-r>=2)())return t;if(0===n&&r===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()){if((()=>void 0!==Math.abs(l.mag-Math.log10(t.mag))&&null!==Math.abs(l.mag-Math.log10(t.mag))&&Math.abs(l.mag-Math.log10(t.mag))[Symbol.for(">")]?Math.abs(l.mag-Math.log10(t.mag))[Symbol.for(">")](h):Math.abs(l.mag-Math.log10(t.mag))>h)())return t;{const e=Math.pow(10,(()=>void 0!==Math.log10(t.mag)&&null!==Math.log10(t.mag)&&Math.log10(t.mag)[Symbol.for("-")]?Math.log10(t.mag)[Symbol.for("-")](l.mag):Math.log10(t.mag)-l.mag)()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return P(Math.sign(o),1,(()=>void 0!==l.mag&&null!==l.mag&&l.mag[Symbol.for("+")]?l.mag[Symbol.for("+")](Math.log10(Math.abs(o))):l.mag+Math.log10(Math.abs(o)))())}}if(1===n&&0===r){if((()=>void 0!==Math.abs(t.mag-Math.log10(l.mag))&&null!==Math.abs(t.mag-Math.log10(l.mag))&&Math.abs(t.mag-Math.log10(l.mag))[Symbol.for(">")]?Math.abs(t.mag-Math.log10(l.mag))[Symbol.for(">")](h):Math.abs(t.mag-Math.log10(l.mag))>h)())return t;{const e=Math.pow(10,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("-")]?t.mag[Symbol.for("-")](Math.log10(l.mag)):t.mag-Math.log10(l.mag))()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return P(Math.sign(o),1,(()=>void 0!==Math.log10(l.mag)&&null!==Math.log10(l.mag)&&Math.log10(l.mag)[Symbol.for("+")]?Math.log10(l.mag)[Symbol.for("+")](Math.log10(Math.abs(o))):Math.log10(l.mag)+Math.log10(Math.abs(o)))())}}if((()=>void 0!==Math.abs(t.mag-l.mag)&&null!==Math.abs(t.mag-l.mag)&&Math.abs(t.mag-l.mag)[Symbol.for(">")]?Math.abs(t.mag-l.mag)[Symbol.for(">")](h):Math.abs(t.mag-l.mag)>h)())return t;{const e=Math.pow(10,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("-")]?t.mag[Symbol.for("-")](l.mag):t.mag-l.mag)()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return P(Math.sign(o),1,(()=>void 0!==l.mag&&null!==l.mag&&l.mag[Symbol.for("+")]?l.mag[Symbol.for("+")](Math.log10(Math.abs(o))):l.mag+Math.log10(Math.abs(o)))())}}plus(e){return this.add(e)}sub(e){return this.add(B(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const o=B(e);if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))())return this;if((()=>void 0!==Number.isFinite(o.layer)&&null!==Number.isFinite(o.layer)&&Number.isFinite(o.layer)[Symbol.for("!")]?Number.isFinite(o.layer)[Symbol.for("!")]():!Number.isFinite(o.layer))())return o;if(0===this.sign||0===o.sign)return E(0,0,0);if(this.layer===o.layer&&this.mag===(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag)())return E((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](o.sign):this.sign*o.sign)(),0,1);let t,l;if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](o.layer):this.layer>o.layer)()||(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("==")]?this.layer[Symbol.for("==")](o.layer):this.layer==o.layer)()&&(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for(">")]?Math.abs(this.mag)[Symbol.for(">")](Math.abs(o.mag)):Math.abs(this.mag)>Math.abs(o.mag))()?(t=this,l=o):(t=o,l=this),0===t.layer&&0===l.layer)return B((()=>t.sign*l.sign*t.mag!==void 0&&t.sign*l.sign*t.mag!==null&&(t.sign*l.sign*t.mag)[Symbol.for("*")]?(t.sign*l.sign*t.mag)[Symbol.for("*")](l.mag):t.sign*l.sign*t.mag*l.mag)());if((()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](3):t.layer>=3)()||(()=>t.layer-l.layer!==void 0&&t.layer-l.layer!==null&&(t.layer-l.layer)[Symbol.for(">=")]?(t.layer-l.layer)[Symbol.for(">=")](2):t.layer-l.layer>=2)())return P((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),t.layer,t.mag);if(1===t.layer&&0===l.layer)return P((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),1,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("+")]?t.mag[Symbol.for("+")](Math.log10(l.mag)):t.mag+Math.log10(l.mag))());if(1===t.layer&&1===l.layer)return P((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),1,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("+")]?t.mag[Symbol.for("+")](l.mag):t.mag+l.mag)());if(2===t.layer&&1===l.layer){const e=P(Math.sign(t.mag),(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](1):t.layer-1)(),Math.abs(t.mag)).add(P(Math.sign(l.mag),(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](1):l.layer-1)(),Math.abs(l.mag)));return P((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)())}if(2===t.layer&&2===l.layer){const e=P(Math.sign(t.mag),(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](1):t.layer-1)(),Math.abs(t.mag)).add(P(Math.sign(l.mag),(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](1):l.layer-1)(),Math.abs(l.mag)));return P((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)())}throw Error((()=>"Bad arguments to mul: "+this+", "!==void 0&&"Bad arguments to mul: "+this+", "!==null&&("Bad arguments to mul: "+this+", ")[Symbol.for("+")]?("Bad arguments to mul: "+this+", ")[Symbol.for("+")](e):"Bad arguments to mul: "+this+", "+e)())}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const o=B(e);return this.mul(o.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return 0===this.mag?_.dNaN:0===this.layer?P(this.sign,0,(()=>1[Symbol.for("/")]?1[Symbol.for("/")](this.mag):1/this.mag)()):P(this.sign,this.layer,(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)())}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const o=B(e);return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for(">")]?this.sign[Symbol.for(">")](o.sign):this.sign>o.sign)()?1:(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<")]?this.sign[Symbol.for("<")](o.sign):this.sign1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.cmpabs(e)):this.sign*this.cmpabs(e))()}cmpabs(e){const o=B(e),t=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](0):this.mag>0)()?this.layer:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("minus")]?this.layer[Symbol.for("minus")]():-this.layer)(),l=(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">")]?o.mag[Symbol.for(">")](0):o.mag>0)()?o.layer:(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("minus")]?o.layer[Symbol.for("minus")]():-o.layer)();return(()=>void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](l):t>l)()?1:(()=>void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](l):t1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](o.mag):this.mag>o.mag)()?1:(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](o.mag):this.mag1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():0}compare(e){return this.cmp(e)}isNan(){return isNaN(this.sign)||isNaN(this.layer)||isNaN(this.mag)}isFinite(){return isFinite(this.sign)&&isFinite(this.layer)&&isFinite(this.mag)}eq(e){const o=B(e);return this.sign===o.sign&&this.layer===o.layer&&this.mag===o.mag}equals(e){return this.eq(e)}neq(e){return(()=>void 0!==this.eq(e)&&null!==this.eq(e)&&this.eq(e)[Symbol.for("!")]?this.eq(e)[Symbol.for("!")]():!this.eq(e))()}notEquals(e){return this.neq(e)}lt(e){return this.cmp(e)===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()}lte(e){return(()=>void 0!==this.gt(e)&&null!==this.gt(e)&&this.gt(e)[Symbol.for("!")]?this.gt(e)[Symbol.for("!")]():!this.gt(e))()}gt(e){return 1===this.cmp(e)}gte(e){return(()=>void 0!==this.lt(e)&&null!==this.lt(e)&&this.lt(e)[Symbol.for("!")]?this.lt(e)[Symbol.for("!")]():!this.lt(e))()}max(e){const o=B(e);return this.lt(o)?o:this}min(e){const o=B(e);return this.gt(o)?o:this}maxabs(e){const o=B(e);return(()=>void 0!==this.cmpabs(o)&&null!==this.cmpabs(o)&&this.cmpabs(o)[Symbol.for("<")]?this.cmpabs(o)[Symbol.for("<")](0):this.cmpabs(o)<0)()?o:this}minabs(e){const o=B(e);return(()=>void 0!==this.cmpabs(o)&&null!==this.cmpabs(o)&&this.cmpabs(o)[Symbol.for(">")]?this.cmpabs(o)[Symbol.for(">")](0):this.cmpabs(o)>0)()?o:this}clamp(e,o){return this.max(e).min(o)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,o){const t=B(e);return this.eq_tolerance(t,o)?0:this.cmp(t)}compare_tolerance(e,o){return this.cmp_tolerance(e,o)}eq_tolerance(e,o){const t=B(e);if((()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()&&(o=1e-7),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("!==")]?this.sign[Symbol.for("!==")](t.sign):this.sign!==t.sign)())return!1;if((()=>void 0!==Math.abs(this.layer-t.layer)&&null!==Math.abs(this.layer-t.layer)&&Math.abs(this.layer-t.layer)[Symbol.for(">")]?Math.abs(this.layer-t.layer)[Symbol.for(">")](1):Math.abs(this.layer-t.layer)>1)())return!1;let l=this.mag,n=t.mag;return(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](t.layer):this.layer>t.layer)()&&(n=F(n)),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<")]?this.layer[Symbol.for("<")](t.layer):this.layervoid 0!==Math.abs(l-n)&&null!==Math.abs(l-n)&&Math.abs(l-n)[Symbol.for("<=")]?Math.abs(l-n)[Symbol.for("<=")](o*Math.max(Math.abs(l),Math.abs(n))):Math.abs(l-n)<=o*Math.max(Math.abs(l),Math.abs(n)))()}equals_tolerance(e,o){return this.eq_tolerance(e,o)}neq_tolerance(e,o){return(()=>void 0!==this.eq_tolerance(e,o)&&null!==this.eq_tolerance(e,o)&&this.eq_tolerance(e,o)[Symbol.for("!")]?this.eq_tolerance(e,o)[Symbol.for("!")]():!this.eq_tolerance(e,o))()}notEquals_tolerance(e,o){return this.neq_tolerance(e,o)}lt_tolerance(e,o){const t=B(e);return(()=>void 0!==this.eq_tolerance(t,o)&&null!==this.eq_tolerance(t,o)&&this.eq_tolerance(t,o)[Symbol.for("!")]?this.eq_tolerance(t,o)[Symbol.for("!")]():!this.eq_tolerance(t,o))()&&this.lt(t)}lte_tolerance(e,o){const t=B(e);return this.eq_tolerance(t,o)||this.lt(t)}gt_tolerance(e,o){const t=B(e);return(()=>void 0!==this.eq_tolerance(t,o)&&null!==this.eq_tolerance(t,o)&&this.eq_tolerance(t,o)[Symbol.for("!")]?this.eq_tolerance(t,o)[Symbol.for("!")]():!this.eq_tolerance(t,o))()&&this.gt(t)}gte_tolerance(e,o){const t=B(e);return this.eq_tolerance(t,o)||this.gt(t)}pLog10(){return this.lt(_.dZero)?_.dZero:this.log10()}absLog10(){return 0===this.sign?_.dNaN:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)()?P(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag)):P(1,0,Math.log10(this.mag))}log10(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?_.dNaN:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)()?P(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag)):P(this.sign,0,Math.log10(this.mag))}log(e){return e=B(e),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()||(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0)()||1===e.sign&&0===e.layer&&1===e.mag?_.dNaN:0===this.layer&&0===e.layer?P(this.sign,0,(()=>void 0!==Math.log(this.mag)&&null!==Math.log(this.mag)&&Math.log(this.mag)[Symbol.for("/")]?Math.log(this.mag)[Symbol.for("/")](Math.log(e.mag)):Math.log(this.mag)/Math.log(e.mag))()):_.div(this.log10(),e.log10())}log2(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?_.dNaN:0===this.layer?P(this.sign,0,Math.log2(this.mag)):1===this.layer?P(Math.sign(this.mag),0,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("*")]?Math.abs(this.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(this.mag))()):2===this.layer?P(Math.sign(this.mag),1,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("+")]?Math.abs(this.mag)[Symbol.for("+")](.5213902276543247):Math.abs(this.mag)+.5213902276543247)()):P(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag))}ln(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?_.dNaN:0===this.layer?P(this.sign,0,Math.log(this.mag)):1===this.layer?P(Math.sign(this.mag),0,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("*")]?Math.abs(this.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(this.mag))()):2===this.layer?P(Math.sign(this.mag),1,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("+")]?Math.abs(this.mag)[Symbol.for("+")](.36221568869946325):Math.abs(this.mag)+.36221568869946325)()):P(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const o=B(e),t=this,l=o;if(0===t.sign)return l.eq(0)?E(1,0,1):t;if(1===t.sign&&0===t.layer&&1===t.mag)return t;if(0===l.sign)return E(1,0,1);if(1===l.sign&&0===l.layer&&1===l.mag)return t;const n=t.absLog10().mul(l).pow10();return this.sign===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()?1===(()=>void 0!==Math.abs(l.toNumber()%2)&&null!==Math.abs(l.toNumber()%2)&&Math.abs(l.toNumber()%2)[Symbol.for("%")]?Math.abs(l.toNumber()%2)[Symbol.for("%")](2):Math.abs(l.toNumber()%2)%2)()?n.neg():0===(()=>void 0!==Math.abs(l.toNumber()%2)&&null!==Math.abs(l.toNumber()%2)&&Math.abs(l.toNumber()%2)[Symbol.for("%")]?Math.abs(l.toNumber()%2)[Symbol.for("%")](2):Math.abs(l.toNumber()%2)%2)()?n:_.dNaN:n}pow10(){if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))()||(()=>void 0!==Number.isFinite(this.mag)&&null!==Number.isFinite(this.mag)&&Number.isFinite(this.mag)[Symbol.for("!")]?Number.isFinite(this.mag)[Symbol.for("!")]():!Number.isFinite(this.mag))())return _.dNaN;let e=this;if(0===e.layer){const o=Math.pow(10,(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)());if(Number.isFinite(o)&&(()=>void 0!==Math.abs(o)&&null!==Math.abs(o)&&Math.abs(o)[Symbol.for(">=")]?Math.abs(o)[Symbol.for(">=")](.1):Math.abs(o)>=.1)())return P(1,0,o);if(0===e.sign)return _.dOne;e=E(e.sign,(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),Math.log10(e.mag))}return(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](0):e.sign>0)()&&(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0)()?P(e.sign,(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),e.mag):(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)()&&(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0)()?P((()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag)()):_.dOne}pow_base(e){return B(e).pow(this)}root(e){const o=B(e);return this.pow(o.recip())}factorial(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()||0===this.layer?this.add(1).gamma():1===this.layer?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}gamma(){if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)())return this.recip();if(0===this.layer){if(this.lt(E(1,0,24)))return B(I((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));const e=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("-")]?this.mag[Symbol.for("-")](1):this.mag-1)();let o=.9189385332046727;o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((e+.5)*Math.log(e)):o+(e+.5)*Math.log(e))(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](e):o-e)();const t=(()=>void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e)();let l=e,n=(()=>12[Symbol.for("*")]?12[Symbol.for("*")](l):12*l)(),r=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](n):1/n)(),i=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](r):o+r)();if(i===o)return _.exp(o);if(o=i,l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),n=(()=>360[Symbol.for("*")]?360[Symbol.for("*")](l):360*l)(),r=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](n):1/n)(),i=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](r):o-r)(),i===o)return _.exp(o);o=i,l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),n=(()=>1260[Symbol.for("*")]?1260[Symbol.for("*")](l):1260*l)();let a=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](n):1/n)();return o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](a):o+a)(),l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),n=(()=>1680[Symbol.for("*")]?1680[Symbol.for("*")](l):1680*l)(),a=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](n):1/n)(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](a):o-a)(),_.exp(o)}return 1===this.layer?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}lngamma(){return this.gamma().ln()}exp(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dOne:0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<=")]?this.mag[Symbol.for("<=")](709.7):this.mag<=709.7)()?B(Math.exp((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):0===this.layer?P(1,1,(()=>this.sign*Math.log10(Math.E)!==void 0&&this.sign*Math.log10(Math.E)!==null&&(this.sign*Math.log10(Math.E))[Symbol.for("*")]?(this.sign*Math.log10(Math.E))[Symbol.for("*")](this.mag):this.sign*Math.log10(Math.E)*this.mag)()):1===this.layer?P(1,2,(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.log10(.4342944819032518)+this.mag):this.sign*(Math.log10(.4342944819032518)+this.mag))()):P(1,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())}sqr(){return this.pow(2)}sqrt(){if(0===this.layer)return B(Math.sqrt((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));if(1===this.layer)return P(1,2,(()=>void 0!==Math.log10(this.mag)&&null!==Math.log10(this.mag)&&Math.log10(this.mag)[Symbol.for("-")]?Math.log10(this.mag)[Symbol.for("-")](.3010299956639812):Math.log10(this.mag)-.3010299956639812)());{const e=_.div(E(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag),E(1,0,2));return e.layer=(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](3):1/3)())}tetrate(e=2,o=E(1,0,1)){if(1===e)return _.pow(this,o);if(0===e)return new _(o);if(this.eq(_.dOne))return _.dOne;if(this.eq((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))return _.pow(this,o);if(e===Number.POSITIVE_INFINITY){const e=this.toNumber();if((()=>void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](1.444667861009766):e<=1.444667861009766)()&&(()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](.06598803584531254):e>=.06598803584531254)()){if((()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](1.444667861009099):e>1.444667861009099)())return new _(Math.E);const o=_.ln(this).neg();return o.lambertw().div(o)}return(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](1.444667861009766):e>1.444667861009766)()?new _(Number.POSITIVE_INFINITY):_.dNaN}if(this.eq(_.dZero)){let o=Math.abs((()=>e+1!==void 0&&e+1!==null&&(e+1)[Symbol.for("%")]?(e+1)[Symbol.for("%")](2):(e+1)%2)());return(()=>void 0!==o&&null!==o&&o[Symbol.for(">")]?o[Symbol.for(">")](1):o>1)()&&(o=(()=>2[Symbol.for("-")]?2[Symbol.for("-")](o):2-o)()),new _(o)}if((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](0):e<0)())return _.iteratedlog(o,this,(()=>void 0!==e&&null!==e&&e[Symbol.for("minus")]?e[Symbol.for("minus")]():-e)());o=B(o);const t=e;e=Math.trunc(e);const l=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();if(this.gt(_.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let t=0;(()=>void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](e):tvoid 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("prefix-increment")]?t[Symbol.for("prefix-increment")]():++t)()){const e=o;if(o=this.pow(o),e.eq(o))return o}if((()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](0):0!=l)()){const e=this.pow(o);return o.mul((()=>1[Symbol.for("-")]?1[Symbol.for("-")](l):1-l)()).add(e.mul(l))}return o}(()=>void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l)()&&(o.eq(_.dOne)?this.gt(10)?o=this.pow(l):(o=B(_.tetrate_critical(this.toNumber(),l)),this.lt(2)&&(o=o.sub(1).mul(this.minus(1)).plus(1))):o=this.eq(10)?o.layeradd10(l):o.layeradd(l,this));for(let n=0;(()=>void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](e):nvoid 0!==n&&null!==n&&"object"===typeof n&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n)()){if(o=this.pow(o),(()=>void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer))()||(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return o.normalize();if((()=>o.layer-this.layer!==void 0&&o.layer-this.layer!==null&&(o.layer-this.layer)[Symbol.for(">")]?(o.layer-this.layer)[Symbol.for(">")](3):o.layer-this.layer>3)())return E(o.sign,(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](e-n-1):o.layer+(e-n-1))(),o.mag);if((()=>void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](1e4):n>1e4)())return o}return o}iteratedexp(e=2,o=E(1,0,1)){return this.tetrate(e,o)}iteratedlog(e=10,o=1){if((()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0)())return _.tetrate(e,(()=>void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o)(),this);e=B(e);let t=B(this);const l=o;o=Math.trunc(o);const n=(()=>void 0!==l&&null!==l&&l[Symbol.for("-")]?l[Symbol.for("-")](o):l-o)();if((()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for(">")]?(t.layer-e.layer)[Symbol.for(">")](3):t.layer-e.layer>3)()){const l=Math.min(o,(()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for("-")]?(t.layer-e.layer)[Symbol.for("-")](3):t.layer-e.layer-3)());o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](l):o-l)(),t.layer=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l)()}for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](o):rvoid 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(t=t.log(e),(()=>void 0!==isFinite(t.layer)&&null!==isFinite(t.layer)&&isFinite(t.layer)[Symbol.for("!")]?isFinite(t.layer)[Symbol.for("!")]():!isFinite(t.layer))()||(()=>void 0!==isFinite(t.mag)&&null!==isFinite(t.mag)&&isFinite(t.mag)[Symbol.for("!")]?isFinite(t.mag)[Symbol.for("!")]():!isFinite(t.mag))())return t.normalize();if((()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](1e4):r>1e4)())return t}return(()=>void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](0):n>0)()&&(()=>void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](1):n<1)()&&(t=e.eq(10)?t.layeradd10((()=>void 0!==n&&null!==n&&n[Symbol.for("minus")]?n[Symbol.for("minus")]():-n)()):t.layeradd((()=>void 0!==n&&null!==n&&n[Symbol.for("minus")]?n[Symbol.for("minus")]():-n)(),e)),t}slog(e=10){if(e=B(e),e.lte(_.dZero))return _.dNaN;if(e.eq(_.dOne))return _.dNaN;if(e.lt(_.dOne))return this.eq(_.dOne)?_.dZero:this.eq(_.dZero)?_.dNegOne:_.dNaN;if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()||this.eq(_.dZero))return _.dNegOne;let o=0,t=B(this);if((()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for(">")]?(t.layer-e.layer)[Symbol.for(">")](3):t.layer-e.layer>3)()){const l=(()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for("-")]?(t.layer-e.layer)[Symbol.for("-")](3):t.layer-e.layer-3)();o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](l):o+l)(),t.layer=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l)()}for(let l=0;(()=>void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](100):l<100)();(()=>void 0!==l&&null!==l&&"object"===typeof l&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l)())if(t.lt(_.dZero))t=_.pow(e,t),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1)();else{if(t.lte(_.dOne))return B((()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](_.slog_critical(e.toNumber(),t.toNumber())):o+_.slog_critical(e.toNumber(),t.toNumber()))());o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)(),t=_.log(t,e)}return B(o)}static slog_critical(e,o){return(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10)()?(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1)():_.critical_section(e,o,Z)}static tetrate_critical(e,o){return _.critical_section(e,o,w)}static critical_section(e,o,t){o=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](10):10*o)(),(()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0)()&&(o=0),(()=>void 0!==o&&null!==o&&o[Symbol.for(">")]?o[Symbol.for(">")](10):o>10)()&&(o=10),(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](2):e<2)()&&(e=2),(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10)()&&(e=10);let l=0,n=0;for(let a=0;(()=>void 0!==a&&null!==a&&a[Symbol.for("<")]?a[Symbol.for("<")](C.length):avoid 0!==a&&null!==a&&"object"===typeof a&&a[Symbol.for("prefix-increment")]?a[Symbol.for("prefix-increment")]():++a)()){if((()=>void 0!==C[a]&&null!==C[a]&&C[a][Symbol.for("==")]?C[a][Symbol.for("==")](e):C[a]==e)()){l=t[a][Math.floor(o)],n=t[a][Math.ceil(o)];break}if((()=>void 0!==C[a]&&null!==C[a]&&C[a][Symbol.for("<")]?C[a][Symbol.for("<")](e):C[a]void 0!==C[a+1]&&null!==C[a+1]&&C[a+1][Symbol.for(">")]?C[a+1][Symbol.for(">")](e):C[a+1]>e)()){const r=(()=>e-C[a]!==void 0&&e-C[a]!==null&&(e-C[a])[Symbol.for("/")]?(e-C[a])[Symbol.for("/")](C[a+1]-C[a]):(e-C[a])/(C[a+1]-C[a]))();l=(()=>t[a][Math.floor(o)]*(1-r)!==void 0&&t[a][Math.floor(o)]*(1-r)!==null&&(t[a][Math.floor(o)]*(1-r))[Symbol.for("+")]?(t[a][Math.floor(o)]*(1-r))[Symbol.for("+")](t[a+1][Math.floor(o)]*r):t[a][Math.floor(o)]*(1-r)+t[a+1][Math.floor(o)]*r)(),n=(()=>t[a][Math.ceil(o)]*(1-r)!==void 0&&t[a][Math.ceil(o)]*(1-r)!==null&&(t[a][Math.ceil(o)]*(1-r))[Symbol.for("+")]?(t[a][Math.ceil(o)]*(1-r))[Symbol.for("+")](t[a+1][Math.ceil(o)]*r):t[a][Math.ceil(o)]*(1-r)+t[a+1][Math.ceil(o)]*r)();break}}const r=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](Math.floor(o)):o-Math.floor(o))(),i=(()=>l*(1-r)!==void 0&&l*(1-r)!==null&&(l*(1-r))[Symbol.for("+")]?(l*(1-r))[Symbol.for("+")](n*r):l*(1-r)+n*r)();return i}layeradd10(e){e=_.fromValue_noAlloc(e).toNumber();const o=B(this);if((()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](1):e>=1)()){(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("<")]?o.mag[Symbol.for("<")](0):o.mag<0)()&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](0):o.layer>0)()?(o.sign=0,o.mag=0,o.layer=0):o.sign===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("==")]?o.layer[Symbol.for("==")](0):0==o.layer)()&&(o.sign=1,o.mag=(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag)());const t=Math.trunc(e);e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](t):e-t)(),o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t)()}if((()=>void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](-1):e<=-1)()){const t=Math.trunc(e);if(e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](t):e-t)(),o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t)(),(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)())for(let e=0;(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](100):e<100)();(()=>void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e)()){if((()=>{void 0!==o.layer&&null!==o.layer&&"object"===typeof o.layer&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag),(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return 0===o.sign&&(o.sign=1),(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)()&&(o.layer=0),o.normalize();if((()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](0):o.layer>=0)())break}}while((()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)())(()=>{void 0!==o.layer&&null!==o.layer&&"object"===typeof o.layer&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag);return 0===o.sign&&(o.sign=1,0===o.mag&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](1):o.layer>=1)()&&(o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1)(),o.mag=1)),o.normalize(),(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](0):0!==e)()?o.layeradd(e,10):o}layeradd(e,o){const t=this.slog(o).toNumber(),l=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](e):t+e)();return(()=>void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](0):l>=0)()?_.tetrate(o,l):(()=>void 0!==Number.isFinite(l)&&null!==Number.isFinite(l)&&Number.isFinite(l)[Symbol.for("!")]?Number.isFinite(l)[Symbol.for("!")]():!Number.isFinite(l))()?_.dNaN:(()=>void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](-1):l>=-1)()?_.log(_.tetrate(o,(()=>void 0!==l&&null!==l&&l[Symbol.for("+")]?l[Symbol.for("+")](1):l+1)()),o):_.log(_.log(_.tetrate(o,(()=>void 0!==l&&null!==l&&l[Symbol.for("+")]?l[Symbol.for("+")](2):l+2)()),o),o)}lambertw(){if(this.lt((()=>.3678794411710499[Symbol.for("minus")]?.3678794411710499[Symbol.for("minus")]():-.3678794411710499)()))throw Error("lambertw is unimplemented for results less than -1, sorry!");if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)())return B(R(this.toNumber()));if(0===this.layer)return B(R((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));if(1===this.layer)return O(this);if(2===this.layer)return O(this);if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](3):this.layer>=3)())return E(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("==")]?this.sign[Symbol.for("==")](1):1==this.sign)()&&(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](3):this.layer>=3)())return E(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,o=E(1,0,1)){o=B(o);const t=e;e=Math.trunc(e);const l=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();(()=>void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l)()&&(o.eq(_.dOne)?((()=>{void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e})(),o=new _(l)):o=this.eq(10)?o.layeradd10(l):o.layeradd(l,this));for(let n=0;(()=>void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](e):nvoid 0!==n&&null!==n&&"object"===typeof n&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n)()){if(o=this.tetrate(o.toNumber()),(()=>void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer))()||(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return o.normalize();if((()=>void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10)())return o}return o}sin(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?B(Math.sin((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(0,0,0)}cos(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?_.dOne:0===this.layer?B(Math.cos((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(0,0,0)}tan(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?B(Math.tan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(0,0,0)}asin(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?B(Math.asin((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(Number.NaN,Number.NaN,Number.NaN)}acos(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?B(Math.acos(this.toNumber())):0===this.layer?B(Math.acos((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):E(Number.NaN,Number.NaN,Number.NaN)}atan(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?B(Math.atan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):B(Math.atan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Infinity):Infinity*this.sign)()))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return _.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return _.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?E(Number.NaN,Number.NaN,Number.NaN):_.ln(this.add(1).div(B(1).sub(this))).div(2)}ascensionPenalty(e){return 0===e?this:this.root(_.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for("<")]?this.cmp(e)[Symbol.for("<")](1):this.cmp(e)<1)()}lessThan(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for("<")]?this.cmp(e)[Symbol.for("<")](0):this.cmp(e)<0)()}greaterThanOrEqualTo(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for(">")]?this.cmp(e)[Symbol.for(">")](-1):this.cmp(e)>-1)()}greaterThan(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for(">")]?this.cmp(e)[Symbol.for(">")](0):this.cmp(e)>0)()}}(0,n.Z)(_,"dZero",E(0,0,0)),(0,n.Z)(_,"dOne",E(1,0,1)),(0,n.Z)(_,"dNegOne",E((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),0,1)),(0,n.Z)(_,"dTwo",E(1,0,2)),(0,n.Z)(_,"dTen",E(1,0,10)),(0,n.Z)(_,"dNaN",E(Number.NaN,Number.NaN,Number.NaN)),(0,n.Z)(_,"dInf",E(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,n.Z)(_,"dNegInf",E((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,n.Z)(_,"dNumberMax",P(1,0,Number.MAX_VALUE)),(0,n.Z)(_,"dNumberMin",P(1,0,Number.MIN_VALUE));var j=t(6453),A=_;const U=new _(1);function q(e,o,t=!0){let l=_.log10(e).floor(),n=_.div(e,_.pow(10,l));"10"===n.toStringWithDecimalPlaces(o)&&(n=U,l=l.add(1));const r=l.gte(1e9)?ee(l,Math.max(Math.max(o,3),j.defaultDecimalsShown)):l.gte(1e4)?z(l,0):l.toStringWithDecimalPlaces(0);return t?(()=>n.toStringWithDecimalPlaces(o)+"e"!==void 0&&n.toStringWithDecimalPlaces(o)+"e"!==null&&(n.toStringWithDecimalPlaces(o)+"e")[Symbol.for("+")]?(n.toStringWithDecimalPlaces(o)+"e")[Symbol.for("+")](r):n.toStringWithDecimalPlaces(o)+"e"+r)():(()=>"e"[Symbol.for("+")]?"e"[Symbol.for("+")](r):"e"+r)()}function z(e,o){if(null===e||void 0===e)return"NaN";if(e=new _(e),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.001):e.mag<.001)())return(0).toFixed(o);const t=e.toStringWithDecimalPlaces(o),l=t.split(".");return l[0]=l[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),(()=>void 0!==l.length&&null!==l.length&&l.length[Symbol.for("==")]?l.length[Symbol.for("==")](1):1==l.length)()?l[0]:(()=>l[0]+"."!==void 0&&l[0]+"."!==null&&(l[0]+".")[Symbol.for("+")]?(l[0]+".")[Symbol.for("+")](l[1]):l[0]+"."+l[1])()}function L(e,o){return null===e||void 0===e?"NaN":(e=new _(e),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e-4):e.mag<1e-4)()?(0).toFixed(o):((()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.1):e.mag<.1)()&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](0):0!==o)()&&(o=Math.max(Math.max(o,4),j.defaultDecimalsShown)),e.toStringWithDecimalPlaces(o)))}const G=new _("eeee1000"),W=new _("e100000"),H=new _("e1000"),$=new _(1e9),Y=new _(1e6),K=new _(1e3),J=new _(.98),Q=new _(.001),X=new _(0);function ee(e,o,t){if((()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()&&(o=j.defaultDecimalsShown),t=t??j.defaultShowSmall,e=new _(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if((()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)())return(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](ee(e.neg(),o)):"-"+ee(e.neg(),o))();if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(G)){const o=e.slog();return o.gte(Y)?(()=>"F"[Symbol.for("+")]?"F"[Symbol.for("+")](ee(o.floor())):"F"+ee(o.floor()))():(()=>_.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&_.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(_.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(_.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](z(o.floor(),0)):_.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"+z(o.floor(),0))()}if(e.gte(W))return q(e,0,!1);if(e.gte(H))return q(e,0);if(e.gte($))return q(e,o);if(e.gte(K))return z(e,0);if(e.gte(Q)||(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)())return L(e,o);if(e.eq(X))return(0).toFixed(o);if(e=re(e),e.lt(H)){const t=q(e,o);return t.replace(/([^(?:e|F)]*)$/,"-$1")}return(()=>void 0!==ee(e,o)&&null!==ee(e,o)&&ee(e,o)[Symbol.for("+")]?ee(e,o)[Symbol.for("+")]("⁻¹"):ee(e,o)+"⁻¹")()}function oe(e){return e=new _(e),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)()?(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](oe(e.neg())):"-"+oe(e.neg()))():e.gte($)||e.lte(J)&&(()=>void 0!==e.eq(X)&&null!==e.eq(X)&&e.eq(X)[Symbol.for("!")]?e.eq(X)[Symbol.for("!")]():!e.eq(X))()?ee(e):ee(e,0)}function te(e){return _.lt(e,0)?(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](te(_.neg(e))):"-"+te(_.neg(e)))():_.gt(e,(()=>2[Symbol.for("**")]?2[Symbol.for("**")](51):2**51)())?(()=>void 0!==ee(_.div(e,31536e3))&&null!==ee(_.div(e,31536e3))&&ee(_.div(e,31536e3))[Symbol.for("+")]?ee(_.div(e,31536e3))[Symbol.for("+")]("y"):ee(_.div(e,31536e3))+"y")():(e=new _(e).toNumber(),(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](60):e<60)()?(()=>void 0!==ee(e)&&null!==ee(e)&&ee(e)[Symbol.for("+")]?ee(e)[Symbol.for("+")]("s"):ee(e)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](3600):e<3600)()?(()=>oe(Math.floor(e/60))+"m "+ee(e%60)!==void 0&&oe(Math.floor(e/60))+"m "+ee(e%60)!==null&&(oe(Math.floor(e/60))+"m "+ee(e%60))[Symbol.for("+")]?(oe(Math.floor(e/60))+"m "+ee(e%60))[Symbol.for("+")]("s"):oe(Math.floor(e/60))+"m "+ee(e%60)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](86400):e<86400)()?(()=>oe(Math.floor(e/3600))+"h "+oe(Math.floor(e/60)%60)+"m "+oe(e%60)!==void 0&&oe(Math.floor(e/3600))+"h "+oe(Math.floor(e/60)%60)+"m "+oe(e%60)!==null&&(oe(Math.floor(e/3600))+"h "+oe(Math.floor(e/60)%60)+"m "+oe(e%60))[Symbol.for("+")]?(oe(Math.floor(e/3600))+"h "+oe(Math.floor(e/60)%60)+"m "+oe(e%60))[Symbol.for("+")]("s"):oe(Math.floor(e/3600))+"h "+oe(Math.floor(e/60)%60)+"m "+oe(e%60)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](31536e3):e<31536e3)()?(()=>oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)+"h "+oe(Math.floor(e/60)%60)!==void 0&&oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)+"h "+oe(Math.floor(e/60)%60)!==null&&(oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)+"h "+oe(Math.floor(e/60)%60))[Symbol.for("+")]?(oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)+"h "+oe(Math.floor(e/60)%60))[Symbol.for("+")]("m"):oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)+"h "+oe(Math.floor(e/60)%60)+"m")():(()=>oe(Math.floor(e/31536e3))+"y "+oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)!==void 0&&oe(Math.floor(e/31536e3))+"y "+oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)!==null&&(oe(Math.floor(e/31536e3))+"y "+oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24))[Symbol.for("+")]?(oe(Math.floor(e/31536e3))+"y "+oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24))[Symbol.for("+")]("h"):oe(Math.floor(e/31536e3))+"y "+oe(Math.floor(e/84600)%365)+"d "+oe(Math.floor(e/3600)%24)+"h")())}function le(e,o,t){e=new _(e);let l=e.toStringWithDecimalPlaces(o);return new _(l).gte(t)&&(l=_.sub(t,Math.pow(.1,o)).toStringWithDecimalPlaces(o)),l}function ne(e,o){return ee(e,o,!0)}function re(e){let o=_.log10(e).ceil();const t=_.div(e,_.pow(10,o));return o=o.neg(),e=new _(10).pow(o).times(t),e}const{exponentialFormat:ie,commaFormat:ae,regularFormat:se,format:ue,formatWhole:me,formatTime:ce,toPlaces:fe,formatSmall:de,invertOOM:ye}=l;window.Decimal=A,window.exponentialFormat=ie,window.commaFormat=ae,window.regularFormat=se,window.format=ue,window.formatWhole=me,window.formatTime=ce,window.toPlaces=fe,window.formatSmall=de,window.invertOOM=ye;var be=A},1349:function(e,o,t){"use strict";function l(e){let o=e.replace(/([A-Z])/g," $1");return o=(()=>void 0!==o.charAt(0).toUpperCase()&&null!==o.charAt(0).toUpperCase()&&o.charAt(0).toUpperCase()[Symbol.for("+")]?o.charAt(0).toUpperCase()[Symbol.for("+")](o.slice(1)):o.charAt(0).toUpperCase()+o.slice(1))(),o}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function r(e){return"function"===typeof e}t.d(o,{IJ:function(){return l},PO:function(){return n},mf:function(){return r}})},9583:function(e,o,t){"use strict";t.d(o,{mM:function(){return r},yB:function(){return i},UI:function(){return a}});var l=t(4865),n=t(1349);const r=Symbol("DoNotCache");function i(e,o){const t=e[o];(0,n.mf)(t)&&0===t.length&&(()=>void 0!==t[r]&&null!==t[r]&&t[r][Symbol.for("!")]?t[r][Symbol.for("!")]():!t[r])()&&(e[o]=(0,l.computed)(t.bind(e)))}function a(e){return(0,n.mf)(e)&&(()=>void 0!==e[r]&&null!==e[r]&&e[r][Symbol.for("!")]?e[r][Symbol.for("!")]():!e[r])()&&(e=(0,l.computed)(e)),e}},3273:function(e,o,t){"use strict";t.d(o,{Le:function(){return l},c4:function(){return n},z2:function(){return r}});const l=Symbol("ProxyState"),n=Symbol("ProxyPath");function r(e,o={}){const t=o;let n=!1;function r(){return(()=>void 0!==n&&null!==n&&n[Symbol.for("!")]?n[Symbol.for("!")]():!n)()&&(Object.assign(t,e(t)),n=!0),t}return new Proxy(t,{get(e,o){return o===l?r():r()[o]},set(e,o,t){return r()[o]=t,!0},has(e,o){return o===l||Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(o,l){return(()=>void 0!==n&&null!==n&&n[Symbol.for("!")]?n[Symbol.for("!")]():!n)()&&(Object.assign(t,e(t)),n=!0),Object.getOwnPropertyDescriptor(o,l)}})}},463:function(e,o,t){"use strict";t.d(o,{a1:function(){return s},zD:function(){return u},xM:function(){return m},QI:function(){return c},uW:function(){return f},y6:function(){return d}});t(2801);var l=t(6453),n=t(5967),r=t(9266),i=t(3273);function a(e={}){return Object.assign({id:`${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:{}},e)}function s(){const e=btoa(unescape(encodeURIComponent((0,n.U)(n.Z[i.Le]))));return localStorage.setItem(n.Z.id,e),e}async function u(){(0,r.ri)();try{const e=localStorage.getItem(r.ZP.active);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void await f(m());const o=JSON.parse(decodeURIComponent(escape(atob(e))));if((()=>void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id)())return void await f(m());o.id=r.ZP.active,await f(o)}catch(e){console.error("Failed to load save. Falling back to new save.\n",e),await f(m())}}function m(){const e=c(),o=a({id:e});return localStorage.setItem(e,btoa(unescape(encodeURIComponent((0,n.U)(o))))),r.ZP.saves.push(e),o}function c(){let e,o=0;do{e=`${l.id}-${(()=>void 0!==o&&null!==o&&"object"===typeof o&&o[Symbol.for("postfix-increment")]?o[Symbol.for("postfix-increment")]():o++)()}`}while(localStorage.getItem(e));return e}async function f(e){console.info("Loading save",e);const{layers:o,removeLayer:i,addLayer:s}=await Promise.resolve().then(t.bind(t,9365)),{fixOldSave:u,getInitialLayers:m}=await Promise.resolve().then(t.bind(t,7573));for(const t in o)i(o[t]);m(e).forEach((o=>s(o,e))),e=a(e),e.offlineProd&&e.time&&((()=>void 0!==e.offlineTime&&null!==e.offlineTime&&e.offlineTime[Symbol.for("==")]?e.offlineTime[Symbol.for("==")](void 0):void 0==e.offlineTime)()&&(e.offlineTime=0),e.offlineTime=(()=>void 0!==e.offlineTime&&null!==e.offlineTime&&e.offlineTime[Symbol.for("+")]?e.offlineTime[Symbol.for("+")]((Date.now()-e.time)/1e3):e.offlineTime+(Date.now()-e.time)/1e3)()),e.time=Date.now(),(()=>void 0!==e.modVersion&&null!==e.modVersion&&e.modVersion[Symbol.for("!==")]?e.modVersion[Symbol.for("!==")](l.versionNumber):e.modVersion!==l.versionNumber)()&&u(e.modVersion,e),Object.assign(n.Z,e),r.ZP.active=n.Z.id}setInterval((()=>{n.Z.autosave&&s()}),1e3),window.onbeforeunload=()=>{n.Z.autosave&&s()},window.save=s;const d=window.hardReset=async()=>{await f(m())}},7573:function(e,o,t){"use strict";t.r(o),t.d(o,{fixOldSave:function(){return ul},getInitialLayers:function(){return al},hasWon:function(){return sl},main:function(){return il}});var l=t(4865);const n=e=>((0,l.pushScopeId)("data-v-07150322"),e=e(),(0,l.popScopeId)(),e),r=n((()=>(0,l.createElementVNode)("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[(0,l.createElementVNode)("g",{id:"P"},[(0,l.createElementVNode)("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),(0,l.createElementVNode)("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),(0,l.createElementVNode)("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),(0,l.createElementVNode)("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),(0,l.createElementVNode)("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),(0,l.createElementVNode)("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),(0,l.createElementVNode)("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));function i(e,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{appear:""},{default:(0,l.withCtx)((()=>[r])),_:1})}var a=t(3744);const s={},u=(0,a.Z)(s,[["render",i],["__scopeId","data-v-07150322"]]);var m=u,c=(0,l.defineComponent)({props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{style:(0,l.normalizeStyle)({width:e.width,height:e.height})},null,4))}});const f=c;var d=f,y=t(6113),b=t(5613),h=t(7302),p=t(4061);function v(e,o="points",t=0,n){const r=(0,l.isRef)(e)?e:(0,p.ax)(e);return r.displayName=o,r.precision=t,r.small=n,r}function g(e){const o=(0,p.ax)(e.value);return(0,l.watch)(e,(e=>{b.ZP.gt(e,o.value)&&(o.value=e)})),o}function S(e){const o=(0,p.ax)(e.value);return(0,l.watch)(e,((e,t)=>{b.ZP.gt(e,t)&&(o.value=b.ZP.add(o.value,b.ZP.sub(e,t)))})),o}const N=new b.ZP("10^^8"),k=new b.ZP("1e100");function V(e,o){const t=(0,l.ref)(0),n=(0,l.ref)(0),r=(0,l.ref)(0);h.globalBus.on("update",(o=>{if(n.value=0,b.ZP.lte(e.value,k))return void(r.value=e.value);let l=e.value,i=r.value;if(r.value=l,b.ZP.gt(l,i))if(b.ZP.gte(l,N))l=b.ZP.slog(l,1e10),i=b.ZP.slog(i,1e10),t.value=l.sub(i).div(o),n.value=(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)();else while(b.ZP.div(l,i).log(10).div(o).gte("100")&&(()=>void 0!==n.value&&null!==n.value&&n.value[Symbol.for("<=")]?n.value[Symbol.for("<=")](5):n.value<=5)()&&b.ZP.gt(i,0))l=b.ZP.log10(l),i=b.ZP.log10(i),t.value=l.sub(i).div(o),(()=>{void 0!==n.value&&null!==n.value&&"object"===typeof n.value&&n.value[Symbol.for("postfix-increment")]?n.value[Symbol.for("postfix-increment")]():n.value++})()}));const i=(0,l.computed)((()=>0===n.value?o?(()=>(0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName!==void 0&&(0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName!==null&&((0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]?((0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]("/s"):(0,b.WU)(o.value,e.precision,e.small)+" "+e.displayName+"/s")():"":(()=>(0,b.WU)(t.value)+" OOM"+(n.value<0?"^OOM":"^"+n.value)!==void 0&&(0,b.WU)(t.value)+" OOM"+(n.value<0?"^OOM":"^"+n.value)!==null&&((0,b.WU)(t.value)+" OOM"+(n.value<0?"^OOM":"^"+n.value))[Symbol.for("+")]?((0,b.WU)(t.value)+" OOM"+(n.value<0?"^OOM":"^"+n.value))[Symbol.for("+")]("s/sec"):(0,b.WU)(t.value)+" OOM"+(n.value<0?"^OOM":"^"+n.value)+"s/sec")()));return i}function x(e,o){const t=o??e.value;return b.ZP.eq(e.precision,0)?(0,b.Ht)(t):(0,b.WU)(t,e.precision,e.small)}function M(e,o,t,n,r,i){const a=(0,l.resolveComponent)("Links");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.nodesComp))),e.leftNodesComp?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.leftNodesComp),{key:0})):(0,l.createCommentVNode)("",!0),e.rightNodesComp?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.rightNodesComp),{key:1})):(0,l.createCommentVNode)("",!0),e.branches?((0,l.openBlock)(),(0,l.createBlock)(a,{key:2,links:e.unref(e.branches)},null,8,["links"])):(0,l.createCommentVNode)("",!0)],64)}var C=t(1604),w=t(9365);const Z=["x1","y1","x2","y2"];var B=(0,l.defineComponent)({props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const o=e,t=(0,l.toRefs)(o),n=(0,l.computed)((()=>{const e=t.startNode.value.rect,o=t.boundingRect.value,l=o?{x:(()=>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("-")](o.x):e.x+e.width/2-o.x)(),y:(()=>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("-")](o.y):e.y+e.height/2-o.y)()}:{x:0,y:0};return t.link.value.offsetStart&&(l.x=(()=>void 0!==l.x&&null!==l.x&&l.x[Symbol.for("+")]?l.x[Symbol.for("+")](t.link.value.offsetStart.x):l.x+t.link.value.offsetStart.x)(),l.y=(()=>void 0!==l.y&&null!==l.y&&l.y[Symbol.for("+")]?l.y[Symbol.for("+")](t.link.value.offsetStart.y):l.y+t.link.value.offsetStart.y)()),l})),r=(0,l.computed)((()=>{const e=t.endNode.value.rect,o=t.boundingRect.value,l=o?{x:(()=>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("-")](o.x):e.x+e.width/2-o.x)(),y:(()=>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("-")](o.y):e.y+e.height/2-o.y)()}:{x:0,y:0};return t.link.value.offsetEnd&&(l.x=(()=>void 0!==l.x&&null!==l.x&&l.x[Symbol.for("+")]?l.x[Symbol.for("+")](t.link.value.offsetEnd.x):l.x+t.link.value.offsetEnd.x)(),l.y=(()=>void 0!==l.y&&null!==l.y&&l.y[Symbol.for("+")]?l.y[Symbol.for("+")](t.link.value.offsetEnd.y):l.y+t.link.value.offsetEnd.y)()),l}));return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("line",(0,l.mergeProps)({"stroke-width":"15px",stroke:"white"},e.link,{x1:(0,l.unref)(n).x,y1:(0,l.unref)(n).y,x2:(0,l.unref)(r).x,y2:(0,l.unref)(r).y}),null,16,Z))}});const P=B;var E=P,T=(0,l.defineComponent)({props:{links:null},setup(e){const o=e,t=(0,l.toRef)(o,"links"),n=new ResizeObserver(u),r=(0,l.inject)(w.NodesInjectionKey),i=(0,l.ref)(null);(0,l.onMounted)((()=>{const e=i.value;(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&n.observe(e)}));let a=!0,s=(0,l.ref)(i.value?.getBoundingClientRect());function u(){(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!=")]?i.value[Symbol.for("!=")](null):null!=i.value)()&&a&&(a=!1,(0,l.nextTick)((()=>{s.value=i.value?.getBoundingClientRect(),Object.values(r.value).forEach((e=>e.rect=e.element.getBoundingClientRect())),a=!0})))}document.fonts.ready.then(u);const m=(0,l.computed)((()=>{const e=r.value;return t.value?.filter((o=>e[o.startNode.id]?.rect&&e[o.startNode.id]?.rect))??[]}));return(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(m)?((0,l.openBlock)(),(0,l.createElementBlock)("svg",(0,l.normalizeProps)((0,l.mergeProps)({key:0},e.$attrs)),[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(m),((e,o)=>((0,l.openBlock)(),(0,l.createBlock)(E,{key:o,link:e,boundingRect:(0,l.unref)(s),startNode:(0,l.unref)(r)[e.startNode.id],endNode:(0,l.unref)(r)[e.endNode.id]},null,8,["link","boundingRect","startNode","endNode"])))),128))],16)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});const F=(0,a.Z)(T,[["__scopeId","data-v-e35b0402"]]);var I=F,D=(0,l.defineComponent)({props:{nodes:{type:(0,C.P5)(Array),required:!0},leftSideNodes:(0,C.P5)(Array),rightSideNodes:(0,C.P5)(Array),branches:(0,C.P5)(Array)},components:{Links:I},setup(e){const{nodes:o,leftSideNodes:t,rightSideNodes:n}=(0,l.toRefs)(e),r=(0,l.shallowRef)();(0,l.watchEffect)((()=>{const e=(0,C.Uv)(o);r.value=(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[e.map((e=>(0,l.createVNode)("span",{class:"row"},[e.map(C.qF)])))]))))}));const i=(0,l.shallowRef)();(0,l.watchEffect)((()=>{const e=(0,C.Uv)(t);i.value=e?(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",{class:"left-side-nodes small"},[e.map(C.qF)])))):""}));const a=(0,l.shallowRef)();return(0,l.watchEffect)((()=>{const e=(0,C.Uv)(n);a.value=e?(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",{class:"side-nodes small"},[e.map(C.qF)])))):""})),{unref:l.unref,nodesComp:r,leftNodesComp:i,rightNodesComp:a}}});const R=(0,a.Z)(D,[["render",M],["__scopeId","data-v-51e99c22"]]);var O=R;function _(e,o,t,n,r,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:(0,l.normalizeClass)({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)})},[(0,l.createElementVNode)("div",{onClick:o[0]||(o[0]=(...o)=>e.onClick&&e.onClick(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),style:(0,l.normalizeStyle)([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},e.unref(e.style)??[]])},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp))))],36),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var j=(0,l.defineComponent)({props:{id:null},setup(e){const o=e,t=(0,l.toRefs)(o),n=(0,l.inject)(w.RegisterNodeInjectionKey),r=(0,l.inject)(w.UnregisterNodeInjectionKey),i=(0,l.ref)(null),a=(0,l.computed)((()=>i.value&&i.value.parentElement));return n&&r&&((0,l.watch)([a,t.id],(([e,o],[t,i])=>{t&&r((0,l.unref)(i)),e&&n(o,e)})),(0,l.onUnmounted)((()=>r((0,l.unref)(t.id))))),(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"node",ref_key:"node",ref:i},null,512))}});const A=(0,a.Z)(j,[["__scopeId","data-v-63ded336"]]);var U=A;const q={key:0},z={key:0,class:"mark star"},L=["src"];var G=(0,l.defineComponent)({props:{mark:{type:[Boolean,String]}},setup(e){return(o,t)=>e.mark?((0,l.openBlock)(),(0,l.createElementBlock)("div",q,[!0===e.mark?((0,l.openBlock)(),(0,l.createElementBlock)("div",z)):((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:1,class:"mark",src:e.mark},null,8,L))])):(0,l.createCommentVNode)("",!0)}});const W=(0,a.Z)(G,[["__scopeId","data-v-c476c56a"]]);var H=W,$=(0,l.defineComponent)({props:{display:(0,C.P5)(Object,String,Function),visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),onClick:Function,onHold:Function,color:(0,C.P5)(String),glowColor:(0,C.P5)(String),canClick:{type:(0,C.P5)(Boolean),required:!0},mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:H,Node:U},setup(e){const{onClick:o,onHold:t,display:n}=(0,l.toRefs)(e),r=(0,C.KO)(n),{start:i,stop:a}=(0,C.ix)(o,t);return{start:i,stop:a,comp:r,unref:l.unref,Visibility:y.EE,isCoercableComponent:C.RU}}});const Y=(0,a.Z)($,[["render",_],["__scopeId","data-v-426d9bce"]]);var K=Y,J=t(9583),Q=t(3273);const X=Symbol("TreeNode"),ee=Symbol("Tree");function oe(e){return(0,Q.z2)((()=>{const o=e();if(o.id=(0,y.QI)("treeNode-"),o.type=X,o[y.wA]=K,(0,J.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,J.yB)(o,"canClick"),(0,y.Rh)(o,"canClick",!0),(0,J.yB)(o,"color"),(0,J.yB)(o,"display"),(0,J.yB)(o,"glowColor"),(0,J.yB)(o,"classes"),(0,J.yB)(o,"style"),(0,J.yB)(o,"mark"),o.onClick){const e=o.onClick.bind(o);o.onClick=function(){(0,l.unref)(o.canClick)&&e()}}if(o.onHold){const e=o.onHold.bind(o);o.onHold=function(){(0,l.unref)(o.canClick)&&e()}}return o[y.tj]=function(){const{display:e,visibility:o,style:t,classes:l,onClick:n,onHold:r,color:i,glowColor:a,canClick:s,mark:u,id:m}=this;return{display:e,visibility:o,style:t,classes:l,onClick:n,onHold:r,color:i,glowColor:a,canClick:s,mark:u,id:m}},o}))}function te(e){return(0,Q.z2)((()=>{const o=e();return o.id=(0,y.QI)("tree-"),o.type=ee,o[y.wA]=O,o.isResetting=(0,l.ref)(!1),o.resettingNode=(0,l.shallowRef)(null),o.reset=function(e){const t=o;t.isResetting.value=!0,t.resettingNode.value=e,t.resetPropagation?.(t,e),t.onReset?.(e),t.isResetting.value=!1,t.resettingNode.value=null},o.links=(0,l.computed)((()=>{const e=o;return(0,l.unref)(e.branches)??[]})),(0,J.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,J.yB)(o,"nodes"),(0,J.yB)(o,"leftSideNodes"),(0,J.yB)(o,"rightSideNodes"),(0,J.yB)(o,"branches"),o[y.tj]=function(){const{nodes:e,leftSideNodes:o,rightSideNodes:t,branches:l}=this;return{nodes:e,leftSideNodes:o,rightSideNodes:t,branches:l}},o}))}const le=function(e,o){const t=[o];let n=[o];if((()=>void 0!==e.branches&&null!==e.branches&&e.branches[Symbol.for("!=")]?e.branches[Symbol.for("!=")](null):null!=e.branches)()){const o=(0,l.unref)(e.branches);while((()=>void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0)()){const e=[];n.forEach((l=>{o.filter((e=>e.startNode===l||e.endNode===l)).map((e=>e.startNode===l?e.endNode:e.startNode)).filter((e=>(()=>void 0!==t.includes(e)&&null!==t.includes(e)&&t.includes(e)[Symbol.for("!")]?t.includes(e)[Symbol.for("!")]():!t.includes(e))())).forEach((o=>{(()=>void 0!==e.includes(o)&&null!==e.includes(o)&&e.includes(o)[Symbol.for("!")]?e.includes(o)[Symbol.for("!")]():!e.includes(o))()&&(e.push(o),o.reset?.reset())}))})),n=e,t.push(...n)}}};function ne(e,o=null,t=0){const n=(0,J.UI)(t);return(0,l.computed)((()=>(()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()||b.ZP.gte(e.value,(0,l.unref)(n))?(()=>x(e)+" "!==void 0&&x(e)+" "!==null&&(x(e)+" ")[Symbol.for("+")]?(x(e)+" ")[Symbol.for("+")](e.displayName):x(e)+" "+e.displayName)():`Reach ${b.ZP.eq(o.precision,0)?(0,b.Ht)((0,l.unref)(n)):(0,b.WU)((0,l.unref)(n),o.precision)} ${o.displayName} to unlock (You have ${b.ZP.eq(o.precision,0)?(0,b.Ht)(o.value):(0,b.WU)(o.value,o.precision)})`))}var re=t(5967),ie=t(274),ae=t(264);function se(e,o,t,n,r,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},e.unref(e.style)??[]]),class:(0,l.normalizeClass)({feature:!0,achievement:!0,locked:(()=>void 0!==e.unref(e.earned)&&null!==e.unref(e.earned)&&e.unref(e.earned)[Symbol.for("!")]?e.unref(e.earned)[Symbol.for("!")]():!e.unref(e.earned))(),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var ue=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:(0,C.P5)(Object,String,Function),earned:{type:(0,C.P5)(Boolean),required:!0},image:(0,C.P5)(String),style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{Node:U,MarkNode:H},setup(e){const{display:o}=(0,l.toRefs)(e);return{component:(0,C.KO)(o),unref:l.unref,Visibility:y.EE}}});const me=(0,a.Z)(ue,[["render",se],["__scopeId","data-v-e3f32402"]]);var ce=me,fe=t(3002);t(343);function de(e="white",o="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${o} ${e}`,zIndex:1}}function ye(){return de("red","20px")}h.globalBus.on("setupVue",(e=>e.use(fe.ZP)));const be=(0,fe.pm)(),he=Symbol("Achievement");function pe(e){return(0,Q.z2)((o=>{const t=Object.assign(o,e());if(t.id=(0,y.QI)("achievement-"),t.type=he,t[y.wA]=ce,t.earned=t[p.n9],t.complete=function(){t[p.n9].value=!0},(0,J.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,J.yB)(t,"display"),(0,J.yB)(t,"mark"),(0,J.yB)(t,"image"),(0,J.yB)(t,"style"),(0,J.yB)(t,"classes"),t[y.tj]=function(){const{visibility:e,display:o,earned:t,image:n,style:r,classes:i,mark:a,id:s}=this;return{visibility:e,display:o,earned:t,image:n,style:(0,l.unref)(r),classes:i,mark:a,id:s}},t.shouldEarn){const e=t;(0,l.watchEffect)((()=>{if((()=>void 0!==e.earned.value&&null!==e.earned.value&&e.earned.value[Symbol.for("!")]?e.earned.value[Symbol.for("!")]():!e.earned.value)()&&(0,l.unref)(e.visibility)===y.EE.Visible&&e.shouldEarn?.()&&(e.earned.value=!0,e.onComplete?.(),e.display)){const o=(0,C.MM)((0,l.unref)(e.display));be.info((0,l.createVNode)("div",null,[(0,l.createVNode)("h3",null,[(0,l.createTextVNode)("Achievement earned!")]),(0,l.createVNode)("div",null,[(0,l.createVNode)(o,null,null)])]))}}))}return t}),(0,p.ax)(!1))}function ve(e,o,t,n,r,i){const a=(0,l.resolveComponent)("GridCell");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.rows),(o=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["row",{mergeAdjacent:e.mergeAdjacent}]),key:o},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.cols),(t=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherCellProps(e.unref(e.cells)[(()=>100*o!==void 0&&100*o!==null&&(100*o)[Symbol.for("+")]?(100*o)[Symbol.for("+")](t):100*o+t)()])),null,16)))),128))],2)))),128))],4)):(0,l.createCommentVNode)("",!0)}var ge=t(1037),Se=t(9266);const Ne={key:0};function ke(e,o,t,n,r,i){const a=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:(0,l.normalizeClass)({feature:!0,tile:!0,can:e.unref(e.canClick),locked:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))()}),style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),onClick:o[0]||(o[0]=(...o)=>e.onClick&&e.onClick(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o))},[e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ne,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.titleComponent)))])):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component),{style:{"white-space":"pre-line"}})),(0,l.createVNode)(a,{id:e.id},null,8,["id"])],38)):(0,l.createCommentVNode)("",!0)}var Ve=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},onClick:Function,onHold:Function,display:{type:(0,C.P5)(Object,String,Function),required:!0},title:(0,C.P5)(Object,String,Function),style:(0,C.P5)(String,Object,Array),canClick:{type:(0,C.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:U},setup(e){const{onClick:o,onHold:t,title:n,display:r}=(0,l.toRefs)(e),{start:i,stop:a}=(0,C.ix)(o,t),s=(0,C.KO)(n),u=(0,C.vq)(r);return{start:i,stop:a,titleComponent:s,component:u,Visibility:y.EE,unref:l.unref}}});const xe=(0,a.Z)(Ve,[["render",ke],["__scopeId","data-v-b1182ac6"]]);var Me=xe,Ce=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},rows:{type:(0,C.P5)(Number),required:!0},cols:{type:(0,C.P5)(Number),required:!0},cells:{type:(0,C.P5)(Object),required:!0}},components:{GridCell:Me},setup(){const e=(0,l.computed)((()=>ge.Z[Se.ZP.theme].mergeAdjacent));function o(e){const{visibility:o,onClick:t,onHold:l,display:n,title:r,style:i,canClick:a,id:s}=e;return{visibility:o,onClick:t,onHold:l,display:n,title:r,style:i,canClick:a,id:s}}return{unref:l.unref,gatherCellProps:o,Visibility:y.EE,mergeAdjacent:e}}});const we=(0,a.Z)(Ce,[["render",ve]]);var Ze=we,Be=t(1349);Symbol("Grid");function Pe(e){return new Proxy({},Ee(e))}function Ee(e){const o=(0,l.computed)((()=>{const o=[];for(let t=1;(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")]((0,l.unref)(e.rows)):t<=(0,l.unref)(e.rows))();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("postfix-increment")]?t[Symbol.for("postfix-increment")]():t++)())for(let n=1;(()=>void 0!==n&&null!==n&&n[Symbol.for("<=")]?n[Symbol.for("<=")]((0,l.unref)(e.cols)):n<=(0,l.unref)(e.cols))();(()=>void 0!==n&&null!==n&&"object"===typeof n&&n[Symbol.for("postfix-increment")]?n[Symbol.for("postfix-increment")]():n++)())o.push((()=>100*t!==void 0&&100*t!==null&&(100*t)[Symbol.for("+")]?(100*t)[Symbol.for("+")](n):100*t+n)().toString());return o}));return{get(t,l){return"isProxy"===l||("symbol"===typeof l?e[l]:(()=>void 0!==o.value.includes(l.toString())&&null!==o.value.includes(l.toString())&&o.value.includes(l.toString())[Symbol.for("!")]?o.value.includes(l.toString())[Symbol.for("!")]():!o.value.includes(l.toString()))()?void 0:((()=>void 0!==t[l]&&null!==t[l]&&t[l][Symbol.for("==")]?t[l][Symbol.for("==")](null):null==t[l])()&&(t[l]=new Proxy(e,Te(l.toString()))),t[l]))},set(e,o,t){return console.warn("Cannot set grid cells",e,o,t),!1},ownKeys(){return o.value},has(e,t){return o.value.includes(t.toString())},getOwnPropertyDescriptor(e,t){if(o.value.includes(t.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function Te(e){const o=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],t={};return{get(o,n,r){if("isProxy"===n)return!0;let i=o[n];return(0,Be.mf)(i)?()=>i.call(r,e,o.getState(e)):(()=>void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i)()||"symbol"===typeof n?i:(n=(()=>void 0!==n.slice(0,1).toUpperCase()&&null!==n.slice(0,1).toUpperCase()&&n.slice(0,1).toUpperCase()[Symbol.for("+")]?n.slice(0,1).toUpperCase()[Symbol.for("+")](n.slice(1)):n.slice(0,1).toUpperCase()+n.slice(1))(),"startState"===n?i.call(r,e):(i=o[`get${n}`],(0,Be.mf)(i)?((()=>n in t!==void 0&&n in t!==null&&(n in t)[Symbol.for("!")]?(n in t)[Symbol.for("!")]():!(n in t))()&&(t[n]=(0,l.computed)((()=>i.call(r,e,o.getState(e))))),t[n].value):(()=>void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i)()?(0,l.unref)(i):(i=o[`on${n}`],(0,Be.mf)(i)?()=>i.call(r,e,o.getState(e)):(()=>void 0!==i&&null!==i&&i[Symbol.for("!=")]?i[Symbol.for("!=")](void 0):void 0!=i)()?i:o[n])))},set(o,t,l,n){return t=`set${(()=>void 0!==t.slice(0,1).toUpperCase()&&null!==t.slice(0,1).toUpperCase()&&t.slice(0,1).toUpperCase()[Symbol.for("+")]?t.slice(0,1).toUpperCase()[Symbol.for("+")](t.slice(1)):t.slice(0,1).toUpperCase()+t.slice(1))()}`,(()=>void 0!==t&&null!==t&&t[Symbol.for("in")]?t[Symbol.for("in")](o):t in o)()&&(0,Be.mf)(o[t])&&(()=>void 0!==o[t].length&&null!==o[t].length&&o[t].length[Symbol.for("<")]?o[t].length[Symbol.for("<")](3):o[t].length<3)()?(o[t].call(n,e,l),!0):(console.warn(`No setter for "${t}".`,o),!1)},ownKeys(){return o},has(e,t){return o.includes(t.toString())},getOwnPropertyDescriptor(e,t){if(o.includes(t.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function Fe(e){return(0,Q.z2)((o=>{const t=Object.assign(o,e());if(t.id=(0,y.QI)("grid-"),t[y.wA]=Ze,t.getID=function(e){return(()=>t.id+"-"!==void 0&&t.id+"-"!==null&&(t.id+"-")[Symbol.for("+")]?(t.id+"-")[Symbol.for("+")](e):t.id+"-"+e)()},t.getState=function(e){return(()=>void 0!==this[p.n9].value[e]&&null!==this[p.n9].value[e]&&this[p.n9].value[e][Symbol.for("!=")]?this[p.n9].value[e][Symbol.for("!=")](void 0):void 0!=this[p.n9].value[e])()?this[p.n9].value[e]:this.cells[e].startState},t.setState=function(e,o){this[p.n9].value[e]=o},t.cells=Pe(t),(0,J.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,J.yB)(t,"rows"),(0,J.yB)(t,"cols"),(0,J.yB)(t,"getVisibility"),(0,y.Rh)(t,"getVisibility",y.EE.Visible),(0,J.yB)(t,"getCanClick"),(0,y.Rh)(t,"getCanClick",!0),(0,J.yB)(t,"getStartState"),(0,J.yB)(t,"getStyle"),(0,J.yB)(t,"getClasses"),(0,J.yB)(t,"getTitle"),(0,J.yB)(t,"getDisplay"),t.onClick){const e=t.onClick.bind(t);t.onClick=function(o,n){(0,l.unref)(t.cells[o].canClick)&&e(o,n)}}if(t.onHold){const e=t.onHold.bind(t);t.onHold=function(o,n){(0,l.unref)(t.cells[o].canClick)&&e(o,n)}}return t[y.tj]=function(){const{visibility:e,rows:o,cols:t,cells:l,id:n}=this;return{visibility:e,rows:o,cols:t,cells:l,id:n}},t}),(0,p.ax)({}))}function Ie(e,o,t,n,r,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??[]]),onClick:o[0]||(o[0]=(...o)=>e.onClick&&e.onClick(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),class:(0,l.normalizeClass)({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))(),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],38)):(0,l.createCommentVNode)("",!0)}var De=(0,l.defineComponent)({props:{display:{type:(0,C.P5)(Object,String,Function),required:!0},visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(Object,String,Array),classes:(0,C.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,C.P5)(Boolean),required:!0},small:Boolean,mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{Node:U,MarkNode:H},setup(e){const{display:o,onClick:t,onHold:n}=(0,l.toRefs)(e),r=(0,l.shallowRef)("");(0,l.watchEffect)((()=>{const e=(0,C.Uv)(o);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(r.value="");if((0,C.RU)(e))return void(r.value=(0,C.MM)(e));const t=(0,C.MM)(e.title||"","h3"),n=(0,C.MM)(e.description,"div");r.value=(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(t,null,null)]):null,(0,l.createVNode)(n,null,null)]))))}));const{start:i,stop:a}=(0,C.ix)(t,n);return{start:i,stop:a,comp:r,Visibility:y.EE,unref:l.unref}}});const Re=(0,a.Z)(De,[["render",Ie],["__scopeId","data-v-6b39988a"]]);var Oe=Re;const _e=Symbol("Clickable");function je(e){return(0,Q.z2)((()=>{const o=e();if(o.id=(0,y.QI)("clickable-"),o.type=_e,o[y.wA]=Oe,(0,J.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,J.yB)(o,"canClick"),(0,y.Rh)(o,"canClick",!0),(0,J.yB)(o,"classes"),(0,J.yB)(o,"style"),(0,J.yB)(o,"mark"),(0,J.yB)(o,"display"),o.onClick){const e=o.onClick.bind(o);o.onClick=function(t){(0,l.unref)(o.canClick)&&e(t)}}if(o.onHold){const e=o.onHold.bind(o);o.onHold=function(){(0,l.unref)(o.canClick)&&e()}}return o[y.tj]=function(){const{display:e,visibility:o,style:t,classes:n,onClick:r,onHold:i,canClick:a,small:s,mark:u,id:m}=this;return{display:e,visibility:o,style:(0,l.unref)(t),classes:n,onClick:r,onHold:i,canClick:a,small:s,mark:u,id:m}},o}))}function Ae(e){return je((()=>{const o=e();(0,J.yB)(o,"showNextAt"),(0,y.Rh)(o,"showNextAt",!0),(0,y.Rh)(o,"minimumGain",1),(()=>void 0!==o.resetDescription&&null!==o.resetDescription&&o.resetDescription[Symbol.for("==")]?o.resetDescription[Symbol.for("==")](null):null==o.resetDescription)()?o.resetDescription=(0,l.computed)((()=>b.ZP.lt(o.conversion.gainResource.value,1e3)?"Reset for ":"")):(0,J.yB)(o,"resetDescription"),(()=>void 0!==o.display&&null!==o.display&&o.display[Symbol.for("==")]?o.display[Symbol.for("==")](null):null==o.display)()&&(o.display=(0,y.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.unref)(o.resetDescription),(0,l.createVNode)("b",null,[x(o.conversion.gainResource,b.ZP.max((0,l.unref)(o.conversion.actualGain),(0,l.unref)(o.minimumGain)))])," ",o.conversion.gainResource.displayName,(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),o.conversion.buyMax?"Next:":"Req:"," ",x(o.conversion.baseResource,o.conversion.buyMax||b.ZP.floor((0,l.unref)(o.conversion.actualGain)).neq(1)?(0,l.unref)(o.conversion.nextAt):(0,l.unref)(o.conversion.currentAt))," ",o.conversion.baseResource.displayName]),[[l.vShow,(0,l.unref)(o.showNextAt)]])])))),(()=>void 0!==o.canClick&&null!==o.canClick&&o.canClick[Symbol.for("==")]?o.canClick[Symbol.for("==")](null):null==o.canClick)()&&(o.canClick=(0,l.computed)((()=>b.ZP.gte((0,l.unref)(o.conversion.actualGain),(0,l.unref)(o.minimumGain)))));const t=o.onClick;return o.onClick=function(){(()=>void 0!==(0,l.unref)(o.canClick)&&null!==(0,l.unref)(o.canClick)&&(0,l.unref)(o.canClick)[Symbol.for("!")]?(0,l.unref)(o.canClick)[Symbol.for("!")]():!(0,l.unref)(o.canClick))()||(o.conversion.convert(),o.tree.reset(o.treeNode),t?.())},o}))}function Ue(e){return oe((()=>{const o=e();return(0,J.yB)(o,"display"),(0,y.Rh)(o,"display",o.layerID),(0,J.yB)(o,"append"),{...o,display:o.layerID,onClick:(0,l.unref)(o.append)?function(){if(re.Z.tabs.includes(o.layerID)){const e=re.Z.tabs.lastIndexOf(o.layerID);re.Z.tabs.splice(e,1)}else re.Z.tabs.push(o.layerID)}:function(){re.Z.tabs.splice(1,1,o.layerID)}}}))}function qe(e){return(0,Q.z2)((()=>{const o=e();return(()=>void 0!==o.currentGain&&null!==o.currentGain&&o.currentGain[Symbol.for("==")]?o.currentGain[Symbol.for("==")](null):null==o.currentGain)()&&(o.currentGain=(0,l.computed)((()=>{let e=o.gainModifier?o.gainModifier.apply(o.scaling.currentGain(o)):o.scaling.currentGain(o);return e=b.ZP.floor(e).max(0),(()=>void 0!==(0,l.unref)(o.buyMax)&&null!==(0,l.unref)(o.buyMax)&&(0,l.unref)(o.buyMax)[Symbol.for("!")]?(0,l.unref)(o.buyMax)[Symbol.for("!")]():!(0,l.unref)(o.buyMax))()&&(e=e.min(1)),e}))),(()=>void 0!==o.actualGain&&null!==o.actualGain&&o.actualGain[Symbol.for("==")]?o.actualGain[Symbol.for("==")](null):null==o.actualGain)()&&(o.actualGain=o.currentGain),(()=>void 0!==o.currentAt&&null!==o.currentAt&&o.currentAt[Symbol.for("==")]?o.currentAt[Symbol.for("==")](null):null==o.currentAt)()&&(o.currentAt=(0,l.computed)((()=>{let e=o.scaling.currentAt(o);return o.roundUpCost&&(e=b.ZP.ceil(e)),e}))),(()=>void 0!==o.nextAt&&null!==o.nextAt&&o.nextAt[Symbol.for("==")]?o.nextAt[Symbol.for("==")](null):null==o.nextAt)()&&(o.nextAt=(0,l.computed)((()=>{let e=o.scaling.nextAt(o);return o.roundUpCost&&(e=b.ZP.ceil(e)),e}))),(()=>void 0!==o.convert&&null!==o.convert&&o.convert[Symbol.for("==")]?o.convert[Symbol.for("==")](null):null==o.convert)()&&(o.convert=function(){o.gainResource.value=b.ZP.add(o.gainResource.value,(0,l.unref)(o.currentGain)),o.baseResource.value=0}),(0,J.yB)(o,"currentGain"),(0,J.yB)(o,"actualGain"),(0,J.yB)(o,"currentAt"),(0,J.yB)(o,"nextAt"),(0,J.yB)(o,"buyMax"),(0,y.Rh)(o,"buyMax",!0),(0,J.yB)(o,"roundUpCost"),(0,y.Rh)(o,"roundUpCost",!0),o}))}function ze(e,o){return{currentGain(t){const n=b.ZP.div(t.baseResource.value,(0,l.unref)(e)).pow((0,l.unref)(o));return n.isNan()?new b.ZP(0):n},currentAt(t){let n=(0,l.unref)(t.currentGain);return t.gainModifier&&(n=t.gainModifier.revert(n)),n=b.ZP.max(0,n),b.ZP.root(n,(0,l.unref)(o)).times((0,l.unref)(e))},nextAt(t){let n=b.ZP.add((0,l.unref)(t.currentGain),1);return t.gainModifier&&(n=t.gainModifier.revert(n)),n=b.ZP.max(0,n),b.ZP.root(n,(0,l.unref)(o)).times((0,l.unref)(e)).max((0,l.unref)(e))}}}function Le(e){return qe(e)}function Ge(e){return qe((()=>{const o=e();return(0,y.Rh)(o,"buyMax",!1),(()=>void 0!==o.currentGain&&null!==o.currentGain&&o.currentGain[Symbol.for("==")]?o.currentGain[Symbol.for("==")](null):null==o.currentGain)()&&(o.currentGain=(0,l.computed)((()=>{let e=o.gainModifier?o.gainModifier.apply(o.scaling.currentGain(o)):o.scaling.currentGain(o);return e=b.ZP.floor(e).max(o.gainResource.value),(()=>void 0!==(0,l.unref)(o.buyMax)&&null!==(0,l.unref)(o.buyMax)&&(0,l.unref)(o.buyMax)[Symbol.for("!")]?(0,l.unref)(o.buyMax)[Symbol.for("!")]():!(0,l.unref)(o.buyMax))()&&(e=e.min(b.ZP.add(o.gainResource.value,1))),e}))),(()=>void 0!==o.actualGain&&null!==o.actualGain&&o.actualGain[Symbol.for("==")]?o.actualGain[Symbol.for("==")](null):null==o.actualGain)()&&(o.actualGain=(0,l.computed)((()=>{let e=b.ZP.sub(o.scaling.currentGain(o),o.gainResource.value).max(0);return(()=>void 0!==(0,l.unref)(o.buyMax)&&null!==(0,l.unref)(o.buyMax)&&(0,l.unref)(o.buyMax)[Symbol.for("!")]?(0,l.unref)(o.buyMax)[Symbol.for("!")]():!(0,l.unref)(o.buyMax))()&&(e=e.min(1)),e}))),(0,y.Rh)(o,"convert",(function(){o.gainResource.value=o.gainModifier?o.gainModifier.apply((0,l.unref)(o.currentGain)):(0,l.unref)(o.currentGain),o.baseResource.value=0})),o}))}function We(e,o,t=.5){return b.ZP.lte(e,o)?e:b.ZP.pow(e,t).times(b.ZP.pow(o,b.ZP.sub(1,t)))}function He(e,o,t=.5){return{...e,currentGain:n=>We(e.currentGain(n),(0,l.unref)(o),(0,l.unref)(t))}}const $e=e=>((0,l.pushScopeId)("data-v-6447a93e"),e=e(),(0,l.popScopeId)(),e),Ye=$e((()=>(0,l.createElementVNode)("span",{class:"toggle"},"▼",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));function Ke(e,o,t,n,r,i){const a=(0,l.resolveComponent)("CollapseTransition"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:(0,l.normalizeStyle)([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}])},[(0,l.createElementVNode)("button",{class:"title",style:(0,l.normalizeStyle)([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:o[0]||(o[0]=o=>e.collapsed.value=(()=>void 0!==e.unref(e.collapsed)&&null!==e.unref(e.collapsed)&&e.unref(e.collapsed)[Symbol.for("!")]?e.unref(e.collapsed)[Symbol.for("!")]():!e.unref(e.collapsed))())},[Ye,((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.titleComponent)))],4),(0,l.createVNode)(a,null,{default:(0,l.withCtx)((()=>[(()=>void 0!==e.unref(e.collapsed)&&null!==e.unref(e.collapsed)&&e.unref(e.collapsed)[Symbol.for("!")]?e.unref(e.collapsed)[Symbol.for("!")]():!e.unref(e.collapsed))()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"body",style:(0,l.normalizeStyle)({backgroundColor:e.unref(e.color)})},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.bodyComponent),{style:(0,l.normalizeStyle)(e.unref(e.bodyStyle))},null,8,["style"]))],4)):(0,l.createCommentVNode)("",!0)])),_:1}),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var Je=t(423),Qe=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:{type:(0,C.P5)(Object,String,Function),required:!0},title:{type:(0,C.P5)(Object,String,Function),required:!0},color:(0,C.P5)(String),collapsed:{type:Object,required:!0},style:(0,C.P5)(Object,String,Array),titleStyle:(0,C.P5)(Object,String,Array),bodyStyle:(0,C.P5)(Object,String,Array),classes:(0,C.P5)(Object),id:{type:String,required:!0}},components:{Node:U,CollapseTransition:Je.Z},setup(e){const{title:o,display:t}=(0,l.toRefs)(e),n=(0,C.vq)(o),r=(0,C.vq)(t),i=(0,l.computed)((()=>ge.Z[Se.ZP.theme].mergeAdjacent));return{titleComponent:n,bodyComponent:r,stacked:i,unref:l.unref,Visibility:y.EE}}});const Xe=(0,a.Z)(Qe,[["render",Ke],["__scopeId","data-v-6447a93e"]]);var eo=Xe;const oo=Symbol("Infobox");function to(e){return(0,Q.z2)((o=>{const t=Object.assign(o,e());return t.id=(0,y.QI)("infobox-"),t.type=oo,t[y.wA]=eo,t.collapsed=t[p.n9],(0,J.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,J.yB)(t,"color"),(0,J.yB)(t,"style"),(0,J.yB)(t,"titleStyle"),(0,J.yB)(t,"bodyStyle"),(0,J.yB)(t,"classes"),(0,J.yB)(t,"title"),(0,J.yB)(t,"display"),t[y.tj]=function(){const{visibility:e,display:o,title:t,color:n,collapsed:r,style:i,titleStyle:a,bodyStyle:s,classes:u,id:m}=this;return{visibility:e,display:o,title:t,color:n,collapsed:r,style:(0,l.unref)(i),titleStyle:a,bodyStyle:s,classes:u,id:m}},t}),(0,p.ax)(!1))}function lo(e,o,t,n,r,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{ref:"resizeListener",class:(0,l.normalizeClass)(["resize-listener",e.unref(e.classes)]),style:(0,l.normalizeStyle)(e.unref(e.style))},null,6)}var no=t(6591),ro=(0,l.defineComponent)({props:{style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const o=(0,l.ref)(null),t=new ResizeObserver(a),n=(0,l.inject)(w.NodesInjectionKey),r=(0,l.ref)(null);(0,l.onMounted)((()=>{const l=r.value;(()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](null):null!=l)()&&(t.observe(l),o.value=new no.MxU({resizeTo:l,backgroundAlpha:0}),r.value?.appendChild(o.value.view),e.onInit(o.value)),a()})),(0,l.onBeforeUnmount)((()=>{o.value?.destroy()}));let i=!0;function a(){i&&(i=!1,(0,l.nextTick)((()=>{(()=>void 0!==r.value&&null!==r.value&&r.value[Symbol.for("!=")]?r.value[Symbol.for("!=")](null):null!=r.value)()&&e.onContainerResized&&(Object.values(n.value).filter((e=>e)).forEach((e=>e.rect=e.element.getBoundingClientRect())),e.onContainerResized(r.value.getBoundingClientRect()),o.value?.resize()),i=!0})))}return document.fonts.ready.then(a),{unref:l.unref,resizeListener:r}}});const io=(0,a.Z)(ro,[["render",lo],["__scopeId","data-v-4e1c0c10"]]);var ao=io,so=t(1845);const uo=Symbol("Particles");function mo(e){return(0,Q.z2)((()=>{const o=e();o.id=(0,y.QI)("particles-"),o.type=uo,o[y.wA]=ao,o.app=(0,l.shallowRef)(null),o.addEmitter=e=>{const l=o;return l.app.value?Promise.resolve(new so.Q5(l.app.value.stage,e)):new Promise((o=>{t.push({resolve:o,config:e})}))};let t=[];function n(e){o.app.value=e,t.forEach((({resolve:o,config:t})=>o(new so.Q5(e.stage,t)))),t=[]}return o.onContainerResized=o.onContainerResized?.bind(o),o[y.tj]=function(){const{id:e,style:o,classes:t,onContainerResized:r,onHotReload:i}=this;return{id:e,style:(0,l.unref)(o),classes:t,onContainerResized:r,onHotReload:i,onInit:n}},o}))}window.upgradeConfig=so.oC;const co=Symbol("Reset");function fo(e){return(0,Q.z2)((()=>{const o=e();return o.id=(0,y.QI)("reset-"),o.type=co,o.reset=function(){const e=o=>{o&&"object"===typeof o&&((()=>void 0!==p.n9&&null!==p.n9&&p.n9[Symbol.for("in")]?p.n9[Symbol.for("in")](o):p.n9 in o)()?o[p.n9].value=o[p.nY]:(()=>o instanceof b.ZP!==void 0&&o instanceof b.ZP!==null&&(o instanceof b.ZP)[Symbol.for("!")]?(o instanceof b.ZP)[Symbol.for("!")]():!(o instanceof b.ZP))()&&(()=>void 0!==(0,l.isRef)(o)&&null!==(0,l.isRef)(o)&&(0,l.isRef)(o)[Symbol.for("!")]?(0,l.isRef)(o)[Symbol.for("!")]():!(0,l.isRef)(o))()&&Object.values(o).forEach((o=>e(o))))};(0,l.unref)(o.thingsToReset).forEach(e),h.globalBus.emit("reset",o),o.onReset?.()},(0,J.yB)(o,"thingsToReset"),o}))}const yo={};h.globalBus.on("removeLayer",(e=>{yo[e.id]?.(),yo[e.id]=void 0}));var bo=(0,l.defineComponent)({props:{resource:null,color:null},setup(e){const o=e,t=(0,l.computed)((()=>x(o.resource)));return(o,n)=>((0,l.openBlock)(),(0,l.createElementBlock)("h2",{style:(0,l.normalizeStyle)({color:e.color,"text-shadow":(()=>"0px 0px 10px "[Symbol.for("+")]?"0px 0px 10px "[Symbol.for("+")](e.color):"0px 0px 10px "+e.color)()})},(0,l.toDisplayString)((0,l.unref)(t)),5))}});const ho=bo;var po=ho;const vo={key:0},go={key:1},So=(0,l.createTextVNode)(", "),No=(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()),ko=(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());var Vo=(0,l.defineComponent)({props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const o=e,t=(0,l.toRefs)(o),n=(0,C.KO)(t.effectDisplay),r=(0,l.computed)((()=>b.ZP.lt(t.resource.value,"1e1000")));return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",null,[(0,l.unref)(r)?((0,l.openBlock)(),(0,l.createElementBlock)("span",vo,"You have ")):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(po,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)(e.resource.displayName)):" "+(0,l.toDisplayString)(e.resource.displayName))(),1),(0,l.unref)(n)?((0,l.openBlock)(),(0,l.createElementBlock)("span",go,[So,((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(n))))])):(0,l.createCommentVNode)("",!0),No,ko]))}});const xo=Vo;var Mo=xo,Co=t(4096);function wo(e,o,t){const n=(0,J.UI)(e),r=(0,J.UI)(o),i=(0,J.UI)(!!(()=>void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t)()||t);return{apply:e=>b.ZP.add(e,(0,l.unref)(n)),revert:e=>b.ZP.sub(e,(0,l.unref)(n)),enabled:i,description:(0,y.tZ)((()=>(0,l.createVNode)("div",{class:"modifier-container"},[(0,l.createVNode)("span",{class:"modifier-amount"},[(0,l.createTextVNode)("+"),(0,b.WU)((0,l.unref)(n))]),(0,l.unref)(r)?(0,l.createVNode)("span",{class:"modifier-description"},[(0,C.qF)((0,l.unref)(r))]):null])))}}function Zo(e,o,t){const n=(0,J.UI)(e),r=(0,J.UI)(o),i=(0,J.UI)(!!(()=>void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t)()||t);return{apply:e=>b.ZP.times(e,(0,l.unref)(n)),revert:e=>b.ZP.div(e,(0,l.unref)(n)),enabled:i,description:(0,y.tZ)((()=>(0,l.createVNode)("div",{class:"modifier-container"},[(0,l.createVNode)("span",{class:"modifier-amount"},[(0,l.createTextVNode)("x"),(0,b.WU)((0,l.unref)(n))]),(0,l.unref)(r)?(0,l.createVNode)("span",{class:"modifier-description"},[(0,C.qF)((0,l.unref)(r))]):null])))}}function Bo(e,o,t){const n=(0,J.UI)(e),r=(0,J.UI)(o),i=(0,J.UI)(!!(()=>void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t)()||t);return{apply:e=>b.ZP.pow(e,(0,l.unref)(n)),revert:e=>b.ZP.root(e,(0,l.unref)(n)),enabled:i,description:(0,y.tZ)((()=>(0,l.createVNode)("div",{class:"modifier-container"},[(0,l.createVNode)("span",{class:"modifier-amount"},[(0,l.createTextVNode)("^"),(0,b.WU)((0,l.unref)(n))]),(0,l.unref)(r)?(0,l.createVNode)("span",{class:"modifier-description"},[(0,C.qF)((0,l.unref)(r))]):null])))}}function Po(...e){return{apply:o=>e.filter((e=>(0,l.unref)(e.enabled))).reduce(((e,o)=>o.apply(e)),o),revert:o=>e.filter((e=>(0,l.unref)(e.enabled))).reduceRight(((e,o)=>o.revert(e)),o),enabled:(0,l.computed)((()=>(()=>void 0!==e.filter((e=>(0,l.unref)(e.enabled))).length&&null!==e.filter((e=>(0,l.unref)(e.enabled))).length&&e.filter((e=>(0,l.unref)(e.enabled))).length[Symbol.for(">")]?e.filter((e=>(0,l.unref)(e.enabled))).length[Symbol.for(">")](0):e.filter((e=>(0,l.unref)(e.enabled))).length>0)())),description:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[e.filter((e=>(0,l.unref)(e.enabled))).map((e=>(0,l.unref)(e.description))).filter((e=>e)).map(C.qF)])))}}function Eo(e,o,t,n=1,r=""){return(0,l.createVNode)("div",null,[(0,l.createVNode)("h3",null,[e,o?(0,l.createVNode)("span",{class:"subtitle"},[(0,l.createTextVNode)(" ("),o,(0,l.createTextVNode)(")")]):null]),(0,l.createVNode)("br",null,null),(0,l.createVNode)("div",{class:"modifier-container"},[(0,l.createVNode)("span",{class:"modifier-amount"},[(0,b.WU)(n),r]),(0,l.createVNode)("span",{class:"modifier-description"},[(0,l.createTextVNode)("Base")])]),(0,C.qF)((0,l.unref)(t.description)),(0,l.createVNode)("hr",null,null),(0,l.createTextVNode)("Total: "),(0,b.WU)(t.apply(n)),r])}const To={class:"field"},Fo={key:0,class:"field-title"},Io=["min","max"];var Do=(0,l.defineComponent)({props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,n=(0,l.toRefs)(t),r=(0,l.computed)({get(){return String((0,l.unref)(n.modelValue)||0)},set(e){o("update:modelValue",Number(e))}});return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",To,[e.title?((0,l.openBlock)(),(0,l.createElementBlock)("span",Fo,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(ae.Z,{display:`${(0,l.unref)(r)}`,class:(0,l.normalizeClass)({fullWidth:(()=>void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title)()})},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"range","onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.isRef)(r)?r.value=e:null),min:e.min,max:e.max},null,8,Io),[[l.vModelText,(0,l.unref)(r)]])])),_:1},8,["display","class"])]))}});const Ro=(0,a.Z)(Do,[["__scopeId","data-v-20a0a34d"]]);var Oo=Ro,_o=t(4520),jo=t(9868),Ao=t(9905),Uo=(0,l.defineComponent)({setup(e){const o=(0,l.ref)("0"),t=new ResizeObserver(r),n=(0,l.ref)(null);function r(){let e=n.value;if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](void 0):void 0==e)())return;let t=0;while(e.previousSibling){const o=e.previousSibling;o.dataset&&(()=>"vSticky"[Symbol.for("in")]?"vSticky"[Symbol.for("in")](o.dataset):"vSticky"in o.dataset)()&&(t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](o.offsetHeight):t+o.offsetHeight)()),e=o}o.value=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")]("px"):t+"px")()}return(0,l.nextTick)(r),document.fonts.ready.then(r),(0,l.onMounted)((()=>{const e=n.value?.parentElement;e&&t.observe(e)})),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"sticky",style:(0,l.normalizeStyle)({top:o.value}),ref_key:"element",ref:n,"data-v-sticky":""},[(0,l.renderSlot)(e.$slots,"default")],4))}});const qo=(0,a.Z)(Uo,[["__scopeId","data-v-6987dd96"]]);var zo=qo,Lo=(0,l.defineComponent)({props:{height:null},setup(e){return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"vr",style:(0,l.normalizeStyle)({height:e.height})},null,4))}});const Go=(0,a.Z)(Lo,[["__scopeId","data-v-15f6e746"]]);var Wo=Go,Ho=t(6948);function $o(e,o,t,n,r,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{width:(()=>void 0!==e.unref(e.width)&&null!==e.unref(e.width)&&e.unref(e.width)[Symbol.for("+")]?e.unref(e.width)[Symbol.for("+")]("px"):e.unref(e.width)+"px")(),height:(()=>void 0!==e.unref(e.height)&&null!==e.unref(e.height)&&e.unref(e.height)[Symbol.for("+")]?e.unref(e.height)[Symbol.for("+")]("px"):e.unref(e.height)+"px")(),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),class:(0,l.normalizeClass)({bar:!0,...e.unref(e.classes)})},[(0,l.createElementVNode)("div",{class:"overlayTextContainer border",style:(0,l.normalizeStyle)([{width:(()=>void 0!==e.unref(e.width)&&null!==e.unref(e.width)&&e.unref(e.width)[Symbol.for("+")]?e.unref(e.width)[Symbol.for("+")]("px"):e.unref(e.width)+"px")(),height:(()=>void 0!==e.unref(e.height)&&null!==e.unref(e.height)&&e.unref(e.height)[Symbol.for("+")]?e.unref(e.height)[Symbol.for("+")]("px"):e.unref(e.height)+"px")()},e.unref(e.borderStyle)??{}])},[e.component?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component),{key:0,class:"overlayText",style:(0,l.normalizeStyle)(e.unref(e.textStyle))},null,8,["style"])):(0,l.createCommentVNode)("",!0)],4),(0,l.createElementVNode)("div",{class:"border",style:(0,l.normalizeStyle)([{width:(()=>void 0!==e.unref(e.width)&&null!==e.unref(e.width)&&e.unref(e.width)[Symbol.for("+")]?e.unref(e.width)[Symbol.for("+")]("px"):e.unref(e.width)+"px")(),height:(()=>void 0!==e.unref(e.height)&&null!==e.unref(e.height)&&e.unref(e.height)[Symbol.for("+")]?e.unref(e.height)[Symbol.for("+")]("px"):e.unref(e.height)+"px")()},e.unref(e.style)??{},e.unref(e.baseStyle)??{},e.unref(e.borderStyle)??{}])},[(0,l.createElementVNode)("div",{class:"fill",style:(0,l.normalizeStyle)([e.barStyle,e.unref(e.style)??{},e.unref(e.fillStyle)??{}])},null,4)],4),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var Yo=(0,l.defineComponent)({props:{progress:{type:(0,C.P5)(String,Object,Number),required:!0},width:{type:(0,C.P5)(Number),required:!0},height:{type:(0,C.P5)(Number),required:!0},direction:{type:(0,C.P5)(String),required:!0},display:(0,C.P5)(Object,String,Function),visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(Object,String,Array),classes:(0,C.P5)(Object),borderStyle:(0,C.P5)(Object,String,Array),textStyle:(0,C.P5)(Object,String,Array),baseStyle:(0,C.P5)(Object,String,Array),fillStyle:(0,C.P5)(Object,String,Array),mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:H,Node:U},setup(e){const{progress:o,width:t,height:n,direction:r,display:i}=(0,l.toRefs)(e),a=(0,l.computed)((()=>{let e=o.value instanceof b.ZP?o.value.toNumber():Number(o.value);return(()=>1-Math.min(Math.max(e,0),1)!==void 0&&1-Math.min(Math.max(e,0),1)!==null&&(1-Math.min(Math.max(e,0),1))[Symbol.for("*")]?(1-Math.min(Math.max(e,0),1))[Symbol.for("*")](100):100*(1-Math.min(Math.max(e,0),1)))()})),s=(0,l.computed)((()=>{const e={width:(()=>(0,C.Uv)(t)+.5!==void 0&&(0,C.Uv)(t)+.5!==null&&((0,C.Uv)(t)+.5)[Symbol.for("+")]?((0,C.Uv)(t)+.5)[Symbol.for("+")]("px"):(0,C.Uv)(t)+.5+"px")(),height:(()=>(0,C.Uv)(n)+.5!==void 0&&(0,C.Uv)(n)+.5!==null&&((0,C.Uv)(n)+.5)[Symbol.for("+")]?((0,C.Uv)(n)+.5)[Symbol.for("+")]("px"):(0,C.Uv)(n)+.5+"px")()};switch((0,l.unref)(r)){case Xo.Up:e.clipPath=`inset(${a.value}% 0% 0% 0%)`,e.width=(()=>(0,C.Uv)(t)+1!==void 0&&(0,C.Uv)(t)+1!==null&&((0,C.Uv)(t)+1)[Symbol.for("+")]?((0,C.Uv)(t)+1)[Symbol.for("+")]("px"):(0,C.Uv)(t)+1+"px")();break;case Xo.Down:e.clipPath=`inset(0% 0% ${a.value}% 0%)`,e.width=(()=>(0,C.Uv)(t)+1!==void 0&&(0,C.Uv)(t)+1!==null&&((0,C.Uv)(t)+1)[Symbol.for("+")]?((0,C.Uv)(t)+1)[Symbol.for("+")]("px"):(0,C.Uv)(t)+1+"px")();break;case Xo.Right:e.clipPath=`inset(0% ${a.value}% 0% 0%)`;break;case Xo.Left:e.clipPath=`inset(0% 0% 0% ${a.value} + '%)`;break;case Xo.Default:e.clipPath="inset(0% 50% 0% 0%)";break}return e})),u=(0,C.KO)(i);return{normalizedProgress:a,barStyle:s,component:u,unref:l.unref,Visibility:y.EE}}});const Ko=(0,a.Z)(Yo,[["render",$o],["__scopeId","data-v-e6e3c366"]]);var Jo=Ko;const Qo=Symbol("Bar");var Xo;function et(e){return(0,Q.z2)((()=>{const o=e();return o.id=(0,y.QI)("bar-"),o.type=Qo,o[y.wA]=Jo,(0,J.yB)(o,"visibility"),(0,y.Rh)(o,"visibility",y.EE.Visible),(0,J.yB)(o,"width"),(0,J.yB)(o,"height"),(0,J.yB)(o,"direction"),(0,J.yB)(o,"style"),(0,J.yB)(o,"classes"),(0,J.yB)(o,"borderStyle"),(0,J.yB)(o,"baseStyle"),(0,J.yB)(o,"textStyle"),(0,J.yB)(o,"fillStyle"),(0,J.yB)(o,"progress"),(0,J.yB)(o,"display"),(0,J.yB)(o,"mark"),o[y.tj]=function(){const{progress:e,width:o,height:t,direction:n,display:r,visibility:i,style:a,classes:s,borderStyle:u,textStyle:m,baseStyle:c,fillStyle:f,mark:d,id:y}=this;return{progress:e,width:o,height:t,direction:n,display:r,visibility:i,style:(0,l.unref)(a),classes:s,borderStyle:u,textStyle:m,baseStyle:c,fillStyle:f,mark:d,id:y}},o}))}(function(e){e["Up"]="Up",e["Down"]="Down",e["Left"]="Left",e["Right"]="Right",e["Default"]="Up"})(Xo||(Xo={}));const ot=Symbol("Buyable");function tt(e){return(0,Q.z2)((o=>{const t=Object.assign(o,e());if((()=>void 0!==t.canPurchase&&null!==t.canPurchase&&t.canPurchase[Symbol.for("==")]?t.canPurchase[Symbol.for("==")](null):null==t.canPurchase)()&&((()=>void 0!==t.resource&&null!==t.resource&&t.resource[Symbol.for("==")]?t.resource[Symbol.for("==")](null):null==t.resource)()||(()=>void 0!==t.cost&&null!==t.cost&&t.cost[Symbol.for("==")]?t.cost[Symbol.for("==")](null):null==t.cost)()))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",t),"Cannot create buyable without a canPurchase property or a resource and cost property";t.id=(0,y.QI)("buyable-"),t.type=ot,t[y.wA]=Oe,t.amount=t[p.n9],t.canAfford=(0,l.computed)((()=>{const e=t,o=(0,l.unref)(e.cost);return(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](null):null!=o)()&&b.ZP.gte(e.resource.value,o)})),(()=>void 0!==t.canPurchase&&null!==t.canPurchase&&t.canPurchase[Symbol.for("==")]?t.canPurchase[Symbol.for("==")](null):null==t.canPurchase)()&&(t.canPurchase=(0,l.computed)((()=>(0,l.unref)(t.visibility)===y.EE.Visible&&(0,l.unref)(t.canAfford)&&b.ZP.lt(t.amount.value,(0,l.unref)(t.purchaseLimit))))),t.maxed=(0,l.computed)((()=>b.ZP.gte(t.amount.value,(0,l.unref)(t.purchaseLimit)))),(0,J.yB)(t,"classes");const n=t.classes;t.classes=(0,l.computed)((()=>{const e=(0,l.unref)(n)||{};return t.maxed.value&&(e.bought=!0),e})),(0,J.yB)(t,"canPurchase"),t.canClick=t.canPurchase,t.onClick=t.purchase=function(){const e=t;if((()=>void 0!==(0,l.unref)(e.canPurchase)&&null!==(0,l.unref)(e.canPurchase)&&(0,l.unref)(e.canPurchase)[Symbol.for("!")]?(0,l.unref)(e.canPurchase)[Symbol.for("!")]():!(0,l.unref)(e.canPurchase))()||(()=>void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("==")]?e.cost[Symbol.for("==")](null):null==e.cost)()||(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("==")]?e.resource[Symbol.for("==")](null):null==e.resource)())return;const o=(0,l.unref)(e.cost);e.resource.value=b.ZP.sub(e.resource.value,o),e.amount.value=b.ZP.add(e.amount.value,1),this.onPurchase?.(o)},(0,J.yB)(t,"display");const r=t.display;return t.display=(0,y.tZ)((()=>{const e=(0,l.unref)(r);if((0,C.RU)(e)){const o=(0,C.MM)(e);return(0,l.createVNode)(o,null,null)}if((()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&(()=>void 0!==t.cost&&null!==t.cost&&t.cost[Symbol.for("!=")]?t.cost[Symbol.for("!=")](null):null!=t.cost)()&&(()=>void 0!==t.resource&&null!==t.resource&&t.resource[Symbol.for("!=")]?t.resource[Symbol.for("!=")](null):null!=t.resource)()){const o=t,n=(0,C.MM)(e.title||"","h3"),r=(0,C.MM)(e.description),i=(0,C.MM)(e.effectDisplay||""),a=(0,l.unref)(o.purchaseLimit)===b.ZP.dInf?(0,l.createVNode)(l.Fragment,null,[(0,l.createTextVNode)("Amount: "),(0,b.Ht)(o.amount.value)]):(0,l.createVNode)(l.Fragment,null,[(0,l.createTextVNode)("Amount: "),(0,b.Ht)(o.amount.value),(0,l.createTextVNode)(" /")," ",(0,b.Ht)((0,l.unref)(o.purchaseLimit))]);return(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(n,null,null)]):null,(0,l.createVNode)(r,null,null),(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),a]),e.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Currently: "),(0,l.createVNode)(i,null,null)]):null,o.cost&&(()=>void 0!==o.maxed.value&&null!==o.maxed.value&&o.maxed.value[Symbol.for("!")]?o.maxed.value[Symbol.for("!")]():!o.maxed.value)()?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Cost: "),(0,b.WU)((0,l.unref)(o.cost)||0)," ",t.resource.displayName]):null])}return""})),(0,J.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,J.yB)(t,"cost"),(0,J.yB)(t,"resource"),(0,J.yB)(t,"purchaseLimit"),(0,y.Rh)(t,"purchaseLimit",b.ZP.dInf),(0,J.yB)(t,"style"),(0,J.yB)(t,"mark"),(0,J.yB)(t,"small"),t[y.tj]=function(){const{display:e,visibility:o,style:t,classes:n,onClick:r,canClick:i,small:a,mark:s,id:u}=this;return{display:e,visibility:o,style:(0,l.unref)(t),classes:n,onClick:r,canClick:i,small:a,mark:s,id:u}},t}),(0,p.ax)(0))}t(3577);const lt=["disabled"];function nt(e,o,t,n,r,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,e.unref(e.style)??{}]),class:(0,l.normalizeClass)({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart)&&(()=>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,l.createElementVNode)("button",{class:"toggleChallenge",onClick:o[0]||(o[0]=(...o)=>e.toggle&&e.toggle(...o)),disabled:(()=>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,l.toDisplayString)(e.buttonText),9,lt),e.unref(e.comp)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var rt=(0,l.defineComponent)({props:{active:{type:(0,C.P5)(Boolean),required:!0},maxed:{type:(0,C.P5)(Boolean),required:!0},canComplete:{type:(0,C.P5)(Boolean),required:!0},display:(0,C.P5)(String,Object,Function),visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),completed:{type:(0,C.P5)(Boolean),required:!0},canStart:{type:(0,C.P5)(Boolean),required:!0},mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:H,Node:U},setup(e){const{active:o,maxed:t,canComplete:n,display:r}=(0,l.toRefs)(e),i=(0,l.computed)((()=>o.value?n.value?"Finish":"Exit Early":t.value?"Completed":"Start")),a=(0,l.shallowRef)(""),s=(0,l.computed)((()=>{const e=(0,C.Uv)(o),t=(0,C.Uv)(n);return e?t?ye():de():{}}));return(0,l.watchEffect)((()=>{const e=(0,C.Uv)(r);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(a.value="");if((0,C.RU)(e))return void(a.value=(0,C.MM)(e));const o=(0,C.MM)(e.title||"","h3"),t=(0,C.MM)(e.description,"div"),n=(0,C.MM)(e.goal||""),i=(0,C.MM)(e.reward||""),s=(0,C.MM)(e.effectDisplay||"");a.value=(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(o,null,null)]):null,(0,l.createVNode)(t,null,null),e.goal?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Goal: "),(0,l.createVNode)(n,null,null)]):null,e.reward?(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Reward: "),(0,l.createVNode)(i,null,null)]):null,e.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Currently: "),(0,l.createVNode)(s,null,null)]):null]))))})),{buttonText:i,notifyStyle:s,comp:a,Visibility:y.EE,unref:l.unref}}});const it=(0,a.Z)(rt,[["render",nt],["__scopeId","data-v-5e580749"]]);var at=it;const st=Symbol("ChallengeType");function ut(e){const o=(0,p.ax)(0),t=(0,p.ax)(!1);return(0,Q.z2)((()=>{const n=e();if((()=>void 0!==n.canComplete&&null!==n.canComplete&&n.canComplete[Symbol.for("==")]?n.canComplete[Symbol.for("==")](null):null==n.canComplete)()&&((()=>void 0!==n.resource&&null!==n.resource&&n.resource[Symbol.for("==")]?n.resource[Symbol.for("==")](null):null==n.resource)()||(()=>void 0!==n.goal&&null!==n.goal&&n.goal[Symbol.for("==")]?n.goal[Symbol.for("==")](null):null==n.goal)()))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",n),"Cannot create challenge without a canComplete property or a resource and goal property";n.id=(0,y.QI)("challenge-"),n.type=st,n[y.wA]=at,n.completions=o,n.active=t,n.completed=(0,l.computed)((()=>b.ZP.gt(n.completions.value,0))),n.maxed=(0,l.computed)((()=>b.ZP.gte(n.completions.value,(0,l.unref)(n.completionLimit)))),n.toggle=function(){const e=n;if(e.active.value){if((0,l.unref)(e.canComplete)&&(()=>void 0!==e.maxed.value&&null!==e.maxed.value&&e.maxed.value[Symbol.for("!")]?e.maxed.value[Symbol.for("!")]():!e.maxed.value)()){let o=(0,l.unref)(e.canComplete);"boolean"===typeof o&&(o=1),e.completions.value=b.ZP.min(b.ZP.add(e.completions.value,o),(0,l.unref)(e.completionLimit)),e.onComplete?.()}e.active.value=!1,e.onExit?.(),e.reset?.reset()}else(0,l.unref)(e.canStart)&&(0,l.unref)(e.visibility)===y.EE.Visible&&(()=>void 0!==e.maxed.value&&null!==e.maxed.value&&e.maxed.value[Symbol.for("!")]?e.maxed.value[Symbol.for("!")]():!e.maxed.value)()&&(e.reset?.reset(),e.active.value=!0,e.onEnter?.())},n.complete=function(e){const o=n;let t=(0,l.unref)(o.canComplete);o.active.value&&(()=>void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](!1):!1!==t)()&&(!0===t||b.ZP.neq(0,t))&&(()=>void 0!==o.maxed.value&&null!==o.maxed.value&&o.maxed.value[Symbol.for("!")]?o.maxed.value[Symbol.for("!")]():!o.maxed.value)()&&("boolean"===typeof t&&(t=1),o.completions.value=b.ZP.min(b.ZP.add(o.completions.value,t),(0,l.unref)(o.completionLimit)),o.onComplete?.(),(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](!0):!0!==e)()&&(o.active.value=!1,o.onExit?.(),o.reset?.reset()))},(0,J.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible);const r=n.visibility;return n.visibility=(0,l.computed)((()=>!0===Se.ZP.hideChallenges&&(0,l.unref)(n.maxed)?y.EE.None:(0,l.unref)(r))),(()=>void 0!==n.canComplete&&null!==n.canComplete&&n.canComplete[Symbol.for("==")]?n.canComplete[Symbol.for("==")](null):null==n.canComplete)()&&(n.canComplete=(0,l.computed)((()=>{const e=n;return!((()=>void 0!==e.active.value&&null!==e.active.value&&e.active.value[Symbol.for("!")]?e.active.value[Symbol.for("!")]():!e.active.value)()||(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("==")]?e.resource[Symbol.for("==")](null):null==e.resource)()||(()=>void 0!==e.goal&&null!==e.goal&&e.goal[Symbol.for("==")]?e.goal[Symbol.for("==")](null):null==e.goal)())&&b.ZP.gte(e.resource.value,(0,l.unref)(e.goal))}))),(()=>void 0!==n.mark&&null!==n.mark&&n.mark[Symbol.for("==")]?n.mark[Symbol.for("==")](null):null==n.mark)()&&(n.mark=(0,l.computed)((()=>b.ZP.gt((0,l.unref)(n.completionLimit),1)&&(()=>void 0!==!(0,l.unref)(n.maxed)&&null!==!(0,l.unref)(n.maxed)&&(!(0,l.unref)(n.maxed))[Symbol.for("!")]?(!(0,l.unref)(n.maxed))[Symbol.for("!")]():!!(0,l.unref)(n.maxed))()))),(0,J.yB)(n,"canStart"),(0,y.Rh)(n,"canStart",!0),(0,J.yB)(n,"canComplete"),(0,J.yB)(n,"completionLimit"),(0,y.Rh)(n,"completionLimit",1),(0,J.yB)(n,"mark"),(0,J.yB)(n,"goal"),(0,J.yB)(n,"classes"),(0,J.yB)(n,"style"),(0,J.yB)(n,"display"),(()=>void 0!==n.reset&&null!==n.reset&&n.reset[Symbol.for("!=")]?n.reset[Symbol.for("!=")](null):null!=n.reset)()&&h.globalBus.on("reset",(e=>{e===n.reset&&n.active.value&&n.toggle()})),n[y.tj]=function(){const{active:e,maxed:o,canComplete:t,display:n,visibility:r,style:i,classes:a,completed:s,canStart:u,mark:m,id:c,toggle:f}=this;return{active:e,maxed:o,canComplete:t,display:n,visibility:r,style:(0,l.unref)(i),classes:a,completed:s,canStart:u,mark:m,id:c,toggle:f}},n}))}h.globalBus.on("loadSettings",(e=>{(0,y.Rh)(e,"hideChallenges",!1)})),(0,Se.QV)((0,y.tZ)((()=>(0,l.createVNode)(jo.Z,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>Se.ZP.hideChallenges=e,modelValue:Se.ZP.hideChallenges},null))));const mt=(0,l.shallowReactive)({}),ct=Symbol("Hotkey");function ft(e){return(0,Q.z2)((()=>{const o=e();return o.type=ct,(0,J.yB)(o,"enabled"),(0,y.Rh)(o,"enabled",!0),(0,J.yB)(o,"description"),o}))}h.globalBus.on("addLayer",(e=>{(0,y.bD)(e,ct).forEach((e=>{mt[e.key]=e}))})),h.globalBus.on("removeLayer",(e=>{(0,y.bD)(e,ct).forEach((e=>{mt[e.key]=void 0}))})),document.onkeydown=function(e){if("INPUT"===e.target?.tagName)return;if(sl.value&&(()=>void 0!==re.Z.keepGoing&&null!==re.Z.keepGoing&&re.Z.keepGoing[Symbol.for("!")]?re.Z.keepGoing[Symbol.for("!")]():!re.Z.keepGoing)())return;let o=e.key;e.shiftKey&&(o=(()=>"shift+"[Symbol.for("+")]?"shift+"[Symbol.for("+")](o):"shift+"+o)()),e.ctrlKey&&(o=(()=>"ctrl+"[Symbol.for("+")]?"ctrl+"[Symbol.for("+")](o):"ctrl+"+o)());const t=mt[o];t&&(0,l.unref)(t.enabled)&&(e.preventDefault(),t.onPress())},(0,Se.fw)((0,y.tZ)((()=>{const e=Object.values(mt).filter((e=>(0,l.unref)(e?.enabled)));return 0===e.length?"":(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createVNode)("h4",null,[(0,l.createTextVNode)("Hotkeys")]),e.map((e=>(0,l.createVNode)("div",null,[e?.key,(0,l.createTextVNode)(": "),e?.description])))])})));const dt=Symbol("Links");function yt(e){return(0,Q.z2)((()=>{const o=e();return o.type=dt,o[y.wA]=I,(0,J.yB)(o,"links"),o[y.tj]=function(){const{links:e}=this;return{links:e}},o}))}var bt=t(3525);function ht(e,o,t,n,r,i){const a=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),class:(0,l.normalizeClass)({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)))),(0,l.createVNode)(a,{id:e.id},null,8,["id"])],6)):(0,l.createCommentVNode)("",!0)}var pt=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:{type:(0,C.P5)(String,Object,Function),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),earned:{type:(0,C.P5)(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:U},setup(e){const{display:o}=(0,l.toRefs)(e),t=(0,l.shallowRef)("");return(0,l.watchEffect)((()=>{const e=(0,C.Uv)(o);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(t.value="");if((0,C.RU)(e))return void(t.value=(0,C.MM)(e));const n=(0,C.MM)(e.requirement,"h3"),r=(0,C.MM)(e.effectDisplay||"","b"),i=(0,C.MM)(e.optionsDisplay||"","span");t.value=(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createVNode)(n,null,null),e.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createVNode)(r,null,null)]):null,e.optionsDisplay?(0,l.createVNode)("div",{class:"equal-spaced"},[(0,l.createVNode)(i,null,null)]):null]))))})),{comp:t,unref:l.unref,Visibility:y.EE}}});const vt=(0,a.Z)(pt,[["render",ht],["__scopeId","data-v-0b660ac3"]]);var gt=vt;const St=(0,fe.pm)(),Nt=Symbol("Milestone");var kt;function Vt(e){return(0,Q.z2)((o=>{const t=Object.assign(o,e());t.id=(0,y.QI)("milestone-"),t.type=Nt,t[y.wA]=gt,t.earned=t[p.n9],t.complete=function(){t[p.n9].value=!0},(0,J.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible);const n=t.visibility;if(t.visibility=(0,l.computed)((()=>{const e=(0,l.unref)(t.display);switch(Se.ZP.msDisplay){default:case kt.All:return(0,l.unref)(n);case kt.Configurable:return(0,l.unref)(t.earned)&&(()=>void 0!==(null!=e&&"object"==typeof e&&"optionsDisplay"in e)&&null!==(null!=e&&"object"==typeof e&&"optionsDisplay"in e)&&(null!=e&&"object"==typeof e&&"optionsDisplay"in e)[Symbol.for("!")]?(null!=e&&"object"==typeof e&&"optionsDisplay"in e)[Symbol.for("!")]():!(null!=e&&"object"==typeof e&&"optionsDisplay"in e))()?y.EE.None:(0,l.unref)(n);case kt.Incomplete:return(0,l.unref)(t.earned)?y.EE.None:(0,l.unref)(n);case kt.None:return y.EE.None}})),(0,J.yB)(t,"style"),(0,J.yB)(t,"classes"),(0,J.yB)(t,"display"),t[y.tj]=function(){const{visibility:e,display:o,style:t,classes:n,earned:r,id:i}=this;return{visibility:e,display:o,style:(0,l.unref)(t),classes:n,earned:r,id:i}},t.shouldEarn){const e=t;(0,l.watchEffect)((()=>{if((()=>void 0!==e.earned.value&&null!==e.earned.value&&e.earned.value[Symbol.for("!")]?e.earned.value[Symbol.for("!")]():!e.earned.value)()&&(0,l.unref)(e.visibility)===y.EE.Visible&&e.shouldEarn?.()&&(e.earned.value=!0,e.onComplete?.(),e.display)){const o=(0,l.unref)(e.display),t=(0,C.MM)((0,C.RU)(o)?o:o.requirement);St((0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)("h3",null,[(0,l.createTextVNode)("Milestone earned!")]),(0,l.createVNode)("div",null,[(0,l.createVNode)(t,null,null)])]))}}))}return t}),(0,p.ax)(!1))}(function(e){e["All"]="all",e["Configurable"]="configurable",e["Incomplete"]="incomplete",e["None"]="none"})(kt||(kt={})),h.globalBus.on("loadSettings",(e=>{(0,y.Rh)(e,"msDisplay",kt.All)}));const xt=Object.values(kt).map((e=>({label:(0,Be.IJ)(e),value:e})));(0,Se.QV)((0,y.tZ)((()=>(0,l.createVNode)(bt.Z,{title:"Show Milestones",options:xt,"onUpdate:modelValue":e=>Se.ZP.msDisplay=e,modelValue:Se.ZP.msDisplay},null))));var Mt=(0,l.defineComponent)({props:{display:null},setup(e){const o=e,{display:t}=(0,l.toRefs)(o),n=(0,C.vq)(t);return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(n))))}});const Ct=Mt;var wt=Ct;const Zt=Symbol("Tab");function Bt(e){return(0,Q.z2)((()=>{const o=e();return o.id=(0,y.QI)("tab-"),o.type=Zt,o[y.wA]=wt,o[y.tj]=function(){const{display:e}=this;return{display:e}},o}))}function Pt(e,o,t,n,r,i){return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:o[0]||(o[0]=(...o)=>e.selectTab&&e.selectTab(...o)),class:(0,l.normalizeClass)(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,e.unref(e.style)??{}])},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component)))],6)):(0,l.createCommentVNode)("",!0)}var Et=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},display:{type:(0,C.P5)(Object,String,Function),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),glowColor:(0,C.P5)(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:o}){const{display:t,glowColor:n,floating:r}=(0,l.toRefs)(e),i=(0,C.vq)(t),a=(0,l.computed)((()=>{const e=(0,C.Uv)(n);return(()=>void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e)()?{}:(0,l.unref)(r)?de(e):{boxShadow:`0px 9px 5px -6px ${e}`}}));function s(){o("selectTab")}return{selectTab:s,component:i,glowColorStyle:a,unref:l.unref,Visibility:y.EE}}});const Tt=(0,a.Z)(Et,[["render",Pt],["__scopeId","data-v-361380c0"]]);var Ft=Tt;function It(e,o,t,n,r,i){const a=(0,l.resolveComponent)("TabButton"),s=(0,l.resolveComponent)("Sticky");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??[],e.tabStyle??[]])},[(0,l.createVNode)(s,{class:"tab-buttons-container"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["tab-buttons",{floating:e.floating}])},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.tabs),((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({onSelectTab:o=>e.selected.value=t,floating:e.floating,key:t,active:e.unref(o.tab)===e.unref(e.activeTab)},e.gatherButtonProps(o)),null,16,["onSelectTab","floating","active"])))),128))],2)])),_:1}),e.unref(e.activeTab)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.component)),{key:0})):(0,l.createCommentVNode)("",!0)],6)):(0,l.createCommentVNode)("",!0)}var Dt=(0,l.defineComponent)({props:{visibility:{type:(0,C.P5)(Number),required:!0},activeTab:{type:(0,C.P5)(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:(0,C.P5)(Object),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object)},components:{Sticky:zo,TabButton:Ft},setup(e){const{activeTab:o}=(0,l.toRefs)(e),t=(0,l.computed)((()=>ge.Z[Se.ZP.theme].floatingTabs)),n=(0,l.shallowRef)("");(0,l.watchEffect)((()=>{const e=(0,C.Uv)(o);(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)()?n.value="":(0,C.RU)(e)?n.value=(0,C.MM)(e):n.value=(0,C.MM)((0,l.unref)(e.display))}));const r=(0,l.computed)((()=>{const e=(0,C.Uv)(o),t=(0,C.RU)(e)||(()=>void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e)()?void 0:(0,l.unref)(e.classes);return t})),i=(0,l.computed)((()=>{const e=(0,C.Uv)(o);return(0,C.RU)(e)||(()=>void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e)()?void 0:(0,l.unref)(e.style)}));function a(e){const{display:o,style:t,classes:l,glowColor:n,visibility:r}=e;return{display:o,style:t,classes:l,glowColor:n,visibility:r}}return{floating:t,tabClasses:r,tabStyle:i,Visibility:y.EE,component:n,gatherButtonProps:a,unref:l.unref}}});const Rt=(0,a.Z)(Dt,[["render",It],["__scopeId","data-v-38d5b5f9"]]);var Ot=Rt;const _t=Symbol("TabButton"),jt=Symbol("TabFamily");function At(e,o){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,Q.z2)((t=>{const n=Object.assign(t,o?.());n.id=(0,y.QI)("tabFamily-"),n.type=jt,n[y.wA]=Ot,n.tabs=Object.keys(e).reduce(((o,t)=>{const l=e[t]();return l.type=_t,l[y.wA]=Ft,(0,J.yB)(l,"visibility"),(0,y.Rh)(l,"visibility",y.EE.Visible),(0,J.yB)(l,"tab"),(0,J.yB)(l,"display"),(0,J.yB)(l,"classes"),(0,J.yB)(l,"style"),(0,J.yB)(l,"glowColor"),o[t]=l,o}),{}),n.selected=n[p.n9],n.activeTab=(0,l.computed)((()=>{const e=(0,l.unref)(r.tabs);if((()=>void 0!==n[p.n9].value&&null!==n[p.n9].value&&n[p.n9].value[Symbol.for("in")]?n[p.n9].value[Symbol.for("in")](e):n[p.n9].value in e)()&&(0,l.unref)(e[r[p.n9].value].visibility)===y.EE.Visible)return(0,l.unref)(e[r[p.n9].value].tab);const o=Object.values(e).find((e=>(0,l.unref)(e.visibility)===y.EE.Visible));return o?(0,l.unref)(o.tab):null})),(0,J.yB)(n,"visibility"),(0,y.Rh)(n,"visibility",y.EE.Visible),(0,J.yB)(n,"classes"),(0,J.yB)(n,"style"),n[y.tj]=function(){const{visibility:e,activeTab:o,selected:t,tabs:n,style:r,classes:i}=this;return{visibility:e,activeTab:o,selected:t,tabs:n,style:(0,l.unref)(r),classes:i}};const r=n;return r}),(0,p.ax)(Object.keys(e)[0]))}const Ut=["disabled"];function qt(e,o,t,n,r,i){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("Node");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,style:(0,l.normalizeStyle)([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.unref(e.style)??{}]),onClick:o[0]||(o[0]=(...o)=>e.purchase&&e.purchase(...o)),class:(0,l.normalizeClass)({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:(()=>void 0!==e.unref(e.canPurchase)&&null!==e.unref(e.canPurchase)&&e.unref(e.canPurchase)[Symbol.for("!")]?e.unref(e.canPurchase)[Symbol.for("!")]():!e.unref(e.canPurchase))(),bought:e.unref(e.bought),...e.unref(e.classes)}),disabled:(()=>void 0!==e.unref(e.canPurchase)&&null!==e.unref(e.canPurchase)&&e.unref(e.canPurchase)[Symbol.for("!")]?e.unref(e.canPurchase)[Symbol.for("!")]():!e.unref(e.canPurchase))()},[e.unref(e.component)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.component)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],14,Ut)):(0,l.createCommentVNode)("",!0)}var zt=(0,l.defineComponent)({props:{display:{type:(0,C.P5)(String,Object,Function),required:!0},visibility:{type:(0,C.P5)(Number),required:!0},style:(0,C.P5)(String,Object,Array),classes:(0,C.P5)(Object),resource:Object,cost:(0,C.P5)(String,Object,Number),canPurchase:{type:(0,C.P5)(Boolean),required:!0},bought:{type:(0,C.P5)(Boolean),required:!0},mark:(0,C.P5)(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:U,MarkNode:H},setup(e){const{display:o,cost:t}=(0,l.toRefs)(e),n=(0,l.shallowRef)("");return(0,l.watchEffect)((()=>{const r=(0,C.Uv)(o);if((()=>void 0!==r&&null!==r&&r[Symbol.for("==")]?r[Symbol.for("==")](null):null==r)())return void(n.value="");if((0,C.RU)(r))return void(n.value=(0,C.MM)(r));const i=(0,C.Uv)(t),a=(0,C.MM)(r.title||"","h3"),s=(0,C.MM)(r.description,"div"),u=(0,C.MM)(r.effectDisplay||"");n.value=(0,C.MM)((0,y.tZ)((()=>(0,l.createVNode)("span",null,[r.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(a,null,null)]):null,(0,l.createVNode)(s,null,null),r.effectDisplay?(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Currently: "),(0,l.createVNode)(u,null,null)]):null,(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()?(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Cost: "),e.resource&&x(e.resource,i)," ",e.resource?.displayName]):null]))))})),{component:n,unref:l.unref,Visibility:y.EE}}});const Lt=(0,a.Z)(zt,[["render",qt],["__scopeId","data-v-264c96b4"]]);var Gt=Lt;const Wt=Symbol("Upgrade");function Ht(e){return(0,Q.z2)((o=>{const t=Object.assign(o,e());return t.id=(0,y.QI)("upgrade-"),t.type=Wt,t[y.wA]=Gt,(()=>void 0!==t.canAfford&&null!==t.canAfford&&t.canAfford[Symbol.for("==")]?t.canAfford[Symbol.for("==")](null):null==t.canAfford)()&&((()=>void 0!==t.resource&&null!==t.resource&&t.resource[Symbol.for("==")]?t.resource[Symbol.for("==")](null):null==t.resource)()||(()=>void 0!==t.cost&&null!==t.cost&&t.cost[Symbol.for("==")]?t.cost[Symbol.for("==")](null):null==t.cost)())&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",t),t.bought=t[p.n9],(()=>void 0!==t.canAfford&&null!==t.canAfford&&t.canAfford[Symbol.for("==")]?t.canAfford[Symbol.for("==")](null):null==t.canAfford)()?t.canAfford=(0,l.computed)((()=>{const e=t;return(()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()&&(()=>void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("!=")]?e.cost[Symbol.for("!=")](null):null!=e.cost)()&&b.ZP.gte(e.resource.value,(0,l.unref)(e.cost))})):(0,J.yB)(t,"canAfford"),t.canPurchase=(0,l.computed)((()=>(0,l.unref)(t.visibility)===y.EE.Visible&&(0,l.unref)(t.canAfford)&&(()=>void 0!==(0,l.unref)(t.bought)&&null!==(0,l.unref)(t.bought)&&(0,l.unref)(t.bought)[Symbol.for("!")]?(0,l.unref)(t.bought)[Symbol.for("!")]():!(0,l.unref)(t.bought))())),t.purchase=function(){const e=t;(()=>void 0!==(0,l.unref)(e.canPurchase)&&null!==(0,l.unref)(e.canPurchase)&&(0,l.unref)(e.canPurchase)[Symbol.for("!")]?(0,l.unref)(e.canPurchase)[Symbol.for("!")]():!(0,l.unref)(e.canPurchase))()||((()=>void 0!==e.resource&&null!==e.resource&&e.resource[Symbol.for("!=")]?e.resource[Symbol.for("!=")](null):null!=e.resource)()&&(()=>void 0!==e.cost&&null!==e.cost&&e.cost[Symbol.for("!=")]?e.cost[Symbol.for("!=")](null):null!=e.cost)()&&(e.resource.value=b.ZP.sub(e.resource.value,(0,l.unref)(e.cost))),e[p.n9].value=!0,e.onPurchase?.())},(0,J.yB)(t,"visibility"),(0,y.Rh)(t,"visibility",y.EE.Visible),(0,J.yB)(t,"classes"),(0,J.yB)(t,"style"),(0,J.yB)(t,"display"),(0,J.yB)(t,"mark"),(0,J.yB)(t,"cost"),(0,J.yB)(t,"resource"),t[y.tj]=function(){const{display:e,visibility:o,style:t,classes:n,resource:r,cost:i,canPurchase:a,bought:s,mark:u,id:m,purchase:c}=this;return{display:e,visibility:o,style:(0,l.unref)(t),classes:n,resource:r,cost:i,canPurchase:a,bought:s,mark:u,id:m,purchase:c}},t}),(0,p.ax)(!1))}function $t(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&(()=>void 0!==(0,l.isVNode)(e)&&null!==(0,l.isVNode)(e)&&(0,l.isVNode)(e)[Symbol.for("!")]?(0,l.isVNode)(e)[Symbol.for("!")]():!(0,l.isVNode)(e))()}const Yt="c",Kt=(0,w.createLayer)(Yt,(()=>{const e="#4BDC13",o="Candies",t=v(0,"lollipops"),n=g(t),r=(0,p.ax)(!1),i=(0,p.ax)("pointy"),a=(0,p.ax)(10),s=(0,p.ax)(new b.ZP(10)),u=(0,l.computed)((()=>b.ZP.pow(t.value,.2))),m=(0,l.computed)((()=>b.ZP.times(t.value,10))),c=to((()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"}))),f=Vt((()=>({shouldEarn(){return b.ZP.gte(n.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}}))),h=Vt((()=>({visibility(){return(0,y.Kf)(f.earned.value)},shouldEarn(){return b.ZP.gte(n.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(jo.Z,{title:"beep","onUpdate:modelValue":e=>r.value=e,modelValue:r.value},null),(0,l.createVNode)(jo.Z,{title:"boop","onUpdate:modelValue":e=>ol.boop.value=e,modelValue:ol.boop.value},null)])))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}}))),S=[f,h],N=ut((()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder
${(0,b.Ht)(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:(()=>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(){return(0,y.Kf)(b.ZP.gt(n.value,0))},goal:20,resource:il.points,onComplete(){console.log("hiii")},onEnter(){il.points.value=0,il.best.value=il.points.value,il.total.value=il.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}}))),k=(0,l.computed)((()=>b.ZP.add(t.value,1).tetrate(.02))),V=Ht((()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:t}))),M=Ht((()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${(0,b.WU)(w.value)}x`}),cost:1,resource:t,visibility:()=>(0,y.Kf)(V.bought.value)}))),w=(0,l.computed)((()=>{let e=b.ZP.add(t.value,1).pow(.5);return e.gte("1e20000000")&&(e=e.sqrt().times("1e10000000")),e})),Z=Ht((()=>({visibility(){return(0,y.Kf)(M.bought.value)},canAfford(){return b.ZP.lt(il.points.value,7)},onPurchase(){il.points.value=b.ZP.add(il.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return this.bought?{backgroundColor:"#1111dd"}:(()=>void 0!==this.canAfford&&null!==this.canAfford&&this.canAfford[Symbol.for("!")]?this.canAfford[Symbol.for("!")]():!this.canAfford)()?{backgroundColor:"#dd1111"}:{}}}))),B=Ht((()=>({resource:v(E.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}}))),P=[V,M,Z],E=tt((()=>({resource:t,cost(){let e=new b.ZP(this.amount.value);e.gte(25)&&(e=e.pow(2).div(25));const o=b.ZP.pow(2,e.pow(1.5));return o.floor()},display(){return{title:"Exhancers",description:`Adds ${(0,b.WU)(T.value)} things and multiplies stuff by ${(0,b.WU)(F.value)}.`}},onPurchase(e){s.value=b.ZP.add(s.value,e)},style:{height:"222px"},purchaseLimit:4}))),T=(0,l.computed)((()=>b.ZP.gte(E.amount.value,0)?b.ZP.pow(25,b.ZP.pow(E.amount.value,1.1)):b.ZP.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](25):.04)(),b.ZP.times(E.amount.value,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()).pow(1.1)))),F=(0,l.computed)((()=>b.ZP.gte(E.amount.value,0)?b.ZP.pow(25,b.ZP.pow(E.amount.value,1.1)):b.ZP.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](25):.04)(),b.ZP.times(E.amount.value,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()).pow(1.1)))),I=(0,p.ax)(!1),D=(0,l.ref)(!1),R=je((()=>({small:!0,display:"Respec Thingies",onClick(){I.value&&(()=>void 0!==D.value&&null!==D.value&&D.value[Symbol.for("!")]?D.value[Symbol.for("!")]():!D.value)()?D.value=!0:(t.value=b.ZP.add(t.value,s.value),E.amount.value=0,il.tree.reset(G))}}))),O=je((()=>({small:!0,display:"Sell One",onClick(){b.ZP.lte(E.amount.value,0)||(E.amount.value=b.ZP.sub(E.amount.value,1),t.value=b.ZP.add(t.value,E.cost.value),s.value=b.ZP.sub(s.value,E.cost.value))}}))),_=(0,y.tZ)((()=>(0,l.createVNode)(Ao.Z,null,{default:()=>[(0,l.createVNode)(ie.Z,null,{default:()=>[(0,l.createVNode)(jo.Z,{title:"Confirm","onUpdate:modelValue":e=>I.value=e,modelValue:I.value},null),(0,C._4)(R)]}),(0,C._4)(E),(0,C._4)(O),(0,l.createVNode)(Ho.Z,{modelValue:D.value,"onUpdate:modelValue":e=>D.value=e},{header:()=>(0,l.createVNode)("h2",null,[(0,l.createTextVNode)("Confirm Respec")]),body:()=>(0,l.createVNode)(l.Fragment,null,[(0,l.createTextVNode)("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>(0,l.createVNode)("div",{class:"modal-default-footer"},[(0,l.createVNode)("div",{class:"modal-default-flex-grow"},null),(0,l.createVNode)("button",{class:"button modal-default-button",onClick:()=>D.value=!1},[(0,l.createTextVNode)("Cancel")]),(0,l.createVNode)("button",{class:"button modal-default-button danger",onClick:()=>{R.onClick(),D.value=!1}},[(0,l.createTextVNode)("Respec")])])})]}))),j=et((()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:Xo.Right,width:300,height:30,progress(){return b.ZP.add(il.points.value,1).log(10).div(10).toNumber()},display(){return(()=>void 0!==(0,b.WU)(il.points.value)&&null!==(0,b.WU)(il.points.value)&&(0,b.WU)(il.points.value)[Symbol.for("+")]?(0,b.WU)(il.points.value)[Symbol.for("+")](" / 1e10 points"):(0,b.WU)(il.points.value)+" / 1e10 points")()}}))),A=et((()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:Xo.Up,width:50,height:200,progress(){return b.ZP.div(il.points.value,100)},display(){return(()=>void 0!==(0,b.Ht)(b.ZP.div(il.points.value,1).min(100))&&null!==(0,b.Ht)(b.ZP.div(il.points.value,1).min(100))&&(0,b.Ht)(b.ZP.div(il.points.value,1).min(100))[Symbol.for("+")]?(0,b.Ht)(b.ZP.div(il.points.value,1).min(100))[Symbol.for("+")]("%"):(0,b.Ht)(b.ZP.div(il.points.value,1).min(100))+"%")()}}))),U=et((()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:Xo.Up,width:100,height:30,progress(){return b.ZP.div(t.value,50)}}))),q=Le((()=>({scaling:He(ze(10,.5),1e100,.5),baseResource:il.points,gainResource:t,roundUpCost:!0,gainModifier:Po(Bo(2,"Because I felt like it"),wo(1,"Nice modifier"))}))),z=fo((()=>({thingsToReset:()=>[Kt]}))),L=[ft((()=>({key:"c",description:"reset for lollipops or whatever",onPress(){W.canClick.value&&W.onClick()}}))),ft((()=>({key:"ctrl+c",description:"respec things",onPress(){R.onClick()}})))],G=Ue((()=>({layerID:Yt,color:e,reset:z,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let e=x(t);return b.ZP.gt(E.amount.value,0)&&(e=(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](`



${(0,b.Ht)(E.amount.value)} Exhancers
`):e+`



${(0,b.Ht)(E.amount.value)} Exhancers
`)()),e},style:{color:"#3325CC",textDecoration:"underline"}})));(0,Co.Z)(G,{display:ne(t),pinnable:!0});const W=Ae((()=>({conversion:q,tree:il.tree,treeNode:G,style:{color:"#AA66AA"},resetDescription:"Melt your points into "})));(0,Co.Z)(W,{display:(0,y.tZ)((()=>Eo("Modifiers","",q.gainModifier,q.scaling.currentGain(q)))),pinnable:!0,direction:Co.A.DOWN,style:"width: 400px; text-align: left"});const H=oe((()=>({display:"TH",color:"#6d3678",canClick(){return b.ZP.gte(il.points.value,10)},tooltip:"Thanos your points",onClick(){il.points.value=b.ZP.div(il.points.value,2),console.log("Thanos'd")},glowColor(){return b.ZP.eq(E.amount.value,1)?"orange":""}}))),$=oe((()=>({display:"h",color(){return ge.Z[Se.ZP.theme].variables["--locked"]},tooltip:{display:(0,l.computed)((()=>`Restore your points to ${(0,b.WU)(a.value)}`)),right:!0},canClick(){return b.ZP.lt(il.points.value,a.value)},onClick(){il.points.value=a.value}}))),Y=oe((()=>({visibility:y.EE.Hidden}))),K=te((()=>({nodes(){return[[ol.treeNode,G],[H,Y,$]]},branches(){return[{startNode:ol.treeNode,endNode:G,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:G,endNode:H},{startNode:H,endNode:$}]}}))),J=yt((()=>({links:[{startNode:$,endNode:U,"stroke-width":"5px",stroke:"red",offsetEnd:{x:(()=>(-50)[Symbol.for("+")]?(-50)[Symbol.for("+")](100*U.progress.value.toNumber()):100*U.progress.value.toNumber()-50)(),y:0}}]}))),Q=At({first:()=>({tab:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,C._4)(...P),(0,C._4)(B),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("confirmed")])]))),display:"first"}),second:()=>({tab:ol.display,display:"second"})},(()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}}))),X=At({mainTab:()=>({tab:Bt((()=>({display:(0,y.tZ)((()=>{let o;return(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(Mo,{resource:t,color:e,effectDisplay:`which are boosting waffles by ${(0,b.WU)(u.value)} and increasing the Ice Cream cap by ${(0,b.WU)(m.value)}`},null),(0,l.createVNode)(zo,null,$t(o=(0,C.sY)(W))?o:{default:()=>[o]}),(0,l.createVNode)(po,{resource:t,color:e},null),(0,l.createVNode)(d,{height:"5px"},null),(0,l.createVNode)("button",{onClick:()=>console.log("yeet")},[(0,l.createTextVNode)("'HI'")]),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Name your points!")]),(0,l.createVNode)(_o.Z,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e},null),(0,l.createVNode)(zo,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[(0,l.createTextVNode)("I have "),x(il.points),(0,l.createTextVNode)(" "),i.value,(0,l.createTextVNode)(" points!")]}),(0,l.createVNode)("hr",null,null),(0,C.Dy)(...S),(0,l.createVNode)(d,null,null),(0,C._4)(...P),(0,C._4)(B),(0,C._4)(N)])}))}))),display:"main tab",glowColor(){return V.canPurchase.value||M.canPurchase.value||Z.canPurchase.value||N.canComplete.value?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:Bt((()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,C.sY)(_),(0,l.createVNode)(d,null,null),(0,l.createVNode)(ie.Z,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[(0,l.createVNode)(jo.Z,{"onUpdate:modelValue":e=>r.value=e,modelValue:r.value},null),(0,l.createVNode)(d,{width:"30px",height:"10px"},null),(0,l.createVNode)("div",null,[(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Beep")])]),(0,l.createVNode)(d,null,null),(0,l.createVNode)(Wo,{height:"200px"},null)]}),(0,l.createVNode)(d,null,null),(0,l.createVNode)("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)])))}))),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:Bt((()=>({display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,C.sY)(c),(0,C.sY)(j),(0,l.createVNode)(d,null,null),(0,l.createVNode)(ie.Z,null,{default:()=>[(0,l.createVNode)(Ao.Z,{style:"background-color: #555555; padding: 15px"},{default:()=>[(0,l.createVNode)("div",{style:"color: teal"},[(0,l.createTextVNode)("Sugar level:")]),(0,l.createVNode)(d,null,null),(0,C.sY)(A)]}),(0,l.createVNode)(d,null,null),(0,l.createVNode)(Ao.Z,null,{default:()=>[(0,l.createVNode)("div",null,[(0,l.createTextVNode)("idk")]),(0,l.createVNode)(d,{width:"0",height:"50px"},null),(0,C.sY)(U)]})]}),(0,l.createVNode)(d,null,null),(0,l.createVNode)("div",null,[(0,l.createTextVNode)('It\'s jail because "bars"! So funny! Ha ha!')]),(0,C.sY)(K)])))}))),display:"jail"}),illuminati:()=>({tab:Bt((()=>({display:(0,y.tZ)((()=>(0,l.createVNode)("div",null,[(0,l.createVNode)("h1",null,[(0,l.createTextVNode)(" C O N F I R M E D ")]),(0,l.createVNode)(d,null,null),(0,C.sY)(Q),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Adjust how many points H gives you!")]),(0,l.createVNode)(Oo,{"onUpdate:modelValue":e=>a.value=e,modelValue:a.value,min:1,max:30},null)]))),style:{backgroundColor:"#3325CC"}}))),visibility(){return(0,y.Kf)(Z.bought.value)},display:"illuminati"})});return{id:Yt,color:e,name:o,points:t,best:n,beep:r,thingy:i,otherThingy:a,spentOnBuyables:s,waffleBoost:u,icecreamCap:m,coolInfo:c,lollipopMilestones:S,funChallenge:N,funEffect:k,generatorUpgrade:V,lollipopMultiplierUpgrade:M,lollipopMultiplierEffect:w,unlockIlluminatiUpgrade:Z,quasiUpgrade:B,exhancers:E,respecBuyables:R,sellExhancer:O,bars:{tallBoi:A,longBoi:j,flatBoi:U},tree:K,g:H,h:$,spook:Y,conversion:q,reset:z,hotkeys:L,treeNode:G,resetButton:W,confirmRespec:I,minWidth:800,tabs:X,display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,C.sY)(X),(0,C.sY)(J)])))}}));var Jt=Kt,Qt=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}}}]}');const Xt="f",el=(0,w.createLayer)(Xt,(()=>{const e="#FE0102",o="Farms",t=v(0,"farm points"),n=(0,p.ax)(!1),r=to((()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}}))),i=(0,p.ax)("Start"),a=je((()=>({display(){return{title:"Clicky clicky!",description:(()=>"Current state:
"[Symbol.for("+")]?"Current state:
"[Symbol.for("+")](i.value):"Current state:
"+i.value)()}},initialState:"Start",canClick(){return(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!==")]?i.value[Symbol.for("!==")]("Borkened..."):"Borkened..."!==i.value)()},onClick(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...":const o=(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](void 0):void 0==e)()?void 0:(()=>"touches"[Symbol.for("in")]?"touches"[Symbol.for("in")](e):"touches"in e)()?e.touches[0]:e,t=Object.assign({},Qt,{pos:{x:(()=>void 0!==(o?.clientX??0)&&null!==(o?.clientX??0)&&(o?.clientX??0)[Symbol.for("-")]?(o?.clientX??0)[Symbol.for("-")](h.boundingRect?.value?.left??0):(o?.clientX??0)-(h.boundingRect?.value?.left??0))(),y:(()=>void 0!==(o?.clientY??0)&&null!==(o?.clientY??0)&&(o?.clientY??0)[Symbol.for("-")]?(o?.clientY??0)[Symbol.for("-")](h.boundingRect?.value?.top??0):(o?.clientY??0)-(h.boundingRect?.value?.top??0))()}});h.addEmitter(t).then((e=>e.playOnceAndDestroy())),i.value="Borkened...";break;default:i.value="Start";break}},onHold(){console.log("Clickkkkk...")},style(){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{}}}}))),s=je((()=>({onClick(){(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("==")]?i.value[Symbol.for("==")]("Borkened..."):"Borkened..."==i.value)()&&(i.value="Start")},display(){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}))),u=fo((()=>({thingsToReset:()=>[el]}))),m=Ge((()=>({scaling:ze(10,.5),baseResource:il.points,gainResource:t,modifyGainAmount:Zo(Jt.otherThingy)}))),c=Ue((()=>({layerID:Xt,color:e,reset:u,tooltip(){return c.canClick.value?`${x(t)} ${t.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${x(il.points)}`},canClick(){return b.ZP.gte(il.points.value,10)}})));(0,Co.Z)(c,{display:ne(t),pinnable:!0});const f=Ae((()=>({conversion:m,tree:il.tree,treeNode:c,display:(0,y.tZ)((()=>f.conversion.buyMax?(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Hi! I'm a "),(0,l.createVNode)("u",null,[(0,l.createTextVNode)("weird dinosaur")]),(0,l.createTextVNode)(" and I'll give you")," ",(0,l.createVNode)("b",null,[(0,b.Ht)(f.conversion.currentGain.value)]),(0,l.createTextVNode)(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",(0,b.Ht)(f.conversion.nextAt.value),(0,l.createTextVNode)(" points)")]):(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Hi! I'm a "),(0,l.createVNode)("u",null,[(0,l.createTextVNode)("weird dinosaur")]),(0,l.createTextVNode)(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",(0,b.Ht)(f.conversion.nextAt.value),(0,l.createTextVNode)(" points)")])))}))),h=mo((()=>({boundingRect:(0,l.ref)(null),onContainerResized(e){this.boundingRect.value=e},style:"z-index: 2"}))),g=(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,C.sY)(r),(0,l.createVNode)(Mo,{resource:t,color:e},null),(0,C.sY)(f),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("You have "),(0,b.Ht)(m.baseResource.value),(0,l.createTextVNode)(" points")]),(0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createVNode)("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),(0,l.createVNode)("div",null,[(0,l.createTextVNode)("Bork Bork!")])]),(0,l.createVNode)(d,null,null),(0,C._4)(s),(0,C._4)(a),(0,C.sY)(h)])));return{id:Xt,color:e,name:o,points:t,boop:n,coolInfo:r,clickable:a,clickableState:i,reset:u,conversion:m,treeNode:c,resetButton:f,display:g}}));var ol=el;function tl(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&(()=>void 0!==(0,l.isVNode)(e)&&null!==(0,l.isVNode)(e)&&(0,l.isVNode)(e)[Symbol.for("!")]?(0,l.isVNode)(e)[Symbol.for("!")]():!(0,l.isVNode)(e))()}const ll="a",nl=(0,w.createLayer)(ll,(()=>{const e="yellow",o="Achievements",t=v(0,"achievement power"),n=oe((()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){il.showAchievements()}}))),r=pe((()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:(0,l.computed)((()=>r.earned.value?"You did it!":"How did this happen?")),shouldEarn:()=>!0}))),i=pe((()=>({display:"Impossible!",tooltip:(0,l.computed)((()=>i.earned.value?"HOW????":"Mwahahaha!")),style:{color:"#04e050"}}))),a=pe((()=>({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(ol.points.value,1)},onComplete(){console.log("Bork bork bork!")}}))),s=[r,i,a],u=Fe((()=>({rows:2,cols:2,getStartState(e){return e},getStyle(e,o){return{backgroundColor:`#${(()=>1234*Number(o)!==void 0&&1234*Number(o)!==null&&(1234*Number(o))[Symbol.for("%")]?(1234*Number(o))[Symbol.for("%")](999999):1234*Number(o)%999999)()}`}},getTitle(e){let o="";return"101"===e?o="top":"102"===e?o="bottom":"201"===e?o="left":"202"===e&&(o="right"),(0,y.tZ)((()=>(0,l.createVNode)(ae.Z,(0,l.mergeProps)({display:JSON.stringify(this.cells[e].style)},{[o]:!0}),{default:()=>[(0,l.createVNode)("h3",null,[(0,l.createTextVNode)("Gridable #"),e])]})))},getDisplay(e,o){return String(o)},getCanClick(){return b.ZP.eq(il.points.value,10)},onClick(e,o){this.cells[e].state=(()=>void 0!==Number(o)&&null!==Number(o)&&Number(o)[Symbol.for("+")]?Number(o)[Symbol.for("+")](1):Number(o)+1)()}}))),m=(0,y.tZ)((()=>{let e,o,t;return(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(ie.Z,null,{default:()=>[(0,l.createVNode)(ae.Z,{display:r.tooltip,bottom:!0},tl(e=(0,C.sY)(r))?e:{default:()=>[e]}),(0,l.createVNode)(ae.Z,{display:i.tooltip,bottom:!0},tl(o=(0,C.sY)(i))?o:{default:()=>[o]}),(0,l.createVNode)(ae.Z,{display:a.tooltip,bottom:!0},tl(t=(0,C.sY)(a))?t:{default:()=>[t]})]}),(0,C._4)(u)])}));return{id:ll,color:e,name:o,points:t,achievements:s,grid:u,treeNode:n,display:m}}));var rl=nl;const il=(0,w.createLayer)("main",(()=>{const e=v(10),o=g(e),t=S(e),n=(0,l.computed)((()=>{if((()=>void 0!==Jt.generatorUpgrade.bought.value&&null!==Jt.generatorUpgrade.bought.value&&Jt.generatorUpgrade.bought.value[Symbol.for("!")]?Jt.generatorUpgrade.bought.value[Symbol.for("!")]():!Jt.generatorUpgrade.bought.value)())return new b.ZP(0);let e=new b.ZP(3.19);return Jt.lollipopMultiplierUpgrade.bought.value&&(e=e.times(Jt.lollipopMultiplierEffect.value)),e}));h.globalBus.on("update",(o=>{e.value=b.ZP.add(e.value,b.ZP.times(n.value,o))}));const r=V(e,n),{openModal:i,modal:a}=(0,w.setupLayerModal)(rl),s=te((()=>({nodes:[[Jt.treeNode],[ol.treeNode,Jt.spook]],leftSideNodes:[rl.treeNode,Jt.h],branches:[{startNode:ol.treeNode,endNode:Jt.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=(0,l.toRaw)(this.resettingNode.value)===(0,l.toRaw)(Jt.treeNode)?0:10,o.value=e.value,t.value=e.value},resetPropagation:le})));return{name:"Tree",display:(0,y.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Game Paused")]),[[l.vShow,0===re.Z.devSpeed]]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Dev Speed: "),(0,b.WU)(re.Z.devSpeed||0),(0,l.createTextVNode)("x")]),[[l.vShow,re.Z.devSpeed&&(()=>void 0!==re.Z.devSpeed&&null!==re.Z.devSpeed&&re.Z.devSpeed[Symbol.for("!==")]?re.Z.devSpeed[Symbol.for("!==")](1):1!==re.Z.devSpeed)()]]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Offline Time: "),(0,b.mr)(re.Z.offlineTime||0)]),[[l.vShow,(()=>void 0!==re.Z.offlineTime&&null!==re.Z.offlineTime&&re.Z.offlineTime[Symbol.for("!=")]?re.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=re.Z.offlineTime)()]]),(0,l.createVNode)("div",null,[(0,l.withDirectives)((0,l.createVNode)("span",null,[(0,l.createTextVNode)("You have ")]),[[l.vShow,b.ZP.lt(e.value,"1e1000")]]),(0,l.createVNode)("h2",null,[(0,b.WU)(e.value)]),(0,l.withDirectives)((0,l.createVNode)("span",null,[(0,l.createTextVNode)(" points")]),[[l.vShow,b.ZP.lt(e.value,"1e1e6")]])]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("("),r.value,(0,l.createTextVNode)(")")]),[[l.vShow,b.ZP.gt(n.value,0)]]),(0,l.createVNode)(d,null,null),(0,l.createVNode)("button",{onClick:i},[(0,l.createTextVNode)("open achievements")]),(0,C.sY)(a),(0,C.sY)(s),(0,l.createVNode)(m,{height:"200px",style:"margin: 10px auto; display: block"},null)]))),points:e,best:o,total:t,oomps:r,tree:s,showAchievements:i}})),al=e=>[il,ol,Jt,rl],sl=(0,l.computed)((()=>b.ZP.gt(il.points.value,25)));function ul(e,o){}},9365:function(e,o,t){"use strict";t.r(o),t.d(o,{RegisterNodeInjectionKey:function(){return f},UnregisterNodeInjectionKey:function(){return d},NodesInjectionKey:function(){return y},layers:function(){return b},persistentRefs:function(){return h},addingLayers:function(){return p},createLayer:function(){return v},addLayer:function(){return g},getLayer:function(){return S},removeLayer:function(){return N},reloadLayer:function(){return k},setupLayerModal:function(){return V}});var l=t(4865),n=t(6948),r=t(6113),i=t(9583),a=t(3273),s=t(8111),u=t(7302),m=t(4061),c=t(5967);const f=Symbol("RegisterNode"),d=Symbol("UnregisterNode"),y=Symbol("Nodes"),b={};window.layers=b;const h={},p=[];function v(e,o){return(0,a.z2)((()=>{const t={},n=t.emitter=(0,s.i)();if(t.on=n.on.bind(n),t.emit=n.emit.bind(n),t.nodes=(0,l.ref)({}),t.id=e,p.push(e),h[e]=new Set,t.minimized=(0,m.ax)(!1),Object.assign(t,o.call(t)),(()=>void 0!==p[p.length-1]&&null!==p[p.length-1]&&p[p.length-1][Symbol.for("==")]?p[p.length-1][Symbol.for("==")](null):null==p[p.length-1])()||(()=>void 0!==p[p.length-1]&&null!==p[p.length-1]&&p[p.length-1][Symbol.for("!==")]?p[p.length-1][Symbol.for("!==")](e):p[p.length-1]!==e)())throw`Adding layers stack in invalid state. This should not happen\nStack: ${p}\nTrying to pop ${t.id}`;return p.pop(),(0,i.yB)(t,"color"),(0,i.yB)(t,"display"),(0,i.yB)(t,"name"),(0,r.Rh)(t,"name",t.id),(0,i.yB)(t,"minWidth"),(0,r.Rh)(t,"minWidth",600),(0,i.yB)(t,"minimizable"),(0,r.Rh)(t,"minimizable",!0),t}))}function g(e,o){console.info("Adding layer",e.id),b[e.id]?console.error("Attempted to add layer with same ID as existing layer",e.id,b[e.id]):((0,r.Rh)(o,"layers",{}),(()=>void 0!==o.layers[e.id]&&null!==o.layers[e.id]&&o.layers[e.id][Symbol.for("==")]?o.layers[e.id][Symbol.for("==")](null):null==o.layers[e.id])()&&(o.layers[e.id]={}),b[e.id]=e,u.globalBus.emit("addLayer",e,o.layers[e.id]))}function S(e){return b[e]}function N(e){console.info("Removing layer",e.id),u.globalBus.emit("removeLayer",e),b[e.id]=void 0}function k(e){N(e),g(e,c.Z)}function V(e){const o=(0,l.ref)(!1);return{openModal:()=>o.value=!0,modal:(0,r.tZ)((()=>(0,l.createVNode)(n.Z,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e},{header:()=>(0,l.createVNode)("h2",null,[(0,l.unref)(e.name)]),body:(0,l.unref)(e.display)})))}}u.globalBus.on("update",(function(e){Object.values(b).forEach((o=>{o?.emit("preUpdate",e)})),Object.values(b).forEach((o=>{o?.emit("update",e)})),Object.values(b).forEach((o=>{o?.emit("postUpdate",e)}))}))},1604:function(e,o,t){"use strict";t.d(o,{MM:function(){return u},sY:function(){return m},_4:function(){return c},Dy:function(){return f},qF:function(){return d},RU:function(){return y},ix:function(){return b},vq:function(){return h},KO:function(){return p},o9:function(){return v},Uv:function(){return g},P5:function(){return S}});var l=t(4865),n=t(9905),r=t(274),i=t(6113),a=t(9583);function s(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&(()=>void 0!==(0,l.isVNode)(e)&&null!==(0,l.isVNode)(e)&&(0,l.isVNode)(e)[Symbol.for("!")]?(0,l.isVNode)(e)[Symbol.for("!")]():!(0,l.isVNode)(e))()}function u(e,o="span"){return"function"===typeof e?(0,l.defineComponent)({render:e}):"string"===typeof e?(()=>void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0)()?(e=e.trim(),(()=>void 0!==e.charAt(0)&&null!==e.charAt(0)&&e.charAt(0)[Symbol.for("!==")]?e.charAt(0)[Symbol.for("!==")]("<"):"<"!==e.charAt(0))()&&(e=`<${o}>${e}`),(0,l.defineComponent)({template:e})):(0,l.defineComponent)({render:()=>({})}):e}function m(e){if(y(e))return"function"===typeof e?e():u(e);const o=e[i.wA];return(0,l.createVNode)(o,e[i.tj](),null)}function c(...e){let o;return(0,l.createVNode)(r.Z,null,s(o=e.map(m))?o:{default:()=>[o]})}function f(...e){let o;return(0,l.createVNode)(n.Z,null,s(o=e.map(m))?o:{default:()=>[o]})}function d(e){if(y(e)){if("function"===typeof e)return e();if("string"===typeof e)return(0,l.createVNode)(l.Fragment,null,[e]);const o=e;return(0,l.createVNode)(o,null,null)}const o=e[i.wA];return(0,l.createVNode)(o,e[i.tj](),null)}function y(e){return"string"===typeof e||("object"===typeof e?!(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)()&&((()=>"render"[Symbol.for("in")]?"render"[Symbol.for("in")](e):"render"in e)()||(()=>"component"[Symbol.for("in")]?"component"[Symbol.for("in")](e):"component"in e)()):"function"===typeof e&&!0===e[a.mM])}function b(e,o){const t=(0,l.ref)(null),n=(0,l.ref)(void 0);function r(e){(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value)()&&(t.value=setInterval(a,250)),n.value=e}function i(){t.value&&(clearInterval(t.value),t.value=null)}function a(){o&&o.value?o.value():e&&e.value&&e.value(n.value)}return(0,l.onUnmounted)(i),{start:r,stop:i,handleHolding:a}}function h(e,o="div"){const t=(0,l.shallowRef)();return(0,l.watchEffect)((()=>{t.value=u(g(e),o)})),t}function p(e,o="div"){const t=(0,l.shallowRef)(null);return(0,l.watchEffect)((()=>{const l=g(e);t.value=(()=>void 0!==l&&null!==l&&l[Symbol.for("==")]?l[Symbol.for("==")](null):null==l)()?null:u(l,o)})),t}function v(e){return(0,l.computed)((()=>g(e)))}function g(e){return(0,l.unref)((0,l.unref)(e))}function S(...e){return(()=>void 0!==e.includes(Object)&&null!==e.includes(Object)&&e.includes(Object)[Symbol.for("!")]?e.includes(Object)[Symbol.for("!")]():!e.includes(Object))()&&e.push(Object),e}},5053:function(e,o,t){"use strict";t.d(o,{Z:function(){return a}});var l=t(4865),n=t(9365),r=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)({});o({nodes:t});const r={attributes:!0,childList:!0,subtree:!1};function i(e){const o=t.value[e];(()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()||(o.rect=o.element.getBoundingClientRect())}return(0,l.provide)(n.RegisterNodeInjectionKey,((e,o)=>{const n=new MutationObserver((()=>i(e)));n.observe(o,r),t.value[e]={element:o,observer:n,rect:o.getBoundingClientRect()},(0,l.nextTick)((()=>i(e)))})),(0,l.provide)(n.UnregisterNodeInjectionKey,(e=>{t.value[e]?.observer.disconnect(),t.value[e]=void 0})),(0,l.provide)(n.NodesInjectionKey,t),(e,o)=>(0,l.renderSlot)(e.$slots,"default")}});const i=r;var a=i},6948:function(e,o,t){"use strict";t.d(o,{Z:function(){return h}});var l=t(4865),n=t(5053);const r=["onPointerdown"],i={class:"modal-wrapper"},a={class:"modal-container"},s={class:"modal-header"},u=(0,l.createTextVNode)(" default header "),m={class:"modal-body"},c=(0,l.createTextVNode)(" default body "),f={class:"modal-footer"},d=(0,l.createElementVNode)("div",{class:"modal-default-flex-grow"},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());var y=(0,l.defineComponent)({props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:o,emit:t}){const y=e,b=(0,l.toRefs)(y),h=(0,l.computed)((()=>b.modelValue||v.value));function p(){t("update:modelValue",!1)}const v=(0,l.ref)(!1),g=(0,l.ref)(null),S=(0,l.computed)((()=>g.value?.nodes??null));return o({isOpen:h,nodes:S}),(o,t)=>((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:"#modal-root"},[(0,l.createVNode)(l.Transition,{name:"modal",onBeforeEnter:t[0]||(t[0]=e=>v.value=!0),onAfterLeave:t[1]||(t[1]=e=>v.value=!1)},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",(0,l.mergeProps)({class:"modal-mask",onPointerdown:(0,l.withModifiers)(p,["self"])},o.$attrs),[(0,l.createElementVNode)("div",i,[(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("div",s,[(0,l.renderSlot)(o.$slots,"header",{shown:(0,l.unref)(h)},(()=>[u]))]),(0,l.createElementVNode)("div",m,[(0,l.createVNode)(n.Z,{ref_key:"contextRef",ref:g},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(o.$slots,"body",{shown:(0,l.unref)(h)},(()=>[c]))])),_:3},512)]),(0,l.createElementVNode)("div",f,[(0,l.renderSlot)(o.$slots,"footer",{shown:(0,l.unref)(h)},(()=>[(0,l.createElementVNode)("div",{class:"modal-default-footer"},[d,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:p}," Close ")])]))])])])],16,r),[[l.vShow,e.modelValue]])])),_:3})]))}});const b=y;var h=b},3525:function(e,o,t){"use strict";t.d(o,{Z:function(){return m}});var l=t(4865),n=t(1604),r=t(9179);const i={class:"field"},a={key:0,class:"field-title"};var s=(0,l.defineComponent)({props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,s=(0,n.KO)((0,l.toRef)(t,"title"),"span"),u=(0,l.ref)(t.options.find((e=>e.value===t.modelValue)));function m(e){o("update:modelValue",e.value)}return(0,l.watch)((0,l.toRef)(t,"modelValue"),(e=>{(()=>void 0!==u.value?.value&&null!==u.value?.value&&u.value?.value[Symbol.for("!==")]?u.value?.value[Symbol.for("!==")](e):u.value?.value!==e)()&&(u.value=t.options.find((o=>o.value===e)))})),(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("span",a,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(s))))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(r.Z),{options:e.options,modelValue:u.value,"onUpdate:modelValue":[t[0]||(t[0]=e=>u.value=e),m],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const u=s;var m=u},4520:function(e,o,t){"use strict";t.d(o,{Z:function(){return d}});var l=t(4865),n=t(1604),r=t(7197);const i=["onSubmit"],a={class:"field"},s={key:0,class:"field-title"},u=["placeholder"];var m=(0,l.defineComponent)({props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:o}){const t=e,m=(0,l.toRefs)(t),c=(0,l.computed)((()=>m.title?.value&&(0,n.MM)((0,l.unref)(m.title.value),"span"))),f=(0,l.ref)(null);(0,l.onMounted)((()=>{f.value?.focus()}));const d=(0,l.computed)({get(){return(0,l.unref)(m.modelValue)||""},set(e){o("update:modelValue",e)}});function y(){o("submit")}return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("form",{onSubmit:(0,l.withModifiers)(y,["prevent"])},[(0,l.createElementVNode)("div",a,[(0,l.unref)(c)?((0,l.openBlock)(),(0,l.createElementBlock)("span",s,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(c))))])):(0,l.createCommentVNode)("",!0),e.textArea?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(r.Z),{key:1,modelValue:(0,l.unref)(d),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.isRef)(d)?d.value=e:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:y,ref_key:"field",ref:f},null,8,["modelValue","placeholder","maxHeight"])):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:2,type:"text","onUpdate:modelValue":t[1]||(t[1]=e=>(0,l.isRef)(d)?d.value=e:null),placeholder:e.placeholder,class:(0,l.normalizeClass)({fullWidth:(()=>void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title)()}),onBlur:y,ref_key:"field",ref:f},null,42,u)),[[l.vModelText,(0,l.unref)(d)]])])],40,i))}}),c=t(3744);const f=(0,c.Z)(m,[["__scopeId","data-v-8bda704a"]]);var d=f},9868:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865),n=t(1604);const r={class:"field"};var i=(0,l.defineComponent)({props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,i=(0,l.computed)((()=>(0,n.MM)((0,l.unref)(t.title)||"","span"))),a=(0,l.computed)({get(){return(()=>void 0!==!t.modelValue&&null!==!t.modelValue&&(!t.modelValue)[Symbol.for("!")]?(!t.modelValue)[Symbol.for("!")]():!!t.modelValue)()},set(e){o("update:modelValue",e)}});return(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("label",r,[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=e=>(0,l.isRef)(a)?a.value=e:null)},null,512),[[l.vModelCheckbox,(0,l.unref)(a)]]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i))))]))}}),a=t(3744);const s=(0,a.Z)(i,[["__scopeId","data-v-43cf95d0"]]);var u=s},9905:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865),n=t(1037),r=t(9266);const i={class:"table"};var a=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>n.Z[r.ZP.theme].mergeAdjacent));return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["col",{mergeAdjacent:(0,l.unref)(o)}])},[(0,l.renderSlot)(e.$slots,"default")],2)]))}});const s=a;var u=s},274:function(e,o,t){"use strict";t.d(o,{Z:function(){return u}});var l=t(4865),n=t(1037),r=t(9266);const i={class:"table"};var a=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>n.Z[r.ZP.theme].mergeAdjacent));return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["row",{mergeAdjacent:(0,l.unref)(o)}])},[(0,l.renderSlot)(e.$slots,"default")],2)]))}});const s=a;var u=s},264:function(e,o,t){"use strict";t.d(o,{Z:function(){return y}});var l=t(4865);const n={key:0,class:"material-icons pinned"};function r(e,o,t,r,i,a){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["tooltip-container",{shown:e.isShown}]),onMouseenter:o[0]||(o[0]=o=>e.isHovered=!0),onMouseleave:o[1]||(o[1]=o=>e.isHovered=!1),onClickCapture:o[2]||(o[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[(0,l.renderSlot)(e.$slots,"default",{},void 0,!0),e.elementComp?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.elementComp),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((()=>[e.isShown?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["tooltip",{top:e.unref(e.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,l.normalizeStyle)([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},e.unref(e.style)??{}])},[e.showPin?((0,l.openBlock)(),(0,l.createElementBlock)("span",n,"push_pin")):(0,l.createCommentVNode)("",!0),e.comp?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.comp),{key:1})):(0,l.createCommentVNode)("",!0)],6)):(0,l.createCommentVNode)("",!0)])),_:1})],34)}var i=t(1037),a=t(6113),s=t(9266),u=t(1604),m=t(4096),c=(0,l.defineComponent)({props:{element:(0,u.P5)(Object),display:{type:(0,u.P5)(Object,String,Function),required:!0},style:(0,u.P5)(Object,String,Array),classes:(0,u.P5)(Object),direction:(0,u.P5)(Number),xoffset:(0,u.P5)(String),yoffset:(0,u.P5)(String),pinned:Object},setup(e){const{element:o,display:t,pinned:n}=(0,l.toRefs)(e),r=(0,l.ref)(!1),c=(0,l.computed)((()=>((0,u.Uv)(n)||r.value)&&f.value)),f=(0,u.KO)(t),d=(0,l.shallowRef)(null);function y(e){const o=n;e.shiftKey&&o&&(o.value=(()=>void 0!==o.value&&null!==o.value&&o.value[Symbol.for("!")]?o.value[Symbol.for("!")]():!o.value)(),e.stopPropagation(),e.preventDefault())}(0,l.watchEffect)((()=>{const e=(0,u.Uv)(o);d.value=(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)()?null:(0,u.MM)((0,a.tZ)((()=>(0,u.sY)(e))))}));const b=(0,l.computed)((()=>(0,u.Uv)(n)&&i.Z[s.ZP.theme].showPin));return{TooltipDirection:m.A,isHovered:r,isShown:c,comp:f,elementComp:d,unref:l.unref,togglePinned:y,showPin:b}}}),f=t(3744);const d=(0,f.Z)(c,[["render",r],["__scopeId","data-v-adb5f26e"]]);var y=d},7634:function(e){function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=function(){return[]},o.resolve=o,o.id=7634,e.exports=o},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}')}},o={};function t(l){var n=o[l];if(void 0!==n)return n.exports;var r=o[l]={id:l,loaded:!1,exports:{}};return e[l].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=e,function(){var e=[];t.O=function(o,l,n,r){if(!l){var i=1/0;for(m=0;m=r)&&Object.keys(t.O).every((function(e){return t.O[e](l[s])}))?l.splice(s--,1):(a=!1,r0&&e[m-1][2]>r;m--)e[m]=e[m-1];e[m]=[l,n,r]}}(),function(){t.n=function(e){var o=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(o,{a:o}),o}}(),function(){t.d=function(e,o){for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){var e={143:0};t.O.j=function(o){return 0===e[o]};var o=function(o,l){var n,r,i=l[0],a=l[1],s=l[2],u=0;if(i.some((function(o){return 0!==e[o]}))){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(s)var m=s(t)}for(o&&o(l);u