// /AIWK_COMMON/loader/aiwk_json_loader.js
// AIWK EXT4 v003
(function () {
    "use strict";

    const AIWK = window.AIWK;

    AIWK.jsonLoader = {
        load: async function (path) {
            const res = await fetch(AIWK.assetLoader.url(path));
            if (!res.ok) {
                throw new Error("JSON load failed: " + path + " / " + res.status);
            }
            return await res.json();
        }
    };
}());
