pages/ludwig/assets/index.0c7c2f5a.js

16 lines
134 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.f6263579.js";import{Z as q,q as rt,C as u,t as w,b1 as fe,aa as O,aE as h,a0 as E,a1 as c,aK as pe,G as te,w as ye,b2 as Qt,a8 as A,O as Y,ay as St,ar as xe,aG as lt,A as be,_ as U,b6 as R,b8 as Mt,bs as _a,aq as tt,bu as at,bb as ea,T as Qa,a7 as p,u as kt,j as Sa,l as Ce,bv as Nt,aL as Ma,$ as M,aN as ce,J as F,I as Xe,aH as _e,aF as Qe,z as ze,br as ka,aJ as Ta,au as Da,al as Gt,aC as Ra,bc as At,ao as Va,bn as Pa,be as qa}from"./@vue.4ce677c2.js";import{c as ta}from"./nanoevents.1080beb7.js";import{L as Ie}from"./lz-string.f2f3b7cf.js";import{D as xa}from"./vuedraggable.c3acdf62.js";import{Y as za}from"./vue-next-select.0dc4e443.js";import{p as Fa}from"./vue-textarea-autosize.35804eaf.js";import{A as aa,T as Ga,R as Oa,B as Ua,u as La,E as Ot}from"./@pixi.1eac1889.js";import{s as Ja}from"./semver.83ff78cf.js";import{l as Ya}from"./socket.io-client.79ce0df5.js";import{u as na,s as Wa}from"./vue-toastification.b7cd620e.js";import{v as Xa,n as ja}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.js";import"./sortablejs.cbae5b2d.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.e51cb87b.js";import"./querystring.23ae9a54.js";import"./lru-cache.9a21e90b.js";import"./yallist.fd762fe7.js";import"./engine.io-client.58517560.js";import"./engine.io-parser.3f360695.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.544e37d1.js";const Ka=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function a(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=a(i);fetch(i.href,r)}};Ka();const Ha="modulepreload",Ut={},Za="./",gt=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${Za}${n}`,n in Ut)return;Ut[n]=!0;const i=n.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${r}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":Ha,i||(s.as="script",s.crossOrigin=""),s.href=n,document.head.appendChild(s),i)return new Promise((o,d)=>{s.addEventListener("load",o),s.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},$a="./projInfo-schema.json",en="Super Auto Coots",tn="A project made in Profectus",an="superautocoots",nn="thepaperpilot and crea",rn="",sn="",on="0.0.0",ln="Initial Commit",An=!1,un=!1,cn=2,dn=!0,gn=null,mn="",fn=["main"],hn=3600,vn=1,pn=!0,yn="base64";var G={$schema:$a,title:en,description:tn,id:an,author:nn,discordName:rn,discordLink:sn,versionNumber:on,versionTitle:ln,allowGoBack:An,defaultShowSmall:un,defaultDecimalsShown:cn,useHeader:dn,banner:gn,logo:mn,initialTabs:fn,maxTickLength:hn,offlineLimit:vn,enablePausing:pn,exportEncoding:yn};class bn{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const a=this.map.get(t);if(a!==void 0)return a!==this.first&&(a===this.last?(this.last=a.prev,this.last.next=void 0):(a.prev.next=a.next,a.next.prev=a.prev),a.next=this.first,this.first.prev=a,this.first=a),a.value}set(t,a){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const n=new Cn(t,a);for(this.first===void 0?(this.first=n,this.last=n):(n.next=this.first,this.first.prev=n,this.first=n),this.map.set(t,n);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class Cn{constructor(t,a){this.next=void 0,this.prev=void 0,this.key=t,this.value=a}}const bt=17,Nn=9e15,En=Math.l
`,e),await Ve(Le())}}function Le(){const e=dt(),t=ga({id:e});return se(t),x.saves.push(e),t}function dt(){let e,t=0;do e=`${G.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const $n=w(!1);async function Ve(e){console.info("Loading save",e),$n.value=!0;const{layers:t,removeLayer:a,addLayer:n}=await gt(()=>Promise.resolve().then(function(){return wi}),void 0),{fixOldSave:i,getInitialLayers:r}=await gt(()=>Promise.resolve().then(function(){return qo}),void 0);for(const s in t){const o=t[s];o&&a(o)}r(e).forEach(s=>n(s,e)),e=ga(e),e.offlineProd&&e.time!=null&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,G.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==G.versionNumber&&(i(e.modVersion,e),e.modVersion=G.versionNumber),Object.assign(V,e),x.active=V.id,$.emit("onLoad")}setInterval(()=>{V.autosave&&se()},1e3);window.onbeforeunload=()=>{V.autosave&&se()};window.save=se;const ei=window.hardReset=async()=>{await Ve(Le())};window.deleteLowerSaves=()=>{const e=Object.values(x.saves).indexOf(V.id)+1;Object.values(x.saves).slice(e).forEach(t=>localStorage.removeItem(t)),x.saves=x.saves.slice(0,e)};const nt=rt({active:"",saves:[],showTPS:!0,theme:Vt.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1});fe(nt,e=>{const t=Ie.compressToUTF16(JSON.stringify(e));localStorage.setItem(G.id,t)},{deep:!0});var x=window.settings=nt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Vt.Nordic,alignUnits:!1,autoplay:!1,fast:!1};$.emit("loadSettings",e),Object.assign(nt,e),ei()};function ti(){try{let e=localStorage.getItem(G.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ie.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(nt,t)}$.emit("loadSettings",nt)}catch{}}const ma=rt([]);function ai(e){ma.push(e)}const ni=rt([]),ii=rt([]),ri={class:"table"},jt=O({__name:"Column",setup(e){const t=q(()=>st[x.theme].mergeAdjacent);return(a,n)=>(h(),E("div",ri,[c("div",{class:te(["col",{mergeAdjacent:u(t)}])},[pe(a.$slots,"default")],2)]))}}),si={class:"table"},Te=O({__name:"Row",setup(e){const t=q(()=>st[x.theme].mergeAdjacent);return(a,n)=>(h(),E("div",si,[c("div",{class:te(["row",{mergeAdjacent:u(t)}])},[pe(a.$slots,"default")],2)]))}});function Ne(e,t="span"){return typeof e=="function"?O({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),O({template:e})):O({render:()=>({})}):e}function Je(e){if(fa(e))return typeof e=="function"?e():Ne(e);const t=e[Dt];return A(t,e[Rt](),null)}function oi(e){if(fa(e))return typeof e=="function"?e():typeof e=="string"?A(Y,null,[e]):A(e,null,null);const t=e[Dt];return A(t,e[Rt](),null)}function fa(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[ft]===!0}function li(e,t="div"){const a=ye();return Qt(()=>{a.value=Ne(qe(e),t)}),a}function vt(e,t="div"){const a=ye(null);return Qt(()=>{const n=qe(e);a.value=n==""||n==null?null:Ne(n,t)}),a}function qe(e){return u(u(e))}function ne(...e){return e.includes(Object)||e.push(Object),e}var j=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const Ai=O({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var b;const a=w({}),n=new ResizeObserver(o),i=w(null);St(()=>{const v=i.value;v!=null&&n.observe(v)});let r=!0,s=w((b=i.value)==null?void 0:b.getBoundingClientRect());function o(){r&&(r=!1,xe(()=>{var v;s.value=(v=i.value)==null?void 0:v.getBoundingClientRect(),Object.values(a.value).filter(N=>N).forEach(N=>N.rect=N.element.getBoundingClientRect()),t("updateNodes",a.value),r=!0}))}$.on("fontsLoaded",o);const d={attributes:!1,childList:!0,subtree:!1};lt(qt,(v,N)=>{const y=new MutationObserver(()=>f(v));y.observe(N,d),a.value[v]={element:N,observer:y,rect:N.getBoundingClientRect()},o()}),lt(xt,v=>{var N;(N=a.value[v])==null||N.observer.disconnect(),a.value[v]=void 0,o()}),l
`).slice(3,5).map(a=>a.trim()).join(`
`))!=null?t:""}function Kt(e,t){var a;if(B.isNaN(t))throw Z.hasNaN||(V.autosave=!1,Z.hasNaN=!0,Z.NaNPath=e[Pe],Z.NaNPersistent=e),console.error("Attempted to save NaN value to",(a=e[Pe])==null?void 0:a.join("."),e),"Attempted to set NaN value. See above for details";e[pt].value=t}function bi(e){const t=Ce(e)?e:w(e);Ce(e)&&(e=e.value);const a=q({get(){return t.value},set(i){Kt(n,i)}});a[je]=e;const n={get value(){return t.value},set value(i){Kt(n,i)},__v_isRef:!0,[pt]:t,[je]:e,[ht]:yi(),[Bt]:!1,[wt]:a,[Pe]:void 0};return ue.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,`
Created at:
`+n[ht]):Ye[ue[ue.length-1]].add(n),n}function Ci(e){return e!=null&&typeof e=="object"&&pt in e}$.on("addLayer",(e,t)=>{const a=[],n=(i,r=[])=>{let s=!1;return Object.keys(i).forEach(o=>{let d=i[o];if(d!=null&&typeof d=="object")if(Re in d&&(d=d[Re]),Ci(d)){if(s=!0,d[Bt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",d,`
Created at:
`+d[ht]);return}Ye[e.id].delete(d);const f=[e.id,...r,o];d[Pe]!=null&&JSON.stringify(f)!==JSON.stringify(d[Pe])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${d[Pe].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,d),d[Pe]=f;const b=r.reduce((N,y)=>(y in N||(N[y]={}),N[y]),t),v=b[o];b[o]=d[pt],Sa(b)?v!=null?b[o]=v:b[o]=d[je]:v!=null?b[o].value=v:b[o].value=d[je]}else!(d instanceof B)&&!Ce(d)&&!a.includes(d)&&(typeof d.type=="symbol"&&a.push(d),n(d,[...r,o])&&(Nt(d)&&!Nt(i)?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.",Re in i?i[Re]:i,o):s=!0))}),s};n(e[Re]),Ye[e.id].forEach(i=>{i[Bt]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,`
Created at:
`+i[ht])}),Ye[e.id].clear()});const qt=Symbol("RegisterNode"),xt=Symbol("UnregisterNode"),va=Symbol("Nodes"),pa=Symbol("Bounds"),ee=kt({});window.layers=ee;const Ye={},ue=[];function ya(e,t){return Pt(()=>{const a={},n=a.emitter=ta();if(a.on=n.on.bind(n),a.emit=n.emit.bind(n),a.nodes=w({}),a.id=e,ue.push(e),Ye[e]=new Set,a.minimized=bi(!1),Object.assign(a,t.call(a)),ue[ue.length-1]==null||ue[ue.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${ue}
Trying to pop ${a.id}`;ue.pop(),ve(a,"color"),ve(a,"display"),ve(a,"classes"),ve(a,"style"),ve(a,"name"),et(a,"name",a.id),ve(a,"minWidth"),et(a,"minWidth",600),ve(a,"minimizable"),et(a,"minimizable",!0),ve(a,"minimizedDisplay");const i=a.style;return a.style=q(()=>{var s,o;let r=u(a.minWidth);return(typeof r=="number"||!Number.isNaN(parseInt(r)))&&(r=r+"px"),[(s=u(i))!=null?s:"",(o=a.minimized)!=null&&o.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:r,flexBasis:r,margin:""}]}),a})}function ba(e,t){if(console.info("Adding layer",e.id),ee[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,ee[e.id]);return}et(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),ee[e.id]=e,$.emit("addLayer",e,t.layers[e.id])}function Ni(e){return ee[e]}function Ca(e){console.info("Removing layer",e.id),$.emit("removeLayer",e),ee[e.id]=void 0}function Ei(e){Ca(e),ba(e,V)}function Bi(e){const t=w(!1);return{openModal:()=>t.value=!0,modal:J(()=>A(Fe,{modelValue:t.value,"onUpdate:modelValue":a=>t.value=a},{header:()=>A("h2",null,[u(e.name)]),body:u(e.display)}))}}$.on("update",function(t){Object.values(ee).forEach(a=>{a==null||a.emit("preUpdate",t)}),Object.values(ee).forEach(a=>{a==null||a.emit("update",t)}),Object.values(ee).forEach(a=>{a==null||a.emit("postUpdate",t)})});var wi=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:qt,UnregisterNodeInjectionKey:xt,NodesInjectionKey:va,BoundsInjectionKey:pa,layers:ee,persistentRefs:Ye,addingLayers:ue,createLayer:ya,addLayer:ba,getLayer:Ni,removeLayer:Ca,reloadLayer:Ei,setupLayerModal:Bi},Symbol.toStringTag,{value:"Module"}));const Ii=O({components:{Context:ha},props:{index:{type:Number,required:!0},display:{type:ne(Object,String,Function),required:!0},minimizedDisplay:ne(Object,String,Function),minimized:{type:Object,required:!0},name:{type:ne(String),required:!0},color:ne(String),minimizable:ne(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:a,minimized:n,minimizedDisplay:i}=be(e),r=li(t),s=vt(i),o=q(()=>G.allowGoBack&&a.value>0&&!qe(n));function d(){V.tabs.splice(u(e.index),1/0)}function f(b){e.nodes.value=b}return{component:r,minimizedComponent:s,showGoBack:o,updateNodes:f,unref:u,goBack:d}}}),_i={key:1};function Qi(e,t,a,n,i,r){const s=Ma("Context");return h(),E("div",{class:"layer-container",style:Xe({"--layer-color":e.unref(e.color)})},[e.showGoBack?(h(),E("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...o)=>e.goBack&&e.goBack(...o))},"\u274C")):M("",!0),e.unref(e.minimized)?(h(),E("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=o=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(h(),U(ce(e.minimizedComponent),{key:0})):(h(),E("div",_i,F(e.unref(e.name)),1))])):(h(),E("div",{key:2,class:te(["layer-tab",{showGoBack:e.showGoBack}])},[A(s,{onUpdateNodes:e.updateNodes},{default:R(()=>[(h(),U(ce(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(h(),E("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=o=>e.$emit("setMinimized",!0))}," \u25BC ")):M("",!0)],4)}var Si=j(Ii,[["render",Qi],["__scopeId","data-v-a592996e"]]);const Na=e=>(_e("data-v-4b4bda40"),e=e(),Qe(),e),Mi=Na(()=>c("h2",null,"Changelog",-1)),ki=Na(()=>c("details",{open:""},[c("summary",null,[p("v0.0 Initial Commit - "),c("time",null,"2021-09-04")]),p(" This is the first release :D "),c("ul",null,[c("li",{class:"feature"},"Did everything"),c("li",{class:"fix"},"Had some fun"),c("li",{class:"breaking"},"Removed everything"),c("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Ti=O({__name:"Changelog",setup(e,{expose:t}){const a=w(!1);return t({open(){a.value=!0}}),(n,i)=>(h(),U(Fe,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=r=>a.value=r)},{header:R(()=>[Mi]),body:R(()=>[ki]),_:1},8,["modelValue"]))}});var Di=j(Ti,[["__scopeId","data-v-4b4bda40"]]),Ri=O({props:{element:Object,display:{type:ne(Object,String,Function),required:!0},style:ne(Object,String,Array),classes:ne(Obje
${P}
${_}`)}}return f[C]}fe(a,C=>{C&&Object.keys(f).forEach(_=>delete f[_])});const v=q(()=>x.saves.reduce((C,_)=>(C[_]=b(_),C),{}));function N(C){let _;switch(V.id===C?_=da(V):_=JSON.stringify(v.value[C]),G.exportEncoding){default:console.warn(`Unknown save encoding: ${G.exportEncoding}. Defaulting to lz`);case"lz":_=Ie.compressToUTF16(_);break;case"base64":_=btoa(unescape(encodeURIComponent(_)));break;case"plain":break}const P=document.createElement("textarea");P.value=_,document.body.appendChild(P),P.select(),P.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(P)}function y(C){V.id===C&&se();const _={...v.value[C],id:dt()};se(_),x.saves.push(_.id)}function I(C){x.saves=x.saves.filter(_=>_!==C),localStorage.removeItem(C),f[C]=void 0}function Q(C){v.value[V.id].time=V.time,se(),f[V.id]=void 0,Ve(v.value[C]),f[C]=void 0}function S(C){if(s.value=C,xe(()=>{s.value=null}),C[0]!=="{")if(C[0]==="e")C=decodeURIComponent(escape(atob(C)));else if(C[0]==="\u1BE1")C=Ie.decompressFromUTF16(C);else{console.warn("Unable to determine preset encoding",C);return}const _=JSON.parse(C);_.id=dt(),se(_),x.saves.push(_.id),Q(_.id)}function H(C,_){const P=v.value[C];P!=null&&(P.name=_,V.id===C?(V.name=_,se()):(se(P),f[C]=void 0))}return(C,_)=>(h(),U(Fe,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=P=>a.value=P),ref_key:"modal",ref:n},{header:R(()=>[Pr]),body:R(({shown:P})=>[P?(h(),U(u(xa),{key:0,list:u(x).saves,handle:".handle",itemKey:ae=>ae},{item:R(({element:ae})=>[A(Vr,{save:u(v)[ae],onOpen:ge=>Q(ae),onExport:ge=>N(ae),onEditName:ge=>H(ae,ge),onDuplicate:ge=>y(ae),onDelete:ge=>I(ae)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):M("",!0)]),footer:R(()=>[c("div",qr,[A(zt,{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=P=>r.value=P),title:"Import Save",placeholder:"Paste your save here!",class:te({importingFailed:i.value})},null,8,["modelValue","class"]),c("div",xr,[zr,c("div",Fr,[c("button",{class:"button",onClick:_[1]||(_[1]=P=>Q(u(Le)().id))},"New Game"),Object.keys(u(d)).length>0?(h(),U(nr,{key:0,options:u(d),modelValue:s.value,"onUpdate:modelValue":_[2]||(_[2]=P=>S(P)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):M("",!0)])]),c("div",Gr,[Or,c("button",{class:"button modal-default-button",onClick:_[3]||(_[3]=P=>a.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ea=j(Ur,[["__scopeId","data-v-5b5b1604"]]);const de=e=>(_e("data-v-269f7a94"),e=e(),Qe(),e),Lr=["src","alt"],Jr={key:1,class:"title"},Yr=de(()=>c("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Wr={class:"discord"},Xr={class:"discord-links"},jr={key:0},Kr=["href"],Hr=de(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Zr=de(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),$r={href:"https://forums.moddingtree.com/",target:"_blank"},es=de(()=>c("span",{class:"material-icons"},"forum",-1)),ts=de(()=>c("span",{class:"material-icons"},"info",-1)),as=de(()=>c("span",{class:"material-icons"},"settings",-1)),ns=de(()=>c("span",{class:"material-icons"},"settings",-1)),is=de(()=>c("span",{class:"material-icons"},"info",-1)),rs={href:"https://forums.moddingtree.com/",target:"_blank"},ss=de(()=>c("span",{class:"material-icons"},"forum",-1)),os={class:"discord"},ls={class:"discord-links"},As={key:0},us=["href"],cs=de(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),ds=de(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),gs=O({__name:"Nav",setup(e){const t=w(null),a=w(null),n=w(null),i=w(null),{useHeader:r,banner:s,title:o,discordName:d,discordLink:f,versionNumber:b}=G;function v(){window.open(f,"mywindow")}return(N,y)=>(h(),E(Y,null,[u(r)?(h(),E("div",tt({key:0,class:"nav"},N.$attrs),[u(s)?(h(),E("img",{key:0,src:u(s),class:"banner",alt:u(o)},null,8,Lr)):(h(),E("div",Jr,F(u(o)),1)),c("div",{onClick:y[0]|
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 Zn();const{globalBus:e}=await gt(()=>Promise.resolve().then(function(){return Kn}),void 0),{startGameLoop:t}=await gt(()=>import("./gameLoop.aa9dc104.js"),["assets/gameLoop.aa9dc104.js","assets/@fontsource.f66d05e7.css","assets/vue.f6263579.js","assets/earcut.b6f90e68.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.c3acdf62.js","assets/sortablejs.cbae5b2d.js","assets/vue-next-select.0dc4e443.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.js","assets/semver.83ff78cf.js","assets/lru-cache.9a21e90b.js","assets/yallist.fd762fe7.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/vue-toastification.b7cd620e.js","assets/vue-toastification.4b5f8ac8.css","assets/workbox-window.8d14e8b7.js"]),a=window.vue=qa(ll);e.emit("setupVue",a),a.mount("#app"),xe(()=>{const n=na(),{updateServiceWorker:i}=ul({onNeedRefresh(){n.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){n.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(r){r&&setInterval(()=>r.update(),60*60*1e3)}})}),t()});export{B as D,gt as _,Z as a,G as b,qo as c,$ as g,$n as l,V as p,x as s};