{"version":3,"sources":["../src/index.ts","../../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js"],"sourcesContent":["import os from \"node:os\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\n\n// Keep in sync with the platforms install.mjs actually downloads a binary for.\nconst SUPPORTED = new Set([\n  \"darwin-x64\",\n  \"darwin-arm64\",\n  \"linux-x64\",\n  \"linux-arm64\",\n  \"win32-x64\",\n]);\n\nconst platform = os.platform();\nconst arch = os.arch();\nconst key = `${platform}-${arch}`;\n\nconst binaryName = platform === \"win32\" ? \"ffmpeg.exe\" : \"ffmpeg\";\n\nconst ffmpegPath: string | null = SUPPORTED.has(key)\n  ? path.join(__dirname, \"..\", binaryName)\n  : null;\n\nexport const pathToFFmpeg = ffmpegPath;\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n  typeof document === \"undefined\" \n    ? new URL(`file:${__filename}`).href \n    : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n      ? document.currentScript.src \n      : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,QAAQ,YAAY,MAAM,WAC1E,SAAS,cAAc,MACvB,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEtC,IAAM,gBAAgC,iCAAiB;;;ADZ9D,qBAAe;AACf,uBAAiB;AACjB,sBAA8B;AAE9B,IAAM,YAAY,iBAAAA,QAAK,YAAQ,+BAAc,aAAe,CAAC;AAG7D,IAAM,YAAY,oBAAI,IAAI;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAED,IAAM,WAAW,eAAAC,QAAG,SAAS;AAC7B,IAAM,OAAO,eAAAA,QAAG,KAAK;AACrB,IAAM,MAAM,GAAG,QAAQ,IAAI,IAAI;AAE/B,IAAM,aAAa,aAAa,UAAU,eAAe;AAEzD,IAAM,aAA4B,UAAU,IAAI,GAAG,IAC/C,iBAAAD,QAAK,KAAK,WAAW,MAAM,UAAU,IACrC;AAEG,IAAM,eAAe;","names":["path","os"]}