langflower 0.1.0 → 0.1.2
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/README.md +74 -105
- package/bin/langflower.js +15 -1
- package/dist/chunk-AO33IM2J.js +307 -0
- package/dist/chunk-CVTPGIZE.js +344 -0
- package/dist/chunk-EAZMCX37.js +44 -0
- package/dist/chunk-NIRPHJLO.js +1505 -0
- package/dist/chunk-PYLGT66P.js +126 -0
- package/dist/chunk-WV2YWHOC.js +623 -0
- package/dist/chunk-YOTMWWRH.js +2041 -0
- package/dist/index.js +80453 -1
- package/package.json +1 -8
- package/ui-dist/{chunk-UG3GFV4Y.js → chunk-BKIP5WRK.js} +1 -1
- package/ui-dist/chunk-EZTB7Q33.js +4 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/main-JJURZFKA.js +318 -0
- package/ui-dist/styles-VA3HMZK7.css +1 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.d.ts +1 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.js +1 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/resolve-secret.d.ts +28 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/resolve-secret.js +76 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/types.d.ts +7 -3
- package/vendor/node-sdk/dist/node-factory/define-tool-registrations/define-tool-registrations.d.ts +6 -6
- package/vendor/node-sdk/dist/node-factory/define-tool-registrations/define-tool-registrations.js +6 -6
- package/vendor/node-sdk/dist/testing/create-node-harness.d.ts +4 -0
- package/vendor/node-sdk/dist/testing/create-node-harness.js +5 -0
- package/vendor/server/skeleton/schemas/langflower-config.schema.json +5 -1
- package/vendor/server/skeleton/skills/langflower-helper/SKILL.md +46 -11
- package/vendor/server/skeleton/skills/langflower-helper/architecture.md +14 -3
- package/vendor/server/skeleton/skills/langflower-helper/layout.md +32 -29
- package/vendor/server/skeleton/skills/langflower-node-writer/SKILL.md +69 -0
- package/vendor/server/skeleton/skills/langflower-workflow-writer/SKILL.md +18 -3
- package/vendor/server/skeleton/skills/spec-architect/SKILL.md +232 -0
- package/vendor/server/skeleton/workflows/advanced-coder.json +1 -0
- package/vendor/server/skeleton/workflows/simple-coder.json +1 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -13
- package/dist/create-fake-skill-case-runner.d.ts +0 -9
- package/dist/create-fake-skill-case-runner.js +0 -73
- package/dist/create-fake-skill-case-runner.test.d.ts +0 -1
- package/dist/create-fake-skill-case-runner.test.js +0 -60
- package/dist/eval-command.d.ts +0 -2
- package/dist/eval-command.js +0 -66
- package/dist/index.d.ts +0 -1
- package/dist/start-command.d.ts +0 -5
- package/dist/start-command.js +0 -110
- package/dist/start-command.test.d.ts +0 -1
- package/dist/start-command.test.js +0 -17
- package/ui-dist/chunk-QI4IYILJ.js +0 -4
- package/ui-dist/main-ODIDCCNX.js +0 -315
- package/ui-dist/styles-2JMBAQC3.css +0 -1
- package/vendor/common-nodes/dist/ai/build-effective-system-prompt.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/build-effective-system-prompt.js +0 -21
- package/vendor/common-nodes/dist/ai/chat-completion-stream.d.ts +0 -53
- package/vendor/common-nodes/dist/ai/chat-completion-stream.js +0 -1
- package/vendor/common-nodes/dist/ai/chat-input/node.d.ts +0 -25
- package/vendor/common-nodes/dist/ai/chat-input/node.js +0 -39
- package/vendor/common-nodes/dist/ai/critique/node.d.ts +0 -588
- package/vendor/common-nodes/dist/ai/critique/node.js +0 -240
- package/vendor/common-nodes/dist/ai/define-llm-node/default-llm-ports.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/define-llm-node/default-llm-ports.js +0 -59
- package/vendor/common-nodes/dist/ai/define-llm-node/define-llm-node.d.ts +0 -45
- package/vendor/common-nodes/dist/ai/define-llm-node/define-llm-node.js +0 -48
- package/vendor/common-nodes/dist/ai/fake-llm/node.d.ts +0 -571
- package/vendor/common-nodes/dist/ai/fake-llm/node.js +0 -207
- package/vendor/common-nodes/dist/ai/fake-mcp-server/node.d.ts +0 -26
- package/vendor/common-nodes/dist/ai/fake-mcp-server/node.js +0 -67
- package/vendor/common-nodes/dist/ai/fake-tool-registration/node.d.ts +0 -26
- package/vendor/common-nodes/dist/ai/fake-tool-registration/node.js +0 -57
- package/vendor/common-nodes/dist/ai/features/chat-completion-stream.d.ts +0 -53
- package/vendor/common-nodes/dist/ai/features/chat-completion-stream.js +0 -1
- package/vendor/common-nodes/dist/ai/features/llm-loop/autokick-recovery.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/features/llm-loop/autokick-recovery.js +0 -17
- package/vendor/common-nodes/dist/ai/features/llm-loop/classify-llm-failure.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/features/llm-loop/classify-llm-failure.js +0 -113
- package/vendor/common-nodes/dist/ai/features/llm-loop/dead-loop-detector.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/features/llm-loop/dead-loop-detector.js +0 -194
- package/vendor/common-nodes/dist/ai/features/llm-loop/live-get-tools.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/features/llm-loop/live-get-tools.js +0 -21
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-reducer.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-reducer.js +0 -204
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-types.d.ts +0 -120
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-types.js +0 -39
- package/vendor/common-nodes/dist/ai/features/llm-loop/normalize-llm-recovery-policy.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/features/llm-loop/normalize-llm-recovery-policy.js +0 -59
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/normalize-tool-result.d.ts +0 -1
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/normalize-tool-result.js +0 -7
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/observe-provider-stream.d.ts +0 -43
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/observe-provider-stream.js +0 -96
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-agent-loop.d.ts +0 -29
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-agent-loop.js +0 -44
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-llm-loop.d.ts +0 -74
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-llm-loop.js +0 -658
- package/vendor/common-nodes/dist/ai/features/llm-role-preset.d.ts +0 -69
- package/vendor/common-nodes/dist/ai/features/llm-role-preset.js +0 -265
- package/vendor/common-nodes/dist/ai/features/llm-session/llm-session-shell.d.ts +0 -141
- package/vendor/common-nodes/dist/ai/features/llm-session/llm-session-shell.js +0 -225
- package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.d.ts +0 -32
- package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.js +0 -118
- package/vendor/common-nodes/dist/ai/features/openai/context-length-error.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/features/openai/context-length-error.js +0 -63
- package/vendor/common-nodes/dist/ai/features/openai/create-chat-completion-stream.d.ts +0 -19
- package/vendor/common-nodes/dist/ai/features/openai/create-chat-completion-stream.js +0 -182
- package/vendor/common-nodes/dist/ai/features/openai/list-provider-models.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/features/openai/list-provider-models.js +0 -52
- package/vendor/common-nodes/dist/ai/features/openai/llm-context-compaction.d.ts +0 -31
- package/vendor/common-nodes/dist/ai/features/openai/llm-context-compaction.js +0 -326
- package/vendor/common-nodes/dist/ai/features/openai/normalize-compaction-params.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/features/openai/normalize-compaction-params.js +0 -21
- package/vendor/common-nodes/dist/ai/features/openai/prepare-chat-completion.d.ts +0 -30
- package/vendor/common-nodes/dist/ai/features/openai/prepare-chat-completion.js +0 -132
- package/vendor/common-nodes/dist/ai/features/path-choice/control-tools.d.ts +0 -20
- package/vendor/common-nodes/dist/ai/features/path-choice/control-tools.js +0 -70
- package/vendor/common-nodes/dist/ai/features/path-choice/run-reactive-path-choice-loop.d.ts +0 -32
- package/vendor/common-nodes/dist/ai/features/path-choice/run-reactive-path-choice-loop.js +0 -93
- package/vendor/common-nodes/dist/ai/features/prompt/build-effective-system-prompt.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/features/prompt/build-effective-system-prompt.js +0 -21
- package/vendor/common-nodes/dist/ai/features/prompt/normalize-max-iterations.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/features/prompt/normalize-max-iterations.js +0 -23
- package/vendor/common-nodes/dist/ai/features/prompt/resolve-chat-provider-model.d.ts +0 -10
- package/vendor/common-nodes/dist/ai/features/prompt/resolve-chat-provider-model.js +0 -8
- package/vendor/common-nodes/dist/ai/features/run-host-services.d.ts +0 -64
- package/vendor/common-nodes/dist/ai/features/run-host-services.js +0 -29
- package/vendor/common-nodes/dist/ai/features/scripted-chat-completion-stream.d.ts +0 -17
- package/vendor/common-nodes/dist/ai/features/scripted-chat-completion-stream.js +0 -61
- package/vendor/common-nodes/dist/ai/features/sub-agent-protocol.d.ts +0 -40
- package/vendor/common-nodes/dist/ai/features/sub-agent-protocol.js +0 -44
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-compaction-ui-schema.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-compaction-ui-schema.js +0 -18
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-panel-ui-schema.d.ts +0 -80
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-panel-ui-schema.js +0 -76
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-recovery-ui-schema.d.ts +0 -113
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-recovery-ui-schema.js +0 -131
- package/vendor/common-nodes/dist/ai/features/wait-for-subagent-result.d.ts +0 -7
- package/vendor/common-nodes/dist/ai/features/wait-for-subagent-result.js +0 -31
- package/vendor/common-nodes/dist/ai/filter-enabled-registrations.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/filter-enabled-registrations.js +0 -18
- package/vendor/common-nodes/dist/ai/flatten-mcp-server-configs.d.ts +0 -7
- package/vendor/common-nodes/dist/ai/flatten-mcp-server-configs.js +0 -21
- package/vendor/common-nodes/dist/ai/inventory-tool-round.d.ts +0 -33
- package/vendor/common-nodes/dist/ai/inventory-tool-round.js +0 -215
- package/vendor/common-nodes/dist/ai/llm-compaction-ui-schema.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/llm-compaction-ui-schema.js +0 -18
- package/vendor/common-nodes/dist/ai/llm-loop/autokick-recovery.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/llm-loop/autokick-recovery.js +0 -17
- package/vendor/common-nodes/dist/ai/llm-loop/classify-llm-failure.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/llm-loop/classify-llm-failure.js +0 -113
- package/vendor/common-nodes/dist/ai/llm-loop/dead-loop-detector.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/llm-loop/dead-loop-detector.js +0 -194
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-reducer.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-reducer.js +0 -216
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-types.d.ts +0 -125
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-types.js +0 -39
- package/vendor/common-nodes/dist/ai/llm-loop/normalize-llm-recovery-policy.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/llm-loop/normalize-llm-recovery-policy.js +0 -59
- package/vendor/common-nodes/dist/ai/llm-loop/operators/normalize-tool-result.d.ts +0 -1
- package/vendor/common-nodes/dist/ai/llm-loop/operators/normalize-tool-result.js +0 -7
- package/vendor/common-nodes/dist/ai/llm-loop/operators/observe-provider-stream.d.ts +0 -43
- package/vendor/common-nodes/dist/ai/llm-loop/operators/observe-provider-stream.js +0 -96
- package/vendor/common-nodes/dist/ai/llm-loop/run-agent-loop.d.ts +0 -31
- package/vendor/common-nodes/dist/ai/llm-loop/run-agent-loop.js +0 -57
- package/vendor/common-nodes/dist/ai/llm-loop/run-llm-loop.d.ts +0 -79
- package/vendor/common-nodes/dist/ai/llm-loop/run-llm-loop.js +0 -637
- package/vendor/common-nodes/dist/ai/llm-panel-ui-schema.d.ts +0 -80
- package/vendor/common-nodes/dist/ai/llm-panel-ui-schema.js +0 -76
- package/vendor/common-nodes/dist/ai/llm-recovery-ui-schema.d.ts +0 -113
- package/vendor/common-nodes/dist/ai/llm-recovery-ui-schema.js +0 -131
- package/vendor/common-nodes/dist/ai/llm-role-preset.d.ts +0 -69
- package/vendor/common-nodes/dist/ai/llm-role-preset.js +0 -265
- package/vendor/common-nodes/dist/ai/llm-session/run-session-machine.d.ts +0 -21
- package/vendor/common-nodes/dist/ai/llm-session/run-session-machine.js +0 -118
- package/vendor/common-nodes/dist/ai/llm-session-shell.d.ts +0 -147
- package/vendor/common-nodes/dist/ai/llm-session-shell.js +0 -189
- package/vendor/common-nodes/dist/ai/mcp-server/node.d.ts +0 -26
- package/vendor/common-nodes/dist/ai/mcp-server/node.js +0 -68
- package/vendor/common-nodes/dist/ai/mcp-server-config.d.ts +0 -16
- package/vendor/common-nodes/dist/ai/mcp-server-config.js +0 -2
- package/vendor/common-nodes/dist/ai/mcp-tool-id.d.ts +0 -11
- package/vendor/common-nodes/dist/ai/mcp-tool-id.js +0 -30
- package/vendor/common-nodes/dist/ai/merge-tool-inventory.d.ts +0 -10
- package/vendor/common-nodes/dist/ai/merge-tool-inventory.js +0 -26
- package/vendor/common-nodes/dist/ai/nodes/critique/node.d.ts +0 -588
- package/vendor/common-nodes/dist/ai/nodes/critique/node.js +0 -231
- package/vendor/common-nodes/dist/ai/nodes/fake-llm/node.d.ts +0 -571
- package/vendor/common-nodes/dist/ai/nodes/fake-llm/node.js +0 -207
- package/vendor/common-nodes/dist/ai/nodes/openai-llm/node.d.ts +0 -587
- package/vendor/common-nodes/dist/ai/nodes/openai-llm/node.js +0 -88
- package/vendor/common-nodes/dist/ai/nodes/review/node.d.ts +0 -593
- package/vendor/common-nodes/dist/ai/nodes/review/node.js +0 -233
- package/vendor/common-nodes/dist/ai/nodes/sub-agent/node.d.ts +0 -630
- package/vendor/common-nodes/dist/ai/nodes/sub-agent/node.js +0 -457
- package/vendor/common-nodes/dist/ai/normalize-max-iterations.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/normalize-max-iterations.js +0 -23
- package/vendor/common-nodes/dist/ai/openai/context-length-error.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/openai/context-length-error.js +0 -63
- package/vendor/common-nodes/dist/ai/openai/create-chat-completion-stream.d.ts +0 -19
- package/vendor/common-nodes/dist/ai/openai/create-chat-completion-stream.js +0 -182
- package/vendor/common-nodes/dist/ai/openai/create-embedding.d.ts +0 -18
- package/vendor/common-nodes/dist/ai/openai/create-embedding.js +0 -43
- package/vendor/common-nodes/dist/ai/openai/list-provider-models.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/openai/list-provider-models.js +0 -52
- package/vendor/common-nodes/dist/ai/openai/llm-context-compaction.d.ts +0 -31
- package/vendor/common-nodes/dist/ai/openai/llm-context-compaction.js +0 -326
- package/vendor/common-nodes/dist/ai/openai/normalize-compaction-params.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/openai/normalize-compaction-params.js +0 -21
- package/vendor/common-nodes/dist/ai/openai/prepare-chat-completion.d.ts +0 -30
- package/vendor/common-nodes/dist/ai/openai/prepare-chat-completion.js +0 -132
- package/vendor/common-nodes/dist/ai/openai-llm/node.d.ts +0 -587
- package/vendor/common-nodes/dist/ai/openai-llm/node.js +0 -88
- package/vendor/common-nodes/dist/ai/path-choice/control-tools.d.ts +0 -20
- package/vendor/common-nodes/dist/ai/path-choice/control-tools.js +0 -70
- package/vendor/common-nodes/dist/ai/path-choice/run-path-choice-tool-loop.d.ts +0 -54
- package/vendor/common-nodes/dist/ai/path-choice/run-path-choice-tool-loop.js +0 -242
- package/vendor/common-nodes/dist/ai/path-choice/run-reactive-path-choice-loop.d.ts +0 -35
- package/vendor/common-nodes/dist/ai/path-choice/run-reactive-path-choice-loop.js +0 -106
- package/vendor/common-nodes/dist/ai/resolve-chat-provider-model.d.ts +0 -10
- package/vendor/common-nodes/dist/ai/resolve-chat-provider-model.js +0 -8
- package/vendor/common-nodes/dist/ai/resolve-mcp-inventory.d.ts +0 -8
- package/vendor/common-nodes/dist/ai/resolve-mcp-inventory.js +0 -43
- package/vendor/common-nodes/dist/ai/review/node.d.ts +0 -593
- package/vendor/common-nodes/dist/ai/review/node.js +0 -240
- package/vendor/common-nodes/dist/ai/review/review-control-tools.d.ts +0 -20
- package/vendor/common-nodes/dist/ai/review/review-control-tools.js +0 -70
- package/vendor/common-nodes/dist/ai/review/run-review-tool-loop.d.ts +0 -44
- package/vendor/common-nodes/dist/ai/review/run-review-tool-loop.js +0 -193
- package/vendor/common-nodes/dist/ai/run-host-services.d.ts +0 -32
- package/vendor/common-nodes/dist/ai/run-host-services.js +0 -11
- package/vendor/common-nodes/dist/ai/run-internal-tool-loop.d.ts +0 -39
- package/vendor/common-nodes/dist/ai/run-internal-tool-loop.js +0 -138
- package/vendor/common-nodes/dist/ai/scripted-chat-completion-stream.d.ts +0 -17
- package/vendor/common-nodes/dist/ai/scripted-chat-completion-stream.js +0 -61
- package/vendor/common-nodes/dist/ai/sub-agent/node.d.ts +0 -630
- package/vendor/common-nodes/dist/ai/sub-agent/node.js +0 -302
- package/vendor/common-nodes/dist/ai/sub-agent-protocol.d.ts +0 -39
- package/vendor/common-nodes/dist/ai/sub-agent-protocol.js +0 -43
- package/vendor/common-nodes/dist/ai/tool-handler-context.d.ts +0 -4
- package/vendor/common-nodes/dist/ai/tool-handler-context.js +0 -16
- package/vendor/common-nodes/dist/ai/tool-registration.d.ts +0 -6
- package/vendor/common-nodes/dist/ai/tool-registration.js +0 -33
- package/vendor/common-nodes/dist/ai/wait-for-subagent-result.d.ts +0 -6
- package/vendor/common-nodes/dist/ai/wait-for-subagent-result.js +0 -30
- package/vendor/common-nodes/dist/catalog.d.ts +0 -6
- package/vendor/common-nodes/dist/catalog.js +0 -95
- package/vendor/common-nodes/dist/compile-custom-nodes/node.d.ts +0 -21
- package/vendor/common-nodes/dist/compile-custom-nodes/node.js +0 -45
- package/vendor/common-nodes/dist/crawl/crawl/node.d.ts +0 -99
- package/vendor/common-nodes/dist/crawl/crawl/node.js +0 -128
- package/vendor/common-nodes/dist/crawl/crawl-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/crawl/crawl-tools/node.js +0 -17
- package/vendor/common-nodes/dist/crawl/extract-links/node.d.ts +0 -22
- package/vendor/common-nodes/dist/crawl/extract-links/node.js +0 -45
- package/vendor/common-nodes/dist/crawl/fetch-url/node.d.ts +0 -56
- package/vendor/common-nodes/dist/crawl/fetch-url/node.js +0 -89
- package/vendor/common-nodes/dist/crawl/html/extract-links.d.ts +0 -3
- package/vendor/common-nodes/dist/crawl/html/extract-links.js +0 -36
- package/vendor/common-nodes/dist/crawl/html/html-to-text.d.ts +0 -3
- package/vendor/common-nodes/dist/crawl/html/html-to-text.js +0 -36
- package/vendor/common-nodes/dist/crawl/html/index.d.ts +0 -3
- package/vendor/common-nodes/dist/crawl/html/index.js +0 -3
- package/vendor/common-nodes/dist/crawl/save-page/node.d.ts +0 -21
- package/vendor/common-nodes/dist/crawl/save-page/node.js +0 -71
- package/vendor/common-nodes/dist/crawl/tool-defs.d.ts +0 -81
- package/vendor/common-nodes/dist/crawl/tool-defs.js +0 -56
- package/vendor/common-nodes/dist/embeddings/create-embedding.d.ts +0 -39
- package/vendor/common-nodes/dist/embeddings/create-embedding.js +0 -154
- package/vendor/common-nodes/dist/embeddings/embed-provider/node.d.ts +0 -53
- package/vendor/common-nodes/dist/embeddings/embed-provider/node.js +0 -126
- package/vendor/common-nodes/dist/embeddings/embed-similarity/node.d.ts +0 -20
- package/vendor/common-nodes/dist/embeddings/embed-similarity/node.js +0 -81
- package/vendor/common-nodes/dist/embeddings/embed-text/node.d.ts +0 -53
- package/vendor/common-nodes/dist/embeddings/embed-text/node.js +0 -91
- package/vendor/common-nodes/dist/embeddings/from-embedding.d.ts +0 -8
- package/vendor/common-nodes/dist/embeddings/from-embedding.js +0 -24
- package/vendor/common-nodes/dist/embeddings/resolve-embedding-provider-model.d.ts +0 -11
- package/vendor/common-nodes/dist/embeddings/resolve-embedding-provider-model.js +0 -8
- package/vendor/common-nodes/dist/flow/checkpoint/node.d.ts +0 -23
- package/vendor/common-nodes/dist/flow/checkpoint/node.js +0 -44
- package/vendor/common-nodes/dist/flow/delay/node.d.ts +0 -22
- package/vendor/common-nodes/dist/flow/delay/node.js +0 -46
- package/vendor/common-nodes/dist/flow/loop/node.d.ts +0 -22
- package/vendor/common-nodes/dist/flow/loop/node.js +0 -51
- package/vendor/common-nodes/dist/flow/map-collect-body.d.ts +0 -21
- package/vendor/common-nodes/dist/flow/map-collect-body.js +0 -73
- package/vendor/common-nodes/dist/flow/merge/node.d.ts +0 -17
- package/vendor/common-nodes/dist/flow/merge/node.js +0 -31
- package/vendor/common-nodes/dist/flow/repeat/node.d.ts +0 -20
- package/vendor/common-nodes/dist/flow/repeat/node.js +0 -65
- package/vendor/common-nodes/dist/flow/router/build-router-definition.d.ts +0 -20
- package/vendor/common-nodes/dist/flow/router/build-router-definition.js +0 -23
- package/vendor/common-nodes/dist/flow/router/node.d.ts +0 -17
- package/vendor/common-nodes/dist/flow/router/node.js +0 -20
- package/vendor/common-nodes/dist/flow/router/router-constants.d.ts +0 -2
- package/vendor/common-nodes/dist/flow/router/router-constants.js +0 -2
- package/vendor/common-nodes/dist/hitl/approval-choice/node.d.ts +0 -23
- package/vendor/common-nodes/dist/hitl/approval-choice/node.js +0 -71
- package/vendor/common-nodes/dist/hitl/ask-user/node.d.ts +0 -23
- package/vendor/common-nodes/dist/hitl/ask-user/node.js +0 -40
- package/vendor/common-nodes/dist/hitl/chat-input/node.d.ts +0 -20
- package/vendor/common-nodes/dist/hitl/chat-input/node.js +0 -43
- package/vendor/common-nodes/dist/hitl/hitl-required-role.d.ts +0 -38
- package/vendor/common-nodes/dist/hitl/hitl-required-role.js +0 -21
- package/vendor/common-nodes/dist/hitl/review-gate/node.d.ts +0 -17
- package/vendor/common-nodes/dist/hitl/review-gate/node.js +0 -70
- package/vendor/common-nodes/dist/kb/chunk-text.d.ts +0 -8
- package/vendor/common-nodes/dist/kb/chunk-text.js +0 -52
- package/vendor/common-nodes/dist/kb/cosine.d.ts +0 -3
- package/vendor/common-nodes/dist/kb/cosine.js +0 -21
- package/vendor/common-nodes/dist/kb/kb-apply-curation/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-apply-curation/node.js +0 -38
- package/vendor/common-nodes/dist/kb/kb-contradict/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-contradict/node.js +0 -70
- package/vendor/common-nodes/dist/kb/kb-dedupe/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-dedupe/node.js +0 -61
- package/vendor/common-nodes/dist/kb/kb-delete/node.d.ts +0 -24
- package/vendor/common-nodes/dist/kb/kb-delete/node.js +0 -60
- package/vendor/common-nodes/dist/kb/kb-embed/node.d.ts +0 -26
- package/vendor/common-nodes/dist/kb/kb-embed/node.js +0 -52
- package/vendor/common-nodes/dist/kb/kb-ingest/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-ingest/node.js +0 -68
- package/vendor/common-nodes/dist/kb/kb-list/node.d.ts +0 -24
- package/vendor/common-nodes/dist/kb/kb-list/node.js +0 -42
- package/vendor/common-nodes/dist/kb/kb-paths.d.ts +0 -8
- package/vendor/common-nodes/dist/kb/kb-paths.js +0 -19
- package/vendor/common-nodes/dist/kb/kb-search/node.d.ts +0 -24
- package/vendor/common-nodes/dist/kb/kb-search/node.js +0 -60
- package/vendor/common-nodes/dist/kb/kb-store.d.ts +0 -57
- package/vendor/common-nodes/dist/kb/kb-store.js +0 -290
- package/vendor/common-nodes/dist/kb/kb-tools/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-tools/node.js +0 -14
- package/vendor/common-nodes/dist/kb/local-embed.d.ts +0 -9
- package/vendor/common-nodes/dist/kb/local-embed.js +0 -41
- package/vendor/common-nodes/dist/kb/parse-string-list.d.ts +0 -3
- package/vendor/common-nodes/dist/kb/parse-string-list.js +0 -25
- package/vendor/common-nodes/dist/kb/tool-defs.d.ts +0 -85
- package/vendor/common-nodes/dist/kb/tool-defs.js +0 -67
- package/vendor/common-nodes/dist/langflower-tools/emit-registration-tools.d.ts +0 -18
- package/vendor/common-nodes/dist/langflower-tools/emit-registration-tools.js +0 -29
- package/vendor/common-nodes/dist/langflower-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/langflower-tools/node.js +0 -81
- package/vendor/common-nodes/dist/logic/assert/node.d.ts +0 -20
- package/vendor/common-nodes/dist/logic/assert/node.js +0 -56
- package/vendor/common-nodes/dist/logic/compare/evaluate-compare.d.ts +0 -28
- package/vendor/common-nodes/dist/logic/compare/evaluate-compare.js +0 -60
- package/vendor/common-nodes/dist/logic/compare/node.d.ts +0 -107
- package/vendor/common-nodes/dist/logic/compare/node.js +0 -46
- package/vendor/common-nodes/dist/logic/gate/node.d.ts +0 -17
- package/vendor/common-nodes/dist/logic/gate/node.js +0 -41
- package/vendor/common-nodes/dist/logic/if/node.d.ts +0 -17
- package/vendor/common-nodes/dist/logic/if/node.js +0 -46
- package/vendor/common-nodes/dist/logic/switch/build-switch-definition.d.ts +0 -18
- package/vendor/common-nodes/dist/logic/switch/build-switch-definition.js +0 -30
- package/vendor/common-nodes/dist/logic/switch/node.d.ts +0 -87
- package/vendor/common-nodes/dist/logic/switch/node.js +0 -75
- package/vendor/common-nodes/dist/logic/switch/switch-constants.d.ts +0 -15
- package/vendor/common-nodes/dist/logic/switch/switch-constants.js +0 -24
- package/vendor/common-nodes/dist/logic/switch/switch-rules.d.ts +0 -6
- package/vendor/common-nodes/dist/logic/switch/switch-rules.js +0 -43
- package/vendor/common-nodes/dist/mcp/build-mcp-handle.d.ts +0 -13
- package/vendor/common-nodes/dist/mcp/build-mcp-handle.js +0 -65
- package/vendor/common-nodes/dist/mcp/build-mcp-transport.d.ts +0 -14
- package/vendor/common-nodes/dist/mcp/build-mcp-transport.js +0 -56
- package/vendor/common-nodes/dist/mcp/collect-mcp-tool-registrations.d.ts +0 -7
- package/vendor/common-nodes/dist/mcp/collect-mcp-tool-registrations.js +0 -19
- package/vendor/common-nodes/dist/mcp/create-system-mcp-transports.d.ts +0 -48
- package/vendor/common-nodes/dist/mcp/create-system-mcp-transports.js +0 -124
- package/vendor/common-nodes/dist/mcp/flatten-mcp-handles.d.ts +0 -6
- package/vendor/common-nodes/dist/mcp/flatten-mcp-handles.js +0 -21
- package/vendor/common-nodes/dist/mcp/flatten-mcp-server-configs.d.ts +0 -7
- package/vendor/common-nodes/dist/mcp/flatten-mcp-server-configs.js +0 -21
- package/vendor/common-nodes/dist/mcp/flatten-mcp-transports.d.ts +0 -7
- package/vendor/common-nodes/dist/mcp/flatten-mcp-transports.js +0 -22
- package/vendor/common-nodes/dist/mcp/format-mcp-connect-error.d.ts +0 -10
- package/vendor/common-nodes/dist/mcp/format-mcp-connect-error.js +0 -18
- package/vendor/common-nodes/dist/mcp/mcp-http/node.d.ts +0 -22
- package/vendor/common-nodes/dist/mcp/mcp-http/node.js +0 -104
- package/vendor/common-nodes/dist/mcp/mcp-server/node.d.ts +0 -26
- package/vendor/common-nodes/dist/mcp/mcp-server/node.js +0 -68
- package/vendor/common-nodes/dist/mcp/mcp-server-config.d.ts +0 -2
- package/vendor/common-nodes/dist/mcp/mcp-server-config.js +0 -2
- package/vendor/common-nodes/dist/mcp/mcp-stdio/node.d.ts +0 -22
- package/vendor/common-nodes/dist/mcp/mcp-stdio/node.js +0 -93
- package/vendor/common-nodes/dist/mcp/resolve-agent-mcp-inventory.d.ts +0 -13
- package/vendor/common-nodes/dist/mcp/resolve-agent-mcp-inventory.js +0 -17
- package/vendor/common-nodes/dist/mcp/resolve-mcp-inventory.d.ts +0 -8
- package/vendor/common-nodes/dist/mcp/resolve-mcp-inventory.js +0 -43
- package/vendor/common-nodes/dist/memory/memory/node.d.ts +0 -79
- package/vendor/common-nodes/dist/memory/memory/node.js +0 -76
- package/vendor/common-nodes/dist/memory/memory-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/memory/memory-tools/node.js +0 -17
- package/vendor/common-nodes/dist/memory/tool-defs.d.ts +0 -48
- package/vendor/common-nodes/dist/memory/tool-defs.js +0 -45
- package/vendor/common-nodes/dist/obsidian/build-moc/node.d.ts +0 -26
- package/vendor/common-nodes/dist/obsidian/build-moc/node.js +0 -52
- package/vendor/common-nodes/dist/obsidian/build-moc.d.ts +0 -13
- package/vendor/common-nodes/dist/obsidian/build-moc.js +0 -57
- package/vendor/common-nodes/dist/obsidian/frontmatter/node.d.ts +0 -27
- package/vendor/common-nodes/dist/obsidian/frontmatter/node.js +0 -66
- package/vendor/common-nodes/dist/obsidian/frontmatter.d.ts +0 -26
- package/vendor/common-nodes/dist/obsidian/frontmatter.js +0 -142
- package/vendor/common-nodes/dist/obsidian/wikilink-rewrite/node.d.ts +0 -26
- package/vendor/common-nodes/dist/obsidian/wikilink-rewrite/node.js +0 -51
- package/vendor/common-nodes/dist/obsidian/wikilinks.d.ts +0 -22
- package/vendor/common-nodes/dist/obsidian/wikilinks.js +0 -84
- package/vendor/common-nodes/dist/output/finish/node.d.ts +0 -17
- package/vendor/common-nodes/dist/output/finish/node.js +0 -34
- package/vendor/common-nodes/dist/output/preview/node.d.ts +0 -17
- package/vendor/common-nodes/dist/output/preview/node.js +0 -48
- package/vendor/common-nodes/dist/primitives/boolean/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/boolean/node.js +0 -31
- package/vendor/common-nodes/dist/primitives/number/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/number/node.js +0 -31
- package/vendor/common-nodes/dist/primitives/string/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/string/node.js +0 -31
- package/vendor/common-nodes/dist/primitives/string-multiline/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/string-multiline/node.js +0 -31
- package/vendor/common-nodes/dist/resolve-workflow-node-definition.d.ts +0 -7
- package/vendor/common-nodes/dist/resolve-workflow-node-definition.js +0 -3
- package/vendor/common-nodes/dist/text/append-file/node.d.ts +0 -20
- package/vendor/common-nodes/dist/text/append-file/node.js +0 -68
- package/vendor/common-nodes/dist/text/concat/node.d.ts +0 -17
- package/vendor/common-nodes/dist/text/concat/node.js +0 -38
- package/vendor/common-nodes/dist/text/read-file/node.d.ts +0 -20
- package/vendor/common-nodes/dist/text/read-file/node.js +0 -57
- package/vendor/common-nodes/dist/text/split-paced/node.d.ts +0 -21
- package/vendor/common-nodes/dist/text/split-paced/node.js +0 -93
- package/vendor/common-nodes/dist/text/write-file/node.d.ts +0 -19
- package/vendor/common-nodes/dist/text/write-file/node.js +0 -60
- package/vendor/common-nodes/dist/tools/collect-agent-tool-handles.d.ts +0 -12
- package/vendor/common-nodes/dist/tools/collect-agent-tool-handles.js +0 -42
- package/vendor/common-nodes/dist/tools/filter-enabled-registrations.d.ts +0 -8
- package/vendor/common-nodes/dist/tools/filter-enabled-registrations.js +0 -17
- package/vendor/common-nodes/dist/tools/inventory-tool-round.d.ts +0 -20
- package/vendor/common-nodes/dist/tools/inventory-tool-round.js +0 -91
- package/vendor/common-nodes/dist/tools/merge-tool-inventory.d.ts +0 -10
- package/vendor/common-nodes/dist/tools/merge-tool-inventory.js +0 -26
- package/vendor/common-nodes/dist/tools/run-internal-tool-loop.d.ts +0 -55
- package/vendor/common-nodes/dist/tools/run-internal-tool-loop.js +0 -360
- package/vendor/common-nodes/dist/tools/tool-collection/node.d.ts +0 -20
- package/vendor/common-nodes/dist/tools/tool-collection/node.js +0 -45
- package/vendor/common-nodes/dist/tools/tool-registration.d.ts +0 -6
- package/vendor/common-nodes/dist/tools/tool-registration.js +0 -33
- package/vendor/common-nodes/package.json +0 -48
- package/vendor/compiler/dist/bundle-pack.d.ts +0 -18
- package/vendor/compiler/dist/bundle-pack.js +0 -98
- package/vendor/compiler/dist/cache-key.d.ts +0 -5
- package/vendor/compiler/dist/cache-key.js +0 -35
- package/vendor/compiler/dist/compile-project-nodes.d.ts +0 -14
- package/vendor/compiler/dist/compile-project-nodes.js +0 -143
- package/vendor/compiler/dist/compile-types.d.ts +0 -22
- package/vendor/compiler/dist/compile-types.js +0 -1
- package/vendor/compiler/dist/discover-packs.d.ts +0 -6
- package/vendor/compiler/dist/discover-packs.js +0 -93
- package/vendor/compiler/dist/format-compilation-errors.d.ts +0 -17
- package/vendor/compiler/dist/format-compilation-errors.js +0 -62
- package/vendor/compiler/dist/resolve-host-types.d.ts +0 -27
- package/vendor/compiler/dist/resolve-host-types.js +0 -185
- package/vendor/compiler/dist/typecheck-pack.d.ts +0 -20
- package/vendor/compiler/dist/typecheck-pack.js +0 -102
- package/vendor/compiler/dist/validate-default-export.d.ts +0 -9
- package/vendor/compiler/dist/validate-default-export.js +0 -40
- package/vendor/compiler/dist/write-compilation-errors.d.ts +0 -4
- package/vendor/compiler/dist/write-compilation-errors.js +0 -27
- package/vendor/compiler/package.json +0 -26
- package/vendor/eval/dist/eval-pack-types.d.ts +0 -14
- package/vendor/eval/dist/eval-pack-types.js +0 -1
- package/vendor/eval/dist/load-pack.d.ts +0 -5
- package/vendor/eval/dist/load-pack.js +0 -97
- package/vendor/eval/dist/load-skill-via-read.d.ts +0 -6
- package/vendor/eval/dist/load-skill-via-read.js +0 -14
- package/vendor/eval/dist/run-eval-suite.d.ts +0 -46
- package/vendor/eval/dist/run-eval-suite.js +0 -90
- package/vendor/eval/dist/score-case.d.ts +0 -2
- package/vendor/eval/dist/score-case.js +0 -10
- package/vendor/eval/package.json +0 -21
- package/vendor/server/dist/bootstrap/copy-force.d.ts +0 -7
- package/vendor/server/dist/bootstrap/copy-force.js +0 -18
- package/vendor/server/dist/bootstrap/copy-if-missing.d.ts +0 -7
- package/vendor/server/dist/bootstrap/copy-if-missing.js +0 -32
- package/vendor/server/dist/bootstrap/project-bootstrap.service.d.ts +0 -17
- package/vendor/server/dist/bootstrap/project-bootstrap.service.js +0 -82
- package/vendor/server/dist/bootstrap/project-bootstrap.service.test.d.ts +0 -2
- package/vendor/server/dist/bootstrap/project-bootstrap.service.test.js +0 -20
- package/vendor/server/dist/bootstrap/resolve-skeleton-root.d.ts +0 -8
- package/vendor/server/dist/bootstrap/resolve-skeleton-root.js +0 -34
- package/vendor/server/dist/bootstrap/seed-skeleton.d.ts +0 -15
- package/vendor/server/dist/bootstrap/seed-skeleton.js +0 -70
- package/vendor/server/dist/bridge/attach-langflower-bridge.d.ts +0 -19
- package/vendor/server/dist/bridge/attach-langflower-bridge.js +0 -79
- package/vendor/server/dist/bridge/bind-embed-context.d.ts +0 -7
- package/vendor/server/dist/bridge/bind-embed-context.js +0 -16
- package/vendor/server/dist/bridge/bind-llm-context.d.ts +0 -13
- package/vendor/server/dist/bridge/bind-llm-context.js +0 -30
- package/vendor/server/dist/bridge/bridge-event-log.d.ts +0 -12
- package/vendor/server/dist/bridge/bridge-event-log.js +0 -114
- package/vendor/server/dist/bridge/bridge-outbound.d.ts +0 -4
- package/vendor/server/dist/bridge/bridge-outbound.js +0 -14
- package/vendor/server/dist/bridge/build-execution-context.d.ts +0 -31
- package/vendor/server/dist/bridge/build-execution-context.js +0 -223
- package/vendor/server/dist/bridge/build-execution-context.test.d.ts +0 -2
- package/vendor/server/dist/bridge/build-execution-context.test.js +0 -126
- package/vendor/server/dist/bridge/build-langflower-config-snapshot.d.ts +0 -6
- package/vendor/server/dist/bridge/build-langflower-config-snapshot.js +0 -17
- package/vendor/server/dist/bridge/client-index.d.ts +0 -5
- package/vendor/server/dist/bridge/client-index.js +0 -16
- package/vendor/server/dist/bridge/emit-bootstrap.d.ts +0 -16
- package/vendor/server/dist/bridge/emit-bootstrap.js +0 -82
- package/vendor/server/dist/bridge/forward-runner-event.d.ts +0 -4
- package/vendor/server/dist/bridge/forward-runner-event.js +0 -12
- package/vendor/server/dist/bridge/forward-runner-event.test.d.ts +0 -2
- package/vendor/server/dist/bridge/forward-runner-event.test.js +0 -91
- package/vendor/server/dist/bridge/get-live-wired-tools.d.ts +0 -13
- package/vendor/server/dist/bridge/get-live-wired-tools.js +0 -83
- package/vendor/server/dist/bridge/inbound-guards.d.ts +0 -2
- package/vendor/server/dist/bridge/inbound-guards.js +0 -4
- package/vendor/server/dist/bridge/langflower-bridge.types.d.ts +0 -4
- package/vendor/server/dist/bridge/langflower-bridge.types.js +0 -1
- package/vendor/server/dist/bridge/langflower-tools-rpc.d.ts +0 -7
- package/vendor/server/dist/bridge/langflower-tools-rpc.js +0 -29
- package/vendor/server/dist/bridge/push-models-catalog.d.ts +0 -12
- package/vendor/server/dist/bridge/push-models-catalog.js +0 -31
- package/vendor/server/dist/bridge/same-canvas-viewport.d.ts +0 -3
- package/vendor/server/dist/bridge/same-canvas-viewport.js +0 -5
- package/vendor/server/dist/bridge/settings-draft-controller.d.ts +0 -14
- package/vendor/server/dist/bridge/settings-draft-controller.js +0 -205
- package/vendor/server/dist/bridge/wire-config-handlers.d.ts +0 -11
- package/vendor/server/dist/bridge/wire-config-handlers.js +0 -51
- package/vendor/server/dist/bridge/wire-custom-palette-handlers.d.ts +0 -5
- package/vendor/server/dist/bridge/wire-custom-palette-handlers.js +0 -8
- package/vendor/server/dist/bridge/wire-editor-handlers.d.ts +0 -12
- package/vendor/server/dist/bridge/wire-editor-handlers.js +0 -254
- package/vendor/server/dist/bridge/wire-models-handlers.d.ts +0 -5
- package/vendor/server/dist/bridge/wire-models-handlers.js +0 -23
- package/vendor/server/dist/bridge/wire-palette-handlers.d.ts +0 -4
- package/vendor/server/dist/bridge/wire-palette-handlers.js +0 -9
- package/vendor/server/dist/bridge/wire-project-bootstrap-handlers.d.ts +0 -9
- package/vendor/server/dist/bridge/wire-project-bootstrap-handlers.js +0 -63
- package/vendor/server/dist/bridge/wire-runner-handlers.d.ts +0 -10
- package/vendor/server/dist/bridge/wire-runner-handlers.js +0 -302
- package/vendor/server/dist/bridge/wire-workflow-handlers.d.ts +0 -5
- package/vendor/server/dist/bridge/wire-workflow-handlers.js +0 -245
- package/vendor/server/dist/bridge/wrap-builtin-tool-handles.d.ts +0 -10
- package/vendor/server/dist/bridge/wrap-builtin-tool-handles.js +0 -42
- package/vendor/server/dist/checkpoint/list-resumable-checkpoints.d.ts +0 -4
- package/vendor/server/dist/checkpoint/list-resumable-checkpoints.js +0 -11
- package/vendor/server/dist/checkpoint/resolve-checkpoint-boundary.d.ts +0 -11
- package/vendor/server/dist/checkpoint/resolve-checkpoint-boundary.js +0 -31
- package/vendor/server/dist/checkpoint/run-checkpoint-session.d.ts +0 -41
- package/vendor/server/dist/checkpoint/run-checkpoint-session.js +0 -170
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.d.ts +0 -23
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.js +0 -177
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.test.d.ts +0 -2
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.test.js +0 -60
- package/vendor/server/dist/config/config.service.d.ts +0 -9
- package/vendor/server/dist/config/config.service.js +0 -31
- package/vendor/server/dist/config/langflower-config.service.d.ts +0 -37
- package/vendor/server/dist/config/langflower-config.service.js +0 -390
- package/vendor/server/dist/config/langflower-config.service.test.d.ts +0 -2
- package/vendor/server/dist/config/langflower-config.service.test.js +0 -111
- package/vendor/server/dist/config/redact-langflower-config.d.ts +0 -8
- package/vendor/server/dist/config/redact-langflower-config.js +0 -42
- package/vendor/server/dist/config/redact-langflower-config.test.d.ts +0 -2
- package/vendor/server/dist/config/redact-langflower-config.test.js +0 -69
- package/vendor/server/dist/config/resolve-draft-provider-credentials.d.ts +0 -18
- package/vendor/server/dist/config/resolve-draft-provider-credentials.js +0 -60
- package/vendor/server/dist/config/resolve-global-langflower-config-path.d.ts +0 -5
- package/vendor/server/dist/config/resolve-global-langflower-config-path.js +0 -18
- package/vendor/server/dist/config/resolve-provider-credentials.d.ts +0 -20
- package/vendor/server/dist/config/resolve-provider-credentials.js +0 -59
- package/vendor/server/dist/config/resolve-provider-credentials.test.d.ts +0 -2
- package/vendor/server/dist/config/resolve-provider-credentials.test.js +0 -63
- package/vendor/server/dist/crawl/create-crawl-context.d.ts +0 -6
- package/vendor/server/dist/crawl/create-crawl-context.js +0 -33
- package/vendor/server/dist/crawl/create-crawl-context.test.d.ts +0 -2
- package/vendor/server/dist/crawl/create-crawl-context.test.js +0 -30
- package/vendor/server/dist/crawl/create-web-fetch.d.ts +0 -12
- package/vendor/server/dist/crawl/create-web-fetch.js +0 -128
- package/vendor/server/dist/crawl/create-web-fetch.test.d.ts +0 -2
- package/vendor/server/dist/crawl/create-web-fetch.test.js +0 -43
- package/vendor/server/dist/crawl/ssrf-guard.d.ts +0 -13
- package/vendor/server/dist/crawl/ssrf-guard.js +0 -117
- package/vendor/server/dist/crawl/ssrf-guard.test.d.ts +0 -2
- package/vendor/server/dist/crawl/ssrf-guard.test.js +0 -46
- package/vendor/server/dist/create-server.d.ts +0 -10
- package/vendor/server/dist/create-server.js +0 -60
- package/vendor/server/dist/harness/pending-permission-asks.d.ts +0 -14
- package/vendor/server/dist/harness/pending-permission-asks.js +0 -45
- package/vendor/server/dist/harness/permission.d.ts +0 -23
- package/vendor/server/dist/harness/permission.js +0 -31
- package/vendor/server/dist/harness/permission.test.d.ts +0 -2
- package/vendor/server/dist/harness/permission.test.js +0 -50
- package/vendor/server/dist/index.d.ts +0 -4
- package/vendor/server/dist/index.js +0 -4
- package/vendor/server/dist/kb/chunk-text.d.ts +0 -8
- package/vendor/server/dist/kb/chunk-text.js +0 -52
- package/vendor/server/dist/kb/cosine.d.ts +0 -3
- package/vendor/server/dist/kb/cosine.js +0 -21
- package/vendor/server/dist/kb/create-kb-context.d.ts +0 -6
- package/vendor/server/dist/kb/create-kb-context.js +0 -46
- package/vendor/server/dist/kb/kb-paths.d.ts +0 -8
- package/vendor/server/dist/kb/kb-paths.js +0 -19
- package/vendor/server/dist/kb/kb-store.d.ts +0 -41
- package/vendor/server/dist/kb/kb-store.js +0 -250
- package/vendor/server/dist/kb/kb-store.test.d.ts +0 -2
- package/vendor/server/dist/kb/kb-store.test.js +0 -94
- package/vendor/server/dist/kb/local-embed.d.ts +0 -8
- package/vendor/server/dist/kb/local-embed.js +0 -41
- package/vendor/server/dist/listen-http-server.d.ts +0 -6
- package/vendor/server/dist/listen-http-server.js +0 -18
- package/vendor/server/dist/llm/create-chat-completion-stream.d.ts +0 -8
- package/vendor/server/dist/llm/create-chat-completion-stream.js +0 -125
- package/vendor/server/dist/llm/create-chat-completion-stream.test.d.ts +0 -2
- package/vendor/server/dist/llm/create-chat-completion-stream.test.js +0 -72
- package/vendor/server/dist/llm/create-embedding.d.ts +0 -9
- package/vendor/server/dist/llm/create-embedding.js +0 -51
- package/vendor/server/dist/llm/list-provider-models.d.ts +0 -29
- package/vendor/server/dist/llm/list-provider-models.js +0 -55
- package/vendor/server/dist/llm/list-provider-models.test.d.ts +0 -2
- package/vendor/server/dist/llm/list-provider-models.test.js +0 -97
- package/vendor/server/dist/mcp/create-mcp-runtime.d.ts +0 -21
- package/vendor/server/dist/mcp/create-mcp-runtime.js +0 -167
- package/vendor/server/dist/mcp/create-mcp-runtime.test.d.ts +0 -2
- package/vendor/server/dist/mcp/create-mcp-runtime.test.js +0 -69
- package/vendor/server/dist/mcp/mcp-stdio-client.d.ts +0 -32
- package/vendor/server/dist/mcp/mcp-stdio-client.js +0 -183
- package/vendor/server/dist/mcp/mcp-tool-id.d.ts +0 -5
- package/vendor/server/dist/mcp/mcp-tool-id.js +0 -5
- package/vendor/server/dist/mcp/openai-mcp-tool-loop.test.d.ts +0 -2
- package/vendor/server/dist/mcp/openai-mcp-tool-loop.test.js +0 -189
- package/vendor/server/dist/mcp/wrap-harness-with-mcp.d.ts +0 -5
- package/vendor/server/dist/mcp/wrap-harness-with-mcp.js +0 -14
- package/vendor/server/dist/palette/compile-and-hot-swap-custom-nodes.d.ts +0 -10
- package/vendor/server/dist/palette/compile-and-hot-swap-custom-nodes.js +0 -23
- package/vendor/server/dist/palette/custom-node-registry.d.ts +0 -10
- package/vendor/server/dist/palette/custom-node-registry.js +0 -19
- package/vendor/server/dist/palette/custom-palette.service.d.ts +0 -12
- package/vendor/server/dist/palette/custom-palette.service.js +0 -63
- package/vendor/server/dist/palette/palette.service.d.ts +0 -13
- package/vendor/server/dist/palette/palette.service.js +0 -28
- package/vendor/server/dist/server-context.d.ts +0 -18
- package/vendor/server/dist/server-context.js +0 -29
- package/vendor/server/dist/session/build-selected-node-payload.d.ts +0 -9
- package/vendor/server/dist/session/build-selected-node-payload.js +0 -20
- package/vendor/server/dist/session/build-session-bootstrap.d.ts +0 -7
- package/vendor/server/dist/session/build-session-bootstrap.js +0 -23
- package/vendor/server/dist/session/clear-feed-while-running.test.d.ts +0 -2
- package/vendor/server/dist/session/clear-feed-while-running.test.js +0 -41
- package/vendor/server/dist/session/langflower-session.d.ts +0 -38
- package/vendor/server/dist/session/langflower-session.js +0 -92
- package/vendor/server/dist/session/reset-session-execution-feed.d.ts +0 -6
- package/vendor/server/dist/session/reset-session-execution-feed.js +0 -8
- package/vendor/server/dist/session/settings-draft-session.d.ts +0 -24
- package/vendor/server/dist/session/settings-draft-session.js +0 -82
- package/vendor/server/dist/skills/is-safe-skill-id.d.ts +0 -2
- package/vendor/server/dist/skills/is-safe-skill-id.js +0 -7
- package/vendor/server/dist/skills/list-skills.d.ts +0 -2
- package/vendor/server/dist/skills/list-skills.js +0 -36
- package/vendor/server/dist/skills/list-skills.test.d.ts +0 -2
- package/vendor/server/dist/skills/list-skills.test.js +0 -46
- package/vendor/server/dist/skills/parse-skill-markdown.d.ts +0 -7
- package/vendor/server/dist/skills/parse-skill-markdown.js +0 -50
- package/vendor/server/dist/skills/parse-skill-markdown.test.d.ts +0 -2
- package/vendor/server/dist/skills/parse-skill-markdown.test.js +0 -33
- package/vendor/server/dist/skills/read-agents-markdown.d.ts +0 -2
- package/vendor/server/dist/skills/read-agents-markdown.js +0 -13
- package/vendor/server/dist/skills/read-skill-markdown.d.ts +0 -2
- package/vendor/server/dist/skills/read-skill-markdown.js +0 -17
- package/vendor/server/dist/skills/read-skill-markdown.test.d.ts +0 -2
- package/vendor/server/dist/skills/read-skill-markdown.test.js +0 -31
- package/vendor/server/dist/skills/with-skills-catalog.d.ts +0 -3
- package/vendor/server/dist/skills/with-skills-catalog.js +0 -6
- package/vendor/server/dist/skills/with-skills-catalog.test.d.ts +0 -2
- package/vendor/server/dist/skills/with-skills-catalog.test.js +0 -40
- package/vendor/server/dist/utils/parse-jsonc.d.ts +0 -2
- package/vendor/server/dist/utils/parse-jsonc.js +0 -7
- package/vendor/server/dist/workflow/activate-workflow-in-session.d.ts +0 -26
- package/vendor/server/dist/workflow/activate-workflow-in-session.js +0 -69
- package/vendor/server/dist/workflow/apply-editor-mutation.d.ts +0 -67
- package/vendor/server/dist/workflow/apply-editor-mutation.js +0 -527
- package/vendor/server/dist/workflow/apply-editor-mutation.test.d.ts +0 -2
- package/vendor/server/dist/workflow/apply-editor-mutation.test.js +0 -397
- package/vendor/server/dist/workflow/bind-workflow-graph.d.ts +0 -11
- package/vendor/server/dist/workflow/bind-workflow-graph.js +0 -16
- package/vendor/server/dist/workflow/build-save-current-payload.d.ts +0 -3
- package/vendor/server/dist/workflow/build-save-current-payload.js +0 -17
- package/vendor/server/dist/workflow/build-save-current-payload.test.d.ts +0 -2
- package/vendor/server/dist/workflow/build-save-current-payload.test.js +0 -44
- package/vendor/server/dist/workflow/copy-workflow-to-session.d.ts +0 -8
- package/vendor/server/dist/workflow/copy-workflow-to-session.js +0 -32
- package/vendor/server/dist/workflow/copy-workflow-to-session.test.d.ts +0 -2
- package/vendor/server/dist/workflow/copy-workflow-to-session.test.js +0 -72
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.d.ts +0 -4
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.js +0 -34
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.test.d.ts +0 -2
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.test.js +0 -54
- package/vendor/server/dist/workflow/load-workflow-into-session.d.ts +0 -15
- package/vendor/server/dist/workflow/load-workflow-into-session.js +0 -43
- package/vendor/server/dist/workflow/rename-active-workflow.d.ts +0 -14
- package/vendor/server/dist/workflow/rename-active-workflow.js +0 -60
- package/vendor/server/dist/workflow/rename-active-workflow.test.d.ts +0 -2
- package/vendor/server/dist/workflow/rename-active-workflow.test.js +0 -111
- package/vendor/server/dist/workflow/repair-workflow-graph.d.ts +0 -12
- package/vendor/server/dist/workflow/repair-workflow-graph.js +0 -62
- package/vendor/server/dist/workflow/repro-bypass.test.d.ts +0 -2
- package/vendor/server/dist/workflow/repro-bypass.test.js +0 -63
- package/vendor/server/dist/workflow/workflow-document.d.ts +0 -21
- package/vendor/server/dist/workflow/workflow-document.js +0 -58
- package/vendor/server/dist/workflow/workflow-id.d.ts +0 -2
- package/vendor/server/dist/workflow/workflow-id.js +0 -19
- package/vendor/server/dist/workflow/workflow-id.test.d.ts +0 -2
- package/vendor/server/dist/workflow/workflow-id.test.js +0 -23
- package/vendor/server/dist/workflow/workflow-persisted-inputs.d.ts +0 -13
- package/vendor/server/dist/workflow/workflow-persisted-inputs.js +0 -71
- package/vendor/server/dist/workflow/workflow.service.d.ts +0 -37
- package/vendor/server/dist/workflow/workflow.service.js +0 -161
- package/vendor/server/dist/workflow/workflow.service.test.d.ts +0 -2
- package/vendor/server/dist/workflow/workflow.service.test.js +0 -57
- package/vendor/server/package.json +0 -35
- package/vendor/shared/dist/checkpoint/json-value.d.ts +0 -7
- package/vendor/shared/dist/checkpoint/json-value.js +0 -52
- package/vendor/shared/dist/checkpoint/json-value.test.d.ts +0 -1
- package/vendor/shared/dist/checkpoint/json-value.test.js +0 -22
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.d.ts +0 -11
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.js +0 -17
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.test.d.ts +0 -1
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.test.js +0 -54
- package/vendor/shared/dist/constants/defaults.d.ts +0 -16
- package/vendor/shared/dist/constants/defaults.js +0 -25
- package/vendor/shared/dist/execution/derive-run-settle-outcome.d.ts +0 -16
- package/vendor/shared/dist/execution/derive-run-settle-outcome.js +0 -48
- package/vendor/shared/dist/execution/derive-run-settle-outcome.test.d.ts +0 -1
- package/vendor/shared/dist/execution/derive-run-settle-outcome.test.js +0 -46
- package/vendor/shared/dist/langflower-bus-config.d.ts +0 -484
- package/vendor/shared/dist/langflower-bus-config.js +0 -635
- package/vendor/shared/dist/langflower-config/mcp-tool-id.d.ts +0 -23
- package/vendor/shared/dist/langflower-config/mcp-tool-id.js +0 -43
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.d.ts +0 -6
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.js +0 -18
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.test.js +0 -44
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.d.ts +0 -7
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.js +0 -17
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.test.js +0 -22
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.d.ts +0 -14
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.js +0 -38
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.test.js +0 -41
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.d.ts +0 -6
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.js +0 -5
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.test.js +0 -11
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.d.ts +0 -18
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.js +0 -61
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.test.js +0 -37
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.d.ts +0 -40
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.js +0 -139
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.test.js +0 -253
- package/vendor/shared/dist/langflower-config/settings-draft.d.ts +0 -49
- package/vendor/shared/dist/langflower-config/settings-draft.js +0 -151
- package/vendor/shared/dist/langflower-ws-waits.d.ts +0 -58
- package/vendor/shared/dist/langflower-ws-waits.js +0 -121
- package/vendor/shared/dist/langflower.d.ts +0 -30
- package/vendor/shared/dist/langflower.js +0 -13
- package/vendor/shared/dist/types/config.d.ts +0 -4
- package/vendor/shared/dist/types/config.js +0 -1
- package/vendor/shared/dist/types/langflower-bootstrap.d.ts +0 -71
- package/vendor/shared/dist/types/langflower-bootstrap.js +0 -1
- package/vendor/shared/dist/types/langflower-config.d.ts +0 -263
- package/vendor/shared/dist/types/langflower-config.js +0 -1
- package/vendor/shared/dist/types/langflower-custom-palette.d.ts +0 -21
- package/vendor/shared/dist/types/langflower-custom-palette.js +0 -1
- package/vendor/shared/dist/types/langflower-editor.d.ts +0 -96
- package/vendor/shared/dist/types/langflower-editor.js +0 -1
- package/vendor/shared/dist/types/langflower-palette.d.ts +0 -25
- package/vendor/shared/dist/types/langflower-palette.js +0 -1
- package/vendor/shared/dist/types/langflower-project-bootstrap.d.ts +0 -11
- package/vendor/shared/dist/types/langflower-project-bootstrap.js +0 -1
- package/vendor/shared/dist/types/langflower-server.d.ts +0 -4
- package/vendor/shared/dist/types/langflower-server.js +0 -1
- package/vendor/shared/dist/types/langflower-workflow.d.ts +0 -146
- package/vendor/shared/dist/types/langflower-workflow.js +0 -12
- package/vendor/shared/dist/types/workflow-checkpoint.d.ts +0 -60
- package/vendor/shared/dist/types/workflow-checkpoint.js +0 -9
- package/vendor/shared/package.json +0 -74
- package/vendor/tools/dist/builtin-schemas.d.ts +0 -10
- package/vendor/tools/dist/builtin-schemas.js +0 -144
- package/vendor/tools/dist/builtins/apply-post-process.d.ts +0 -1
- package/vendor/tools/dist/builtins/apply-post-process.js +0 -9
- package/vendor/tools/dist/builtins/args.d.ts +0 -3
- package/vendor/tools/dist/builtins/args.js +0 -14
- package/vendor/tools/dist/builtins/bash/tool.d.ts +0 -25
- package/vendor/tools/dist/builtins/bash/tool.js +0 -72
- package/vendor/tools/dist/builtins/catalog.d.ts +0 -228
- package/vendor/tools/dist/builtins/catalog.js +0 -24
- package/vendor/tools/dist/builtins/command-exists.d.ts +0 -5
- package/vendor/tools/dist/builtins/command-exists.js +0 -27
- package/vendor/tools/dist/builtins/create/tool.d.ts +0 -25
- package/vendor/tools/dist/builtins/create/tool.js +0 -56
- package/vendor/tools/dist/builtins/delete/tool.d.ts +0 -21
- package/vendor/tools/dist/builtins/delete/tool.js +0 -44
- package/vendor/tools/dist/builtins/edit/tool.d.ts +0 -29
- package/vendor/tools/dist/builtins/edit/tool.js +0 -68
- package/vendor/tools/dist/builtins/fence.d.ts +0 -4
- package/vendor/tools/dist/builtins/fence.js +0 -6
- package/vendor/tools/dist/builtins/glob/tool.d.ts +0 -33
- package/vendor/tools/dist/builtins/glob/tool.js +0 -77
- package/vendor/tools/dist/builtins/grep/search.d.ts +0 -43
- package/vendor/tools/dist/builtins/grep/search.js +0 -315
- package/vendor/tools/dist/builtins/grep/tool.d.ts +0 -36
- package/vendor/tools/dist/builtins/grep/tool.js +0 -66
- package/vendor/tools/dist/builtins/read/tool.d.ts +0 -41
- package/vendor/tools/dist/builtins/read/tool.js +0 -96
- package/vendor/tools/dist/builtins/spawn-capture.d.ts +0 -15
- package/vendor/tools/dist/builtins/spawn-capture.js +0 -42
- package/vendor/tools/dist/builtins/types.d.ts +0 -16
- package/vendor/tools/dist/builtins/types.js +0 -1
- package/vendor/tools/dist/builtins/walk-files.d.ts +0 -16
- package/vendor/tools/dist/builtins/walk-files.js +0 -100
- package/vendor/tools/dist/builtins/write/tool.d.ts +0 -25
- package/vendor/tools/dist/builtins/write/tool.js +0 -40
- package/vendor/tools/dist/create-crawl-context.d.ts +0 -22
- package/vendor/tools/dist/create-crawl-context.js +0 -34
- package/vendor/tools/dist/create-memory-context.d.ts +0 -12
- package/vendor/tools/dist/create-memory-context.js +0 -84
- package/vendor/tools/dist/create-project-files-context.d.ts +0 -19
- package/vendor/tools/dist/create-project-files-context.js +0 -75
- package/vendor/tools/dist/create-project-harness.d.ts +0 -33
- package/vendor/tools/dist/create-project-harness.js +0 -64
- package/vendor/tools/dist/create-web-fetch.d.ts +0 -27
- package/vendor/tools/dist/create-web-fetch.js +0 -164
- package/vendor/tools/dist/domain/args.d.ts +0 -3
- package/vendor/tools/dist/domain/args.js +0 -22
- package/vendor/tools/dist/domain/create-domain-handlers.d.ts +0 -22
- package/vendor/tools/dist/domain/create-domain-handlers.js +0 -223
- package/vendor/tools/dist/domain/domain-tool-configs.d.ts +0 -30
- package/vendor/tools/dist/domain/domain-tool-configs.js +0 -299
- package/vendor/tools/dist/domain/html.d.ts +0 -4
- package/vendor/tools/dist/domain/html.js +0 -68
- package/vendor/tools/dist/domain/run-bfs-crawl.d.ts +0 -57
- package/vendor/tools/dist/domain/run-bfs-crawl.js +0 -112
- package/vendor/tools/dist/gate-tool-call.d.ts +0 -17
- package/vendor/tools/dist/gate-tool-call.js +0 -35
- package/vendor/tools/dist/gitignore.d.ts +0 -4
- package/vendor/tools/dist/gitignore.js +0 -94
- package/vendor/tools/dist/handlers.d.ts +0 -16
- package/vendor/tools/dist/handlers.js +0 -367
- package/vendor/tools/dist/harness-types.d.ts +0 -33
- package/vendor/tools/dist/harness-types.js +0 -4
- package/vendor/tools/dist/kb/chunk-text.d.ts +0 -8
- package/vendor/tools/dist/kb/chunk-text.js +0 -52
- package/vendor/tools/dist/kb/cosine.d.ts +0 -3
- package/vendor/tools/dist/kb/cosine.js +0 -21
- package/vendor/tools/dist/kb/create-kb-context.d.ts +0 -62
- package/vendor/tools/dist/kb/create-kb-context.js +0 -78
- package/vendor/tools/dist/kb/kb-curation.d.ts +0 -69
- package/vendor/tools/dist/kb/kb-curation.js +0 -364
- package/vendor/tools/dist/kb/kb-paths.d.ts +0 -8
- package/vendor/tools/dist/kb/kb-paths.js +0 -19
- package/vendor/tools/dist/kb/kb-store.d.ts +0 -41
- package/vendor/tools/dist/kb/kb-store.js +0 -246
- package/vendor/tools/dist/kb/local-embed.d.ts +0 -8
- package/vendor/tools/dist/kb/local-embed.js +0 -41
- package/vendor/tools/dist/mcp/build-mcp-handle.d.ts +0 -12
- package/vendor/tools/dist/mcp/build-mcp-handle.js +0 -56
- package/vendor/tools/dist/mcp/create-mcp-runtime.d.ts +0 -29
- package/vendor/tools/dist/mcp/create-mcp-runtime.js +0 -161
- package/vendor/tools/dist/mcp/create-system-mcp-handles.d.ts +0 -52
- package/vendor/tools/dist/mcp/create-system-mcp-handles.js +0 -127
- package/vendor/tools/dist/mcp/env-with-shell-com-spec.d.ts +0 -5
- package/vendor/tools/dist/mcp/env-with-shell-com-spec.js +0 -18
- package/vendor/tools/dist/mcp/format-mcp-connect-error.d.ts +0 -9
- package/vendor/tools/dist/mcp/format-mcp-connect-error.js +0 -13
- package/vendor/tools/dist/mcp/mcp-client-types.d.ts +0 -17
- package/vendor/tools/dist/mcp/mcp-client-types.js +0 -1
- package/vendor/tools/dist/mcp/mcp-http-client.d.ts +0 -31
- package/vendor/tools/dist/mcp/mcp-http-client.js +0 -243
- package/vendor/tools/dist/mcp/mcp-stdio-client.d.ts +0 -19
- package/vendor/tools/dist/mcp/mcp-stdio-client.js +0 -186
- package/vendor/tools/dist/mcp/mcp-stdio-frame-parser.d.ts +0 -7
- package/vendor/tools/dist/mcp/mcp-stdio-frame-parser.js +0 -77
- package/vendor/tools/dist/mcp/mcp-tool-id.d.ts +0 -25
- package/vendor/tools/dist/mcp/mcp-tool-id.js +0 -45
- package/vendor/tools/dist/mcp/require-mcp-server-name.d.ts +0 -5
- package/vendor/tools/dist/mcp/require-mcp-server-name.js +0 -22
- package/vendor/tools/dist/mcp/resolve-shell-option.d.ts +0 -6
- package/vendor/tools/dist/mcp/resolve-shell-option.js +0 -19
- package/vendor/tools/dist/mcp/wrap-harness-with-mcp.d.ts +0 -5
- package/vendor/tools/dist/mcp/wrap-harness-with-mcp.js +0 -27
- package/vendor/tools/dist/memory/atomic-write.d.ts +0 -4
- package/vendor/tools/dist/memory/atomic-write.js +0 -18
- package/vendor/tools/dist/memory/create-memory-store.d.ts +0 -21
- package/vendor/tools/dist/memory/create-memory-store.js +0 -203
- package/vendor/tools/dist/memory/markdown-sections.d.ts +0 -22
- package/vendor/tools/dist/memory/markdown-sections.js +0 -69
- package/vendor/tools/dist/memory/memory-paths.d.ts +0 -9
- package/vendor/tools/dist/memory/memory-paths.js +0 -28
- package/vendor/tools/dist/path-sandbox.d.ts +0 -21
- package/vendor/tools/dist/path-sandbox.js +0 -96
- package/vendor/tools/dist/permission.d.ts +0 -75
- package/vendor/tools/dist/permission.js +0 -264
- package/vendor/tools/dist/post-process.d.ts +0 -9
- package/vendor/tools/dist/post-process.js +0 -36
- package/vendor/tools/dist/ssrf-guard.d.ts +0 -22
- package/vendor/tools/dist/ssrf-guard.js +0 -119
- package/vendor/tools/package.json +0 -74
- package/vendor/websocket-bridge/dist/bridge-codec.d.ts +0 -3
- package/vendor/websocket-bridge/dist/bridge-codec.js +0 -26
- package/vendor/websocket-bridge/dist/bridge-frame.d.ts +0 -11
- package/vendor/websocket-bridge/dist/bridge-frame.js +0 -24
- package/vendor/websocket-bridge/dist/bridge-guards.d.ts +0 -4
- package/vendor/websocket-bridge/dist/bridge-guards.js +0 -17
- package/vendor/websocket-bridge/dist/bridge-subjects.d.ts +0 -10
- package/vendor/websocket-bridge/dist/bridge-subjects.js +0 -38
- package/vendor/websocket-bridge/dist/bridge-types.d.ts +0 -102
- package/vendor/websocket-bridge/dist/bridge-types.js +0 -2
- package/vendor/websocket-bridge/dist/create-client.d.ts +0 -5
- package/vendor/websocket-bridge/dist/create-client.js +0 -152
- package/vendor/websocket-bridge/dist/create-server.d.ts +0 -8
- package/vendor/websocket-bridge/dist/create-server.js +0 -134
- package/vendor/websocket-bridge/dist/testing/expect-type.d.ts +0 -3
- package/vendor/websocket-bridge/dist/testing/expect-type.js +0 -3
- package/vendor/websocket-bridge/dist/testing/sample-diagram-ws-config.d.ts +0 -27
- package/vendor/websocket-bridge/dist/testing/sample-diagram-ws-config.js +0 -12
- package/vendor/websocket-bridge/dist/testing/sample-ping-ws-config.d.ts +0 -17
- package/vendor/websocket-bridge/dist/testing/sample-ping-ws-config.js +0 -10
- package/vendor/websocket-bridge/dist/testing/transport-test-helpers.d.ts +0 -6
- package/vendor/websocket-bridge/dist/testing/transport-test-helpers.js +0 -34
- package/vendor/websocket-bridge/package.json +0 -34
|
@@ -0,0 +1,2041 @@
|
|
|
1
|
+
import { createRequire as __lfCreateRequire } from 'node:module';
|
|
2
|
+
const require = __lfCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
// node_modules/web-streams-polyfill/dist/ponyfill.mjs
|
|
6
|
+
var e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? Symbol : (e2) => `Symbol(${e2})`;
|
|
7
|
+
function t() {
|
|
8
|
+
}
|
|
9
|
+
function r(e2) {
|
|
10
|
+
return "object" == typeof e2 && null !== e2 || "function" == typeof e2;
|
|
11
|
+
}
|
|
12
|
+
var o = t;
|
|
13
|
+
function n(e2, t2) {
|
|
14
|
+
try {
|
|
15
|
+
Object.defineProperty(e2, "name", { value: t2, configurable: true });
|
|
16
|
+
} catch (e3) {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
var a = Promise;
|
|
20
|
+
var i = Promise.prototype.then;
|
|
21
|
+
var l = Promise.resolve.bind(a);
|
|
22
|
+
var s = Promise.reject.bind(a);
|
|
23
|
+
function u(e2) {
|
|
24
|
+
return new a(e2);
|
|
25
|
+
}
|
|
26
|
+
function c(e2) {
|
|
27
|
+
return l(e2);
|
|
28
|
+
}
|
|
29
|
+
function d(e2) {
|
|
30
|
+
return s(e2);
|
|
31
|
+
}
|
|
32
|
+
function f(e2, t2, r2) {
|
|
33
|
+
return i.call(e2, t2, r2);
|
|
34
|
+
}
|
|
35
|
+
function b(e2, t2, r2) {
|
|
36
|
+
f(f(e2, t2, r2), void 0, o);
|
|
37
|
+
}
|
|
38
|
+
function h(e2, t2) {
|
|
39
|
+
b(e2, t2);
|
|
40
|
+
}
|
|
41
|
+
function _(e2, t2) {
|
|
42
|
+
b(e2, void 0, t2);
|
|
43
|
+
}
|
|
44
|
+
function p(e2, t2, r2) {
|
|
45
|
+
return f(e2, t2, r2);
|
|
46
|
+
}
|
|
47
|
+
function m(e2) {
|
|
48
|
+
f(e2, void 0, o);
|
|
49
|
+
}
|
|
50
|
+
var y = (e2) => {
|
|
51
|
+
if ("function" == typeof queueMicrotask) y = queueMicrotask;
|
|
52
|
+
else {
|
|
53
|
+
const e3 = c(void 0);
|
|
54
|
+
y = (t2) => f(e3, t2);
|
|
55
|
+
}
|
|
56
|
+
return y(e2);
|
|
57
|
+
};
|
|
58
|
+
function g(e2, t2, r2) {
|
|
59
|
+
if ("function" != typeof e2) throw new TypeError("Argument is not a function");
|
|
60
|
+
return Function.prototype.apply.call(e2, t2, r2);
|
|
61
|
+
}
|
|
62
|
+
function w(e2, t2, r2) {
|
|
63
|
+
try {
|
|
64
|
+
return c(g(e2, t2, r2));
|
|
65
|
+
} catch (e3) {
|
|
66
|
+
return d(e3);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
var S = class {
|
|
70
|
+
constructor() {
|
|
71
|
+
this._cursor = 0, this._size = 0, this._front = { _elements: [], _next: void 0 }, this._back = this._front, this._cursor = 0, this._size = 0;
|
|
72
|
+
}
|
|
73
|
+
get length() {
|
|
74
|
+
return this._size;
|
|
75
|
+
}
|
|
76
|
+
push(e2) {
|
|
77
|
+
const t2 = this._back;
|
|
78
|
+
let r2 = t2;
|
|
79
|
+
16383 === t2._elements.length && (r2 = { _elements: [], _next: void 0 }), t2._elements.push(e2), r2 !== t2 && (this._back = r2, t2._next = r2), ++this._size;
|
|
80
|
+
}
|
|
81
|
+
shift() {
|
|
82
|
+
const e2 = this._front;
|
|
83
|
+
let t2 = e2;
|
|
84
|
+
const r2 = this._cursor;
|
|
85
|
+
let o2 = r2 + 1;
|
|
86
|
+
const n2 = e2._elements, a2 = n2[r2];
|
|
87
|
+
return 16384 === o2 && (t2 = e2._next, o2 = 0), --this._size, this._cursor = o2, e2 !== t2 && (this._front = t2), n2[r2] = void 0, a2;
|
|
88
|
+
}
|
|
89
|
+
forEach(e2) {
|
|
90
|
+
let t2 = this._cursor, r2 = this._front, o2 = r2._elements;
|
|
91
|
+
for (; !(t2 === o2.length && void 0 === r2._next || t2 === o2.length && (r2 = r2._next, o2 = r2._elements, t2 = 0, 0 === o2.length)); ) e2(o2[t2]), ++t2;
|
|
92
|
+
}
|
|
93
|
+
peek() {
|
|
94
|
+
const e2 = this._front, t2 = this._cursor;
|
|
95
|
+
return e2._elements[t2];
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var v = e("[[AbortSteps]]");
|
|
99
|
+
var R = e("[[ErrorSteps]]");
|
|
100
|
+
var T = e("[[CancelSteps]]");
|
|
101
|
+
var q = e("[[PullSteps]]");
|
|
102
|
+
var C = e("[[ReleaseSteps]]");
|
|
103
|
+
function E(e2, t2) {
|
|
104
|
+
e2._ownerReadableStream = t2, t2._reader = e2, "readable" === t2._state ? O(e2) : "closed" === t2._state ? (function(e3) {
|
|
105
|
+
O(e3), j(e3);
|
|
106
|
+
})(e2) : B(e2, t2._storedError);
|
|
107
|
+
}
|
|
108
|
+
function P(e2, t2) {
|
|
109
|
+
return Gt(e2._ownerReadableStream, t2);
|
|
110
|
+
}
|
|
111
|
+
function W(e2) {
|
|
112
|
+
const t2 = e2._ownerReadableStream;
|
|
113
|
+
"readable" === t2._state ? A(e2, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : (function(e3, t3) {
|
|
114
|
+
B(e3, t3);
|
|
115
|
+
})(e2, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), t2._readableStreamController[C](), t2._reader = void 0, e2._ownerReadableStream = void 0;
|
|
116
|
+
}
|
|
117
|
+
function k(e2) {
|
|
118
|
+
return new TypeError("Cannot " + e2 + " a stream using a released reader");
|
|
119
|
+
}
|
|
120
|
+
function O(e2) {
|
|
121
|
+
e2._closedPromise = u(((t2, r2) => {
|
|
122
|
+
e2._closedPromise_resolve = t2, e2._closedPromise_reject = r2;
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
function B(e2, t2) {
|
|
126
|
+
O(e2), A(e2, t2);
|
|
127
|
+
}
|
|
128
|
+
function A(e2, t2) {
|
|
129
|
+
void 0 !== e2._closedPromise_reject && (m(e2._closedPromise), e2._closedPromise_reject(t2), e2._closedPromise_resolve = void 0, e2._closedPromise_reject = void 0);
|
|
130
|
+
}
|
|
131
|
+
function j(e2) {
|
|
132
|
+
void 0 !== e2._closedPromise_resolve && (e2._closedPromise_resolve(void 0), e2._closedPromise_resolve = void 0, e2._closedPromise_reject = void 0);
|
|
133
|
+
}
|
|
134
|
+
var z = Number.isFinite || function(e2) {
|
|
135
|
+
return "number" == typeof e2 && isFinite(e2);
|
|
136
|
+
};
|
|
137
|
+
var L = Math.trunc || function(e2) {
|
|
138
|
+
return e2 < 0 ? Math.ceil(e2) : Math.floor(e2);
|
|
139
|
+
};
|
|
140
|
+
function F(e2, t2) {
|
|
141
|
+
if (void 0 !== e2 && ("object" != typeof (r2 = e2) && "function" != typeof r2)) throw new TypeError(`${t2} is not an object.`);
|
|
142
|
+
var r2;
|
|
143
|
+
}
|
|
144
|
+
function I(e2, t2) {
|
|
145
|
+
if ("function" != typeof e2) throw new TypeError(`${t2} is not a function.`);
|
|
146
|
+
}
|
|
147
|
+
function D(e2, t2) {
|
|
148
|
+
if (!/* @__PURE__ */ (function(e3) {
|
|
149
|
+
return "object" == typeof e3 && null !== e3 || "function" == typeof e3;
|
|
150
|
+
})(e2)) throw new TypeError(`${t2} is not an object.`);
|
|
151
|
+
}
|
|
152
|
+
function $(e2, t2, r2) {
|
|
153
|
+
if (void 0 === e2) throw new TypeError(`Parameter ${t2} is required in '${r2}'.`);
|
|
154
|
+
}
|
|
155
|
+
function M(e2, t2, r2) {
|
|
156
|
+
if (void 0 === e2) throw new TypeError(`${t2} is required in '${r2}'.`);
|
|
157
|
+
}
|
|
158
|
+
function Y(e2) {
|
|
159
|
+
return Number(e2);
|
|
160
|
+
}
|
|
161
|
+
function Q(e2) {
|
|
162
|
+
return 0 === e2 ? 0 : e2;
|
|
163
|
+
}
|
|
164
|
+
function N(e2, t2) {
|
|
165
|
+
const r2 = Number.MAX_SAFE_INTEGER;
|
|
166
|
+
let o2 = Number(e2);
|
|
167
|
+
if (o2 = Q(o2), !z(o2)) throw new TypeError(`${t2} is not a finite number`);
|
|
168
|
+
if (o2 = (function(e3) {
|
|
169
|
+
return Q(L(e3));
|
|
170
|
+
})(o2), o2 < 0 || o2 > r2) throw new TypeError(`${t2} is outside the accepted range of 0 to ${r2}, inclusive`);
|
|
171
|
+
return z(o2) && 0 !== o2 ? o2 : 0;
|
|
172
|
+
}
|
|
173
|
+
function H(e2) {
|
|
174
|
+
if (!r(e2)) return false;
|
|
175
|
+
if ("function" != typeof e2.getReader) return false;
|
|
176
|
+
try {
|
|
177
|
+
return "boolean" == typeof e2.locked;
|
|
178
|
+
} catch (e3) {
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
function x(e2) {
|
|
183
|
+
if (!r(e2)) return false;
|
|
184
|
+
if ("function" != typeof e2.getWriter) return false;
|
|
185
|
+
try {
|
|
186
|
+
return "boolean" == typeof e2.locked;
|
|
187
|
+
} catch (e3) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function V(e2, t2) {
|
|
192
|
+
if (!Vt(e2)) throw new TypeError(`${t2} is not a ReadableStream.`);
|
|
193
|
+
}
|
|
194
|
+
function U(e2, t2) {
|
|
195
|
+
e2._reader._readRequests.push(t2);
|
|
196
|
+
}
|
|
197
|
+
function G(e2, t2, r2) {
|
|
198
|
+
const o2 = e2._reader._readRequests.shift();
|
|
199
|
+
r2 ? o2._closeSteps() : o2._chunkSteps(t2);
|
|
200
|
+
}
|
|
201
|
+
function X(e2) {
|
|
202
|
+
return e2._reader._readRequests.length;
|
|
203
|
+
}
|
|
204
|
+
function J(e2) {
|
|
205
|
+
const t2 = e2._reader;
|
|
206
|
+
return void 0 !== t2 && !!K(t2);
|
|
207
|
+
}
|
|
208
|
+
var ReadableStreamDefaultReader = class {
|
|
209
|
+
constructor(e2) {
|
|
210
|
+
if ($(e2, 1, "ReadableStreamDefaultReader"), V(e2, "First parameter"), Ut(e2)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
211
|
+
E(this, e2), this._readRequests = new S();
|
|
212
|
+
}
|
|
213
|
+
get closed() {
|
|
214
|
+
return K(this) ? this._closedPromise : d(ee("closed"));
|
|
215
|
+
}
|
|
216
|
+
cancel(e2) {
|
|
217
|
+
return K(this) ? void 0 === this._ownerReadableStream ? d(k("cancel")) : P(this, e2) : d(ee("cancel"));
|
|
218
|
+
}
|
|
219
|
+
read() {
|
|
220
|
+
if (!K(this)) return d(ee("read"));
|
|
221
|
+
if (void 0 === this._ownerReadableStream) return d(k("read from"));
|
|
222
|
+
let e2, t2;
|
|
223
|
+
const r2 = u(((r3, o2) => {
|
|
224
|
+
e2 = r3, t2 = o2;
|
|
225
|
+
}));
|
|
226
|
+
return (function(e3, t3) {
|
|
227
|
+
const r3 = e3._ownerReadableStream;
|
|
228
|
+
r3._disturbed = true, "closed" === r3._state ? t3._closeSteps() : "errored" === r3._state ? t3._errorSteps(r3._storedError) : r3._readableStreamController[q](t3);
|
|
229
|
+
})(this, { _chunkSteps: (t3) => e2({ value: t3, done: false }), _closeSteps: () => e2({ value: void 0, done: true }), _errorSteps: (e3) => t2(e3) }), r2;
|
|
230
|
+
}
|
|
231
|
+
releaseLock() {
|
|
232
|
+
if (!K(this)) throw ee("releaseLock");
|
|
233
|
+
void 0 !== this._ownerReadableStream && (function(e2) {
|
|
234
|
+
W(e2);
|
|
235
|
+
const t2 = new TypeError("Reader was released");
|
|
236
|
+
Z(e2, t2);
|
|
237
|
+
})(this);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
function K(e2) {
|
|
241
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_readRequests") && e2 instanceof ReadableStreamDefaultReader);
|
|
242
|
+
}
|
|
243
|
+
function Z(e2, t2) {
|
|
244
|
+
const r2 = e2._readRequests;
|
|
245
|
+
e2._readRequests = new S(), r2.forEach(((e3) => {
|
|
246
|
+
e3._errorSteps(t2);
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
function ee(e2) {
|
|
250
|
+
return new TypeError(`ReadableStreamDefaultReader.prototype.${e2} can only be used on a ReadableStreamDefaultReader`);
|
|
251
|
+
}
|
|
252
|
+
Object.defineProperties(ReadableStreamDefaultReader.prototype, { cancel: { enumerable: true }, read: { enumerable: true }, releaseLock: { enumerable: true }, closed: { enumerable: true } }), n(ReadableStreamDefaultReader.prototype.cancel, "cancel"), n(ReadableStreamDefaultReader.prototype.read, "read"), n(ReadableStreamDefaultReader.prototype.releaseLock, "releaseLock"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableStreamDefaultReader.prototype, e.toStringTag, { value: "ReadableStreamDefaultReader", configurable: true });
|
|
253
|
+
var te = class {
|
|
254
|
+
constructor(e2, t2) {
|
|
255
|
+
this._ongoingPromise = void 0, this._isFinished = false, this._reader = e2, this._preventCancel = t2;
|
|
256
|
+
}
|
|
257
|
+
next() {
|
|
258
|
+
const e2 = () => this._nextSteps();
|
|
259
|
+
return this._ongoingPromise = this._ongoingPromise ? p(this._ongoingPromise, e2, e2) : e2(), this._ongoingPromise;
|
|
260
|
+
}
|
|
261
|
+
return(e2) {
|
|
262
|
+
const t2 = () => this._returnSteps(e2);
|
|
263
|
+
return this._ongoingPromise ? p(this._ongoingPromise, t2, t2) : t2();
|
|
264
|
+
}
|
|
265
|
+
_nextSteps() {
|
|
266
|
+
if (this._isFinished) return Promise.resolve({ value: void 0, done: true });
|
|
267
|
+
const e2 = this._reader;
|
|
268
|
+
return void 0 === e2 ? d(k("iterate")) : f(e2.read(), ((e3) => {
|
|
269
|
+
var t2;
|
|
270
|
+
return this._ongoingPromise = void 0, e3.done && (this._isFinished = true, null === (t2 = this._reader) || void 0 === t2 || t2.releaseLock(), this._reader = void 0), e3;
|
|
271
|
+
}), ((e3) => {
|
|
272
|
+
var t2;
|
|
273
|
+
throw this._ongoingPromise = void 0, this._isFinished = true, null === (t2 = this._reader) || void 0 === t2 || t2.releaseLock(), this._reader = void 0, e3;
|
|
274
|
+
}));
|
|
275
|
+
}
|
|
276
|
+
_returnSteps(e2) {
|
|
277
|
+
if (this._isFinished) return Promise.resolve({ value: e2, done: true });
|
|
278
|
+
this._isFinished = true;
|
|
279
|
+
const t2 = this._reader;
|
|
280
|
+
if (void 0 === t2) return d(k("finish iterating"));
|
|
281
|
+
if (this._reader = void 0, !this._preventCancel) {
|
|
282
|
+
const r2 = t2.cancel(e2);
|
|
283
|
+
return t2.releaseLock(), p(r2, (() => ({ value: e2, done: true })));
|
|
284
|
+
}
|
|
285
|
+
return t2.releaseLock(), c({ value: e2, done: true });
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
var re = { next() {
|
|
289
|
+
return oe(this) ? this._asyncIteratorImpl.next() : d(ne("next"));
|
|
290
|
+
}, return(e2) {
|
|
291
|
+
return oe(this) ? this._asyncIteratorImpl.return(e2) : d(ne("return"));
|
|
292
|
+
} };
|
|
293
|
+
function oe(e2) {
|
|
294
|
+
if (!r(e2)) return false;
|
|
295
|
+
if (!Object.prototype.hasOwnProperty.call(e2, "_asyncIteratorImpl")) return false;
|
|
296
|
+
try {
|
|
297
|
+
return e2._asyncIteratorImpl instanceof te;
|
|
298
|
+
} catch (e3) {
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
function ne(e2) {
|
|
303
|
+
return new TypeError(`ReadableStreamAsyncIterator.${e2} can only be used on a ReadableSteamAsyncIterator`);
|
|
304
|
+
}
|
|
305
|
+
"symbol" == typeof e.asyncIterator && Object.defineProperty(re, e.asyncIterator, { value() {
|
|
306
|
+
return this;
|
|
307
|
+
}, writable: true, configurable: true });
|
|
308
|
+
var ae = Number.isNaN || function(e2) {
|
|
309
|
+
return e2 != e2;
|
|
310
|
+
};
|
|
311
|
+
function ie(e2, t2, r2, o2, n2) {
|
|
312
|
+
new Uint8Array(e2).set(new Uint8Array(r2, o2, n2), t2);
|
|
313
|
+
}
|
|
314
|
+
function le(e2) {
|
|
315
|
+
const t2 = (function(e3, t3, r2) {
|
|
316
|
+
if (e3.slice) return e3.slice(t3, r2);
|
|
317
|
+
const o2 = r2 - t3, n2 = new ArrayBuffer(o2);
|
|
318
|
+
return ie(n2, 0, e3, t3, o2), n2;
|
|
319
|
+
})(e2.buffer, e2.byteOffset, e2.byteOffset + e2.byteLength);
|
|
320
|
+
return new Uint8Array(t2);
|
|
321
|
+
}
|
|
322
|
+
function se(e2) {
|
|
323
|
+
const t2 = e2._queue.shift();
|
|
324
|
+
return e2._queueTotalSize -= t2.size, e2._queueTotalSize < 0 && (e2._queueTotalSize = 0), t2.value;
|
|
325
|
+
}
|
|
326
|
+
function ue(e2, t2, r2) {
|
|
327
|
+
if ("number" != typeof (o2 = r2) || ae(o2) || o2 < 0 || r2 === 1 / 0) throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
|
|
328
|
+
var o2;
|
|
329
|
+
e2._queue.push({ value: t2, size: r2 }), e2._queueTotalSize += r2;
|
|
330
|
+
}
|
|
331
|
+
function ce(e2) {
|
|
332
|
+
e2._queue = new S(), e2._queueTotalSize = 0;
|
|
333
|
+
}
|
|
334
|
+
var ReadableStreamBYOBRequest = class {
|
|
335
|
+
constructor() {
|
|
336
|
+
throw new TypeError("Illegal constructor");
|
|
337
|
+
}
|
|
338
|
+
get view() {
|
|
339
|
+
if (!fe(this)) throw Be("view");
|
|
340
|
+
return this._view;
|
|
341
|
+
}
|
|
342
|
+
respond(e2) {
|
|
343
|
+
if (!fe(this)) throw Be("respond");
|
|
344
|
+
if ($(e2, 1, "respond"), e2 = N(e2, "First parameter"), void 0 === this._associatedReadableByteStreamController) throw new TypeError("This BYOB request has been invalidated");
|
|
345
|
+
this._view.buffer, (function(e3, t2) {
|
|
346
|
+
const r2 = e3._pendingPullIntos.peek();
|
|
347
|
+
if ("closed" === e3._controlledReadableByteStream._state) {
|
|
348
|
+
if (0 !== t2) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
|
|
349
|
+
} else {
|
|
350
|
+
if (0 === t2) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
|
|
351
|
+
if (r2.bytesFilled + t2 > r2.byteLength) throw new RangeError("bytesWritten out of range");
|
|
352
|
+
}
|
|
353
|
+
r2.buffer = r2.buffer, qe(e3, t2);
|
|
354
|
+
})(this._associatedReadableByteStreamController, e2);
|
|
355
|
+
}
|
|
356
|
+
respondWithNewView(e2) {
|
|
357
|
+
if (!fe(this)) throw Be("respondWithNewView");
|
|
358
|
+
if ($(e2, 1, "respondWithNewView"), !ArrayBuffer.isView(e2)) throw new TypeError("You can only respond with array buffer views");
|
|
359
|
+
if (void 0 === this._associatedReadableByteStreamController) throw new TypeError("This BYOB request has been invalidated");
|
|
360
|
+
e2.buffer, (function(e3, t2) {
|
|
361
|
+
const r2 = e3._pendingPullIntos.peek();
|
|
362
|
+
if ("closed" === e3._controlledReadableByteStream._state) {
|
|
363
|
+
if (0 !== t2.byteLength) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
|
|
364
|
+
} else if (0 === t2.byteLength) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
|
|
365
|
+
if (r2.byteOffset + r2.bytesFilled !== t2.byteOffset) throw new RangeError("The region specified by view does not match byobRequest");
|
|
366
|
+
if (r2.bufferByteLength !== t2.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
367
|
+
if (r2.bytesFilled + t2.byteLength > r2.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
|
|
368
|
+
const o2 = t2.byteLength;
|
|
369
|
+
r2.buffer = t2.buffer, qe(e3, o2);
|
|
370
|
+
})(this._associatedReadableByteStreamController, e2);
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
Object.defineProperties(ReadableStreamBYOBRequest.prototype, { respond: { enumerable: true }, respondWithNewView: { enumerable: true }, view: { enumerable: true } }), n(ReadableStreamBYOBRequest.prototype.respond, "respond"), n(ReadableStreamBYOBRequest.prototype.respondWithNewView, "respondWithNewView"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableStreamBYOBRequest.prototype, e.toStringTag, { value: "ReadableStreamBYOBRequest", configurable: true });
|
|
374
|
+
var ReadableByteStreamController = class {
|
|
375
|
+
constructor() {
|
|
376
|
+
throw new TypeError("Illegal constructor");
|
|
377
|
+
}
|
|
378
|
+
get byobRequest() {
|
|
379
|
+
if (!de(this)) throw Ae("byobRequest");
|
|
380
|
+
return (function(e2) {
|
|
381
|
+
if (null === e2._byobRequest && e2._pendingPullIntos.length > 0) {
|
|
382
|
+
const t2 = e2._pendingPullIntos.peek(), r2 = new Uint8Array(t2.buffer, t2.byteOffset + t2.bytesFilled, t2.byteLength - t2.bytesFilled), o2 = Object.create(ReadableStreamBYOBRequest.prototype);
|
|
383
|
+
!(function(e3, t3, r3) {
|
|
384
|
+
e3._associatedReadableByteStreamController = t3, e3._view = r3;
|
|
385
|
+
})(o2, e2, r2), e2._byobRequest = o2;
|
|
386
|
+
}
|
|
387
|
+
return e2._byobRequest;
|
|
388
|
+
})(this);
|
|
389
|
+
}
|
|
390
|
+
get desiredSize() {
|
|
391
|
+
if (!de(this)) throw Ae("desiredSize");
|
|
392
|
+
return ke(this);
|
|
393
|
+
}
|
|
394
|
+
close() {
|
|
395
|
+
if (!de(this)) throw Ae("close");
|
|
396
|
+
if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!");
|
|
397
|
+
const e2 = this._controlledReadableByteStream._state;
|
|
398
|
+
if ("readable" !== e2) throw new TypeError(`The stream (in ${e2} state) is not in the readable state and cannot be closed`);
|
|
399
|
+
!(function(e3) {
|
|
400
|
+
const t2 = e3._controlledReadableByteStream;
|
|
401
|
+
if (e3._closeRequested || "readable" !== t2._state) return;
|
|
402
|
+
if (e3._queueTotalSize > 0) return void (e3._closeRequested = true);
|
|
403
|
+
if (e3._pendingPullIntos.length > 0) {
|
|
404
|
+
if (e3._pendingPullIntos.peek().bytesFilled > 0) {
|
|
405
|
+
const t3 = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
406
|
+
throw Pe(e3, t3), t3;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
Ee(e3), Xt(t2);
|
|
410
|
+
})(this);
|
|
411
|
+
}
|
|
412
|
+
enqueue(e2) {
|
|
413
|
+
if (!de(this)) throw Ae("enqueue");
|
|
414
|
+
if ($(e2, 1, "enqueue"), !ArrayBuffer.isView(e2)) throw new TypeError("chunk must be an array buffer view");
|
|
415
|
+
if (0 === e2.byteLength) throw new TypeError("chunk must have non-zero byteLength");
|
|
416
|
+
if (0 === e2.buffer.byteLength) throw new TypeError("chunk's buffer must have non-zero byteLength");
|
|
417
|
+
if (this._closeRequested) throw new TypeError("stream is closed or draining");
|
|
418
|
+
const t2 = this._controlledReadableByteStream._state;
|
|
419
|
+
if ("readable" !== t2) throw new TypeError(`The stream (in ${t2} state) is not in the readable state and cannot be enqueued to`);
|
|
420
|
+
!(function(e3, t3) {
|
|
421
|
+
const r2 = e3._controlledReadableByteStream;
|
|
422
|
+
if (e3._closeRequested || "readable" !== r2._state) return;
|
|
423
|
+
const o2 = t3.buffer, n2 = t3.byteOffset, a2 = t3.byteLength, i2 = o2;
|
|
424
|
+
if (e3._pendingPullIntos.length > 0) {
|
|
425
|
+
const t4 = e3._pendingPullIntos.peek();
|
|
426
|
+
t4.buffer, 0, Re(e3), t4.buffer = t4.buffer, "none" === t4.readerType && ge(e3, t4);
|
|
427
|
+
}
|
|
428
|
+
if (J(r2)) if ((function(e4) {
|
|
429
|
+
const t4 = e4._controlledReadableByteStream._reader;
|
|
430
|
+
for (; t4._readRequests.length > 0; ) {
|
|
431
|
+
if (0 === e4._queueTotalSize) return;
|
|
432
|
+
We(e4, t4._readRequests.shift());
|
|
433
|
+
}
|
|
434
|
+
})(e3), 0 === X(r2)) me(e3, i2, n2, a2);
|
|
435
|
+
else {
|
|
436
|
+
e3._pendingPullIntos.length > 0 && Ce(e3);
|
|
437
|
+
G(r2, new Uint8Array(i2, n2, a2), false);
|
|
438
|
+
}
|
|
439
|
+
else Le(r2) ? (me(e3, i2, n2, a2), Te(e3)) : me(e3, i2, n2, a2);
|
|
440
|
+
be(e3);
|
|
441
|
+
})(this, e2);
|
|
442
|
+
}
|
|
443
|
+
error(e2) {
|
|
444
|
+
if (!de(this)) throw Ae("error");
|
|
445
|
+
Pe(this, e2);
|
|
446
|
+
}
|
|
447
|
+
[T](e2) {
|
|
448
|
+
he(this), ce(this);
|
|
449
|
+
const t2 = this._cancelAlgorithm(e2);
|
|
450
|
+
return Ee(this), t2;
|
|
451
|
+
}
|
|
452
|
+
[q](e2) {
|
|
453
|
+
const t2 = this._controlledReadableByteStream;
|
|
454
|
+
if (this._queueTotalSize > 0) return void We(this, e2);
|
|
455
|
+
const r2 = this._autoAllocateChunkSize;
|
|
456
|
+
if (void 0 !== r2) {
|
|
457
|
+
let t3;
|
|
458
|
+
try {
|
|
459
|
+
t3 = new ArrayBuffer(r2);
|
|
460
|
+
} catch (t4) {
|
|
461
|
+
return void e2._errorSteps(t4);
|
|
462
|
+
}
|
|
463
|
+
const o2 = { buffer: t3, bufferByteLength: r2, byteOffset: 0, byteLength: r2, bytesFilled: 0, elementSize: 1, viewConstructor: Uint8Array, readerType: "default" };
|
|
464
|
+
this._pendingPullIntos.push(o2);
|
|
465
|
+
}
|
|
466
|
+
U(t2, e2), be(this);
|
|
467
|
+
}
|
|
468
|
+
[C]() {
|
|
469
|
+
if (this._pendingPullIntos.length > 0) {
|
|
470
|
+
const e2 = this._pendingPullIntos.peek();
|
|
471
|
+
e2.readerType = "none", this._pendingPullIntos = new S(), this._pendingPullIntos.push(e2);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
function de(e2) {
|
|
476
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_controlledReadableByteStream") && e2 instanceof ReadableByteStreamController);
|
|
477
|
+
}
|
|
478
|
+
function fe(e2) {
|
|
479
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_associatedReadableByteStreamController") && e2 instanceof ReadableStreamBYOBRequest);
|
|
480
|
+
}
|
|
481
|
+
function be(e2) {
|
|
482
|
+
const t2 = (function(e3) {
|
|
483
|
+
const t3 = e3._controlledReadableByteStream;
|
|
484
|
+
if ("readable" !== t3._state) return false;
|
|
485
|
+
if (e3._closeRequested) return false;
|
|
486
|
+
if (!e3._started) return false;
|
|
487
|
+
if (J(t3) && X(t3) > 0) return true;
|
|
488
|
+
if (Le(t3) && ze(t3) > 0) return true;
|
|
489
|
+
if (ke(e3) > 0) return true;
|
|
490
|
+
return false;
|
|
491
|
+
})(e2);
|
|
492
|
+
if (!t2) return;
|
|
493
|
+
if (e2._pulling) return void (e2._pullAgain = true);
|
|
494
|
+
e2._pulling = true;
|
|
495
|
+
b(e2._pullAlgorithm(), (() => (e2._pulling = false, e2._pullAgain && (e2._pullAgain = false, be(e2)), null)), ((t3) => (Pe(e2, t3), null)));
|
|
496
|
+
}
|
|
497
|
+
function he(e2) {
|
|
498
|
+
Re(e2), e2._pendingPullIntos = new S();
|
|
499
|
+
}
|
|
500
|
+
function _e(e2, t2) {
|
|
501
|
+
let r2 = false;
|
|
502
|
+
"closed" === e2._state && (r2 = true);
|
|
503
|
+
const o2 = pe(t2);
|
|
504
|
+
"default" === t2.readerType ? G(e2, o2, r2) : (function(e3, t3, r3) {
|
|
505
|
+
const o3 = e3._reader._readIntoRequests.shift();
|
|
506
|
+
r3 ? o3._closeSteps(t3) : o3._chunkSteps(t3);
|
|
507
|
+
})(e2, o2, r2);
|
|
508
|
+
}
|
|
509
|
+
function pe(e2) {
|
|
510
|
+
const t2 = e2.bytesFilled, r2 = e2.elementSize;
|
|
511
|
+
return new e2.viewConstructor(e2.buffer, e2.byteOffset, t2 / r2);
|
|
512
|
+
}
|
|
513
|
+
function me(e2, t2, r2, o2) {
|
|
514
|
+
e2._queue.push({ buffer: t2, byteOffset: r2, byteLength: o2 }), e2._queueTotalSize += o2;
|
|
515
|
+
}
|
|
516
|
+
function ye(e2, t2, r2, o2) {
|
|
517
|
+
let n2;
|
|
518
|
+
try {
|
|
519
|
+
n2 = t2.slice(r2, r2 + o2);
|
|
520
|
+
} catch (t3) {
|
|
521
|
+
throw Pe(e2, t3), t3;
|
|
522
|
+
}
|
|
523
|
+
me(e2, n2, 0, o2);
|
|
524
|
+
}
|
|
525
|
+
function ge(e2, t2) {
|
|
526
|
+
t2.bytesFilled > 0 && ye(e2, t2.buffer, t2.byteOffset, t2.bytesFilled), Ce(e2);
|
|
527
|
+
}
|
|
528
|
+
function we(e2, t2) {
|
|
529
|
+
const r2 = t2.elementSize, o2 = t2.bytesFilled - t2.bytesFilled % r2, n2 = Math.min(e2._queueTotalSize, t2.byteLength - t2.bytesFilled), a2 = t2.bytesFilled + n2, i2 = a2 - a2 % r2;
|
|
530
|
+
let l2 = n2, s2 = false;
|
|
531
|
+
i2 > o2 && (l2 = i2 - t2.bytesFilled, s2 = true);
|
|
532
|
+
const u2 = e2._queue;
|
|
533
|
+
for (; l2 > 0; ) {
|
|
534
|
+
const r3 = u2.peek(), o3 = Math.min(l2, r3.byteLength), n3 = t2.byteOffset + t2.bytesFilled;
|
|
535
|
+
ie(t2.buffer, n3, r3.buffer, r3.byteOffset, o3), r3.byteLength === o3 ? u2.shift() : (r3.byteOffset += o3, r3.byteLength -= o3), e2._queueTotalSize -= o3, Se(e2, o3, t2), l2 -= o3;
|
|
536
|
+
}
|
|
537
|
+
return s2;
|
|
538
|
+
}
|
|
539
|
+
function Se(e2, t2, r2) {
|
|
540
|
+
r2.bytesFilled += t2;
|
|
541
|
+
}
|
|
542
|
+
function ve(e2) {
|
|
543
|
+
0 === e2._queueTotalSize && e2._closeRequested ? (Ee(e2), Xt(e2._controlledReadableByteStream)) : be(e2);
|
|
544
|
+
}
|
|
545
|
+
function Re(e2) {
|
|
546
|
+
null !== e2._byobRequest && (e2._byobRequest._associatedReadableByteStreamController = void 0, e2._byobRequest._view = null, e2._byobRequest = null);
|
|
547
|
+
}
|
|
548
|
+
function Te(e2) {
|
|
549
|
+
for (; e2._pendingPullIntos.length > 0; ) {
|
|
550
|
+
if (0 === e2._queueTotalSize) return;
|
|
551
|
+
const t2 = e2._pendingPullIntos.peek();
|
|
552
|
+
we(e2, t2) && (Ce(e2), _e(e2._controlledReadableByteStream, t2));
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
function qe(e2, t2) {
|
|
556
|
+
const r2 = e2._pendingPullIntos.peek();
|
|
557
|
+
Re(e2);
|
|
558
|
+
"closed" === e2._controlledReadableByteStream._state ? (function(e3, t3) {
|
|
559
|
+
"none" === t3.readerType && Ce(e3);
|
|
560
|
+
const r3 = e3._controlledReadableByteStream;
|
|
561
|
+
if (Le(r3)) for (; ze(r3) > 0; ) _e(r3, Ce(e3));
|
|
562
|
+
})(e2, r2) : (function(e3, t3, r3) {
|
|
563
|
+
if (Se(0, t3, r3), "none" === r3.readerType) return ge(e3, r3), void Te(e3);
|
|
564
|
+
if (r3.bytesFilled < r3.elementSize) return;
|
|
565
|
+
Ce(e3);
|
|
566
|
+
const o2 = r3.bytesFilled % r3.elementSize;
|
|
567
|
+
if (o2 > 0) {
|
|
568
|
+
const t4 = r3.byteOffset + r3.bytesFilled;
|
|
569
|
+
ye(e3, r3.buffer, t4 - o2, o2);
|
|
570
|
+
}
|
|
571
|
+
r3.bytesFilled -= o2, _e(e3._controlledReadableByteStream, r3), Te(e3);
|
|
572
|
+
})(e2, t2, r2), be(e2);
|
|
573
|
+
}
|
|
574
|
+
function Ce(e2) {
|
|
575
|
+
return e2._pendingPullIntos.shift();
|
|
576
|
+
}
|
|
577
|
+
function Ee(e2) {
|
|
578
|
+
e2._pullAlgorithm = void 0, e2._cancelAlgorithm = void 0;
|
|
579
|
+
}
|
|
580
|
+
function Pe(e2, t2) {
|
|
581
|
+
const r2 = e2._controlledReadableByteStream;
|
|
582
|
+
"readable" === r2._state && (he(e2), ce(e2), Ee(e2), Jt(r2, t2));
|
|
583
|
+
}
|
|
584
|
+
function We(e2, t2) {
|
|
585
|
+
const r2 = e2._queue.shift();
|
|
586
|
+
e2._queueTotalSize -= r2.byteLength, ve(e2);
|
|
587
|
+
const o2 = new Uint8Array(r2.buffer, r2.byteOffset, r2.byteLength);
|
|
588
|
+
t2._chunkSteps(o2);
|
|
589
|
+
}
|
|
590
|
+
function ke(e2) {
|
|
591
|
+
const t2 = e2._controlledReadableByteStream._state;
|
|
592
|
+
return "errored" === t2 ? null : "closed" === t2 ? 0 : e2._strategyHWM - e2._queueTotalSize;
|
|
593
|
+
}
|
|
594
|
+
function Oe(e2, t2, r2) {
|
|
595
|
+
const o2 = Object.create(ReadableByteStreamController.prototype);
|
|
596
|
+
let n2, a2, i2;
|
|
597
|
+
n2 = void 0 !== t2.start ? () => t2.start(o2) : () => {
|
|
598
|
+
}, a2 = void 0 !== t2.pull ? () => t2.pull(o2) : () => c(void 0), i2 = void 0 !== t2.cancel ? (e3) => t2.cancel(e3) : () => c(void 0);
|
|
599
|
+
const l2 = t2.autoAllocateChunkSize;
|
|
600
|
+
if (0 === l2) throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
601
|
+
!(function(e3, t3, r3, o3, n3, a3, i3) {
|
|
602
|
+
t3._controlledReadableByteStream = e3, t3._pullAgain = false, t3._pulling = false, t3._byobRequest = null, t3._queue = t3._queueTotalSize = void 0, ce(t3), t3._closeRequested = false, t3._started = false, t3._strategyHWM = a3, t3._pullAlgorithm = o3, t3._cancelAlgorithm = n3, t3._autoAllocateChunkSize = i3, t3._pendingPullIntos = new S(), e3._readableStreamController = t3, b(c(r3()), (() => (t3._started = true, be(t3), null)), ((e4) => (Pe(t3, e4), null)));
|
|
603
|
+
})(e2, o2, n2, a2, i2, r2, l2);
|
|
604
|
+
}
|
|
605
|
+
function Be(e2) {
|
|
606
|
+
return new TypeError(`ReadableStreamBYOBRequest.prototype.${e2} can only be used on a ReadableStreamBYOBRequest`);
|
|
607
|
+
}
|
|
608
|
+
function Ae(e2) {
|
|
609
|
+
return new TypeError(`ReadableByteStreamController.prototype.${e2} can only be used on a ReadableByteStreamController`);
|
|
610
|
+
}
|
|
611
|
+
function je(e2, t2) {
|
|
612
|
+
e2._reader._readIntoRequests.push(t2);
|
|
613
|
+
}
|
|
614
|
+
function ze(e2) {
|
|
615
|
+
return e2._reader._readIntoRequests.length;
|
|
616
|
+
}
|
|
617
|
+
function Le(e2) {
|
|
618
|
+
const t2 = e2._reader;
|
|
619
|
+
return void 0 !== t2 && !!Fe(t2);
|
|
620
|
+
}
|
|
621
|
+
Object.defineProperties(ReadableByteStreamController.prototype, { close: { enumerable: true }, enqueue: { enumerable: true }, error: { enumerable: true }, byobRequest: { enumerable: true }, desiredSize: { enumerable: true } }), n(ReadableByteStreamController.prototype.close, "close"), n(ReadableByteStreamController.prototype.enqueue, "enqueue"), n(ReadableByteStreamController.prototype.error, "error"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableByteStreamController.prototype, e.toStringTag, { value: "ReadableByteStreamController", configurable: true });
|
|
622
|
+
var ReadableStreamBYOBReader = class {
|
|
623
|
+
constructor(e2) {
|
|
624
|
+
if ($(e2, 1, "ReadableStreamBYOBReader"), V(e2, "First parameter"), Ut(e2)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
625
|
+
if (!de(e2._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
|
|
626
|
+
E(this, e2), this._readIntoRequests = new S();
|
|
627
|
+
}
|
|
628
|
+
get closed() {
|
|
629
|
+
return Fe(this) ? this._closedPromise : d(De("closed"));
|
|
630
|
+
}
|
|
631
|
+
cancel(e2) {
|
|
632
|
+
return Fe(this) ? void 0 === this._ownerReadableStream ? d(k("cancel")) : P(this, e2) : d(De("cancel"));
|
|
633
|
+
}
|
|
634
|
+
read(e2) {
|
|
635
|
+
if (!Fe(this)) return d(De("read"));
|
|
636
|
+
if (!ArrayBuffer.isView(e2)) return d(new TypeError("view must be an array buffer view"));
|
|
637
|
+
if (0 === e2.byteLength) return d(new TypeError("view must have non-zero byteLength"));
|
|
638
|
+
if (0 === e2.buffer.byteLength) return d(new TypeError("view's buffer must have non-zero byteLength"));
|
|
639
|
+
if (e2.buffer, void 0 === this._ownerReadableStream) return d(k("read from"));
|
|
640
|
+
let t2, r2;
|
|
641
|
+
const o2 = u(((e3, o3) => {
|
|
642
|
+
t2 = e3, r2 = o3;
|
|
643
|
+
}));
|
|
644
|
+
return (function(e3, t3, r3) {
|
|
645
|
+
const o3 = e3._ownerReadableStream;
|
|
646
|
+
o3._disturbed = true, "errored" === o3._state ? r3._errorSteps(o3._storedError) : (function(e4, t4, r4) {
|
|
647
|
+
const o4 = e4._controlledReadableByteStream;
|
|
648
|
+
let n2 = 1;
|
|
649
|
+
t4.constructor !== DataView && (n2 = t4.constructor.BYTES_PER_ELEMENT);
|
|
650
|
+
const a2 = t4.constructor, i2 = t4.buffer, l2 = { buffer: i2, bufferByteLength: i2.byteLength, byteOffset: t4.byteOffset, byteLength: t4.byteLength, bytesFilled: 0, elementSize: n2, viewConstructor: a2, readerType: "byob" };
|
|
651
|
+
if (e4._pendingPullIntos.length > 0) return e4._pendingPullIntos.push(l2), void je(o4, r4);
|
|
652
|
+
if ("closed" !== o4._state) {
|
|
653
|
+
if (e4._queueTotalSize > 0) {
|
|
654
|
+
if (we(e4, l2)) {
|
|
655
|
+
const t5 = pe(l2);
|
|
656
|
+
return ve(e4), void r4._chunkSteps(t5);
|
|
657
|
+
}
|
|
658
|
+
if (e4._closeRequested) {
|
|
659
|
+
const t5 = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
660
|
+
return Pe(e4, t5), void r4._errorSteps(t5);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
e4._pendingPullIntos.push(l2), je(o4, r4), be(e4);
|
|
664
|
+
} else {
|
|
665
|
+
const e5 = new a2(l2.buffer, l2.byteOffset, 0);
|
|
666
|
+
r4._closeSteps(e5);
|
|
667
|
+
}
|
|
668
|
+
})(o3._readableStreamController, t3, r3);
|
|
669
|
+
})(this, e2, { _chunkSteps: (e3) => t2({ value: e3, done: false }), _closeSteps: (e3) => t2({ value: e3, done: true }), _errorSteps: (e3) => r2(e3) }), o2;
|
|
670
|
+
}
|
|
671
|
+
releaseLock() {
|
|
672
|
+
if (!Fe(this)) throw De("releaseLock");
|
|
673
|
+
void 0 !== this._ownerReadableStream && (function(e2) {
|
|
674
|
+
W(e2);
|
|
675
|
+
const t2 = new TypeError("Reader was released");
|
|
676
|
+
Ie(e2, t2);
|
|
677
|
+
})(this);
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
function Fe(e2) {
|
|
681
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_readIntoRequests") && e2 instanceof ReadableStreamBYOBReader);
|
|
682
|
+
}
|
|
683
|
+
function Ie(e2, t2) {
|
|
684
|
+
const r2 = e2._readIntoRequests;
|
|
685
|
+
e2._readIntoRequests = new S(), r2.forEach(((e3) => {
|
|
686
|
+
e3._errorSteps(t2);
|
|
687
|
+
}));
|
|
688
|
+
}
|
|
689
|
+
function De(e2) {
|
|
690
|
+
return new TypeError(`ReadableStreamBYOBReader.prototype.${e2} can only be used on a ReadableStreamBYOBReader`);
|
|
691
|
+
}
|
|
692
|
+
function $e(e2, t2) {
|
|
693
|
+
const { highWaterMark: r2 } = e2;
|
|
694
|
+
if (void 0 === r2) return t2;
|
|
695
|
+
if (ae(r2) || r2 < 0) throw new RangeError("Invalid highWaterMark");
|
|
696
|
+
return r2;
|
|
697
|
+
}
|
|
698
|
+
function Me(e2) {
|
|
699
|
+
const { size: t2 } = e2;
|
|
700
|
+
return t2 || (() => 1);
|
|
701
|
+
}
|
|
702
|
+
function Ye(e2, t2) {
|
|
703
|
+
F(e2, t2);
|
|
704
|
+
const r2 = null == e2 ? void 0 : e2.highWaterMark, o2 = null == e2 ? void 0 : e2.size;
|
|
705
|
+
return { highWaterMark: void 0 === r2 ? void 0 : Y(r2), size: void 0 === o2 ? void 0 : Qe(o2, `${t2} has member 'size' that`) };
|
|
706
|
+
}
|
|
707
|
+
function Qe(e2, t2) {
|
|
708
|
+
return I(e2, t2), (t3) => Y(e2(t3));
|
|
709
|
+
}
|
|
710
|
+
function Ne(e2, t2, r2) {
|
|
711
|
+
return I(e2, r2), (r3) => w(e2, t2, [r3]);
|
|
712
|
+
}
|
|
713
|
+
function He(e2, t2, r2) {
|
|
714
|
+
return I(e2, r2), () => w(e2, t2, []);
|
|
715
|
+
}
|
|
716
|
+
function xe(e2, t2, r2) {
|
|
717
|
+
return I(e2, r2), (r3) => g(e2, t2, [r3]);
|
|
718
|
+
}
|
|
719
|
+
function Ve(e2, t2, r2) {
|
|
720
|
+
return I(e2, r2), (r3, o2) => w(e2, t2, [r3, o2]);
|
|
721
|
+
}
|
|
722
|
+
Object.defineProperties(ReadableStreamBYOBReader.prototype, { cancel: { enumerable: true }, read: { enumerable: true }, releaseLock: { enumerable: true }, closed: { enumerable: true } }), n(ReadableStreamBYOBReader.prototype.cancel, "cancel"), n(ReadableStreamBYOBReader.prototype.read, "read"), n(ReadableStreamBYOBReader.prototype.releaseLock, "releaseLock"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableStreamBYOBReader.prototype, e.toStringTag, { value: "ReadableStreamBYOBReader", configurable: true });
|
|
723
|
+
var Ue = "function" == typeof AbortController;
|
|
724
|
+
var WritableStream = class {
|
|
725
|
+
constructor(e2 = {}, t2 = {}) {
|
|
726
|
+
void 0 === e2 ? e2 = null : D(e2, "First parameter");
|
|
727
|
+
const r2 = Ye(t2, "Second parameter"), o2 = (function(e3, t3) {
|
|
728
|
+
F(e3, t3);
|
|
729
|
+
const r3 = null == e3 ? void 0 : e3.abort, o3 = null == e3 ? void 0 : e3.close, n3 = null == e3 ? void 0 : e3.start, a3 = null == e3 ? void 0 : e3.type, i2 = null == e3 ? void 0 : e3.write;
|
|
730
|
+
return { abort: void 0 === r3 ? void 0 : Ne(r3, e3, `${t3} has member 'abort' that`), close: void 0 === o3 ? void 0 : He(o3, e3, `${t3} has member 'close' that`), start: void 0 === n3 ? void 0 : xe(n3, e3, `${t3} has member 'start' that`), write: void 0 === i2 ? void 0 : Ve(i2, e3, `${t3} has member 'write' that`), type: a3 };
|
|
731
|
+
})(e2, "First parameter");
|
|
732
|
+
var n2;
|
|
733
|
+
(n2 = this)._state = "writable", n2._storedError = void 0, n2._writer = void 0, n2._writableStreamController = void 0, n2._writeRequests = new S(), n2._inFlightWriteRequest = void 0, n2._closeRequest = void 0, n2._inFlightCloseRequest = void 0, n2._pendingAbortRequest = void 0, n2._backpressure = false;
|
|
734
|
+
if (void 0 !== o2.type) throw new RangeError("Invalid type is specified");
|
|
735
|
+
const a2 = Me(r2);
|
|
736
|
+
!(function(e3, t3, r3, o3) {
|
|
737
|
+
const n3 = Object.create(WritableStreamDefaultController.prototype);
|
|
738
|
+
let a3, i2, l2, s2;
|
|
739
|
+
a3 = void 0 !== t3.start ? () => t3.start(n3) : () => {
|
|
740
|
+
};
|
|
741
|
+
i2 = void 0 !== t3.write ? (e4) => t3.write(e4, n3) : () => c(void 0);
|
|
742
|
+
l2 = void 0 !== t3.close ? () => t3.close() : () => c(void 0);
|
|
743
|
+
s2 = void 0 !== t3.abort ? (e4) => t3.abort(e4) : () => c(void 0);
|
|
744
|
+
!(function(e4, t4, r4, o4, n4, a4, i3, l3) {
|
|
745
|
+
t4._controlledWritableStream = e4, e4._writableStreamController = t4, t4._queue = void 0, t4._queueTotalSize = void 0, ce(t4), t4._abortReason = void 0, t4._abortController = (function() {
|
|
746
|
+
if (Ue) return new AbortController();
|
|
747
|
+
})(), t4._started = false, t4._strategySizeAlgorithm = l3, t4._strategyHWM = i3, t4._writeAlgorithm = o4, t4._closeAlgorithm = n4, t4._abortAlgorithm = a4;
|
|
748
|
+
const s3 = bt(t4);
|
|
749
|
+
nt(e4, s3);
|
|
750
|
+
const u2 = r4();
|
|
751
|
+
b(c(u2), (() => (t4._started = true, dt(t4), null)), ((r5) => (t4._started = true, Ze(e4, r5), null)));
|
|
752
|
+
})(e3, n3, a3, i2, l2, s2, r3, o3);
|
|
753
|
+
})(this, o2, $e(r2, 1), a2);
|
|
754
|
+
}
|
|
755
|
+
get locked() {
|
|
756
|
+
if (!Ge(this)) throw _t("locked");
|
|
757
|
+
return Xe(this);
|
|
758
|
+
}
|
|
759
|
+
abort(e2) {
|
|
760
|
+
return Ge(this) ? Xe(this) ? d(new TypeError("Cannot abort a stream that already has a writer")) : Je(this, e2) : d(_t("abort"));
|
|
761
|
+
}
|
|
762
|
+
close() {
|
|
763
|
+
return Ge(this) ? Xe(this) ? d(new TypeError("Cannot close a stream that already has a writer")) : rt(this) ? d(new TypeError("Cannot close an already-closing stream")) : Ke(this) : d(_t("close"));
|
|
764
|
+
}
|
|
765
|
+
getWriter() {
|
|
766
|
+
if (!Ge(this)) throw _t("getWriter");
|
|
767
|
+
return new WritableStreamDefaultWriter(this);
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
function Ge(e2) {
|
|
771
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_writableStreamController") && e2 instanceof WritableStream);
|
|
772
|
+
}
|
|
773
|
+
function Xe(e2) {
|
|
774
|
+
return void 0 !== e2._writer;
|
|
775
|
+
}
|
|
776
|
+
function Je(e2, t2) {
|
|
777
|
+
var r2;
|
|
778
|
+
if ("closed" === e2._state || "errored" === e2._state) return c(void 0);
|
|
779
|
+
e2._writableStreamController._abortReason = t2, null === (r2 = e2._writableStreamController._abortController) || void 0 === r2 || r2.abort(t2);
|
|
780
|
+
const o2 = e2._state;
|
|
781
|
+
if ("closed" === o2 || "errored" === o2) return c(void 0);
|
|
782
|
+
if (void 0 !== e2._pendingAbortRequest) return e2._pendingAbortRequest._promise;
|
|
783
|
+
let n2 = false;
|
|
784
|
+
"erroring" === o2 && (n2 = true, t2 = void 0);
|
|
785
|
+
const a2 = u(((r3, o3) => {
|
|
786
|
+
e2._pendingAbortRequest = { _promise: void 0, _resolve: r3, _reject: o3, _reason: t2, _wasAlreadyErroring: n2 };
|
|
787
|
+
}));
|
|
788
|
+
return e2._pendingAbortRequest._promise = a2, n2 || et(e2, t2), a2;
|
|
789
|
+
}
|
|
790
|
+
function Ke(e2) {
|
|
791
|
+
const t2 = e2._state;
|
|
792
|
+
if ("closed" === t2 || "errored" === t2) return d(new TypeError(`The stream (in ${t2} state) is not in the writable state and cannot be closed`));
|
|
793
|
+
const r2 = u(((t3, r3) => {
|
|
794
|
+
const o3 = { _resolve: t3, _reject: r3 };
|
|
795
|
+
e2._closeRequest = o3;
|
|
796
|
+
})), o2 = e2._writer;
|
|
797
|
+
var n2;
|
|
798
|
+
return void 0 !== o2 && e2._backpressure && "writable" === t2 && Et(o2), ue(n2 = e2._writableStreamController, lt, 0), dt(n2), r2;
|
|
799
|
+
}
|
|
800
|
+
function Ze(e2, t2) {
|
|
801
|
+
"writable" !== e2._state ? tt(e2) : et(e2, t2);
|
|
802
|
+
}
|
|
803
|
+
function et(e2, t2) {
|
|
804
|
+
const r2 = e2._writableStreamController;
|
|
805
|
+
e2._state = "erroring", e2._storedError = t2;
|
|
806
|
+
const o2 = e2._writer;
|
|
807
|
+
void 0 !== o2 && it(o2, t2), !(function(e3) {
|
|
808
|
+
if (void 0 === e3._inFlightWriteRequest && void 0 === e3._inFlightCloseRequest) return false;
|
|
809
|
+
return true;
|
|
810
|
+
})(e2) && r2._started && tt(e2);
|
|
811
|
+
}
|
|
812
|
+
function tt(e2) {
|
|
813
|
+
e2._state = "errored", e2._writableStreamController[R]();
|
|
814
|
+
const t2 = e2._storedError;
|
|
815
|
+
if (e2._writeRequests.forEach(((e3) => {
|
|
816
|
+
e3._reject(t2);
|
|
817
|
+
})), e2._writeRequests = new S(), void 0 === e2._pendingAbortRequest) return void ot(e2);
|
|
818
|
+
const r2 = e2._pendingAbortRequest;
|
|
819
|
+
if (e2._pendingAbortRequest = void 0, r2._wasAlreadyErroring) return r2._reject(t2), void ot(e2);
|
|
820
|
+
b(e2._writableStreamController[v](r2._reason), (() => (r2._resolve(), ot(e2), null)), ((t3) => (r2._reject(t3), ot(e2), null)));
|
|
821
|
+
}
|
|
822
|
+
function rt(e2) {
|
|
823
|
+
return void 0 !== e2._closeRequest || void 0 !== e2._inFlightCloseRequest;
|
|
824
|
+
}
|
|
825
|
+
function ot(e2) {
|
|
826
|
+
void 0 !== e2._closeRequest && (e2._closeRequest._reject(e2._storedError), e2._closeRequest = void 0);
|
|
827
|
+
const t2 = e2._writer;
|
|
828
|
+
void 0 !== t2 && St(t2, e2._storedError);
|
|
829
|
+
}
|
|
830
|
+
function nt(e2, t2) {
|
|
831
|
+
const r2 = e2._writer;
|
|
832
|
+
void 0 !== r2 && t2 !== e2._backpressure && (t2 ? (function(e3) {
|
|
833
|
+
Rt(e3);
|
|
834
|
+
})(r2) : Et(r2)), e2._backpressure = t2;
|
|
835
|
+
}
|
|
836
|
+
Object.defineProperties(WritableStream.prototype, { abort: { enumerable: true }, close: { enumerable: true }, getWriter: { enumerable: true }, locked: { enumerable: true } }), n(WritableStream.prototype.abort, "abort"), n(WritableStream.prototype.close, "close"), n(WritableStream.prototype.getWriter, "getWriter"), "symbol" == typeof e.toStringTag && Object.defineProperty(WritableStream.prototype, e.toStringTag, { value: "WritableStream", configurable: true });
|
|
837
|
+
var WritableStreamDefaultWriter = class {
|
|
838
|
+
constructor(e2) {
|
|
839
|
+
if ($(e2, 1, "WritableStreamDefaultWriter"), (function(e3, t3) {
|
|
840
|
+
if (!Ge(e3)) throw new TypeError(`${t3} is not a WritableStream.`);
|
|
841
|
+
})(e2, "First parameter"), Xe(e2)) throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
842
|
+
this._ownerWritableStream = e2, e2._writer = this;
|
|
843
|
+
const t2 = e2._state;
|
|
844
|
+
if ("writable" === t2) !rt(e2) && e2._backpressure ? Rt(this) : qt(this), gt(this);
|
|
845
|
+
else if ("erroring" === t2) Tt(this, e2._storedError), gt(this);
|
|
846
|
+
else if ("closed" === t2) qt(this), gt(r2 = this), vt(r2);
|
|
847
|
+
else {
|
|
848
|
+
const t3 = e2._storedError;
|
|
849
|
+
Tt(this, t3), wt(this, t3);
|
|
850
|
+
}
|
|
851
|
+
var r2;
|
|
852
|
+
}
|
|
853
|
+
get closed() {
|
|
854
|
+
return at(this) ? this._closedPromise : d(mt("closed"));
|
|
855
|
+
}
|
|
856
|
+
get desiredSize() {
|
|
857
|
+
if (!at(this)) throw mt("desiredSize");
|
|
858
|
+
if (void 0 === this._ownerWritableStream) throw yt("desiredSize");
|
|
859
|
+
return (function(e2) {
|
|
860
|
+
const t2 = e2._ownerWritableStream, r2 = t2._state;
|
|
861
|
+
if ("errored" === r2 || "erroring" === r2) return null;
|
|
862
|
+
if ("closed" === r2) return 0;
|
|
863
|
+
return ct(t2._writableStreamController);
|
|
864
|
+
})(this);
|
|
865
|
+
}
|
|
866
|
+
get ready() {
|
|
867
|
+
return at(this) ? this._readyPromise : d(mt("ready"));
|
|
868
|
+
}
|
|
869
|
+
abort(e2) {
|
|
870
|
+
return at(this) ? void 0 === this._ownerWritableStream ? d(yt("abort")) : (function(e3, t2) {
|
|
871
|
+
return Je(e3._ownerWritableStream, t2);
|
|
872
|
+
})(this, e2) : d(mt("abort"));
|
|
873
|
+
}
|
|
874
|
+
close() {
|
|
875
|
+
if (!at(this)) return d(mt("close"));
|
|
876
|
+
const e2 = this._ownerWritableStream;
|
|
877
|
+
return void 0 === e2 ? d(yt("close")) : rt(e2) ? d(new TypeError("Cannot close an already-closing stream")) : Ke(this._ownerWritableStream);
|
|
878
|
+
}
|
|
879
|
+
releaseLock() {
|
|
880
|
+
if (!at(this)) throw mt("releaseLock");
|
|
881
|
+
void 0 !== this._ownerWritableStream && (function(e2) {
|
|
882
|
+
const t2 = e2._ownerWritableStream, r2 = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
883
|
+
it(e2, r2), (function(e3, t3) {
|
|
884
|
+
"pending" === e3._closedPromiseState ? St(e3, t3) : (function(e4, t4) {
|
|
885
|
+
wt(e4, t4);
|
|
886
|
+
})(e3, t3);
|
|
887
|
+
})(e2, r2), t2._writer = void 0, e2._ownerWritableStream = void 0;
|
|
888
|
+
})(this);
|
|
889
|
+
}
|
|
890
|
+
write(e2) {
|
|
891
|
+
return at(this) ? void 0 === this._ownerWritableStream ? d(yt("write to")) : (function(e3, t2) {
|
|
892
|
+
const r2 = e3._ownerWritableStream, o2 = r2._writableStreamController, n2 = (function(e4, t3) {
|
|
893
|
+
try {
|
|
894
|
+
return e4._strategySizeAlgorithm(t3);
|
|
895
|
+
} catch (t4) {
|
|
896
|
+
return ft(e4, t4), 1;
|
|
897
|
+
}
|
|
898
|
+
})(o2, t2);
|
|
899
|
+
if (r2 !== e3._ownerWritableStream) return d(yt("write to"));
|
|
900
|
+
const a2 = r2._state;
|
|
901
|
+
if ("errored" === a2) return d(r2._storedError);
|
|
902
|
+
if (rt(r2) || "closed" === a2) return d(new TypeError("The stream is closing or closed and cannot be written to"));
|
|
903
|
+
if ("erroring" === a2) return d(r2._storedError);
|
|
904
|
+
const i2 = (function(e4) {
|
|
905
|
+
return u(((t3, r3) => {
|
|
906
|
+
const o3 = { _resolve: t3, _reject: r3 };
|
|
907
|
+
e4._writeRequests.push(o3);
|
|
908
|
+
}));
|
|
909
|
+
})(r2);
|
|
910
|
+
return (function(e4, t3, r3) {
|
|
911
|
+
try {
|
|
912
|
+
ue(e4, t3, r3);
|
|
913
|
+
} catch (t4) {
|
|
914
|
+
return void ft(e4, t4);
|
|
915
|
+
}
|
|
916
|
+
const o3 = e4._controlledWritableStream;
|
|
917
|
+
if (!rt(o3) && "writable" === o3._state) {
|
|
918
|
+
nt(o3, bt(e4));
|
|
919
|
+
}
|
|
920
|
+
dt(e4);
|
|
921
|
+
})(o2, t2, n2), i2;
|
|
922
|
+
})(this, e2) : d(mt("write"));
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
function at(e2) {
|
|
926
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_ownerWritableStream") && e2 instanceof WritableStreamDefaultWriter);
|
|
927
|
+
}
|
|
928
|
+
function it(e2, t2) {
|
|
929
|
+
"pending" === e2._readyPromiseState ? Ct(e2, t2) : (function(e3, t3) {
|
|
930
|
+
Tt(e3, t3);
|
|
931
|
+
})(e2, t2);
|
|
932
|
+
}
|
|
933
|
+
Object.defineProperties(WritableStreamDefaultWriter.prototype, { abort: { enumerable: true }, close: { enumerable: true }, releaseLock: { enumerable: true }, write: { enumerable: true }, closed: { enumerable: true }, desiredSize: { enumerable: true }, ready: { enumerable: true } }), n(WritableStreamDefaultWriter.prototype.abort, "abort"), n(WritableStreamDefaultWriter.prototype.close, "close"), n(WritableStreamDefaultWriter.prototype.releaseLock, "releaseLock"), n(WritableStreamDefaultWriter.prototype.write, "write"), "symbol" == typeof e.toStringTag && Object.defineProperty(WritableStreamDefaultWriter.prototype, e.toStringTag, { value: "WritableStreamDefaultWriter", configurable: true });
|
|
934
|
+
var lt = {};
|
|
935
|
+
var WritableStreamDefaultController = class {
|
|
936
|
+
constructor() {
|
|
937
|
+
throw new TypeError("Illegal constructor");
|
|
938
|
+
}
|
|
939
|
+
get abortReason() {
|
|
940
|
+
if (!st(this)) throw pt("abortReason");
|
|
941
|
+
return this._abortReason;
|
|
942
|
+
}
|
|
943
|
+
get signal() {
|
|
944
|
+
if (!st(this)) throw pt("signal");
|
|
945
|
+
if (void 0 === this._abortController) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");
|
|
946
|
+
return this._abortController.signal;
|
|
947
|
+
}
|
|
948
|
+
error(e2) {
|
|
949
|
+
if (!st(this)) throw pt("error");
|
|
950
|
+
"writable" === this._controlledWritableStream._state && ht(this, e2);
|
|
951
|
+
}
|
|
952
|
+
[v](e2) {
|
|
953
|
+
const t2 = this._abortAlgorithm(e2);
|
|
954
|
+
return ut(this), t2;
|
|
955
|
+
}
|
|
956
|
+
[R]() {
|
|
957
|
+
ce(this);
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
function st(e2) {
|
|
961
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_controlledWritableStream") && e2 instanceof WritableStreamDefaultController);
|
|
962
|
+
}
|
|
963
|
+
function ut(e2) {
|
|
964
|
+
e2._writeAlgorithm = void 0, e2._closeAlgorithm = void 0, e2._abortAlgorithm = void 0, e2._strategySizeAlgorithm = void 0;
|
|
965
|
+
}
|
|
966
|
+
function ct(e2) {
|
|
967
|
+
return e2._strategyHWM - e2._queueTotalSize;
|
|
968
|
+
}
|
|
969
|
+
function dt(e2) {
|
|
970
|
+
const t2 = e2._controlledWritableStream;
|
|
971
|
+
if (!e2._started) return;
|
|
972
|
+
if (void 0 !== t2._inFlightWriteRequest) return;
|
|
973
|
+
if ("erroring" === t2._state) return void tt(t2);
|
|
974
|
+
if (0 === e2._queue.length) return;
|
|
975
|
+
const r2 = e2._queue.peek().value;
|
|
976
|
+
r2 === lt ? (function(e3) {
|
|
977
|
+
const t3 = e3._controlledWritableStream;
|
|
978
|
+
(function(e4) {
|
|
979
|
+
e4._inFlightCloseRequest = e4._closeRequest, e4._closeRequest = void 0;
|
|
980
|
+
})(t3), se(e3);
|
|
981
|
+
const r3 = e3._closeAlgorithm();
|
|
982
|
+
ut(e3), b(r3, (() => ((function(e4) {
|
|
983
|
+
e4._inFlightCloseRequest._resolve(void 0), e4._inFlightCloseRequest = void 0, "erroring" === e4._state && (e4._storedError = void 0, void 0 !== e4._pendingAbortRequest && (e4._pendingAbortRequest._resolve(), e4._pendingAbortRequest = void 0)), e4._state = "closed";
|
|
984
|
+
const t4 = e4._writer;
|
|
985
|
+
void 0 !== t4 && vt(t4);
|
|
986
|
+
})(t3), null)), ((e4) => ((function(e5, t4) {
|
|
987
|
+
e5._inFlightCloseRequest._reject(t4), e5._inFlightCloseRequest = void 0, void 0 !== e5._pendingAbortRequest && (e5._pendingAbortRequest._reject(t4), e5._pendingAbortRequest = void 0), Ze(e5, t4);
|
|
988
|
+
})(t3, e4), null)));
|
|
989
|
+
})(e2) : (function(e3, t3) {
|
|
990
|
+
const r3 = e3._controlledWritableStream;
|
|
991
|
+
!(function(e4) {
|
|
992
|
+
e4._inFlightWriteRequest = e4._writeRequests.shift();
|
|
993
|
+
})(r3);
|
|
994
|
+
b(e3._writeAlgorithm(t3), (() => {
|
|
995
|
+
!(function(e4) {
|
|
996
|
+
e4._inFlightWriteRequest._resolve(void 0), e4._inFlightWriteRequest = void 0;
|
|
997
|
+
})(r3);
|
|
998
|
+
const t4 = r3._state;
|
|
999
|
+
if (se(e3), !rt(r3) && "writable" === t4) {
|
|
1000
|
+
const t5 = bt(e3);
|
|
1001
|
+
nt(r3, t5);
|
|
1002
|
+
}
|
|
1003
|
+
return dt(e3), null;
|
|
1004
|
+
}), ((t4) => ("writable" === r3._state && ut(e3), (function(e4, t5) {
|
|
1005
|
+
e4._inFlightWriteRequest._reject(t5), e4._inFlightWriteRequest = void 0, Ze(e4, t5);
|
|
1006
|
+
})(r3, t4), null)));
|
|
1007
|
+
})(e2, r2);
|
|
1008
|
+
}
|
|
1009
|
+
function ft(e2, t2) {
|
|
1010
|
+
"writable" === e2._controlledWritableStream._state && ht(e2, t2);
|
|
1011
|
+
}
|
|
1012
|
+
function bt(e2) {
|
|
1013
|
+
return ct(e2) <= 0;
|
|
1014
|
+
}
|
|
1015
|
+
function ht(e2, t2) {
|
|
1016
|
+
const r2 = e2._controlledWritableStream;
|
|
1017
|
+
ut(e2), et(r2, t2);
|
|
1018
|
+
}
|
|
1019
|
+
function _t(e2) {
|
|
1020
|
+
return new TypeError(`WritableStream.prototype.${e2} can only be used on a WritableStream`);
|
|
1021
|
+
}
|
|
1022
|
+
function pt(e2) {
|
|
1023
|
+
return new TypeError(`WritableStreamDefaultController.prototype.${e2} can only be used on a WritableStreamDefaultController`);
|
|
1024
|
+
}
|
|
1025
|
+
function mt(e2) {
|
|
1026
|
+
return new TypeError(`WritableStreamDefaultWriter.prototype.${e2} can only be used on a WritableStreamDefaultWriter`);
|
|
1027
|
+
}
|
|
1028
|
+
function yt(e2) {
|
|
1029
|
+
return new TypeError("Cannot " + e2 + " a stream using a released writer");
|
|
1030
|
+
}
|
|
1031
|
+
function gt(e2) {
|
|
1032
|
+
e2._closedPromise = u(((t2, r2) => {
|
|
1033
|
+
e2._closedPromise_resolve = t2, e2._closedPromise_reject = r2, e2._closedPromiseState = "pending";
|
|
1034
|
+
}));
|
|
1035
|
+
}
|
|
1036
|
+
function wt(e2, t2) {
|
|
1037
|
+
gt(e2), St(e2, t2);
|
|
1038
|
+
}
|
|
1039
|
+
function St(e2, t2) {
|
|
1040
|
+
void 0 !== e2._closedPromise_reject && (m(e2._closedPromise), e2._closedPromise_reject(t2), e2._closedPromise_resolve = void 0, e2._closedPromise_reject = void 0, e2._closedPromiseState = "rejected");
|
|
1041
|
+
}
|
|
1042
|
+
function vt(e2) {
|
|
1043
|
+
void 0 !== e2._closedPromise_resolve && (e2._closedPromise_resolve(void 0), e2._closedPromise_resolve = void 0, e2._closedPromise_reject = void 0, e2._closedPromiseState = "resolved");
|
|
1044
|
+
}
|
|
1045
|
+
function Rt(e2) {
|
|
1046
|
+
e2._readyPromise = u(((t2, r2) => {
|
|
1047
|
+
e2._readyPromise_resolve = t2, e2._readyPromise_reject = r2;
|
|
1048
|
+
})), e2._readyPromiseState = "pending";
|
|
1049
|
+
}
|
|
1050
|
+
function Tt(e2, t2) {
|
|
1051
|
+
Rt(e2), Ct(e2, t2);
|
|
1052
|
+
}
|
|
1053
|
+
function qt(e2) {
|
|
1054
|
+
Rt(e2), Et(e2);
|
|
1055
|
+
}
|
|
1056
|
+
function Ct(e2, t2) {
|
|
1057
|
+
void 0 !== e2._readyPromise_reject && (m(e2._readyPromise), e2._readyPromise_reject(t2), e2._readyPromise_resolve = void 0, e2._readyPromise_reject = void 0, e2._readyPromiseState = "rejected");
|
|
1058
|
+
}
|
|
1059
|
+
function Et(e2) {
|
|
1060
|
+
void 0 !== e2._readyPromise_resolve && (e2._readyPromise_resolve(void 0), e2._readyPromise_resolve = void 0, e2._readyPromise_reject = void 0, e2._readyPromiseState = "fulfilled");
|
|
1061
|
+
}
|
|
1062
|
+
Object.defineProperties(WritableStreamDefaultController.prototype, { abortReason: { enumerable: true }, signal: { enumerable: true }, error: { enumerable: true } }), "symbol" == typeof e.toStringTag && Object.defineProperty(WritableStreamDefaultController.prototype, e.toStringTag, { value: "WritableStreamDefaultController", configurable: true });
|
|
1063
|
+
var Pt = "undefined" != typeof DOMException ? DOMException : void 0;
|
|
1064
|
+
var Wt = (function(e2) {
|
|
1065
|
+
if ("function" != typeof e2 && "object" != typeof e2) return false;
|
|
1066
|
+
try {
|
|
1067
|
+
return new e2(), true;
|
|
1068
|
+
} catch (e3) {
|
|
1069
|
+
return false;
|
|
1070
|
+
}
|
|
1071
|
+
})(Pt) ? Pt : (function() {
|
|
1072
|
+
const e2 = function(e3, t2) {
|
|
1073
|
+
this.message = e3 || "", this.name = t2 || "Error", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1074
|
+
};
|
|
1075
|
+
return e2.prototype = Object.create(Error.prototype), Object.defineProperty(e2.prototype, "constructor", { value: e2, writable: true, configurable: true }), e2;
|
|
1076
|
+
})();
|
|
1077
|
+
function kt(e2, t2, r2, o2, n2, a2) {
|
|
1078
|
+
const i2 = e2.getReader(), l2 = t2.getWriter();
|
|
1079
|
+
Vt(e2) && (e2._disturbed = true);
|
|
1080
|
+
let s2, _2, g2, w2 = false, S2 = false, v2 = "readable", R2 = "writable", T2 = false, q2 = false;
|
|
1081
|
+
const C2 = u(((e3) => {
|
|
1082
|
+
g2 = e3;
|
|
1083
|
+
}));
|
|
1084
|
+
let E2 = Promise.resolve(void 0);
|
|
1085
|
+
return u(((P2, W2) => {
|
|
1086
|
+
let k2;
|
|
1087
|
+
function O2() {
|
|
1088
|
+
if (w2) return;
|
|
1089
|
+
const e3 = u(((e4, t3) => {
|
|
1090
|
+
!(function r3(o3) {
|
|
1091
|
+
o3 ? e4() : f((function() {
|
|
1092
|
+
if (w2) return c(true);
|
|
1093
|
+
return f(l2.ready, (() => f(i2.read(), ((e5) => !!e5.done || (E2 = l2.write(e5.value), m(E2), false)))));
|
|
1094
|
+
})(), r3, t3);
|
|
1095
|
+
})(false);
|
|
1096
|
+
}));
|
|
1097
|
+
m(e3);
|
|
1098
|
+
}
|
|
1099
|
+
function B2() {
|
|
1100
|
+
return v2 = "closed", r2 ? L2() : z2((() => (Ge(t2) && (T2 = rt(t2), R2 = t2._state), T2 || "closed" === R2 ? c(void 0) : "erroring" === R2 || "errored" === R2 ? d(_2) : (T2 = true, l2.close()))), false, void 0), null;
|
|
1101
|
+
}
|
|
1102
|
+
function A2(e3) {
|
|
1103
|
+
return w2 || (v2 = "errored", s2 = e3, o2 ? L2(true, e3) : z2((() => l2.abort(e3)), true, e3)), null;
|
|
1104
|
+
}
|
|
1105
|
+
function j2(e3) {
|
|
1106
|
+
return S2 || (R2 = "errored", _2 = e3, n2 ? L2(true, e3) : z2((() => i2.cancel(e3)), true, e3)), null;
|
|
1107
|
+
}
|
|
1108
|
+
if (void 0 !== a2 && (k2 = () => {
|
|
1109
|
+
const e3 = void 0 !== a2.reason ? a2.reason : new Wt("Aborted", "AbortError"), t3 = [];
|
|
1110
|
+
o2 || t3.push((() => "writable" === R2 ? l2.abort(e3) : c(void 0))), n2 || t3.push((() => "readable" === v2 ? i2.cancel(e3) : c(void 0))), z2((() => Promise.all(t3.map(((e4) => e4())))), true, e3);
|
|
1111
|
+
}, a2.aborted ? k2() : a2.addEventListener("abort", k2)), Vt(e2) && (v2 = e2._state, s2 = e2._storedError), Ge(t2) && (R2 = t2._state, _2 = t2._storedError, T2 = rt(t2)), Vt(e2) && Ge(t2) && (q2 = true, g2()), "errored" === v2) A2(s2);
|
|
1112
|
+
else if ("erroring" === R2 || "errored" === R2) j2(_2);
|
|
1113
|
+
else if ("closed" === v2) B2();
|
|
1114
|
+
else if (T2 || "closed" === R2) {
|
|
1115
|
+
const e3 = new TypeError("the destination writable stream closed before all data could be piped to it");
|
|
1116
|
+
n2 ? L2(true, e3) : z2((() => i2.cancel(e3)), true, e3);
|
|
1117
|
+
}
|
|
1118
|
+
function z2(e3, t3, r3) {
|
|
1119
|
+
function o3() {
|
|
1120
|
+
return "writable" !== R2 || T2 ? n3() : h((function() {
|
|
1121
|
+
let e4;
|
|
1122
|
+
return c((function t4() {
|
|
1123
|
+
if (e4 !== E2) return e4 = E2, p(E2, t4, t4);
|
|
1124
|
+
})());
|
|
1125
|
+
})(), n3), null;
|
|
1126
|
+
}
|
|
1127
|
+
function n3() {
|
|
1128
|
+
return e3 ? b(e3(), (() => F2(t3, r3)), ((e4) => F2(true, e4))) : F2(t3, r3), null;
|
|
1129
|
+
}
|
|
1130
|
+
w2 || (w2 = true, q2 ? o3() : h(C2, o3));
|
|
1131
|
+
}
|
|
1132
|
+
function L2(e3, t3) {
|
|
1133
|
+
z2(void 0, e3, t3);
|
|
1134
|
+
}
|
|
1135
|
+
function F2(e3, t3) {
|
|
1136
|
+
return S2 = true, l2.releaseLock(), i2.releaseLock(), void 0 !== a2 && a2.removeEventListener("abort", k2), e3 ? W2(t3) : P2(void 0), null;
|
|
1137
|
+
}
|
|
1138
|
+
w2 || (b(i2.closed, B2, A2), b(l2.closed, (function() {
|
|
1139
|
+
return S2 || (R2 = "closed"), null;
|
|
1140
|
+
}), j2)), q2 ? O2() : y((() => {
|
|
1141
|
+
q2 = true, g2(), O2();
|
|
1142
|
+
}));
|
|
1143
|
+
}));
|
|
1144
|
+
}
|
|
1145
|
+
function Ot(e2, t2) {
|
|
1146
|
+
return (function(e3) {
|
|
1147
|
+
try {
|
|
1148
|
+
return e3.getReader({ mode: "byob" }).releaseLock(), true;
|
|
1149
|
+
} catch (e4) {
|
|
1150
|
+
return false;
|
|
1151
|
+
}
|
|
1152
|
+
})(e2) ? (function(e3) {
|
|
1153
|
+
let t3, r2, o2, n2, a2, i2 = e3.getReader(), l2 = false, s2 = false, d2 = false, f2 = false, h2 = false, p2 = false;
|
|
1154
|
+
const m2 = u(((e4) => {
|
|
1155
|
+
a2 = e4;
|
|
1156
|
+
}));
|
|
1157
|
+
function y2(e4) {
|
|
1158
|
+
_(e4.closed, ((t4) => (e4 !== i2 || (o2.error(t4), n2.error(t4), h2 && p2 || a2(void 0)), null)));
|
|
1159
|
+
}
|
|
1160
|
+
function g2() {
|
|
1161
|
+
l2 && (i2.releaseLock(), i2 = e3.getReader(), y2(i2), l2 = false), b(i2.read(), ((e4) => {
|
|
1162
|
+
var t4, r3;
|
|
1163
|
+
if (d2 = false, f2 = false, e4.done) return h2 || o2.close(), p2 || n2.close(), null === (t4 = o2.byobRequest) || void 0 === t4 || t4.respond(0), null === (r3 = n2.byobRequest) || void 0 === r3 || r3.respond(0), h2 && p2 || a2(void 0), null;
|
|
1164
|
+
const l3 = e4.value, u2 = l3;
|
|
1165
|
+
let c2 = l3;
|
|
1166
|
+
if (!h2 && !p2) try {
|
|
1167
|
+
c2 = le(l3);
|
|
1168
|
+
} catch (e5) {
|
|
1169
|
+
return o2.error(e5), n2.error(e5), a2(i2.cancel(e5)), null;
|
|
1170
|
+
}
|
|
1171
|
+
return h2 || o2.enqueue(u2), p2 || n2.enqueue(c2), s2 = false, d2 ? S2() : f2 && v2(), null;
|
|
1172
|
+
}), (() => (s2 = false, null)));
|
|
1173
|
+
}
|
|
1174
|
+
function w2(t4, r3) {
|
|
1175
|
+
l2 || (i2.releaseLock(), i2 = e3.getReader({ mode: "byob" }), y2(i2), l2 = true);
|
|
1176
|
+
const u2 = r3 ? n2 : o2, c2 = r3 ? o2 : n2;
|
|
1177
|
+
b(i2.read(t4), ((e4) => {
|
|
1178
|
+
var t5;
|
|
1179
|
+
d2 = false, f2 = false;
|
|
1180
|
+
const o3 = r3 ? p2 : h2, n3 = r3 ? h2 : p2;
|
|
1181
|
+
if (e4.done) {
|
|
1182
|
+
o3 || u2.close(), n3 || c2.close();
|
|
1183
|
+
const r4 = e4.value;
|
|
1184
|
+
return void 0 !== r4 && (o3 || u2.byobRequest.respondWithNewView(r4), n3 || null === (t5 = c2.byobRequest) || void 0 === t5 || t5.respond(0)), o3 && n3 || a2(void 0), null;
|
|
1185
|
+
}
|
|
1186
|
+
const l3 = e4.value;
|
|
1187
|
+
if (n3) o3 || u2.byobRequest.respondWithNewView(l3);
|
|
1188
|
+
else {
|
|
1189
|
+
let e5;
|
|
1190
|
+
try {
|
|
1191
|
+
e5 = le(l3);
|
|
1192
|
+
} catch (e6) {
|
|
1193
|
+
return u2.error(e6), c2.error(e6), a2(i2.cancel(e6)), null;
|
|
1194
|
+
}
|
|
1195
|
+
o3 || u2.byobRequest.respondWithNewView(l3), c2.enqueue(e5);
|
|
1196
|
+
}
|
|
1197
|
+
return s2 = false, d2 ? S2() : f2 && v2(), null;
|
|
1198
|
+
}), (() => (s2 = false, null)));
|
|
1199
|
+
}
|
|
1200
|
+
function S2() {
|
|
1201
|
+
if (s2) return d2 = true, c(void 0);
|
|
1202
|
+
s2 = true;
|
|
1203
|
+
const e4 = o2.byobRequest;
|
|
1204
|
+
return null === e4 ? g2() : w2(e4.view, false), c(void 0);
|
|
1205
|
+
}
|
|
1206
|
+
function v2() {
|
|
1207
|
+
if (s2) return f2 = true, c(void 0);
|
|
1208
|
+
s2 = true;
|
|
1209
|
+
const e4 = n2.byobRequest;
|
|
1210
|
+
return null === e4 ? g2() : w2(e4.view, true), c(void 0);
|
|
1211
|
+
}
|
|
1212
|
+
function R2(e4) {
|
|
1213
|
+
if (h2 = true, t3 = e4, p2) {
|
|
1214
|
+
const e5 = [t3, r2], o3 = i2.cancel(e5);
|
|
1215
|
+
a2(o3);
|
|
1216
|
+
}
|
|
1217
|
+
return m2;
|
|
1218
|
+
}
|
|
1219
|
+
function T2(e4) {
|
|
1220
|
+
if (p2 = true, r2 = e4, h2) {
|
|
1221
|
+
const e5 = [t3, r2], o3 = i2.cancel(e5);
|
|
1222
|
+
a2(o3);
|
|
1223
|
+
}
|
|
1224
|
+
return m2;
|
|
1225
|
+
}
|
|
1226
|
+
const q2 = new ReadableStream({ type: "bytes", start(e4) {
|
|
1227
|
+
o2 = e4;
|
|
1228
|
+
}, pull: S2, cancel: R2 }), C2 = new ReadableStream({ type: "bytes", start(e4) {
|
|
1229
|
+
n2 = e4;
|
|
1230
|
+
}, pull: v2, cancel: T2 });
|
|
1231
|
+
return y2(i2), [q2, C2];
|
|
1232
|
+
})(e2) : (function(e3, t3) {
|
|
1233
|
+
const r2 = e3.getReader();
|
|
1234
|
+
let o2, n2, a2, i2, l2, s2 = false, d2 = false, f2 = false, h2 = false;
|
|
1235
|
+
const p2 = u(((e4) => {
|
|
1236
|
+
l2 = e4;
|
|
1237
|
+
}));
|
|
1238
|
+
function m2() {
|
|
1239
|
+
return s2 ? (d2 = true, c(void 0)) : (s2 = true, b(r2.read(), ((e4) => {
|
|
1240
|
+
if (d2 = false, e4.done) return f2 || a2.close(), h2 || i2.close(), f2 && h2 || l2(void 0), null;
|
|
1241
|
+
const t4 = e4.value, r3 = t4, o3 = t4;
|
|
1242
|
+
return f2 || a2.enqueue(r3), h2 || i2.enqueue(o3), s2 = false, d2 && m2(), null;
|
|
1243
|
+
}), (() => (s2 = false, null))), c(void 0));
|
|
1244
|
+
}
|
|
1245
|
+
function y2(e4) {
|
|
1246
|
+
if (f2 = true, o2 = e4, h2) {
|
|
1247
|
+
const e5 = [o2, n2], t4 = r2.cancel(e5);
|
|
1248
|
+
l2(t4);
|
|
1249
|
+
}
|
|
1250
|
+
return p2;
|
|
1251
|
+
}
|
|
1252
|
+
function g2(e4) {
|
|
1253
|
+
if (h2 = true, n2 = e4, f2) {
|
|
1254
|
+
const e5 = [o2, n2], t4 = r2.cancel(e5);
|
|
1255
|
+
l2(t4);
|
|
1256
|
+
}
|
|
1257
|
+
return p2;
|
|
1258
|
+
}
|
|
1259
|
+
const w2 = new ReadableStream({ start(e4) {
|
|
1260
|
+
a2 = e4;
|
|
1261
|
+
}, pull: m2, cancel: y2 }), S2 = new ReadableStream({ start(e4) {
|
|
1262
|
+
i2 = e4;
|
|
1263
|
+
}, pull: m2, cancel: g2 });
|
|
1264
|
+
return _(r2.closed, ((e4) => (a2.error(e4), i2.error(e4), f2 && h2 || l2(void 0), null))), [w2, S2];
|
|
1265
|
+
})(e2);
|
|
1266
|
+
}
|
|
1267
|
+
var ReadableStreamDefaultController = class {
|
|
1268
|
+
constructor() {
|
|
1269
|
+
throw new TypeError("Illegal constructor");
|
|
1270
|
+
}
|
|
1271
|
+
get desiredSize() {
|
|
1272
|
+
if (!Bt(this)) throw Dt("desiredSize");
|
|
1273
|
+
return Lt(this);
|
|
1274
|
+
}
|
|
1275
|
+
close() {
|
|
1276
|
+
if (!Bt(this)) throw Dt("close");
|
|
1277
|
+
if (!Ft(this)) throw new TypeError("The stream is not in a state that permits close");
|
|
1278
|
+
!(function(e2) {
|
|
1279
|
+
if (!Ft(e2)) return;
|
|
1280
|
+
const t2 = e2._controlledReadableStream;
|
|
1281
|
+
e2._closeRequested = true, 0 === e2._queue.length && (jt(e2), Xt(t2));
|
|
1282
|
+
})(this);
|
|
1283
|
+
}
|
|
1284
|
+
enqueue(e2) {
|
|
1285
|
+
if (!Bt(this)) throw Dt("enqueue");
|
|
1286
|
+
if (!Ft(this)) throw new TypeError("The stream is not in a state that permits enqueue");
|
|
1287
|
+
return (function(e3, t2) {
|
|
1288
|
+
if (!Ft(e3)) return;
|
|
1289
|
+
const r2 = e3._controlledReadableStream;
|
|
1290
|
+
if (Ut(r2) && X(r2) > 0) G(r2, t2, false);
|
|
1291
|
+
else {
|
|
1292
|
+
let r3;
|
|
1293
|
+
try {
|
|
1294
|
+
r3 = e3._strategySizeAlgorithm(t2);
|
|
1295
|
+
} catch (t3) {
|
|
1296
|
+
throw zt(e3, t3), t3;
|
|
1297
|
+
}
|
|
1298
|
+
try {
|
|
1299
|
+
ue(e3, t2, r3);
|
|
1300
|
+
} catch (t3) {
|
|
1301
|
+
throw zt(e3, t3), t3;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
At(e3);
|
|
1305
|
+
})(this, e2);
|
|
1306
|
+
}
|
|
1307
|
+
error(e2) {
|
|
1308
|
+
if (!Bt(this)) throw Dt("error");
|
|
1309
|
+
zt(this, e2);
|
|
1310
|
+
}
|
|
1311
|
+
[T](e2) {
|
|
1312
|
+
ce(this);
|
|
1313
|
+
const t2 = this._cancelAlgorithm(e2);
|
|
1314
|
+
return jt(this), t2;
|
|
1315
|
+
}
|
|
1316
|
+
[q](e2) {
|
|
1317
|
+
const t2 = this._controlledReadableStream;
|
|
1318
|
+
if (this._queue.length > 0) {
|
|
1319
|
+
const r2 = se(this);
|
|
1320
|
+
this._closeRequested && 0 === this._queue.length ? (jt(this), Xt(t2)) : At(this), e2._chunkSteps(r2);
|
|
1321
|
+
} else U(t2, e2), At(this);
|
|
1322
|
+
}
|
|
1323
|
+
[C]() {
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
function Bt(e2) {
|
|
1327
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_controlledReadableStream") && e2 instanceof ReadableStreamDefaultController);
|
|
1328
|
+
}
|
|
1329
|
+
function At(e2) {
|
|
1330
|
+
const t2 = (function(e3) {
|
|
1331
|
+
const t3 = e3._controlledReadableStream;
|
|
1332
|
+
if (!Ft(e3)) return false;
|
|
1333
|
+
if (!e3._started) return false;
|
|
1334
|
+
if (Ut(t3) && X(t3) > 0) return true;
|
|
1335
|
+
if (Lt(e3) > 0) return true;
|
|
1336
|
+
return false;
|
|
1337
|
+
})(e2);
|
|
1338
|
+
if (!t2) return;
|
|
1339
|
+
if (e2._pulling) return void (e2._pullAgain = true);
|
|
1340
|
+
e2._pulling = true;
|
|
1341
|
+
b(e2._pullAlgorithm(), (() => (e2._pulling = false, e2._pullAgain && (e2._pullAgain = false, At(e2)), null)), ((t3) => (zt(e2, t3), null)));
|
|
1342
|
+
}
|
|
1343
|
+
function jt(e2) {
|
|
1344
|
+
e2._pullAlgorithm = void 0, e2._cancelAlgorithm = void 0, e2._strategySizeAlgorithm = void 0;
|
|
1345
|
+
}
|
|
1346
|
+
function zt(e2, t2) {
|
|
1347
|
+
const r2 = e2._controlledReadableStream;
|
|
1348
|
+
"readable" === r2._state && (ce(e2), jt(e2), Jt(r2, t2));
|
|
1349
|
+
}
|
|
1350
|
+
function Lt(e2) {
|
|
1351
|
+
const t2 = e2._controlledReadableStream._state;
|
|
1352
|
+
return "errored" === t2 ? null : "closed" === t2 ? 0 : e2._strategyHWM - e2._queueTotalSize;
|
|
1353
|
+
}
|
|
1354
|
+
function Ft(e2) {
|
|
1355
|
+
return !e2._closeRequested && "readable" === e2._controlledReadableStream._state;
|
|
1356
|
+
}
|
|
1357
|
+
function It(e2, t2, r2, o2) {
|
|
1358
|
+
const n2 = Object.create(ReadableStreamDefaultController.prototype);
|
|
1359
|
+
let a2, i2, l2;
|
|
1360
|
+
a2 = void 0 !== t2.start ? () => t2.start(n2) : () => {
|
|
1361
|
+
}, i2 = void 0 !== t2.pull ? () => t2.pull(n2) : () => c(void 0), l2 = void 0 !== t2.cancel ? (e3) => t2.cancel(e3) : () => c(void 0), (function(e3, t3, r3, o3, n3, a3, i3) {
|
|
1362
|
+
t3._controlledReadableStream = e3, t3._queue = void 0, t3._queueTotalSize = void 0, ce(t3), t3._started = false, t3._closeRequested = false, t3._pullAgain = false, t3._pulling = false, t3._strategySizeAlgorithm = i3, t3._strategyHWM = a3, t3._pullAlgorithm = o3, t3._cancelAlgorithm = n3, e3._readableStreamController = t3, b(c(r3()), (() => (t3._started = true, At(t3), null)), ((e4) => (zt(t3, e4), null)));
|
|
1363
|
+
})(e2, n2, a2, i2, l2, r2, o2);
|
|
1364
|
+
}
|
|
1365
|
+
function Dt(e2) {
|
|
1366
|
+
return new TypeError(`ReadableStreamDefaultController.prototype.${e2} can only be used on a ReadableStreamDefaultController`);
|
|
1367
|
+
}
|
|
1368
|
+
function $t(e2, t2, r2) {
|
|
1369
|
+
return I(e2, r2), (r3) => w(e2, t2, [r3]);
|
|
1370
|
+
}
|
|
1371
|
+
function Mt(e2, t2, r2) {
|
|
1372
|
+
return I(e2, r2), (r3) => w(e2, t2, [r3]);
|
|
1373
|
+
}
|
|
1374
|
+
function Yt(e2, t2, r2) {
|
|
1375
|
+
return I(e2, r2), (r3) => g(e2, t2, [r3]);
|
|
1376
|
+
}
|
|
1377
|
+
function Qt(e2, t2) {
|
|
1378
|
+
if ("bytes" !== (e2 = `${e2}`)) throw new TypeError(`${t2} '${e2}' is not a valid enumeration value for ReadableStreamType`);
|
|
1379
|
+
return e2;
|
|
1380
|
+
}
|
|
1381
|
+
function Nt(e2, t2) {
|
|
1382
|
+
if ("byob" !== (e2 = `${e2}`)) throw new TypeError(`${t2} '${e2}' is not a valid enumeration value for ReadableStreamReaderMode`);
|
|
1383
|
+
return e2;
|
|
1384
|
+
}
|
|
1385
|
+
function Ht(e2, t2) {
|
|
1386
|
+
F(e2, t2);
|
|
1387
|
+
const r2 = null == e2 ? void 0 : e2.preventAbort, o2 = null == e2 ? void 0 : e2.preventCancel, n2 = null == e2 ? void 0 : e2.preventClose, a2 = null == e2 ? void 0 : e2.signal;
|
|
1388
|
+
return void 0 !== a2 && (function(e3, t3) {
|
|
1389
|
+
if (!(function(e4) {
|
|
1390
|
+
if ("object" != typeof e4 || null === e4) return false;
|
|
1391
|
+
try {
|
|
1392
|
+
return "boolean" == typeof e4.aborted;
|
|
1393
|
+
} catch (e5) {
|
|
1394
|
+
return false;
|
|
1395
|
+
}
|
|
1396
|
+
})(e3)) throw new TypeError(`${t3} is not an AbortSignal.`);
|
|
1397
|
+
})(a2, `${t2} has member 'signal' that`), { preventAbort: Boolean(r2), preventCancel: Boolean(o2), preventClose: Boolean(n2), signal: a2 };
|
|
1398
|
+
}
|
|
1399
|
+
function xt(e2, t2) {
|
|
1400
|
+
F(e2, t2);
|
|
1401
|
+
const r2 = null == e2 ? void 0 : e2.readable;
|
|
1402
|
+
M(r2, "readable", "ReadableWritablePair"), (function(e3, t3) {
|
|
1403
|
+
if (!H(e3)) throw new TypeError(`${t3} is not a ReadableStream.`);
|
|
1404
|
+
})(r2, `${t2} has member 'readable' that`);
|
|
1405
|
+
const o2 = null == e2 ? void 0 : e2.writable;
|
|
1406
|
+
return M(o2, "writable", "ReadableWritablePair"), (function(e3, t3) {
|
|
1407
|
+
if (!x(e3)) throw new TypeError(`${t3} is not a WritableStream.`);
|
|
1408
|
+
})(o2, `${t2} has member 'writable' that`), { readable: r2, writable: o2 };
|
|
1409
|
+
}
|
|
1410
|
+
Object.defineProperties(ReadableStreamDefaultController.prototype, { close: { enumerable: true }, enqueue: { enumerable: true }, error: { enumerable: true }, desiredSize: { enumerable: true } }), n(ReadableStreamDefaultController.prototype.close, "close"), n(ReadableStreamDefaultController.prototype.enqueue, "enqueue"), n(ReadableStreamDefaultController.prototype.error, "error"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableStreamDefaultController.prototype, e.toStringTag, { value: "ReadableStreamDefaultController", configurable: true });
|
|
1411
|
+
var ReadableStream = class {
|
|
1412
|
+
constructor(e2 = {}, t2 = {}) {
|
|
1413
|
+
void 0 === e2 ? e2 = null : D(e2, "First parameter");
|
|
1414
|
+
const r2 = Ye(t2, "Second parameter"), o2 = (function(e3, t3) {
|
|
1415
|
+
F(e3, t3);
|
|
1416
|
+
const r3 = e3, o3 = null == r3 ? void 0 : r3.autoAllocateChunkSize, n3 = null == r3 ? void 0 : r3.cancel, a2 = null == r3 ? void 0 : r3.pull, i2 = null == r3 ? void 0 : r3.start, l2 = null == r3 ? void 0 : r3.type;
|
|
1417
|
+
return { autoAllocateChunkSize: void 0 === o3 ? void 0 : N(o3, `${t3} has member 'autoAllocateChunkSize' that`), cancel: void 0 === n3 ? void 0 : $t(n3, r3, `${t3} has member 'cancel' that`), pull: void 0 === a2 ? void 0 : Mt(a2, r3, `${t3} has member 'pull' that`), start: void 0 === i2 ? void 0 : Yt(i2, r3, `${t3} has member 'start' that`), type: void 0 === l2 ? void 0 : Qt(l2, `${t3} has member 'type' that`) };
|
|
1418
|
+
})(e2, "First parameter");
|
|
1419
|
+
var n2;
|
|
1420
|
+
if ((n2 = this)._state = "readable", n2._reader = void 0, n2._storedError = void 0, n2._disturbed = false, "bytes" === o2.type) {
|
|
1421
|
+
if (void 0 !== r2.size) throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
1422
|
+
Oe(this, o2, $e(r2, 0));
|
|
1423
|
+
} else {
|
|
1424
|
+
const e3 = Me(r2);
|
|
1425
|
+
It(this, o2, $e(r2, 1), e3);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
get locked() {
|
|
1429
|
+
if (!Vt(this)) throw Kt("locked");
|
|
1430
|
+
return Ut(this);
|
|
1431
|
+
}
|
|
1432
|
+
cancel(e2) {
|
|
1433
|
+
return Vt(this) ? Ut(this) ? d(new TypeError("Cannot cancel a stream that already has a reader")) : Gt(this, e2) : d(Kt("cancel"));
|
|
1434
|
+
}
|
|
1435
|
+
getReader(e2) {
|
|
1436
|
+
if (!Vt(this)) throw Kt("getReader");
|
|
1437
|
+
return void 0 === (function(e3, t2) {
|
|
1438
|
+
F(e3, t2);
|
|
1439
|
+
const r2 = null == e3 ? void 0 : e3.mode;
|
|
1440
|
+
return { mode: void 0 === r2 ? void 0 : Nt(r2, `${t2} has member 'mode' that`) };
|
|
1441
|
+
})(e2, "First parameter").mode ? new ReadableStreamDefaultReader(this) : (function(e3) {
|
|
1442
|
+
return new ReadableStreamBYOBReader(e3);
|
|
1443
|
+
})(this);
|
|
1444
|
+
}
|
|
1445
|
+
pipeThrough(e2, t2 = {}) {
|
|
1446
|
+
if (!H(this)) throw Kt("pipeThrough");
|
|
1447
|
+
$(e2, 1, "pipeThrough");
|
|
1448
|
+
const r2 = xt(e2, "First parameter"), o2 = Ht(t2, "Second parameter");
|
|
1449
|
+
if (this.locked) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
1450
|
+
if (r2.writable.locked) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
1451
|
+
return m(kt(this, r2.writable, o2.preventClose, o2.preventAbort, o2.preventCancel, o2.signal)), r2.readable;
|
|
1452
|
+
}
|
|
1453
|
+
pipeTo(e2, t2 = {}) {
|
|
1454
|
+
if (!H(this)) return d(Kt("pipeTo"));
|
|
1455
|
+
if (void 0 === e2) return d("Parameter 1 is required in 'pipeTo'.");
|
|
1456
|
+
if (!x(e2)) return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
1457
|
+
let r2;
|
|
1458
|
+
try {
|
|
1459
|
+
r2 = Ht(t2, "Second parameter");
|
|
1460
|
+
} catch (e3) {
|
|
1461
|
+
return d(e3);
|
|
1462
|
+
}
|
|
1463
|
+
return this.locked ? d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : e2.locked ? d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : kt(this, e2, r2.preventClose, r2.preventAbort, r2.preventCancel, r2.signal);
|
|
1464
|
+
}
|
|
1465
|
+
tee() {
|
|
1466
|
+
if (!H(this)) throw Kt("tee");
|
|
1467
|
+
if (this.locked) throw new TypeError("Cannot tee a stream that already has a reader");
|
|
1468
|
+
return Ot(this);
|
|
1469
|
+
}
|
|
1470
|
+
values(e2) {
|
|
1471
|
+
if (!H(this)) throw Kt("values");
|
|
1472
|
+
return (function(e3, t2) {
|
|
1473
|
+
const r2 = e3.getReader(), o2 = new te(r2, t2), n2 = Object.create(re);
|
|
1474
|
+
return n2._asyncIteratorImpl = o2, n2;
|
|
1475
|
+
})(this, (function(e3, t2) {
|
|
1476
|
+
F(e3, t2);
|
|
1477
|
+
const r2 = null == e3 ? void 0 : e3.preventCancel;
|
|
1478
|
+
return { preventCancel: Boolean(r2) };
|
|
1479
|
+
})(e2, "First parameter").preventCancel);
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
function Vt(e2) {
|
|
1483
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_readableStreamController") && e2 instanceof ReadableStream);
|
|
1484
|
+
}
|
|
1485
|
+
function Ut(e2) {
|
|
1486
|
+
return void 0 !== e2._reader;
|
|
1487
|
+
}
|
|
1488
|
+
function Gt(e2, r2) {
|
|
1489
|
+
if (e2._disturbed = true, "closed" === e2._state) return c(void 0);
|
|
1490
|
+
if ("errored" === e2._state) return d(e2._storedError);
|
|
1491
|
+
Xt(e2);
|
|
1492
|
+
const o2 = e2._reader;
|
|
1493
|
+
if (void 0 !== o2 && Fe(o2)) {
|
|
1494
|
+
const e3 = o2._readIntoRequests;
|
|
1495
|
+
o2._readIntoRequests = new S(), e3.forEach(((e4) => {
|
|
1496
|
+
e4._closeSteps(void 0);
|
|
1497
|
+
}));
|
|
1498
|
+
}
|
|
1499
|
+
return p(e2._readableStreamController[T](r2), t);
|
|
1500
|
+
}
|
|
1501
|
+
function Xt(e2) {
|
|
1502
|
+
e2._state = "closed";
|
|
1503
|
+
const t2 = e2._reader;
|
|
1504
|
+
if (void 0 !== t2 && (j(t2), K(t2))) {
|
|
1505
|
+
const e3 = t2._readRequests;
|
|
1506
|
+
t2._readRequests = new S(), e3.forEach(((e4) => {
|
|
1507
|
+
e4._closeSteps();
|
|
1508
|
+
}));
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
function Jt(e2, t2) {
|
|
1512
|
+
e2._state = "errored", e2._storedError = t2;
|
|
1513
|
+
const r2 = e2._reader;
|
|
1514
|
+
void 0 !== r2 && (A(r2, t2), K(r2) ? Z(r2, t2) : Ie(r2, t2));
|
|
1515
|
+
}
|
|
1516
|
+
function Kt(e2) {
|
|
1517
|
+
return new TypeError(`ReadableStream.prototype.${e2} can only be used on a ReadableStream`);
|
|
1518
|
+
}
|
|
1519
|
+
function Zt(e2, t2) {
|
|
1520
|
+
F(e2, t2);
|
|
1521
|
+
const r2 = null == e2 ? void 0 : e2.highWaterMark;
|
|
1522
|
+
return M(r2, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: Y(r2) };
|
|
1523
|
+
}
|
|
1524
|
+
Object.defineProperties(ReadableStream.prototype, { cancel: { enumerable: true }, getReader: { enumerable: true }, pipeThrough: { enumerable: true }, pipeTo: { enumerable: true }, tee: { enumerable: true }, values: { enumerable: true }, locked: { enumerable: true } }), n(ReadableStream.prototype.cancel, "cancel"), n(ReadableStream.prototype.getReader, "getReader"), n(ReadableStream.prototype.pipeThrough, "pipeThrough"), n(ReadableStream.prototype.pipeTo, "pipeTo"), n(ReadableStream.prototype.tee, "tee"), n(ReadableStream.prototype.values, "values"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableStream.prototype, e.toStringTag, { value: "ReadableStream", configurable: true }), "symbol" == typeof e.asyncIterator && Object.defineProperty(ReadableStream.prototype, e.asyncIterator, { value: ReadableStream.prototype.values, writable: true, configurable: true });
|
|
1525
|
+
var er = (e2) => e2.byteLength;
|
|
1526
|
+
n(er, "size");
|
|
1527
|
+
var ByteLengthQueuingStrategy = class {
|
|
1528
|
+
constructor(e2) {
|
|
1529
|
+
$(e2, 1, "ByteLengthQueuingStrategy"), e2 = Zt(e2, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = e2.highWaterMark;
|
|
1530
|
+
}
|
|
1531
|
+
get highWaterMark() {
|
|
1532
|
+
if (!rr(this)) throw tr("highWaterMark");
|
|
1533
|
+
return this._byteLengthQueuingStrategyHighWaterMark;
|
|
1534
|
+
}
|
|
1535
|
+
get size() {
|
|
1536
|
+
if (!rr(this)) throw tr("size");
|
|
1537
|
+
return er;
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
function tr(e2) {
|
|
1541
|
+
return new TypeError(`ByteLengthQueuingStrategy.prototype.${e2} can only be used on a ByteLengthQueuingStrategy`);
|
|
1542
|
+
}
|
|
1543
|
+
function rr(e2) {
|
|
1544
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_byteLengthQueuingStrategyHighWaterMark") && e2 instanceof ByteLengthQueuingStrategy);
|
|
1545
|
+
}
|
|
1546
|
+
Object.defineProperties(ByteLengthQueuingStrategy.prototype, { highWaterMark: { enumerable: true }, size: { enumerable: true } }), "symbol" == typeof e.toStringTag && Object.defineProperty(ByteLengthQueuingStrategy.prototype, e.toStringTag, { value: "ByteLengthQueuingStrategy", configurable: true });
|
|
1547
|
+
var or = () => 1;
|
|
1548
|
+
n(or, "size");
|
|
1549
|
+
var CountQueuingStrategy = class {
|
|
1550
|
+
constructor(e2) {
|
|
1551
|
+
$(e2, 1, "CountQueuingStrategy"), e2 = Zt(e2, "First parameter"), this._countQueuingStrategyHighWaterMark = e2.highWaterMark;
|
|
1552
|
+
}
|
|
1553
|
+
get highWaterMark() {
|
|
1554
|
+
if (!ar(this)) throw nr("highWaterMark");
|
|
1555
|
+
return this._countQueuingStrategyHighWaterMark;
|
|
1556
|
+
}
|
|
1557
|
+
get size() {
|
|
1558
|
+
if (!ar(this)) throw nr("size");
|
|
1559
|
+
return or;
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
function nr(e2) {
|
|
1563
|
+
return new TypeError(`CountQueuingStrategy.prototype.${e2} can only be used on a CountQueuingStrategy`);
|
|
1564
|
+
}
|
|
1565
|
+
function ar(e2) {
|
|
1566
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_countQueuingStrategyHighWaterMark") && e2 instanceof CountQueuingStrategy);
|
|
1567
|
+
}
|
|
1568
|
+
function ir(e2, t2, r2) {
|
|
1569
|
+
return I(e2, r2), (r3) => w(e2, t2, [r3]);
|
|
1570
|
+
}
|
|
1571
|
+
function lr(e2, t2, r2) {
|
|
1572
|
+
return I(e2, r2), (r3) => g(e2, t2, [r3]);
|
|
1573
|
+
}
|
|
1574
|
+
function sr(e2, t2, r2) {
|
|
1575
|
+
return I(e2, r2), (r3, o2) => w(e2, t2, [r3, o2]);
|
|
1576
|
+
}
|
|
1577
|
+
Object.defineProperties(CountQueuingStrategy.prototype, { highWaterMark: { enumerable: true }, size: { enumerable: true } }), "symbol" == typeof e.toStringTag && Object.defineProperty(CountQueuingStrategy.prototype, e.toStringTag, { value: "CountQueuingStrategy", configurable: true });
|
|
1578
|
+
var TransformStream = class {
|
|
1579
|
+
constructor(e2 = {}, t2 = {}, r2 = {}) {
|
|
1580
|
+
void 0 === e2 && (e2 = null);
|
|
1581
|
+
const o2 = Ye(t2, "Second parameter"), n2 = Ye(r2, "Third parameter"), a2 = (function(e3, t3) {
|
|
1582
|
+
F(e3, t3);
|
|
1583
|
+
const r3 = null == e3 ? void 0 : e3.flush, o3 = null == e3 ? void 0 : e3.readableType, n3 = null == e3 ? void 0 : e3.start, a3 = null == e3 ? void 0 : e3.transform, i3 = null == e3 ? void 0 : e3.writableType;
|
|
1584
|
+
return { flush: void 0 === r3 ? void 0 : ir(r3, e3, `${t3} has member 'flush' that`), readableType: o3, start: void 0 === n3 ? void 0 : lr(n3, e3, `${t3} has member 'start' that`), transform: void 0 === a3 ? void 0 : sr(a3, e3, `${t3} has member 'transform' that`), writableType: i3 };
|
|
1585
|
+
})(e2, "First parameter");
|
|
1586
|
+
if (void 0 !== a2.readableType) throw new RangeError("Invalid readableType specified");
|
|
1587
|
+
if (void 0 !== a2.writableType) throw new RangeError("Invalid writableType specified");
|
|
1588
|
+
const i2 = $e(n2, 0), l2 = Me(n2), s2 = $e(o2, 1), f2 = Me(o2);
|
|
1589
|
+
let b2;
|
|
1590
|
+
!(function(e3, t3, r3, o3, n3, a3) {
|
|
1591
|
+
function i3() {
|
|
1592
|
+
return t3;
|
|
1593
|
+
}
|
|
1594
|
+
function l3(t4) {
|
|
1595
|
+
return (function(e4, t5) {
|
|
1596
|
+
const r4 = e4._transformStreamController;
|
|
1597
|
+
if (e4._backpressure) {
|
|
1598
|
+
return p(e4._backpressureChangePromise, (() => {
|
|
1599
|
+
if ("erroring" === (Ge(e4._writable) ? e4._writable._state : e4._writableState)) throw Ge(e4._writable) ? e4._writable._storedError : e4._writableStoredError;
|
|
1600
|
+
return pr(r4, t5);
|
|
1601
|
+
}));
|
|
1602
|
+
}
|
|
1603
|
+
return pr(r4, t5);
|
|
1604
|
+
})(e3, t4);
|
|
1605
|
+
}
|
|
1606
|
+
function s3(t4) {
|
|
1607
|
+
return (function(e4, t5) {
|
|
1608
|
+
return cr(e4, t5), c(void 0);
|
|
1609
|
+
})(e3, t4);
|
|
1610
|
+
}
|
|
1611
|
+
function u2() {
|
|
1612
|
+
return (function(e4) {
|
|
1613
|
+
const t4 = e4._transformStreamController, r4 = t4._flushAlgorithm();
|
|
1614
|
+
return hr(t4), p(r4, (() => {
|
|
1615
|
+
if ("errored" === e4._readableState) throw e4._readableStoredError;
|
|
1616
|
+
gr(e4) && wr(e4);
|
|
1617
|
+
}), ((t5) => {
|
|
1618
|
+
throw cr(e4, t5), e4._readableStoredError;
|
|
1619
|
+
}));
|
|
1620
|
+
})(e3);
|
|
1621
|
+
}
|
|
1622
|
+
function d2() {
|
|
1623
|
+
return (function(e4) {
|
|
1624
|
+
return fr(e4, false), e4._backpressureChangePromise;
|
|
1625
|
+
})(e3);
|
|
1626
|
+
}
|
|
1627
|
+
function f3(t4) {
|
|
1628
|
+
return dr(e3, t4), c(void 0);
|
|
1629
|
+
}
|
|
1630
|
+
e3._writableState = "writable", e3._writableStoredError = void 0, e3._writableHasInFlightOperation = false, e3._writableStarted = false, e3._writable = (function(e4, t4, r4, o4, n4, a4, i4) {
|
|
1631
|
+
return new WritableStream({ start(r5) {
|
|
1632
|
+
e4._writableController = r5;
|
|
1633
|
+
try {
|
|
1634
|
+
const t5 = r5.signal;
|
|
1635
|
+
void 0 !== t5 && t5.addEventListener("abort", (() => {
|
|
1636
|
+
"writable" === e4._writableState && (e4._writableState = "erroring", t5.reason && (e4._writableStoredError = t5.reason));
|
|
1637
|
+
}));
|
|
1638
|
+
} catch (e5) {
|
|
1639
|
+
}
|
|
1640
|
+
return p(t4(), (() => (e4._writableStarted = true, Cr(e4), null)), ((t5) => {
|
|
1641
|
+
throw e4._writableStarted = true, Rr(e4, t5), t5;
|
|
1642
|
+
}));
|
|
1643
|
+
}, write: (t5) => ((function(e5) {
|
|
1644
|
+
e5._writableHasInFlightOperation = true;
|
|
1645
|
+
})(e4), p(r4(t5), (() => ((function(e5) {
|
|
1646
|
+
e5._writableHasInFlightOperation = false;
|
|
1647
|
+
})(e4), Cr(e4), null)), ((t6) => {
|
|
1648
|
+
throw (function(e5, t7) {
|
|
1649
|
+
e5._writableHasInFlightOperation = false, Rr(e5, t7);
|
|
1650
|
+
})(e4, t6), t6;
|
|
1651
|
+
}))), close: () => ((function(e5) {
|
|
1652
|
+
e5._writableHasInFlightOperation = true;
|
|
1653
|
+
})(e4), p(o4(), (() => ((function(e5) {
|
|
1654
|
+
e5._writableHasInFlightOperation = false;
|
|
1655
|
+
"erroring" === e5._writableState && (e5._writableStoredError = void 0);
|
|
1656
|
+
e5._writableState = "closed";
|
|
1657
|
+
})(e4), null)), ((t5) => {
|
|
1658
|
+
throw (function(e5, t6) {
|
|
1659
|
+
e5._writableHasInFlightOperation = false, e5._writableState, Rr(e5, t6);
|
|
1660
|
+
})(e4, t5), t5;
|
|
1661
|
+
}))), abort: (t5) => (e4._writableState = "errored", e4._writableStoredError = t5, n4(t5)) }, { highWaterMark: a4, size: i4 });
|
|
1662
|
+
})(e3, i3, l3, u2, s3, r3, o3), e3._readableState = "readable", e3._readableStoredError = void 0, e3._readableCloseRequested = false, e3._readablePulling = false, e3._readable = (function(e4, t4, r4, o4, n4, a4) {
|
|
1663
|
+
return new ReadableStream({ start: (r5) => (e4._readableController = r5, t4().catch(((t5) => {
|
|
1664
|
+
Sr(e4, t5);
|
|
1665
|
+
}))), pull: () => (e4._readablePulling = true, r4().catch(((t5) => {
|
|
1666
|
+
Sr(e4, t5);
|
|
1667
|
+
}))), cancel: (t5) => (e4._readableState = "closed", o4(t5)) }, { highWaterMark: n4, size: a4 });
|
|
1668
|
+
})(e3, i3, d2, f3, n3, a3), e3._backpressure = void 0, e3._backpressureChangePromise = void 0, e3._backpressureChangePromise_resolve = void 0, fr(e3, true), e3._transformStreamController = void 0;
|
|
1669
|
+
})(this, u(((e3) => {
|
|
1670
|
+
b2 = e3;
|
|
1671
|
+
})), s2, f2, i2, l2), (function(e3, t3) {
|
|
1672
|
+
const r3 = Object.create(TransformStreamDefaultController.prototype);
|
|
1673
|
+
let o3, n3;
|
|
1674
|
+
o3 = void 0 !== t3.transform ? (e4) => t3.transform(e4, r3) : (e4) => {
|
|
1675
|
+
try {
|
|
1676
|
+
return _r(r3, e4), c(void 0);
|
|
1677
|
+
} catch (e5) {
|
|
1678
|
+
return d(e5);
|
|
1679
|
+
}
|
|
1680
|
+
};
|
|
1681
|
+
n3 = void 0 !== t3.flush ? () => t3.flush(r3) : () => c(void 0);
|
|
1682
|
+
!(function(e4, t4, r4, o4) {
|
|
1683
|
+
t4._controlledTransformStream = e4, e4._transformStreamController = t4, t4._transformAlgorithm = r4, t4._flushAlgorithm = o4;
|
|
1684
|
+
})(e3, r3, o3, n3);
|
|
1685
|
+
})(this, a2), void 0 !== a2.start ? b2(a2.start(this._transformStreamController)) : b2(void 0);
|
|
1686
|
+
}
|
|
1687
|
+
get readable() {
|
|
1688
|
+
if (!ur(this)) throw yr("readable");
|
|
1689
|
+
return this._readable;
|
|
1690
|
+
}
|
|
1691
|
+
get writable() {
|
|
1692
|
+
if (!ur(this)) throw yr("writable");
|
|
1693
|
+
return this._writable;
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
function ur(e2) {
|
|
1697
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_transformStreamController") && e2 instanceof TransformStream);
|
|
1698
|
+
}
|
|
1699
|
+
function cr(e2, t2) {
|
|
1700
|
+
Sr(e2, t2), dr(e2, t2);
|
|
1701
|
+
}
|
|
1702
|
+
function dr(e2, t2) {
|
|
1703
|
+
hr(e2._transformStreamController), (function(e3, t3) {
|
|
1704
|
+
e3._writableController.error(t3);
|
|
1705
|
+
"writable" === e3._writableState && Tr(e3, t3);
|
|
1706
|
+
})(e2, t2), e2._backpressure && fr(e2, false);
|
|
1707
|
+
}
|
|
1708
|
+
function fr(e2, t2) {
|
|
1709
|
+
void 0 !== e2._backpressureChangePromise && e2._backpressureChangePromise_resolve(), e2._backpressureChangePromise = u(((t3) => {
|
|
1710
|
+
e2._backpressureChangePromise_resolve = t3;
|
|
1711
|
+
})), e2._backpressure = t2;
|
|
1712
|
+
}
|
|
1713
|
+
Object.defineProperties(TransformStream.prototype, { readable: { enumerable: true }, writable: { enumerable: true } }), "symbol" == typeof e.toStringTag && Object.defineProperty(TransformStream.prototype, e.toStringTag, { value: "TransformStream", configurable: true });
|
|
1714
|
+
var TransformStreamDefaultController = class {
|
|
1715
|
+
constructor() {
|
|
1716
|
+
throw new TypeError("Illegal constructor");
|
|
1717
|
+
}
|
|
1718
|
+
get desiredSize() {
|
|
1719
|
+
if (!br(this)) throw mr("desiredSize");
|
|
1720
|
+
return vr(this._controlledTransformStream);
|
|
1721
|
+
}
|
|
1722
|
+
enqueue(e2) {
|
|
1723
|
+
if (!br(this)) throw mr("enqueue");
|
|
1724
|
+
_r(this, e2);
|
|
1725
|
+
}
|
|
1726
|
+
error(e2) {
|
|
1727
|
+
if (!br(this)) throw mr("error");
|
|
1728
|
+
var t2;
|
|
1729
|
+
t2 = e2, cr(this._controlledTransformStream, t2);
|
|
1730
|
+
}
|
|
1731
|
+
terminate() {
|
|
1732
|
+
if (!br(this)) throw mr("terminate");
|
|
1733
|
+
!(function(e2) {
|
|
1734
|
+
const t2 = e2._controlledTransformStream;
|
|
1735
|
+
gr(t2) && wr(t2);
|
|
1736
|
+
const r2 = new TypeError("TransformStream terminated");
|
|
1737
|
+
dr(t2, r2);
|
|
1738
|
+
})(this);
|
|
1739
|
+
}
|
|
1740
|
+
};
|
|
1741
|
+
function br(e2) {
|
|
1742
|
+
return !!r(e2) && (!!Object.prototype.hasOwnProperty.call(e2, "_controlledTransformStream") && e2 instanceof TransformStreamDefaultController);
|
|
1743
|
+
}
|
|
1744
|
+
function hr(e2) {
|
|
1745
|
+
e2._transformAlgorithm = void 0, e2._flushAlgorithm = void 0;
|
|
1746
|
+
}
|
|
1747
|
+
function _r(e2, t2) {
|
|
1748
|
+
const r2 = e2._controlledTransformStream;
|
|
1749
|
+
if (!gr(r2)) throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
1750
|
+
try {
|
|
1751
|
+
!(function(e3, t3) {
|
|
1752
|
+
e3._readablePulling = false;
|
|
1753
|
+
try {
|
|
1754
|
+
e3._readableController.enqueue(t3);
|
|
1755
|
+
} catch (t4) {
|
|
1756
|
+
throw Sr(e3, t4), t4;
|
|
1757
|
+
}
|
|
1758
|
+
})(r2, t2);
|
|
1759
|
+
} catch (e3) {
|
|
1760
|
+
throw dr(r2, e3), r2._readableStoredError;
|
|
1761
|
+
}
|
|
1762
|
+
const o2 = (function(e3) {
|
|
1763
|
+
return !(function(e4) {
|
|
1764
|
+
if (!gr(e4)) return false;
|
|
1765
|
+
if (e4._readablePulling) return true;
|
|
1766
|
+
if (vr(e4) > 0) return true;
|
|
1767
|
+
return false;
|
|
1768
|
+
})(e3);
|
|
1769
|
+
})(r2);
|
|
1770
|
+
o2 !== r2._backpressure && fr(r2, true);
|
|
1771
|
+
}
|
|
1772
|
+
function pr(e2, t2) {
|
|
1773
|
+
return p(e2._transformAlgorithm(t2), void 0, ((t3) => {
|
|
1774
|
+
throw cr(e2._controlledTransformStream, t3), t3;
|
|
1775
|
+
}));
|
|
1776
|
+
}
|
|
1777
|
+
function mr(e2) {
|
|
1778
|
+
return new TypeError(`TransformStreamDefaultController.prototype.${e2} can only be used on a TransformStreamDefaultController`);
|
|
1779
|
+
}
|
|
1780
|
+
function yr(e2) {
|
|
1781
|
+
return new TypeError(`TransformStream.prototype.${e2} can only be used on a TransformStream`);
|
|
1782
|
+
}
|
|
1783
|
+
function gr(e2) {
|
|
1784
|
+
return !e2._readableCloseRequested && "readable" === e2._readableState;
|
|
1785
|
+
}
|
|
1786
|
+
function wr(e2) {
|
|
1787
|
+
e2._readableState = "closed", e2._readableCloseRequested = true, e2._readableController.close();
|
|
1788
|
+
}
|
|
1789
|
+
function Sr(e2, t2) {
|
|
1790
|
+
"readable" === e2._readableState && (e2._readableState = "errored", e2._readableStoredError = t2), e2._readableController.error(t2);
|
|
1791
|
+
}
|
|
1792
|
+
function vr(e2) {
|
|
1793
|
+
return e2._readableController.desiredSize;
|
|
1794
|
+
}
|
|
1795
|
+
function Rr(e2, t2) {
|
|
1796
|
+
"writable" !== e2._writableState ? qr(e2) : Tr(e2, t2);
|
|
1797
|
+
}
|
|
1798
|
+
function Tr(e2, t2) {
|
|
1799
|
+
e2._writableState = "erroring", e2._writableStoredError = t2, !(function(e3) {
|
|
1800
|
+
return e3._writableHasInFlightOperation;
|
|
1801
|
+
})(e2) && e2._writableStarted && qr(e2);
|
|
1802
|
+
}
|
|
1803
|
+
function qr(e2) {
|
|
1804
|
+
e2._writableState = "errored";
|
|
1805
|
+
}
|
|
1806
|
+
function Cr(e2) {
|
|
1807
|
+
"erroring" === e2._writableState && qr(e2);
|
|
1808
|
+
}
|
|
1809
|
+
Object.defineProperties(TransformStreamDefaultController.prototype, { enqueue: { enumerable: true }, error: { enumerable: true }, terminate: { enumerable: true }, desiredSize: { enumerable: true } }), n(TransformStreamDefaultController.prototype.enqueue, "enqueue"), n(TransformStreamDefaultController.prototype.error, "error"), n(TransformStreamDefaultController.prototype.terminate, "terminate"), "symbol" == typeof e.toStringTag && Object.defineProperty(TransformStreamDefaultController.prototype, e.toStringTag, { value: "TransformStreamDefaultController", configurable: true });
|
|
1810
|
+
|
|
1811
|
+
// node_modules/formdata-node/lib/esm/isFunction.js
|
|
1812
|
+
var isFunction = (value) => typeof value === "function";
|
|
1813
|
+
|
|
1814
|
+
// node_modules/formdata-node/lib/esm/blobHelpers.js
|
|
1815
|
+
var CHUNK_SIZE = 65536;
|
|
1816
|
+
async function* clonePart(part) {
|
|
1817
|
+
const end = part.byteOffset + part.byteLength;
|
|
1818
|
+
let position = part.byteOffset;
|
|
1819
|
+
while (position !== end) {
|
|
1820
|
+
const size = Math.min(end - position, CHUNK_SIZE);
|
|
1821
|
+
const chunk = part.buffer.slice(position, position + size);
|
|
1822
|
+
position += chunk.byteLength;
|
|
1823
|
+
yield new Uint8Array(chunk);
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
async function* consumeNodeBlob(blob) {
|
|
1827
|
+
let position = 0;
|
|
1828
|
+
while (position !== blob.size) {
|
|
1829
|
+
const chunk = blob.slice(position, Math.min(blob.size, position + CHUNK_SIZE));
|
|
1830
|
+
const buffer = await chunk.arrayBuffer();
|
|
1831
|
+
position += buffer.byteLength;
|
|
1832
|
+
yield new Uint8Array(buffer);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
async function* consumeBlobParts(parts, clone = false) {
|
|
1836
|
+
for (const part of parts) {
|
|
1837
|
+
if (ArrayBuffer.isView(part)) {
|
|
1838
|
+
if (clone) {
|
|
1839
|
+
yield* clonePart(part);
|
|
1840
|
+
} else {
|
|
1841
|
+
yield part;
|
|
1842
|
+
}
|
|
1843
|
+
} else if (isFunction(part.stream)) {
|
|
1844
|
+
yield* part.stream();
|
|
1845
|
+
} else {
|
|
1846
|
+
yield* consumeNodeBlob(part);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
function* sliceBlob(blobParts, blobSize, start = 0, end) {
|
|
1851
|
+
end !== null && end !== void 0 ? end : end = blobSize;
|
|
1852
|
+
let relativeStart = start < 0 ? Math.max(blobSize + start, 0) : Math.min(start, blobSize);
|
|
1853
|
+
let relativeEnd = end < 0 ? Math.max(blobSize + end, 0) : Math.min(end, blobSize);
|
|
1854
|
+
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
1855
|
+
let added = 0;
|
|
1856
|
+
for (const part of blobParts) {
|
|
1857
|
+
if (added >= span) {
|
|
1858
|
+
break;
|
|
1859
|
+
}
|
|
1860
|
+
const partSize = ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
1861
|
+
if (relativeStart && partSize <= relativeStart) {
|
|
1862
|
+
relativeStart -= partSize;
|
|
1863
|
+
relativeEnd -= partSize;
|
|
1864
|
+
} else {
|
|
1865
|
+
let chunk;
|
|
1866
|
+
if (ArrayBuffer.isView(part)) {
|
|
1867
|
+
chunk = part.subarray(relativeStart, Math.min(partSize, relativeEnd));
|
|
1868
|
+
added += chunk.byteLength;
|
|
1869
|
+
} else {
|
|
1870
|
+
chunk = part.slice(relativeStart, Math.min(partSize, relativeEnd));
|
|
1871
|
+
added += chunk.size;
|
|
1872
|
+
}
|
|
1873
|
+
relativeEnd -= partSize;
|
|
1874
|
+
relativeStart = 0;
|
|
1875
|
+
yield chunk;
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
// node_modules/formdata-node/lib/esm/Blob.js
|
|
1881
|
+
var __classPrivateFieldGet = function(receiver, state, kind, f2) {
|
|
1882
|
+
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a getter");
|
|
1883
|
+
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1884
|
+
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
|
|
1885
|
+
};
|
|
1886
|
+
var __classPrivateFieldSet = function(receiver, state, value, kind, f2) {
|
|
1887
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
1888
|
+
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a setter");
|
|
1889
|
+
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1890
|
+
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
1891
|
+
};
|
|
1892
|
+
var _Blob_parts;
|
|
1893
|
+
var _Blob_type;
|
|
1894
|
+
var _Blob_size;
|
|
1895
|
+
var Blob = class _Blob {
|
|
1896
|
+
constructor(blobParts = [], options = {}) {
|
|
1897
|
+
_Blob_parts.set(this, []);
|
|
1898
|
+
_Blob_type.set(this, "");
|
|
1899
|
+
_Blob_size.set(this, 0);
|
|
1900
|
+
options !== null && options !== void 0 ? options : options = {};
|
|
1901
|
+
if (typeof blobParts !== "object" || blobParts === null) {
|
|
1902
|
+
throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
1903
|
+
}
|
|
1904
|
+
if (!isFunction(blobParts[Symbol.iterator])) {
|
|
1905
|
+
throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
|
|
1906
|
+
}
|
|
1907
|
+
if (typeof options !== "object" && !isFunction(options)) {
|
|
1908
|
+
throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
1909
|
+
}
|
|
1910
|
+
const encoder = new TextEncoder();
|
|
1911
|
+
for (const raw of blobParts) {
|
|
1912
|
+
let part;
|
|
1913
|
+
if (ArrayBuffer.isView(raw)) {
|
|
1914
|
+
part = new Uint8Array(raw.buffer.slice(raw.byteOffset, raw.byteOffset + raw.byteLength));
|
|
1915
|
+
} else if (raw instanceof ArrayBuffer) {
|
|
1916
|
+
part = new Uint8Array(raw.slice(0));
|
|
1917
|
+
} else if (raw instanceof _Blob) {
|
|
1918
|
+
part = raw;
|
|
1919
|
+
} else {
|
|
1920
|
+
part = encoder.encode(String(raw));
|
|
1921
|
+
}
|
|
1922
|
+
__classPrivateFieldSet(this, _Blob_size, __classPrivateFieldGet(this, _Blob_size, "f") + (ArrayBuffer.isView(part) ? part.byteLength : part.size), "f");
|
|
1923
|
+
__classPrivateFieldGet(this, _Blob_parts, "f").push(part);
|
|
1924
|
+
}
|
|
1925
|
+
const type = options.type === void 0 ? "" : String(options.type);
|
|
1926
|
+
__classPrivateFieldSet(this, _Blob_type, /^[\x20-\x7E]*$/.test(type) ? type : "", "f");
|
|
1927
|
+
}
|
|
1928
|
+
static [(_Blob_parts = /* @__PURE__ */ new WeakMap(), _Blob_type = /* @__PURE__ */ new WeakMap(), _Blob_size = /* @__PURE__ */ new WeakMap(), Symbol.hasInstance)](value) {
|
|
1929
|
+
return Boolean(value && typeof value === "object" && isFunction(value.constructor) && (isFunction(value.stream) || isFunction(value.arrayBuffer)) && /^(Blob|File)$/.test(value[Symbol.toStringTag]));
|
|
1930
|
+
}
|
|
1931
|
+
get type() {
|
|
1932
|
+
return __classPrivateFieldGet(this, _Blob_type, "f");
|
|
1933
|
+
}
|
|
1934
|
+
get size() {
|
|
1935
|
+
return __classPrivateFieldGet(this, _Blob_size, "f");
|
|
1936
|
+
}
|
|
1937
|
+
slice(start, end, contentType) {
|
|
1938
|
+
return new _Blob(sliceBlob(__classPrivateFieldGet(this, _Blob_parts, "f"), this.size, start, end), {
|
|
1939
|
+
type: contentType
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
async text() {
|
|
1943
|
+
const decoder = new TextDecoder();
|
|
1944
|
+
let result = "";
|
|
1945
|
+
for await (const chunk of consumeBlobParts(__classPrivateFieldGet(this, _Blob_parts, "f"))) {
|
|
1946
|
+
result += decoder.decode(chunk, { stream: true });
|
|
1947
|
+
}
|
|
1948
|
+
result += decoder.decode();
|
|
1949
|
+
return result;
|
|
1950
|
+
}
|
|
1951
|
+
async arrayBuffer() {
|
|
1952
|
+
const view = new Uint8Array(this.size);
|
|
1953
|
+
let offset = 0;
|
|
1954
|
+
for await (const chunk of consumeBlobParts(__classPrivateFieldGet(this, _Blob_parts, "f"))) {
|
|
1955
|
+
view.set(chunk, offset);
|
|
1956
|
+
offset += chunk.length;
|
|
1957
|
+
}
|
|
1958
|
+
return view.buffer;
|
|
1959
|
+
}
|
|
1960
|
+
stream() {
|
|
1961
|
+
const iterator = consumeBlobParts(__classPrivateFieldGet(this, _Blob_parts, "f"), true);
|
|
1962
|
+
return new ReadableStream({
|
|
1963
|
+
async pull(controller) {
|
|
1964
|
+
const { value, done } = await iterator.next();
|
|
1965
|
+
if (done) {
|
|
1966
|
+
return queueMicrotask(() => controller.close());
|
|
1967
|
+
}
|
|
1968
|
+
controller.enqueue(value);
|
|
1969
|
+
},
|
|
1970
|
+
async cancel() {
|
|
1971
|
+
await iterator.return();
|
|
1972
|
+
}
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
get [Symbol.toStringTag]() {
|
|
1976
|
+
return "Blob";
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1979
|
+
Object.defineProperties(Blob.prototype, {
|
|
1980
|
+
type: { enumerable: true },
|
|
1981
|
+
size: { enumerable: true },
|
|
1982
|
+
slice: { enumerable: true },
|
|
1983
|
+
stream: { enumerable: true },
|
|
1984
|
+
text: { enumerable: true },
|
|
1985
|
+
arrayBuffer: { enumerable: true }
|
|
1986
|
+
});
|
|
1987
|
+
|
|
1988
|
+
// node_modules/formdata-node/lib/esm/File.js
|
|
1989
|
+
var __classPrivateFieldSet2 = function(receiver, state, value, kind, f2) {
|
|
1990
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
1991
|
+
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a setter");
|
|
1992
|
+
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1993
|
+
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
1994
|
+
};
|
|
1995
|
+
var __classPrivateFieldGet2 = function(receiver, state, kind, f2) {
|
|
1996
|
+
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a getter");
|
|
1997
|
+
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1998
|
+
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
|
|
1999
|
+
};
|
|
2000
|
+
var _File_name;
|
|
2001
|
+
var _File_lastModified;
|
|
2002
|
+
var File = class extends Blob {
|
|
2003
|
+
constructor(fileBits, name, options = {}) {
|
|
2004
|
+
super(fileBits, options);
|
|
2005
|
+
_File_name.set(this, void 0);
|
|
2006
|
+
_File_lastModified.set(this, 0);
|
|
2007
|
+
if (arguments.length < 2) {
|
|
2008
|
+
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
|
2009
|
+
}
|
|
2010
|
+
__classPrivateFieldSet2(this, _File_name, String(name), "f");
|
|
2011
|
+
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
|
2012
|
+
if (!Number.isNaN(lastModified)) {
|
|
2013
|
+
__classPrivateFieldSet2(this, _File_lastModified, lastModified, "f");
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
static [(_File_name = /* @__PURE__ */ new WeakMap(), _File_lastModified = /* @__PURE__ */ new WeakMap(), Symbol.hasInstance)](value) {
|
|
2017
|
+
return value instanceof Blob && value[Symbol.toStringTag] === "File" && typeof value.name === "string";
|
|
2018
|
+
}
|
|
2019
|
+
get name() {
|
|
2020
|
+
return __classPrivateFieldGet2(this, _File_name, "f");
|
|
2021
|
+
}
|
|
2022
|
+
get lastModified() {
|
|
2023
|
+
return __classPrivateFieldGet2(this, _File_lastModified, "f");
|
|
2024
|
+
}
|
|
2025
|
+
get webkitRelativePath() {
|
|
2026
|
+
return "";
|
|
2027
|
+
}
|
|
2028
|
+
get [Symbol.toStringTag]() {
|
|
2029
|
+
return "File";
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
|
|
2033
|
+
// node_modules/formdata-node/lib/esm/isFile.js
|
|
2034
|
+
var isFile = (value) => value instanceof File;
|
|
2035
|
+
|
|
2036
|
+
export {
|
|
2037
|
+
isFunction,
|
|
2038
|
+
Blob,
|
|
2039
|
+
File,
|
|
2040
|
+
isFile
|
|
2041
|
+
};
|