{"version":3,"sources":["node_modules/@arcgis/core/core/loadAll.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { map as o, result as l } from \"./asyncUtils.js\";\nimport n from \"./Collection.js\";\nimport r from \"./Loadable.js\";\nasync function t(o, l) {\n return await o.load(), a(o, l);\n}\nasync function a(t, a) {\n const s = [],\n c = (...o) => {\n for (const l of o) null != l && (Array.isArray(l) ? c(...l) : n.isCollection(l) ? l.forEach(o => c(o)) : r.isLoadable(l) && s.push(l));\n };\n a(c);\n let f = null;\n if (await o(s, async o => {\n const n = await l(i(o) ? o.loadAll() : o.load());\n !1 !== n.ok || f || (f = n);\n }), f) throw f.error;\n return t;\n}\nfunction i(o) {\n return \"loadAll\" in o && \"function\" == typeof o.loadAll;\n}\nexport { t as loadAll, a as loadAllChildren };"],"mappings":"uKAOA,SAAeA,EAAE,EAAGC,EAAG,QAAAC,EAAA,sBACrB,OAAO,MAAM,EAAE,KAAK,EAAGC,EAAE,EAAGF,CAAC,CAC/B,GACA,SAAeE,EAAEH,EAAGG,EAAG,QAAAD,EAAA,sBACrB,IAAM,EAAI,CAAC,EACTE,EAAI,IAAIC,IAAM,CACZ,QAAW,KAAKA,EAAW,GAAR,OAAc,MAAM,QAAQ,CAAC,EAAID,EAAE,GAAG,CAAC,EAAIE,EAAE,aAAa,CAAC,EAAI,EAAE,QAAQD,GAAKD,EAAEC,CAAC,CAAC,EAAIE,EAAE,WAAW,CAAC,GAAK,EAAE,KAAK,CAAC,EACtI,EACFJ,EAAEC,CAAC,EACH,IAAII,EAAI,KACR,GAAI,MAAMC,EAAE,EAASJ,GAAKH,EAAA,sBACxB,IAAMQ,EAAI,MAAMC,EAAEC,EAAEP,CAAC,EAAIA,EAAE,QAAQ,EAAIA,EAAE,KAAK,CAAC,EACxCK,EAAE,KAAT,IAAeF,IAAMA,EAAIE,EAC3B,EAAC,EAAGF,EAAG,MAAMA,EAAE,MACf,OAAOR,CACT,GACA,SAASY,EAAE,EAAG,CACZ,MAAO,YAAa,GAAmB,OAAO,EAAE,SAAvB,UAC3B","names":["t","l","__async","a","c","o","V","m","f","p","n","_","i"],"x_google_ignoreList":[0]}