{"version":3,"sources":["../../../src/runtimes/edge/useEdgeRuntime.ts"],"sourcesContent":["\"use client\";\n\nimport { LocalRuntimeOptions, useLocalRuntime } from \"..\";\nimport { EdgeModelAdapterOptions, EdgeModelAdapter } from \"./EdgeModelAdapter\";\nimport { splitLocalRuntimeOptions } from \"../local/LocalRuntimeOptions\";\n\nexport type EdgeRuntimeOptions = EdgeModelAdapterOptions & LocalRuntimeOptions;\n\nexport const useEdgeRuntime = (options: EdgeRuntimeOptions) => {\n  const { localRuntimeOptions, otherOptions } =\n    splitLocalRuntimeOptions(options);\n\n  return useLocalRuntime(\n    new EdgeModelAdapter(otherOptions),\n    localRuntimeOptions,\n  );\n};\n"],"mappings":";;;AAEA,SAA8B,uBAAuB;AACrD,SAAkC,wBAAwB;AAC1D,SAAS,gCAAgC;AAIlC,IAAM,iBAAiB,CAAC,YAAgC;AAC7D,QAAM,EAAE,qBAAqB,aAAa,IACxC,yBAAyB,OAAO;AAElC,SAAO;AAAA,IACL,IAAI,iBAAiB,YAAY;AAAA,IACjC;AAAA,EACF;AACF;","names":[]}