class t{constructor(){this.init()}static getInstance(){return t.instance||(t.instance=new t),t.instance}init(){if(!window)return;const t=window.Sparkle;console.log("getting info"),this.m=new Map(Object.entries(t.config))}get(t,s){const n=this.m.get(t);return void 0!==n?n:s}}class s{constructor(){this.assetsList=void 0}static getInstance(){return s.instance||(s.instance=new s),s.instance}async assets(){return void 0===this.assetsList&&(this.assetsList=await this.init()),this.assetsList}async init(){try{const s=t.getInstance().get("sparkle"),n=await fetch(s.globalAssetsUrl+"/assets.json");if(!n)return;return await n.json()}catch(t){return}}async loadJsonFile(t){try{const s=await fetch(""+t);if(!s)return;return await s.json()}catch(t){return}}}export{s as A,t as E}