import{Application}from"./application/index.mjs";import{Loader}from"./base/loader.mjs";import{getQueryParameters,isEmpty}from"./base/helpers.mjs";(async()=>{let i,e,o=getQueryParameters(),t=window.enfugue||{},n="index";if(!isEmpty(o.config))try{e=await import(`./config/${o.config}.mjs`),i=o.config}catch(i){console.error("Couldn't get configuration",o.config,", using default.")}void 0===e&&(i=n,e=await import(`./config/${n}.mjs`));let r=e.Configuration;r.name=i,isEmpty(t.url)||(r.url={...r.url||{},...t.url}),isEmpty(t.keys)||(r.keys=t.keys),o.debug&&(r.debug=!0);const a=new Application(r);Loader.done((function(){a.initialize(),o.debug&&console.log("Application initialized",a)}))})();
