UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 641 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{di as t,fi as n,gi as r}from"./_4____________________________.js";import{WC as i}from"./_2_____________________________.js";function a(e,t){let a=new Map,s=n=>{let o=t[n];if(o)return r(a,n,async()=>{i(e,(await o()).default),delete t[n]},{evictOnSettled:!0})};return n(e,{load:s,async prepare(n){await Promise.all(Object.keys(t).filter(t=>o(n[t],e[t])).map(s).filter(e=>e!==void 0))}}),e}function o(e,t){return typeof e==`string`?typeof t!=`string`:Object.entries(e??{}).some(([e,n])=>o(n,typeof t==`object`?t[e]:void 0))}function s(){return(s=e((()=>{t()})))()}export{s as n,a as t};