import { a, e } from "./chunk-WJ3OEUD3.js"; import { m } from "./chunk-TBBTRX4O.js"; import { j } from "./chunk-ALDCDSPV.js"; import { t } from "./chunk-GZT4BVFP.js"; // node_modules/@arcgis/core/core/loadAll.js async function n(o, r) { return await o.load(), i(o, r); } async function i(n2, i2) { const c = [], f = (...o) => { for (const r of o) t(r) || (Array.isArray(r) ? f(...r) : j.isCollection(r) ? r.forEach((o2) => f(o2)) : m.isLoadable(r) && c.push(r)); }; i2(f); let e2 = null; if (await e(c, async (o) => { (await a(s(o) ? o.loadAll() : o.load())).ok !== false || e2 || (e2 = o); }), e2) throw e2.loadError; return n2; } function s(o) { return "loadAll" in o && typeof o.loadAll == "function"; } export { n, i }; //# sourceMappingURL=chunk-5MVUZO4F.js.map