hyperclaw 5.4.0 → 5.4.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 +1 -0
- package/dist/a2ui-protocol-CUqdJGh7.js +75 -0
- package/dist/a2ui-protocol-CibzbTxL.js +75 -0
- package/dist/a2ui-protocol-Dtb8zlog.js +75 -0
- package/dist/a2ui-protocol-ORP2Etw0.js +75 -0
- package/dist/a2ui-protocol-whRZHdBk.js +75 -0
- package/dist/abort-controller-B55O1IgK.js +47995 -0
- package/dist/agents-routing-Ai2BQVpU.js +7 -0
- package/dist/agents-routing-B0D0vcp5.js +424 -0
- package/dist/agents-routing-B0RBl1B8.js +424 -0
- package/dist/agents-routing-BC6GndVe.js +7 -0
- package/dist/agents-routing-BSUaOpce.js +7 -0
- package/dist/agents-routing-C4PVN8G6.js +7 -0
- package/dist/agents-routing-CyFBHvyk.js +424 -0
- package/dist/agents-routing-Dcr29-JV.js +424 -0
- package/dist/agents-routing-DdpszaMx.js +7 -0
- package/dist/agents-routing-EwzORQQv.js +424 -0
- package/dist/agents-routing-Fd-uQ4R_.js +7 -0
- package/dist/agents-routing-eLjVYBAk.js +424 -0
- package/dist/api-key-validation-BANgbsfO.js +66 -0
- package/dist/api-key-validation-Bnz-0MMK.js +66 -0
- package/dist/api-key-validation-D_fMCaO5.js +66 -0
- package/dist/api-key-validation-Db7rG3JU.js +66 -0
- package/dist/api-key-validation-DrMrLEa0.js +66 -0
- package/dist/api-keys-guide-B6AJ1V5D.js +149 -0
- package/dist/api-keys-guide-C75JQOdH.js +149 -0
- package/dist/api-keys-guide-CFJPrgsL.js +149 -0
- package/dist/api-keys-guide-DDz08BJQ.js +149 -0
- package/dist/api-keys-guide-DmKF7tB-.js +149 -0
- package/dist/audit-BLMB8qp7.js +445 -0
- package/dist/audit-Cb2TvqYZ.js +445 -0
- package/dist/audit-D7koAKvj.js +445 -0
- package/dist/audit-Q-Uy5nem.js +445 -0
- package/dist/audit-xP_175jB.js +445 -0
- package/dist/backup-7l3iovkX.js +86 -0
- package/dist/backup-BKLTHh62.js +86 -0
- package/dist/backup-CspxXk78.js +86 -0
- package/dist/backup-CtHJEqGr.js +86 -0
- package/dist/backup-D8dFYDXV.js +86 -0
- package/dist/banner-CZ2BfvQq.js +143 -0
- package/dist/banner-CjTRWmks.js +7 -0
- package/dist/banner-DYzQ8cCb.js +143 -0
- package/dist/banner-Dpygks0H.js +143 -0
- package/dist/banner-ZX1WLr44.js +7 -0
- package/dist/banner-jW84OrYg.js +7 -0
- package/dist/bounty-tools-CCwY61YO.js +211 -0
- package/dist/bounty-tools-Cq-oC9gk.js +211 -0
- package/dist/bounty-tools-DZ-WtRdE.js +211 -0
- package/dist/bounty-tools-DhpmjF5Y.js +211 -0
- package/dist/bounty-tools-NGuBWI55.js +211 -0
- package/dist/browser-tools-5Fl1hP_2.js +5 -0
- package/dist/browser-tools-Ay-wU_a4.js +5 -0
- package/dist/browser-tools-BMgBB2fK.js +179 -0
- package/dist/browser-tools-kcViDwk5.js +179 -0
- package/dist/chat-BUa1oGqj.js +528 -0
- package/dist/chat-CJa0ph8c.js +528 -0
- package/dist/chat-CKnfxa1-.js +528 -0
- package/dist/chat-CQKCIrIY.js +528 -0
- package/dist/chat-CiuT-GTs.js +528 -0
- package/dist/chat-DfI8uOzF.js +528 -0
- package/dist/chat-Dz5rmUSs.js +528 -0
- package/dist/chat-RTmX1F16.js +528 -0
- package/dist/chat-npW_ZOmo.js +528 -0
- package/dist/claw-tasks-Cio1Q7eA.js +80 -0
- package/dist/claw-tasks-Dq38PrL5.js +80 -0
- package/dist/claw-tasks-DzxNWVcz.js +80 -0
- package/dist/claw-tasks-L7vQSGlt.js +80 -0
- package/dist/claw-tasks-dndWneZW.js +80 -0
- package/dist/config-B-W-Mz4X.js +7 -0
- package/dist/config-BAwkTUJC.js +261 -0
- package/dist/config-BzK_Xl4Y.js +261 -0
- package/dist/config-CYPw2v4l.js +261 -0
- package/dist/config-ClsdlpXc.js +261 -0
- package/dist/config-DN9fdLL3.js +261 -0
- package/dist/config-Dm394B6X.js +7 -0
- package/dist/config-FejpHHTz.js +261 -0
- package/dist/config-SiLqEezw.js +7 -0
- package/dist/config-Tq_GJHf7.js +7 -0
- package/dist/config-n4qy5jIy.js +7 -0
- package/dist/config-qJUYRMzx.js +7 -0
- package/dist/connector-BYPxgmsD.js +312 -0
- package/dist/connector-CwT7KZm2.js +309 -0
- package/dist/connector-DX4k-lGd.js +442 -0
- package/dist/cost-tracker-C2q5zKic.js +103 -0
- package/dist/cost-tracker-CsRQAOEr.js +103 -0
- package/dist/cost-tracker-DAXWN5YT.js +103 -0
- package/dist/cost-tracker-bySvehH6.js +103 -0
- package/dist/cost-tracker-x9E8VKtk.js +103 -0
- package/dist/credentials-store-BAW87r6f.js +7 -0
- package/dist/credentials-store-BHtk7_H_.js +7 -0
- package/dist/credentials-store-CESgFvFU.js +89 -0
- package/dist/credentials-store-CR4WSDGl.js +7 -0
- package/dist/credentials-store-CXq4kZub.js +89 -0
- package/dist/credentials-store-DUp8dtaS.js +89 -0
- package/dist/credentials-store-Ddhgmbpz.js +7 -0
- package/dist/credentials-store-hiSga8qn.js +89 -0
- package/dist/credentials-store-kLdrmqSt.js +7 -0
- package/dist/credentials-store-onL1tYct.js +89 -0
- package/dist/cron-tasks-BFsaCKxE.js +89 -0
- package/dist/cron-tasks-BelA2aUW.js +89 -0
- package/dist/cron-tasks-CF4MJoIU.js +89 -0
- package/dist/cron-tasks-D1T9fWAb.js +89 -0
- package/dist/cron-tasks-f_ieXSG2.js +89 -0
- package/dist/daemon-ApB1nMs2.js +421 -0
- package/dist/daemon-B2ghXB-I.js +7 -0
- package/dist/daemon-BTYhQvD_.js +7 -0
- package/dist/daemon-BldYSrDj.js +421 -0
- package/dist/daemon-BoaFnmdF.js +421 -0
- package/dist/daemon-BqTcxMZe.js +7 -0
- package/dist/daemon-BrHxr4ut.js +421 -0
- package/dist/daemon-BzdeLgON.js +421 -0
- package/dist/daemon-BzqWIC4v.js +7 -0
- package/dist/daemon-C3OczPR1.js +7 -0
- package/dist/daemon-CivMFYkD.js +7 -0
- package/dist/daemon-D57KIIA3.js +421 -0
- package/dist/daemon-D8uyH9et.js +7 -0
- package/dist/daemon-DBTtYx6E.js +421 -0
- package/dist/daemon-DBXFUMue.js +421 -0
- package/dist/daemon-srcdhzUG.js +7 -0
- package/dist/delivery-BURWi8wu.js +4 -0
- package/dist/delivery-Bt0xW6L9.js +4 -0
- package/dist/delivery-C2sAERN7.js +4 -0
- package/dist/delivery-CF2Q4hb1.js +95 -0
- package/dist/delivery-CfMljOwk.js +95 -0
- package/dist/delivery-DP0d4_A4.js +95 -0
- package/dist/delivery-DXYt4aMO.js +4 -0
- package/dist/delivery-DXxP2UL4.js +4 -0
- package/dist/delivery-jT2UIDlU.js +95 -0
- package/dist/delivery-kZ2mVkU5.js +95 -0
- package/dist/destructive-gate-5LYh6brt.js +116 -0
- package/dist/destructive-gate-B_hNKtu6.js +116 -0
- package/dist/destructive-gate-C1ny9ek2.js +116 -0
- package/dist/destructive-gate-DvxPSDMR.js +116 -0
- package/dist/destructive-gate-Qd2y7x1B.js +116 -0
- package/dist/dist-B1qvBUax.js +30541 -0
- package/dist/engine-B-JvIt_Y.js +7 -0
- package/dist/engine-BBJlKpMP.js +7 -0
- package/dist/engine-BGZnBZ4m.js +7 -0
- package/dist/engine-BNygJfCo.js +335 -0
- package/dist/engine-BTSXJNba.js +346 -0
- package/dist/engine-C7LyH310.js +353 -0
- package/dist/engine-C_nC_Ioe.js +351 -0
- package/dist/engine-DB4MBzki.js +7 -0
- package/dist/engine-DCtJSbKU.js +7 -0
- package/dist/engine-DPi9fhMl.js +332 -0
- package/dist/engine-DeaqDcaT.js +7 -0
- package/dist/engine-DuvXJrUP.js +335 -0
- package/dist/engine-HkyTC_xl.js +332 -0
- package/dist/engine-JysunhPR.js +7 -0
- package/dist/engine-MzEUw7qb.js +7 -0
- package/dist/engine-j9Yaqt_-.js +332 -0
- package/dist/env-resolve--MaE2kFF.js +167 -0
- package/dist/env-resolve-BYWG94tK.js +11 -0
- package/dist/env-resolve-Bop7KbNq.js +167 -0
- package/dist/env-resolve-Buos635Y.js +167 -0
- package/dist/env-resolve-C0R8R7pb.js +167 -0
- package/dist/env-resolve-D3dP1-Xt.js +11 -0
- package/dist/env-resolve-Dr-KfTtw.js +11 -0
- package/dist/env-resolve-DvsbhPKl.js +11 -0
- package/dist/env-resolve-NNM3F6Eo.js +167 -0
- package/dist/env-resolve-dTjn-g8X.js +11 -0
- package/dist/extraction-tools-Bh5F0ENP.js +91 -0
- package/dist/extraction-tools-BjzXD9LW.js +5 -0
- package/dist/extraction-tools-D1lrDYhe.js +5 -0
- package/dist/extraction-tools-FBwtT2Bx.js +91 -0
- package/dist/fileFromPath-CodL6KXh.js +85 -0
- package/dist/gmail-watch-setup--eQ8raeb.js +42 -0
- package/dist/gmail-watch-setup-9t14gy1B.js +42 -0
- package/dist/gmail-watch-setup-B9fx_OLg.js +42 -0
- package/dist/gmail-watch-setup-BzbG0ICM.js +42 -0
- package/dist/gmail-watch-setup-DP3kDRx1.js +42 -0
- package/dist/heartbeat-engine-5iOlL7Dj.js +89 -0
- package/dist/heartbeat-engine-B9bhAHNi.js +89 -0
- package/dist/heartbeat-engine-Bu4q18GH.js +89 -0
- package/dist/heartbeat-engine-CF_JjNJ4.js +89 -0
- package/dist/heartbeat-engine-CLADYZxE.js +89 -0
- package/dist/hub-CZeGrS20.js +6 -0
- package/dist/hub-DAkEVTEy.js +545 -0
- package/dist/hyperclawbot-BEm8_87h.js +516 -0
- package/dist/hyperclawbot-CNVUtvYC.js +516 -0
- package/dist/hyperclawbot-D5ofLNgm.js +516 -0
- package/dist/hyperclawbot-D61zVMyQ.js +516 -0
- package/dist/hyperclawbot-DR6BgI_d.js +516 -0
- package/dist/hyperclawbot-DwScttSx.js +516 -0
- package/dist/hyperclawbot-hZv4pde0.js +516 -0
- package/dist/hyperclawbot-v65eL2U0.js +516 -0
- package/dist/inference-BEvs7s3c.js +2854 -0
- package/dist/inference-C4b9YqXk.js +8 -0
- package/dist/inference-C874-2MI.js +8 -0
- package/dist/inference-CRF6HyyH.js +2854 -0
- package/dist/inference-CfhTACI8.js +2854 -0
- package/dist/inference-DCSz6Sb1.js +2880 -0
- package/dist/inference-DGsy36Ru.js +8 -0
- package/dist/inference-Da7Hw4J3.js +8 -0
- package/dist/inference-DhJ-SHZn.js +8 -0
- package/dist/inference-K7Jrnzre.js +2854 -0
- package/dist/isFile-CSxoSB8X.js +2274 -0
- package/dist/knowledge-graph-BdsJ5KEL.js +134 -0
- package/dist/knowledge-graph-BiIvoxPt.js +134 -0
- package/dist/knowledge-graph-CFRBepzr.js +134 -0
- package/dist/knowledge-graph-CeDeahui.js +134 -0
- package/dist/knowledge-graph-DoYFZnUr.js +134 -0
- package/dist/loader-C2qtNbtF.js +6 -0
- package/dist/loader-D6yjBYo4.js +410 -0
- package/dist/loader-DBO6yRNh.js +6 -0
- package/dist/loader-DMMb9emn.js +410 -0
- package/dist/loader-DUhmG3V9.js +410 -0
- package/dist/loader-Dl8LNycw.js +6 -0
- package/dist/loader-JktrmJOG.js +6 -0
- package/dist/loader-UpOYxgZv.js +6 -0
- package/dist/loader-hXv2mZjK.js +410 -0
- package/dist/loader-nDBcv3Tm.js +410 -0
- package/dist/logger-BD316YbA.js +86 -0
- package/dist/logger-BnXZkfsp.js +86 -0
- package/dist/logger-CmphFNmW.js +86 -0
- package/dist/logger-DkHzhh56.js +86 -0
- package/dist/logger-Oty9sC13.js +86 -0
- package/dist/manager-3-q8zuAW.js +250 -0
- package/dist/manager-BIc6zzZV.js +250 -0
- package/dist/manager-BkMzc-EJ.js +250 -0
- package/dist/manager-Bq5LApdR.js +6 -0
- package/dist/manager-BwobWy0l.js +120 -0
- package/dist/manager-CNgdJunf.js +250 -0
- package/dist/manager-CozyZSDG.js +250 -0
- package/dist/manager-D4mDWXph.js +120 -0
- package/dist/manager-DuS-WQhZ.js +120 -0
- package/dist/manager-Dz2eKYqo.js +116 -0
- package/dist/manager-R0TlRMZy.js +120 -0
- package/dist/manager-aJfY7rt6.js +120 -0
- package/dist/mcp-BH7HtOQ8.js +142 -0
- package/dist/mcp-CAJSA_ee.js +142 -0
- package/dist/mcp-CD-iIQa2.js +142 -0
- package/dist/mcp-CI2F3m8G.js +142 -0
- package/dist/mcp-DGo37Ifb.js +142 -0
- package/dist/mcp-loader-C-21ynRH.js +93 -0
- package/dist/mcp-loader-Ct1NQKnX.js +93 -0
- package/dist/mcp-loader-D1T6UX73.js +93 -0
- package/dist/mcp-loader-DJk6MEof.js +93 -0
- package/dist/mcp-loader-DdXvU63s.js +93 -0
- package/dist/mcp-loader-Di7n__ta.js +93 -0
- package/dist/mcp-loader-gMliiJ7R.js +93 -0
- package/dist/memory-CyonlkTy.js +6 -0
- package/dist/memory-DPSWQBc0.js +276 -0
- package/dist/memory-auto-B0QOqaUD.js +306 -0
- package/dist/memory-auto-BSxYJugl.js +5 -0
- package/dist/memory-auto-BVCJeTwd.js +306 -0
- package/dist/memory-auto-CcFRxMj-.js +306 -0
- package/dist/memory-auto-CifT5aj_.js +5 -0
- package/dist/memory-auto-Cp2Jwx3Y.js +306 -0
- package/dist/memory-auto-DXKe2ayf.js +5 -0
- package/dist/memory-auto-DjK_D8CA.js +306 -0
- package/dist/memory-auto-N57dp4Do.js +5 -0
- package/dist/memory-auto-n0kOcU7F.js +5 -0
- package/dist/memory-integration-D2RvZ-MB.js +91 -0
- package/dist/memory-integration-D8shLJwp.js +91 -0
- package/dist/memory-integration-DLmzJ62L.js +91 -0
- package/dist/memory-integration-DMXDbMIL.js +91 -0
- package/dist/memory-integration-Dgr-mjue.js +91 -0
- package/dist/moltbook-CIeOshK6.js +81 -0
- package/dist/moltbook-CX5XWn06.js +81 -0
- package/dist/moltbook-DUfiE4NY.js +81 -0
- package/dist/moltbook-DvV6GFFL.js +81 -0
- package/dist/moltbook-YEiNI8Cm.js +81 -0
- package/dist/multi-agent-tools-jzfvT4zP.js +87 -0
- package/dist/multimodal-zZdwqISl.js +77 -0
- package/dist/node-BYrxELx2.js +251 -0
- package/dist/node-CLWgPlAk.js +251 -0
- package/dist/node-Czz8Y85D.js +251 -0
- package/dist/node-DFKhz7Zn.js +251 -0
- package/dist/node-Du2H2Ddi.js +226 -0
- package/dist/node-domexception-v89b0Nwz.js +21 -0
- package/dist/node-pending-queue-CIMXPU6K.js +32 -0
- package/dist/node-pending-queue-DUXCbYkp.js +32 -0
- package/dist/node-pending-queue-DZp7cdfo.js +32 -0
- package/dist/node-pending-queue-iYpoWqxe.js +32 -0
- package/dist/nodes-registry-BTy7Sc7D.js +52 -0
- package/dist/nodes-registry-BYjmmJBU.js +52 -0
- package/dist/nodes-registry-BeiEjd9U.js +52 -0
- package/dist/nodes-registry-C8GeEGq0.js +52 -0
- package/dist/nodes-registry-Du6Klz0l.js +52 -0
- package/dist/oauth-flow-BA0yMrHx.js +148 -0
- package/dist/oauth-flow-C4QSMsbl.js +148 -0
- package/dist/oauth-flow-CIuDBDsp.js +148 -0
- package/dist/oauth-flow-CZOsvU1v.js +148 -0
- package/dist/oauth-flow-CniM4jlJ.js +148 -0
- package/dist/oauth-provider-BA4GVFKg.js +111 -0
- package/dist/oauth-provider-Bnul5A_Z.js +111 -0
- package/dist/oauth-provider-Dk-6BmGL.js +111 -0
- package/dist/oauth-provider-DqPXPiiC.js +111 -0
- package/dist/oauth-provider-MEgHjij2.js +111 -0
- package/dist/observability-0spm7MPz.js +89 -0
- package/dist/observability-B3dDQSdI.js +89 -0
- package/dist/observability-BOMYgHUh.js +89 -0
- package/dist/observability-CDqHr-_o.js +89 -0
- package/dist/observability-ah2a7sh1.js +89 -0
- package/dist/onboard-BJ78s3NT.js +3854 -0
- package/dist/onboard-BnyHie0K.js +14 -0
- package/dist/onboard-C55YXd_e.js +14 -0
- package/dist/onboard-CNnm4yYp.js +3841 -0
- package/dist/onboard-CXSVPnP7.js +3854 -0
- package/dist/onboard-CwvXXOR1.js +14 -0
- package/dist/onboard-CxlIsNhX.js +3854 -0
- package/dist/onboard-D-5gWzH0.js +3854 -0
- package/dist/onboard-D9pjgaVR.js +3854 -0
- package/dist/onboard-DPmufMqX.js +14 -0
- package/dist/onboard-F9lKA2ie.js +14 -0
- package/dist/onboard-UTQXzlPD.js +3854 -0
- package/dist/onboard-UhWVcTap.js +14 -0
- package/dist/onboard-W5DsxVf2.js +3854 -0
- package/dist/onboard-YszvVNgS.js +14 -0
- package/dist/onboard-hK098kjl.js +14 -0
- package/dist/onboard-pLDBUBpO.js +14 -0
- package/dist/onboard-zISipu-l.js +3854 -0
- package/dist/openai-CrdtuLxw.js +6292 -0
- package/dist/orchestrator-5M-6MB7r.js +6 -0
- package/dist/orchestrator-B3BjP1dy.js +6 -0
- package/dist/orchestrator-BZS62iDS.js +6 -0
- package/dist/orchestrator-C0t11xj7.js +189 -0
- package/dist/orchestrator-CA4eKeGn.js +189 -0
- package/dist/orchestrator-CNxTIlOK.js +189 -0
- package/dist/orchestrator-CTMbjgH_.js +6 -0
- package/dist/orchestrator-Cg1vgEHb.js +6 -0
- package/dist/orchestrator-Crn4fgbI.js +189 -0
- package/dist/orchestrator-Cs6s-QmS.js +189 -0
- package/dist/orchestrator-DGqwsLmO.js +189 -0
- package/dist/orchestrator-DV5t6wQ0.js +6 -0
- package/dist/orchestrator-UUHsFKiH.js +6 -0
- package/dist/orchestrator-eT0ZL4yl.js +6 -0
- package/dist/orchestrator-oa7HbCnF.js +189 -0
- package/dist/orchestrator-tUKag7pG.js +189 -0
- package/dist/osint-47yIek6w.js +283 -0
- package/dist/osint-BJvOCmVk.js +283 -0
- package/dist/osint-CK9xVUUm.js +283 -0
- package/dist/osint-D6vQXCWh.js +283 -0
- package/dist/osint-DLYZsp1k.js +283 -0
- package/dist/osint-c-xDjLb-.js +283 -0
- package/dist/osint-cAAdO-cx.js +283 -0
- package/dist/osint-chat-B0lc0Y6r.js +789 -0
- package/dist/osint-chat-BJgnkFDm.js +789 -0
- package/dist/osint-chat-BUhiSpf9.js +789 -0
- package/dist/osint-chat-C-9FVAkU.js +789 -0
- package/dist/osint-chat-C09BvbGy.js +789 -0
- package/dist/osint-chat-CWET8Fno.js +789 -0
- package/dist/osint-chat-Cgdzg3lh.js +789 -0
- package/dist/osint-chat-zdeaaw7a.js +789 -0
- package/dist/osint-e6oBrtlj.js +283 -0
- package/dist/pc-access-BCaF5mRs.js +858 -0
- package/dist/pc-access-BOcXappE.js +858 -0
- package/dist/pc-access-BgZNmAdB.js +8 -0
- package/dist/pc-access-CAoM6WN4.js +8 -0
- package/dist/pc-access-D2HdoziZ.js +8 -0
- package/dist/pc-access-D4g0fjQb.js +858 -0
- package/dist/pending-approval-CEu_-DGQ.js +22 -0
- package/dist/pending-approval-CJPyt8U5.js +22 -0
- package/dist/pending-approval-CzMNCTfZ.js +22 -0
- package/dist/pending-approval-DaXi7otO.js +22 -0
- package/dist/pending-approval-KcyeiifE.js +22 -0
- package/dist/providers-BfW-fgpw.js +5 -0
- package/dist/providers-Cs1h_TJA.js +1137 -0
- package/dist/providers-DrZP0NeR.js +5 -0
- package/dist/providers-dHhpJo9j.js +1120 -0
- package/dist/reminders-store-B58LldEG.js +58 -0
- package/dist/reminders-store-C4gWckLa.js +58 -0
- package/dist/reminders-store-DT0o6a60.js +58 -0
- package/dist/renderer-B8c22rbg.js +228 -0
- package/dist/renderer-BS0ETL20.js +228 -0
- package/dist/renderer-B_ew6jRs.js +228 -0
- package/dist/renderer-Cg3c41A5.js +228 -0
- package/dist/renderer-UoPcgaAd.js +228 -0
- package/dist/rules-BAYXiKiJ.js +106 -0
- package/dist/rules-D0v5nuSE.js +106 -0
- package/dist/rules-DCKPgwLb.js +106 -0
- package/dist/rules-Zn9j4PnO.js +106 -0
- package/dist/rules-oAgOSPHC.js +106 -0
- package/dist/run-main.js +492 -131
- package/dist/runner-B5uo6C5q.js +1310 -0
- package/dist/runner-BaZ2V27T.js +1307 -0
- package/dist/runner-Bgl7UTbV.js +1307 -0
- package/dist/runner-DOKp3-v5.js +1307 -0
- package/dist/runner-voYdfM_f.js +1307 -0
- package/dist/search-tools-BBwMa8VX.js +107 -0
- package/dist/search-tools-CEUOO9Jf.js +107 -0
- package/dist/search-tools-DXVuVXW_.js +107 -0
- package/dist/search-tools-VHP3xVyC.js +107 -0
- package/dist/search-tools-w_zT7-dr.js +107 -0
- package/dist/server-BAdJwMM9.js +4 -0
- package/dist/server-BD9FLc7S.js +1384 -0
- package/dist/server-BJkDIs8Z.js +1467 -0
- package/dist/server-BlqWBbS7.js +4 -0
- package/dist/server-BzwPvTbD.js +1447 -0
- package/dist/server-CBvSfG4w.js +4 -0
- package/dist/server-CbNBcB41.js +4 -0
- package/dist/server-CtFoXM88.js +4 -0
- package/dist/server-DPTXaJJF.js +4 -0
- package/dist/server-DVxVLu_G.js +1467 -0
- package/dist/server-DZj6Nobr.js +1467 -0
- package/dist/server-Diu80smx.js +4 -0
- package/dist/server-DszV63tu.js +4 -0
- package/dist/server-Dv2zHHy-.js +1447 -0
- package/dist/server-MDmdWHob.js +1447 -0
- package/dist/server-N9LnLQCS.js +1447 -0
- package/dist/session-store-C6Otslf9.js +5 -0
- package/dist/session-store-Cmfnvuw9.js +141 -0
- package/dist/session-store-CuR9DgRf.js +5 -0
- package/dist/session-store-Cx1RMBhS.js +5 -0
- package/dist/session-store-DPPHkJBn.js +5 -0
- package/dist/session-store-DWLCWQFS.js +141 -0
- package/dist/session-store-qGufR_m5.js +141 -0
- package/dist/session-store-sUpA509O.js +141 -0
- package/dist/sessions-tools-9Z8TtdmP.js +5 -0
- package/dist/sessions-tools-BAZnoQLp.js +95 -0
- package/dist/sessions-tools-Bb_zF947.js +95 -0
- package/dist/sessions-tools-ClrKqLII.js +131 -0
- package/dist/sessions-tools-DFe23ZDD.js +5 -0
- package/dist/sessions-tools-JHSZ6Bns.js +5 -0
- package/dist/sessions-tools-TsRdeFb7.js +95 -0
- package/dist/sessions-tools-nYP3Agfs.js +5 -0
- package/dist/skill-loader-9jg876RH.js +160 -0
- package/dist/skill-loader-CM4KWQ7_.js +160 -0
- package/dist/skill-loader-CS3OP4Lr.js +160 -0
- package/dist/skill-loader-CnJDLNbY.js +7 -0
- package/dist/skill-loader-DRLgt5V2.js +160 -0
- package/dist/skill-loader-DVpEgYV2.js +7 -0
- package/dist/skill-loader-Df5T_UFl.js +7 -0
- package/dist/skill-loader-DxE-gZkT.js +7 -0
- package/dist/skill-runtime-8Xh5874w.js +104 -0
- package/dist/skill-runtime-B3aUdWKh.js +104 -0
- package/dist/skill-runtime-BKyhYvpW.js +5 -0
- package/dist/skill-runtime-BLkXA1mO.js +104 -0
- package/dist/skill-runtime-BMk-h6Dl.js +5 -0
- package/dist/skill-runtime-BP0kZfmM.js +5 -0
- package/dist/skill-runtime-BaTX-RGy.js +5 -0
- package/dist/skill-runtime-CB9tnc-P.js +104 -0
- package/dist/skill-runtime-CLK5HTVE.js +5 -0
- package/dist/skill-runtime-COyc3Bci.js +104 -0
- package/dist/skill-runtime-CvDXX7wN.js +5 -0
- package/dist/skill-runtime-D4REZnhY.js +104 -0
- package/dist/skill-runtime-D6-rGzX1.js +104 -0
- package/dist/skill-runtime-DQRi9sIf.js +5 -0
- package/dist/skill-runtime-DRd56NWK.js +104 -0
- package/dist/skill-runtime-Dej1Yr5V.js +5 -0
- package/dist/src-6dmkVQGq.js +63 -0
- package/dist/src-7yBXPAs6.js +315 -0
- package/dist/src-9GyYED0T.js +63 -0
- package/dist/src-B9L6qb-Z.js +462 -0
- package/dist/src-BEjIVOmq.js +63 -0
- package/dist/src-BOnuFlI4.js +23 -0
- package/dist/src-BY3On_zO.js +462 -0
- package/dist/src-BdgKAlMQ.js +20 -0
- package/dist/src-BkEtHLLy.js +462 -0
- package/dist/src-C52A3OwC.js +301 -0
- package/dist/src-C8cbfjat.js +173 -0
- package/dist/src-CDeWGebw.js +315 -0
- package/dist/src-CNAVUFC6.js +462 -0
- package/dist/src-CQ2lZvdF.js +462 -0
- package/dist/src-Cdwn9xpG.js +462 -0
- package/dist/src-CyCLoqIP.js +63 -0
- package/dist/src-D-OND_62.js +301 -0
- package/dist/src-DB6dPsbY.js +63 -0
- package/dist/src-DE4mH0BB.js +63 -0
- package/dist/src-DFo8lVfV.js +300 -0
- package/dist/src-DJbpP4Gs.js +462 -0
- package/dist/src-DPfnArdr.js +300 -0
- package/dist/src-DTft7Qvt.js +63 -0
- package/dist/src-DgvFah8g.js +153 -0
- package/dist/src-TYvV_oFO.js +63 -0
- package/dist/src-krHV0uVj.js +315 -0
- package/dist/src-lltU5gkh.js +20 -0
- package/dist/src-tF0sBtr3.js +462 -0
- package/dist/sub-agent-tools-BwOxHu6f.js +39 -0
- package/dist/sub-agent-tools-CE8pVUdb.js +39 -0
- package/dist/sub-agent-tools-CJVEIF1F.js +39 -0
- package/dist/sub-agent-tools-CQWNfYn_.js +39 -0
- package/dist/sub-agent-tools-CViiqebO.js +39 -0
- package/dist/sub-agent-tools-DgT4jUHC.js +39 -0
- package/dist/sub-agent-tools-Lbin_4S3.js +39 -0
- package/dist/sub-agent-tools-f4X1M-li.js +39 -0
- package/dist/tool-policy-1EBdJkSG.js +190 -0
- package/dist/tool-policy-B1bL0X-E.js +189 -0
- package/dist/tool-policy-CfWEnRxy.js +190 -0
- package/dist/tool-policy-NLbucl5-.js +189 -0
- package/dist/tool-policy-yNVTLNDY.js +189 -0
- package/dist/tts-elevenlabs-Bk24wQ2V.js +64 -0
- package/dist/tts-elevenlabs-CCeOqqrh.js +64 -0
- package/dist/tts-elevenlabs-CHrJZuNW.js +64 -0
- package/dist/tts-elevenlabs-DHqQsqMz.js +64 -0
- package/dist/tts-elevenlabs-TUKPkSV2.js +64 -0
- package/dist/vision-BMRKyu3c.js +167 -0
- package/dist/vision-CW1YCKed.js +167 -0
- package/dist/vision-DPLmrwUA.js +167 -0
- package/dist/vision-Q4EOcBS6.js +167 -0
- package/dist/vision-XyAGO5La.js +167 -0
- package/dist/vision-tools-B5DNR28M.js +5 -0
- package/dist/vision-tools-CC9HSuvN.js +51 -0
- package/dist/vision-tools-Ca3OhtdX.js +51 -0
- package/dist/vision-tools-CpU2fSRv.js +51 -0
- package/dist/vision-tools-Ct52djW8.js +51 -0
- package/dist/vision-tools-DF7N2DDI.js +5 -0
- package/dist/vision-tools-DVYx9-Jw.js +5 -0
- package/dist/vision-tools-DyP6lRA5.js +5 -0
- package/dist/vision-tools-RIVKEUeY.js +5 -0
- package/dist/vision-tools-kYb3effk.js +51 -0
- package/dist/voice-transcription-B1D1rpca.js +170 -0
- package/dist/voice-transcription-Bz2y0nPK.js +170 -0
- package/dist/voice-transcription-CVFcHpPF.js +170 -0
- package/dist/voice-transcription-CvQuWPYK.js +170 -0
- package/dist/voice-transcription-YqndiLA7.js +170 -0
- package/dist/website-watch-tools-B036Y8OQ.js +176 -0
- package/dist/website-watch-tools-B8CHie8v.js +5 -0
- package/dist/website-watch-tools-Brk5oIEv.js +176 -0
- package/dist/website-watch-tools-CJqRj_GB.js +5 -0
- package/dist/website-watch-tools-CSSEu3Qy.js +5 -0
- package/dist/website-watch-tools-D92dkYZa.js +176 -0
- package/dist/website-watch-tools-Du_a8lXq.js +176 -0
- package/dist/website-watch-tools-UdTBGgRk.js +5 -0
- package/package.json +5 -3
- package/static/chat.html +18 -4
- package/static/web/assets/index-D2ekZ-uM.js +75 -0
- package/static/web/assets/index-D_9lvvup.css +1 -0
- package/static/web/index.html +2 -2
- package/static/web/assets/index-B5N1LHGR.css +0 -1
- package/static/web/assets/index-Bf8pf7Wg.js +0 -75
|
@@ -0,0 +1,2274 @@
|
|
|
1
|
+
|
|
2
|
+
//#region node_modules/web-streams-polyfill/dist/ponyfill.mjs
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* web-streams-polyfill v4.0.0-beta.3
|
|
6
|
+
* Copyright 2021 Mattias Buelens, Diwank Singh Tomer and other contributors.
|
|
7
|
+
* This code is released under the MIT license.
|
|
8
|
+
* SPDX-License-Identifier: MIT
|
|
9
|
+
*/
|
|
10
|
+
const e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? Symbol : (e$1) => `Symbol(${e$1})`;
|
|
11
|
+
function t() {}
|
|
12
|
+
function r(e$1) {
|
|
13
|
+
return "object" == typeof e$1 && null !== e$1 || "function" == typeof e$1;
|
|
14
|
+
}
|
|
15
|
+
const o = t;
|
|
16
|
+
function n(e$1, t$1) {
|
|
17
|
+
try {
|
|
18
|
+
Object.defineProperty(e$1, "name", {
|
|
19
|
+
value: t$1,
|
|
20
|
+
configurable: !0
|
|
21
|
+
});
|
|
22
|
+
} catch (e$2) {}
|
|
23
|
+
}
|
|
24
|
+
const a = Promise, i = Promise.prototype.then, l = Promise.resolve.bind(a), s = Promise.reject.bind(a);
|
|
25
|
+
function u(e$1) {
|
|
26
|
+
return new a(e$1);
|
|
27
|
+
}
|
|
28
|
+
function c(e$1) {
|
|
29
|
+
return l(e$1);
|
|
30
|
+
}
|
|
31
|
+
function d(e$1) {
|
|
32
|
+
return s(e$1);
|
|
33
|
+
}
|
|
34
|
+
function f(e$1, t$1, r$1) {
|
|
35
|
+
return i.call(e$1, t$1, r$1);
|
|
36
|
+
}
|
|
37
|
+
function b(e$1, t$1, r$1) {
|
|
38
|
+
f(f(e$1, t$1, r$1), void 0, o);
|
|
39
|
+
}
|
|
40
|
+
function h(e$1, t$1) {
|
|
41
|
+
b(e$1, t$1);
|
|
42
|
+
}
|
|
43
|
+
function _(e$1, t$1) {
|
|
44
|
+
b(e$1, void 0, t$1);
|
|
45
|
+
}
|
|
46
|
+
function p(e$1, t$1, r$1) {
|
|
47
|
+
return f(e$1, t$1, r$1);
|
|
48
|
+
}
|
|
49
|
+
function m(e$1) {
|
|
50
|
+
f(e$1, void 0, o);
|
|
51
|
+
}
|
|
52
|
+
let y = (e$1) => {
|
|
53
|
+
if ("function" == typeof queueMicrotask) y = queueMicrotask;
|
|
54
|
+
else {
|
|
55
|
+
const e$2 = c(void 0);
|
|
56
|
+
y = (t$1) => f(e$2, t$1);
|
|
57
|
+
}
|
|
58
|
+
return y(e$1);
|
|
59
|
+
};
|
|
60
|
+
function g(e$1, t$1, r$1) {
|
|
61
|
+
if ("function" != typeof e$1) throw new TypeError("Argument is not a function");
|
|
62
|
+
return Function.prototype.apply.call(e$1, t$1, r$1);
|
|
63
|
+
}
|
|
64
|
+
function w(e$1, t$1, r$1) {
|
|
65
|
+
try {
|
|
66
|
+
return c(g(e$1, t$1, r$1));
|
|
67
|
+
} catch (e$2) {
|
|
68
|
+
return d(e$2);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
var S = class {
|
|
72
|
+
constructor() {
|
|
73
|
+
this._cursor = 0, this._size = 0, this._front = {
|
|
74
|
+
_elements: [],
|
|
75
|
+
_next: void 0
|
|
76
|
+
}, this._back = this._front, this._cursor = 0, this._size = 0;
|
|
77
|
+
}
|
|
78
|
+
get length() {
|
|
79
|
+
return this._size;
|
|
80
|
+
}
|
|
81
|
+
push(e$1) {
|
|
82
|
+
const t$1 = this._back;
|
|
83
|
+
let r$1 = t$1;
|
|
84
|
+
16383 === t$1._elements.length && (r$1 = {
|
|
85
|
+
_elements: [],
|
|
86
|
+
_next: void 0
|
|
87
|
+
}), t$1._elements.push(e$1), r$1 !== t$1 && (this._back = r$1, t$1._next = r$1), ++this._size;
|
|
88
|
+
}
|
|
89
|
+
shift() {
|
|
90
|
+
const e$1 = this._front;
|
|
91
|
+
let t$1 = e$1;
|
|
92
|
+
const r$1 = this._cursor;
|
|
93
|
+
let o$1 = r$1 + 1;
|
|
94
|
+
const n$1 = e$1._elements, a$1 = n$1[r$1];
|
|
95
|
+
return 16384 === o$1 && (t$1 = e$1._next, o$1 = 0), --this._size, this._cursor = o$1, e$1 !== t$1 && (this._front = t$1), n$1[r$1] = void 0, a$1;
|
|
96
|
+
}
|
|
97
|
+
forEach(e$1) {
|
|
98
|
+
let t$1 = this._cursor, r$1 = this._front, o$1 = r$1._elements;
|
|
99
|
+
for (; !(t$1 === o$1.length && void 0 === r$1._next || t$1 === o$1.length && (r$1 = r$1._next, o$1 = r$1._elements, t$1 = 0, 0 === o$1.length));) e$1(o$1[t$1]), ++t$1;
|
|
100
|
+
}
|
|
101
|
+
peek() {
|
|
102
|
+
const e$1 = this._front, t$1 = this._cursor;
|
|
103
|
+
return e$1._elements[t$1];
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const v = e("[[AbortSteps]]"), R = e("[[ErrorSteps]]"), T = e("[[CancelSteps]]"), q = e("[[PullSteps]]"), C = e("[[ReleaseSteps]]");
|
|
107
|
+
function E(e$1, t$1) {
|
|
108
|
+
e$1._ownerReadableStream = t$1, t$1._reader = e$1, "readable" === t$1._state ? O(e$1) : "closed" === t$1._state ? function(e$2) {
|
|
109
|
+
O(e$2), j(e$2);
|
|
110
|
+
}(e$1) : B(e$1, t$1._storedError);
|
|
111
|
+
}
|
|
112
|
+
function P(e$1, t$1) {
|
|
113
|
+
return Gt(e$1._ownerReadableStream, t$1);
|
|
114
|
+
}
|
|
115
|
+
function W(e$1) {
|
|
116
|
+
const t$1 = e$1._ownerReadableStream;
|
|
117
|
+
"readable" === t$1._state ? A(e$1, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : function(e$2, t$2) {
|
|
118
|
+
B(e$2, t$2);
|
|
119
|
+
}(e$1, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), t$1._readableStreamController[C](), t$1._reader = void 0, e$1._ownerReadableStream = void 0;
|
|
120
|
+
}
|
|
121
|
+
function k(e$1) {
|
|
122
|
+
return new TypeError("Cannot " + e$1 + " a stream using a released reader");
|
|
123
|
+
}
|
|
124
|
+
function O(e$1) {
|
|
125
|
+
e$1._closedPromise = u((t$1, r$1) => {
|
|
126
|
+
e$1._closedPromise_resolve = t$1, e$1._closedPromise_reject = r$1;
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function B(e$1, t$1) {
|
|
130
|
+
O(e$1), A(e$1, t$1);
|
|
131
|
+
}
|
|
132
|
+
function A(e$1, t$1) {
|
|
133
|
+
void 0 !== e$1._closedPromise_reject && (m(e$1._closedPromise), e$1._closedPromise_reject(t$1), e$1._closedPromise_resolve = void 0, e$1._closedPromise_reject = void 0);
|
|
134
|
+
}
|
|
135
|
+
function j(e$1) {
|
|
136
|
+
void 0 !== e$1._closedPromise_resolve && (e$1._closedPromise_resolve(void 0), e$1._closedPromise_resolve = void 0, e$1._closedPromise_reject = void 0);
|
|
137
|
+
}
|
|
138
|
+
const z = Number.isFinite || function(e$1) {
|
|
139
|
+
return "number" == typeof e$1 && isFinite(e$1);
|
|
140
|
+
}, L = Math.trunc || function(e$1) {
|
|
141
|
+
return e$1 < 0 ? Math.ceil(e$1) : Math.floor(e$1);
|
|
142
|
+
};
|
|
143
|
+
function F(e$1, t$1) {
|
|
144
|
+
if (void 0 !== e$1 && "object" != typeof (r$1 = e$1) && "function" != typeof r$1) throw new TypeError(`${t$1} is not an object.`);
|
|
145
|
+
var r$1;
|
|
146
|
+
}
|
|
147
|
+
function I(e$1, t$1) {
|
|
148
|
+
if ("function" != typeof e$1) throw new TypeError(`${t$1} is not a function.`);
|
|
149
|
+
}
|
|
150
|
+
function D(e$1, t$1) {
|
|
151
|
+
if (!function(e$2) {
|
|
152
|
+
return "object" == typeof e$2 && null !== e$2 || "function" == typeof e$2;
|
|
153
|
+
}(e$1)) throw new TypeError(`${t$1} is not an object.`);
|
|
154
|
+
}
|
|
155
|
+
function $(e$1, t$1, r$1) {
|
|
156
|
+
if (void 0 === e$1) throw new TypeError(`Parameter ${t$1} is required in '${r$1}'.`);
|
|
157
|
+
}
|
|
158
|
+
function M(e$1, t$1, r$1) {
|
|
159
|
+
if (void 0 === e$1) throw new TypeError(`${t$1} is required in '${r$1}'.`);
|
|
160
|
+
}
|
|
161
|
+
function Y(e$1) {
|
|
162
|
+
return Number(e$1);
|
|
163
|
+
}
|
|
164
|
+
function Q(e$1) {
|
|
165
|
+
return 0 === e$1 ? 0 : e$1;
|
|
166
|
+
}
|
|
167
|
+
function N(e$1, t$1) {
|
|
168
|
+
const r$1 = Number.MAX_SAFE_INTEGER;
|
|
169
|
+
let o$1 = Number(e$1);
|
|
170
|
+
if (o$1 = Q(o$1), !z(o$1)) throw new TypeError(`${t$1} is not a finite number`);
|
|
171
|
+
if (o$1 = function(e$2) {
|
|
172
|
+
return Q(L(e$2));
|
|
173
|
+
}(o$1), o$1 < 0 || o$1 > r$1) throw new TypeError(`${t$1} is outside the accepted range of 0 to ${r$1}, inclusive`);
|
|
174
|
+
return z(o$1) && 0 !== o$1 ? o$1 : 0;
|
|
175
|
+
}
|
|
176
|
+
function H(e$1) {
|
|
177
|
+
if (!r(e$1)) return !1;
|
|
178
|
+
if ("function" != typeof e$1.getReader) return !1;
|
|
179
|
+
try {
|
|
180
|
+
return "boolean" == typeof e$1.locked;
|
|
181
|
+
} catch (e$2) {
|
|
182
|
+
return !1;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function x(e$1) {
|
|
186
|
+
if (!r(e$1)) return !1;
|
|
187
|
+
if ("function" != typeof e$1.getWriter) return !1;
|
|
188
|
+
try {
|
|
189
|
+
return "boolean" == typeof e$1.locked;
|
|
190
|
+
} catch (e$2) {
|
|
191
|
+
return !1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
function V(e$1, t$1) {
|
|
195
|
+
if (!Vt(e$1)) throw new TypeError(`${t$1} is not a ReadableStream.`);
|
|
196
|
+
}
|
|
197
|
+
function U(e$1, t$1) {
|
|
198
|
+
e$1._reader._readRequests.push(t$1);
|
|
199
|
+
}
|
|
200
|
+
function G(e$1, t$1, r$1) {
|
|
201
|
+
const o$1 = e$1._reader._readRequests.shift();
|
|
202
|
+
r$1 ? o$1._closeSteps() : o$1._chunkSteps(t$1);
|
|
203
|
+
}
|
|
204
|
+
function X(e$1) {
|
|
205
|
+
return e$1._reader._readRequests.length;
|
|
206
|
+
}
|
|
207
|
+
function J(e$1) {
|
|
208
|
+
const t$1 = e$1._reader;
|
|
209
|
+
return void 0 !== t$1 && !!K(t$1);
|
|
210
|
+
}
|
|
211
|
+
var ReadableStreamDefaultReader = class {
|
|
212
|
+
constructor(e$1) {
|
|
213
|
+
if ($(e$1, 1, "ReadableStreamDefaultReader"), V(e$1, "First parameter"), Ut(e$1)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
214
|
+
E(this, e$1), this._readRequests = new S();
|
|
215
|
+
}
|
|
216
|
+
get closed() {
|
|
217
|
+
return K(this) ? this._closedPromise : d(ee("closed"));
|
|
218
|
+
}
|
|
219
|
+
cancel(e$1) {
|
|
220
|
+
return K(this) ? void 0 === this._ownerReadableStream ? d(k("cancel")) : P(this, e$1) : d(ee("cancel"));
|
|
221
|
+
}
|
|
222
|
+
read() {
|
|
223
|
+
if (!K(this)) return d(ee("read"));
|
|
224
|
+
if (void 0 === this._ownerReadableStream) return d(k("read from"));
|
|
225
|
+
let e$1, t$1;
|
|
226
|
+
const r$1 = u((r$2, o$1) => {
|
|
227
|
+
e$1 = r$2, t$1 = o$1;
|
|
228
|
+
});
|
|
229
|
+
return function(e$2, t$2) {
|
|
230
|
+
const r$2 = e$2._ownerReadableStream;
|
|
231
|
+
r$2._disturbed = !0, "closed" === r$2._state ? t$2._closeSteps() : "errored" === r$2._state ? t$2._errorSteps(r$2._storedError) : r$2._readableStreamController[q](t$2);
|
|
232
|
+
}(this, {
|
|
233
|
+
_chunkSteps: (t$2) => e$1({
|
|
234
|
+
value: t$2,
|
|
235
|
+
done: !1
|
|
236
|
+
}),
|
|
237
|
+
_closeSteps: () => e$1({
|
|
238
|
+
value: void 0,
|
|
239
|
+
done: !0
|
|
240
|
+
}),
|
|
241
|
+
_errorSteps: (e$2) => t$1(e$2)
|
|
242
|
+
}), r$1;
|
|
243
|
+
}
|
|
244
|
+
releaseLock() {
|
|
245
|
+
if (!K(this)) throw ee("releaseLock");
|
|
246
|
+
void 0 !== this._ownerReadableStream && function(e$1) {
|
|
247
|
+
W(e$1);
|
|
248
|
+
const t$1 = new TypeError("Reader was released");
|
|
249
|
+
Z(e$1, t$1);
|
|
250
|
+
}(this);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
function K(e$1) {
|
|
254
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_readRequests") && e$1 instanceof ReadableStreamDefaultReader;
|
|
255
|
+
}
|
|
256
|
+
function Z(e$1, t$1) {
|
|
257
|
+
const r$1 = e$1._readRequests;
|
|
258
|
+
e$1._readRequests = new S(), r$1.forEach((e$2) => {
|
|
259
|
+
e$2._errorSteps(t$1);
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
function ee(e$1) {
|
|
263
|
+
return new TypeError(`ReadableStreamDefaultReader.prototype.${e$1} can only be used on a ReadableStreamDefaultReader`);
|
|
264
|
+
}
|
|
265
|
+
Object.defineProperties(ReadableStreamDefaultReader.prototype, {
|
|
266
|
+
cancel: { enumerable: !0 },
|
|
267
|
+
read: { enumerable: !0 },
|
|
268
|
+
releaseLock: { enumerable: !0 },
|
|
269
|
+
closed: { enumerable: !0 }
|
|
270
|
+
}), 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, {
|
|
271
|
+
value: "ReadableStreamDefaultReader",
|
|
272
|
+
configurable: !0
|
|
273
|
+
});
|
|
274
|
+
var te = class {
|
|
275
|
+
constructor(e$1, t$1) {
|
|
276
|
+
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = e$1, this._preventCancel = t$1;
|
|
277
|
+
}
|
|
278
|
+
next() {
|
|
279
|
+
const e$1 = () => this._nextSteps();
|
|
280
|
+
return this._ongoingPromise = this._ongoingPromise ? p(this._ongoingPromise, e$1, e$1) : e$1(), this._ongoingPromise;
|
|
281
|
+
}
|
|
282
|
+
return(e$1) {
|
|
283
|
+
const t$1 = () => this._returnSteps(e$1);
|
|
284
|
+
return this._ongoingPromise ? p(this._ongoingPromise, t$1, t$1) : t$1();
|
|
285
|
+
}
|
|
286
|
+
_nextSteps() {
|
|
287
|
+
if (this._isFinished) return Promise.resolve({
|
|
288
|
+
value: void 0,
|
|
289
|
+
done: !0
|
|
290
|
+
});
|
|
291
|
+
const e$1 = this._reader;
|
|
292
|
+
return void 0 === e$1 ? d(k("iterate")) : f(e$1.read(), (e$2) => {
|
|
293
|
+
var t$1;
|
|
294
|
+
return this._ongoingPromise = void 0, e$2.done && (this._isFinished = !0, null === (t$1 = this._reader) || void 0 === t$1 || t$1.releaseLock(), this._reader = void 0), e$2;
|
|
295
|
+
}, (e$2) => {
|
|
296
|
+
var t$1;
|
|
297
|
+
throw this._ongoingPromise = void 0, this._isFinished = !0, null === (t$1 = this._reader) || void 0 === t$1 || t$1.releaseLock(), this._reader = void 0, e$2;
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
_returnSteps(e$1) {
|
|
301
|
+
if (this._isFinished) return Promise.resolve({
|
|
302
|
+
value: e$1,
|
|
303
|
+
done: !0
|
|
304
|
+
});
|
|
305
|
+
this._isFinished = !0;
|
|
306
|
+
const t$1 = this._reader;
|
|
307
|
+
if (void 0 === t$1) return d(k("finish iterating"));
|
|
308
|
+
if (this._reader = void 0, !this._preventCancel) {
|
|
309
|
+
const r$1 = t$1.cancel(e$1);
|
|
310
|
+
return t$1.releaseLock(), p(r$1, () => ({
|
|
311
|
+
value: e$1,
|
|
312
|
+
done: !0
|
|
313
|
+
}));
|
|
314
|
+
}
|
|
315
|
+
return t$1.releaseLock(), c({
|
|
316
|
+
value: e$1,
|
|
317
|
+
done: !0
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
const re = {
|
|
322
|
+
next() {
|
|
323
|
+
return oe(this) ? this._asyncIteratorImpl.next() : d(ne("next"));
|
|
324
|
+
},
|
|
325
|
+
return(e$1) {
|
|
326
|
+
return oe(this) ? this._asyncIteratorImpl.return(e$1) : d(ne("return"));
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
function oe(e$1) {
|
|
330
|
+
if (!r(e$1)) return !1;
|
|
331
|
+
if (!Object.prototype.hasOwnProperty.call(e$1, "_asyncIteratorImpl")) return !1;
|
|
332
|
+
try {
|
|
333
|
+
return e$1._asyncIteratorImpl instanceof te;
|
|
334
|
+
} catch (e$2) {
|
|
335
|
+
return !1;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function ne(e$1) {
|
|
339
|
+
return new TypeError(`ReadableStreamAsyncIterator.${e$1} can only be used on a ReadableSteamAsyncIterator`);
|
|
340
|
+
}
|
|
341
|
+
"symbol" == typeof e.asyncIterator && Object.defineProperty(re, e.asyncIterator, {
|
|
342
|
+
value() {
|
|
343
|
+
return this;
|
|
344
|
+
},
|
|
345
|
+
writable: !0,
|
|
346
|
+
configurable: !0
|
|
347
|
+
});
|
|
348
|
+
const ae = Number.isNaN || function(e$1) {
|
|
349
|
+
return e$1 != e$1;
|
|
350
|
+
};
|
|
351
|
+
function ie(e$1, t$1, r$1, o$1, n$1) {
|
|
352
|
+
new Uint8Array(e$1).set(new Uint8Array(r$1, o$1, n$1), t$1);
|
|
353
|
+
}
|
|
354
|
+
function le(e$1) {
|
|
355
|
+
const t$1 = function(e$2, t$2, r$1) {
|
|
356
|
+
if (e$2.slice) return e$2.slice(t$2, r$1);
|
|
357
|
+
const o$1 = r$1 - t$2, n$1 = new ArrayBuffer(o$1);
|
|
358
|
+
return ie(n$1, 0, e$2, t$2, o$1), n$1;
|
|
359
|
+
}(e$1.buffer, e$1.byteOffset, e$1.byteOffset + e$1.byteLength);
|
|
360
|
+
return new Uint8Array(t$1);
|
|
361
|
+
}
|
|
362
|
+
function se(e$1) {
|
|
363
|
+
const t$1 = e$1._queue.shift();
|
|
364
|
+
return e$1._queueTotalSize -= t$1.size, e$1._queueTotalSize < 0 && (e$1._queueTotalSize = 0), t$1.value;
|
|
365
|
+
}
|
|
366
|
+
function ue(e$1, t$1, r$1) {
|
|
367
|
+
if ("number" != typeof (o$1 = r$1) || ae(o$1) || o$1 < 0 || r$1 === Infinity) throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
|
|
368
|
+
var o$1;
|
|
369
|
+
e$1._queue.push({
|
|
370
|
+
value: t$1,
|
|
371
|
+
size: r$1
|
|
372
|
+
}), e$1._queueTotalSize += r$1;
|
|
373
|
+
}
|
|
374
|
+
function ce(e$1) {
|
|
375
|
+
e$1._queue = new S(), e$1._queueTotalSize = 0;
|
|
376
|
+
}
|
|
377
|
+
var ReadableStreamBYOBRequest = class {
|
|
378
|
+
constructor() {
|
|
379
|
+
throw new TypeError("Illegal constructor");
|
|
380
|
+
}
|
|
381
|
+
get view() {
|
|
382
|
+
if (!fe(this)) throw Be("view");
|
|
383
|
+
return this._view;
|
|
384
|
+
}
|
|
385
|
+
respond(e$1) {
|
|
386
|
+
if (!fe(this)) throw Be("respond");
|
|
387
|
+
if ($(e$1, 1, "respond"), e$1 = N(e$1, "First parameter"), void 0 === this._associatedReadableByteStreamController) throw new TypeError("This BYOB request has been invalidated");
|
|
388
|
+
this._view.buffer, function(e$2, t$1) {
|
|
389
|
+
const r$1 = e$2._pendingPullIntos.peek();
|
|
390
|
+
if ("closed" === e$2._controlledReadableByteStream._state) {
|
|
391
|
+
if (0 !== t$1) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
|
|
392
|
+
} else {
|
|
393
|
+
if (0 === t$1) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
|
|
394
|
+
if (r$1.bytesFilled + t$1 > r$1.byteLength) throw new RangeError("bytesWritten out of range");
|
|
395
|
+
}
|
|
396
|
+
r$1.buffer = r$1.buffer, qe(e$2, t$1);
|
|
397
|
+
}(this._associatedReadableByteStreamController, e$1);
|
|
398
|
+
}
|
|
399
|
+
respondWithNewView(e$1) {
|
|
400
|
+
if (!fe(this)) throw Be("respondWithNewView");
|
|
401
|
+
if ($(e$1, 1, "respondWithNewView"), !ArrayBuffer.isView(e$1)) throw new TypeError("You can only respond with array buffer views");
|
|
402
|
+
if (void 0 === this._associatedReadableByteStreamController) throw new TypeError("This BYOB request has been invalidated");
|
|
403
|
+
e$1.buffer, function(e$2, t$1) {
|
|
404
|
+
const r$1 = e$2._pendingPullIntos.peek();
|
|
405
|
+
if ("closed" === e$2._controlledReadableByteStream._state) {
|
|
406
|
+
if (0 !== t$1.byteLength) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
|
|
407
|
+
} else if (0 === t$1.byteLength) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
|
|
408
|
+
if (r$1.byteOffset + r$1.bytesFilled !== t$1.byteOffset) throw new RangeError("The region specified by view does not match byobRequest");
|
|
409
|
+
if (r$1.bufferByteLength !== t$1.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
410
|
+
if (r$1.bytesFilled + t$1.byteLength > r$1.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
|
|
411
|
+
const o$1 = t$1.byteLength;
|
|
412
|
+
r$1.buffer = t$1.buffer, qe(e$2, o$1);
|
|
413
|
+
}(this._associatedReadableByteStreamController, e$1);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
Object.defineProperties(ReadableStreamBYOBRequest.prototype, {
|
|
417
|
+
respond: { enumerable: !0 },
|
|
418
|
+
respondWithNewView: { enumerable: !0 },
|
|
419
|
+
view: { enumerable: !0 }
|
|
420
|
+
}), n(ReadableStreamBYOBRequest.prototype.respond, "respond"), n(ReadableStreamBYOBRequest.prototype.respondWithNewView, "respondWithNewView"), "symbol" == typeof e.toStringTag && Object.defineProperty(ReadableStreamBYOBRequest.prototype, e.toStringTag, {
|
|
421
|
+
value: "ReadableStreamBYOBRequest",
|
|
422
|
+
configurable: !0
|
|
423
|
+
});
|
|
424
|
+
var ReadableByteStreamController = class {
|
|
425
|
+
constructor() {
|
|
426
|
+
throw new TypeError("Illegal constructor");
|
|
427
|
+
}
|
|
428
|
+
get byobRequest() {
|
|
429
|
+
if (!de(this)) throw Ae("byobRequest");
|
|
430
|
+
return function(e$1) {
|
|
431
|
+
if (null === e$1._byobRequest && e$1._pendingPullIntos.length > 0) {
|
|
432
|
+
const t$1 = e$1._pendingPullIntos.peek(), r$1 = new Uint8Array(t$1.buffer, t$1.byteOffset + t$1.bytesFilled, t$1.byteLength - t$1.bytesFilled), o$1 = Object.create(ReadableStreamBYOBRequest.prototype);
|
|
433
|
+
(function(e$2, t$2, r$2) {
|
|
434
|
+
e$2._associatedReadableByteStreamController = t$2, e$2._view = r$2;
|
|
435
|
+
})(o$1, e$1, r$1), e$1._byobRequest = o$1;
|
|
436
|
+
}
|
|
437
|
+
return e$1._byobRequest;
|
|
438
|
+
}(this);
|
|
439
|
+
}
|
|
440
|
+
get desiredSize() {
|
|
441
|
+
if (!de(this)) throw Ae("desiredSize");
|
|
442
|
+
return ke(this);
|
|
443
|
+
}
|
|
444
|
+
close() {
|
|
445
|
+
if (!de(this)) throw Ae("close");
|
|
446
|
+
if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!");
|
|
447
|
+
const e$1 = this._controlledReadableByteStream._state;
|
|
448
|
+
if ("readable" !== e$1) throw new TypeError(`The stream (in ${e$1} state) is not in the readable state and cannot be closed`);
|
|
449
|
+
(function(e$2) {
|
|
450
|
+
const t$1 = e$2._controlledReadableByteStream;
|
|
451
|
+
if (e$2._closeRequested || "readable" !== t$1._state) return;
|
|
452
|
+
if (e$2._queueTotalSize > 0) return void (e$2._closeRequested = !0);
|
|
453
|
+
if (e$2._pendingPullIntos.length > 0) {
|
|
454
|
+
if (e$2._pendingPullIntos.peek().bytesFilled > 0) {
|
|
455
|
+
const t$2 = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
456
|
+
throw Pe(e$2, t$2), t$2;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
Ee(e$2), Xt(t$1);
|
|
460
|
+
})(this);
|
|
461
|
+
}
|
|
462
|
+
enqueue(e$1) {
|
|
463
|
+
if (!de(this)) throw Ae("enqueue");
|
|
464
|
+
if ($(e$1, 1, "enqueue"), !ArrayBuffer.isView(e$1)) throw new TypeError("chunk must be an array buffer view");
|
|
465
|
+
if (0 === e$1.byteLength) throw new TypeError("chunk must have non-zero byteLength");
|
|
466
|
+
if (0 === e$1.buffer.byteLength) throw new TypeError("chunk's buffer must have non-zero byteLength");
|
|
467
|
+
if (this._closeRequested) throw new TypeError("stream is closed or draining");
|
|
468
|
+
const t$1 = this._controlledReadableByteStream._state;
|
|
469
|
+
if ("readable" !== t$1) throw new TypeError(`The stream (in ${t$1} state) is not in the readable state and cannot be enqueued to`);
|
|
470
|
+
(function(e$2, t$2) {
|
|
471
|
+
const r$1 = e$2._controlledReadableByteStream;
|
|
472
|
+
if (e$2._closeRequested || "readable" !== r$1._state) return;
|
|
473
|
+
const o$1 = t$2.buffer, n$1 = t$2.byteOffset, a$1 = t$2.byteLength, i$1 = o$1;
|
|
474
|
+
if (e$2._pendingPullIntos.length > 0) {
|
|
475
|
+
const t$3 = e$2._pendingPullIntos.peek();
|
|
476
|
+
t$3.buffer, Re(e$2), t$3.buffer = t$3.buffer, "none" === t$3.readerType && ge(e$2, t$3);
|
|
477
|
+
}
|
|
478
|
+
if (J(r$1)) if (function(e$3) {
|
|
479
|
+
const t$3 = e$3._controlledReadableByteStream._reader;
|
|
480
|
+
for (; t$3._readRequests.length > 0;) {
|
|
481
|
+
if (0 === e$3._queueTotalSize) return;
|
|
482
|
+
We(e$3, t$3._readRequests.shift());
|
|
483
|
+
}
|
|
484
|
+
}(e$2), 0 === X(r$1)) me(e$2, i$1, n$1, a$1);
|
|
485
|
+
else {
|
|
486
|
+
e$2._pendingPullIntos.length > 0 && Ce(e$2);
|
|
487
|
+
G(r$1, new Uint8Array(i$1, n$1, a$1), !1);
|
|
488
|
+
}
|
|
489
|
+
else Le(r$1) ? (me(e$2, i$1, n$1, a$1), Te(e$2)) : me(e$2, i$1, n$1, a$1);
|
|
490
|
+
be(e$2);
|
|
491
|
+
})(this, e$1);
|
|
492
|
+
}
|
|
493
|
+
error(e$1) {
|
|
494
|
+
if (!de(this)) throw Ae("error");
|
|
495
|
+
Pe(this, e$1);
|
|
496
|
+
}
|
|
497
|
+
[T](e$1) {
|
|
498
|
+
he(this), ce(this);
|
|
499
|
+
const t$1 = this._cancelAlgorithm(e$1);
|
|
500
|
+
return Ee(this), t$1;
|
|
501
|
+
}
|
|
502
|
+
[q](e$1) {
|
|
503
|
+
const t$1 = this._controlledReadableByteStream;
|
|
504
|
+
if (this._queueTotalSize > 0) return void We(this, e$1);
|
|
505
|
+
const r$1 = this._autoAllocateChunkSize;
|
|
506
|
+
if (void 0 !== r$1) {
|
|
507
|
+
let t$2;
|
|
508
|
+
try {
|
|
509
|
+
t$2 = new ArrayBuffer(r$1);
|
|
510
|
+
} catch (t$3) {
|
|
511
|
+
return void e$1._errorSteps(t$3);
|
|
512
|
+
}
|
|
513
|
+
const o$1 = {
|
|
514
|
+
buffer: t$2,
|
|
515
|
+
bufferByteLength: r$1,
|
|
516
|
+
byteOffset: 0,
|
|
517
|
+
byteLength: r$1,
|
|
518
|
+
bytesFilled: 0,
|
|
519
|
+
elementSize: 1,
|
|
520
|
+
viewConstructor: Uint8Array,
|
|
521
|
+
readerType: "default"
|
|
522
|
+
};
|
|
523
|
+
this._pendingPullIntos.push(o$1);
|
|
524
|
+
}
|
|
525
|
+
U(t$1, e$1), be(this);
|
|
526
|
+
}
|
|
527
|
+
[C]() {
|
|
528
|
+
if (this._pendingPullIntos.length > 0) {
|
|
529
|
+
const e$1 = this._pendingPullIntos.peek();
|
|
530
|
+
e$1.readerType = "none", this._pendingPullIntos = new S(), this._pendingPullIntos.push(e$1);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
function de(e$1) {
|
|
535
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_controlledReadableByteStream") && e$1 instanceof ReadableByteStreamController;
|
|
536
|
+
}
|
|
537
|
+
function fe(e$1) {
|
|
538
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_associatedReadableByteStreamController") && e$1 instanceof ReadableStreamBYOBRequest;
|
|
539
|
+
}
|
|
540
|
+
function be(e$1) {
|
|
541
|
+
const t$1 = function(e$2) {
|
|
542
|
+
const t$2 = e$2._controlledReadableByteStream;
|
|
543
|
+
if ("readable" !== t$2._state) return !1;
|
|
544
|
+
if (e$2._closeRequested) return !1;
|
|
545
|
+
if (!e$2._started) return !1;
|
|
546
|
+
if (J(t$2) && X(t$2) > 0) return !0;
|
|
547
|
+
if (Le(t$2) && ze(t$2) > 0) return !0;
|
|
548
|
+
if (ke(e$2) > 0) return !0;
|
|
549
|
+
return !1;
|
|
550
|
+
}(e$1);
|
|
551
|
+
if (!t$1) return;
|
|
552
|
+
if (e$1._pulling) return void (e$1._pullAgain = !0);
|
|
553
|
+
e$1._pulling = !0;
|
|
554
|
+
b(e$1._pullAlgorithm(), () => (e$1._pulling = !1, e$1._pullAgain && (e$1._pullAgain = !1, be(e$1)), null), (t$2) => (Pe(e$1, t$2), null));
|
|
555
|
+
}
|
|
556
|
+
function he(e$1) {
|
|
557
|
+
Re(e$1), e$1._pendingPullIntos = new S();
|
|
558
|
+
}
|
|
559
|
+
function _e(e$1, t$1) {
|
|
560
|
+
let r$1 = !1;
|
|
561
|
+
"closed" === e$1._state && (r$1 = !0);
|
|
562
|
+
const o$1 = pe(t$1);
|
|
563
|
+
"default" === t$1.readerType ? G(e$1, o$1, r$1) : function(e$2, t$2, r$2) {
|
|
564
|
+
const o$2 = e$2._reader._readIntoRequests.shift();
|
|
565
|
+
r$2 ? o$2._closeSteps(t$2) : o$2._chunkSteps(t$2);
|
|
566
|
+
}(e$1, o$1, r$1);
|
|
567
|
+
}
|
|
568
|
+
function pe(e$1) {
|
|
569
|
+
const t$1 = e$1.bytesFilled, r$1 = e$1.elementSize;
|
|
570
|
+
return new e$1.viewConstructor(e$1.buffer, e$1.byteOffset, t$1 / r$1);
|
|
571
|
+
}
|
|
572
|
+
function me(e$1, t$1, r$1, o$1) {
|
|
573
|
+
e$1._queue.push({
|
|
574
|
+
buffer: t$1,
|
|
575
|
+
byteOffset: r$1,
|
|
576
|
+
byteLength: o$1
|
|
577
|
+
}), e$1._queueTotalSize += o$1;
|
|
578
|
+
}
|
|
579
|
+
function ye(e$1, t$1, r$1, o$1) {
|
|
580
|
+
let n$1;
|
|
581
|
+
try {
|
|
582
|
+
n$1 = t$1.slice(r$1, r$1 + o$1);
|
|
583
|
+
} catch (t$2) {
|
|
584
|
+
throw Pe(e$1, t$2), t$2;
|
|
585
|
+
}
|
|
586
|
+
me(e$1, n$1, 0, o$1);
|
|
587
|
+
}
|
|
588
|
+
function ge(e$1, t$1) {
|
|
589
|
+
t$1.bytesFilled > 0 && ye(e$1, t$1.buffer, t$1.byteOffset, t$1.bytesFilled), Ce(e$1);
|
|
590
|
+
}
|
|
591
|
+
function we(e$1, t$1) {
|
|
592
|
+
const r$1 = t$1.elementSize, o$1 = t$1.bytesFilled - t$1.bytesFilled % r$1, n$1 = Math.min(e$1._queueTotalSize, t$1.byteLength - t$1.bytesFilled), a$1 = t$1.bytesFilled + n$1, i$1 = a$1 - a$1 % r$1;
|
|
593
|
+
let l$1 = n$1, s$1 = !1;
|
|
594
|
+
i$1 > o$1 && (l$1 = i$1 - t$1.bytesFilled, s$1 = !0);
|
|
595
|
+
const u$1 = e$1._queue;
|
|
596
|
+
for (; l$1 > 0;) {
|
|
597
|
+
const r$2 = u$1.peek(), o$2 = Math.min(l$1, r$2.byteLength), n$2 = t$1.byteOffset + t$1.bytesFilled;
|
|
598
|
+
ie(t$1.buffer, n$2, r$2.buffer, r$2.byteOffset, o$2), r$2.byteLength === o$2 ? u$1.shift() : (r$2.byteOffset += o$2, r$2.byteLength -= o$2), e$1._queueTotalSize -= o$2, Se(e$1, o$2, t$1), l$1 -= o$2;
|
|
599
|
+
}
|
|
600
|
+
return s$1;
|
|
601
|
+
}
|
|
602
|
+
function Se(e$1, t$1, r$1) {
|
|
603
|
+
r$1.bytesFilled += t$1;
|
|
604
|
+
}
|
|
605
|
+
function ve(e$1) {
|
|
606
|
+
0 === e$1._queueTotalSize && e$1._closeRequested ? (Ee(e$1), Xt(e$1._controlledReadableByteStream)) : be(e$1);
|
|
607
|
+
}
|
|
608
|
+
function Re(e$1) {
|
|
609
|
+
null !== e$1._byobRequest && (e$1._byobRequest._associatedReadableByteStreamController = void 0, e$1._byobRequest._view = null, e$1._byobRequest = null);
|
|
610
|
+
}
|
|
611
|
+
function Te(e$1) {
|
|
612
|
+
for (; e$1._pendingPullIntos.length > 0;) {
|
|
613
|
+
if (0 === e$1._queueTotalSize) return;
|
|
614
|
+
const t$1 = e$1._pendingPullIntos.peek();
|
|
615
|
+
we(e$1, t$1) && (Ce(e$1), _e(e$1._controlledReadableByteStream, t$1));
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function qe(e$1, t$1) {
|
|
619
|
+
const r$1 = e$1._pendingPullIntos.peek();
|
|
620
|
+
Re(e$1);
|
|
621
|
+
"closed" === e$1._controlledReadableByteStream._state ? function(e$2, t$2) {
|
|
622
|
+
"none" === t$2.readerType && Ce(e$2);
|
|
623
|
+
const r$2 = e$2._controlledReadableByteStream;
|
|
624
|
+
if (Le(r$2)) for (; ze(r$2) > 0;) _e(r$2, Ce(e$2));
|
|
625
|
+
}(e$1, r$1) : function(e$2, t$2, r$2) {
|
|
626
|
+
if (Se(0, t$2, r$2), "none" === r$2.readerType) return ge(e$2, r$2), void Te(e$2);
|
|
627
|
+
if (r$2.bytesFilled < r$2.elementSize) return;
|
|
628
|
+
Ce(e$2);
|
|
629
|
+
const o$1 = r$2.bytesFilled % r$2.elementSize;
|
|
630
|
+
if (o$1 > 0) {
|
|
631
|
+
const t$3 = r$2.byteOffset + r$2.bytesFilled;
|
|
632
|
+
ye(e$2, r$2.buffer, t$3 - o$1, o$1);
|
|
633
|
+
}
|
|
634
|
+
r$2.bytesFilled -= o$1, _e(e$2._controlledReadableByteStream, r$2), Te(e$2);
|
|
635
|
+
}(e$1, t$1, r$1), be(e$1);
|
|
636
|
+
}
|
|
637
|
+
function Ce(e$1) {
|
|
638
|
+
return e$1._pendingPullIntos.shift();
|
|
639
|
+
}
|
|
640
|
+
function Ee(e$1) {
|
|
641
|
+
e$1._pullAlgorithm = void 0, e$1._cancelAlgorithm = void 0;
|
|
642
|
+
}
|
|
643
|
+
function Pe(e$1, t$1) {
|
|
644
|
+
const r$1 = e$1._controlledReadableByteStream;
|
|
645
|
+
"readable" === r$1._state && (he(e$1), ce(e$1), Ee(e$1), Jt(r$1, t$1));
|
|
646
|
+
}
|
|
647
|
+
function We(e$1, t$1) {
|
|
648
|
+
const r$1 = e$1._queue.shift();
|
|
649
|
+
e$1._queueTotalSize -= r$1.byteLength, ve(e$1);
|
|
650
|
+
const o$1 = new Uint8Array(r$1.buffer, r$1.byteOffset, r$1.byteLength);
|
|
651
|
+
t$1._chunkSteps(o$1);
|
|
652
|
+
}
|
|
653
|
+
function ke(e$1) {
|
|
654
|
+
const t$1 = e$1._controlledReadableByteStream._state;
|
|
655
|
+
return "errored" === t$1 ? null : "closed" === t$1 ? 0 : e$1._strategyHWM - e$1._queueTotalSize;
|
|
656
|
+
}
|
|
657
|
+
function Oe(e$1, t$1, r$1) {
|
|
658
|
+
const o$1 = Object.create(ReadableByteStreamController.prototype);
|
|
659
|
+
let n$1, a$1, i$1;
|
|
660
|
+
n$1 = void 0 !== t$1.start ? () => t$1.start(o$1) : () => {}, a$1 = void 0 !== t$1.pull ? () => t$1.pull(o$1) : () => c(void 0), i$1 = void 0 !== t$1.cancel ? (e$2) => t$1.cancel(e$2) : () => c(void 0);
|
|
661
|
+
const l$1 = t$1.autoAllocateChunkSize;
|
|
662
|
+
if (0 === l$1) throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
663
|
+
(function(e$2, t$2, r$2, o$2, n$2, a$2, i$2) {
|
|
664
|
+
t$2._controlledReadableByteStream = e$2, t$2._pullAgain = !1, t$2._pulling = !1, t$2._byobRequest = null, t$2._queue = t$2._queueTotalSize = void 0, ce(t$2), t$2._closeRequested = !1, t$2._started = !1, t$2._strategyHWM = a$2, t$2._pullAlgorithm = o$2, t$2._cancelAlgorithm = n$2, t$2._autoAllocateChunkSize = i$2, t$2._pendingPullIntos = new S(), e$2._readableStreamController = t$2, b(c(r$2()), () => (t$2._started = !0, be(t$2), null), (e$3) => (Pe(t$2, e$3), null));
|
|
665
|
+
})(e$1, o$1, n$1, a$1, i$1, r$1, l$1);
|
|
666
|
+
}
|
|
667
|
+
function Be(e$1) {
|
|
668
|
+
return new TypeError(`ReadableStreamBYOBRequest.prototype.${e$1} can only be used on a ReadableStreamBYOBRequest`);
|
|
669
|
+
}
|
|
670
|
+
function Ae(e$1) {
|
|
671
|
+
return new TypeError(`ReadableByteStreamController.prototype.${e$1} can only be used on a ReadableByteStreamController`);
|
|
672
|
+
}
|
|
673
|
+
function je(e$1, t$1) {
|
|
674
|
+
e$1._reader._readIntoRequests.push(t$1);
|
|
675
|
+
}
|
|
676
|
+
function ze(e$1) {
|
|
677
|
+
return e$1._reader._readIntoRequests.length;
|
|
678
|
+
}
|
|
679
|
+
function Le(e$1) {
|
|
680
|
+
const t$1 = e$1._reader;
|
|
681
|
+
return void 0 !== t$1 && !!Fe(t$1);
|
|
682
|
+
}
|
|
683
|
+
Object.defineProperties(ReadableByteStreamController.prototype, {
|
|
684
|
+
close: { enumerable: !0 },
|
|
685
|
+
enqueue: { enumerable: !0 },
|
|
686
|
+
error: { enumerable: !0 },
|
|
687
|
+
byobRequest: { enumerable: !0 },
|
|
688
|
+
desiredSize: { enumerable: !0 }
|
|
689
|
+
}), 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, {
|
|
690
|
+
value: "ReadableByteStreamController",
|
|
691
|
+
configurable: !0
|
|
692
|
+
});
|
|
693
|
+
var ReadableStreamBYOBReader = class {
|
|
694
|
+
constructor(e$1) {
|
|
695
|
+
if ($(e$1, 1, "ReadableStreamBYOBReader"), V(e$1, "First parameter"), Ut(e$1)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
696
|
+
if (!de(e$1._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
|
|
697
|
+
E(this, e$1), this._readIntoRequests = new S();
|
|
698
|
+
}
|
|
699
|
+
get closed() {
|
|
700
|
+
return Fe(this) ? this._closedPromise : d(De("closed"));
|
|
701
|
+
}
|
|
702
|
+
cancel(e$1) {
|
|
703
|
+
return Fe(this) ? void 0 === this._ownerReadableStream ? d(k("cancel")) : P(this, e$1) : d(De("cancel"));
|
|
704
|
+
}
|
|
705
|
+
read(e$1) {
|
|
706
|
+
if (!Fe(this)) return d(De("read"));
|
|
707
|
+
if (!ArrayBuffer.isView(e$1)) return d(new TypeError("view must be an array buffer view"));
|
|
708
|
+
if (0 === e$1.byteLength) return d(new TypeError("view must have non-zero byteLength"));
|
|
709
|
+
if (0 === e$1.buffer.byteLength) return d(new TypeError("view's buffer must have non-zero byteLength"));
|
|
710
|
+
if (e$1.buffer, void 0 === this._ownerReadableStream) return d(k("read from"));
|
|
711
|
+
let t$1, r$1;
|
|
712
|
+
const o$1 = u((e$2, o$2) => {
|
|
713
|
+
t$1 = e$2, r$1 = o$2;
|
|
714
|
+
});
|
|
715
|
+
return function(e$2, t$2, r$2) {
|
|
716
|
+
const o$2 = e$2._ownerReadableStream;
|
|
717
|
+
o$2._disturbed = !0, "errored" === o$2._state ? r$2._errorSteps(o$2._storedError) : function(e$3, t$3, r$3) {
|
|
718
|
+
const o$3 = e$3._controlledReadableByteStream;
|
|
719
|
+
let n$1 = 1;
|
|
720
|
+
t$3.constructor !== DataView && (n$1 = t$3.constructor.BYTES_PER_ELEMENT);
|
|
721
|
+
const a$1 = t$3.constructor, i$1 = t$3.buffer, l$1 = {
|
|
722
|
+
buffer: i$1,
|
|
723
|
+
bufferByteLength: i$1.byteLength,
|
|
724
|
+
byteOffset: t$3.byteOffset,
|
|
725
|
+
byteLength: t$3.byteLength,
|
|
726
|
+
bytesFilled: 0,
|
|
727
|
+
elementSize: n$1,
|
|
728
|
+
viewConstructor: a$1,
|
|
729
|
+
readerType: "byob"
|
|
730
|
+
};
|
|
731
|
+
if (e$3._pendingPullIntos.length > 0) return e$3._pendingPullIntos.push(l$1), void je(o$3, r$3);
|
|
732
|
+
if ("closed" !== o$3._state) {
|
|
733
|
+
if (e$3._queueTotalSize > 0) {
|
|
734
|
+
if (we(e$3, l$1)) {
|
|
735
|
+
const t$4 = pe(l$1);
|
|
736
|
+
return ve(e$3), void r$3._chunkSteps(t$4);
|
|
737
|
+
}
|
|
738
|
+
if (e$3._closeRequested) {
|
|
739
|
+
const t$4 = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
740
|
+
return Pe(e$3, t$4), void r$3._errorSteps(t$4);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
e$3._pendingPullIntos.push(l$1), je(o$3, r$3), be(e$3);
|
|
744
|
+
} else {
|
|
745
|
+
const e$4 = new a$1(l$1.buffer, l$1.byteOffset, 0);
|
|
746
|
+
r$3._closeSteps(e$4);
|
|
747
|
+
}
|
|
748
|
+
}(o$2._readableStreamController, t$2, r$2);
|
|
749
|
+
}(this, e$1, {
|
|
750
|
+
_chunkSteps: (e$2) => t$1({
|
|
751
|
+
value: e$2,
|
|
752
|
+
done: !1
|
|
753
|
+
}),
|
|
754
|
+
_closeSteps: (e$2) => t$1({
|
|
755
|
+
value: e$2,
|
|
756
|
+
done: !0
|
|
757
|
+
}),
|
|
758
|
+
_errorSteps: (e$2) => r$1(e$2)
|
|
759
|
+
}), o$1;
|
|
760
|
+
}
|
|
761
|
+
releaseLock() {
|
|
762
|
+
if (!Fe(this)) throw De("releaseLock");
|
|
763
|
+
void 0 !== this._ownerReadableStream && function(e$1) {
|
|
764
|
+
W(e$1);
|
|
765
|
+
const t$1 = new TypeError("Reader was released");
|
|
766
|
+
Ie(e$1, t$1);
|
|
767
|
+
}(this);
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
function Fe(e$1) {
|
|
771
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_readIntoRequests") && e$1 instanceof ReadableStreamBYOBReader;
|
|
772
|
+
}
|
|
773
|
+
function Ie(e$1, t$1) {
|
|
774
|
+
const r$1 = e$1._readIntoRequests;
|
|
775
|
+
e$1._readIntoRequests = new S(), r$1.forEach((e$2) => {
|
|
776
|
+
e$2._errorSteps(t$1);
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
function De(e$1) {
|
|
780
|
+
return new TypeError(`ReadableStreamBYOBReader.prototype.${e$1} can only be used on a ReadableStreamBYOBReader`);
|
|
781
|
+
}
|
|
782
|
+
function $e(e$1, t$1) {
|
|
783
|
+
const { highWaterMark: r$1 } = e$1;
|
|
784
|
+
if (void 0 === r$1) return t$1;
|
|
785
|
+
if (ae(r$1) || r$1 < 0) throw new RangeError("Invalid highWaterMark");
|
|
786
|
+
return r$1;
|
|
787
|
+
}
|
|
788
|
+
function Me(e$1) {
|
|
789
|
+
const { size: t$1 } = e$1;
|
|
790
|
+
return t$1 || (() => 1);
|
|
791
|
+
}
|
|
792
|
+
function Ye(e$1, t$1) {
|
|
793
|
+
F(e$1, t$1);
|
|
794
|
+
const r$1 = null == e$1 ? void 0 : e$1.highWaterMark, o$1 = null == e$1 ? void 0 : e$1.size;
|
|
795
|
+
return {
|
|
796
|
+
highWaterMark: void 0 === r$1 ? void 0 : Y(r$1),
|
|
797
|
+
size: void 0 === o$1 ? void 0 : Qe(o$1, `${t$1} has member 'size' that`)
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
function Qe(e$1, t$1) {
|
|
801
|
+
return I(e$1, t$1), (t$2) => Y(e$1(t$2));
|
|
802
|
+
}
|
|
803
|
+
function Ne(e$1, t$1, r$1) {
|
|
804
|
+
return I(e$1, r$1), (r$2) => w(e$1, t$1, [r$2]);
|
|
805
|
+
}
|
|
806
|
+
function He(e$1, t$1, r$1) {
|
|
807
|
+
return I(e$1, r$1), () => w(e$1, t$1, []);
|
|
808
|
+
}
|
|
809
|
+
function xe(e$1, t$1, r$1) {
|
|
810
|
+
return I(e$1, r$1), (r$2) => g(e$1, t$1, [r$2]);
|
|
811
|
+
}
|
|
812
|
+
function Ve(e$1, t$1, r$1) {
|
|
813
|
+
return I(e$1, r$1), (r$2, o$1) => w(e$1, t$1, [r$2, o$1]);
|
|
814
|
+
}
|
|
815
|
+
Object.defineProperties(ReadableStreamBYOBReader.prototype, {
|
|
816
|
+
cancel: { enumerable: !0 },
|
|
817
|
+
read: { enumerable: !0 },
|
|
818
|
+
releaseLock: { enumerable: !0 },
|
|
819
|
+
closed: { enumerable: !0 }
|
|
820
|
+
}), 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, {
|
|
821
|
+
value: "ReadableStreamBYOBReader",
|
|
822
|
+
configurable: !0
|
|
823
|
+
});
|
|
824
|
+
const Ue = "function" == typeof AbortController;
|
|
825
|
+
var WritableStream = class {
|
|
826
|
+
constructor(e$1 = {}, t$1 = {}) {
|
|
827
|
+
void 0 === e$1 ? e$1 = null : D(e$1, "First parameter");
|
|
828
|
+
const r$1 = Ye(t$1, "Second parameter"), o$1 = function(e$2, t$2) {
|
|
829
|
+
F(e$2, t$2);
|
|
830
|
+
const r$2 = null == e$2 ? void 0 : e$2.abort, o$2 = null == e$2 ? void 0 : e$2.close, n$2 = null == e$2 ? void 0 : e$2.start, a$2 = null == e$2 ? void 0 : e$2.type, i$1 = null == e$2 ? void 0 : e$2.write;
|
|
831
|
+
return {
|
|
832
|
+
abort: void 0 === r$2 ? void 0 : Ne(r$2, e$2, `${t$2} has member 'abort' that`),
|
|
833
|
+
close: void 0 === o$2 ? void 0 : He(o$2, e$2, `${t$2} has member 'close' that`),
|
|
834
|
+
start: void 0 === n$2 ? void 0 : xe(n$2, e$2, `${t$2} has member 'start' that`),
|
|
835
|
+
write: void 0 === i$1 ? void 0 : Ve(i$1, e$2, `${t$2} has member 'write' that`),
|
|
836
|
+
type: a$2
|
|
837
|
+
};
|
|
838
|
+
}(e$1, "First parameter");
|
|
839
|
+
var n$1;
|
|
840
|
+
(n$1 = this)._state = "writable", n$1._storedError = void 0, n$1._writer = void 0, n$1._writableStreamController = void 0, n$1._writeRequests = new S(), n$1._inFlightWriteRequest = void 0, n$1._closeRequest = void 0, n$1._inFlightCloseRequest = void 0, n$1._pendingAbortRequest = void 0, n$1._backpressure = !1;
|
|
841
|
+
if (void 0 !== o$1.type) throw new RangeError("Invalid type is specified");
|
|
842
|
+
const a$1 = Me(r$1);
|
|
843
|
+
(function(e$2, t$2, r$2, o$2) {
|
|
844
|
+
const n$2 = Object.create(WritableStreamDefaultController.prototype);
|
|
845
|
+
let a$2, i$1, l$1, s$1;
|
|
846
|
+
a$2 = void 0 !== t$2.start ? () => t$2.start(n$2) : () => {};
|
|
847
|
+
i$1 = void 0 !== t$2.write ? (e$3) => t$2.write(e$3, n$2) : () => c(void 0);
|
|
848
|
+
l$1 = void 0 !== t$2.close ? () => t$2.close() : () => c(void 0);
|
|
849
|
+
s$1 = void 0 !== t$2.abort ? (e$3) => t$2.abort(e$3) : () => c(void 0);
|
|
850
|
+
(function(e$3, t$3, r$3, o$3, n$3, a$3, i$2, l$2) {
|
|
851
|
+
t$3._controlledWritableStream = e$3, e$3._writableStreamController = t$3, t$3._queue = void 0, t$3._queueTotalSize = void 0, ce(t$3), t$3._abortReason = void 0, t$3._abortController = function() {
|
|
852
|
+
if (Ue) return new AbortController();
|
|
853
|
+
}(), t$3._started = !1, t$3._strategySizeAlgorithm = l$2, t$3._strategyHWM = i$2, t$3._writeAlgorithm = o$3, t$3._closeAlgorithm = n$3, t$3._abortAlgorithm = a$3;
|
|
854
|
+
const s$2 = bt(t$3);
|
|
855
|
+
nt(e$3, s$2);
|
|
856
|
+
const u$1 = r$3();
|
|
857
|
+
b(c(u$1), () => (t$3._started = !0, dt(t$3), null), (r$4) => (t$3._started = !0, Ze(e$3, r$4), null));
|
|
858
|
+
})(e$2, n$2, a$2, i$1, l$1, s$1, r$2, o$2);
|
|
859
|
+
})(this, o$1, $e(r$1, 1), a$1);
|
|
860
|
+
}
|
|
861
|
+
get locked() {
|
|
862
|
+
if (!Ge(this)) throw _t("locked");
|
|
863
|
+
return Xe(this);
|
|
864
|
+
}
|
|
865
|
+
abort(e$1) {
|
|
866
|
+
return Ge(this) ? Xe(this) ? d(new TypeError("Cannot abort a stream that already has a writer")) : Je(this, e$1) : d(_t("abort"));
|
|
867
|
+
}
|
|
868
|
+
close() {
|
|
869
|
+
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"));
|
|
870
|
+
}
|
|
871
|
+
getWriter() {
|
|
872
|
+
if (!Ge(this)) throw _t("getWriter");
|
|
873
|
+
return new WritableStreamDefaultWriter(this);
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
function Ge(e$1) {
|
|
877
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_writableStreamController") && e$1 instanceof WritableStream;
|
|
878
|
+
}
|
|
879
|
+
function Xe(e$1) {
|
|
880
|
+
return void 0 !== e$1._writer;
|
|
881
|
+
}
|
|
882
|
+
function Je(e$1, t$1) {
|
|
883
|
+
var r$1;
|
|
884
|
+
if ("closed" === e$1._state || "errored" === e$1._state) return c(void 0);
|
|
885
|
+
e$1._writableStreamController._abortReason = t$1, null === (r$1 = e$1._writableStreamController._abortController) || void 0 === r$1 || r$1.abort(t$1);
|
|
886
|
+
const o$1 = e$1._state;
|
|
887
|
+
if ("closed" === o$1 || "errored" === o$1) return c(void 0);
|
|
888
|
+
if (void 0 !== e$1._pendingAbortRequest) return e$1._pendingAbortRequest._promise;
|
|
889
|
+
let n$1 = !1;
|
|
890
|
+
"erroring" === o$1 && (n$1 = !0, t$1 = void 0);
|
|
891
|
+
const a$1 = u((r$2, o$2) => {
|
|
892
|
+
e$1._pendingAbortRequest = {
|
|
893
|
+
_promise: void 0,
|
|
894
|
+
_resolve: r$2,
|
|
895
|
+
_reject: o$2,
|
|
896
|
+
_reason: t$1,
|
|
897
|
+
_wasAlreadyErroring: n$1
|
|
898
|
+
};
|
|
899
|
+
});
|
|
900
|
+
return e$1._pendingAbortRequest._promise = a$1, n$1 || et(e$1, t$1), a$1;
|
|
901
|
+
}
|
|
902
|
+
function Ke(e$1) {
|
|
903
|
+
const t$1 = e$1._state;
|
|
904
|
+
if ("closed" === t$1 || "errored" === t$1) return d(new TypeError(`The stream (in ${t$1} state) is not in the writable state and cannot be closed`));
|
|
905
|
+
const r$1 = u((t$2, r$2) => {
|
|
906
|
+
const o$2 = {
|
|
907
|
+
_resolve: t$2,
|
|
908
|
+
_reject: r$2
|
|
909
|
+
};
|
|
910
|
+
e$1._closeRequest = o$2;
|
|
911
|
+
}), o$1 = e$1._writer;
|
|
912
|
+
var n$1;
|
|
913
|
+
return void 0 !== o$1 && e$1._backpressure && "writable" === t$1 && Et(o$1), ue(n$1 = e$1._writableStreamController, lt, 0), dt(n$1), r$1;
|
|
914
|
+
}
|
|
915
|
+
function Ze(e$1, t$1) {
|
|
916
|
+
"writable" !== e$1._state ? tt(e$1) : et(e$1, t$1);
|
|
917
|
+
}
|
|
918
|
+
function et(e$1, t$1) {
|
|
919
|
+
const r$1 = e$1._writableStreamController;
|
|
920
|
+
e$1._state = "erroring", e$1._storedError = t$1;
|
|
921
|
+
const o$1 = e$1._writer;
|
|
922
|
+
void 0 !== o$1 && it(o$1, t$1), !function(e$2) {
|
|
923
|
+
if (void 0 === e$2._inFlightWriteRequest && void 0 === e$2._inFlightCloseRequest) return !1;
|
|
924
|
+
return !0;
|
|
925
|
+
}(e$1) && r$1._started && tt(e$1);
|
|
926
|
+
}
|
|
927
|
+
function tt(e$1) {
|
|
928
|
+
e$1._state = "errored", e$1._writableStreamController[R]();
|
|
929
|
+
const t$1 = e$1._storedError;
|
|
930
|
+
if (e$1._writeRequests.forEach((e$2) => {
|
|
931
|
+
e$2._reject(t$1);
|
|
932
|
+
}), e$1._writeRequests = new S(), void 0 === e$1._pendingAbortRequest) return void ot(e$1);
|
|
933
|
+
const r$1 = e$1._pendingAbortRequest;
|
|
934
|
+
if (e$1._pendingAbortRequest = void 0, r$1._wasAlreadyErroring) return r$1._reject(t$1), void ot(e$1);
|
|
935
|
+
b(e$1._writableStreamController[v](r$1._reason), () => (r$1._resolve(), ot(e$1), null), (t$2) => (r$1._reject(t$2), ot(e$1), null));
|
|
936
|
+
}
|
|
937
|
+
function rt(e$1) {
|
|
938
|
+
return void 0 !== e$1._closeRequest || void 0 !== e$1._inFlightCloseRequest;
|
|
939
|
+
}
|
|
940
|
+
function ot(e$1) {
|
|
941
|
+
void 0 !== e$1._closeRequest && (e$1._closeRequest._reject(e$1._storedError), e$1._closeRequest = void 0);
|
|
942
|
+
const t$1 = e$1._writer;
|
|
943
|
+
void 0 !== t$1 && St(t$1, e$1._storedError);
|
|
944
|
+
}
|
|
945
|
+
function nt(e$1, t$1) {
|
|
946
|
+
const r$1 = e$1._writer;
|
|
947
|
+
void 0 !== r$1 && t$1 !== e$1._backpressure && (t$1 ? function(e$2) {
|
|
948
|
+
Rt(e$2);
|
|
949
|
+
}(r$1) : Et(r$1)), e$1._backpressure = t$1;
|
|
950
|
+
}
|
|
951
|
+
Object.defineProperties(WritableStream.prototype, {
|
|
952
|
+
abort: { enumerable: !0 },
|
|
953
|
+
close: { enumerable: !0 },
|
|
954
|
+
getWriter: { enumerable: !0 },
|
|
955
|
+
locked: { enumerable: !0 }
|
|
956
|
+
}), 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, {
|
|
957
|
+
value: "WritableStream",
|
|
958
|
+
configurable: !0
|
|
959
|
+
});
|
|
960
|
+
var WritableStreamDefaultWriter = class {
|
|
961
|
+
constructor(e$1) {
|
|
962
|
+
if ($(e$1, 1, "WritableStreamDefaultWriter"), function(e$2, t$2) {
|
|
963
|
+
if (!Ge(e$2)) throw new TypeError(`${t$2} is not a WritableStream.`);
|
|
964
|
+
}(e$1, "First parameter"), Xe(e$1)) throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
965
|
+
this._ownerWritableStream = e$1, e$1._writer = this;
|
|
966
|
+
const t$1 = e$1._state;
|
|
967
|
+
if ("writable" === t$1) !rt(e$1) && e$1._backpressure ? Rt(this) : qt(this), gt(this);
|
|
968
|
+
else if ("erroring" === t$1) Tt(this, e$1._storedError), gt(this);
|
|
969
|
+
else if ("closed" === t$1) qt(this), gt(r$1 = this), vt(r$1);
|
|
970
|
+
else {
|
|
971
|
+
const t$2 = e$1._storedError;
|
|
972
|
+
Tt(this, t$2), wt(this, t$2);
|
|
973
|
+
}
|
|
974
|
+
var r$1;
|
|
975
|
+
}
|
|
976
|
+
get closed() {
|
|
977
|
+
return at(this) ? this._closedPromise : d(mt("closed"));
|
|
978
|
+
}
|
|
979
|
+
get desiredSize() {
|
|
980
|
+
if (!at(this)) throw mt("desiredSize");
|
|
981
|
+
if (void 0 === this._ownerWritableStream) throw yt("desiredSize");
|
|
982
|
+
return function(e$1) {
|
|
983
|
+
const t$1 = e$1._ownerWritableStream, r$1 = t$1._state;
|
|
984
|
+
if ("errored" === r$1 || "erroring" === r$1) return null;
|
|
985
|
+
if ("closed" === r$1) return 0;
|
|
986
|
+
return ct(t$1._writableStreamController);
|
|
987
|
+
}(this);
|
|
988
|
+
}
|
|
989
|
+
get ready() {
|
|
990
|
+
return at(this) ? this._readyPromise : d(mt("ready"));
|
|
991
|
+
}
|
|
992
|
+
abort(e$1) {
|
|
993
|
+
return at(this) ? void 0 === this._ownerWritableStream ? d(yt("abort")) : function(e$2, t$1) {
|
|
994
|
+
return Je(e$2._ownerWritableStream, t$1);
|
|
995
|
+
}(this, e$1) : d(mt("abort"));
|
|
996
|
+
}
|
|
997
|
+
close() {
|
|
998
|
+
if (!at(this)) return d(mt("close"));
|
|
999
|
+
const e$1 = this._ownerWritableStream;
|
|
1000
|
+
return void 0 === e$1 ? d(yt("close")) : rt(e$1) ? d(new TypeError("Cannot close an already-closing stream")) : Ke(this._ownerWritableStream);
|
|
1001
|
+
}
|
|
1002
|
+
releaseLock() {
|
|
1003
|
+
if (!at(this)) throw mt("releaseLock");
|
|
1004
|
+
void 0 !== this._ownerWritableStream && function(e$1) {
|
|
1005
|
+
const t$1 = e$1._ownerWritableStream, r$1 = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
1006
|
+
it(e$1, r$1), function(e$2, t$2) {
|
|
1007
|
+
"pending" === e$2._closedPromiseState ? St(e$2, t$2) : function(e$3, t$3) {
|
|
1008
|
+
wt(e$3, t$3);
|
|
1009
|
+
}(e$2, t$2);
|
|
1010
|
+
}(e$1, r$1), t$1._writer = void 0, e$1._ownerWritableStream = void 0;
|
|
1011
|
+
}(this);
|
|
1012
|
+
}
|
|
1013
|
+
write(e$1) {
|
|
1014
|
+
return at(this) ? void 0 === this._ownerWritableStream ? d(yt("write to")) : function(e$2, t$1) {
|
|
1015
|
+
const r$1 = e$2._ownerWritableStream, o$1 = r$1._writableStreamController, n$1 = function(e$3, t$2) {
|
|
1016
|
+
try {
|
|
1017
|
+
return e$3._strategySizeAlgorithm(t$2);
|
|
1018
|
+
} catch (t$3) {
|
|
1019
|
+
return ft(e$3, t$3), 1;
|
|
1020
|
+
}
|
|
1021
|
+
}(o$1, t$1);
|
|
1022
|
+
if (r$1 !== e$2._ownerWritableStream) return d(yt("write to"));
|
|
1023
|
+
const a$1 = r$1._state;
|
|
1024
|
+
if ("errored" === a$1) return d(r$1._storedError);
|
|
1025
|
+
if (rt(r$1) || "closed" === a$1) return d(new TypeError("The stream is closing or closed and cannot be written to"));
|
|
1026
|
+
if ("erroring" === a$1) return d(r$1._storedError);
|
|
1027
|
+
const i$1 = function(e$3) {
|
|
1028
|
+
return u((t$2, r$2) => {
|
|
1029
|
+
const o$2 = {
|
|
1030
|
+
_resolve: t$2,
|
|
1031
|
+
_reject: r$2
|
|
1032
|
+
};
|
|
1033
|
+
e$3._writeRequests.push(o$2);
|
|
1034
|
+
});
|
|
1035
|
+
}(r$1);
|
|
1036
|
+
return function(e$3, t$2, r$2) {
|
|
1037
|
+
try {
|
|
1038
|
+
ue(e$3, t$2, r$2);
|
|
1039
|
+
} catch (t$3) {
|
|
1040
|
+
return void ft(e$3, t$3);
|
|
1041
|
+
}
|
|
1042
|
+
const o$2 = e$3._controlledWritableStream;
|
|
1043
|
+
if (!rt(o$2) && "writable" === o$2._state) nt(o$2, bt(e$3));
|
|
1044
|
+
dt(e$3);
|
|
1045
|
+
}(o$1, t$1, n$1), i$1;
|
|
1046
|
+
}(this, e$1) : d(mt("write"));
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
function at(e$1) {
|
|
1050
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_ownerWritableStream") && e$1 instanceof WritableStreamDefaultWriter;
|
|
1051
|
+
}
|
|
1052
|
+
function it(e$1, t$1) {
|
|
1053
|
+
"pending" === e$1._readyPromiseState ? Ct(e$1, t$1) : function(e$2, t$2) {
|
|
1054
|
+
Tt(e$2, t$2);
|
|
1055
|
+
}(e$1, t$1);
|
|
1056
|
+
}
|
|
1057
|
+
Object.defineProperties(WritableStreamDefaultWriter.prototype, {
|
|
1058
|
+
abort: { enumerable: !0 },
|
|
1059
|
+
close: { enumerable: !0 },
|
|
1060
|
+
releaseLock: { enumerable: !0 },
|
|
1061
|
+
write: { enumerable: !0 },
|
|
1062
|
+
closed: { enumerable: !0 },
|
|
1063
|
+
desiredSize: { enumerable: !0 },
|
|
1064
|
+
ready: { enumerable: !0 }
|
|
1065
|
+
}), 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, {
|
|
1066
|
+
value: "WritableStreamDefaultWriter",
|
|
1067
|
+
configurable: !0
|
|
1068
|
+
});
|
|
1069
|
+
const lt = {};
|
|
1070
|
+
var WritableStreamDefaultController = class {
|
|
1071
|
+
constructor() {
|
|
1072
|
+
throw new TypeError("Illegal constructor");
|
|
1073
|
+
}
|
|
1074
|
+
get abortReason() {
|
|
1075
|
+
if (!st(this)) throw pt("abortReason");
|
|
1076
|
+
return this._abortReason;
|
|
1077
|
+
}
|
|
1078
|
+
get signal() {
|
|
1079
|
+
if (!st(this)) throw pt("signal");
|
|
1080
|
+
if (void 0 === this._abortController) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");
|
|
1081
|
+
return this._abortController.signal;
|
|
1082
|
+
}
|
|
1083
|
+
error(e$1) {
|
|
1084
|
+
if (!st(this)) throw pt("error");
|
|
1085
|
+
"writable" === this._controlledWritableStream._state && ht(this, e$1);
|
|
1086
|
+
}
|
|
1087
|
+
[v](e$1) {
|
|
1088
|
+
const t$1 = this._abortAlgorithm(e$1);
|
|
1089
|
+
return ut(this), t$1;
|
|
1090
|
+
}
|
|
1091
|
+
[R]() {
|
|
1092
|
+
ce(this);
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
function st(e$1) {
|
|
1096
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_controlledWritableStream") && e$1 instanceof WritableStreamDefaultController;
|
|
1097
|
+
}
|
|
1098
|
+
function ut(e$1) {
|
|
1099
|
+
e$1._writeAlgorithm = void 0, e$1._closeAlgorithm = void 0, e$1._abortAlgorithm = void 0, e$1._strategySizeAlgorithm = void 0;
|
|
1100
|
+
}
|
|
1101
|
+
function ct(e$1) {
|
|
1102
|
+
return e$1._strategyHWM - e$1._queueTotalSize;
|
|
1103
|
+
}
|
|
1104
|
+
function dt(e$1) {
|
|
1105
|
+
const t$1 = e$1._controlledWritableStream;
|
|
1106
|
+
if (!e$1._started) return;
|
|
1107
|
+
if (void 0 !== t$1._inFlightWriteRequest) return;
|
|
1108
|
+
if ("erroring" === t$1._state) return void tt(t$1);
|
|
1109
|
+
if (0 === e$1._queue.length) return;
|
|
1110
|
+
const r$1 = e$1._queue.peek().value;
|
|
1111
|
+
r$1 === lt ? function(e$2) {
|
|
1112
|
+
const t$2 = e$2._controlledWritableStream;
|
|
1113
|
+
(function(e$3) {
|
|
1114
|
+
e$3._inFlightCloseRequest = e$3._closeRequest, e$3._closeRequest = void 0;
|
|
1115
|
+
})(t$2), se(e$2);
|
|
1116
|
+
const r$2 = e$2._closeAlgorithm();
|
|
1117
|
+
ut(e$2), b(r$2, () => (function(e$3) {
|
|
1118
|
+
e$3._inFlightCloseRequest._resolve(void 0), e$3._inFlightCloseRequest = void 0, "erroring" === e$3._state && (e$3._storedError = void 0, void 0 !== e$3._pendingAbortRequest && (e$3._pendingAbortRequest._resolve(), e$3._pendingAbortRequest = void 0)), e$3._state = "closed";
|
|
1119
|
+
const t$3 = e$3._writer;
|
|
1120
|
+
void 0 !== t$3 && vt(t$3);
|
|
1121
|
+
}(t$2), null), (e$3) => (function(e$4, t$3) {
|
|
1122
|
+
e$4._inFlightCloseRequest._reject(t$3), e$4._inFlightCloseRequest = void 0, void 0 !== e$4._pendingAbortRequest && (e$4._pendingAbortRequest._reject(t$3), e$4._pendingAbortRequest = void 0), Ze(e$4, t$3);
|
|
1123
|
+
}(t$2, e$3), null));
|
|
1124
|
+
}(e$1) : function(e$2, t$2) {
|
|
1125
|
+
const r$2 = e$2._controlledWritableStream;
|
|
1126
|
+
(function(e$3) {
|
|
1127
|
+
e$3._inFlightWriteRequest = e$3._writeRequests.shift();
|
|
1128
|
+
})(r$2);
|
|
1129
|
+
b(e$2._writeAlgorithm(t$2), () => {
|
|
1130
|
+
(function(e$3) {
|
|
1131
|
+
e$3._inFlightWriteRequest._resolve(void 0), e$3._inFlightWriteRequest = void 0;
|
|
1132
|
+
})(r$2);
|
|
1133
|
+
const t$3 = r$2._state;
|
|
1134
|
+
if (se(e$2), !rt(r$2) && "writable" === t$3) {
|
|
1135
|
+
const t$4 = bt(e$2);
|
|
1136
|
+
nt(r$2, t$4);
|
|
1137
|
+
}
|
|
1138
|
+
return dt(e$2), null;
|
|
1139
|
+
}, (t$3) => ("writable" === r$2._state && ut(e$2), function(e$3, t$4) {
|
|
1140
|
+
e$3._inFlightWriteRequest._reject(t$4), e$3._inFlightWriteRequest = void 0, Ze(e$3, t$4);
|
|
1141
|
+
}(r$2, t$3), null));
|
|
1142
|
+
}(e$1, r$1);
|
|
1143
|
+
}
|
|
1144
|
+
function ft(e$1, t$1) {
|
|
1145
|
+
"writable" === e$1._controlledWritableStream._state && ht(e$1, t$1);
|
|
1146
|
+
}
|
|
1147
|
+
function bt(e$1) {
|
|
1148
|
+
return ct(e$1) <= 0;
|
|
1149
|
+
}
|
|
1150
|
+
function ht(e$1, t$1) {
|
|
1151
|
+
const r$1 = e$1._controlledWritableStream;
|
|
1152
|
+
ut(e$1), et(r$1, t$1);
|
|
1153
|
+
}
|
|
1154
|
+
function _t(e$1) {
|
|
1155
|
+
return new TypeError(`WritableStream.prototype.${e$1} can only be used on a WritableStream`);
|
|
1156
|
+
}
|
|
1157
|
+
function pt(e$1) {
|
|
1158
|
+
return new TypeError(`WritableStreamDefaultController.prototype.${e$1} can only be used on a WritableStreamDefaultController`);
|
|
1159
|
+
}
|
|
1160
|
+
function mt(e$1) {
|
|
1161
|
+
return new TypeError(`WritableStreamDefaultWriter.prototype.${e$1} can only be used on a WritableStreamDefaultWriter`);
|
|
1162
|
+
}
|
|
1163
|
+
function yt(e$1) {
|
|
1164
|
+
return new TypeError("Cannot " + e$1 + " a stream using a released writer");
|
|
1165
|
+
}
|
|
1166
|
+
function gt(e$1) {
|
|
1167
|
+
e$1._closedPromise = u((t$1, r$1) => {
|
|
1168
|
+
e$1._closedPromise_resolve = t$1, e$1._closedPromise_reject = r$1, e$1._closedPromiseState = "pending";
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
function wt(e$1, t$1) {
|
|
1172
|
+
gt(e$1), St(e$1, t$1);
|
|
1173
|
+
}
|
|
1174
|
+
function St(e$1, t$1) {
|
|
1175
|
+
void 0 !== e$1._closedPromise_reject && (m(e$1._closedPromise), e$1._closedPromise_reject(t$1), e$1._closedPromise_resolve = void 0, e$1._closedPromise_reject = void 0, e$1._closedPromiseState = "rejected");
|
|
1176
|
+
}
|
|
1177
|
+
function vt(e$1) {
|
|
1178
|
+
void 0 !== e$1._closedPromise_resolve && (e$1._closedPromise_resolve(void 0), e$1._closedPromise_resolve = void 0, e$1._closedPromise_reject = void 0, e$1._closedPromiseState = "resolved");
|
|
1179
|
+
}
|
|
1180
|
+
function Rt(e$1) {
|
|
1181
|
+
e$1._readyPromise = u((t$1, r$1) => {
|
|
1182
|
+
e$1._readyPromise_resolve = t$1, e$1._readyPromise_reject = r$1;
|
|
1183
|
+
}), e$1._readyPromiseState = "pending";
|
|
1184
|
+
}
|
|
1185
|
+
function Tt(e$1, t$1) {
|
|
1186
|
+
Rt(e$1), Ct(e$1, t$1);
|
|
1187
|
+
}
|
|
1188
|
+
function qt(e$1) {
|
|
1189
|
+
Rt(e$1), Et(e$1);
|
|
1190
|
+
}
|
|
1191
|
+
function Ct(e$1, t$1) {
|
|
1192
|
+
void 0 !== e$1._readyPromise_reject && (m(e$1._readyPromise), e$1._readyPromise_reject(t$1), e$1._readyPromise_resolve = void 0, e$1._readyPromise_reject = void 0, e$1._readyPromiseState = "rejected");
|
|
1193
|
+
}
|
|
1194
|
+
function Et(e$1) {
|
|
1195
|
+
void 0 !== e$1._readyPromise_resolve && (e$1._readyPromise_resolve(void 0), e$1._readyPromise_resolve = void 0, e$1._readyPromise_reject = void 0, e$1._readyPromiseState = "fulfilled");
|
|
1196
|
+
}
|
|
1197
|
+
Object.defineProperties(WritableStreamDefaultController.prototype, {
|
|
1198
|
+
abortReason: { enumerable: !0 },
|
|
1199
|
+
signal: { enumerable: !0 },
|
|
1200
|
+
error: { enumerable: !0 }
|
|
1201
|
+
}), "symbol" == typeof e.toStringTag && Object.defineProperty(WritableStreamDefaultController.prototype, e.toStringTag, {
|
|
1202
|
+
value: "WritableStreamDefaultController",
|
|
1203
|
+
configurable: !0
|
|
1204
|
+
});
|
|
1205
|
+
const Pt = "undefined" != typeof DOMException ? DOMException : void 0;
|
|
1206
|
+
const Wt = function(e$1) {
|
|
1207
|
+
if ("function" != typeof e$1 && "object" != typeof e$1) return !1;
|
|
1208
|
+
try {
|
|
1209
|
+
return new e$1(), !0;
|
|
1210
|
+
} catch (e$2) {
|
|
1211
|
+
return !1;
|
|
1212
|
+
}
|
|
1213
|
+
}(Pt) ? Pt : function() {
|
|
1214
|
+
const e$1 = function(e$2, t$1) {
|
|
1215
|
+
this.message = e$2 || "", this.name = t$1 || "Error", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1216
|
+
};
|
|
1217
|
+
return e$1.prototype = Object.create(Error.prototype), Object.defineProperty(e$1.prototype, "constructor", {
|
|
1218
|
+
value: e$1,
|
|
1219
|
+
writable: !0,
|
|
1220
|
+
configurable: !0
|
|
1221
|
+
}), e$1;
|
|
1222
|
+
}();
|
|
1223
|
+
function kt(e$1, t$1, r$1, o$1, n$1, a$1) {
|
|
1224
|
+
const i$1 = e$1.getReader(), l$1 = t$1.getWriter();
|
|
1225
|
+
Vt(e$1) && (e$1._disturbed = !0);
|
|
1226
|
+
let s$1, _$1, g$1, w$1 = !1, S$1 = !1, v$1 = "readable", R$1 = "writable", T$1 = !1, q$1 = !1;
|
|
1227
|
+
const C$1 = u((e$2) => {
|
|
1228
|
+
g$1 = e$2;
|
|
1229
|
+
});
|
|
1230
|
+
let E$1 = Promise.resolve(void 0);
|
|
1231
|
+
return u((P$1, W$1) => {
|
|
1232
|
+
let k$1;
|
|
1233
|
+
function O$1() {
|
|
1234
|
+
if (w$1) return;
|
|
1235
|
+
const e$2 = u((e$3, t$2) => {
|
|
1236
|
+
(function r$2(o$2) {
|
|
1237
|
+
o$2 ? e$3() : f(function() {
|
|
1238
|
+
if (w$1) return c(!0);
|
|
1239
|
+
return f(l$1.ready, () => f(i$1.read(), (e$4) => !!e$4.done || (E$1 = l$1.write(e$4.value), m(E$1), !1)));
|
|
1240
|
+
}(), r$2, t$2);
|
|
1241
|
+
})(!1);
|
|
1242
|
+
});
|
|
1243
|
+
m(e$2);
|
|
1244
|
+
}
|
|
1245
|
+
function B$1() {
|
|
1246
|
+
return v$1 = "closed", r$1 ? L$1() : z$1(() => (Ge(t$1) && (T$1 = rt(t$1), R$1 = t$1._state), T$1 || "closed" === R$1 ? c(void 0) : "erroring" === R$1 || "errored" === R$1 ? d(_$1) : (T$1 = !0, l$1.close())), !1, void 0), null;
|
|
1247
|
+
}
|
|
1248
|
+
function A$1(e$2) {
|
|
1249
|
+
return w$1 || (v$1 = "errored", s$1 = e$2, o$1 ? L$1(!0, e$2) : z$1(() => l$1.abort(e$2), !0, e$2)), null;
|
|
1250
|
+
}
|
|
1251
|
+
function j$1(e$2) {
|
|
1252
|
+
return S$1 || (R$1 = "errored", _$1 = e$2, n$1 ? L$1(!0, e$2) : z$1(() => i$1.cancel(e$2), !0, e$2)), null;
|
|
1253
|
+
}
|
|
1254
|
+
if (void 0 !== a$1 && (k$1 = () => {
|
|
1255
|
+
const e$2 = void 0 !== a$1.reason ? a$1.reason : new Wt("Aborted", "AbortError"), t$2 = [];
|
|
1256
|
+
o$1 || t$2.push(() => "writable" === R$1 ? l$1.abort(e$2) : c(void 0)), n$1 || t$2.push(() => "readable" === v$1 ? i$1.cancel(e$2) : c(void 0)), z$1(() => Promise.all(t$2.map((e$3) => e$3())), !0, e$2);
|
|
1257
|
+
}, a$1.aborted ? k$1() : a$1.addEventListener("abort", k$1)), Vt(e$1) && (v$1 = e$1._state, s$1 = e$1._storedError), Ge(t$1) && (R$1 = t$1._state, _$1 = t$1._storedError, T$1 = rt(t$1)), Vt(e$1) && Ge(t$1) && (q$1 = !0, g$1()), "errored" === v$1) A$1(s$1);
|
|
1258
|
+
else if ("erroring" === R$1 || "errored" === R$1) j$1(_$1);
|
|
1259
|
+
else if ("closed" === v$1) B$1();
|
|
1260
|
+
else if (T$1 || "closed" === R$1) {
|
|
1261
|
+
const e$2 = new TypeError("the destination writable stream closed before all data could be piped to it");
|
|
1262
|
+
n$1 ? L$1(!0, e$2) : z$1(() => i$1.cancel(e$2), !0, e$2);
|
|
1263
|
+
}
|
|
1264
|
+
function z$1(e$2, t$2, r$2) {
|
|
1265
|
+
function o$2() {
|
|
1266
|
+
return "writable" !== R$1 || T$1 ? n$2() : h(function() {
|
|
1267
|
+
let e$3;
|
|
1268
|
+
return c(function t$3() {
|
|
1269
|
+
if (e$3 !== E$1) return e$3 = E$1, p(E$1, t$3, t$3);
|
|
1270
|
+
}());
|
|
1271
|
+
}(), n$2), null;
|
|
1272
|
+
}
|
|
1273
|
+
function n$2() {
|
|
1274
|
+
return e$2 ? b(e$2(), () => F$1(t$2, r$2), (e$3) => F$1(!0, e$3)) : F$1(t$2, r$2), null;
|
|
1275
|
+
}
|
|
1276
|
+
w$1 || (w$1 = !0, q$1 ? o$2() : h(C$1, o$2));
|
|
1277
|
+
}
|
|
1278
|
+
function L$1(e$2, t$2) {
|
|
1279
|
+
z$1(void 0, e$2, t$2);
|
|
1280
|
+
}
|
|
1281
|
+
function F$1(e$2, t$2) {
|
|
1282
|
+
return S$1 = !0, l$1.releaseLock(), i$1.releaseLock(), void 0 !== a$1 && a$1.removeEventListener("abort", k$1), e$2 ? W$1(t$2) : P$1(void 0), null;
|
|
1283
|
+
}
|
|
1284
|
+
w$1 || (b(i$1.closed, B$1, A$1), b(l$1.closed, function() {
|
|
1285
|
+
return S$1 || (R$1 = "closed"), null;
|
|
1286
|
+
}, j$1)), q$1 ? O$1() : y(() => {
|
|
1287
|
+
q$1 = !0, g$1(), O$1();
|
|
1288
|
+
});
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
function Ot(e$1, t$1) {
|
|
1292
|
+
return function(e$2) {
|
|
1293
|
+
try {
|
|
1294
|
+
return e$2.getReader({ mode: "byob" }).releaseLock(), !0;
|
|
1295
|
+
} catch (e$3) {
|
|
1296
|
+
return !1;
|
|
1297
|
+
}
|
|
1298
|
+
}(e$1) ? function(e$2) {
|
|
1299
|
+
let t$2, r$1, o$1, n$1, a$1, i$1 = e$2.getReader(), l$1 = !1, s$1 = !1, d$1 = !1, f$1 = !1, h$1 = !1, p$1 = !1;
|
|
1300
|
+
const m$1 = u((e$3) => {
|
|
1301
|
+
a$1 = e$3;
|
|
1302
|
+
});
|
|
1303
|
+
function y$1(e$3) {
|
|
1304
|
+
_(e$3.closed, (t$3) => (e$3 !== i$1 || (o$1.error(t$3), n$1.error(t$3), h$1 && p$1 || a$1(void 0)), null));
|
|
1305
|
+
}
|
|
1306
|
+
function g$1() {
|
|
1307
|
+
l$1 && (i$1.releaseLock(), i$1 = e$2.getReader(), y$1(i$1), l$1 = !1), b(i$1.read(), (e$3) => {
|
|
1308
|
+
var t$3, r$2;
|
|
1309
|
+
if (d$1 = !1, f$1 = !1, e$3.done) return h$1 || o$1.close(), p$1 || n$1.close(), null === (t$3 = o$1.byobRequest) || void 0 === t$3 || t$3.respond(0), null === (r$2 = n$1.byobRequest) || void 0 === r$2 || r$2.respond(0), h$1 && p$1 || a$1(void 0), null;
|
|
1310
|
+
const l$2 = e$3.value, u$1 = l$2;
|
|
1311
|
+
let c$1 = l$2;
|
|
1312
|
+
if (!h$1 && !p$1) try {
|
|
1313
|
+
c$1 = le(l$2);
|
|
1314
|
+
} catch (e$4) {
|
|
1315
|
+
return o$1.error(e$4), n$1.error(e$4), a$1(i$1.cancel(e$4)), null;
|
|
1316
|
+
}
|
|
1317
|
+
return h$1 || o$1.enqueue(u$1), p$1 || n$1.enqueue(c$1), s$1 = !1, d$1 ? S$1() : f$1 && v$1(), null;
|
|
1318
|
+
}, () => (s$1 = !1, null));
|
|
1319
|
+
}
|
|
1320
|
+
function w$1(t$3, r$2) {
|
|
1321
|
+
l$1 || (i$1.releaseLock(), i$1 = e$2.getReader({ mode: "byob" }), y$1(i$1), l$1 = !0);
|
|
1322
|
+
const u$1 = r$2 ? n$1 : o$1, c$1 = r$2 ? o$1 : n$1;
|
|
1323
|
+
b(i$1.read(t$3), (e$3) => {
|
|
1324
|
+
var t$4;
|
|
1325
|
+
d$1 = !1, f$1 = !1;
|
|
1326
|
+
const o$2 = r$2 ? p$1 : h$1, n$2 = r$2 ? h$1 : p$1;
|
|
1327
|
+
if (e$3.done) {
|
|
1328
|
+
o$2 || u$1.close(), n$2 || c$1.close();
|
|
1329
|
+
const r$3 = e$3.value;
|
|
1330
|
+
return void 0 !== r$3 && (o$2 || u$1.byobRequest.respondWithNewView(r$3), n$2 || null === (t$4 = c$1.byobRequest) || void 0 === t$4 || t$4.respond(0)), o$2 && n$2 || a$1(void 0), null;
|
|
1331
|
+
}
|
|
1332
|
+
const l$2 = e$3.value;
|
|
1333
|
+
if (n$2) o$2 || u$1.byobRequest.respondWithNewView(l$2);
|
|
1334
|
+
else {
|
|
1335
|
+
let e$4;
|
|
1336
|
+
try {
|
|
1337
|
+
e$4 = le(l$2);
|
|
1338
|
+
} catch (e$5) {
|
|
1339
|
+
return u$1.error(e$5), c$1.error(e$5), a$1(i$1.cancel(e$5)), null;
|
|
1340
|
+
}
|
|
1341
|
+
o$2 || u$1.byobRequest.respondWithNewView(l$2), c$1.enqueue(e$4);
|
|
1342
|
+
}
|
|
1343
|
+
return s$1 = !1, d$1 ? S$1() : f$1 && v$1(), null;
|
|
1344
|
+
}, () => (s$1 = !1, null));
|
|
1345
|
+
}
|
|
1346
|
+
function S$1() {
|
|
1347
|
+
if (s$1) return d$1 = !0, c(void 0);
|
|
1348
|
+
s$1 = !0;
|
|
1349
|
+
const e$3 = o$1.byobRequest;
|
|
1350
|
+
return null === e$3 ? g$1() : w$1(e$3.view, !1), c(void 0);
|
|
1351
|
+
}
|
|
1352
|
+
function v$1() {
|
|
1353
|
+
if (s$1) return f$1 = !0, c(void 0);
|
|
1354
|
+
s$1 = !0;
|
|
1355
|
+
const e$3 = n$1.byobRequest;
|
|
1356
|
+
return null === e$3 ? g$1() : w$1(e$3.view, !0), c(void 0);
|
|
1357
|
+
}
|
|
1358
|
+
function R$1(e$3) {
|
|
1359
|
+
if (h$1 = !0, t$2 = e$3, p$1) {
|
|
1360
|
+
const e$4 = [t$2, r$1], o$2 = i$1.cancel(e$4);
|
|
1361
|
+
a$1(o$2);
|
|
1362
|
+
}
|
|
1363
|
+
return m$1;
|
|
1364
|
+
}
|
|
1365
|
+
function T$1(e$3) {
|
|
1366
|
+
if (p$1 = !0, r$1 = e$3, h$1) {
|
|
1367
|
+
const e$4 = [t$2, r$1], o$2 = i$1.cancel(e$4);
|
|
1368
|
+
a$1(o$2);
|
|
1369
|
+
}
|
|
1370
|
+
return m$1;
|
|
1371
|
+
}
|
|
1372
|
+
const q$1 = new ReadableStream({
|
|
1373
|
+
type: "bytes",
|
|
1374
|
+
start(e$3) {
|
|
1375
|
+
o$1 = e$3;
|
|
1376
|
+
},
|
|
1377
|
+
pull: S$1,
|
|
1378
|
+
cancel: R$1
|
|
1379
|
+
}), C$1 = new ReadableStream({
|
|
1380
|
+
type: "bytes",
|
|
1381
|
+
start(e$3) {
|
|
1382
|
+
n$1 = e$3;
|
|
1383
|
+
},
|
|
1384
|
+
pull: v$1,
|
|
1385
|
+
cancel: T$1
|
|
1386
|
+
});
|
|
1387
|
+
return y$1(i$1), [q$1, C$1];
|
|
1388
|
+
}(e$1) : function(e$2, t$2) {
|
|
1389
|
+
const r$1 = e$2.getReader();
|
|
1390
|
+
let o$1, n$1, a$1, i$1, l$1, s$1 = !1, d$1 = !1, f$1 = !1, h$1 = !1;
|
|
1391
|
+
const p$1 = u((e$3) => {
|
|
1392
|
+
l$1 = e$3;
|
|
1393
|
+
});
|
|
1394
|
+
function m$1() {
|
|
1395
|
+
return s$1 ? (d$1 = !0, c(void 0)) : (s$1 = !0, b(r$1.read(), (e$3) => {
|
|
1396
|
+
if (d$1 = !1, e$3.done) return f$1 || a$1.close(), h$1 || i$1.close(), f$1 && h$1 || l$1(void 0), null;
|
|
1397
|
+
const t$3 = e$3.value, r$2 = t$3, o$2 = t$3;
|
|
1398
|
+
return f$1 || a$1.enqueue(r$2), h$1 || i$1.enqueue(o$2), s$1 = !1, d$1 && m$1(), null;
|
|
1399
|
+
}, () => (s$1 = !1, null)), c(void 0));
|
|
1400
|
+
}
|
|
1401
|
+
function y$1(e$3) {
|
|
1402
|
+
if (f$1 = !0, o$1 = e$3, h$1) {
|
|
1403
|
+
const e$4 = [o$1, n$1], t$3 = r$1.cancel(e$4);
|
|
1404
|
+
l$1(t$3);
|
|
1405
|
+
}
|
|
1406
|
+
return p$1;
|
|
1407
|
+
}
|
|
1408
|
+
function g$1(e$3) {
|
|
1409
|
+
if (h$1 = !0, n$1 = e$3, f$1) {
|
|
1410
|
+
const e$4 = [o$1, n$1], t$3 = r$1.cancel(e$4);
|
|
1411
|
+
l$1(t$3);
|
|
1412
|
+
}
|
|
1413
|
+
return p$1;
|
|
1414
|
+
}
|
|
1415
|
+
const w$1 = new ReadableStream({
|
|
1416
|
+
start(e$3) {
|
|
1417
|
+
a$1 = e$3;
|
|
1418
|
+
},
|
|
1419
|
+
pull: m$1,
|
|
1420
|
+
cancel: y$1
|
|
1421
|
+
}), S$1 = new ReadableStream({
|
|
1422
|
+
start(e$3) {
|
|
1423
|
+
i$1 = e$3;
|
|
1424
|
+
},
|
|
1425
|
+
pull: m$1,
|
|
1426
|
+
cancel: g$1
|
|
1427
|
+
});
|
|
1428
|
+
return _(r$1.closed, (e$3) => (a$1.error(e$3), i$1.error(e$3), f$1 && h$1 || l$1(void 0), null)), [w$1, S$1];
|
|
1429
|
+
}(e$1);
|
|
1430
|
+
}
|
|
1431
|
+
var ReadableStreamDefaultController = class {
|
|
1432
|
+
constructor() {
|
|
1433
|
+
throw new TypeError("Illegal constructor");
|
|
1434
|
+
}
|
|
1435
|
+
get desiredSize() {
|
|
1436
|
+
if (!Bt(this)) throw Dt("desiredSize");
|
|
1437
|
+
return Lt(this);
|
|
1438
|
+
}
|
|
1439
|
+
close() {
|
|
1440
|
+
if (!Bt(this)) throw Dt("close");
|
|
1441
|
+
if (!Ft(this)) throw new TypeError("The stream is not in a state that permits close");
|
|
1442
|
+
(function(e$1) {
|
|
1443
|
+
if (!Ft(e$1)) return;
|
|
1444
|
+
const t$1 = e$1._controlledReadableStream;
|
|
1445
|
+
e$1._closeRequested = !0, 0 === e$1._queue.length && (jt(e$1), Xt(t$1));
|
|
1446
|
+
})(this);
|
|
1447
|
+
}
|
|
1448
|
+
enqueue(e$1) {
|
|
1449
|
+
if (!Bt(this)) throw Dt("enqueue");
|
|
1450
|
+
if (!Ft(this)) throw new TypeError("The stream is not in a state that permits enqueue");
|
|
1451
|
+
return function(e$2, t$1) {
|
|
1452
|
+
if (!Ft(e$2)) return;
|
|
1453
|
+
const r$1 = e$2._controlledReadableStream;
|
|
1454
|
+
if (Ut(r$1) && X(r$1) > 0) G(r$1, t$1, !1);
|
|
1455
|
+
else {
|
|
1456
|
+
let r$2;
|
|
1457
|
+
try {
|
|
1458
|
+
r$2 = e$2._strategySizeAlgorithm(t$1);
|
|
1459
|
+
} catch (t$2) {
|
|
1460
|
+
throw zt(e$2, t$2), t$2;
|
|
1461
|
+
}
|
|
1462
|
+
try {
|
|
1463
|
+
ue(e$2, t$1, r$2);
|
|
1464
|
+
} catch (t$2) {
|
|
1465
|
+
throw zt(e$2, t$2), t$2;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
At(e$2);
|
|
1469
|
+
}(this, e$1);
|
|
1470
|
+
}
|
|
1471
|
+
error(e$1) {
|
|
1472
|
+
if (!Bt(this)) throw Dt("error");
|
|
1473
|
+
zt(this, e$1);
|
|
1474
|
+
}
|
|
1475
|
+
[T](e$1) {
|
|
1476
|
+
ce(this);
|
|
1477
|
+
const t$1 = this._cancelAlgorithm(e$1);
|
|
1478
|
+
return jt(this), t$1;
|
|
1479
|
+
}
|
|
1480
|
+
[q](e$1) {
|
|
1481
|
+
const t$1 = this._controlledReadableStream;
|
|
1482
|
+
if (this._queue.length > 0) {
|
|
1483
|
+
const r$1 = se(this);
|
|
1484
|
+
this._closeRequested && 0 === this._queue.length ? (jt(this), Xt(t$1)) : At(this), e$1._chunkSteps(r$1);
|
|
1485
|
+
} else U(t$1, e$1), At(this);
|
|
1486
|
+
}
|
|
1487
|
+
[C]() {}
|
|
1488
|
+
};
|
|
1489
|
+
function Bt(e$1) {
|
|
1490
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_controlledReadableStream") && e$1 instanceof ReadableStreamDefaultController;
|
|
1491
|
+
}
|
|
1492
|
+
function At(e$1) {
|
|
1493
|
+
const t$1 = function(e$2) {
|
|
1494
|
+
const t$2 = e$2._controlledReadableStream;
|
|
1495
|
+
if (!Ft(e$2)) return !1;
|
|
1496
|
+
if (!e$2._started) return !1;
|
|
1497
|
+
if (Ut(t$2) && X(t$2) > 0) return !0;
|
|
1498
|
+
if (Lt(e$2) > 0) return !0;
|
|
1499
|
+
return !1;
|
|
1500
|
+
}(e$1);
|
|
1501
|
+
if (!t$1) return;
|
|
1502
|
+
if (e$1._pulling) return void (e$1._pullAgain = !0);
|
|
1503
|
+
e$1._pulling = !0;
|
|
1504
|
+
b(e$1._pullAlgorithm(), () => (e$1._pulling = !1, e$1._pullAgain && (e$1._pullAgain = !1, At(e$1)), null), (t$2) => (zt(e$1, t$2), null));
|
|
1505
|
+
}
|
|
1506
|
+
function jt(e$1) {
|
|
1507
|
+
e$1._pullAlgorithm = void 0, e$1._cancelAlgorithm = void 0, e$1._strategySizeAlgorithm = void 0;
|
|
1508
|
+
}
|
|
1509
|
+
function zt(e$1, t$1) {
|
|
1510
|
+
const r$1 = e$1._controlledReadableStream;
|
|
1511
|
+
"readable" === r$1._state && (ce(e$1), jt(e$1), Jt(r$1, t$1));
|
|
1512
|
+
}
|
|
1513
|
+
function Lt(e$1) {
|
|
1514
|
+
const t$1 = e$1._controlledReadableStream._state;
|
|
1515
|
+
return "errored" === t$1 ? null : "closed" === t$1 ? 0 : e$1._strategyHWM - e$1._queueTotalSize;
|
|
1516
|
+
}
|
|
1517
|
+
function Ft(e$1) {
|
|
1518
|
+
return !e$1._closeRequested && "readable" === e$1._controlledReadableStream._state;
|
|
1519
|
+
}
|
|
1520
|
+
function It(e$1, t$1, r$1, o$1) {
|
|
1521
|
+
const n$1 = Object.create(ReadableStreamDefaultController.prototype);
|
|
1522
|
+
let a$1, i$1, l$1;
|
|
1523
|
+
a$1 = void 0 !== t$1.start ? () => t$1.start(n$1) : () => {}, i$1 = void 0 !== t$1.pull ? () => t$1.pull(n$1) : () => c(void 0), l$1 = void 0 !== t$1.cancel ? (e$2) => t$1.cancel(e$2) : () => c(void 0), function(e$2, t$2, r$2, o$2, n$2, a$2, i$2) {
|
|
1524
|
+
t$2._controlledReadableStream = e$2, t$2._queue = void 0, t$2._queueTotalSize = void 0, ce(t$2), t$2._started = !1, t$2._closeRequested = !1, t$2._pullAgain = !1, t$2._pulling = !1, t$2._strategySizeAlgorithm = i$2, t$2._strategyHWM = a$2, t$2._pullAlgorithm = o$2, t$2._cancelAlgorithm = n$2, e$2._readableStreamController = t$2, b(c(r$2()), () => (t$2._started = !0, At(t$2), null), (e$3) => (zt(t$2, e$3), null));
|
|
1525
|
+
}(e$1, n$1, a$1, i$1, l$1, r$1, o$1);
|
|
1526
|
+
}
|
|
1527
|
+
function Dt(e$1) {
|
|
1528
|
+
return new TypeError(`ReadableStreamDefaultController.prototype.${e$1} can only be used on a ReadableStreamDefaultController`);
|
|
1529
|
+
}
|
|
1530
|
+
function $t(e$1, t$1, r$1) {
|
|
1531
|
+
return I(e$1, r$1), (r$2) => w(e$1, t$1, [r$2]);
|
|
1532
|
+
}
|
|
1533
|
+
function Mt(e$1, t$1, r$1) {
|
|
1534
|
+
return I(e$1, r$1), (r$2) => w(e$1, t$1, [r$2]);
|
|
1535
|
+
}
|
|
1536
|
+
function Yt(e$1, t$1, r$1) {
|
|
1537
|
+
return I(e$1, r$1), (r$2) => g(e$1, t$1, [r$2]);
|
|
1538
|
+
}
|
|
1539
|
+
function Qt(e$1, t$1) {
|
|
1540
|
+
if ("bytes" !== (e$1 = `${e$1}`)) throw new TypeError(`${t$1} '${e$1}' is not a valid enumeration value for ReadableStreamType`);
|
|
1541
|
+
return e$1;
|
|
1542
|
+
}
|
|
1543
|
+
function Nt(e$1, t$1) {
|
|
1544
|
+
if ("byob" !== (e$1 = `${e$1}`)) throw new TypeError(`${t$1} '${e$1}' is not a valid enumeration value for ReadableStreamReaderMode`);
|
|
1545
|
+
return e$1;
|
|
1546
|
+
}
|
|
1547
|
+
function Ht(e$1, t$1) {
|
|
1548
|
+
F(e$1, t$1);
|
|
1549
|
+
const r$1 = null == e$1 ? void 0 : e$1.preventAbort, o$1 = null == e$1 ? void 0 : e$1.preventCancel, n$1 = null == e$1 ? void 0 : e$1.preventClose, a$1 = null == e$1 ? void 0 : e$1.signal;
|
|
1550
|
+
return void 0 !== a$1 && function(e$2, t$2) {
|
|
1551
|
+
if (!function(e$3) {
|
|
1552
|
+
if ("object" != typeof e$3 || null === e$3) return !1;
|
|
1553
|
+
try {
|
|
1554
|
+
return "boolean" == typeof e$3.aborted;
|
|
1555
|
+
} catch (e$4) {
|
|
1556
|
+
return !1;
|
|
1557
|
+
}
|
|
1558
|
+
}(e$2)) throw new TypeError(`${t$2} is not an AbortSignal.`);
|
|
1559
|
+
}(a$1, `${t$1} has member 'signal' that`), {
|
|
1560
|
+
preventAbort: Boolean(r$1),
|
|
1561
|
+
preventCancel: Boolean(o$1),
|
|
1562
|
+
preventClose: Boolean(n$1),
|
|
1563
|
+
signal: a$1
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
function xt(e$1, t$1) {
|
|
1567
|
+
F(e$1, t$1);
|
|
1568
|
+
const r$1 = null == e$1 ? void 0 : e$1.readable;
|
|
1569
|
+
M(r$1, "readable", "ReadableWritablePair"), function(e$2, t$2) {
|
|
1570
|
+
if (!H(e$2)) throw new TypeError(`${t$2} is not a ReadableStream.`);
|
|
1571
|
+
}(r$1, `${t$1} has member 'readable' that`);
|
|
1572
|
+
const o$1 = null == e$1 ? void 0 : e$1.writable;
|
|
1573
|
+
return M(o$1, "writable", "ReadableWritablePair"), function(e$2, t$2) {
|
|
1574
|
+
if (!x(e$2)) throw new TypeError(`${t$2} is not a WritableStream.`);
|
|
1575
|
+
}(o$1, `${t$1} has member 'writable' that`), {
|
|
1576
|
+
readable: r$1,
|
|
1577
|
+
writable: o$1
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
Object.defineProperties(ReadableStreamDefaultController.prototype, {
|
|
1581
|
+
close: { enumerable: !0 },
|
|
1582
|
+
enqueue: { enumerable: !0 },
|
|
1583
|
+
error: { enumerable: !0 },
|
|
1584
|
+
desiredSize: { enumerable: !0 }
|
|
1585
|
+
}), 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, {
|
|
1586
|
+
value: "ReadableStreamDefaultController",
|
|
1587
|
+
configurable: !0
|
|
1588
|
+
});
|
|
1589
|
+
var ReadableStream = class {
|
|
1590
|
+
constructor(e$1 = {}, t$1 = {}) {
|
|
1591
|
+
void 0 === e$1 ? e$1 = null : D(e$1, "First parameter");
|
|
1592
|
+
const r$1 = Ye(t$1, "Second parameter"), o$1 = function(e$2, t$2) {
|
|
1593
|
+
F(e$2, t$2);
|
|
1594
|
+
const r$2 = e$2, o$2 = null == r$2 ? void 0 : r$2.autoAllocateChunkSize, n$2 = null == r$2 ? void 0 : r$2.cancel, a$1 = null == r$2 ? void 0 : r$2.pull, i$1 = null == r$2 ? void 0 : r$2.start, l$1 = null == r$2 ? void 0 : r$2.type;
|
|
1595
|
+
return {
|
|
1596
|
+
autoAllocateChunkSize: void 0 === o$2 ? void 0 : N(o$2, `${t$2} has member 'autoAllocateChunkSize' that`),
|
|
1597
|
+
cancel: void 0 === n$2 ? void 0 : $t(n$2, r$2, `${t$2} has member 'cancel' that`),
|
|
1598
|
+
pull: void 0 === a$1 ? void 0 : Mt(a$1, r$2, `${t$2} has member 'pull' that`),
|
|
1599
|
+
start: void 0 === i$1 ? void 0 : Yt(i$1, r$2, `${t$2} has member 'start' that`),
|
|
1600
|
+
type: void 0 === l$1 ? void 0 : Qt(l$1, `${t$2} has member 'type' that`)
|
|
1601
|
+
};
|
|
1602
|
+
}(e$1, "First parameter");
|
|
1603
|
+
var n$1;
|
|
1604
|
+
if ((n$1 = this)._state = "readable", n$1._reader = void 0, n$1._storedError = void 0, n$1._disturbed = !1, "bytes" === o$1.type) {
|
|
1605
|
+
if (void 0 !== r$1.size) throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
1606
|
+
Oe(this, o$1, $e(r$1, 0));
|
|
1607
|
+
} else {
|
|
1608
|
+
const e$2 = Me(r$1);
|
|
1609
|
+
It(this, o$1, $e(r$1, 1), e$2);
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
get locked() {
|
|
1613
|
+
if (!Vt(this)) throw Kt("locked");
|
|
1614
|
+
return Ut(this);
|
|
1615
|
+
}
|
|
1616
|
+
cancel(e$1) {
|
|
1617
|
+
return Vt(this) ? Ut(this) ? d(new TypeError("Cannot cancel a stream that already has a reader")) : Gt(this, e$1) : d(Kt("cancel"));
|
|
1618
|
+
}
|
|
1619
|
+
getReader(e$1) {
|
|
1620
|
+
if (!Vt(this)) throw Kt("getReader");
|
|
1621
|
+
return void 0 === function(e$2, t$1) {
|
|
1622
|
+
F(e$2, t$1);
|
|
1623
|
+
const r$1 = null == e$2 ? void 0 : e$2.mode;
|
|
1624
|
+
return { mode: void 0 === r$1 ? void 0 : Nt(r$1, `${t$1} has member 'mode' that`) };
|
|
1625
|
+
}(e$1, "First parameter").mode ? new ReadableStreamDefaultReader(this) : function(e$2) {
|
|
1626
|
+
return new ReadableStreamBYOBReader(e$2);
|
|
1627
|
+
}(this);
|
|
1628
|
+
}
|
|
1629
|
+
pipeThrough(e$1, t$1 = {}) {
|
|
1630
|
+
if (!H(this)) throw Kt("pipeThrough");
|
|
1631
|
+
$(e$1, 1, "pipeThrough");
|
|
1632
|
+
const r$1 = xt(e$1, "First parameter"), o$1 = Ht(t$1, "Second parameter");
|
|
1633
|
+
if (this.locked) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
1634
|
+
if (r$1.writable.locked) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
1635
|
+
return m(kt(this, r$1.writable, o$1.preventClose, o$1.preventAbort, o$1.preventCancel, o$1.signal)), r$1.readable;
|
|
1636
|
+
}
|
|
1637
|
+
pipeTo(e$1, t$1 = {}) {
|
|
1638
|
+
if (!H(this)) return d(Kt("pipeTo"));
|
|
1639
|
+
if (void 0 === e$1) return d("Parameter 1 is required in 'pipeTo'.");
|
|
1640
|
+
if (!x(e$1)) return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
1641
|
+
let r$1;
|
|
1642
|
+
try {
|
|
1643
|
+
r$1 = Ht(t$1, "Second parameter");
|
|
1644
|
+
} catch (e$2) {
|
|
1645
|
+
return d(e$2);
|
|
1646
|
+
}
|
|
1647
|
+
return this.locked ? d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : e$1.locked ? d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : kt(this, e$1, r$1.preventClose, r$1.preventAbort, r$1.preventCancel, r$1.signal);
|
|
1648
|
+
}
|
|
1649
|
+
tee() {
|
|
1650
|
+
if (!H(this)) throw Kt("tee");
|
|
1651
|
+
if (this.locked) throw new TypeError("Cannot tee a stream that already has a reader");
|
|
1652
|
+
return Ot(this);
|
|
1653
|
+
}
|
|
1654
|
+
values(e$1) {
|
|
1655
|
+
if (!H(this)) throw Kt("values");
|
|
1656
|
+
return function(e$2, t$1) {
|
|
1657
|
+
const r$1 = e$2.getReader(), o$1 = new te(r$1, t$1), n$1 = Object.create(re);
|
|
1658
|
+
return n$1._asyncIteratorImpl = o$1, n$1;
|
|
1659
|
+
}(this, function(e$2, t$1) {
|
|
1660
|
+
F(e$2, t$1);
|
|
1661
|
+
const r$1 = null == e$2 ? void 0 : e$2.preventCancel;
|
|
1662
|
+
return { preventCancel: Boolean(r$1) };
|
|
1663
|
+
}(e$1, "First parameter").preventCancel);
|
|
1664
|
+
}
|
|
1665
|
+
};
|
|
1666
|
+
function Vt(e$1) {
|
|
1667
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_readableStreamController") && e$1 instanceof ReadableStream;
|
|
1668
|
+
}
|
|
1669
|
+
function Ut(e$1) {
|
|
1670
|
+
return void 0 !== e$1._reader;
|
|
1671
|
+
}
|
|
1672
|
+
function Gt(e$1, r$1) {
|
|
1673
|
+
if (e$1._disturbed = !0, "closed" === e$1._state) return c(void 0);
|
|
1674
|
+
if ("errored" === e$1._state) return d(e$1._storedError);
|
|
1675
|
+
Xt(e$1);
|
|
1676
|
+
const o$1 = e$1._reader;
|
|
1677
|
+
if (void 0 !== o$1 && Fe(o$1)) {
|
|
1678
|
+
const e$2 = o$1._readIntoRequests;
|
|
1679
|
+
o$1._readIntoRequests = new S(), e$2.forEach((e$3) => {
|
|
1680
|
+
e$3._closeSteps(void 0);
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
return p(e$1._readableStreamController[T](r$1), t);
|
|
1684
|
+
}
|
|
1685
|
+
function Xt(e$1) {
|
|
1686
|
+
e$1._state = "closed";
|
|
1687
|
+
const t$1 = e$1._reader;
|
|
1688
|
+
if (void 0 !== t$1 && (j(t$1), K(t$1))) {
|
|
1689
|
+
const e$2 = t$1._readRequests;
|
|
1690
|
+
t$1._readRequests = new S(), e$2.forEach((e$3) => {
|
|
1691
|
+
e$3._closeSteps();
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
function Jt(e$1, t$1) {
|
|
1696
|
+
e$1._state = "errored", e$1._storedError = t$1;
|
|
1697
|
+
const r$1 = e$1._reader;
|
|
1698
|
+
void 0 !== r$1 && (A(r$1, t$1), K(r$1) ? Z(r$1, t$1) : Ie(r$1, t$1));
|
|
1699
|
+
}
|
|
1700
|
+
function Kt(e$1) {
|
|
1701
|
+
return new TypeError(`ReadableStream.prototype.${e$1} can only be used on a ReadableStream`);
|
|
1702
|
+
}
|
|
1703
|
+
function Zt(e$1, t$1) {
|
|
1704
|
+
F(e$1, t$1);
|
|
1705
|
+
const r$1 = null == e$1 ? void 0 : e$1.highWaterMark;
|
|
1706
|
+
return M(r$1, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: Y(r$1) };
|
|
1707
|
+
}
|
|
1708
|
+
Object.defineProperties(ReadableStream.prototype, {
|
|
1709
|
+
cancel: { enumerable: !0 },
|
|
1710
|
+
getReader: { enumerable: !0 },
|
|
1711
|
+
pipeThrough: { enumerable: !0 },
|
|
1712
|
+
pipeTo: { enumerable: !0 },
|
|
1713
|
+
tee: { enumerable: !0 },
|
|
1714
|
+
values: { enumerable: !0 },
|
|
1715
|
+
locked: { enumerable: !0 }
|
|
1716
|
+
}), 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, {
|
|
1717
|
+
value: "ReadableStream",
|
|
1718
|
+
configurable: !0
|
|
1719
|
+
}), "symbol" == typeof e.asyncIterator && Object.defineProperty(ReadableStream.prototype, e.asyncIterator, {
|
|
1720
|
+
value: ReadableStream.prototype.values,
|
|
1721
|
+
writable: !0,
|
|
1722
|
+
configurable: !0
|
|
1723
|
+
});
|
|
1724
|
+
const er = (e$1) => e$1.byteLength;
|
|
1725
|
+
n(er, "size");
|
|
1726
|
+
var ByteLengthQueuingStrategy = class {
|
|
1727
|
+
constructor(e$1) {
|
|
1728
|
+
$(e$1, 1, "ByteLengthQueuingStrategy"), e$1 = Zt(e$1, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = e$1.highWaterMark;
|
|
1729
|
+
}
|
|
1730
|
+
get highWaterMark() {
|
|
1731
|
+
if (!rr(this)) throw tr("highWaterMark");
|
|
1732
|
+
return this._byteLengthQueuingStrategyHighWaterMark;
|
|
1733
|
+
}
|
|
1734
|
+
get size() {
|
|
1735
|
+
if (!rr(this)) throw tr("size");
|
|
1736
|
+
return er;
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
function tr(e$1) {
|
|
1740
|
+
return new TypeError(`ByteLengthQueuingStrategy.prototype.${e$1} can only be used on a ByteLengthQueuingStrategy`);
|
|
1741
|
+
}
|
|
1742
|
+
function rr(e$1) {
|
|
1743
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_byteLengthQueuingStrategyHighWaterMark") && e$1 instanceof ByteLengthQueuingStrategy;
|
|
1744
|
+
}
|
|
1745
|
+
Object.defineProperties(ByteLengthQueuingStrategy.prototype, {
|
|
1746
|
+
highWaterMark: { enumerable: !0 },
|
|
1747
|
+
size: { enumerable: !0 }
|
|
1748
|
+
}), "symbol" == typeof e.toStringTag && Object.defineProperty(ByteLengthQueuingStrategy.prototype, e.toStringTag, {
|
|
1749
|
+
value: "ByteLengthQueuingStrategy",
|
|
1750
|
+
configurable: !0
|
|
1751
|
+
});
|
|
1752
|
+
const or = () => 1;
|
|
1753
|
+
n(or, "size");
|
|
1754
|
+
var CountQueuingStrategy = class {
|
|
1755
|
+
constructor(e$1) {
|
|
1756
|
+
$(e$1, 1, "CountQueuingStrategy"), e$1 = Zt(e$1, "First parameter"), this._countQueuingStrategyHighWaterMark = e$1.highWaterMark;
|
|
1757
|
+
}
|
|
1758
|
+
get highWaterMark() {
|
|
1759
|
+
if (!ar(this)) throw nr("highWaterMark");
|
|
1760
|
+
return this._countQueuingStrategyHighWaterMark;
|
|
1761
|
+
}
|
|
1762
|
+
get size() {
|
|
1763
|
+
if (!ar(this)) throw nr("size");
|
|
1764
|
+
return or;
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
function nr(e$1) {
|
|
1768
|
+
return new TypeError(`CountQueuingStrategy.prototype.${e$1} can only be used on a CountQueuingStrategy`);
|
|
1769
|
+
}
|
|
1770
|
+
function ar(e$1) {
|
|
1771
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_countQueuingStrategyHighWaterMark") && e$1 instanceof CountQueuingStrategy;
|
|
1772
|
+
}
|
|
1773
|
+
function ir(e$1, t$1, r$1) {
|
|
1774
|
+
return I(e$1, r$1), (r$2) => w(e$1, t$1, [r$2]);
|
|
1775
|
+
}
|
|
1776
|
+
function lr(e$1, t$1, r$1) {
|
|
1777
|
+
return I(e$1, r$1), (r$2) => g(e$1, t$1, [r$2]);
|
|
1778
|
+
}
|
|
1779
|
+
function sr(e$1, t$1, r$1) {
|
|
1780
|
+
return I(e$1, r$1), (r$2, o$1) => w(e$1, t$1, [r$2, o$1]);
|
|
1781
|
+
}
|
|
1782
|
+
Object.defineProperties(CountQueuingStrategy.prototype, {
|
|
1783
|
+
highWaterMark: { enumerable: !0 },
|
|
1784
|
+
size: { enumerable: !0 }
|
|
1785
|
+
}), "symbol" == typeof e.toStringTag && Object.defineProperty(CountQueuingStrategy.prototype, e.toStringTag, {
|
|
1786
|
+
value: "CountQueuingStrategy",
|
|
1787
|
+
configurable: !0
|
|
1788
|
+
});
|
|
1789
|
+
var TransformStream = class {
|
|
1790
|
+
constructor(e$1 = {}, t$1 = {}, r$1 = {}) {
|
|
1791
|
+
void 0 === e$1 && (e$1 = null);
|
|
1792
|
+
const o$1 = Ye(t$1, "Second parameter"), n$1 = Ye(r$1, "Third parameter"), a$1 = function(e$2, t$2) {
|
|
1793
|
+
F(e$2, t$2);
|
|
1794
|
+
const r$2 = null == e$2 ? void 0 : e$2.flush, o$2 = null == e$2 ? void 0 : e$2.readableType, n$2 = null == e$2 ? void 0 : e$2.start, a$2 = null == e$2 ? void 0 : e$2.transform, i$2 = null == e$2 ? void 0 : e$2.writableType;
|
|
1795
|
+
return {
|
|
1796
|
+
flush: void 0 === r$2 ? void 0 : ir(r$2, e$2, `${t$2} has member 'flush' that`),
|
|
1797
|
+
readableType: o$2,
|
|
1798
|
+
start: void 0 === n$2 ? void 0 : lr(n$2, e$2, `${t$2} has member 'start' that`),
|
|
1799
|
+
transform: void 0 === a$2 ? void 0 : sr(a$2, e$2, `${t$2} has member 'transform' that`),
|
|
1800
|
+
writableType: i$2
|
|
1801
|
+
};
|
|
1802
|
+
}(e$1, "First parameter");
|
|
1803
|
+
if (void 0 !== a$1.readableType) throw new RangeError("Invalid readableType specified");
|
|
1804
|
+
if (void 0 !== a$1.writableType) throw new RangeError("Invalid writableType specified");
|
|
1805
|
+
const i$1 = $e(n$1, 0), l$1 = Me(n$1), s$1 = $e(o$1, 1), f$1 = Me(o$1);
|
|
1806
|
+
let b$1;
|
|
1807
|
+
(function(e$2, t$2, r$2, o$2, n$2, a$2) {
|
|
1808
|
+
function i$2() {
|
|
1809
|
+
return t$2;
|
|
1810
|
+
}
|
|
1811
|
+
function l$2(t$3) {
|
|
1812
|
+
return function(e$3, t$4) {
|
|
1813
|
+
const r$3 = e$3._transformStreamController;
|
|
1814
|
+
if (e$3._backpressure) return p(e$3._backpressureChangePromise, () => {
|
|
1815
|
+
if ("erroring" === (Ge(e$3._writable) ? e$3._writable._state : e$3._writableState)) throw Ge(e$3._writable) ? e$3._writable._storedError : e$3._writableStoredError;
|
|
1816
|
+
return pr(r$3, t$4);
|
|
1817
|
+
});
|
|
1818
|
+
return pr(r$3, t$4);
|
|
1819
|
+
}(e$2, t$3);
|
|
1820
|
+
}
|
|
1821
|
+
function s$2(t$3) {
|
|
1822
|
+
return function(e$3, t$4) {
|
|
1823
|
+
return cr(e$3, t$4), c(void 0);
|
|
1824
|
+
}(e$2, t$3);
|
|
1825
|
+
}
|
|
1826
|
+
function u$1() {
|
|
1827
|
+
return function(e$3) {
|
|
1828
|
+
const t$3 = e$3._transformStreamController, r$3 = t$3._flushAlgorithm();
|
|
1829
|
+
return hr(t$3), p(r$3, () => {
|
|
1830
|
+
if ("errored" === e$3._readableState) throw e$3._readableStoredError;
|
|
1831
|
+
gr(e$3) && wr(e$3);
|
|
1832
|
+
}, (t$4) => {
|
|
1833
|
+
throw cr(e$3, t$4), e$3._readableStoredError;
|
|
1834
|
+
});
|
|
1835
|
+
}(e$2);
|
|
1836
|
+
}
|
|
1837
|
+
function d$1() {
|
|
1838
|
+
return function(e$3) {
|
|
1839
|
+
return fr(e$3, !1), e$3._backpressureChangePromise;
|
|
1840
|
+
}(e$2);
|
|
1841
|
+
}
|
|
1842
|
+
function f$2(t$3) {
|
|
1843
|
+
return dr(e$2, t$3), c(void 0);
|
|
1844
|
+
}
|
|
1845
|
+
e$2._writableState = "writable", e$2._writableStoredError = void 0, e$2._writableHasInFlightOperation = !1, e$2._writableStarted = !1, e$2._writable = function(e$3, t$3, r$3, o$3, n$3, a$3, i$3) {
|
|
1846
|
+
return new WritableStream({
|
|
1847
|
+
start(r$4) {
|
|
1848
|
+
e$3._writableController = r$4;
|
|
1849
|
+
try {
|
|
1850
|
+
const t$4 = r$4.signal;
|
|
1851
|
+
void 0 !== t$4 && t$4.addEventListener("abort", () => {
|
|
1852
|
+
"writable" === e$3._writableState && (e$3._writableState = "erroring", t$4.reason && (e$3._writableStoredError = t$4.reason));
|
|
1853
|
+
});
|
|
1854
|
+
} catch (e$4) {}
|
|
1855
|
+
return p(t$3(), () => (e$3._writableStarted = !0, Cr(e$3), null), (t$4) => {
|
|
1856
|
+
throw e$3._writableStarted = !0, Rr(e$3, t$4), t$4;
|
|
1857
|
+
});
|
|
1858
|
+
},
|
|
1859
|
+
write: (t$4) => (function(e$4) {
|
|
1860
|
+
e$4._writableHasInFlightOperation = !0;
|
|
1861
|
+
}(e$3), p(r$3(t$4), () => (function(e$4) {
|
|
1862
|
+
e$4._writableHasInFlightOperation = !1;
|
|
1863
|
+
}(e$3), Cr(e$3), null), (t$5) => {
|
|
1864
|
+
throw function(e$4, t$6) {
|
|
1865
|
+
e$4._writableHasInFlightOperation = !1, Rr(e$4, t$6);
|
|
1866
|
+
}(e$3, t$5), t$5;
|
|
1867
|
+
})),
|
|
1868
|
+
close: () => (function(e$4) {
|
|
1869
|
+
e$4._writableHasInFlightOperation = !0;
|
|
1870
|
+
}(e$3), p(o$3(), () => (function(e$4) {
|
|
1871
|
+
e$4._writableHasInFlightOperation = !1;
|
|
1872
|
+
"erroring" === e$4._writableState && (e$4._writableStoredError = void 0);
|
|
1873
|
+
e$4._writableState = "closed";
|
|
1874
|
+
}(e$3), null), (t$4) => {
|
|
1875
|
+
throw function(e$4, t$5) {
|
|
1876
|
+
e$4._writableHasInFlightOperation = !1, e$4._writableState, Rr(e$4, t$5);
|
|
1877
|
+
}(e$3, t$4), t$4;
|
|
1878
|
+
})),
|
|
1879
|
+
abort: (t$4) => (e$3._writableState = "errored", e$3._writableStoredError = t$4, n$3(t$4))
|
|
1880
|
+
}, {
|
|
1881
|
+
highWaterMark: a$3,
|
|
1882
|
+
size: i$3
|
|
1883
|
+
});
|
|
1884
|
+
}(e$2, i$2, l$2, u$1, s$2, r$2, o$2), e$2._readableState = "readable", e$2._readableStoredError = void 0, e$2._readableCloseRequested = !1, e$2._readablePulling = !1, e$2._readable = function(e$3, t$3, r$3, o$3, n$3, a$3) {
|
|
1885
|
+
return new ReadableStream({
|
|
1886
|
+
start: (r$4) => (e$3._readableController = r$4, t$3().catch((t$4) => {
|
|
1887
|
+
Sr(e$3, t$4);
|
|
1888
|
+
})),
|
|
1889
|
+
pull: () => (e$3._readablePulling = !0, r$3().catch((t$4) => {
|
|
1890
|
+
Sr(e$3, t$4);
|
|
1891
|
+
})),
|
|
1892
|
+
cancel: (t$4) => (e$3._readableState = "closed", o$3(t$4))
|
|
1893
|
+
}, {
|
|
1894
|
+
highWaterMark: n$3,
|
|
1895
|
+
size: a$3
|
|
1896
|
+
});
|
|
1897
|
+
}(e$2, i$2, d$1, f$2, n$2, a$2), e$2._backpressure = void 0, e$2._backpressureChangePromise = void 0, e$2._backpressureChangePromise_resolve = void 0, fr(e$2, !0), e$2._transformStreamController = void 0;
|
|
1898
|
+
})(this, u((e$2) => {
|
|
1899
|
+
b$1 = e$2;
|
|
1900
|
+
}), s$1, f$1, i$1, l$1), function(e$2, t$2) {
|
|
1901
|
+
const r$2 = Object.create(TransformStreamDefaultController.prototype);
|
|
1902
|
+
let o$2, n$2;
|
|
1903
|
+
o$2 = void 0 !== t$2.transform ? (e$3) => t$2.transform(e$3, r$2) : (e$3) => {
|
|
1904
|
+
try {
|
|
1905
|
+
return _r(r$2, e$3), c(void 0);
|
|
1906
|
+
} catch (e$4) {
|
|
1907
|
+
return d(e$4);
|
|
1908
|
+
}
|
|
1909
|
+
};
|
|
1910
|
+
n$2 = void 0 !== t$2.flush ? () => t$2.flush(r$2) : () => c(void 0);
|
|
1911
|
+
(function(e$3, t$3, r$3, o$3) {
|
|
1912
|
+
t$3._controlledTransformStream = e$3, e$3._transformStreamController = t$3, t$3._transformAlgorithm = r$3, t$3._flushAlgorithm = o$3;
|
|
1913
|
+
})(e$2, r$2, o$2, n$2);
|
|
1914
|
+
}(this, a$1), void 0 !== a$1.start ? b$1(a$1.start(this._transformStreamController)) : b$1(void 0);
|
|
1915
|
+
}
|
|
1916
|
+
get readable() {
|
|
1917
|
+
if (!ur(this)) throw yr("readable");
|
|
1918
|
+
return this._readable;
|
|
1919
|
+
}
|
|
1920
|
+
get writable() {
|
|
1921
|
+
if (!ur(this)) throw yr("writable");
|
|
1922
|
+
return this._writable;
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
function ur(e$1) {
|
|
1926
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_transformStreamController") && e$1 instanceof TransformStream;
|
|
1927
|
+
}
|
|
1928
|
+
function cr(e$1, t$1) {
|
|
1929
|
+
Sr(e$1, t$1), dr(e$1, t$1);
|
|
1930
|
+
}
|
|
1931
|
+
function dr(e$1, t$1) {
|
|
1932
|
+
hr(e$1._transformStreamController), function(e$2, t$2) {
|
|
1933
|
+
e$2._writableController.error(t$2);
|
|
1934
|
+
"writable" === e$2._writableState && Tr(e$2, t$2);
|
|
1935
|
+
}(e$1, t$1), e$1._backpressure && fr(e$1, !1);
|
|
1936
|
+
}
|
|
1937
|
+
function fr(e$1, t$1) {
|
|
1938
|
+
void 0 !== e$1._backpressureChangePromise && e$1._backpressureChangePromise_resolve(), e$1._backpressureChangePromise = u((t$2) => {
|
|
1939
|
+
e$1._backpressureChangePromise_resolve = t$2;
|
|
1940
|
+
}), e$1._backpressure = t$1;
|
|
1941
|
+
}
|
|
1942
|
+
Object.defineProperties(TransformStream.prototype, {
|
|
1943
|
+
readable: { enumerable: !0 },
|
|
1944
|
+
writable: { enumerable: !0 }
|
|
1945
|
+
}), "symbol" == typeof e.toStringTag && Object.defineProperty(TransformStream.prototype, e.toStringTag, {
|
|
1946
|
+
value: "TransformStream",
|
|
1947
|
+
configurable: !0
|
|
1948
|
+
});
|
|
1949
|
+
var TransformStreamDefaultController = class {
|
|
1950
|
+
constructor() {
|
|
1951
|
+
throw new TypeError("Illegal constructor");
|
|
1952
|
+
}
|
|
1953
|
+
get desiredSize() {
|
|
1954
|
+
if (!br(this)) throw mr("desiredSize");
|
|
1955
|
+
return vr(this._controlledTransformStream);
|
|
1956
|
+
}
|
|
1957
|
+
enqueue(e$1) {
|
|
1958
|
+
if (!br(this)) throw mr("enqueue");
|
|
1959
|
+
_r(this, e$1);
|
|
1960
|
+
}
|
|
1961
|
+
error(e$1) {
|
|
1962
|
+
if (!br(this)) throw mr("error");
|
|
1963
|
+
var t$1;
|
|
1964
|
+
t$1 = e$1, cr(this._controlledTransformStream, t$1);
|
|
1965
|
+
}
|
|
1966
|
+
terminate() {
|
|
1967
|
+
if (!br(this)) throw mr("terminate");
|
|
1968
|
+
(function(e$1) {
|
|
1969
|
+
const t$1 = e$1._controlledTransformStream;
|
|
1970
|
+
gr(t$1) && wr(t$1);
|
|
1971
|
+
const r$1 = new TypeError("TransformStream terminated");
|
|
1972
|
+
dr(t$1, r$1);
|
|
1973
|
+
})(this);
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
function br(e$1) {
|
|
1977
|
+
return !!r(e$1) && !!Object.prototype.hasOwnProperty.call(e$1, "_controlledTransformStream") && e$1 instanceof TransformStreamDefaultController;
|
|
1978
|
+
}
|
|
1979
|
+
function hr(e$1) {
|
|
1980
|
+
e$1._transformAlgorithm = void 0, e$1._flushAlgorithm = void 0;
|
|
1981
|
+
}
|
|
1982
|
+
function _r(e$1, t$1) {
|
|
1983
|
+
const r$1 = e$1._controlledTransformStream;
|
|
1984
|
+
if (!gr(r$1)) throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
1985
|
+
try {
|
|
1986
|
+
(function(e$2, t$2) {
|
|
1987
|
+
e$2._readablePulling = !1;
|
|
1988
|
+
try {
|
|
1989
|
+
e$2._readableController.enqueue(t$2);
|
|
1990
|
+
} catch (t$3) {
|
|
1991
|
+
throw Sr(e$2, t$3), t$3;
|
|
1992
|
+
}
|
|
1993
|
+
})(r$1, t$1);
|
|
1994
|
+
} catch (e$2) {
|
|
1995
|
+
throw dr(r$1, e$2), r$1._readableStoredError;
|
|
1996
|
+
}
|
|
1997
|
+
const o$1 = function(e$2) {
|
|
1998
|
+
return !function(e$3) {
|
|
1999
|
+
if (!gr(e$3)) return !1;
|
|
2000
|
+
if (e$3._readablePulling) return !0;
|
|
2001
|
+
if (vr(e$3) > 0) return !0;
|
|
2002
|
+
return !1;
|
|
2003
|
+
}(e$2);
|
|
2004
|
+
}(r$1);
|
|
2005
|
+
o$1 !== r$1._backpressure && fr(r$1, !0);
|
|
2006
|
+
}
|
|
2007
|
+
function pr(e$1, t$1) {
|
|
2008
|
+
return p(e$1._transformAlgorithm(t$1), void 0, (t$2) => {
|
|
2009
|
+
throw cr(e$1._controlledTransformStream, t$2), t$2;
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
function mr(e$1) {
|
|
2013
|
+
return new TypeError(`TransformStreamDefaultController.prototype.${e$1} can only be used on a TransformStreamDefaultController`);
|
|
2014
|
+
}
|
|
2015
|
+
function yr(e$1) {
|
|
2016
|
+
return new TypeError(`TransformStream.prototype.${e$1} can only be used on a TransformStream`);
|
|
2017
|
+
}
|
|
2018
|
+
function gr(e$1) {
|
|
2019
|
+
return !e$1._readableCloseRequested && "readable" === e$1._readableState;
|
|
2020
|
+
}
|
|
2021
|
+
function wr(e$1) {
|
|
2022
|
+
e$1._readableState = "closed", e$1._readableCloseRequested = !0, e$1._readableController.close();
|
|
2023
|
+
}
|
|
2024
|
+
function Sr(e$1, t$1) {
|
|
2025
|
+
"readable" === e$1._readableState && (e$1._readableState = "errored", e$1._readableStoredError = t$1), e$1._readableController.error(t$1);
|
|
2026
|
+
}
|
|
2027
|
+
function vr(e$1) {
|
|
2028
|
+
return e$1._readableController.desiredSize;
|
|
2029
|
+
}
|
|
2030
|
+
function Rr(e$1, t$1) {
|
|
2031
|
+
"writable" !== e$1._writableState ? qr(e$1) : Tr(e$1, t$1);
|
|
2032
|
+
}
|
|
2033
|
+
function Tr(e$1, t$1) {
|
|
2034
|
+
e$1._writableState = "erroring", e$1._writableStoredError = t$1, !function(e$2) {
|
|
2035
|
+
return e$2._writableHasInFlightOperation;
|
|
2036
|
+
}(e$1) && e$1._writableStarted && qr(e$1);
|
|
2037
|
+
}
|
|
2038
|
+
function qr(e$1) {
|
|
2039
|
+
e$1._writableState = "errored";
|
|
2040
|
+
}
|
|
2041
|
+
function Cr(e$1) {
|
|
2042
|
+
"erroring" === e$1._writableState && qr(e$1);
|
|
2043
|
+
}
|
|
2044
|
+
Object.defineProperties(TransformStreamDefaultController.prototype, {
|
|
2045
|
+
enqueue: { enumerable: !0 },
|
|
2046
|
+
error: { enumerable: !0 },
|
|
2047
|
+
terminate: { enumerable: !0 },
|
|
2048
|
+
desiredSize: { enumerable: !0 }
|
|
2049
|
+
}), 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, {
|
|
2050
|
+
value: "TransformStreamDefaultController",
|
|
2051
|
+
configurable: !0
|
|
2052
|
+
});
|
|
2053
|
+
|
|
2054
|
+
//#endregion
|
|
2055
|
+
//#region node_modules/formdata-node/lib/esm/isFunction.js
|
|
2056
|
+
const isFunction = (value) => typeof value === "function";
|
|
2057
|
+
|
|
2058
|
+
//#endregion
|
|
2059
|
+
//#region node_modules/formdata-node/lib/esm/blobHelpers.js
|
|
2060
|
+
const CHUNK_SIZE = 65536;
|
|
2061
|
+
async function* clonePart(part) {
|
|
2062
|
+
const end = part.byteOffset + part.byteLength;
|
|
2063
|
+
let position = part.byteOffset;
|
|
2064
|
+
while (position !== end) {
|
|
2065
|
+
const size = Math.min(end - position, CHUNK_SIZE);
|
|
2066
|
+
const chunk = part.buffer.slice(position, position + size);
|
|
2067
|
+
position += chunk.byteLength;
|
|
2068
|
+
yield new Uint8Array(chunk);
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
async function* consumeNodeBlob(blob) {
|
|
2072
|
+
let position = 0;
|
|
2073
|
+
while (position !== blob.size) {
|
|
2074
|
+
const chunk = blob.slice(position, Math.min(blob.size, position + CHUNK_SIZE));
|
|
2075
|
+
const buffer = await chunk.arrayBuffer();
|
|
2076
|
+
position += buffer.byteLength;
|
|
2077
|
+
yield new Uint8Array(buffer);
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
async function* consumeBlobParts(parts, clone = false) {
|
|
2081
|
+
for (const part of parts) if (ArrayBuffer.isView(part)) if (clone) yield* clonePart(part);
|
|
2082
|
+
else yield part;
|
|
2083
|
+
else if (isFunction(part.stream)) yield* part.stream();
|
|
2084
|
+
else yield* consumeNodeBlob(part);
|
|
2085
|
+
}
|
|
2086
|
+
function* sliceBlob(blobParts, blobSize, start = 0, end) {
|
|
2087
|
+
end !== null && end !== void 0 || (end = blobSize);
|
|
2088
|
+
let relativeStart = start < 0 ? Math.max(blobSize + start, 0) : Math.min(start, blobSize);
|
|
2089
|
+
let relativeEnd = end < 0 ? Math.max(blobSize + end, 0) : Math.min(end, blobSize);
|
|
2090
|
+
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
2091
|
+
let added = 0;
|
|
2092
|
+
for (const part of blobParts) {
|
|
2093
|
+
if (added >= span) break;
|
|
2094
|
+
const partSize = ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
2095
|
+
if (relativeStart && partSize <= relativeStart) {
|
|
2096
|
+
relativeStart -= partSize;
|
|
2097
|
+
relativeEnd -= partSize;
|
|
2098
|
+
} else {
|
|
2099
|
+
let chunk;
|
|
2100
|
+
if (ArrayBuffer.isView(part)) {
|
|
2101
|
+
chunk = part.subarray(relativeStart, Math.min(partSize, relativeEnd));
|
|
2102
|
+
added += chunk.byteLength;
|
|
2103
|
+
} else {
|
|
2104
|
+
chunk = part.slice(relativeStart, Math.min(partSize, relativeEnd));
|
|
2105
|
+
added += chunk.size;
|
|
2106
|
+
}
|
|
2107
|
+
relativeEnd -= partSize;
|
|
2108
|
+
relativeStart = 0;
|
|
2109
|
+
yield chunk;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
//#endregion
|
|
2115
|
+
//#region node_modules/formdata-node/lib/esm/Blob.js
|
|
2116
|
+
/*! Based on fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> & David Frank */
|
|
2117
|
+
var __classPrivateFieldGet$1 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f$1) {
|
|
2118
|
+
if (kind === "a" && !f$1) throw new TypeError("Private accessor was defined without a getter");
|
|
2119
|
+
if (typeof state === "function" ? receiver !== state || !f$1 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2120
|
+
return kind === "m" ? f$1 : kind === "a" ? f$1.call(receiver) : f$1 ? f$1.value : state.get(receiver);
|
|
2121
|
+
};
|
|
2122
|
+
var __classPrivateFieldSet$1 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind, f$1) {
|
|
2123
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2124
|
+
if (kind === "a" && !f$1) throw new TypeError("Private accessor was defined without a setter");
|
|
2125
|
+
if (typeof state === "function" ? receiver !== state || !f$1 : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2126
|
+
return kind === "a" ? f$1.call(receiver, value) : f$1 ? f$1.value = value : state.set(receiver, value), value;
|
|
2127
|
+
};
|
|
2128
|
+
var _Blob_parts, _Blob_type, _Blob_size;
|
|
2129
|
+
var Blob = class Blob {
|
|
2130
|
+
constructor(blobParts = [], options = {}) {
|
|
2131
|
+
_Blob_parts.set(this, []);
|
|
2132
|
+
_Blob_type.set(this, "");
|
|
2133
|
+
_Blob_size.set(this, 0);
|
|
2134
|
+
options !== null && options !== void 0 || (options = {});
|
|
2135
|
+
if (typeof blobParts !== "object" || blobParts === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
2136
|
+
if (!isFunction(blobParts[Symbol.iterator])) throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
|
|
2137
|
+
if (typeof options !== "object" && !isFunction(options)) throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
2138
|
+
const encoder = new TextEncoder();
|
|
2139
|
+
for (const raw of blobParts) {
|
|
2140
|
+
let part;
|
|
2141
|
+
if (ArrayBuffer.isView(raw)) part = new Uint8Array(raw.buffer.slice(raw.byteOffset, raw.byteOffset + raw.byteLength));
|
|
2142
|
+
else if (raw instanceof ArrayBuffer) part = new Uint8Array(raw.slice(0));
|
|
2143
|
+
else if (raw instanceof Blob) part = raw;
|
|
2144
|
+
else part = encoder.encode(String(raw));
|
|
2145
|
+
__classPrivateFieldSet$1(this, _Blob_size, __classPrivateFieldGet$1(this, _Blob_size, "f") + (ArrayBuffer.isView(part) ? part.byteLength : part.size), "f");
|
|
2146
|
+
__classPrivateFieldGet$1(this, _Blob_parts, "f").push(part);
|
|
2147
|
+
}
|
|
2148
|
+
const type = options.type === void 0 ? "" : String(options.type);
|
|
2149
|
+
__classPrivateFieldSet$1(this, _Blob_type, /^[\x20-\x7E]*$/.test(type) ? type : "", "f");
|
|
2150
|
+
}
|
|
2151
|
+
static [(_Blob_parts = /* @__PURE__ */ new WeakMap(), _Blob_type = /* @__PURE__ */ new WeakMap(), _Blob_size = /* @__PURE__ */ new WeakMap(), Symbol.hasInstance)](value) {
|
|
2152
|
+
return Boolean(value && typeof value === "object" && isFunction(value.constructor) && (isFunction(value.stream) || isFunction(value.arrayBuffer)) && /^(Blob|File)$/.test(value[Symbol.toStringTag]));
|
|
2153
|
+
}
|
|
2154
|
+
get type() {
|
|
2155
|
+
return __classPrivateFieldGet$1(this, _Blob_type, "f");
|
|
2156
|
+
}
|
|
2157
|
+
get size() {
|
|
2158
|
+
return __classPrivateFieldGet$1(this, _Blob_size, "f");
|
|
2159
|
+
}
|
|
2160
|
+
slice(start, end, contentType) {
|
|
2161
|
+
return new Blob(sliceBlob(__classPrivateFieldGet$1(this, _Blob_parts, "f"), this.size, start, end), { type: contentType });
|
|
2162
|
+
}
|
|
2163
|
+
async text() {
|
|
2164
|
+
const decoder = new TextDecoder();
|
|
2165
|
+
let result = "";
|
|
2166
|
+
for await (const chunk of consumeBlobParts(__classPrivateFieldGet$1(this, _Blob_parts, "f"))) result += decoder.decode(chunk, { stream: true });
|
|
2167
|
+
result += decoder.decode();
|
|
2168
|
+
return result;
|
|
2169
|
+
}
|
|
2170
|
+
async arrayBuffer() {
|
|
2171
|
+
const view = new Uint8Array(this.size);
|
|
2172
|
+
let offset = 0;
|
|
2173
|
+
for await (const chunk of consumeBlobParts(__classPrivateFieldGet$1(this, _Blob_parts, "f"))) {
|
|
2174
|
+
view.set(chunk, offset);
|
|
2175
|
+
offset += chunk.length;
|
|
2176
|
+
}
|
|
2177
|
+
return view.buffer;
|
|
2178
|
+
}
|
|
2179
|
+
stream() {
|
|
2180
|
+
const iterator = consumeBlobParts(__classPrivateFieldGet$1(this, _Blob_parts, "f"), true);
|
|
2181
|
+
return new ReadableStream({
|
|
2182
|
+
async pull(controller) {
|
|
2183
|
+
const { value, done } = await iterator.next();
|
|
2184
|
+
if (done) return queueMicrotask(() => controller.close());
|
|
2185
|
+
controller.enqueue(value);
|
|
2186
|
+
},
|
|
2187
|
+
async cancel() {
|
|
2188
|
+
await iterator.return();
|
|
2189
|
+
}
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
get [Symbol.toStringTag]() {
|
|
2193
|
+
return "Blob";
|
|
2194
|
+
}
|
|
2195
|
+
};
|
|
2196
|
+
Object.defineProperties(Blob.prototype, {
|
|
2197
|
+
type: { enumerable: true },
|
|
2198
|
+
size: { enumerable: true },
|
|
2199
|
+
slice: { enumerable: true },
|
|
2200
|
+
stream: { enumerable: true },
|
|
2201
|
+
text: { enumerable: true },
|
|
2202
|
+
arrayBuffer: { enumerable: true }
|
|
2203
|
+
});
|
|
2204
|
+
|
|
2205
|
+
//#endregion
|
|
2206
|
+
//#region node_modules/formdata-node/lib/esm/File.js
|
|
2207
|
+
var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind, f$1) {
|
|
2208
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2209
|
+
if (kind === "a" && !f$1) throw new TypeError("Private accessor was defined without a setter");
|
|
2210
|
+
if (typeof state === "function" ? receiver !== state || !f$1 : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2211
|
+
return kind === "a" ? f$1.call(receiver, value) : f$1 ? f$1.value = value : state.set(receiver, value), value;
|
|
2212
|
+
};
|
|
2213
|
+
var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f$1) {
|
|
2214
|
+
if (kind === "a" && !f$1) throw new TypeError("Private accessor was defined without a getter");
|
|
2215
|
+
if (typeof state === "function" ? receiver !== state || !f$1 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2216
|
+
return kind === "m" ? f$1 : kind === "a" ? f$1.call(receiver) : f$1 ? f$1.value : state.get(receiver);
|
|
2217
|
+
};
|
|
2218
|
+
var _File_name, _File_lastModified;
|
|
2219
|
+
var File = class extends Blob {
|
|
2220
|
+
constructor(fileBits, name, options = {}) {
|
|
2221
|
+
super(fileBits, options);
|
|
2222
|
+
_File_name.set(this, void 0);
|
|
2223
|
+
_File_lastModified.set(this, 0);
|
|
2224
|
+
if (arguments.length < 2) throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
|
2225
|
+
__classPrivateFieldSet(this, _File_name, String(name), "f");
|
|
2226
|
+
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
|
2227
|
+
if (!Number.isNaN(lastModified)) __classPrivateFieldSet(this, _File_lastModified, lastModified, "f");
|
|
2228
|
+
}
|
|
2229
|
+
static [(_File_name = /* @__PURE__ */ new WeakMap(), _File_lastModified = /* @__PURE__ */ new WeakMap(), Symbol.hasInstance)](value) {
|
|
2230
|
+
return value instanceof Blob && value[Symbol.toStringTag] === "File" && typeof value.name === "string";
|
|
2231
|
+
}
|
|
2232
|
+
get name() {
|
|
2233
|
+
return __classPrivateFieldGet(this, _File_name, "f");
|
|
2234
|
+
}
|
|
2235
|
+
get lastModified() {
|
|
2236
|
+
return __classPrivateFieldGet(this, _File_lastModified, "f");
|
|
2237
|
+
}
|
|
2238
|
+
get webkitRelativePath() {
|
|
2239
|
+
return "";
|
|
2240
|
+
}
|
|
2241
|
+
get [Symbol.toStringTag]() {
|
|
2242
|
+
return "File";
|
|
2243
|
+
}
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
//#endregion
|
|
2247
|
+
//#region node_modules/formdata-node/lib/esm/isFile.js
|
|
2248
|
+
const isFile = (value) => value instanceof File;
|
|
2249
|
+
|
|
2250
|
+
//#endregion
|
|
2251
|
+
Object.defineProperty(exports, 'Blob', {
|
|
2252
|
+
enumerable: true,
|
|
2253
|
+
get: function () {
|
|
2254
|
+
return Blob;
|
|
2255
|
+
}
|
|
2256
|
+
});
|
|
2257
|
+
Object.defineProperty(exports, 'File', {
|
|
2258
|
+
enumerable: true,
|
|
2259
|
+
get: function () {
|
|
2260
|
+
return File;
|
|
2261
|
+
}
|
|
2262
|
+
});
|
|
2263
|
+
Object.defineProperty(exports, 'isFile', {
|
|
2264
|
+
enumerable: true,
|
|
2265
|
+
get: function () {
|
|
2266
|
+
return isFile;
|
|
2267
|
+
}
|
|
2268
|
+
});
|
|
2269
|
+
Object.defineProperty(exports, 'isFunction', {
|
|
2270
|
+
enumerable: true,
|
|
2271
|
+
get: function () {
|
|
2272
|
+
return isFunction;
|
|
2273
|
+
}
|
|
2274
|
+
});
|