{"version":3,"file":"extendable-media-recorder-wav-encoder-broker-B4ZLH-QC.js","sources":["../../node_modules/extendable-media-recorder-wav-encoder-broker/build/es2019/module.js"],"sourcesContent":["import { createBroker } from 'broker-factory';\n/*\n * @todo Explicitly referencing the barrel file seems to be necessary when enabling the\n * isolatedModules compiler option.\n */\nexport * from './interfaces/index';\nexport * from './types/index';\nexport const wrap = createBroker({\n characterize: ({ call }) => {\n return () => call('characterize');\n },\n encode: ({ call }) => {\n return (recordingId, timeslice) => {\n return call('encode', { recordingId, timeslice });\n };\n },\n record: ({ call }) => {\n return async (recordingId, sampleRate, typedArrays) => {\n await call('record', { recordingId, sampleRate, typedArrays }, typedArrays.map(({ buffer }) => buffer));\n };\n }\n});\nexport const load = (url) => {\n const worker = new Worker(url);\n return wrap(worker);\n};\n//# sourceMappingURL=module.js.map"],"names":["wrap","createBroker","call","recordingId","timeslice","sampleRate","typedArrays","buffer","load","url","worker"],"mappings":"0XAOO,MAAMA,EAAOC,EAAa,CAC7B,aAAc,CAAC,CAAE,KAAAC,KACN,IAAMA,EAAK,cAAc,EAEpC,OAAQ,CAAC,CAAE,KAAAA,KACA,CAACC,EAAaC,IACVF,EAAK,SAAU,CAAE,YAAAC,EAAa,UAAAC,CAAS,CAAE,EAGxD,OAAQ,CAAC,CAAE,KAAAF,KACA,MAAOC,EAAaE,EAAYC,IAAgB,CACnD,MAAMJ,EAAK,SAAU,CAAE,YAAAC,EAAa,WAAAE,EAAY,YAAAC,CAAW,EAAIA,EAAY,IAAI,CAAC,CAAE,OAAAC,CAAQ,IAAKA,CAAM,CAAC,CACzG,CAET,CAAC,EACYC,EAAQC,GAAQ,CACzB,MAAMC,EAAS,IAAI,OAAOD,CAAG,EAC7B,OAAOT,EAAKU,CAAM,CACtB","x_google_ignoreList":[0]}