16 lines
138 KiB
JavaScript
16 lines
138 KiB
JavaScript
|
/* empty css */import"./vue.92681fcb.js";import{Z as S,u as Sn,q as Ht,C as l,b1 as Le,aa as R,aE as _,a0 as M,a1 as m,aK as Ge,G as re,t as T,aC as Kn,w as Te,b2 as Ae,a8 as c,O as V,ao as Bi,I as le,ay as cn,ar as bt,aG as Yt,A as fe,_ as U,b6 as F,b8 as Mn,bs as Di,aq as _t,bu as Lt,bb as dn,T as Oi,a7 as y,j as Ri,l as ce,bv as Un,J as L,$ as E,aH as Xe,aF as Ze,al as sn,aL as dt,aN as ve,z as Je,H as Vi,aJ as Jn,bn as qi,br as Li,be as Ui}from"./@vue.4ce677c2.js";import{i as Gi}from"./is-plain-object.906d88e8.js";import{c as Xn}from"./nanoevents.1080beb7.js";import{L as ut}from"./lz-string.731cedc5.js";import{Y as Hi}from"./vue-next-select.a2bfab1d.js";import{s as ji,u as Zn}from"./vue-toastification.6f567382.js";import{D as zi}from"./vuedraggable.7949458c.js";import{p as Wi}from"./vue-textarea-autosize.35804eaf.js";import{v as Qi,n as Ki}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const Ji=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}};Ji();const Xi="modulepreload",Gn={},Zi="./",rn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${Zi}${i}`,i in Gn)return;Gn[i]=!0;const s=i.endsWith(".css"),r=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${r}`))return;const o=document.createElement("link");if(o.rel=s?"stylesheet":Xi,s||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),s)return new Promise((u,f)=>{o.addEventListener("load",u),o.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Yi="./projInfo-schema.json",es="Advent Incremental",ts="An incremental game you play a day at a time, leading up to Christmas!",ns="advent-incremental",is="thepaperpilot",ss="",rs="",as="0.2",ls="Initial Commit",os=!0,us=!1,cs=2,ds=!0,fs=null,ms="",hs=["main"],ps=3600,gs=0,vs=!0,ys="base64";var Q={$schema:Yi,title:es,description:ts,id:ns,author:is,discordName:ss,discordLink:rs,versionNumber:as,versionTitle:ls,allowGoBack:os,defaultShowSmall:us,defaultDecimalsShown:cs,useHeader:ds,banner:fs,logo:ms,initialTabs:hs,maxTickLength:ps,offlineLimit:gs,enablePausing:vs,exportEncoding:ys};const wn=17,bs=9e15,_s=Math.log10(9e15),ws=1/9e15,Ns=308,ks=-324,Hn=5,Cs=function(){const e=[];for(let n=ks+1;n<=Ns;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),pt=[2,Math.E,3,4,5,6,7,8,9,10],Ss=[[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.3632807
|
||
|
`,e),await vt(Mt())}}function Mt(){const e=tn(),t=ui({id:e});return Re(t),ne.saves.push(e),t}function tn(){let e,t=0;do e=`${Q.id}-${t++}`;while(localStorage.getItem(e));return e}async function vt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await rn(()=>Promise.resolve().then(function(){return vr}),void 0),{fixOldSave:s,getInitialLayers:r}=await rn(()=>Promise.resolve().then(function(){return ki}),void 0);for(const o in t){const u=t[o];u&&n(u)}r(e).forEach(o=>i(o,e)),e=ui(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==Q.versionNumber&&s(e.modVersion,e),Object.assign(A,e),ne.active=A.id,ye.emit("onLoad")}setInterval(()=>{A.autosave&&Re()},1e3);window.onbeforeunload=()=>{A.autosave&&Re()};window.save=Re;const Qs=window.hardReset=async()=>{await vt(Mt())},Gt=Ht({active:"",saves:[],showTPS:!0,theme:In.Nordic,unthrottled:!1});Le(Gt,e=>{const t=ut.compressToUTF16(JSON.stringify(e));localStorage.setItem(Q.id,t)},{deep:!0});var ne=window.settings=Gt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:In.Nordic};ye.emit("loadSettings",e),Object.assign(Gt,e),Qs()};function Ks(){try{let e=localStorage.getItem(Q.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=ut.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Gt,t)}ye.emit("loadSettings",Gt)}catch{}}const ci=Ht([]);function Js(e){ci.push(e)}const Xs=Ht([]),Zs=Ht([]),Ys={class:"table"},nn=R({__name:"Column",setup(e){const t=S(()=>zt[ne.theme].mergeAdjacent);return(n,i)=>(_(),M("div",Ys,[m("div",{class:re(["col",{mergeAdjacent:l(t)}])},[Ge(n.$slots,"default")],2)]))}}),er={class:"table"},di=R({__name:"Row",setup(e){const t=S(()=>zt[ne.theme].mergeAdjacent);return(n,i)=>(_(),M("div",er,[m("div",{class:re(["row",{mergeAdjacent:l(t)}])},[Ge(n.$slots,"default")],2)]))}});function fi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}function W(e,t="span"){return typeof e=="function"?R({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),R({template:e})):R({render:()=>({})}):e}function he(e){if(ht(e))return typeof e=="function"?e():W(e);const t=e[ft];return c(t,e[mt](),null)}function qe(...e){let t;return c(di,null,fi(t=e.map(he))?t:{default:()=>[t]})}function tr(...e){let t;return c(nn,null,fi(t=e.map(he))?t:{default:()=>[t]})}function He(e){if(ht(e))return typeof e=="function"?e():typeof e=="string"?c(V,null,[e]):c(e,null,null);const t=e[ft];return c(t,e[mt](),null)}function ht(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Ut]===!0}function mi(e,t,n){const i=T(null),s=T(void 0);function r(f){i.value||(i.value=setInterval(u,250)),s.value=f,n&&(n.value=!0)}function o(){i.value&&(clearInterval(i.value),i.value=null),n&&(n.value=!1)}function u(){t&&t.value?t.value():e&&e.value&&e.value(s.value)}return Kn(o),{start:r,stop:o,handleHolding:u}}function hi(e,t="div"){const n=Te();return Ae(()=>{n.value=W(oe(e),t)}),n}function At(e,t="div"){const n=Te(null);return Ae(()=>{const i=oe(e);n.value=i==null?null:W(i,t)}),n}function nr(e){return S(()=>oe(e))}function oe(e){return l(l(e))}function P(...e){return e.includes(Object)||e.push(Object),e}const xe=R({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(_(),M("div",{style:le({width:e.width,height:e.height})},null,4))}});var J=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n};const ir=R({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var p;const n=T({}),i=new ResizeObserver(u),s=T(null);cn(()=>{const v=s.value;v!=null&&i.observe(v)});let r=!0,o=T((p=s.value)==null?void 0:p.getBoundingClientRect());function u(){r&&(r=!1,bt(()=>{var v;o.value=(v=s.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter
|
||
|
`).slice(3,5).map(t=>t.trim()).join(`
|
||
|
`))||""}function Me(e){const t=ce(e)?e:T(e);return t[Cn]=t,t[on]=ce(e)?e.value:e,t[un]=mr(),t[gi]=!1,Ve.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
|
||
|
Created at:
|
||
|
`+t[un]):It[Ve[Ve.length-1]].add(t),t}ye.on("addLayer",(e,t)=>{const n=[],i=(s,r=[])=>{let o=!1;return Object.keys(s).forEach(u=>{const f=s[u];if(f&&typeof f=="object")if(Cn in f){if(o=!0,f[gi]){console.warn("Deleted persistent ref present in returned object. Ignoring...",f,`
|
||
|
Created at:
|
||
|
`+f[un]);return}It[e.id].delete(ie in f?f[ie]:f);const d=r.reduce((v,b)=>(b in v||(v[b]={}),v[b]),t),p=d[u];d[u]=f[Cn],Ri(d)?p!=null?d[u]=p:d[u]=f[on]:p!=null?d[u].value=p:d[u].value=f[on]}else!(f instanceof a)&&!ce(f)&&!n.includes(f)&&(typeof f.type=="symbol"&&n.push(f),i(f,[...r,u])&&(Un(f)&&!Un(s)?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.",ie in s?s[ie]:s,u):o=!0))}),o};i(e),It[e.id].forEach(s=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,s,`
|
||
|
Created at:
|
||
|
`+s[un])}),It[e.id].clear()});const An=Symbol("RegisterNode"),Pn=Symbol("UnregisterNode"),$n=Symbol("Nodes"),En=Symbol("Bounds"),pe=Sn({});window.layers=pe;const It={},Ve=[];function Wt(e,t){return Be(()=>{const n={},i=n.emitter=Xn();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=T({}),n.id=e,Ve.push(e),It[e]=new Set,n.minimized=Me(!1),Object.assign(n,t.call(n)),Ve[Ve.length-1]==null||Ve[Ve.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
|
||
|
Stack: ${Ve}
|
||
|
Trying to pop ${n.id}`;return Ve.pop(),$(n,"color"),$(n,"display"),$(n,"name"),ge(n,"name",n.id),$(n,"minWidth"),ge(n,"minWidth",600),$(n,"minimizable"),ge(n,"minimizable",!0),n})}function vi(e,t){if(console.info("Adding layer",e.id),pe[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,pe[e.id]);return}ge(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),pe[e.id]=e,ye.emit("addLayer",e,t.layers[e.id])}function hr(e){return pe[e]}function yi(e){console.info("Removing layer",e.id),ye.emit("removeLayer",e),pe[e.id]=void 0}function pr(e){yi(e),vi(e,A)}function gr(e){const t=T(!1);return{openModal:()=>t.value=!0,modal:O(()=>c(je,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>c("h2",null,[l(e.name)]),body:l(e.display)}))}}ye.on("update",function(t){Object.values(pe).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(pe).forEach(n=>{n==null||n.emit("update",t)}),Object.values(pe).forEach(n=>{n==null||n.emit("postUpdate",t)})});var vr=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:An,UnregisterNodeInjectionKey:Pn,NodesInjectionKey:$n,BoundsInjectionKey:En,layers:pe,persistentRefs:It,addingLayers:Ve,createLayer:Wt,addLayer:vi,getLayer:hr,removeLayer:yi,reloadLayer:pr,setupLayerModal:gr},Symbol.toStringTag,{value:"Module"}));const yr={},br={class:"notif"};function _r(e,t){return _(),M("div",br,"!")}var Qn=J(yr,[["render",_r],["__scopeId","data-v-66323fd4"]]);const mn=e=>(Xe("data-v-949cc93c"),e=e(),Ze(),e),wr={key:0,class:"day feature dontMerge opened"},Nr={class:"date"},kr=y("Dec"),Cr=mn(()=>m("br",null,null,-1)),Sr={class:"date"},Mr=y("Dec"),Ir=mn(()=>m("br",null,null,-1)),Ar=mn(()=>m("div",{class:"doors"},null,-1)),Pr={class:"date"},$r=y("Dec"),Er=mn(()=>m("br",null,null,-1)),xr={key:0,class:"material-icons lock"},Tr=R({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,i=S(()=>a.gte(H.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(r,o)=>e.opened.value?(_(),M("div",wr,[c(dn,{appear:"",name:"door"},{default:F(()=>[m("div",{class:"doors",onClick:o[0]||(o[0]=u=>t("openLayer"))},[m("div",Nr,[kr,Cr,y(L(e.day),1)]),m("div",Sr,[Mr,Ir,y(L(e.day),1)])])]),_:1}),m("div",{class:"icon",style:le({backgroundImage:`url(${e.symbol})`})},null,4),m("div",{class:"lore",onClick:o[1]||(o[1]=u=>t("openLore"))},"?"),l(e.shouldNotify)?(_(),U(Qn,{key:0})):E("",!0)])):(_(),M("div",{key:1,class:re(["day feature dontMerge",{can:l(i),locked:!l(i),canOpen:l(i)}]),onClick:s},[Ar,m("div",Pr,[$r,Er,y(L(e.day),1)]),l(i)?E("",!0):(_(),M("div",xr,"lock")),l(i)?(_(),U(Qn,{key:1})):E("",!0)],2))}});var Fr=J(Tr,[["__scopeId","data-v-949cc93c"]]);const Br={key:0},Dr={key:0,class:"mark star"},Or=["src"],Rr=R({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(_(),M("div",Br,[e.mark===!0?(_(),M("div",Dr)):(_(),M("img",{key:1,class:"mark",src:e.mark},null,8,Or))])):E("",!0)}});var hn=J(Rr,[["__scopeId","data-v-2207999f"]]);const Vr=R({__name:"Node",props:{id:null},setup(e){const n=fe(e),i=sn(An,()=>{}),s=sn(Pn,()=>{}),r=Te(null),o=S(()=>r.value&&r.value.parentElement);return Le([o,n.id],([u,f],[d,p])=>{d&&s(l(p)),u&&i(f,u)}),Kn(()=>s(l(n.id))),(u,f)=>(_(),M("div",{class:"node",ref_key:"node",ref:r},null,512))}});var Qt=J(Vr,[["__scopeId","data-v-a48cb382"]]),qr=R({props:{display:{type:P(Object,String,Function),required:!0},visibility:{type:P(Number),required:!0},style:P(Object,String,Array),classes:P(Object),onClick:Function,onHold:Function,canClick:{type:P(Boolean),required:!0},small:Boolean,mark:P(Boolean,String),id:{type:String,required:!0},isHolding:Object},components:{Node:Qt,MarkNode:hn},setup(e){const{display:t,onClick:n,onHold:i}=fe(e),s=Te("");Ae(()=>{const u=oe(t);if(u==null){s.value="";return}if(ht(u)){s.value=W(u);return}const f=W(u.title||"","h3"),d=W(u.description,"div");s.value=W(O(()=>c("span",null,[u.title?c("div",null,[c(f,null,null)]):null,c(d,null,null)])
|
||
|
${j}
|
||
|
${C}`)}}return d[I]}Le(n,I=>{I&&Object.keys(d).forEach(C=>delete d[C])});const v=S(()=>ne.saves.reduce((I,C)=>(I[C]=p(C),I),{}));function b(I){let C;switch(A.id===I?C=li(A[ie]):C=JSON.stringify(v.value[I]),Q.exportEncoding){default:console.warn(`Unknown save encoding: ${Q.exportEncoding}. Defaulting to lz`);case"lz":C=ut.compressToUTF16(C);break;case"base64":C=btoa(unescape(encodeURIComponent(C)));break;case"plain":break}const j=document.createElement("textarea");j.value=C,document.body.appendChild(j),j.select(),j.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(j)}function g(I){A.id===I&&Re();const C={...v.value[I],id:tn()};Re(C),ne.saves.push(C.id)}function N(I){ne.saves=ne.saves.filter(C=>C!==I),localStorage.removeItem(I),d[I]=void 0}function k(I){v.value[A.id].time=A.time,Re(),d[A.id]=void 0,vt(v.value[I]),d[I]=void 0}function x(I){if(o.value=I,bt(()=>{o.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=ut.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const C=JSON.parse(I);C.id=tn(),Re(C),ne.saves.push(C.id),k(C.id)}function be(I,C){const j=v.value[I];j&&(j.name=C,A.id===I?(A.name=C,Re()):(Re(j),d[I]=void 0))}return(I,C)=>(_(),U(je,{modelValue:n.value,"onUpdate:modelValue":C[4]||(C[4]=j=>n.value=j),ref_key:"modal",ref:i},{header:F(()=>[ql]),body:F(({shown:j})=>[j?(_(),U(l(zi),{key:0,list:l(ne).saves,handle:".handle",itemKey:Ne=>Ne},{item:F(({element:Ne})=>[c(Vl,{save:l(v)[Ne],onOpen:De=>k(Ne),onExport:De=>b(Ne),onEditName:De=>be(Ne,De),onDuplicate:De=>g(Ne),onDelete:De=>N(Ne)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):E("",!0)]),footer:F(()=>[m("div",Ll,[c(Mi,{modelValue:r.value,"onUpdate:modelValue":C[0]||(C[0]=j=>r.value=j),title:"Import Save",placeholder:"Paste your save here!",class:re({importingFailed:s.value})},null,8,["modelValue","class"]),m("div",Ul,[Gl,m("div",Hl,[m("button",{class:"button",onClick:C[1]||(C[1]=j=>k(l(Mt)().id))},"New Game"),Object.keys(l(f)).length>0?(_(),U(Tn,{key:0,options:l(f),modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=j=>x(j)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):E("",!0)])]),m("div",jl,[zl,m("button",{class:"button modal-default-button",onClick:C[3]||(C[3]=j=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ii=J(Wl,[["__scopeId","data-v-3b9991aa"]]);const Pe=e=>(Xe("data-v-4a3f8425"),e=e(),Ze(),e),Ql=["src","alt"],Kl={key:1,class:"title"},Jl=Pe(()=>m("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Xl={class:"discord"},Zl={class:"discord-links"},Yl={key:0},eo=["href"],to=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),no=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),io={href:"https://forums.moddingtree.com/",target:"_blank"},so=Pe(()=>m("span",{class:"material-icons"},"forum",-1)),ro=Pe(()=>m("span",{class:"material-icons"},"info",-1)),ao=Pe(()=>m("span",{class:"material-icons"},"library_books",-1)),lo=Pe(()=>m("span",{class:"material-icons"},"settings",-1)),oo=Pe(()=>m("span",{class:"material-icons"},"library_books",-1)),uo=Pe(()=>m("span",{class:"material-icons"},"settings",-1)),co=Pe(()=>m("span",{class:"material-icons"},"info",-1)),fo={href:"https://forums.moddingtree.com/",target:"_blank"},mo=Pe(()=>m("span",{class:"material-icons"},"forum",-1)),ho={class:"discord"},po={class:"discord-links"},go={key:0},vo=["href"],yo=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),bo=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),_o=R({__name:"Nav",setup(e){const t=T(null),n=T(null),i=T(null),s=T(null),{useHeader:r,banner:o,title:u,discordName:f,discordLink:d,versionNumber:p}=Q;function v(){window.open(d,"mywindow")}return(b,g)=>(_(),M(V,null,[l(r)?(_(),M("div",_t({key:0,class:"na
|
||
|
Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Ws();const{globalBus:e,startGameLoop:t}=await rn(()=>Promise.resolve().then(function(){return zs}),void 0),n=window.vue=Ui(iu);e.emit("setupVue",n),n.mount("#app"),bt(()=>{const i=Zn(),{updateServiceWorker:s}=ru({onNeedRefresh(){i.info("New content available, click or reload to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){s()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(r){r&&setInterval(r.update,60*60*1e3)}})}),t()});
|