@imgly/plugin-print-ready-pdfs-web 1.83.0-nightly.20260918 → 1.83.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +3 -3
- package/dist/pdfx.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/types/pdfx.d.ts","../src/types/ghostscript.d.ts","../src/utils/logger.ts","../src/utils/browser-detection.ts","../src/wasm/ghostscript-module.ts","../src/core/ghostscript-loader.ts","../src/utils/blob-utils.ts","../src/core/virtual-filesystem.ts","../src/pdfx-def.ts","../src/pdfx-args.ts","../src/pdfx.ts","../src/index.ts","../src/types.ts","../src/types/index.d.ts","../../../../../node_modules/.pnpm/@types+emscripten@1.41.5/node_modules/@types/emscripten/index.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/disposable.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/indexable.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/iterators.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/index.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.typedarray.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.buffer.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/domexception.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/events.d.ts","../../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/fetch.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/navigator.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/storage.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert/strict.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/async_hooks.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/child_process.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/cluster.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/console.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/constants.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/crypto.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dgram.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/domain.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/events.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http2.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/https.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.generated.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/module.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/net.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/os.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/path.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/perf_hooks.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/process.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/punycode.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/querystring.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/repl.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sea.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sqlite.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/consumers.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/web.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/string_decoder.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/test.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tls.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/trace_events.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tty.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/url.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/util.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/v8.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/vm.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/wasi.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/worker_threads.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/zlib.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/index.d.ts","../../../../../node_modules/.pnpm/@types+dom-webcodecs@0.1.5/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts","../../../../../node_modules/.pnpm/@types+dom-webcodecs@0.1.5/node_modules/@types/dom-webcodecs/index.d.ts","../../../../../node_modules/.pnpm/@types+ndarray@1.0.14/node_modules/@types/ndarray/index.d.ts","../../../../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/previous-map.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/input.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/css-syntax-error.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/declaration.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/root.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/warning.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/lazy-result.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/no-work-result.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/processor.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/result.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/document.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/rule.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/node.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/comment.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/container.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/at-rule.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/list.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/postcss.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/postcss.d.mts","../../../../../node_modules/.pnpm/@types+postcss-url@10.0.4/node_modules/@types/postcss-url/index.d.ts"],"fileIdsList":[[60,61,62,63,79,128,145,146],[60,61,65,79,128,145,146],[59,61,69,79,128,145,146],[59,79,128,145,146],[59,64,65,66,67,68,79,128,145,146],[79,128,145,146],[59,60,79,128,145,146],[60,79,128,145,146],[79,128,145,146,179],[79,125,126,128,145,146],[79,127,128,145,146],[128,145,146],[79,128,133,145,146,163],[79,128,129,134,139,145,146,148,160,171],[79,128,129,130,139,145,146,148],[74,75,76,79,128,145,146],[79,128,131,145,146,172],[79,128,132,133,140,145,146,149],[79,128,133,145,146,160,168],[79,128,134,136,139,145,146,148],[79,127,128,135,145,146],[79,128,136,137,145,146],[79,128,138,139,145,146],[79,127,128,139,145,146],[79,128,139,140,141,145,146,160,171],[79,128,139,140,141,145,146,155,160,163],[79,121,128,136,139,142,145,146,148,160,171],[79,128,139,140,142,143,145,146,148,160,168,171],[79,128,142,144,145,146,160,168,171],[77,78,79,80,81,82,83,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[79,128,139,145,146],[79,128,145,146,147,171],[79,128,136,139,145,146,148,160],[79,128,145,146,149],[79,128,145,146,150],[79,127,128,145,146,151],[79,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[79,128,145,146,153],[79,128,145,146,154],[79,128,139,145,146,155,156],[79,128,145,146,155,157,172,174],[79,128,140,145,146],[79,128,139,145,146,160,161,163],[79,128,145,146,162,163],[79,128,145,146,160,161],[79,128,145,146,163],[79,128,145,146,164],[79,125,128,145,146,160,165,171],[79,128,139,145,146,166,167],[79,128,145,146,166,167],[79,128,133,145,146,148,160,168],[79,128,145,146,169],[79,128,145,146,148,170],[79,128,142,145,146,154,171],[79,128,133,145,146,172],[79,128,145,146,160,173],[79,128,145,146,147,174],[79,128,145,146,175],[79,121,128,145,146],[79,121,128,139,141,145,146,151,160,163,171,173,174,176],[79,128,145,146,160,177],[79,128,145,146,178,201],[79,128,145,146,197],[79,128,145,146,195,197],[79,128,145,146,186,194,195,196,198,200],[79,128,145,146,184],[79,128,145,146,187,192,197,200],[79,128,145,146,183,200],[79,128,145,146,187,188,191,192,193,200],[79,128,145,146,187,188,189,191,192,200],[79,128,145,146,184,185,186,187,188,192,193,194,196,197,198,200],[79,128,145,146,200],[79,128,145,146,182,184,185,186,187,188,189,191,192,193,194,195,196,197,198,199],[79,128,145,146,182,200],[79,128,145,146,187,189,190,192,193,200],[79,128,145,146,191,200],[79,128,145,146,192,193,197,200],[79,128,145,146,185,195],[79,93,97,128,145,146,171],[79,93,128,145,146,160,171],[79,88,128,145,146],[79,90,93,128,145,146,168,171],[79,128,145,146,148,168],[79,128,145,146,178],[79,88,128,145,146,178],[79,90,93,128,145,146,148,171],[79,85,86,89,92,128,139,145,146,160,171],[79,93,100,128,145,146],[79,85,91,128,145,146],[79,93,114,115,128,145,146],[79,89,93,128,145,146,163,171,178],[79,114,128,145,146,178],[79,87,88,128,145,146,178],[79,93,128,145,146],[79,87,88,89,90,91,92,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,115,116,117,118,119,120,128,145,146],[79,93,108,128,145,146],[79,93,100,101,128,145,146],[79,91,93,101,102,128,145,146],[79,92,128,145,146],[79,85,88,93,128,145,146],[79,93,97,101,102,128,145,146],[79,97,128,145,146],[79,91,93,96,128,145,146,171],[79,85,90,93,100,128,145,146],[79,128,145,146,160],[79,88,93,114,128,145,146,176,178]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"247d18c6cfa96302924b9a645e436b6df3cdede3ff887e4ccece7a6a488ba563","c10bcd945232c94ed69ec2f8763679892ae1c605313ef2a94aff549833d041bb",{"version":"9cc77a75ba1d4f4db7bdb9ee1ebaa08ac7317355be7e72bd567a2bfade89422f","signature":"4967ad584fbeac42ad038b506a19719f6edbcd054fb8cfa8dbed11b9ad9d6ae0"},{"version":"0421fb4ecee6afd4c6984ac32a40354d6d6cb383248a73bc8b7eb4756b7487a4","signature":"187857a1b2e31999c02a2664ad2c7f95c267f42eed8deb0bba8b794e67b5fad5"},{"version":"d7d8abfc6334c2e12651595acc962c42a1df352b1c3fc4654ba3949be5f75eef","signature":"31019712388b0a4fb3020a72b160004beb00af18ba7bd8b9b86608f1958e895b"},{"version":"b084cb0166298e2bce230dba699881ff45abc8faee76986cbe496667006b4f10","signature":"0239eee961e303fefc5069abd6f00058774bc1cac98bfc4862d8a3c7df9dcd1a"},{"version":"20543655475c0172b96e217860f071ea7961fcae55713884e99fbb42c2aa626b","signature":"e4ad919ecf1e48af33869b8a587bd6ccf2b2f71fc51ff6a0642d0085491776b4"},{"version":"6302661a2ffb927b24a2a1ce0b1deada85d7c3640e800ead6069f040e453fbca","signature":"87cfe94abb98796448de1381bc4d86abec38036d18eaa3bc95b48c7436b639b6"},{"version":"10b5b2b6aec2e3945533e4000ad10283a1430d63238cb25ef13ae3ec851dca5c","signature":"df09f000d656946f6bc670344b7ae9750fd2df7dd3777efc5b8177870e35a494"},{"version":"eb8705e370a6b01264e1b83840c10ad0ca7b437309e66479890db2e26f0ef328","signature":"10885511b09f790ff703b6a3732f8e444b8c911ac9551a4539f3cce0b92e47df"},{"version":"4c69fc4232e74b49dc2bd4953e128b4243c2a70072bf0fa22d565a7729984049","signature":"c43aff93e5d0bc5a57f7b92d1f098dc6a607799634438400f0d0bf8e9b0be0fd"},{"version":"d7ea56dc89a52c8ad5cb0ee3dc60fafb638ce9028e5f734c40967fdee2874954","signature":"1876a5a659f00d0f1a1757def3f9134d0b858278901175c284836f61688db59e"},{"version":"8faaab68521ea9ba0edcbebffebfba16e6b9ff79899a9a38993277f25a67c046","signature":"7e38a86f810d0f70a488b0d9ceb3e7339a17d58433527750f54fda26e4d7a56b"},"d299ca32e3b945c29d363245df7fb822d828c945ad2f875334ed4c6cda88ba6e",{"version":"78d131416e33b506ef0424a72c320fc8db64f17838056f583887643906b80714","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"78c35f320aa0752acb53d5e20a3146ff678040c0a3730ee20b358dbafd9d0081","affectsGlobalScope":true,"impliedFormat":1},{"version":"018e2e6d223545b3224696ccd55e428df4417a4f794e423f0602aaa8004bb2e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"08c5f8a855984aaf4b7df847c53ac7e87c32350d4ab151370f262a822fa96d8d","impliedFormat":1},{"version":"402e5c534fb2b85fa771170595db3ac0dd532112c8fa44fc23f233bc6967488b","impliedFormat":1},{"version":"52dcc257df5119fb66d864625112ce5033ac51a4c2afe376a0b299d2f7f76e4a","impliedFormat":1},{"version":"e5bab5f871ef708d52d47b3e5d0aa72a08ee7a152f33931d9a60809711a2a9a3","impliedFormat":1},{"version":"e16dc2a81595736024a206c7d5c8a39bfe2e6039208ef29981d0d95434ba8fcf","impliedFormat":1},{"version":"cc4a4903fb698ca1d961d4c10dce658aa3a479faf40509d526f122b044eaf6a4","impliedFormat":1},{"version":"19ee8416e6473ed6c7adb868fa796b5653cf0fa2a337658e677eaa0d134388c3","impliedFormat":1},{"version":"1328ab4e442614b28cdb3d4b414cf68325c0da0dca07287a338d0654b7a00261","impliedFormat":1},{"version":"a039dc21f045919f3cbee2ec13812cc6cc3eebc99dae4be00973230f468d19a6","impliedFormat":1},{"version":"3fbe57af01460e49dcd29df55d6931e1672bc6f1be0fb073d11410bc16f9037d","impliedFormat":1},{"version":"f760be449e8562ec5c09bb5187e8e1eabf3c113c0c58cddda53ef8c69f3e2131","impliedFormat":1},{"version":"44325ed13294fce6ab825b82947bbeed2611db7dad9d9135260192f375e5a189","impliedFormat":1},{"version":"e392e8fb5b514eafc585601c1d781485aa6dd6a320e75daf1064a4c6918a1b45","impliedFormat":1},{"version":"46e4a36e8ddbdfb4e7330e11c81c970dc8b218611df9183d39c41c5f8c653b55","impliedFormat":1},{"version":"370bde134aa8c2abc926d0e99d3a4d5d5dba65c6ee65459137e4f02670cbf841","impliedFormat":1},{"version":"6332f565867cf4a740a70e30f31cefba37ef7cebcf74f22eab8d744fde6d193e","impliedFormat":1},{"version":"2977b7884aedc895a1d0c9c210c7cf3272c29d6959a08a6fa3ff71e0aff08175","impliedFormat":1},{"version":"17f2922d41ddd032830a91371c948cd9ce903b35c95adca72271a54584f19b0b","impliedFormat":1},{"version":"3eed76ede2a1a14d7c9bb0a642041282dcc264811139d3dd275c9fe14efc9840","impliedFormat":1},{"version":"e3cf0611709328b449ec13f8c436712d62003620ce480139fae46ce001c2ee9f","impliedFormat":1},{"version":"8d369483f0c2b9ee388129cfdb6a43bc8112b377e86a41884bd06e19ce04f4c1","impliedFormat":99},{"version":"c3df33b25ec01e1ae4f8005af0c4611791e5a04df7c25338d2df9087ad1cf1af","impliedFormat":1}],"root":[[59,72]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":7,"noImplicitAny":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[64,1],[66,2],[70,3],[68,4],[67,4],[69,5],[71,4],[60,6],[72,7],[59,6],[65,6],[62,6],[61,6],[63,8],[180,9],[179,6],[73,6],[181,6],[125,10],[126,10],[127,11],[79,12],[128,13],[129,14],[130,15],[74,6],[77,16],[75,6],[76,6],[131,17],[132,18],[133,19],[134,20],[135,21],[136,22],[137,22],[138,23],[139,24],[140,25],[141,26],[80,6],[78,6],[142,27],[143,28],[144,29],[178,30],[145,31],[146,6],[147,32],[148,33],[149,34],[150,35],[151,36],[152,37],[153,38],[154,39],[155,40],[156,40],[157,41],[158,6],[159,42],[160,43],[162,44],[161,45],[163,46],[164,47],[165,48],[166,49],[167,50],[168,51],[169,52],[170,53],[171,54],[172,55],[173,56],[174,57],[175,58],[81,6],[82,6],[83,6],[122,59],[123,6],[124,6],[176,60],[177,61],[202,62],[84,6],[198,63],[196,64],[197,65],[185,66],[186,64],[193,67],[184,68],[189,69],[199,6],[190,70],[195,71],[201,72],[200,73],[183,74],[191,75],[192,76],[187,77],[194,63],[188,78],[182,6],[57,6],[58,6],[10,6],[12,6],[11,6],[2,6],[13,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[20,6],[3,6],[21,6],[22,6],[4,6],[23,6],[27,6],[24,6],[25,6],[26,6],[28,6],[29,6],[30,6],[5,6],[31,6],[32,6],[33,6],[34,6],[6,6],[38,6],[35,6],[36,6],[37,6],[39,6],[7,6],[40,6],[45,6],[46,6],[41,6],[42,6],[43,6],[44,6],[8,6],[50,6],[47,6],[48,6],[49,6],[51,6],[9,6],[52,6],[53,6],[54,6],[56,6],[55,6],[1,6],[100,79],[110,80],[99,79],[120,81],[91,82],[90,83],[119,84],[113,85],[118,86],[93,87],[107,88],[92,89],[116,90],[88,91],[87,84],[117,92],[89,93],[94,94],[95,6],[98,94],[85,6],[121,95],[111,96],[102,97],[103,98],[105,99],[101,100],[104,101],[114,84],[96,102],[97,103],[106,104],[86,105],[109,96],[108,94],[112,6],[115,106]],"latestChangedDtsFile":"./types.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/types/pdfx.d.ts","../src/types/ghostscript.d.ts","../src/utils/logger.ts","../src/utils/browser-detection.ts","../src/wasm/ghostscript-module.ts","../src/core/ghostscript-loader.ts","../src/utils/blob-utils.ts","../src/core/virtual-filesystem.ts","../src/pdfx-def.ts","../src/pdfx-args.ts","../src/pdfx.ts","../src/index.ts","../src/types.ts","../src/types/index.d.ts","../../../../../node_modules/.pnpm/@types+emscripten@1.41.5/node_modules/@types/emscripten/index.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/disposable.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/indexable.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/iterators.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/index.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.typedarray.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.buffer.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/domexception.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/events.d.ts","../../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/fetch.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/navigator.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/storage.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert/strict.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/async_hooks.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/child_process.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/cluster.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/console.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/constants.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/crypto.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dgram.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/domain.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/events.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http2.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/https.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.generated.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/module.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/net.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/os.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/path.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/perf_hooks.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/process.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/punycode.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/querystring.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/repl.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sea.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sqlite.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/consumers.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/web.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/string_decoder.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/test.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tls.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/trace_events.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tty.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/url.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/util.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/v8.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/vm.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/wasi.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/worker_threads.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/zlib.d.ts","../../../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/index.d.ts","../../../../../node_modules/.pnpm/@types+dom-webcodecs@0.1.5/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts","../../../../../node_modules/.pnpm/@types+dom-webcodecs@0.1.5/node_modules/@types/dom-webcodecs/index.d.ts","../../../../../node_modules/.pnpm/@types+ndarray@1.0.14/node_modules/@types/ndarray/index.d.ts","../../../../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/previous-map.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/input.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/css-syntax-error.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/declaration.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/root.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/warning.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/lazy-result.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/no-work-result.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/processor.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/result.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/document.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/rule.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/node.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/comment.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/container.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/at-rule.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/list.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/postcss.d.ts","../../../../../node_modules/.pnpm/postcss@8.5.15/node_modules/postcss/lib/postcss.d.mts","../../../../../node_modules/.pnpm/@types+postcss-url@10.0.4/node_modules/@types/postcss-url/index.d.ts"],"fileIdsList":[[60,61,62,63,79,128,145,146],[60,61,65,79,128,145,146],[59,61,69,79,128,145,146],[59,79,128,145,146],[59,64,65,66,67,68,79,128,145,146],[79,128,145,146],[59,60,79,128,145,146],[60,79,128,145,146],[79,128,145,146,179],[79,125,126,128,145,146],[79,127,128,145,146],[128,145,146],[79,128,133,145,146,163],[79,128,129,134,139,145,146,148,160,171],[79,128,129,130,139,145,146,148],[74,75,76,79,128,145,146],[79,128,131,145,146,172],[79,128,132,133,140,145,146,149],[79,128,133,145,146,160,168],[79,128,134,136,139,145,146,148],[79,127,128,135,145,146],[79,128,136,137,145,146],[79,128,138,139,145,146],[79,127,128,139,145,146],[79,128,139,140,141,145,146,160,171],[79,128,139,140,141,145,146,155,160,163],[79,121,128,136,139,142,145,146,148,160,171],[79,128,139,140,142,143,145,146,148,160,168,171],[79,128,142,144,145,146,160,168,171],[77,78,79,80,81,82,83,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[79,128,139,145,146],[79,128,145,146,147,171],[79,128,136,139,145,146,148,160],[79,128,145,146,149],[79,128,145,146,150],[79,127,128,145,146,151],[79,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[79,128,145,146,153],[79,128,145,146,154],[79,128,139,145,146,155,156],[79,128,145,146,155,157,172,174],[79,128,140,145,146],[79,128,139,145,146,160,161,163],[79,128,145,146,162,163],[79,128,145,146,160,161],[79,128,145,146,163],[79,128,145,146,164],[79,125,128,145,146,160,165,171],[79,128,139,145,146,166,167],[79,128,145,146,166,167],[79,128,133,145,146,148,160,168],[79,128,145,146,169],[79,128,145,146,148,170],[79,128,142,145,146,154,171],[79,128,133,145,146,172],[79,128,145,146,160,173],[79,128,145,146,147,174],[79,128,145,146,175],[79,121,128,145,146],[79,121,128,139,141,145,146,151,160,163,171,173,174,176],[79,128,145,146,160,177],[79,128,145,146,178,201],[79,128,145,146,197],[79,128,145,146,195,197],[79,128,145,146,186,194,195,196,198,200],[79,128,145,146,184],[79,128,145,146,187,192,197,200],[79,128,145,146,183,200],[79,128,145,146,187,188,191,192,193,200],[79,128,145,146,187,188,189,191,192,200],[79,128,145,146,184,185,186,187,188,192,193,194,196,197,198,200],[79,128,145,146,200],[79,128,145,146,182,184,185,186,187,188,189,191,192,193,194,195,196,197,198,199],[79,128,145,146,182,200],[79,128,145,146,187,189,190,192,193,200],[79,128,145,146,191,200],[79,128,145,146,192,193,197,200],[79,128,145,146,185,195],[79,93,97,128,145,146,171],[79,93,128,145,146,160,171],[79,88,128,145,146],[79,90,93,128,145,146,168,171],[79,128,145,146,148,168],[79,128,145,146,178],[79,88,128,145,146,178],[79,90,93,128,145,146,148,171],[79,85,86,89,92,128,139,145,146,160,171],[79,93,100,128,145,146],[79,85,91,128,145,146],[79,93,114,115,128,145,146],[79,89,93,128,145,146,163,171,178],[79,114,128,145,146,178],[79,87,88,128,145,146,178],[79,93,128,145,146],[79,87,88,89,90,91,92,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,115,116,117,118,119,120,128,145,146],[79,93,108,128,145,146],[79,93,100,101,128,145,146],[79,91,93,101,102,128,145,146],[79,92,128,145,146],[79,85,88,93,128,145,146],[79,93,97,101,102,128,145,146],[79,97,128,145,146],[79,91,93,96,128,145,146,171],[79,85,90,93,100,128,145,146],[79,128,145,146,160],[79,88,93,114,128,145,146,176,178]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"247d18c6cfa96302924b9a645e436b6df3cdede3ff887e4ccece7a6a488ba563","c10bcd945232c94ed69ec2f8763679892ae1c605313ef2a94aff549833d041bb",{"version":"9cc77a75ba1d4f4db7bdb9ee1ebaa08ac7317355be7e72bd567a2bfade89422f","signature":"4967ad584fbeac42ad038b506a19719f6edbcd054fb8cfa8dbed11b9ad9d6ae0"},{"version":"0421fb4ecee6afd4c6984ac32a40354d6d6cb383248a73bc8b7eb4756b7487a4","signature":"187857a1b2e31999c02a2664ad2c7f95c267f42eed8deb0bba8b794e67b5fad5"},{"version":"d7d8abfc6334c2e12651595acc962c42a1df352b1c3fc4654ba3949be5f75eef","signature":"31019712388b0a4fb3020a72b160004beb00af18ba7bd8b9b86608f1958e895b"},{"version":"b084cb0166298e2bce230dba699881ff45abc8faee76986cbe496667006b4f10","signature":"0239eee961e303fefc5069abd6f00058774bc1cac98bfc4862d8a3c7df9dcd1a"},{"version":"20543655475c0172b96e217860f071ea7961fcae55713884e99fbb42c2aa626b","signature":"e4ad919ecf1e48af33869b8a587bd6ccf2b2f71fc51ff6a0642d0085491776b4"},{"version":"6302661a2ffb927b24a2a1ce0b1deada85d7c3640e800ead6069f040e453fbca","signature":"87cfe94abb98796448de1381bc4d86abec38036d18eaa3bc95b48c7436b639b6"},{"version":"10b5b2b6aec2e3945533e4000ad10283a1430d63238cb25ef13ae3ec851dca5c","signature":"df09f000d656946f6bc670344b7ae9750fd2df7dd3777efc5b8177870e35a494"},{"version":"eb8705e370a6b01264e1b83840c10ad0ca7b437309e66479890db2e26f0ef328","signature":"10885511b09f790ff703b6a3732f8e444b8c911ac9551a4539f3cce0b92e47df"},{"version":"d91d3e70335e085538f5c36a91de3905fa1034ffe8719b1caeec50bb8dd3cd8a","signature":"c43aff93e5d0bc5a57f7b92d1f098dc6a607799634438400f0d0bf8e9b0be0fd"},{"version":"d7ea56dc89a52c8ad5cb0ee3dc60fafb638ce9028e5f734c40967fdee2874954","signature":"1876a5a659f00d0f1a1757def3f9134d0b858278901175c284836f61688db59e"},{"version":"8faaab68521ea9ba0edcbebffebfba16e6b9ff79899a9a38993277f25a67c046","signature":"7e38a86f810d0f70a488b0d9ceb3e7339a17d58433527750f54fda26e4d7a56b"},"d299ca32e3b945c29d363245df7fb822d828c945ad2f875334ed4c6cda88ba6e",{"version":"78d131416e33b506ef0424a72c320fc8db64f17838056f583887643906b80714","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"78c35f320aa0752acb53d5e20a3146ff678040c0a3730ee20b358dbafd9d0081","affectsGlobalScope":true,"impliedFormat":1},{"version":"018e2e6d223545b3224696ccd55e428df4417a4f794e423f0602aaa8004bb2e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"08c5f8a855984aaf4b7df847c53ac7e87c32350d4ab151370f262a822fa96d8d","impliedFormat":1},{"version":"402e5c534fb2b85fa771170595db3ac0dd532112c8fa44fc23f233bc6967488b","impliedFormat":1},{"version":"52dcc257df5119fb66d864625112ce5033ac51a4c2afe376a0b299d2f7f76e4a","impliedFormat":1},{"version":"e5bab5f871ef708d52d47b3e5d0aa72a08ee7a152f33931d9a60809711a2a9a3","impliedFormat":1},{"version":"e16dc2a81595736024a206c7d5c8a39bfe2e6039208ef29981d0d95434ba8fcf","impliedFormat":1},{"version":"cc4a4903fb698ca1d961d4c10dce658aa3a479faf40509d526f122b044eaf6a4","impliedFormat":1},{"version":"19ee8416e6473ed6c7adb868fa796b5653cf0fa2a337658e677eaa0d134388c3","impliedFormat":1},{"version":"1328ab4e442614b28cdb3d4b414cf68325c0da0dca07287a338d0654b7a00261","impliedFormat":1},{"version":"a039dc21f045919f3cbee2ec13812cc6cc3eebc99dae4be00973230f468d19a6","impliedFormat":1},{"version":"3fbe57af01460e49dcd29df55d6931e1672bc6f1be0fb073d11410bc16f9037d","impliedFormat":1},{"version":"f760be449e8562ec5c09bb5187e8e1eabf3c113c0c58cddda53ef8c69f3e2131","impliedFormat":1},{"version":"44325ed13294fce6ab825b82947bbeed2611db7dad9d9135260192f375e5a189","impliedFormat":1},{"version":"e392e8fb5b514eafc585601c1d781485aa6dd6a320e75daf1064a4c6918a1b45","impliedFormat":1},{"version":"46e4a36e8ddbdfb4e7330e11c81c970dc8b218611df9183d39c41c5f8c653b55","impliedFormat":1},{"version":"370bde134aa8c2abc926d0e99d3a4d5d5dba65c6ee65459137e4f02670cbf841","impliedFormat":1},{"version":"6332f565867cf4a740a70e30f31cefba37ef7cebcf74f22eab8d744fde6d193e","impliedFormat":1},{"version":"2977b7884aedc895a1d0c9c210c7cf3272c29d6959a08a6fa3ff71e0aff08175","impliedFormat":1},{"version":"17f2922d41ddd032830a91371c948cd9ce903b35c95adca72271a54584f19b0b","impliedFormat":1},{"version":"3eed76ede2a1a14d7c9bb0a642041282dcc264811139d3dd275c9fe14efc9840","impliedFormat":1},{"version":"e3cf0611709328b449ec13f8c436712d62003620ce480139fae46ce001c2ee9f","impliedFormat":1},{"version":"8d369483f0c2b9ee388129cfdb6a43bc8112b377e86a41884bd06e19ce04f4c1","impliedFormat":99},{"version":"c3df33b25ec01e1ae4f8005af0c4611791e5a04df7c25338d2df9087ad1cf1af","impliedFormat":1}],"root":[[59,72]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":7,"noImplicitAny":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[64,1],[66,2],[70,3],[68,4],[67,4],[69,5],[71,4],[60,6],[72,7],[59,6],[65,6],[62,6],[61,6],[63,8],[180,9],[179,6],[73,6],[181,6],[125,10],[126,10],[127,11],[79,12],[128,13],[129,14],[130,15],[74,6],[77,16],[75,6],[76,6],[131,17],[132,18],[133,19],[134,20],[135,21],[136,22],[137,22],[138,23],[139,24],[140,25],[141,26],[80,6],[78,6],[142,27],[143,28],[144,29],[178,30],[145,31],[146,6],[147,32],[148,33],[149,34],[150,35],[151,36],[152,37],[153,38],[154,39],[155,40],[156,40],[157,41],[158,6],[159,42],[160,43],[162,44],[161,45],[163,46],[164,47],[165,48],[166,49],[167,50],[168,51],[169,52],[170,53],[171,54],[172,55],[173,56],[174,57],[175,58],[81,6],[82,6],[83,6],[122,59],[123,6],[124,6],[176,60],[177,61],[202,62],[84,6],[198,63],[196,64],[197,65],[185,66],[186,64],[193,67],[184,68],[189,69],[199,6],[190,70],[195,71],[201,72],[200,73],[183,74],[191,75],[192,76],[187,77],[194,63],[188,78],[182,6],[57,6],[58,6],[10,6],[12,6],[11,6],[2,6],[13,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[20,6],[3,6],[21,6],[22,6],[4,6],[23,6],[27,6],[24,6],[25,6],[26,6],[28,6],[29,6],[30,6],[5,6],[31,6],[32,6],[33,6],[34,6],[6,6],[38,6],[35,6],[36,6],[37,6],[39,6],[7,6],[40,6],[45,6],[46,6],[41,6],[42,6],[43,6],[44,6],[8,6],[50,6],[47,6],[48,6],[49,6],[51,6],[9,6],[52,6],[53,6],[54,6],[56,6],[55,6],[1,6],[100,79],[110,80],[99,79],[120,81],[91,82],[90,83],[119,84],[113,85],[118,86],[93,87],[107,88],[92,89],[116,90],[88,91],[87,84],[117,92],[89,93],[94,94],[95,6],[98,94],[85,6],[121,95],[111,96],[102,97],[103,98],[105,99],[101,100],[104,101],[114,84],[96,102],[97,103],[106,104],[86,105],[109,96],[108,94],[112,6],[115,106]],"latestChangedDtsFile":"./types.d.ts","version":"5.9.3"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var p=class r{constructor(t){this.component=t}static globalLogLevel="warn";static logs=[];static maxLogs=1e3;static setLogLevel(t){r.globalLogLevel=t}static getLogs(){return[...r.logs]}static clearLogs(){r.logs=[]}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}log(t,e,i){let o={debug:0,info:1,warn:2,error:3};if(o[t]<o[r.globalLogLevel])return;let n={timestamp:Date.now(),level:t,component:this.component,message:e,data:i};r.logs.push(n),r.logs.length>r.maxLogs&&(r.logs=r.logs.slice(-r.maxLogs));let s=`[${new Date().toISOString()}] [${t.toUpperCase()}] [${this.component}]`,a=i?`${e} ${JSON.stringify(i)}`:e;switch(t){case"debug":console.debug(s,a);break;case"info":console.info(s,a);break;case"warn":console.warn(s,a);break;case"error":console.error(s,a);break;default:break}}};var w=class{supportsWebAssembly(){try{return typeof WebAssembly=="object"&&typeof WebAssembly.instantiate=="function"}catch{return!1}}};async function S(r={}){let{silent:t=!0}=r,e=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,i,o;if(e){let l=typeof process<"u"&&(process.env.VITEST==="true"||!1),D=new Function("s","return import(s)"),
|
|
1
|
+
var p=class r{constructor(t){this.component=t}static globalLogLevel="warn";static logs=[];static maxLogs=1e3;static setLogLevel(t){r.globalLogLevel=t}static getLogs(){return[...r.logs]}static clearLogs(){r.logs=[]}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}log(t,e,i){let o={debug:0,info:1,warn:2,error:3};if(o[t]<o[r.globalLogLevel])return;let n={timestamp:Date.now(),level:t,component:this.component,message:e,data:i};r.logs.push(n),r.logs.length>r.maxLogs&&(r.logs=r.logs.slice(-r.maxLogs));let s=`[${new Date().toISOString()}] [${t.toUpperCase()}] [${this.component}]`,a=i?`${e} ${JSON.stringify(i)}`:e;switch(t){case"debug":console.debug(s,a);break;case"info":console.info(s,a);break;case"warn":console.warn(s,a);break;case"error":console.error(s,a);break;default:break}}};var w=class{supportsWebAssembly(){try{return typeof WebAssembly=="object"&&typeof WebAssembly.instantiate=="function"}catch{return!1}}};async function S(r={}){let{silent:t=!0}=r,e=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,i,o;if(e){let l=typeof process<"u"&&(process.env.VITEST==="true"||!1),D=new Function("s","return import(s)"),f=l?T=>import(T):D,m=await f("module"),d=await f("path"),g=m.createRequire,F=d.dirname,v=d.join,x=g(import.meta.url).resolve("./gs.js"),P=F(x);o=v(P,"gs.wasm"),i=await f(x)}else i=await import(new URL("./gs.js",import.meta.url).href),o=new URL("./gs.wasm",import.meta.url).href;let n=i.default||i,s={locateFile:l=>l==="gs.wasm"?o:l};return t&&(s.print=()=>{},s.printErr=()=>{}),await n(s)}var y=class{static instance=null;static TIMEOUT_MS=3e4;static async load(t={}){return this.instance?this.instance:(this.instance=this.loadInternal(t),this.instance)}static async loadInternal(t){let e=new p("GhostscriptLoader");if(!new w().supportsWebAssembly())throw new Error("WebAssembly not supported in this browser");let o=t.timeout||this.TIMEOUT_MS;try{return e.info("Loading bundled Ghostscript (AGPL-3.0 licensed)"),e.info("Source available at: https://img.ly/docs/cesdk"),await this.loadWithTimeout(()=>this.loadFromBundle(),o)}catch(n){throw e.error("Ghostscript loading failed",{error:n.message}),new Error(`Failed to load Ghostscript: ${n.message}`)}}static async loadFromBundle(){let t=new p("GhostscriptInit");try{t.info("Initializing Ghostscript module");let e=await S();return t.info("Ghostscript module initialized successfully",{version:e.version||"unknown",hasFS:!!e.FS,hasCallMain:!!e.callMain}),e}catch(e){throw t.error("Ghostscript initialization failed",{error:e}),new Error(`Ghostscript initialization failed: ${e.message}`)}}static async loadWithTimeout(t,e){return Promise.race([t(),new Promise((i,o)=>{setTimeout(()=>o(new Error(`Loading timeout after ${e}ms`)),e)})])}static reset(){this.instance=null}};var u=class{static async toUint8Array(t){if(t.arrayBuffer){let e=await t.arrayBuffer();return new Uint8Array(e)}return new Promise((e,i)=>{let o=new FileReader;o.onload=()=>{o.result instanceof ArrayBuffer?e(new Uint8Array(o.result)):i(new Error("Failed to read blob as ArrayBuffer"))},o.onerror=()=>i(o.error),o.readAsArrayBuffer(t)})}static async validatePDF(t){try{let e=await this.toUint8Array(t),i=new Uint8Array([37,80,68,70]);if(e.length<4)return!1;for(let o=0;o<4;o++)if(e[o]!==i[o])return!1;return!0}catch{return!1}}};var b=class{constructor(t,e="/tmp/pdfx"){this.module=t;this.fs=t.FS,this.logger=new p("VirtualFileSystem"),this.workingDir=e,this.initialize()}fs;logger;managedFiles=new Set;workingDir;initialize(){try{this.createDirIfNotExists(this.workingDir),this.createDirIfNotExists(`${this.workingDir}/input`),this.createDirIfNotExists(`${this.workingDir}/output`),this.createDirIfNotExists(`${this.workingDir}/profiles`),this.createDirIfNotExists(`${this.workingDir}/temp`),this.logger.info("Virtual filesystem initialized",{workingDir:this.workingDir})}catch(t){throw this.logger.error("Failed to initialize virtual filesystem",{error:t}),new Error(`VFS initialization failed: ${t}`)}}createDirIfNotExists(t){try{this.fs.mkdir(t)}catch(e){if(e.code!=="EEXIST")throw e}}async writeBlob(t,e,i=!0){try{let o=await u.toUint8Array(e);this.fs.writeFile(t,o),i&&this.managedFiles.add(t),this.logger.debug("File written",{path:t,size:o.length})}catch(o){throw this.logger.error("Failed to write blob",{path:t,error:o}),new Error(`Failed to write file ${t}: ${o}`)}}writeText(t,e,i=!0){try{this.fs.writeFile(t,e),i&&this.managedFiles.add(t),this.logger.debug("Text file written",{path:t,length:e.length})}catch(o){throw this.logger.error("Failed to write text",{path:t,error:o}),new Error(`Failed to write text file ${t}: ${o}`)}}readFile(t){try{let e=this.fs.readFile(t);return this.logger.debug("File read",{path:t,size:e.length}),e}catch(e){throw this.logger.error("Failed to read file",{path:t,error:e}),new Error(`Failed to read file ${t}: ${e}`)}}exists(t){try{return this.fs.stat(t),!0}catch{return!1}}cleanup(){let t=0;for(let e of this.managedFiles)try{this.fs.unlink(e),t++}catch(i){this.logger.warn("Failed to cleanup file",{path:e,error:i})}this.managedFiles.clear(),this.logger.info("Filesystem cleanup completed",{cleanedCount:t})}};var L="IMG.LY";function $(r){return(r.title||"").replace(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g,"\uFFFD").replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g,"")||"Untitled"}function G(r){if(Number.isNaN(r.getTime()))throw new Error("formatPDFXTimestamps: invalid Date");let t=l=>String(l).padStart(2,"0"),e=r.getUTCFullYear(),i=t(r.getUTCMonth()+1),o=t(r.getUTCDate()),n=t(r.getUTCHours()),s=t(r.getUTCMinutes()),a=t(r.getUTCSeconds());return{pdfDate:`D:${e}${i}${o}${n}${s}${a}+00'00'`,xmpDate:`${e}-${i}-${o}T${n}:${s}:${a}+00:00`}}function B(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")}function C(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function nt(r){let t=new TextEncoder().encode(r),e="";for(let i of t)e+=i.toString(16).padStart(2,"0");return e}function st(r){let t="FEFF";for(let e=0;e<r.length;e++)t+=r.charCodeAt(e).toString(16).toUpperCase().padStart(4,"0");return t}function at(r,t,e,i){let o=C(r),n=C(t.xmpDate),s=C(e);return`<?xpacket begin="\uFEFF" id="W5M0MpCehiHzreSzNTczkc9d"?>
|
|
2
2
|
<x:xmpmeta xmlns:x="adobe:ns:meta/">
|
|
3
3
|
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
4
4
|
<rdf:Description rdf:about=""
|
|
@@ -15,7 +15,7 @@ var p=class r{constructor(t){this.component=t}static globalLogLevel="warn";stati
|
|
|
15
15
|
<xmp:CreateDate>${n}</xmp:CreateDate>
|
|
16
16
|
<xmp:ModifyDate>${n}</xmp:ModifyDate>
|
|
17
17
|
<xmp:MetadataDate>${n}</xmp:MetadataDate>
|
|
18
|
-
<xmp:CreatorTool>${
|
|
18
|
+
<xmp:CreatorTool>${L}</xmp:CreatorTool>
|
|
19
19
|
<dc:format>application/pdf</dc:format>
|
|
20
20
|
<dc:title>
|
|
21
21
|
<rdf:Alt>
|
|
@@ -28,14 +28,14 @@ var p=class r{constructor(t){this.component=t}static globalLogLevel="warn";stati
|
|
|
28
28
|
</rdf:Description>
|
|
29
29
|
</rdf:RDF>
|
|
30
30
|
</x:xmpmeta>
|
|
31
|
-
<?xpacket end="w"?>`}function
|
|
31
|
+
<?xpacket end="w"?>`}function k(r,t){if(!t.embedICCProfile)return`%!
|
|
32
32
|
% PDF Definition File (ICC embedding disabled)`;let e=r.outputStandard==="PDF/X-4",i=e?"% PDF/X-4 Definition File":"% PDF/X-3 Definition File",o=e?`<< /TransferFunctionInfo /Remove /HalftoneInfo /Remove >> setdistillerparams
|
|
33
33
|
`:"",n=e?`
|
|
34
34
|
|
|
35
35
|
% Strict PDF/X-4 XMP packet (replaces GS's auto-generated XMP)
|
|
36
36
|
[/_objdef {Metadata} /type /stream /OBJ pdfmark
|
|
37
37
|
[{Metadata} <</Type /Metadata /Subtype /XML>> /PUT pdfmark
|
|
38
|
-
[{Metadata} <${nt(at(
|
|
38
|
+
[{Metadata} <${nt(at($(r),t.timestamps,t.docId,t.producer))}> /PUT pdfmark
|
|
39
39
|
[{Catalog} <</Metadata {Metadata}>> /PUT pdfmark`:"";return`%!
|
|
40
40
|
${i}
|
|
41
41
|
${o}
|
|
@@ -59,12 +59,12 @@ ${o}
|
|
|
59
59
|
>> /PUT pdfmark
|
|
60
60
|
|
|
61
61
|
% Add OutputIntent to Catalog
|
|
62
|
-
[{Catalog} <</OutputIntents [{OutputIntent_PDFX}]>> /PUT pdfmark${n}`}function
|
|
62
|
+
[{Catalog} <</OutputIntents [{OutputIntent_PDFX}]>> /PUT pdfmark${n}`}function A(r,t,e){let i=$(r),n=r.outputStandard==="PDF/X-4"||!e?"":`
|
|
63
63
|
[ /GTS_PDFXVersion (PDF/X-3:2003) /GTS_PDFXConformance (PDF/X-3:2003) /DOCINFO pdfmark`;return`%!
|
|
64
64
|
% Post-input DOCINFO (must stay equivalent to the XMP packet)
|
|
65
65
|
[ /Title <${st(i)}> /DOCINFO pdfmark
|
|
66
|
-
[ /Creator (${
|
|
66
|
+
[ /Creator (${L}) /DOCINFO pdfmark
|
|
67
67
|
[ /CreationDate (${t.pdfDate}) /DOCINFO pdfmark
|
|
68
68
|
[ /ModDate (${t.pdfDate}) /DOCINFO pdfmark
|
|
69
|
-
[ /Trapped /False /DOCINFO pdfmark${n}`}function U(r,t){let e=[`-sOutputFile=${t.outputPath}`,t.pdfxDefPath,t.inputPath,t.postDocinfoPath];if(r.ghostscriptArgs&&r.ghostscriptArgs.length>0)return[...r.ghostscriptArgs,...e];let i=r.outputStandard==="PDF/X-4",o=["-dBATCH","-dNOPAUSE","-sDEVICE=pdfwrite",i?"-dCompatibilityLevel=1.6":"-dCompatibilityLevel=1.4","-dWriteObjStms=false","-dWriteXRefStm=false","-dPDFSETTINGS=/prepress","-dSetPageSize=false","-dAutoRotatePages=/None"];return i&&o.push("-dCompressStreams=false"),!i&&r.flattenTransparency!==!1&&o.push("-dHaveTransparency=false"),t.isCMYKProfile?o.push("-sColorConversionStrategy=CMYK","-dProcessColorModel=/DeviceCMYK","-dConvertCMYKImagesToRGB=false"):o.push("-sColorConversionStrategy=RGB"),[...o,...e]}async function _(r,t){let e={outputStandard:"PDF/X-4",...t};if(Array.isArray(r)){if(r.length===0)return[];let i=[];for(let o=0;o<r.length;o++)try{let n=await R(r[o],e);i.push(n)}catch(n){throw new Error(`Failed to convert PDF ${o+1} of ${r.length}: ${n instanceof Error?n.message:String(n)}`)}return i}return R(r,e)}function lt(r,t){let e={outputStandard:"PDF/X-3",...t};return _(r,e)}async function R(r,t){if(!(r instanceof Blob))throw new Error("Input must be a Blob");if(r.size===0)throw new Error("Input PDF is empty");if(r.size>100*1024*1024)throw new Error(`Input PDF too large (${r.size} bytes). Maximum: 100MB`);if(!t.outputProfile)throw new Error('outputProfile is required. Must be one of: "gracol", "fogra39", "srgb", "custom"');let e=["gracol","fogra39","srgb","custom"];if(!e.includes(t.outputProfile))throw new Error(`Invalid outputProfile "${t.outputProfile}". Must be one of: ${e.join(", ")}`);if(t.outputProfile==="custom"&&!t.customProfile)throw new Error('customProfile Blob is required when outputProfile is "custom"');if(t.customProfile&&!(t.customProfile instanceof Blob))throw new Error("customProfile must be a Blob");if(!await u.validatePDF(r))throw new Error("Invalid PDF format");let o=await y.load(),n=new b(o);try{let s="/tmp/input.pdf",a="/tmp/output.pdf",l="/tmp/pdfx_def.ps",D="/tmp/pdfx_post.ps",
|
|
69
|
+
[ /Trapped /False /DOCINFO pdfmark${n}`}function U(r,t){let e=[`-sOutputFile=${t.outputPath}`,t.pdfxDefPath,t.inputPath,t.postDocinfoPath];if(r.ghostscriptArgs&&r.ghostscriptArgs.length>0)return[...r.ghostscriptArgs,...e];let i=r.outputStandard==="PDF/X-4",o=["-dBATCH","-dNOPAUSE","-sDEVICE=pdfwrite",i?"-dCompatibilityLevel=1.6":"-dCompatibilityLevel=1.4","-dWriteObjStms=false","-dWriteXRefStm=false","-dPDFSETTINGS=/prepress","-dSetPageSize=false","-dAutoRotatePages=/None"];return i&&o.push("-dCompressStreams=false"),!i&&r.flattenTransparency!==!1&&o.push("-dHaveTransparency=false"),t.isCMYKProfile?o.push("-sColorConversionStrategy=CMYK","-dProcessColorModel=/DeviceCMYK","-dConvertCMYKImagesToRGB=false"):o.push("-sColorConversionStrategy=RGB"),[...o,...e]}async function _(r,t){let e={outputStandard:"PDF/X-4",...t};if(Array.isArray(r)){if(r.length===0)return[];let i=[];for(let o=0;o<r.length;o++)try{let n=await R(r[o],e);i.push(n)}catch(n){throw new Error(`Failed to convert PDF ${o+1} of ${r.length}: ${n instanceof Error?n.message:String(n)}`)}return i}return R(r,e)}function lt(r){switch(r){case"gracol":return new URL("./GRACoL2013_CRPC6.icc",import.meta.url).href;case"srgb":return new URL("./sRGB_IEC61966-2-1.icc",import.meta.url).href;default:return new URL("./ISOcoated_v2_eci.icc",import.meta.url).href}}function ct(r,t){let e={outputStandard:"PDF/X-3",...t};return _(r,e)}async function R(r,t){if(!(r instanceof Blob))throw new Error("Input must be a Blob");if(r.size===0)throw new Error("Input PDF is empty");if(r.size>100*1024*1024)throw new Error(`Input PDF too large (${r.size} bytes). Maximum: 100MB`);if(!t.outputProfile)throw new Error('outputProfile is required. Must be one of: "gracol", "fogra39", "srgb", "custom"');let e=["gracol","fogra39","srgb","custom"];if(!e.includes(t.outputProfile))throw new Error(`Invalid outputProfile "${t.outputProfile}". Must be one of: ${e.join(", ")}`);if(t.outputProfile==="custom"&&!t.customProfile)throw new Error('customProfile Blob is required when outputProfile is "custom"');if(t.customProfile&&!(t.customProfile instanceof Blob))throw new Error("customProfile must be a Blob");if(!await u.validatePDF(r))throw new Error("Invalid PDF format");let o=await y.load(),n=new b(o);try{let s="/tmp/input.pdf",a="/tmp/output.pdf",l="/tmp/pdfx_def.ps",D="/tmp/pdfx_post.ps",f="/tmp/custom.icc";if(await n.writeBlob(s,r),t.outputProfile==="custom"&&t.customProfile)await n.writeBlob(f,t.customProfile);else if(t.outputProfile!=="custom"){let c=N[t.outputProfile],Y=`/tmp/${c.file}`,K=typeof process<"u"&&process.versions?.node!=null,E;if(K){let X=process.env.VITEST==="true"||!1,h=new Function("s","return import(s)"),I=X?it=>import(it):h,{readFileSync:J}=await I("fs"),{fileURLToPath:Q}=await I("url"),{dirname:Z,join:tt}=await I("path"),et=Z(Q(import.meta.url)),rt=tt(et,c.file),ot=J(rt);E=new Blob([ot],{type:"application/vnd.iccprofile"})}else{let X=lt(t.outputProfile),h=await fetch(X);if(!h.ok)throw new Error(`Failed to load ICC profile ${c.file}: ${h.statusText}`);E=await h.blob()}await n.writeBlob(Y,E)}let m,d,g;if(t.outputProfile==="custom")m=f,d=t.outputConditionIdentifier||"Custom Profile",g=t.outputCondition||"Custom ICC Profile";else{let c=N[t.outputProfile];m=`/tmp/${c.file}`,d=t.outputConditionIdentifier||c.identifier,g=t.outputCondition||c.info}let F=n.readFile(m),v=F.slice(16,20),x=String.fromCharCode(...v).trim()==="CMYK",P=t.embedICCProfile!==!1,T=P?Array.from(F).map(c=>c.toString(16).padStart(2,"0")).join(""):"",M=G(new Date);if(typeof o.version!="string"||o.version.length===0)throw new Error("Ghostscript module reported no version; cannot mirror the Producer into XMP");let V=k(t,{iccProfileHex:T,outputConditionIdentifier:d,outputCondition:g,embedICCProfile:P,timestamps:M,docId:pt(),producer:`GPL Ghostscript ${o.version}`});n.writeText(l,V),n.writeText(D,A(t,M,P));let H=U(t,{isCMYKProfile:x,outputPath:a,pdfxDefPath:l,inputPath:s,postDocinfoPath:D}),O=await o.callMain(H);if(O!==0)throw new Error(`Ghostscript conversion failed with exit code ${O}`);let j=n.readFile(a),W=new Uint8Array(j),q=new Blob([W],{type:"application/pdf"});return n.cleanup(),q}catch(s){throw n.cleanup(),s}}function pt(){return typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{let t=Math.floor(Math.random()*16);return(r==="x"?t:t&3|8).toString(16)})}var N={gracol:{file:"GRACoL2013_CRPC6.icc",identifier:"CGATS 21.2",info:"GRACoL 2013 CRPC6"},fogra39:{file:"ISOcoated_v2_eci.icc",identifier:"FOGRA39",info:"ISO Coated v2 (ECI)"},srgb:{file:"sRGB_IEC61966-2-1.icc",identifier:"sRGB IEC61966-2.1",info:"sRGB IEC61966-2.1"}};export{p as Logger,_ as convertToPDFX,ct as convertToPDFX3};
|
|
70
70
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/utils/logger.ts", "../src/utils/browser-detection.ts", "../src/wasm/ghostscript-module.ts", "../src/core/ghostscript-loader.ts", "../src/utils/blob-utils.ts", "../src/core/virtual-filesystem.ts", "../src/pdfx-def.ts", "../src/pdfx-args.ts", "../src/pdfx.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable no-console */\nexport type LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\nexport interface LogEntry {\n timestamp: number;\n level: LogLevel;\n component: string;\n message: string;\n data?: any;\n}\n\nexport class Logger {\n private static globalLogLevel: LogLevel = 'warn';\n\n private static logs: LogEntry[] = [];\n\n private static maxLogs = 1000;\n\n constructor(private component: string) {}\n\n static setLogLevel(level: LogLevel): void {\n Logger.globalLogLevel = level;\n }\n\n static getLogs(): LogEntry[] {\n return [...Logger.logs];\n }\n\n static clearLogs(): void {\n Logger.logs = [];\n }\n\n debug(message: string, data?: any): void {\n this.log('debug', message, data);\n }\n\n info(message: string, data?: any): void {\n this.log('info', message, data);\n }\n\n warn(message: string, data?: any): void {\n this.log('warn', message, data);\n }\n\n error(message: string, data?: any): void {\n this.log('error', message, data);\n }\n\n private log(level: LogLevel, message: string, data?: any): void {\n const levelOrder: Record<LogLevel, number> = {\n debug: 0,\n info: 1,\n warn: 2,\n error: 3,\n };\n\n if (levelOrder[level] < levelOrder[Logger.globalLogLevel]) {\n return;\n }\n\n const entry: LogEntry = {\n timestamp: Date.now(),\n level,\n component: this.component,\n message,\n data,\n };\n\n Logger.logs.push(entry);\n\n // Keep logs under the limit\n if (Logger.logs.length > Logger.maxLogs) {\n Logger.logs = Logger.logs.slice(-Logger.maxLogs);\n }\n\n // Console output\n const prefix = `[${new Date().toISOString()}] [${level.toUpperCase()}] [${\n this.component\n }]`;\n const logMessage = data ? `${message} ${JSON.stringify(data)}` : message;\n\n switch (level) {\n case 'debug':\n console.debug(prefix, logMessage);\n break;\n case 'info':\n console.info(prefix, logMessage);\n break;\n case 'warn':\n console.warn(prefix, logMessage);\n break;\n case 'error':\n console.error(prefix, logMessage);\n break;\n default:\n // All log levels handled above\n break;\n }\n }\n}\n", "export class BrowserDetection {\n supportsWebAssembly(): boolean {\n try {\n return (\n typeof WebAssembly === 'object' &&\n typeof WebAssembly.instantiate === 'function'\n );\n } catch {\n return false;\n }\n }\n}\n", "// Wrapper for the Ghostscript WASM module to ensure proper loading\nimport type {\n EmscriptenModule,\n GhostscriptModuleFactory,\n} from '../types/ghostscript';\n\nexport interface GhostscriptModuleOptions {\n /**\n * Whether to suppress Ghostscript's stdout/stderr output.\n * Default: true (silent mode)\n */\n silent?: boolean;\n}\n\nexport default async function createGhostscriptModule(\n options: GhostscriptModuleOptions = {}\n): Promise<EmscriptenModule> {\n const { silent = true } = options;\n // Check if we're in Node.js\n const isNode =\n typeof process !== 'undefined' &&\n process.versions != null &&\n process.versions.node != null;\n\n let GhostscriptModule: any;\n let wasmPath: string;\n\n if (isNode) {\n // Node.js: Use require.resolve to find gs.js relative to this module\n // Use indirect dynamic import to prevent Webpack 5 from statically analyzing these imports\n // But use direct imports in test environments (vitest) where indirect imports bypass mocking\n // See: https://github.com/imgly/ubq/issues/11471\n const isTestEnv =\n typeof process !== 'undefined' &&\n (process.env.VITEST === 'true' || process.env.NODE_ENV === 'test');\n\n // Helper for dynamic imports - uses indirect import in production to avoid Webpack static analysis\n // Note: new Function() could fail in CSP-restricted environments, but CSP is a browser\n // security mechanism and doesn't apply to Node.js. This code only runs in Node.js (isNode check above).\n // eslint-disable-next-line @typescript-eslint/no-implied-eval, no-new-func\n const indirectImport = new Function('s', 'return import(s)') as (\n s: string\n ) => Promise<any>;\n const dynamicImport = isTestEnv ? (s: string) => import(s) : indirectImport;\n\n const moduleLib = await dynamicImport('module');\n const pathLib = await dynamicImport('path');\n const createRequire = moduleLib.createRequire;\n const dirname = pathLib.dirname;\n const join = pathLib.join;\n\n const requireForESM = createRequire(import.meta.url);\n\n // Resolve gs.js directly (it's copied to dist/ alongside the bundle)\n const gsPath = requireForESM.resolve('./gs.js');\n const moduleDir = dirname(gsPath);\n wasmPath = join(moduleDir, 'gs.wasm');\n\n GhostscriptModule = await dynamicImport(gsPath);\n } else {\n // Browser: Use URL-based imports\n const moduleUrl = new URL('./gs.js', import.meta.url).href;\n GhostscriptModule = await import(/* webpackIgnore: true */ moduleUrl);\n wasmPath = new URL('./gs.wasm', import.meta.url).href;\n }\n\n const factory = (GhostscriptModule.default ||\n GhostscriptModule) as GhostscriptModuleFactory;\n\n // Configure the module to load WASM from the bundled location\n const moduleConfig: Record<string, unknown> = {\n locateFile: (filename: string) => {\n if (filename === 'gs.wasm') {\n return wasmPath;\n }\n return filename;\n },\n };\n\n // Suppress Ghostscript stdout/stderr output in silent mode\n if (silent) {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n moduleConfig.print = () => {};\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n moduleConfig.printErr = () => {};\n }\n\n const module = await factory(moduleConfig);\n\n return module;\n}\n", "import type { EmscriptenModule } from '../types/ghostscript';\nimport { Logger } from '../utils/logger';\nimport { BrowserDetection } from '../utils/browser-detection';\nimport createGhostscriptModule from '../wasm/ghostscript-module';\n\nexport interface LoaderOptions {\n timeout?: number;\n}\n\nexport class GhostscriptLoader {\n private static instance: Promise<EmscriptenModule> | null = null;\n\n private static readonly TIMEOUT_MS = 30000;\n\n static async load(options: LoaderOptions = {}): Promise<EmscriptenModule> {\n if (this.instance) {\n return this.instance;\n }\n\n this.instance = this.loadInternal(options);\n return this.instance;\n }\n\n private static async loadInternal(\n options: LoaderOptions\n ): Promise<EmscriptenModule> {\n const logger = new Logger('GhostscriptLoader');\n const browser = new BrowserDetection();\n\n // Check browser compatibility\n if (!browser.supportsWebAssembly()) {\n throw new Error('WebAssembly not supported in this browser');\n }\n\n const timeout = options.timeout || this.TIMEOUT_MS;\n\n try {\n logger.info('Loading bundled Ghostscript (AGPL-3.0 licensed)');\n logger.info('Source available at: https://img.ly/docs/cesdk');\n return await this.loadWithTimeout(() => this.loadFromBundle(), timeout);\n } catch (error) {\n logger.error('Ghostscript loading failed', {\n error: (error as Error).message,\n });\n throw new Error(\n `Failed to load Ghostscript: ${(error as Error).message}`\n );\n }\n }\n\n private static async loadFromBundle(): Promise<EmscriptenModule> {\n // Use the bundled WASM module with proper configuration\n const logger = new Logger('GhostscriptInit');\n\n try {\n logger.info('Initializing Ghostscript module');\n\n const module = await createGhostscriptModule();\n\n logger.info('Ghostscript module initialized successfully', {\n version: module.version || 'unknown',\n hasFS: !!module.FS,\n hasCallMain: !!module.callMain,\n });\n\n return module;\n } catch (error) {\n logger.error('Ghostscript initialization failed', { error });\n throw new Error(\n `Ghostscript initialization failed: ${(error as Error).message}`\n );\n }\n }\n\n private static async loadWithTimeout<T>(\n operation: () => Promise<T>,\n timeoutMs: number\n ): Promise<T> {\n return Promise.race([\n operation(),\n new Promise<never>((_, reject) => {\n setTimeout(\n () => reject(new Error(`Loading timeout after ${timeoutMs}ms`)),\n timeoutMs\n );\n }),\n ]);\n }\n\n static reset(): void {\n this.instance = null;\n }\n}\n", "export class BlobUtils {\n static async toUint8Array(blob: Blob): Promise<Uint8Array> {\n if (blob.arrayBuffer) {\n const buffer = await blob.arrayBuffer();\n return new Uint8Array(buffer);\n }\n\n // Fallback for older browsers\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n if (reader.result instanceof ArrayBuffer) {\n resolve(new Uint8Array(reader.result));\n } else {\n reject(new Error('Failed to read blob as ArrayBuffer'));\n }\n };\n reader.onerror = () => reject(reader.error);\n reader.readAsArrayBuffer(blob);\n });\n }\n\n static async validatePDF(blob: Blob): Promise<boolean> {\n try {\n const data = await this.toUint8Array(blob);\n\n // Check PDF magic number\n const pdfHeader = new Uint8Array([0x25, 0x50, 0x44, 0x46]); // %PDF\n\n if (data.length < 4) {\n return false;\n }\n\n for (let i = 0; i < 4; i++) {\n if (data[i] !== pdfHeader[i]) {\n return false;\n }\n }\n\n return true;\n } catch {\n return false;\n }\n }\n}\n", "import type { EmscriptenModule, EmscriptenFS } from '../types/ghostscript';\nimport { Logger } from '../utils/logger';\nimport { BlobUtils } from '../utils/blob-utils';\n\nexport interface FileEntry {\n path: string;\n data: Uint8Array;\n cleanup: boolean;\n}\n\nexport class VirtualFileSystem {\n private readonly fs: EmscriptenFS;\n\n private readonly logger: Logger;\n\n private readonly managedFiles: Set<string> = new Set();\n\n private readonly workingDir: string;\n\n constructor(\n private readonly module: EmscriptenModule,\n workingDir = '/tmp/pdfx'\n ) {\n this.fs = module.FS;\n this.logger = new Logger('VirtualFileSystem');\n this.workingDir = workingDir;\n this.initialize();\n }\n\n private initialize(): void {\n try {\n // Create working directory structure (handle existing directories gracefully)\n this.createDirIfNotExists(this.workingDir);\n this.createDirIfNotExists(`${this.workingDir}/input`);\n this.createDirIfNotExists(`${this.workingDir}/output`);\n this.createDirIfNotExists(`${this.workingDir}/profiles`);\n this.createDirIfNotExists(`${this.workingDir}/temp`);\n\n this.logger.info('Virtual filesystem initialized', {\n workingDir: this.workingDir,\n });\n } catch (error) {\n this.logger.error('Failed to initialize virtual filesystem', { error });\n throw new Error(`VFS initialization failed: ${error}`);\n }\n }\n\n private createDirIfNotExists(path: string): void {\n try {\n this.fs.mkdir(path);\n } catch (error: any) {\n // Ignore \"File exists\" errors, re-throw others\n if (error.code !== 'EEXIST') {\n throw error;\n }\n }\n }\n\n async writeBlob(path: string, blob: Blob, managed = true): Promise<void> {\n try {\n const data = await BlobUtils.toUint8Array(blob);\n this.fs.writeFile(path, data);\n\n if (managed) {\n this.managedFiles.add(path);\n }\n\n this.logger.debug('File written', { path, size: data.length });\n } catch (error) {\n this.logger.error('Failed to write blob', { path, error });\n throw new Error(`Failed to write file ${path}: ${error}`);\n }\n }\n\n writeText(path: string, content: string, managed = true): void {\n try {\n this.fs.writeFile(path, content);\n\n if (managed) {\n this.managedFiles.add(path);\n }\n\n this.logger.debug('Text file written', { path, length: content.length });\n } catch (error) {\n this.logger.error('Failed to write text', { path, error });\n throw new Error(`Failed to write text file ${path}: ${error}`);\n }\n }\n\n readFile(path: string): Uint8Array {\n try {\n const data = this.fs.readFile(path) as Uint8Array;\n this.logger.debug('File read', { path, size: data.length });\n return data;\n } catch (error) {\n this.logger.error('Failed to read file', { path, error });\n throw new Error(`Failed to read file ${path}: ${error}`);\n }\n }\n\n exists(path: string): boolean {\n try {\n this.fs.stat(path);\n return true;\n } catch {\n return false;\n }\n }\n\n cleanup(): void {\n let cleanedCount = 0;\n\n for (const path of this.managedFiles) {\n try {\n this.fs.unlink(path);\n cleanedCount++;\n } catch (error) {\n this.logger.warn('Failed to cleanup file', { path, error });\n }\n }\n\n this.managedFiles.clear();\n this.logger.info('Filesystem cleanup completed', { cleanedCount });\n }\n}\n", "import type { PDFXOptions } from './types/pdfx';\n\n/** Value written to DocInfo `/Creator` and XMP `xmp:CreatorTool`. */\nconst CREATOR_TOOL = 'IMG.LY';\n\n/**\n * Resolve the document title once for BOTH metadata stores. Lone surrogates\n * and XML-illegal control characters would desync or corrupt the XMP side,\n * so they are repaired/stripped before either encoding sees the value.\n */\nfunction resolveTitle(options: PDFXOptions): string {\n const sanitized = (options.title || '')\n .replace(\n /[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?<![\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]/g,\n '\uFFFD'\n )\n // eslint-disable-next-line no-control-regex\n .replace(/[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]/g, '');\n return sanitized || 'Untitled';\n}\n\n/**\n * One instant rendered in both metadata date formats. PDF/X-4 requires the\n * DocInfo dates and the XMP dates to describe the same time, so both strings\n * must always be derived from the same `Date` via `formatPDFXTimestamps`.\n */\nexport interface PDFXTimestamps {\n /** PDF date string for DOCINFO pdfmarks, e.g. `D:20260722140113+00'00'` */\n pdfDate: string;\n /** ISO-8601 string for the XMP packet, e.g. `2026-07-22T14:01:13+00:00` */\n xmpDate: string;\n}\n\n/**\n * Render `date` at second precision in UTC. Sub-second precision is dropped\n * deliberately: the PDF date format has none, and a fractional part in the\n * XMP value would break the Info\u2194XMP equivalence preflight checks.\n */\nexport function formatPDFXTimestamps(date: Date): PDFXTimestamps {\n if (Number.isNaN(date.getTime())) {\n throw new Error('formatPDFXTimestamps: invalid Date');\n }\n const p = (n: number) => String(n).padStart(2, '0');\n const y = date.getUTCFullYear();\n const mo = p(date.getUTCMonth() + 1);\n const d = p(date.getUTCDate());\n const h = p(date.getUTCHours());\n const mi = p(date.getUTCMinutes());\n const s = p(date.getUTCSeconds());\n return {\n pdfDate: `D:${y}${mo}${d}${h}${mi}${s}+00'00'`,\n xmpDate: `${y}-${mo}-${d}T${h}:${mi}:${s}+00:00`,\n };\n}\n\n/**\n * Escape a string for use inside a parens-delimited PostScript string.\n * Only `(`, `)`, `\\` need escaping; XML angle brackets and ampersands pass\n * through untouched (PostScript doesn't interpret them).\n */\nfunction escapePSString(value: string): string {\n return value\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\(/g, '\\\\(')\n .replace(/\\)/g, '\\\\)');\n}\n\n/**\n * XML-escape a string for use inside element content or quoted attribute\n * values. Covers the five canonical XML entities.\n */\nfunction escapeXML(value: string): string {\n return value\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\n/**\n * Hex-encode a UTF-8 string for use inside a pdfmark `<...>` hex stream\n * literal. PostScript hex strings are case-insensitive; we emit lowercase\n * to match the rest of the pdfmark output.\n */\nfunction utf8ToHex(value: string): string {\n const bytes = new TextEncoder().encode(value);\n let hex = '';\n for (const b of bytes) {\n hex += b.toString(16).padStart(2, '0');\n }\n return hex;\n}\n\n/**\n * Encode a string as a BOM-prefixed UTF-16BE hex string for pdfmark text\n * values \u2014 a parens literal would be read as PDFDocEncoding and garble\n * non-ASCII titles.\n */\nfunction utf16beHex(value: string): string {\n let hex = 'FEFF';\n for (let i = 0; i < value.length; i++) {\n hex += value.charCodeAt(i).toString(16).toUpperCase().padStart(4, '0');\n }\n return hex;\n}\n\n/**\n * Build the strict PDF/X-4 XMP packet body that fully replaces GS's\n * auto-generated XMP. Preflight checks `pdfxid:GTS_PDFXVersion` specifically;\n * older validators (callas, GS) read `pdfx:GTS_PDFXVersion` \u2014 we emit both.\n * `xmpMM:DocumentID`, `RenditionClass`, and `VersionID` round out the entries\n * Acrobat flags as missing on a non-strict X-4.\n *\n * GS's legacy auto-XMP uses the `xapMM` prefix which strict Acrobat Preflight\n * rejects. Replacing the whole packet via the Catalog.Metadata pdfmark\n * bypasses that.\n *\n * Every value that also exists in the final Info dictionary must stay\n * equivalent (PDF/X-4): title/dates/creator match the `generatePostDocinfo`\n * pdfmarks; producer mirrors pdfwrite's own Info stamp.\n */\nfunction buildPDFX4XMPPacket(\n title: string,\n timestamps: PDFXTimestamps,\n docId: string,\n producer: string\n): string {\n const titleX = escapeXML(title);\n const nowX = escapeXML(timestamps.xmpDate);\n const docIdX = escapeXML(docId);\n const producerX = escapeXML(producer);\n // U+FEFF after `begin=\"` is the canonical XMP packet BOM marker.\n // eslint-disable-next-line no-irregular-whitespace\n return `<?xpacket begin=\"\uFEFF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <rdf:Description rdf:about=\"\"\n xmlns:pdfx=\"http://ns.adobe.com/pdfx/1.3/\"\n xmlns:pdfxid=\"http://www.npes.org/pdfx/ns/id/\"\n xmlns:pdf=\"http://ns.adobe.com/pdf/1.3/\"\n xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\"\n xmlns:xmpMM=\"http://ns.adobe.com/xap/1.0/mm/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n <pdfx:GTS_PDFXVersion>PDF/X-4</pdfx:GTS_PDFXVersion>\n <pdfxid:GTS_PDFXVersion>PDF/X-4</pdfxid:GTS_PDFXVersion>\n <pdf:Trapped>False</pdf:Trapped>\n <pdf:Producer>${producerX}</pdf:Producer>\n <xmp:CreateDate>${nowX}</xmp:CreateDate>\n <xmp:ModifyDate>${nowX}</xmp:ModifyDate>\n <xmp:MetadataDate>${nowX}</xmp:MetadataDate>\n <xmp:CreatorTool>${CREATOR_TOOL}</xmp:CreatorTool>\n <dc:format>application/pdf</dc:format>\n <dc:title>\n <rdf:Alt>\n <rdf:li xml:lang=\"x-default\">${titleX}</rdf:li>\n </rdf:Alt>\n </dc:title>\n <xmpMM:DocumentID>uuid:${docIdX}</xmpMM:DocumentID>\n <xmpMM:RenditionClass>default</xmpMM:RenditionClass>\n <xmpMM:VersionID>1</xmpMM:VersionID>\n </rdf:Description>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"w\"?>`;\n}\n\nexport interface PDFXDefContext {\n iccProfileHex: string;\n outputConditionIdentifier: string;\n outputCondition: string;\n embedICCProfile: boolean;\n timestamps: PDFXTimestamps;\n docId: string;\n /** Producer string pdfwrite stamps into DocInfo, e.g. `GPL Ghostscript 10.03.1`. */\n producer: string;\n}\n\nexport function generatePDFXDef(\n options: PDFXOptions,\n ctx: PDFXDefContext\n): string {\n // Minimal definition when ICC embedding is disabled: no PDF/X conformance\n // markers and no OutputIntent. DOCINFO entries live in the post-input file.\n if (!ctx.embedICCProfile) {\n return `%!\n% PDF Definition File (ICC embedding disabled)`;\n }\n\n const isX4 = options.outputStandard === 'PDF/X-4';\n const headerComment = isX4\n ? '% PDF/X-4 Definition File'\n : '% PDF/X-3 Definition File';\n\n // X-4 strict conformance: remove transfer functions and halftones globally\n // via setdistillerparams. This must run before any pdfmark so it applies\n // to the full pdfwrite session. Strips the inherited /TR and /HT references\n // Acrobat Preflight reports as hundreds of instances on customer files.\n const distillerPrologue = isX4\n ? '<< /TransferFunctionInfo /Remove /HalftoneInfo /Remove >> setdistillerparams\\n'\n : '';\n\n // X-4 strict conformance: write our own XMP packet and attach it to the\n // Catalog via the Metadata pdfmark. This fully replaces GS's auto-generated\n // XMP (which uses the legacy `xapMM` prefix Acrobat Preflight rejects) and\n // gives us complete control over the entries Preflight checks.\n const xmpReplaceBlock = isX4\n ? `\n\n% Strict PDF/X-4 XMP packet (replaces GS's auto-generated XMP)\n[/_objdef {Metadata} /type /stream /OBJ pdfmark\n[{Metadata} <</Type /Metadata /Subtype /XML>> /PUT pdfmark\n[{Metadata} <${utf8ToHex(\n buildPDFX4XMPPacket(\n resolveTitle(options),\n ctx.timestamps,\n ctx.docId,\n ctx.producer\n )\n )}> /PUT pdfmark\n[{Catalog} <</Metadata {Metadata}>> /PUT pdfmark`\n : '';\n\n return `%!\n${headerComment}\n${distillerPrologue}\n% Set TrimBox to match MediaBox for all pages (required for PDF/X)\n[/TrimBox [0 0 0 0] /PAGE pdfmark\n\n% Embed ICC profile as hex stream\n[/_objdef {icc_PDFX} /type /stream /OBJ pdfmark\n[{icc_PDFX} <</N 4>> /PUT pdfmark\n[{icc_PDFX} <${ctx.iccProfileHex}> /PUT pdfmark\n\n% Define OutputIntent with embedded ICC profile\n[/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark\n[{OutputIntent_PDFX} <<\n /Type /OutputIntent\n /S /GTS_PDFX\n /OutputCondition (${escapePSString(ctx.outputCondition)})\n /OutputConditionIdentifier (${escapePSString(ctx.outputConditionIdentifier)})\n /RegistryName (http://www.color.org)\n /DestOutputProfile {icc_PDFX}\n>> /PUT pdfmark\n\n% Add OutputIntent to Catalog\n[{Catalog} <</OutputIntents [{OutputIntent_PDFX}]>> /PUT pdfmark${xmpReplaceBlock}`;\n}\n\n/**\n * DOCINFO pdfmark file that runs AFTER the input PDF. Ghostscript merges the\n * input's Info dictionary during interpretation, so entries written in the\n * pre-input definition file get overridden by the input's values (the engine\n * writes the scene name as `/Title`, for example). Re-asserting the entries\n * afterwards makes them authoritative and keeps them equivalent to the XMP\n * packet, as PDF/X-4 requires. GS derives its auto-XMP for the non-X-4 paths\n * from the final Info dictionary, so those stay synchronized too.\n */\nexport function generatePostDocinfo(\n options: PDFXOptions,\n timestamps: PDFXTimestamps,\n embedICCProfile: boolean\n): string {\n const title = resolveTitle(options);\n const isX4 = options.outputStandard === 'PDF/X-4';\n\n // X-3 keeps the conformance entry in DOCINFO (ISO 15930-6); X-4 keeps it\n // in XMP only. No claim when ICC embedding is off (output is not PDF/X).\n const x3ConformanceLine =\n isX4 || !embedICCProfile\n ? ''\n : '\\n[ /GTS_PDFXVersion (PDF/X-3:2003) /GTS_PDFXConformance (PDF/X-3:2003) /DOCINFO pdfmark';\n\n return `%!\n% Post-input DOCINFO (must stay equivalent to the XMP packet)\n[ /Title <${utf16beHex(title)}> /DOCINFO pdfmark\n[ /Creator (${CREATOR_TOOL}) /DOCINFO pdfmark\n[ /CreationDate (${timestamps.pdfDate}) /DOCINFO pdfmark\n[ /ModDate (${timestamps.pdfDate}) /DOCINFO pdfmark\n[ /Trapped /False /DOCINFO pdfmark${x3ConformanceLine}`;\n}\n", "import type { PDFXOptions } from './types/pdfx';\n\nexport interface BuildGhostscriptArgsContext {\n isCMYKProfile: boolean;\n outputPath: string;\n pdfxDefPath: string;\n inputPath: string;\n postDocinfoPath: string;\n}\n\n/**\n * Build the Ghostscript argv for the conversion run.\n *\n * Pure function: no I/O, no side effects. Centralizes the X-3 vs X-4 branch\n * and the `ghostscriptArgs` full-override short-circuit so the call site in\n * `pdfx.ts` stays readable.\n */\nexport function buildGhostscriptArgs(\n options: PDFXOptions,\n ctx: BuildGhostscriptArgsContext\n): string[] {\n // The post-input DOCINFO file must come after the input so its entries win\n // over Info values inherited from the input PDF.\n const trailing = [\n `-sOutputFile=${ctx.outputPath}`,\n ctx.pdfxDefPath,\n ctx.inputPath,\n ctx.postDocinfoPath,\n ];\n\n // Full override: caller takes responsibility for every flag. We still\n // append the positional output/def/input/post quadruplet so callers don't\n // have to know the internal /tmp/ paths. Empty arrays fall through to\n // defaults.\n if (options.ghostscriptArgs && options.ghostscriptArgs.length > 0) {\n return [...options.ghostscriptArgs, ...trailing];\n }\n\n const isX4 = options.outputStandard === 'PDF/X-4';\n\n const args: string[] = [\n '-dBATCH',\n '-dNOPAUSE',\n '-sDEVICE=pdfwrite',\n // PDF/X-4 requires PDF 1.6 (live transparency); X-3 stays at 1.4.\n isX4 ? '-dCompatibilityLevel=1.6' : '-dCompatibilityLevel=1.4',\n // Disable PDF 1.5+ features for X-3 to avoid warnings; harmless on X-4.\n // Keep `-dWriteObjStms=false` on for X-4 too \u2014 the integration tests grep\n // the output for strict-conformance markers, and object streams would\n // hide them inside compressed dictionaries.\n '-dWriteObjStms=false',\n '-dWriteXRefStm=false',\n '-dPDFSETTINGS=/prepress',\n '-dSetPageSize=false',\n '-dAutoRotatePages=/None',\n ];\n\n if (isX4) {\n // pdfwrite Flate-compresses the pdfmark-injected XMP Metadata stream,\n // which Acrobat Preflight flags as a PDF/X-4 violation. Costs output\n // size: the ICC profile and other pdfmark streams stay raw.\n args.push('-dCompressStreams=false');\n }\n\n // X-4 keeps transparency live by definition \u2014 never push HaveTransparency=false.\n // For X-3, default to flattening so output is strictly compliant; callers\n // can opt out (producing a non-strict X-3 with live transparency).\n if (!isX4 && options.flattenTransparency !== false) {\n args.push('-dHaveTransparency=false');\n }\n\n if (ctx.isCMYKProfile) {\n args.push(\n '-sColorConversionStrategy=CMYK',\n '-dProcessColorModel=/DeviceCMYK',\n '-dConvertCMYKImagesToRGB=false'\n );\n } else {\n args.push('-sColorConversionStrategy=RGB');\n }\n\n return [...args, ...trailing];\n}\n", "import type { PDFXOptions, PDFX3Options } from './types/pdfx';\nimport { GhostscriptLoader } from './core/ghostscript-loader';\nimport { VirtualFileSystem } from './core/virtual-filesystem';\nimport { BlobUtils } from './utils/blob-utils';\nimport {\n formatPDFXTimestamps,\n generatePDFXDef,\n generatePostDocinfo,\n} from './pdfx-def';\nimport { buildGhostscriptArgs } from './pdfx-args';\n\n/**\n * PDF/X conversion function.\n *\n * Converts RGB PDF(s) to the selected PDF/X standard (defaults to `PDF/X-4`)\n * using the specified output profile. PDF/X-4 keeps live transparency so\n * vector text on transparent pages stays selectable. Set\n * `outputStandard: 'PDF/X-3'` to fall back to the older PDF 1.4 standard\n * (which requires flattening transparency).\n *\n * Known limitation: `/Author`, `/Subject`, and `/Keywords` entries inherited\n * from the input PDF are carried into the output without XMP counterparts,\n * which preflight tools may flag. CE.SDK exports never write these keys.\n *\n * @overload\n * @param inputPDF Single PDF blob to convert\n * @param options Conversion configuration\n * @returns Promise resolving to converted PDF blob\n *\n * @overload\n * @param inputPDFs Array of PDF blobs to convert\n * @param options Conversion configuration\n * @returns Promise resolving to array of converted PDF blobs\n */\nexport function convertToPDFX(\n inputPDF: Blob,\n options: PDFXOptions\n): Promise<Blob>;\nexport function convertToPDFX(\n inputPDFs: Blob[],\n options: PDFXOptions\n): Promise<Blob[]>;\nexport async function convertToPDFX(\n input: Blob | Blob[],\n options: PDFXOptions\n): Promise<Blob | Blob[]> {\n // Apply the X-4 default at the entry point so internal helpers see a\n // concrete outputStandard. Explicit caller values win over the default.\n const resolvedOptions: PDFXOptions = {\n outputStandard: 'PDF/X-4',\n ...options,\n };\n\n // Handle array input (batch processing)\n if (Array.isArray(input)) {\n if (input.length === 0) {\n return [];\n }\n\n // Process each blob sequentially to avoid overwhelming the WASM module\n const results: Blob[] = [];\n for (let i = 0; i < input.length; i++) {\n try {\n // eslint-disable-next-line no-await-in-loop\n const converted = await convertToPDFXSingle(input[i], resolvedOptions);\n results.push(converted);\n } catch (error) {\n throw new Error(\n `Failed to convert PDF ${i + 1} of ${input.length}: ${\n error instanceof Error ? error.message : String(error)\n }`\n );\n }\n }\n return results;\n }\n\n // Handle single blob input\n return convertToPDFXSingle(input, resolvedOptions);\n}\n\n/**\n * @deprecated Use `convertToPDFX` instead. This alias is preserved for\n * backwards compatibility and will be removed in a future major release.\n *\n * Defaults to `outputStandard: 'PDF/X-3'` to match the historical behavior\n * of this function \u2014 unlike `convertToPDFX`, which defaults to PDF/X-4.\n * Callers can still pass `outputStandard: 'PDF/X-4'` explicitly to opt in.\n */\nexport function convertToPDFX3(\n inputPDF: Blob,\n options: PDFX3Options\n): Promise<Blob>;\nexport function convertToPDFX3(\n inputPDFs: Blob[],\n options: PDFX3Options\n): Promise<Blob[]>;\nexport function convertToPDFX3(\n input: Blob | Blob[],\n options: PDFX3Options\n): Promise<Blob | Blob[]> {\n // Preserve historical X-3 default for the deprecated alias. Explicit\n // caller values still win, so { outputStandard: 'PDF/X-4' } also works.\n const x3Defaulted: PDFX3Options = { outputStandard: 'PDF/X-3', ...options };\n // Delegate without narrowing \u2014 runtime branch on Array.isArray inside\n // convertToPDFX already matches the overload semantics.\n return convertToPDFX(input as Blob, x3Defaulted);\n}\n\n/**\n * Internal function to convert a single PDF\n */\nasync function convertToPDFXSingle(\n inputPDF: Blob,\n options: PDFXOptions\n): Promise<Blob> {\n // Validate inputs\n if (!(inputPDF instanceof Blob)) {\n throw new Error('Input must be a Blob');\n }\n\n if (inputPDF.size === 0) {\n throw new Error('Input PDF is empty');\n }\n\n if (inputPDF.size > 100 * 1024 * 1024) {\n throw new Error(\n `Input PDF too large (${inputPDF.size} bytes). Maximum: 100MB`\n );\n }\n\n // Validate output profile is provided\n if (!options.outputProfile) {\n throw new Error(\n 'outputProfile is required. Must be one of: \"gracol\", \"fogra39\", \"srgb\", \"custom\"'\n );\n }\n\n // Validate output profile value\n const validProfiles = ['gracol', 'fogra39', 'srgb', 'custom'];\n if (!validProfiles.includes(options.outputProfile)) {\n throw new Error(\n `Invalid outputProfile \"${\n options.outputProfile\n }\". Must be one of: ${validProfiles.join(', ')}`\n );\n }\n\n // Validate custom profile requirement\n if (options.outputProfile === 'custom' && !options.customProfile) {\n throw new Error(\n 'customProfile Blob is required when outputProfile is \"custom\"'\n );\n }\n\n // Validate custom profile if provided\n if (options.customProfile && !(options.customProfile instanceof Blob)) {\n throw new Error('customProfile must be a Blob');\n }\n\n // Validate PDF format\n const isValidPDF = await BlobUtils.validatePDF(inputPDF);\n if (!isValidPDF) {\n throw new Error('Invalid PDF format');\n }\n\n // Load Ghostscript\n const module = await GhostscriptLoader.load();\n const vfs = new VirtualFileSystem(module);\n\n try {\n // Setup file paths\n const inputPath = '/tmp/input.pdf';\n const outputPath = '/tmp/output.pdf';\n const pdfxDefPath = '/tmp/pdfx_def.ps';\n const postDocinfoPath = '/tmp/pdfx_post.ps';\n const customProfilePath = '/tmp/custom.icc';\n\n // Write input PDF to virtual filesystem\n await vfs.writeBlob(inputPath, inputPDF);\n\n // Write ICC profiles to virtual filesystem\n if (options.outputProfile === 'custom' && options.customProfile) {\n await vfs.writeBlob(customProfilePath, options.customProfile);\n } else if (options.outputProfile !== 'custom') {\n // Load the bundled ICC profile\n const profileInfo =\n PROFILE_PRESETS[options.outputProfile as keyof typeof PROFILE_PRESETS];\n const profilePath = `/tmp/${profileInfo.file}`;\n\n // Load ICC profile - different approach for Node.js vs browser\n const isNode =\n typeof process !== 'undefined' && process.versions?.node != null;\n\n let profileBlob: Blob;\n\n if (isNode) {\n // Node.js: Load from filesystem using readFileSync\n // Use indirect dynamic import to prevent Webpack 5 from statically analyzing these imports\n // But use direct imports in test environments (vitest) where indirect imports bypass mocking\n // See: https://github.com/imgly/ubq/issues/11471\n const isTestEnv =\n process.env.VITEST === 'true' || process.env.NODE_ENV === 'test';\n\n // Note: new Function() could fail in CSP-restricted environments, but CSP is a browser\n // security mechanism and doesn't apply to Node.js. This code only runs in Node.js (isNode check above).\n // eslint-disable-next-line @typescript-eslint/no-implied-eval, no-new-func\n const indirectImport = new Function('s', 'return import(s)') as (\n s: string\n ) => Promise<any>;\n const dynamicImport = isTestEnv\n ? (s: string) => import(s)\n : indirectImport;\n\n const { readFileSync } = await dynamicImport('fs');\n const { fileURLToPath } = await dynamicImport('url');\n const { dirname, join } = await dynamicImport('path');\n\n // Get the directory of the built module\n const moduleDir = dirname(fileURLToPath(import.meta.url));\n const profileFilePath = join(moduleDir, profileInfo.file);\n\n const profileData = readFileSync(profileFilePath);\n profileBlob = new Blob([profileData], {\n type: 'application/vnd.iccprofile',\n });\n } else {\n // Browser: Use fetch\n const profileUrl = new URL(profileInfo.file, import.meta.url).href;\n const profileResponse = await fetch(profileUrl);\n if (!profileResponse.ok) {\n throw new Error(\n `Failed to load ICC profile ${profileInfo.file}: ${profileResponse.statusText}`\n );\n }\n profileBlob = await profileResponse.blob();\n }\n\n await vfs.writeBlob(profilePath, profileBlob);\n }\n\n // Determine ICC profile path and metadata for Ghostscript\n let iccProfilePath: string;\n let outputConditionIdentifier: string;\n let outputCondition: string;\n\n if (options.outputProfile === 'custom') {\n iccProfilePath = customProfilePath;\n // Use custom values or defaults\n outputConditionIdentifier =\n options.outputConditionIdentifier || 'Custom Profile';\n outputCondition = options.outputCondition || 'Custom ICC Profile';\n } else {\n const preset =\n PROFILE_PRESETS[options.outputProfile as keyof typeof PROFILE_PRESETS];\n iccProfilePath = `/tmp/${preset.file}`;\n // Allow overriding preset values\n outputConditionIdentifier =\n options.outputConditionIdentifier || preset.identifier;\n outputCondition = options.outputCondition || preset.info;\n }\n\n // Read ICC profile data to inspect its color space\n const iccData = vfs.readFile(iccProfilePath);\n\n // Determine color conversion strategy based on profile type\n // ICC profile color space is at bytes 16-19\n // 'RGB ' = 0x52474220, 'CMYK' = 0x434D594B\n const colorSpaceBytes = iccData.slice(16, 20);\n const colorSpaceStr = String.fromCharCode(...colorSpaceBytes);\n const isCMYKProfile = colorSpaceStr.trim() === 'CMYK';\n\n // Embed ICC profile + PDF/X-3 OutputIntent by default. Callers can opt\n // out (e.g. when a downstream prepress pipeline handles ICC embedding).\n const embedICCProfile = options.embedICCProfile !== false;\n\n // Only hex-encode the profile for pdfmark embedding when we'll actually\n // embed it. WASM doesn't support (file) (r) file syntax, so pdfmark needs\n // the raw hex stream inline.\n const iccHex = embedICCProfile\n ? Array.from(iccData)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n : '';\n\n // One instant for both metadata stores (DocInfo and XMP dates).\n const timestamps = formatPDFXTimestamps(new Date());\n\n // pdfwrite stamps its own Producer into DocInfo (not overridable in GPL\n // builds); the XMP packet must mirror it exactly.\n if (typeof module.version !== 'string' || module.version.length === 0) {\n throw new Error(\n 'Ghostscript module reported no version; cannot mirror the Producer into XMP'\n );\n }\n\n const pdfxDefinition = generatePDFXDef(options, {\n iccProfileHex: iccHex,\n outputConditionIdentifier,\n outputCondition,\n embedICCProfile,\n timestamps,\n docId: generateDocumentId(),\n producer: `GPL Ghostscript ${module.version}`,\n });\n vfs.writeText(pdfxDefPath, pdfxDefinition);\n vfs.writeText(\n postDocinfoPath,\n generatePostDocinfo(options, timestamps, embedICCProfile)\n );\n\n // Note on ICC profile selection when embedICCProfile is false:\n // pdfwrite's color conversion uses Ghostscript's bundled default CMYK\n // profile (regardless of the selected outputProfile) since\n // `-sOutputICCProfile` only controls OutputIntent embedding on the\n // pdfwrite device, not the conversion math. That's acceptable here\n // because downstream prepress pipelines (ZePrA, PitStop) are expected\n // to re-normalize colors using their own profile anyway; the plugin's\n // job in this mode is only to deliver a device CMYK PDF without an\n // embedded OutputIntent.\n const gsArgs = buildGhostscriptArgs(options, {\n isCMYKProfile,\n outputPath,\n pdfxDefPath,\n inputPath,\n postDocinfoPath,\n });\n\n const exitCode = await module.callMain(gsArgs);\n if (exitCode !== 0) {\n throw new Error(\n `Ghostscript conversion failed with exit code ${exitCode}`\n );\n }\n\n // Read output\n const outputData = vfs.readFile(outputPath);\n // Create a copy of the data to ensure it's an ArrayBuffer, not SharedArrayBuffer\n const outputBuffer = new Uint8Array(outputData);\n const outputPDF = new Blob([outputBuffer], { type: 'application/pdf' });\n\n // Cleanup\n vfs.cleanup();\n\n return outputPDF;\n } catch (error) {\n vfs.cleanup();\n throw error;\n }\n}\n\n/**\n * Generate an RFC 4122 v4 UUID for the XMP `xmpMM:DocumentID` field. Uses\n * the Web Crypto API where available (modern browsers, Node 19+); falls\n * back to a Math.random shim for older Node runtimes. The DocumentID is\n * an identifier, not a security boundary, so the fallback is acceptable.\n */\nfunction generateDocumentId(): string {\n if (typeof globalThis.crypto?.randomUUID === 'function') {\n return globalThis.crypto.randomUUID();\n }\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = Math.floor(Math.random() * 16);\n // Standard RFC 4122 v4 y-nibble construction: clamp to 10/11 (binary) via\n // bit-clear of 0x3 then set 0x8. Bitwise math is unavoidable here.\n // eslint-disable-next-line no-bitwise\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\n// Profile presets from the spec\nconst PROFILE_PRESETS = {\n gracol: {\n file: 'GRACoL2013_CRPC6.icc',\n identifier: 'CGATS 21.2',\n info: 'GRACoL 2013 CRPC6',\n },\n fogra39: {\n file: 'ISOcoated_v2_eci.icc',\n identifier: 'FOGRA39',\n info: 'ISO Coated v2 (ECI)',\n },\n srgb: {\n file: 'sRGB_IEC61966-2-1.icc',\n identifier: 'sRGB IEC61966-2.1',\n info: 'sRGB IEC61966-2.1',\n },\n};\n"],
|
|
5
|
-
"mappings": "AAWO,IAAMA,EAAN,MAAMC,CAAO,CAOlB,YAAoBC,EAAmB,CAAnB,eAAAA,CAAoB,CANxC,OAAe,eAA2B,OAE1C,OAAe,KAAmB,CAAC,EAEnC,OAAe,QAAU,IAIzB,OAAO,YAAYC,EAAuB,CACxCF,EAAO,eAAiBE,CAC1B,CAEA,OAAO,SAAsB,CAC3B,MAAO,CAAC,GAAGF,EAAO,IAAI,CACxB,CAEA,OAAO,WAAkB,CACvBA,EAAO,KAAO,CAAC,CACjB,CAEA,MAAMG,EAAiBC,EAAkB,CACvC,KAAK,IAAI,QAASD,EAASC,CAAI,CACjC,CAEA,KAAKD,EAAiBC,EAAkB,CACtC,KAAK,IAAI,OAAQD,EAASC,CAAI,CAChC,CAEA,KAAKD,EAAiBC,EAAkB,CACtC,KAAK,IAAI,OAAQD,EAASC,CAAI,CAChC,CAEA,MAAMD,EAAiBC,EAAkB,CACvC,KAAK,IAAI,QAASD,EAASC,CAAI,CACjC,CAEQ,IAAIF,EAAiBC,EAAiBC,EAAkB,CAC9D,IAAMC,EAAuC,CAC3C,MAAO,EACP,KAAM,EACN,KAAM,EACN,MAAO,CACT,EAEA,GAAIA,EAAWH,CAAK,EAAIG,EAAWL,EAAO,cAAc,EACtD,OAGF,IAAMM,EAAkB,CACtB,UAAW,KAAK,IAAI,EACpB,MAAAJ,EACA,UAAW,KAAK,UAChB,QAAAC,EACA,KAAAC,CACF,EAEAJ,EAAO,KAA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AQ,YAAe,WACpC,WAAW,OAAO,WAAW,EAE/B,uCAAuC,QAAQ,QAAUQ,GAAM,CACpE,IAAMC,EAAI,KAAK,MAAM,KAAK,OAAO,EAAI,EAAE,EAKvC,OADUD,IAAM,IAAMC,EAAKA,EAAI,EAAO,GAC7B,SAAS,EAAE,CACtB,CAAC,CACH,CAGA,IAAMxC,EAAkB,CACtB,OAAQ,CACN,KAAM,uBACN,WAAY,aACZ,KAAM,mBACR,EACA,QAAS,CACP,KAAM,uBACN,WAAY,UACZ,KAAM,qBACR,EACA,KAAM,CACJ,KAAM,wBACN,WAAY,oBACZ,KAAM,mBACR,CACF",
|
|
6
|
-
"names": ["Logger", "_Logger", "component", "level", "message", "data", "levelOrder", "entry", "prefix", "logMessage", "BrowserDetection", "createGhostscriptModule", "options", "silent", "isNode", "GhostscriptModule", "wasmPath", "isTestEnv", "indirectImport", "dynamicImport", "s", "moduleLib", "pathLib", "createRequire", "dirname", "join", "gsPath", "moduleDir", "factory", "moduleConfig", "filename", "GhostscriptLoader", "options", "logger", "Logger", "BrowserDetection", "timeout", "error", "module", "createGhostscriptModule", "operation", "timeoutMs", "_", "reject", "BlobUtils", "blob", "buffer", "resolve", "reject", "reader", "data", "pdfHeader", "i", "VirtualFileSystem", "module", "workingDir", "Logger", "error", "path", "blob", "managed", "data", "BlobUtils", "content", "cleanedCount", "CREATOR_TOOL", "resolveTitle", "options", "formatPDFXTimestamps", "date", "p", "n", "y", "mo", "d", "h", "mi", "s", "escapePSString", "value", "escapeXML", "utf8ToHex", "bytes", "hex", "b", "utf16beHex", "i", "buildPDFX4XMPPacket", "title", "timestamps", "docId", "producer", "titleX", "nowX", "docIdX", "generatePDFXDef", "ctx", "isX4", "headerComment", "distillerPrologue", "xmpReplaceBlock", "generatePostDocinfo", "embedICCProfile", "x3ConformanceLine", "buildGhostscriptArgs", "options", "ctx", "trailing", "isX4", "args", "convertToPDFX", "input", "options", "resolvedOptions", "results", "i", "converted", "convertToPDFXSingle", "error", "convertToPDFX3", "x3Defaulted", "inputPDF", "validProfiles", "BlobUtils", "module", "GhostscriptLoader", "vfs", "VirtualFileSystem", "inputPath", "outputPath", "pdfxDefPath", "postDocinfoPath", "customProfilePath", "profileInfo", "PROFILE_PRESETS", "profilePath", "isNode", "profileBlob", "isTestEnv", "indirectImport", "dynamicImport", "s", "readFileSync", "fileURLToPath", "dirname", "join", "moduleDir", "profileFilePath", "profileData", "profileUrl", "profileResponse", "iccProfilePath", "outputConditionIdentifier", "outputCondition", "preset", "iccData", "colorSpaceBytes", "isCMYKProfile", "embedICCProfile", "iccHex", "b", "timestamps", "formatPDFXTimestamps", "pdfxDefinition", "generatePDFXDef", "generateDocumentId", "generatePostDocinfo", "gsArgs", "buildGhostscriptArgs", "exitCode", "outputData", "outputBuffer", "outputPDF", "c", "r"]
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-console */\nexport type LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\nexport interface LogEntry {\n timestamp: number;\n level: LogLevel;\n component: string;\n message: string;\n data?: any;\n}\n\nexport class Logger {\n private static globalLogLevel: LogLevel = 'warn';\n\n private static logs: LogEntry[] = [];\n\n private static maxLogs = 1000;\n\n constructor(private component: string) {}\n\n static setLogLevel(level: LogLevel): void {\n Logger.globalLogLevel = level;\n }\n\n static getLogs(): LogEntry[] {\n return [...Logger.logs];\n }\n\n static clearLogs(): void {\n Logger.logs = [];\n }\n\n debug(message: string, data?: any): void {\n this.log('debug', message, data);\n }\n\n info(message: string, data?: any): void {\n this.log('info', message, data);\n }\n\n warn(message: string, data?: any): void {\n this.log('warn', message, data);\n }\n\n error(message: string, data?: any): void {\n this.log('error', message, data);\n }\n\n private log(level: LogLevel, message: string, data?: any): void {\n const levelOrder: Record<LogLevel, number> = {\n debug: 0,\n info: 1,\n warn: 2,\n error: 3,\n };\n\n if (levelOrder[level] < levelOrder[Logger.globalLogLevel]) {\n return;\n }\n\n const entry: LogEntry = {\n timestamp: Date.now(),\n level,\n component: this.component,\n message,\n data,\n };\n\n Logger.logs.push(entry);\n\n // Keep logs under the limit\n if (Logger.logs.length > Logger.maxLogs) {\n Logger.logs = Logger.logs.slice(-Logger.maxLogs);\n }\n\n // Console output\n const prefix = `[${new Date().toISOString()}] [${level.toUpperCase()}] [${\n this.component\n }]`;\n const logMessage = data ? `${message} ${JSON.stringify(data)}` : message;\n\n switch (level) {\n case 'debug':\n console.debug(prefix, logMessage);\n break;\n case 'info':\n console.info(prefix, logMessage);\n break;\n case 'warn':\n console.warn(prefix, logMessage);\n break;\n case 'error':\n console.error(prefix, logMessage);\n break;\n default:\n // All log levels handled above\n break;\n }\n }\n}\n", "export class BrowserDetection {\n supportsWebAssembly(): boolean {\n try {\n return (\n typeof WebAssembly === 'object' &&\n typeof WebAssembly.instantiate === 'function'\n );\n } catch {\n return false;\n }\n }\n}\n", "// Wrapper for the Ghostscript WASM module to ensure proper loading\nimport type {\n EmscriptenModule,\n GhostscriptModuleFactory,\n} from '../types/ghostscript';\n\nexport interface GhostscriptModuleOptions {\n /**\n * Whether to suppress Ghostscript's stdout/stderr output.\n * Default: true (silent mode)\n */\n silent?: boolean;\n}\n\nexport default async function createGhostscriptModule(\n options: GhostscriptModuleOptions = {}\n): Promise<EmscriptenModule> {\n const { silent = true } = options;\n // Check if we're in Node.js\n const isNode =\n typeof process !== 'undefined' &&\n process.versions != null &&\n process.versions.node != null;\n\n let GhostscriptModule: any;\n let wasmPath: string;\n\n if (isNode) {\n // Node.js: Use require.resolve to find gs.js relative to this module\n // Use indirect dynamic import to prevent Webpack 5 from statically analyzing these imports\n // But use direct imports in test environments (vitest) where indirect imports bypass mocking\n // See: https://github.com/imgly/ubq/issues/11471\n const isTestEnv =\n typeof process !== 'undefined' &&\n (process.env.VITEST === 'true' || process.env.NODE_ENV === 'test');\n\n // Helper for dynamic imports - uses indirect import in production to avoid Webpack static analysis\n // Note: new Function() could fail in CSP-restricted environments, but CSP is a browser\n // security mechanism and doesn't apply to Node.js. This code only runs in Node.js (isNode check above).\n // eslint-disable-next-line @typescript-eslint/no-implied-eval, no-new-func\n const indirectImport = new Function('s', 'return import(s)') as (\n s: string\n ) => Promise<any>;\n const dynamicImport = isTestEnv ? (s: string) => import(s) : indirectImport;\n\n const moduleLib = await dynamicImport('module');\n const pathLib = await dynamicImport('path');\n const createRequire = moduleLib.createRequire;\n const dirname = pathLib.dirname;\n const join = pathLib.join;\n\n const requireForESM = createRequire(import.meta.url);\n\n // Resolve gs.js directly (it's copied to dist/ alongside the bundle)\n const gsPath = requireForESM.resolve('./gs.js');\n const moduleDir = dirname(gsPath);\n wasmPath = join(moduleDir, 'gs.wasm');\n\n GhostscriptModule = await dynamicImport(gsPath);\n } else {\n // Browser: Use URL-based imports\n const moduleUrl = new URL('./gs.js', import.meta.url).href;\n GhostscriptModule = await import(/* webpackIgnore: true */ moduleUrl);\n wasmPath = new URL('./gs.wasm', import.meta.url).href;\n }\n\n const factory = (GhostscriptModule.default ||\n GhostscriptModule) as GhostscriptModuleFactory;\n\n // Configure the module to load WASM from the bundled location\n const moduleConfig: Record<string, unknown> = {\n locateFile: (filename: string) => {\n if (filename === 'gs.wasm') {\n return wasmPath;\n }\n return filename;\n },\n };\n\n // Suppress Ghostscript stdout/stderr output in silent mode\n if (silent) {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n moduleConfig.print = () => {};\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n moduleConfig.printErr = () => {};\n }\n\n const module = await factory(moduleConfig);\n\n return module;\n}\n", "import type { EmscriptenModule } from '../types/ghostscript';\nimport { Logger } from '../utils/logger';\nimport { BrowserDetection } from '../utils/browser-detection';\nimport createGhostscriptModule from '../wasm/ghostscript-module';\n\nexport interface LoaderOptions {\n timeout?: number;\n}\n\nexport class GhostscriptLoader {\n private static instance: Promise<EmscriptenModule> | null = null;\n\n private static readonly TIMEOUT_MS = 30000;\n\n static async load(options: LoaderOptions = {}): Promise<EmscriptenModule> {\n if (this.instance) {\n return this.instance;\n }\n\n this.instance = this.loadInternal(options);\n return this.instance;\n }\n\n private static async loadInternal(\n options: LoaderOptions\n ): Promise<EmscriptenModule> {\n const logger = new Logger('GhostscriptLoader');\n const browser = new BrowserDetection();\n\n // Check browser compatibility\n if (!browser.supportsWebAssembly()) {\n throw new Error('WebAssembly not supported in this browser');\n }\n\n const timeout = options.timeout || this.TIMEOUT_MS;\n\n try {\n logger.info('Loading bundled Ghostscript (AGPL-3.0 licensed)');\n logger.info('Source available at: https://img.ly/docs/cesdk');\n return await this.loadWithTimeout(() => this.loadFromBundle(), timeout);\n } catch (error) {\n logger.error('Ghostscript loading failed', {\n error: (error as Error).message,\n });\n throw new Error(\n `Failed to load Ghostscript: ${(error as Error).message}`\n );\n }\n }\n\n private static async loadFromBundle(): Promise<EmscriptenModule> {\n // Use the bundled WASM module with proper configuration\n const logger = new Logger('GhostscriptInit');\n\n try {\n logger.info('Initializing Ghostscript module');\n\n const module = await createGhostscriptModule();\n\n logger.info('Ghostscript module initialized successfully', {\n version: module.version || 'unknown',\n hasFS: !!module.FS,\n hasCallMain: !!module.callMain,\n });\n\n return module;\n } catch (error) {\n logger.error('Ghostscript initialization failed', { error });\n throw new Error(\n `Ghostscript initialization failed: ${(error as Error).message}`\n );\n }\n }\n\n private static async loadWithTimeout<T>(\n operation: () => Promise<T>,\n timeoutMs: number\n ): Promise<T> {\n return Promise.race([\n operation(),\n new Promise<never>((_, reject) => {\n setTimeout(\n () => reject(new Error(`Loading timeout after ${timeoutMs}ms`)),\n timeoutMs\n );\n }),\n ]);\n }\n\n static reset(): void {\n this.instance = null;\n }\n}\n", "export class BlobUtils {\n static async toUint8Array(blob: Blob): Promise<Uint8Array> {\n if (blob.arrayBuffer) {\n const buffer = await blob.arrayBuffer();\n return new Uint8Array(buffer);\n }\n\n // Fallback for older browsers\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n if (reader.result instanceof ArrayBuffer) {\n resolve(new Uint8Array(reader.result));\n } else {\n reject(new Error('Failed to read blob as ArrayBuffer'));\n }\n };\n reader.onerror = () => reject(reader.error);\n reader.readAsArrayBuffer(blob);\n });\n }\n\n static async validatePDF(blob: Blob): Promise<boolean> {\n try {\n const data = await this.toUint8Array(blob);\n\n // Check PDF magic number\n const pdfHeader = new Uint8Array([0x25, 0x50, 0x44, 0x46]); // %PDF\n\n if (data.length < 4) {\n return false;\n }\n\n for (let i = 0; i < 4; i++) {\n if (data[i] !== pdfHeader[i]) {\n return false;\n }\n }\n\n return true;\n } catch {\n return false;\n }\n }\n}\n", "import type { EmscriptenModule, EmscriptenFS } from '../types/ghostscript';\nimport { Logger } from '../utils/logger';\nimport { BlobUtils } from '../utils/blob-utils';\n\nexport interface FileEntry {\n path: string;\n data: Uint8Array;\n cleanup: boolean;\n}\n\nexport class VirtualFileSystem {\n private readonly fs: EmscriptenFS;\n\n private readonly logger: Logger;\n\n private readonly managedFiles: Set<string> = new Set();\n\n private readonly workingDir: string;\n\n constructor(\n private readonly module: EmscriptenModule,\n workingDir = '/tmp/pdfx'\n ) {\n this.fs = module.FS;\n this.logger = new Logger('VirtualFileSystem');\n this.workingDir = workingDir;\n this.initialize();\n }\n\n private initialize(): void {\n try {\n // Create working directory structure (handle existing directories gracefully)\n this.createDirIfNotExists(this.workingDir);\n this.createDirIfNotExists(`${this.workingDir}/input`);\n this.createDirIfNotExists(`${this.workingDir}/output`);\n this.createDirIfNotExists(`${this.workingDir}/profiles`);\n this.createDirIfNotExists(`${this.workingDir}/temp`);\n\n this.logger.info('Virtual filesystem initialized', {\n workingDir: this.workingDir,\n });\n } catch (error) {\n this.logger.error('Failed to initialize virtual filesystem', { error });\n throw new Error(`VFS initialization failed: ${error}`);\n }\n }\n\n private createDirIfNotExists(path: string): void {\n try {\n this.fs.mkdir(path);\n } catch (error: any) {\n // Ignore \"File exists\" errors, re-throw others\n if (error.code !== 'EEXIST') {\n throw error;\n }\n }\n }\n\n async writeBlob(path: string, blob: Blob, managed = true): Promise<void> {\n try {\n const data = await BlobUtils.toUint8Array(blob);\n this.fs.writeFile(path, data);\n\n if (managed) {\n this.managedFiles.add(path);\n }\n\n this.logger.debug('File written', { path, size: data.length });\n } catch (error) {\n this.logger.error('Failed to write blob', { path, error });\n throw new Error(`Failed to write file ${path}: ${error}`);\n }\n }\n\n writeText(path: string, content: string, managed = true): void {\n try {\n this.fs.writeFile(path, content);\n\n if (managed) {\n this.managedFiles.add(path);\n }\n\n this.logger.debug('Text file written', { path, length: content.length });\n } catch (error) {\n this.logger.error('Failed to write text', { path, error });\n throw new Error(`Failed to write text file ${path}: ${error}`);\n }\n }\n\n readFile(path: string): Uint8Array {\n try {\n const data = this.fs.readFile(path) as Uint8Array;\n this.logger.debug('File read', { path, size: data.length });\n return data;\n } catch (error) {\n this.logger.error('Failed to read file', { path, error });\n throw new Error(`Failed to read file ${path}: ${error}`);\n }\n }\n\n exists(path: string): boolean {\n try {\n this.fs.stat(path);\n return true;\n } catch {\n return false;\n }\n }\n\n cleanup(): void {\n let cleanedCount = 0;\n\n for (const path of this.managedFiles) {\n try {\n this.fs.unlink(path);\n cleanedCount++;\n } catch (error) {\n this.logger.warn('Failed to cleanup file', { path, error });\n }\n }\n\n this.managedFiles.clear();\n this.logger.info('Filesystem cleanup completed', { cleanedCount });\n }\n}\n", "import type { PDFXOptions } from './types/pdfx';\n\n/** Value written to DocInfo `/Creator` and XMP `xmp:CreatorTool`. */\nconst CREATOR_TOOL = 'IMG.LY';\n\n/**\n * Resolve the document title once for BOTH metadata stores. Lone surrogates\n * and XML-illegal control characters would desync or corrupt the XMP side,\n * so they are repaired/stripped before either encoding sees the value.\n */\nfunction resolveTitle(options: PDFXOptions): string {\n const sanitized = (options.title || '')\n .replace(\n /[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?<![\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]/g,\n '\uFFFD'\n )\n // eslint-disable-next-line no-control-regex\n .replace(/[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]/g, '');\n return sanitized || 'Untitled';\n}\n\n/**\n * One instant rendered in both metadata date formats. PDF/X-4 requires the\n * DocInfo dates and the XMP dates to describe the same time, so both strings\n * must always be derived from the same `Date` via `formatPDFXTimestamps`.\n */\nexport interface PDFXTimestamps {\n /** PDF date string for DOCINFO pdfmarks, e.g. `D:20260722140113+00'00'` */\n pdfDate: string;\n /** ISO-8601 string for the XMP packet, e.g. `2026-07-22T14:01:13+00:00` */\n xmpDate: string;\n}\n\n/**\n * Render `date` at second precision in UTC. Sub-second precision is dropped\n * deliberately: the PDF date format has none, and a fractional part in the\n * XMP value would break the Info\u2194XMP equivalence preflight checks.\n */\nexport function formatPDFXTimestamps(date: Date): PDFXTimestamps {\n if (Number.isNaN(date.getTime())) {\n throw new Error('formatPDFXTimestamps: invalid Date');\n }\n const p = (n: number) => String(n).padStart(2, '0');\n const y = date.getUTCFullYear();\n const mo = p(date.getUTCMonth() + 1);\n const d = p(date.getUTCDate());\n const h = p(date.getUTCHours());\n const mi = p(date.getUTCMinutes());\n const s = p(date.getUTCSeconds());\n return {\n pdfDate: `D:${y}${mo}${d}${h}${mi}${s}+00'00'`,\n xmpDate: `${y}-${mo}-${d}T${h}:${mi}:${s}+00:00`,\n };\n}\n\n/**\n * Escape a string for use inside a parens-delimited PostScript string.\n * Only `(`, `)`, `\\` need escaping; XML angle brackets and ampersands pass\n * through untouched (PostScript doesn't interpret them).\n */\nfunction escapePSString(value: string): string {\n return value\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\(/g, '\\\\(')\n .replace(/\\)/g, '\\\\)');\n}\n\n/**\n * XML-escape a string for use inside element content or quoted attribute\n * values. Covers the five canonical XML entities.\n */\nfunction escapeXML(value: string): string {\n return value\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\n/**\n * Hex-encode a UTF-8 string for use inside a pdfmark `<...>` hex stream\n * literal. PostScript hex strings are case-insensitive; we emit lowercase\n * to match the rest of the pdfmark output.\n */\nfunction utf8ToHex(value: string): string {\n const bytes = new TextEncoder().encode(value);\n let hex = '';\n for (const b of bytes) {\n hex += b.toString(16).padStart(2, '0');\n }\n return hex;\n}\n\n/**\n * Encode a string as a BOM-prefixed UTF-16BE hex string for pdfmark text\n * values \u2014 a parens literal would be read as PDFDocEncoding and garble\n * non-ASCII titles.\n */\nfunction utf16beHex(value: string): string {\n let hex = 'FEFF';\n for (let i = 0; i < value.length; i++) {\n hex += value.charCodeAt(i).toString(16).toUpperCase().padStart(4, '0');\n }\n return hex;\n}\n\n/**\n * Build the strict PDF/X-4 XMP packet body that fully replaces GS's\n * auto-generated XMP. Preflight checks `pdfxid:GTS_PDFXVersion` specifically;\n * older validators (callas, GS) read `pdfx:GTS_PDFXVersion` \u2014 we emit both.\n * `xmpMM:DocumentID`, `RenditionClass`, and `VersionID` round out the entries\n * Acrobat flags as missing on a non-strict X-4.\n *\n * GS's legacy auto-XMP uses the `xapMM` prefix which strict Acrobat Preflight\n * rejects. Replacing the whole packet via the Catalog.Metadata pdfmark\n * bypasses that.\n *\n * Every value that also exists in the final Info dictionary must stay\n * equivalent (PDF/X-4): title/dates/creator match the `generatePostDocinfo`\n * pdfmarks; producer mirrors pdfwrite's own Info stamp.\n */\nfunction buildPDFX4XMPPacket(\n title: string,\n timestamps: PDFXTimestamps,\n docId: string,\n producer: string\n): string {\n const titleX = escapeXML(title);\n const nowX = escapeXML(timestamps.xmpDate);\n const docIdX = escapeXML(docId);\n const producerX = escapeXML(producer);\n // U+FEFF after `begin=\"` is the canonical XMP packet BOM marker.\n // eslint-disable-next-line no-irregular-whitespace\n return `<?xpacket begin=\"\uFEFF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xmlns:x=\"adobe:ns:meta/\">\n <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <rdf:Description rdf:about=\"\"\n xmlns:pdfx=\"http://ns.adobe.com/pdfx/1.3/\"\n xmlns:pdfxid=\"http://www.npes.org/pdfx/ns/id/\"\n xmlns:pdf=\"http://ns.adobe.com/pdf/1.3/\"\n xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\"\n xmlns:xmpMM=\"http://ns.adobe.com/xap/1.0/mm/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n <pdfx:GTS_PDFXVersion>PDF/X-4</pdfx:GTS_PDFXVersion>\n <pdfxid:GTS_PDFXVersion>PDF/X-4</pdfxid:GTS_PDFXVersion>\n <pdf:Trapped>False</pdf:Trapped>\n <pdf:Producer>${producerX}</pdf:Producer>\n <xmp:CreateDate>${nowX}</xmp:CreateDate>\n <xmp:ModifyDate>${nowX}</xmp:ModifyDate>\n <xmp:MetadataDate>${nowX}</xmp:MetadataDate>\n <xmp:CreatorTool>${CREATOR_TOOL}</xmp:CreatorTool>\n <dc:format>application/pdf</dc:format>\n <dc:title>\n <rdf:Alt>\n <rdf:li xml:lang=\"x-default\">${titleX}</rdf:li>\n </rdf:Alt>\n </dc:title>\n <xmpMM:DocumentID>uuid:${docIdX}</xmpMM:DocumentID>\n <xmpMM:RenditionClass>default</xmpMM:RenditionClass>\n <xmpMM:VersionID>1</xmpMM:VersionID>\n </rdf:Description>\n </rdf:RDF>\n</x:xmpmeta>\n<?xpacket end=\"w\"?>`;\n}\n\nexport interface PDFXDefContext {\n iccProfileHex: string;\n outputConditionIdentifier: string;\n outputCondition: string;\n embedICCProfile: boolean;\n timestamps: PDFXTimestamps;\n docId: string;\n /** Producer string pdfwrite stamps into DocInfo, e.g. `GPL Ghostscript 10.03.1`. */\n producer: string;\n}\n\nexport function generatePDFXDef(\n options: PDFXOptions,\n ctx: PDFXDefContext\n): string {\n // Minimal definition when ICC embedding is disabled: no PDF/X conformance\n // markers and no OutputIntent. DOCINFO entries live in the post-input file.\n if (!ctx.embedICCProfile) {\n return `%!\n% PDF Definition File (ICC embedding disabled)`;\n }\n\n const isX4 = options.outputStandard === 'PDF/X-4';\n const headerComment = isX4\n ? '% PDF/X-4 Definition File'\n : '% PDF/X-3 Definition File';\n\n // X-4 strict conformance: remove transfer functions and halftones globally\n // via setdistillerparams. This must run before any pdfmark so it applies\n // to the full pdfwrite session. Strips the inherited /TR and /HT references\n // Acrobat Preflight reports as hundreds of instances on customer files.\n const distillerPrologue = isX4\n ? '<< /TransferFunctionInfo /Remove /HalftoneInfo /Remove >> setdistillerparams\\n'\n : '';\n\n // X-4 strict conformance: write our own XMP packet and attach it to the\n // Catalog via the Metadata pdfmark. This fully replaces GS's auto-generated\n // XMP (which uses the legacy `xapMM` prefix Acrobat Preflight rejects) and\n // gives us complete control over the entries Preflight checks.\n const xmpReplaceBlock = isX4\n ? `\n\n% Strict PDF/X-4 XMP packet (replaces GS's auto-generated XMP)\n[/_objdef {Metadata} /type /stream /OBJ pdfmark\n[{Metadata} <</Type /Metadata /Subtype /XML>> /PUT pdfmark\n[{Metadata} <${utf8ToHex(\n buildPDFX4XMPPacket(\n resolveTitle(options),\n ctx.timestamps,\n ctx.docId,\n ctx.producer\n )\n )}> /PUT pdfmark\n[{Catalog} <</Metadata {Metadata}>> /PUT pdfmark`\n : '';\n\n return `%!\n${headerComment}\n${distillerPrologue}\n% Set TrimBox to match MediaBox for all pages (required for PDF/X)\n[/TrimBox [0 0 0 0] /PAGE pdfmark\n\n% Embed ICC profile as hex stream\n[/_objdef {icc_PDFX} /type /stream /OBJ pdfmark\n[{icc_PDFX} <</N 4>> /PUT pdfmark\n[{icc_PDFX} <${ctx.iccProfileHex}> /PUT pdfmark\n\n% Define OutputIntent with embedded ICC profile\n[/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark\n[{OutputIntent_PDFX} <<\n /Type /OutputIntent\n /S /GTS_PDFX\n /OutputCondition (${escapePSString(ctx.outputCondition)})\n /OutputConditionIdentifier (${escapePSString(ctx.outputConditionIdentifier)})\n /RegistryName (http://www.color.org)\n /DestOutputProfile {icc_PDFX}\n>> /PUT pdfmark\n\n% Add OutputIntent to Catalog\n[{Catalog} <</OutputIntents [{OutputIntent_PDFX}]>> /PUT pdfmark${xmpReplaceBlock}`;\n}\n\n/**\n * DOCINFO pdfmark file that runs AFTER the input PDF. Ghostscript merges the\n * input's Info dictionary during interpretation, so entries written in the\n * pre-input definition file get overridden by the input's values (the engine\n * writes the scene name as `/Title`, for example). Re-asserting the entries\n * afterwards makes them authoritative and keeps them equivalent to the XMP\n * packet, as PDF/X-4 requires. GS derives its auto-XMP for the non-X-4 paths\n * from the final Info dictionary, so those stay synchronized too.\n */\nexport function generatePostDocinfo(\n options: PDFXOptions,\n timestamps: PDFXTimestamps,\n embedICCProfile: boolean\n): string {\n const title = resolveTitle(options);\n const isX4 = options.outputStandard === 'PDF/X-4';\n\n // X-3 keeps the conformance entry in DOCINFO (ISO 15930-6); X-4 keeps it\n // in XMP only. No claim when ICC embedding is off (output is not PDF/X).\n const x3ConformanceLine =\n isX4 || !embedICCProfile\n ? ''\n : '\\n[ /GTS_PDFXVersion (PDF/X-3:2003) /GTS_PDFXConformance (PDF/X-3:2003) /DOCINFO pdfmark';\n\n return `%!\n% Post-input DOCINFO (must stay equivalent to the XMP packet)\n[ /Title <${utf16beHex(title)}> /DOCINFO pdfmark\n[ /Creator (${CREATOR_TOOL}) /DOCINFO pdfmark\n[ /CreationDate (${timestamps.pdfDate}) /DOCINFO pdfmark\n[ /ModDate (${timestamps.pdfDate}) /DOCINFO pdfmark\n[ /Trapped /False /DOCINFO pdfmark${x3ConformanceLine}`;\n}\n", "import type { PDFXOptions } from './types/pdfx';\n\nexport interface BuildGhostscriptArgsContext {\n isCMYKProfile: boolean;\n outputPath: string;\n pdfxDefPath: string;\n inputPath: string;\n postDocinfoPath: string;\n}\n\n/**\n * Build the Ghostscript argv for the conversion run.\n *\n * Pure function: no I/O, no side effects. Centralizes the X-3 vs X-4 branch\n * and the `ghostscriptArgs` full-override short-circuit so the call site in\n * `pdfx.ts` stays readable.\n */\nexport function buildGhostscriptArgs(\n options: PDFXOptions,\n ctx: BuildGhostscriptArgsContext\n): string[] {\n // The post-input DOCINFO file must come after the input so its entries win\n // over Info values inherited from the input PDF.\n const trailing = [\n `-sOutputFile=${ctx.outputPath}`,\n ctx.pdfxDefPath,\n ctx.inputPath,\n ctx.postDocinfoPath,\n ];\n\n // Full override: caller takes responsibility for every flag. We still\n // append the positional output/def/input/post quadruplet so callers don't\n // have to know the internal /tmp/ paths. Empty arrays fall through to\n // defaults.\n if (options.ghostscriptArgs && options.ghostscriptArgs.length > 0) {\n return [...options.ghostscriptArgs, ...trailing];\n }\n\n const isX4 = options.outputStandard === 'PDF/X-4';\n\n const args: string[] = [\n '-dBATCH',\n '-dNOPAUSE',\n '-sDEVICE=pdfwrite',\n // PDF/X-4 requires PDF 1.6 (live transparency); X-3 stays at 1.4.\n isX4 ? '-dCompatibilityLevel=1.6' : '-dCompatibilityLevel=1.4',\n // Disable PDF 1.5+ features for X-3 to avoid warnings; harmless on X-4.\n // Keep `-dWriteObjStms=false` on for X-4 too \u2014 the integration tests grep\n // the output for strict-conformance markers, and object streams would\n // hide them inside compressed dictionaries.\n '-dWriteObjStms=false',\n '-dWriteXRefStm=false',\n '-dPDFSETTINGS=/prepress',\n '-dSetPageSize=false',\n '-dAutoRotatePages=/None',\n ];\n\n if (isX4) {\n // pdfwrite Flate-compresses the pdfmark-injected XMP Metadata stream,\n // which Acrobat Preflight flags as a PDF/X-4 violation. Costs output\n // size: the ICC profile and other pdfmark streams stay raw.\n args.push('-dCompressStreams=false');\n }\n\n // X-4 keeps transparency live by definition \u2014 never push HaveTransparency=false.\n // For X-3, default to flattening so output is strictly compliant; callers\n // can opt out (producing a non-strict X-3 with live transparency).\n if (!isX4 && options.flattenTransparency !== false) {\n args.push('-dHaveTransparency=false');\n }\n\n if (ctx.isCMYKProfile) {\n args.push(\n '-sColorConversionStrategy=CMYK',\n '-dProcessColorModel=/DeviceCMYK',\n '-dConvertCMYKImagesToRGB=false'\n );\n } else {\n args.push('-sColorConversionStrategy=RGB');\n }\n\n return [...args, ...trailing];\n}\n", "import type { PDFXOptions, PDFX3Options } from './types/pdfx';\nimport { GhostscriptLoader } from './core/ghostscript-loader';\nimport { VirtualFileSystem } from './core/virtual-filesystem';\nimport { BlobUtils } from './utils/blob-utils';\nimport {\n formatPDFXTimestamps,\n generatePDFXDef,\n generatePostDocinfo,\n} from './pdfx-def';\nimport { buildGhostscriptArgs } from './pdfx-args';\n\n/**\n * PDF/X conversion function.\n *\n * Converts RGB PDF(s) to the selected PDF/X standard (defaults to `PDF/X-4`)\n * using the specified output profile. PDF/X-4 keeps live transparency so\n * vector text on transparent pages stays selectable. Set\n * `outputStandard: 'PDF/X-3'` to fall back to the older PDF 1.4 standard\n * (which requires flattening transparency).\n *\n * Known limitation: `/Author`, `/Subject`, and `/Keywords` entries inherited\n * from the input PDF are carried into the output without XMP counterparts,\n * which preflight tools may flag. CE.SDK exports never write these keys.\n *\n * @overload\n * @param inputPDF Single PDF blob to convert\n * @param options Conversion configuration\n * @returns Promise resolving to converted PDF blob\n *\n * @overload\n * @param inputPDFs Array of PDF blobs to convert\n * @param options Conversion configuration\n * @returns Promise resolving to array of converted PDF blobs\n */\nexport function convertToPDFX(\n inputPDF: Blob,\n options: PDFXOptions\n): Promise<Blob>;\nexport function convertToPDFX(\n inputPDFs: Blob[],\n options: PDFXOptions\n): Promise<Blob[]>;\nexport async function convertToPDFX(\n input: Blob | Blob[],\n options: PDFXOptions\n): Promise<Blob | Blob[]> {\n // Apply the X-4 default at the entry point so internal helpers see a\n // concrete outputStandard. Explicit caller values win over the default.\n const resolvedOptions: PDFXOptions = {\n outputStandard: 'PDF/X-4',\n ...options,\n };\n\n // Handle array input (batch processing)\n if (Array.isArray(input)) {\n if (input.length === 0) {\n return [];\n }\n\n // Process each blob sequentially to avoid overwhelming the WASM module\n const results: Blob[] = [];\n for (let i = 0; i < input.length; i++) {\n try {\n // eslint-disable-next-line no-await-in-loop\n const converted = await convertToPDFXSingle(input[i], resolvedOptions);\n results.push(converted);\n } catch (error) {\n throw new Error(\n `Failed to convert PDF ${i + 1} of ${input.length}: ${\n error instanceof Error ? error.message : String(error)\n }`\n );\n }\n }\n return results;\n }\n\n // Handle single blob input\n return convertToPDFXSingle(input, resolvedOptions);\n}\n\n/**\n * Resolves a preset to the ICC profile bundled next to this module.\n *\n * Every URL is a literal, because a bundler copies a profile into the build\n * only when it can read the path. Built from a variable it copies none, and\n * the export fails on whatever the host returns instead.\n */\nfunction bundledProfileURL(profile: string): string {\n switch (profile) {\n case 'gracol':\n return new URL('./GRACoL2013_CRPC6.icc', import.meta.url).href;\n case 'srgb':\n return new URL('./sRGB_IEC61966-2-1.icc', import.meta.url).href;\n default:\n return new URL('./ISOcoated_v2_eci.icc', import.meta.url).href;\n }\n}\n\n/**\n * @deprecated Use `convertToPDFX` instead. This alias is preserved for\n * backwards compatibility and will be removed in a future major release.\n *\n * Defaults to `outputStandard: 'PDF/X-3'` to match the historical behavior\n * of this function \u2014 unlike `convertToPDFX`, which defaults to PDF/X-4.\n * Callers can still pass `outputStandard: 'PDF/X-4'` explicitly to opt in.\n */\nexport function convertToPDFX3(\n inputPDF: Blob,\n options: PDFX3Options\n): Promise<Blob>;\nexport function convertToPDFX3(\n inputPDFs: Blob[],\n options: PDFX3Options\n): Promise<Blob[]>;\nexport function convertToPDFX3(\n input: Blob | Blob[],\n options: PDFX3Options\n): Promise<Blob | Blob[]> {\n // Preserve historical X-3 default for the deprecated alias. Explicit\n // caller values still win, so { outputStandard: 'PDF/X-4' } also works.\n const x3Defaulted: PDFX3Options = { outputStandard: 'PDF/X-3', ...options };\n // Delegate without narrowing \u2014 runtime branch on Array.isArray inside\n // convertToPDFX already matches the overload semantics.\n return convertToPDFX(input as Blob, x3Defaulted);\n}\n\n/**\n * Internal function to convert a single PDF\n */\nasync function convertToPDFXSingle(\n inputPDF: Blob,\n options: PDFXOptions\n): Promise<Blob> {\n // Validate inputs\n if (!(inputPDF instanceof Blob)) {\n throw new Error('Input must be a Blob');\n }\n\n if (inputPDF.size === 0) {\n throw new Error('Input PDF is empty');\n }\n\n if (inputPDF.size > 100 * 1024 * 1024) {\n throw new Error(\n `Input PDF too large (${inputPDF.size} bytes). Maximum: 100MB`\n );\n }\n\n // Validate output profile is provided\n if (!options.outputProfile) {\n throw new Error(\n 'outputProfile is required. Must be one of: \"gracol\", \"fogra39\", \"srgb\", \"custom\"'\n );\n }\n\n // Validate output profile value\n const validProfiles = ['gracol', 'fogra39', 'srgb', 'custom'];\n if (!validProfiles.includes(options.outputProfile)) {\n throw new Error(\n `Invalid outputProfile \"${\n options.outputProfile\n }\". Must be one of: ${validProfiles.join(', ')}`\n );\n }\n\n // Validate custom profile requirement\n if (options.outputProfile === 'custom' && !options.customProfile) {\n throw new Error(\n 'customProfile Blob is required when outputProfile is \"custom\"'\n );\n }\n\n // Validate custom profile if provided\n if (options.customProfile && !(options.customProfile instanceof Blob)) {\n throw new Error('customProfile must be a Blob');\n }\n\n // Validate PDF format\n const isValidPDF = await BlobUtils.validatePDF(inputPDF);\n if (!isValidPDF) {\n throw new Error('Invalid PDF format');\n }\n\n // Load Ghostscript\n const module = await GhostscriptLoader.load();\n const vfs = new VirtualFileSystem(module);\n\n try {\n // Setup file paths\n const inputPath = '/tmp/input.pdf';\n const outputPath = '/tmp/output.pdf';\n const pdfxDefPath = '/tmp/pdfx_def.ps';\n const postDocinfoPath = '/tmp/pdfx_post.ps';\n const customProfilePath = '/tmp/custom.icc';\n\n // Write input PDF to virtual filesystem\n await vfs.writeBlob(inputPath, inputPDF);\n\n // Write ICC profiles to virtual filesystem\n if (options.outputProfile === 'custom' && options.customProfile) {\n await vfs.writeBlob(customProfilePath, options.customProfile);\n } else if (options.outputProfile !== 'custom') {\n // Load the bundled ICC profile\n const profileInfo =\n PROFILE_PRESETS[options.outputProfile as keyof typeof PROFILE_PRESETS];\n const profilePath = `/tmp/${profileInfo.file}`;\n\n // Load ICC profile - different approach for Node.js vs browser\n const isNode =\n typeof process !== 'undefined' && process.versions?.node != null;\n\n let profileBlob: Blob;\n\n if (isNode) {\n // Node.js: Load from filesystem using readFileSync\n // Use indirect dynamic import to prevent Webpack 5 from statically analyzing these imports\n // But use direct imports in test environments (vitest) where indirect imports bypass mocking\n // See: https://github.com/imgly/ubq/issues/11471\n const isTestEnv =\n process.env.VITEST === 'true' || process.env.NODE_ENV === 'test';\n\n // Note: new Function() could fail in CSP-restricted environments, but CSP is a browser\n // security mechanism and doesn't apply to Node.js. This code only runs in Node.js (isNode check above).\n // eslint-disable-next-line @typescript-eslint/no-implied-eval, no-new-func\n const indirectImport = new Function('s', 'return import(s)') as (\n s: string\n ) => Promise<any>;\n const dynamicImport = isTestEnv\n ? (s: string) => import(s)\n : indirectImport;\n\n const { readFileSync } = await dynamicImport('fs');\n const { fileURLToPath } = await dynamicImport('url');\n const { dirname, join } = await dynamicImport('path');\n\n // Get the directory of the built module\n const moduleDir = dirname(fileURLToPath(import.meta.url));\n const profileFilePath = join(moduleDir, profileInfo.file);\n\n const profileData = readFileSync(profileFilePath);\n profileBlob = new Blob([profileData], {\n type: 'application/vnd.iccprofile',\n });\n } else {\n // Browser: Use fetch\n const profileUrl = bundledProfileURL(options.outputProfile);\n const profileResponse = await fetch(profileUrl);\n if (!profileResponse.ok) {\n throw new Error(\n `Failed to load ICC profile ${profileInfo.file}: ${profileResponse.statusText}`\n );\n }\n profileBlob = await profileResponse.blob();\n }\n\n await vfs.writeBlob(profilePath, profileBlob);\n }\n\n // Determine ICC profile path and metadata for Ghostscript\n let iccProfilePath: string;\n let outputConditionIdentifier: string;\n let outputCondition: string;\n\n if (options.outputProfile === 'custom') {\n iccProfilePath = customProfilePath;\n // Use custom values or defaults\n outputConditionIdentifier =\n options.outputConditionIdentifier || 'Custom Profile';\n outputCondition = options.outputCondition || 'Custom ICC Profile';\n } else {\n const preset =\n PROFILE_PRESETS[options.outputProfile as keyof typeof PROFILE_PRESETS];\n iccProfilePath = `/tmp/${preset.file}`;\n // Allow overriding preset values\n outputConditionIdentifier =\n options.outputConditionIdentifier || preset.identifier;\n outputCondition = options.outputCondition || preset.info;\n }\n\n // Read ICC profile data to inspect its color space\n const iccData = vfs.readFile(iccProfilePath);\n\n // Determine color conversion strategy based on profile type\n // ICC profile color space is at bytes 16-19\n // 'RGB ' = 0x52474220, 'CMYK' = 0x434D594B\n const colorSpaceBytes = iccData.slice(16, 20);\n const colorSpaceStr = String.fromCharCode(...colorSpaceBytes);\n const isCMYKProfile = colorSpaceStr.trim() === 'CMYK';\n\n // Embed ICC profile + PDF/X-3 OutputIntent by default. Callers can opt\n // out (e.g. when a downstream prepress pipeline handles ICC embedding).\n const embedICCProfile = options.embedICCProfile !== false;\n\n // Only hex-encode the profile for pdfmark embedding when we'll actually\n // embed it. WASM doesn't support (file) (r) file syntax, so pdfmark needs\n // the raw hex stream inline.\n const iccHex = embedICCProfile\n ? Array.from(iccData)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n : '';\n\n // One instant for both metadata stores (DocInfo and XMP dates).\n const timestamps = formatPDFXTimestamps(new Date());\n\n // pdfwrite stamps its own Producer into DocInfo (not overridable in GPL\n // builds); the XMP packet must mirror it exactly.\n if (typeof module.version !== 'string' || module.version.length === 0) {\n throw new Error(\n 'Ghostscript module reported no version; cannot mirror the Producer into XMP'\n );\n }\n\n const pdfxDefinition = generatePDFXDef(options, {\n iccProfileHex: iccHex,\n outputConditionIdentifier,\n outputCondition,\n embedICCProfile,\n timestamps,\n docId: generateDocumentId(),\n producer: `GPL Ghostscript ${module.version}`,\n });\n vfs.writeText(pdfxDefPath, pdfxDefinition);\n vfs.writeText(\n postDocinfoPath,\n generatePostDocinfo(options, timestamps, embedICCProfile)\n );\n\n // Note on ICC profile selection when embedICCProfile is false:\n // pdfwrite's color conversion uses Ghostscript's bundled default CMYK\n // profile (regardless of the selected outputProfile) since\n // `-sOutputICCProfile` only controls OutputIntent embedding on the\n // pdfwrite device, not the conversion math. That's acceptable here\n // because downstream prepress pipelines (ZePrA, PitStop) are expected\n // to re-normalize colors using their own profile anyway; the plugin's\n // job in this mode is only to deliver a device CMYK PDF without an\n // embedded OutputIntent.\n const gsArgs = buildGhostscriptArgs(options, {\n isCMYKProfile,\n outputPath,\n pdfxDefPath,\n inputPath,\n postDocinfoPath,\n });\n\n const exitCode = await module.callMain(gsArgs);\n if (exitCode !== 0) {\n throw new Error(\n `Ghostscript conversion failed with exit code ${exitCode}`\n );\n }\n\n // Read output\n const outputData = vfs.readFile(outputPath);\n // Create a copy of the data to ensure it's an ArrayBuffer, not SharedArrayBuffer\n const outputBuffer = new Uint8Array(outputData);\n const outputPDF = new Blob([outputBuffer], { type: 'application/pdf' });\n\n // Cleanup\n vfs.cleanup();\n\n return outputPDF;\n } catch (error) {\n vfs.cleanup();\n throw error;\n }\n}\n\n/**\n * Generate an RFC 4122 v4 UUID for the XMP `xmpMM:DocumentID` field. Uses\n * the Web Crypto API where available (modern browsers, Node 19+); falls\n * back to a Math.random shim for older Node runtimes. The DocumentID is\n * an identifier, not a security boundary, so the fallback is acceptable.\n */\nfunction generateDocumentId(): string {\n if (typeof globalThis.crypto?.randomUUID === 'function') {\n return globalThis.crypto.randomUUID();\n }\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = Math.floor(Math.random() * 16);\n // Standard RFC 4122 v4 y-nibble construction: clamp to 10/11 (binary) via\n // bit-clear of 0x3 then set 0x8. Bitwise math is unavoidable here.\n // eslint-disable-next-line no-bitwise\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\n// Profile presets from the spec\nconst PROFILE_PRESETS = {\n gracol: {\n file: 'GRACoL2013_CRPC6.icc',\n identifier: 'CGATS 21.2',\n info: 'GRACoL 2013 CRPC6',\n },\n fogra39: {\n file: 'ISOcoated_v2_eci.icc',\n identifier: 'FOGRA39',\n info: 'ISO Coated v2 (ECI)',\n },\n srgb: {\n file: 'sRGB_IEC61966-2-1.icc',\n identifier: 'sRGB IEC61966-2.1',\n info: 'sRGB IE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IAAMC,EAAI,KAAK,MAAM,KAAK,OAAO,EAAI,EAAE,EAKvC,OADUD,IAAM,IAAMC,EAAKA,EAAI,EAAO,GAC7B,SAAS,EAAE,CACtB,CAAC,CACH,CAGA,IAAMxC,EAAkB,CACtB,OAAQ,CACN,KAAM,uBACN,WAAY,aACZ,KAAM,mBACR,EACA,QAAS,CACP,KAAM,uBACN,WAAY,UACZ,KAAM,qBACR,EACA,KAAM,CACJ,KAAM,wBACN,WAAY,oBACZ,KAAM,mBACR,CACF",
|
|
6
|
+
"names": ["Logger", "_Logger", "component", "level", "message", "data", "levelOrder", "entry", "prefix", "logMessage", "BrowserDetection", "createGhostscriptModule", "options", "silent", "isNode", "GhostscriptModule", "wasmPath", "isTestEnv", "indirectImport", "dynamicImport", "s", "moduleLib", "pathLib", "createRequire", "dirname", "join", "gsPath", "moduleDir", "factory", "moduleConfig", "filename", "GhostscriptLoader", "options", "logger", "Logger", "BrowserDetection", "timeout", "error", "module", "createGhostscriptModule", "operation", "timeoutMs", "_", "reject", "BlobUtils", "blob", "buffer", "resolve", "reject", "reader", "data", "pdfHeader", "i", "VirtualFileSystem", "module", "workingDir", "Logger", "error", "path", "blob", "managed", "data", "BlobUtils", "content", "cleanedCount", "CREATOR_TOOL", "resolveTitle", "options", "formatPDFXTimestamps", "date", "p", "n", "y", "mo", "d", "h", "mi", "s", "escapePSString", "value", "escapeXML", "utf8ToHex", "bytes", "hex", "b", "utf16beHex", "i", "buildPDFX4XMPPacket", "title", "timestamps", "docId", "producer", "titleX", "nowX", "docIdX", "generatePDFXDef", "ctx", "isX4", "headerComment", "distillerPrologue", "xmpReplaceBlock", "generatePostDocinfo", "embedICCProfile", "x3ConformanceLine", "buildGhostscriptArgs", "options", "ctx", "trailing", "isX4", "args", "convertToPDFX", "input", "options", "resolvedOptions", "results", "i", "converted", "convertToPDFXSingle", "error", "bundledProfileURL", "profile", "convertToPDFX3", "x3Defaulted", "inputPDF", "validProfiles", "BlobUtils", "module", "GhostscriptLoader", "vfs", "VirtualFileSystem", "inputPath", "outputPath", "pdfxDefPath", "postDocinfoPath", "customProfilePath", "profileInfo", "PROFILE_PRESETS", "profilePath", "isNode", "profileBlob", "isTestEnv", "indirectImport", "dynamicImport", "s", "readFileSync", "fileURLToPath", "dirname", "join", "moduleDir", "profileFilePath", "profileData", "profileUrl", "profileResponse", "iccProfilePath", "outputConditionIdentifier", "outputCondition", "preset", "iccData", "colorSpaceBytes", "isCMYKProfile", "embedICCProfile", "iccHex", "b", "timestamps", "formatPDFXTimestamps", "pdfxDefinition", "generatePDFXDef", "generateDocumentId", "generatePostDocinfo", "gsArgs", "buildGhostscriptArgs", "exitCode", "outputData", "outputBuffer", "outputPDF", "c", "r"]
|
|
7
7
|
}
|
package/dist/pdfx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdfx.d.ts","sourceRoot":"","sources":["../src/pdfx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAW9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;AACjB,wBAAgB,aAAa,CAC3B,SAAS,EAAE,IAAI,EAAE,EACjB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"pdfx.d.ts","sourceRoot":"","sources":["../src/pdfx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAW9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;AACjB,wBAAgB,aAAa,CAC3B,SAAS,EAAE,IAAI,EAAE,EACjB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AA0DnB;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;AACjB,wBAAgB,cAAc,CAC5B,SAAS,EAAE,IAAI,EAAE,EACjB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/plugin-print-ready-pdfs-web",
|
|
3
|
-
"version": "1.83.0-
|
|
3
|
+
"version": "1.83.0-rc.1",
|
|
4
4
|
"description": "Print-Ready PDFs plugin for CE.SDK editor - PDF/X conversion and export functionality. Contains AGPL-3.0 licensed Ghostscript WASM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CE.SDK",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"src/wasm/"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@cesdk/cesdk-js": "^1.83.0-
|
|
39
|
+
"@cesdk/cesdk-js": "^1.83.0-rc.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@cesdk/cesdk-js": "1.83.0-
|
|
43
|
-
"@cesdk/engine": "1.83.0-
|
|
42
|
+
"@cesdk/cesdk-js": "1.83.0-rc.1",
|
|
43
|
+
"@cesdk/engine": "1.83.0-rc.1",
|
|
44
44
|
"@cesdk/node": "~1.61.0",
|
|
45
45
|
"@imgly/plugin-utils": "0.0.0",
|
|
46
46
|
"@playwright/test": "^1.54.1",
|