@desplega.ai/agent-swarm 2.14.1 → 2.14.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/dist/{acp-adapter-7jv7w8jh.js → acp-adapter-q1vz4hh2.js} +8 -8
- package/dist/{acp-targets-0ebmg3et.js → acp-targets-d44eerh4.js} +7 -7
- package/dist/{actions-0ds9dx6c.js → actions-z4k4bvss.js} +27 -27
- package/dist/{agent-fs-provision-zpbxa9jc.js → agent-fs-provision-aan1cgpx.js} +4 -4
- package/dist/{amp-adapter-awh5nn7a.js → amp-adapter-wac3py0p.js} +1 -1
- package/dist/{anthropic-messages-gtgp9r85.js → anthropic-messages-njt2r5m4.js} +16 -15
- package/dist/{app-nzejkvpp.js → app-wax6qz5e.js} +9 -9
- package/dist/{approval-notifications-hbqtb2w3.js → approval-notifications-6fvkhnma.js} +10 -10
- package/dist/{assistant-1paft129.js → assistant-e8fe08zx.js} +25 -25
- package/dist/{azure-openai-responses-e76k86gf.js → azure-openai-responses-6ewf9rwp.js} +9 -9
- package/dist/{boot-args-schema-zs435mfx.js → boot-args-schema-rv97cmnt.js} +1 -1
- package/dist/{boot-reembed-91qrd4mz.js → boot-reembed-bcn7frk9.js} +1 -1
- package/dist/{boot-reembed-7xq2qgg4.js → boot-reembed-xakrdy6y.js} +1 -1
- package/dist/{boot-scrub-sweep-3h5xscw6.js → boot-scrub-sweep-20t8akhf.js} +2 -2
- package/dist/{boot-seeds-xkxqa8zc.js → boot-seeds-48rr6r29.js} +4 -4
- package/dist/{boxd-464x3w4m.js → boxd-tjpxwecx.js} +2 -2
- package/dist/{claude-adapter-6d8eyf2f.js → claude-adapter-0wzwntrj.js} +8 -8
- package/dist/{claude-managed-adapter-jzxcaf9m.js → claude-managed-adapter-4xcgt46w.js} +2 -2
- package/dist/{claude-managed-setup-5fcx0qh3.js → claude-managed-setup-91cyktw7.js} +5 -5
- package/dist/{claude-sdk-session-11vhz1hc.js → claude-sdk-session-ngj4dce5.js} +9658 -9634
- package/dist/{cli-hamdfjtx.js → cli-021hrewp.js} +1 -1
- package/dist/{cli-pgdqhdkw.js → cli-0kyjrbaa.js} +2 -2
- package/dist/{cli-132h67ps.js → cli-0nz04gqv.js} +48 -48
- package/dist/{cli-6a77m17n.js → cli-0rrft7s3.js} +2 -2
- package/dist/{cli-z0effej1.js → cli-1d9q7qrn.js} +5 -5
- package/dist/{cli-tdd9dvw6.js → cli-1t5vhrpv.js} +1 -1
- package/dist/{cli-zyf288rw.js → cli-2ja7eadd.js} +1 -1
- package/dist/{cli-k9m8fckz.js → cli-3ffzr65w.js} +4 -4
- package/dist/{cli-02ba8qx5.js → cli-3kdgm393.js} +4 -4
- package/dist/{cli-hh5m39pt.js → cli-3vc518cw.js} +1 -1
- package/dist/{cli-5pyes68e.js → cli-5188hq0a.js} +8 -8
- package/dist/{cli-zcghfsdg.js → cli-53gt8wfv.js} +1 -1
- package/dist/{cli-5t00r6c9.js → cli-5njmmmer.js} +2 -2
- package/dist/{cli-etykr11s.js → cli-5rw7nt99.js} +1 -1
- package/dist/{cli-6c61yjwy.js → cli-5xx353cy.js} +7554 -1534
- package/dist/{cli-by7s3n4p.js → cli-65k149j5.js} +2 -2
- package/dist/{cli-1e13gvfn.js → cli-6zpn5hmp.js} +11 -11
- package/dist/{cli-rb1z91g8.js → cli-7dpdq7yh.js} +1230 -540
- package/dist/{cli-3bagv8rt.js → cli-7wwewkf4.js} +1 -1
- package/dist/{cli-288k5ep1.js → cli-83hynhes.js} +15 -11
- package/dist/{cli-v84kb7af.js → cli-8ee7xt75.js} +11 -11
- package/dist/{cli-v3jxx8dv.js → cli-8ef94zm2.js} +2 -2
- package/dist/{cli-9fvk9mv8.js → cli-8gr1bg9t.js} +1 -1
- package/dist/{cli-vrb8pvrf.js → cli-9j1qcs0b.js} +6 -6
- package/dist/{cli-0dkpdvnn.js → cli-9mvfvggt.js} +5 -5
- package/dist/{cli-3bcsc3m7.js → cli-an8bpy60.js} +1 -1
- package/dist/{cli-6yhjqd6k.js → cli-azptj8xe.js} +810 -184
- package/dist/{cli-3a3hm1z8.js → cli-c0rt16vk.js} +2 -2
- package/dist/{cli-byzq8xht.js → cli-c6vhcknq.js} +6 -6
- package/dist/{cli-eaqxkeq0.js → cli-cczffwak.js} +8 -8
- package/dist/{cli-83kf2y60.js → cli-cgmka83w.js} +6 -6
- package/dist/{cli-5xjdft4s.js → cli-d13qgcct.js} +207 -142
- package/dist/{cli-k3facve0.js → cli-d5nvy1jy.js} +1 -1
- package/dist/{cli-zvsy4abb.js → cli-dev6f0px.js} +3 -3
- package/dist/{cli-e1wprqnd.js → cli-dzhht0vq.js} +2 -2
- package/dist/{cli-zdkcp8p0.js → cli-e13kbyq0.js} +1 -1
- package/dist/{cli-f07sgaax.js → cli-e2k0ej0d.js} +2 -2
- package/dist/{cli-dt931hb8.js → cli-ek8b88kv.js} +21 -21
- package/dist/{cli-20mkgwev.js → cli-ertcjw6z.js} +249 -19
- package/dist/{cli-0qyfna7a.js → cli-f3ta4e67.js} +4 -4
- package/dist/{cli-6xrbpj5j.js → cli-f4xv7s0t.js} +4 -4
- package/dist/{cli-d1zkys4j.js → cli-fdam1t9b.js} +29 -13
- package/dist/{cli-spfz393q.js → cli-feh37wgs.js} +598 -219
- package/dist/{cli-ebqx630g.js → cli-fjzjtqna.js} +35 -18
- package/dist/{cli-zgsd2w2k.js → cli-fs9t2m2k.js} +16 -16
- package/dist/{cli-trvtxwzt.js → cli-g03x26q6.js} +2 -2
- package/dist/{cli-0mq8kxfx.js → cli-gnkzh8ed.js} +3 -3
- package/dist/{cli-phantfg3.js → cli-gy0r7gb8.js} +40 -15
- package/dist/{cli-wsh5vfa7.js → cli-h364asjc.js} +2 -2
- package/dist/{cli-3ktfe5jx.js → cli-h3xcfp4c.js} +22 -7
- package/dist/{cli-976m0zcw.js → cli-h8k5801a.js} +49 -13
- package/dist/{cli-727sq1f9.js → cli-h96yp7xv.js} +2 -2
- package/dist/{cli-ytgtqsy9.js → cli-hab0bvrh.js} +1 -1
- package/dist/{cli-7dwsn9y5.js → cli-j3wqt73b.js} +4 -4
- package/dist/{cli-8kemtj1r.js → cli-jfgaz10x.js} +7 -7
- package/dist/{cli-wtwe8vng.js → cli-jrhvywah.js} +25 -24
- package/dist/{cli-tjrrabez.js → cli-jrxt5j0n.js} +3 -3
- package/dist/{cli-7b7rxz22.js → cli-jw7n9pct.js} +5 -2
- package/dist/{cli-k791mabe.js → cli-k9kfck3s.js} +5 -5
- package/dist/{cli-44r66df2.js → cli-kkwq5b12.js} +1 -1
- package/dist/{cli-e9p9h14n.js → cli-nc842kc9.js} +4 -4
- package/dist/{cli-3179w2rz.js → cli-nmj4phcg.js} +1 -1
- package/dist/{cli-ny8f5g7t.js → cli-praaw1wh.js} +1 -1
- package/dist/{cli-j8fmn3wv.js → cli-q44p4869.js} +7 -7
- package/dist/{cli-sq32dgfe.js → cli-q58qt9dw.js} +237 -57
- package/dist/{cli-2n7qdqfv.js → cli-qqz5z36e.js} +2 -2
- package/dist/{cli-b70cpf8f.js → cli-r7rpy2xz.js} +1 -1
- package/dist/{cli-1hj68b3h.js → cli-rcqgr0hs.js} +1 -1
- package/dist/{cli-ph95yejc.js → cli-rjc464jg.js} +2 -2
- package/dist/{cli-967jrz7j.js → cli-rw3m83j4.js} +15 -15
- package/dist/{cli-0vxbrxr3.js → cli-rwcj6wt3.js} +304 -19
- package/dist/{cli-yvnnyjxm.js → cli-ryn4y478.js} +1 -1
- package/dist/{cli-3g0vbq46.js → cli-s48k2rzx.js} +3 -3
- package/dist/{cli-98sea4d9.js → cli-s90wcbk9.js} +2 -2
- package/dist/{cli-e2wzzw17.js → cli-svcy72s5.js} +1 -1
- package/dist/{cli-643skca1.js → cli-swtwbg85.js} +17 -17
- package/dist/{cli-4y2bekkn.js → cli-t1bqpzgz.js} +2 -2
- package/dist/{cli-zmfs06hg.js → cli-t5jbjq61.js} +3 -3
- package/dist/{cli-mz7ycqn8.js → cli-td2h8zej.js} +6 -6
- package/dist/{cli-9t7syepg.js → cli-ttatvwn6.js} +1 -1
- package/dist/{cli-v1rhq77v.js → cli-txxcf9s1.js} +6 -6
- package/dist/{cli-q4z9s6zs.js → cli-v7az4d1g.js} +2 -2
- package/dist/cli-vqt44168.js +14 -0
- package/dist/{cli-tkrp183j.js → cli-vs9h3vw2.js} +5 -5
- package/dist/{cli-7abeph0b.js → cli-w2fg8kjc.js} +3 -3
- package/dist/{cli-sf5kp73f.js → cli-wz7qj1jy.js} +12 -12
- package/dist/{cli-ww8wxfzx.js → cli-x5t54ytt.js} +2 -2
- package/dist/{cli-nmdy8bzf.js → cli-xphbv66z.js} +1 -1
- package/dist/{cli-redtbppc.js → cli-xxgqn93n.js} +3753 -1186
- package/dist/{cli-s7bfz1ye.js → cli-z209g721.js} +109 -85
- package/dist/{cli-vp2ksaq9.js → cli-z5andw8k.js} +1 -1
- package/dist/{cli-xmc2nrtv.js → cli-zr2sc5tr.js} +1 -1
- package/dist/{cli-z0c98h7h.js → cli-zrm0610v.js} +61 -54
- package/dist/cli.js +41 -40
- package/dist/{cloudflare-workers-ai-system-one-w3m0fbf8.js → cloudflare-workers-ai-system-one-kb0tq22h.js} +2 -2
- package/dist/{codex-adapter-seht4h9t.js → codex-adapter-0c1ynrmt.js} +5 -5
- package/dist/{codex-session-runner-tq95x3gq.js → codex-session-runner-z4t9z7yy.js} +5 -5
- package/dist/{commands-0awwqxq5.js → commands-h0jxqdhk.js} +3 -3
- package/dist/{controller-hgjx521c.js → controller-4ygy66hv.js} +3 -3
- package/dist/{controllers-connect-j4kdmhfj.js → controllers-connect-ynbvv8pv.js} +26 -26
- package/dist/core-mj9fzrcm.js +41 -0
- package/dist/{cursor-adapter-0rg8wk6j.js → cursor-adapter-9e4d6658.js} +1 -1
- package/dist/{db-8xs2js3s.js → db-bg0hxjq1.js} +3 -3
- package/dist/{db-dd6hj211.js → db-q12gmpns.js} +2 -2
- package/dist/{devtools-b8qts77k.js → devtools-t8my9az6.js} +1 -1
- package/dist/{dispatcher-v7drd034.js → dispatcher-v5dbfscq.js} +23 -23
- package/dist/{dsh-adapter-ah8npj2x.js → dsh-adapter-z3fneea1.js} +1 -1
- package/dist/{e2b-z1g7vpz6.js → e2b-k3kb8b52.js} +3 -3
- package/dist/{e2b-hg80w0qr.js → e2b-p269awh6.js} +4 -4
- package/dist/{easter-egg-3d-8n4w3s9k.js → easter-egg-3d-y49v5z90.js} +1 -1
- package/dist/{embedding-space-0p921zt3.js → embedding-space-mjt5ksq0.js} +5 -5
- package/dist/{embeddings-9s7kbrc6.js → embeddings-td9hgnc5.js} +1 -1
- package/dist/{execute-x0fy9j0m.js → execute-z8nc8bba.js} +1 -1
- package/dist/{external-channel-ktfvn29c.js → external-channel-pjenc2ag.js} +2 -2
- package/dist/{fx-adapter-15vjxvgm.js → fx-adapter-pjeztp0n.js} +9 -9
- package/dist/getMachineId-bsd-hjs2tbdp.js +36 -0
- package/dist/getMachineId-darwin-kzbvr8s3.js +40 -0
- package/dist/getMachineId-linux-embmcq2c.js +26 -0
- package/dist/getMachineId-unsupported-jvznc6d4.js +20 -0
- package/dist/getMachineId-win-qr8z0b13.js +36 -0
- package/dist/{google-generative-ai-nzndg246.js → google-generative-ai-tf3w7557.js} +11 -16
- package/dist/{google-vertex-ragh3nnw.js → google-vertex-9pj87bd8.js} +15 -17
- package/dist/{grok-adapter-77httan0.js → grok-adapter-davbhx8t.js} +9 -9
- package/dist/handlers-rf130hnp.js +39 -0
- package/dist/{heartbeat-5yaj6dym.js → heartbeat-9hmvqxk0.js} +26 -26
- package/dist/{hook-c99nycyh.js → hook-0b1jqs2t.js} +6 -6
- package/dist/{hook-2jttae8s.js → hook-1n0sjv8p.js} +7 -7
- package/dist/{http-7y9dbfrr.js → http-vykejyjx.js} +412 -183
- package/dist/{index-tcegcysh.js → index-07d66kdm.js} +5 -5
- package/dist/{index-fqf82sbk.js → index-0hgjxqz8.js} +1 -1
- package/dist/{index-t274qhhs.js → index-0nt39qwy.js} +6 -6
- package/dist/{index-8p03vx1h.js → index-2xbxq71g.js} +8 -8
- package/dist/{index-jvfp0j47.js → index-3j8hffkb.js} +12038 -7667
- package/dist/index-8w09aggw.js +43 -0
- package/dist/{index-xhp7yp3t.js → index-b3wy4jzs.js} +1 -1
- package/dist/{index-6g9rdcrj.js → index-dt9vr7tb.js} +162 -57
- package/dist/{index-cw8nxnba.js → index-ezfas4jj.js} +1912 -346
- package/dist/index-g2jntx15.js +38 -0
- package/dist/{index-h9xnzfhx.js → index-j6sqtb83.js} +101 -72
- package/dist/{index-m6g8q65g.js → index-na0tczq0.js} +9268 -10220
- package/dist/{index-tn1m3q9b.js → index-p9dkwhwe.js} +3 -3
- package/dist/{index-g7rthzrv.js → index-pe2etczf.js} +8 -8
- package/dist/index-qffex5k4.js +41 -0
- package/dist/index-qrp11tp9.js +4 -0
- package/dist/{index-t4n9z755.js → index-ryyrg0d8.js} +406 -317
- package/dist/{index-t17p395x.js → index-sf06w57a.js} +13 -13
- package/dist/{index-qxcfv8vq.js → index-vybnwd5v.js} +1 -1
- package/dist/{index-dm7c6hw5.js → index-wsf1f5pe.js} +27 -27
- package/dist/{keepalive-7eyb8y4t.js → keepalive-86z0tzzf.js} +3 -3
- package/dist/lead-edmwagkn.js +81 -0
- package/dist/{llama-cpp-classify-yvb8vh7w.js → llama-cpp-classify-wd7htn1x.js} +2 -2
- package/dist/{maintenance-tdrd8nwv.js → maintenance-19h6tfwz.js} +1 -1
- package/dist/{mistral-conversations-w4bncwbt.js → mistral-conversations-txjmc64f.js} +7 -7
- package/dist/{module-ES6BEMUI-6htewwha.js → module-ES6BEMUI-44w9s1dx.js} +4 -4
- package/dist/{multipart-parser-xevcstye.js → multipart-parser-xqbgwrav.js} +1 -1
- package/dist/{oauth-refresh-sweep-f4c7g37h.js → oauth-refresh-sweep-6nmyrv32.js} +2 -2
- package/dist/{object-webhooks-p190rdxp.js → object-webhooks-2kynmdf8.js} +7 -7
- package/dist/{onboard-56h4sks6.js → onboard-zbpm96mn.js} +5 -5
- package/dist/{openai-codex-responses-z2h941b8.js → openai-codex-responses-6ckhys6r.js} +31 -25
- package/dist/{openai-completions-5bxdkeg9.js → openai-completions-c9dsq9jh.js} +17 -17
- package/dist/{openai-decisions-fyq1p9f9.js → openai-decisions-9vzvv10c.js} +2 -2
- package/dist/{openai-responses-dzf3e8r5.js → openai-responses-bhfmt9sa.js} +9 -9
- package/dist/{opencode-adapter-xg3yxfr0.js → opencode-adapter-fyqcbdra.js} +5 -5
- package/dist/{openrouter-images-0jj12a2q.js → openrouter-images-hkk5p580.js} +3 -3
- package/dist/otel-impl-txa20w1h.js +11178 -0
- package/dist/{pending-xgv316w0.js → pending-4rxawq8y.js} +24 -24
- package/dist/{pi-messages-zk3g4esn.js → pi-messages-py3f96p7.js} +5 -5
- package/dist/{pi-mono-adapter-txe0syzb.js → pi-mono-adapter-rnsed1xa.js} +14 -14
- package/dist/{pricing-refresh-041zpyhf.js → pricing-refresh-4314hwtw.js} +2 -2
- package/dist/{rbac-roles-8f3jbcaf.js → rbac-roles-fztcm8ky.js} +2 -2
- package/dist/{rbac-roles-cw7rrw5b.js → rbac-roles-msqt7a3k.js} +3 -3
- package/dist/{render-v2-2ezw4mzt.js → render-v2-w49wtecg.js} +9 -9
- package/dist/{resume-p14wdx8m.js → resume-gwgtp4m3.js} +12 -12
- package/dist/{runtime-he7c9g1r.js → runtime-kkebz8yq.js} +1 -1
- package/dist/{session-access-8jvq86fj.js → session-access-kjb19m2w.js} +5 -5
- package/dist/{session-source-backfill-6fe3hcgb.js → session-source-backfill-805p4wqr.js} +2 -2
- package/dist/{setup-6v0bn4r1.js → setup-q8y168c8.js} +3 -3
- package/dist/thread-buffer-yqbffd0t.js +40 -0
- package/dist/{tree-visibility-g1a8ff4r.js → tree-visibility-qj323994.js} +2 -2
- package/dist/{typesafe-system-one-qkvkgrcz.js → typesafe-system-one-avrdb4zm.js} +2 -2
- package/dist/{user-merge-jobs-vjsps179.js → user-merge-jobs-qfp40f2s.js} +3 -3
- package/dist/{virtual-modules-mreda4fp.js → virtual-modules-nzxegw0a.js} +7 -7
- package/dist/{work-objects-hfw15e35.js → work-objects-hs089w60.js} +25 -25
- package/dist/{worker-follow-up-gbaz2ydz.js → worker-follow-up-zwgg20sr.js} +23 -23
- package/dist/worker-kg4g7rnx.js +81 -0
- package/openapi.json +3 -3
- package/package.json +25 -24
- package/plugin/commands/create-pr.md +5 -2
- package/plugin/pi-skills/create-pr/SKILL.md +5 -2
- package/src/apps/sync.ts +7 -2
- package/src/be/db/workflow-runs.ts +12 -8
- package/src/be/db.ts +4 -1
- package/src/be/migrations/367_workflow_run_principal.sql +5 -0
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/be/task-auto-title-listener.ts +2 -2
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/extensions/post-bridge.ts +27 -28
- package/src/http/active-sessions.ts +7 -0
- package/src/http/agents.ts +7 -0
- package/src/http/api-keys.ts +7 -0
- package/src/http/approval-requests.ts +4 -0
- package/src/http/budgets.ts +2 -0
- package/src/http/codex-oauth-keep-warm.ts +6 -2
- package/src/http/config.ts +1 -0
- package/src/http/context.ts +4 -0
- package/src/http/db-query.ts +3 -0
- package/src/http/events.ts +2 -0
- package/src/http/fs.ts +1 -0
- package/src/http/integrations.ts +4 -0
- package/src/http/mcp-bridge.ts +1 -0
- package/src/http/memory.ts +3 -0
- package/src/http/metrics.ts +16 -0
- package/src/http/oauth-locks.ts +8 -0
- package/src/http/page-proxy.ts +16 -0
- package/src/http/pages.ts +9 -0
- package/src/http/poll.ts +1 -0
- package/src/http/pricing.ts +2 -0
- package/src/http/prompt-templates.ts +34 -0
- package/src/http/schedules.ts +10 -0
- package/src/http/script-runs.ts +24 -0
- package/src/http/scripts.ts +1 -0
- package/src/http/session-data.ts +2 -0
- package/src/http/status.ts +1 -0
- package/src/http/tasks.ts +17 -0
- package/src/http/trackers/jira.ts +2 -0
- package/src/http/trackers/linear.ts +4 -0
- package/src/http/users.ts +18 -0
- package/src/http/webhooks.ts +12 -0
- package/src/http/workflow-events.ts +26 -6
- package/src/http/workflows.ts +40 -0
- package/src/http/x.ts +4 -0
- package/src/linear/app.ts +3 -2
- package/src/linear/client.ts +5 -1
- package/src/linear/host.ts +40 -0
- package/src/linear/oauth.ts +3 -2
- package/src/linear/sync.ts +4 -3
- package/src/otel-impl.ts +8 -5
- package/src/providers/amp-adapter.ts +1 -1
- package/src/rbac/legacy-policy.ts +2 -0
- package/src/rbac/permissions.ts +5 -0
- package/src/scripts-runtime/quickjs-compat.ts +44 -10
- package/src/slack/render-v2.ts +50 -23
- package/src/slack/reviewed-deliverables.ts +251 -0
- package/src/tests/check-pr-body.test.ts +408 -93
- package/src/tests/compose-dev-object-store.test.ts +13 -0
- package/src/tests/compose-example-object-store.test.ts +67 -0
- package/src/tests/db-query.test.ts +8 -4
- package/src/tests/e2b-dispatch.test.ts +7 -1
- package/src/tests/otel-event-loop-and-logs.test.ts +1 -1
- package/src/tests/quickjs-compat.test.ts +40 -4
- package/src/tests/rbac-route-verbs-e2e.test.ts +142 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/slack-render-v2.test.ts +52 -8
- package/src/tests/workflow-definition-pinning.test.ts +2 -0
- package/src/tests/workflow-hitl-routing.test.ts +67 -5
- package/src/tests/workflow-replay.test.ts +13 -1
- package/src/tests/x402-client.test.ts +82 -0
- package/src/tools/memory-rate.ts +2 -2
- package/src/tools/prompt-templates/delete.ts +22 -1
- package/src/tools/prompt-templates/set.ts +15 -1
- package/src/utils/constants.ts +5 -4
- package/src/utils/task-citations.ts +11 -0
- package/src/workflows/engine.ts +5 -0
- package/src/workflows/executors/sub-workflow.ts +5 -7
- package/src/workflows/executors/swarm-script.ts +4 -5
- package/src/workflows/resume.ts +21 -4
- package/src/workflows/run-principal.ts +51 -0
- package/src/x402/client.ts +38 -17
- package/templates/skills/code-quality/content.md +1 -1
- package/templates/skills/pages/content.md +36 -12
- package/templates/skills/swarm-docs/content.md +46 -41
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/dist/cli-547fsc36.js +0 -15
- package/dist/cli-dr6x9qdk.js +0 -15
- package/dist/cli-h5cveb69.js +0 -15
- package/dist/cli-jngvszex.js +0 -1514
- package/dist/cli-p0g0erm9.js +0 -15
- package/dist/cli-ph1jce1b.js +0 -16
- package/dist/cli-vxxdf2ma.js +0 -15
- package/dist/cli-x80zagf5.js +0 -15
- package/dist/core-8fw1gwg7.js +0 -41
- package/dist/getMachineId-bsd-2rd3pnz7.js +0 -36
- package/dist/getMachineId-bsd-3p48mkt1.js +0 -36
- package/dist/getMachineId-bsd-bk6tmeen.js +0 -36
- package/dist/getMachineId-bsd-pssqgwmm.js +0 -37
- package/dist/getMachineId-bsd-v218x3xd.js +0 -36
- package/dist/getMachineId-bsd-wbxcazef.js +0 -36
- package/dist/getMachineId-bsd-x0942pbz.js +0 -36
- package/dist/getMachineId-darwin-5qsy4qcg.js +0 -36
- package/dist/getMachineId-darwin-6v7zsshx.js +0 -37
- package/dist/getMachineId-darwin-fcc3fjag.js +0 -36
- package/dist/getMachineId-darwin-pg84hftj.js +0 -36
- package/dist/getMachineId-darwin-tyyevt26.js +0 -36
- package/dist/getMachineId-darwin-wagmbf0d.js +0 -36
- package/dist/getMachineId-darwin-zvkmwr3y.js +0 -36
- package/dist/getMachineId-linux-2ncg1epd.js +0 -29
- package/dist/getMachineId-linux-2tmt2ptc.js +0 -29
- package/dist/getMachineId-linux-empwyp2y.js +0 -29
- package/dist/getMachineId-linux-fanqd45b.js +0 -29
- package/dist/getMachineId-linux-h6fyga0x.js +0 -29
- package/dist/getMachineId-linux-tbhgz1k9.js +0 -29
- package/dist/getMachineId-linux-zrbyw7dt.js +0 -29
- package/dist/getMachineId-unsupported-29g9dkgv.js +0 -19
- package/dist/getMachineId-unsupported-8xfq8djv.js +0 -19
- package/dist/getMachineId-unsupported-8y9cag1p.js +0 -19
- package/dist/getMachineId-unsupported-a6sjrm02.js +0 -19
- package/dist/getMachineId-unsupported-bp3w7ds0.js +0 -19
- package/dist/getMachineId-unsupported-sj6fk8sw.js +0 -19
- package/dist/getMachineId-unsupported-v0p5gdxp.js +0 -19
- package/dist/getMachineId-win-hc996p0x.js +0 -38
- package/dist/getMachineId-win-msq9ad87.js +0 -38
- package/dist/getMachineId-win-tajyqwd6.js +0 -38
- package/dist/getMachineId-win-tzc163da.js +0 -38
- package/dist/getMachineId-win-xdaa0mgq.js +0 -38
- package/dist/getMachineId-win-xk6p98m5.js +0 -38
- package/dist/getMachineId-win-xtk658fm.js +0 -38
- package/dist/handlers-c1jp5b6h.js +0 -39
- package/dist/index-7dwh9kxh.js +0 -41
- package/dist/index-wp9tarbt.js +0 -43
- package/dist/index-z6np2405.js +0 -38
- package/dist/lead-50cgn8s1.js +0 -81
- package/dist/otel-impl-kepzgm4n.js +0 -55386
- package/dist/thread-buffer-8860v1ta.js +0 -40
- package/dist/worker-hkm8ftqp.js +0 -81
- /package/dist/{node-gbx1t3pa.js → node-q4628t0b.js} +0 -0
|
@@ -11050,7 +11050,7 @@ var require_follow_redirects = __commonJS(function(exports, module) {
|
|
|
11050
11050
|
|
|
11051
11051
|
// node_modules/axios/dist/node/axios.cjs
|
|
11052
11052
|
var require_axios = __commonJS(function(exports, module) {
|
|
11053
|
-
/*! Axios v1.
|
|
11053
|
+
/*! Axios v1.20.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
11054
11054
|
var FormData$1 = require_form_data();
|
|
11055
11055
|
var crypto = __require("crypto");
|
|
11056
11056
|
var url = __require("url");
|
|
@@ -11082,22 +11082,82 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11082
11082
|
var hasOwnProperty = (({
|
|
11083
11083
|
hasOwnProperty
|
|
11084
11084
|
}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
11085
|
+
var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
11086
|
+
var isPrototypeBoundary = (obj, prototype, source) => obj === Object.prototype || !source && prototype === null;
|
|
11087
|
+
var isSafeAndFullyMutable = (obj) => {
|
|
11088
|
+
if (!Object.isExtensible(obj)) {
|
|
11089
|
+
return false;
|
|
11090
|
+
}
|
|
11091
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
11092
|
+
if (Object.getOwnPropertySymbols) {
|
|
11093
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
11094
|
+
}
|
|
11095
|
+
return props.every((prop) => {
|
|
11096
|
+
if (isUnsafeObjectKey(prop)) {
|
|
11097
|
+
return false;
|
|
11098
|
+
}
|
|
11099
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
11100
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
11101
|
+
});
|
|
11102
|
+
};
|
|
11085
11103
|
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
11086
11104
|
let obj = thing;
|
|
11087
11105
|
const seen = [];
|
|
11088
|
-
while (obj != null
|
|
11106
|
+
while (obj != null) {
|
|
11089
11107
|
if (seen.indexOf(obj) !== -1) {
|
|
11090
11108
|
return false;
|
|
11091
11109
|
}
|
|
11092
11110
|
seen.push(obj);
|
|
11111
|
+
const prototype = getPrototypeOf(obj);
|
|
11112
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
11113
|
+
return false;
|
|
11114
|
+
}
|
|
11093
11115
|
if (hasOwnProperty(obj, prop)) {
|
|
11094
11116
|
return true;
|
|
11095
11117
|
}
|
|
11096
|
-
obj =
|
|
11118
|
+
obj = prototype;
|
|
11097
11119
|
}
|
|
11098
11120
|
return false;
|
|
11099
11121
|
};
|
|
11100
11122
|
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
11123
|
+
var toSafeFlatObject = (thing) => {
|
|
11124
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
|
|
11125
|
+
return thing;
|
|
11126
|
+
}
|
|
11127
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
11128
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
11129
|
+
return thing;
|
|
11130
|
+
}
|
|
11131
|
+
const result = Object.create(null);
|
|
11132
|
+
const merged = Object.create(null);
|
|
11133
|
+
const seen = [];
|
|
11134
|
+
let current = thing;
|
|
11135
|
+
while (current != null) {
|
|
11136
|
+
if (seen.indexOf(current) !== -1) {
|
|
11137
|
+
break;
|
|
11138
|
+
}
|
|
11139
|
+
seen.push(current);
|
|
11140
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
11141
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
11142
|
+
break;
|
|
11143
|
+
}
|
|
11144
|
+
const props = Object.getOwnPropertyNames(current);
|
|
11145
|
+
if (Object.getOwnPropertySymbols) {
|
|
11146
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
11147
|
+
}
|
|
11148
|
+
for (const prop of props) {
|
|
11149
|
+
if (isUnsafeObjectKey(prop)) {
|
|
11150
|
+
continue;
|
|
11151
|
+
}
|
|
11152
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
11153
|
+
result[prop] = thing[prop];
|
|
11154
|
+
merged[prop] = true;
|
|
11155
|
+
}
|
|
11156
|
+
}
|
|
11157
|
+
current = prototype;
|
|
11158
|
+
}
|
|
11159
|
+
return result;
|
|
11160
|
+
};
|
|
11101
11161
|
var kindOf = ((cache) => (thing) => {
|
|
11102
11162
|
const str = toString.call(thing);
|
|
11103
11163
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -11154,6 +11214,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11154
11214
|
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
11155
11215
|
var isBlob = kindOfTest("Blob");
|
|
11156
11216
|
var isFileList = kindOfTest("FileList");
|
|
11217
|
+
var isSet = kindOfTest("Set");
|
|
11157
11218
|
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
11158
11219
|
function getGlobal() {
|
|
11159
11220
|
if (typeof globalThis !== "undefined")
|
|
@@ -11461,11 +11522,20 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11461
11522
|
}
|
|
11462
11523
|
if (!("toJSON" in source)) {
|
|
11463
11524
|
visited.add(source);
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11525
|
+
let target;
|
|
11526
|
+
if (isSet(source)) {
|
|
11527
|
+
target = [];
|
|
11528
|
+
for (const value of source) {
|
|
11529
|
+
const reducedValue = visit(value);
|
|
11530
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
11531
|
+
}
|
|
11532
|
+
} else {
|
|
11533
|
+
target = isArray(source) ? [] : {};
|
|
11534
|
+
forEach(source, (value, key) => {
|
|
11535
|
+
const reducedValue = visit(value);
|
|
11536
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
11537
|
+
});
|
|
11538
|
+
}
|
|
11469
11539
|
visited.delete(source);
|
|
11470
11540
|
return target;
|
|
11471
11541
|
}
|
|
@@ -11544,6 +11614,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11544
11614
|
hasOwnProp: hasOwnProperty,
|
|
11545
11615
|
hasOwnInPrototypeChain,
|
|
11546
11616
|
getSafeProp,
|
|
11617
|
+
toSafeFlatObject,
|
|
11547
11618
|
reduceDescriptors,
|
|
11548
11619
|
freezeMethods,
|
|
11549
11620
|
toObjectSet,
|
|
@@ -11573,17 +11644,18 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11573
11644
|
i = line.indexOf(":");
|
|
11574
11645
|
key = line.substring(0, i).trim().toLowerCase();
|
|
11575
11646
|
val = line.substring(i + 1).trim();
|
|
11576
|
-
|
|
11647
|
+
const hasKey = utils$1.hasOwnProp(parsed, key);
|
|
11648
|
+
if (!key || hasKey && utils$1.hasOwnProp(ignoreDuplicateOf, key)) {
|
|
11577
11649
|
return;
|
|
11578
11650
|
}
|
|
11579
11651
|
if (key === "set-cookie") {
|
|
11580
|
-
if (
|
|
11652
|
+
if (hasKey) {
|
|
11581
11653
|
parsed[key].push(val);
|
|
11582
11654
|
} else {
|
|
11583
11655
|
parsed[key] = [val];
|
|
11584
11656
|
}
|
|
11585
11657
|
} else {
|
|
11586
|
-
parsed[key] =
|
|
11658
|
+
parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
11587
11659
|
}
|
|
11588
11660
|
});
|
|
11589
11661
|
return parsed;
|
|
@@ -11624,7 +11696,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11624
11696
|
});
|
|
11625
11697
|
return byteStringHeaders;
|
|
11626
11698
|
}
|
|
11627
|
-
var $internals = Symbol("internals");
|
|
11699
|
+
var $internals$1 = Symbol("internals");
|
|
11628
11700
|
function normalizeHeader(header) {
|
|
11629
11701
|
return header && String(header).trim().toLowerCase();
|
|
11630
11702
|
}
|
|
@@ -11643,6 +11715,90 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11643
11715
|
}
|
|
11644
11716
|
return tokens;
|
|
11645
11717
|
}
|
|
11718
|
+
var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
11719
|
+
function trimOWS(value) {
|
|
11720
|
+
let start = 0;
|
|
11721
|
+
let end = value.length;
|
|
11722
|
+
while (start < end) {
|
|
11723
|
+
const code = value.charCodeAt(start);
|
|
11724
|
+
if (code !== 9 && code !== 32) {
|
|
11725
|
+
break;
|
|
11726
|
+
}
|
|
11727
|
+
start += 1;
|
|
11728
|
+
}
|
|
11729
|
+
while (end > start) {
|
|
11730
|
+
const code = value.charCodeAt(end - 1);
|
|
11731
|
+
if (code !== 9 && code !== 32) {
|
|
11732
|
+
break;
|
|
11733
|
+
}
|
|
11734
|
+
end -= 1;
|
|
11735
|
+
}
|
|
11736
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
11737
|
+
}
|
|
11738
|
+
function decodeQuotedString(value) {
|
|
11739
|
+
const last = value.length - 1;
|
|
11740
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
|
|
11741
|
+
return value;
|
|
11742
|
+
}
|
|
11743
|
+
let decoded = "";
|
|
11744
|
+
for (let i = 1;i < last; i++) {
|
|
11745
|
+
const code = value.charCodeAt(i);
|
|
11746
|
+
if (code === 34) {
|
|
11747
|
+
return value;
|
|
11748
|
+
}
|
|
11749
|
+
if (code === 92) {
|
|
11750
|
+
i += 1;
|
|
11751
|
+
if (i >= last) {
|
|
11752
|
+
return value;
|
|
11753
|
+
}
|
|
11754
|
+
}
|
|
11755
|
+
decoded += value[i];
|
|
11756
|
+
}
|
|
11757
|
+
return decoded;
|
|
11758
|
+
}
|
|
11759
|
+
function parseParameters(value) {
|
|
11760
|
+
const parameters = Object.create(null);
|
|
11761
|
+
const str = String(value);
|
|
11762
|
+
let start = 0;
|
|
11763
|
+
let quoted = false;
|
|
11764
|
+
let escaped = false;
|
|
11765
|
+
function parseParameter(end) {
|
|
11766
|
+
const part = trimOWS(str.slice(start, end));
|
|
11767
|
+
const equals = part.indexOf("=");
|
|
11768
|
+
if (equals < 1) {
|
|
11769
|
+
return;
|
|
11770
|
+
}
|
|
11771
|
+
const name = trimOWS(part.slice(0, equals));
|
|
11772
|
+
if (!parameterNameRE.test(name)) {
|
|
11773
|
+
return;
|
|
11774
|
+
}
|
|
11775
|
+
const normalizedName = name.toLowerCase();
|
|
11776
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
|
|
11777
|
+
return;
|
|
11778
|
+
}
|
|
11779
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
11780
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
11781
|
+
}
|
|
11782
|
+
for (let i = 0;i < str.length; i++) {
|
|
11783
|
+
const code = str.charCodeAt(i);
|
|
11784
|
+
if (quoted) {
|
|
11785
|
+
if (escaped) {
|
|
11786
|
+
escaped = false;
|
|
11787
|
+
} else if (code === 92) {
|
|
11788
|
+
escaped = true;
|
|
11789
|
+
} else if (code === 34) {
|
|
11790
|
+
quoted = false;
|
|
11791
|
+
}
|
|
11792
|
+
} else if (code === 34) {
|
|
11793
|
+
quoted = true;
|
|
11794
|
+
} else if (code === 44 || code === 59) {
|
|
11795
|
+
parseParameter(i);
|
|
11796
|
+
start = i + 1;
|
|
11797
|
+
}
|
|
11798
|
+
}
|
|
11799
|
+
parseParameter(str.length);
|
|
11800
|
+
return parameters;
|
|
11801
|
+
}
|
|
11646
11802
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
11647
11803
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
11648
11804
|
if (utils$1.isFunction(filter)) {
|
|
@@ -11819,7 +11975,8 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11819
11975
|
`);
|
|
11820
11976
|
}
|
|
11821
11977
|
getSetCookie() {
|
|
11822
|
-
|
|
11978
|
+
const value = this.get("set-cookie");
|
|
11979
|
+
return utils$1.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
11823
11980
|
}
|
|
11824
11981
|
get [Symbol.toStringTag]() {
|
|
11825
11982
|
return "AxiosHeaders";
|
|
@@ -11827,13 +11984,16 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11827
11984
|
static from(thing) {
|
|
11828
11985
|
return thing instanceof this ? thing : new this(thing);
|
|
11829
11986
|
}
|
|
11987
|
+
static parseParameters(value) {
|
|
11988
|
+
return parseParameters(value);
|
|
11989
|
+
}
|
|
11830
11990
|
static concat(first, ...targets) {
|
|
11831
11991
|
const computed = new this(first);
|
|
11832
11992
|
targets.forEach((target) => computed.set(target));
|
|
11833
11993
|
return computed;
|
|
11834
11994
|
}
|
|
11835
11995
|
static accessor(header) {
|
|
11836
|
-
const internals = this[$internals] = this[$internals] = {
|
|
11996
|
+
const internals = this[$internals$1] = this[$internals$1] = {
|
|
11837
11997
|
accessors: {}
|
|
11838
11998
|
};
|
|
11839
11999
|
const accessors = internals.accessors;
|
|
@@ -11917,10 +12077,31 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11917
12077
|
};
|
|
11918
12078
|
return visit(config);
|
|
11919
12079
|
}
|
|
12080
|
+
function stringifySafely$1(value) {
|
|
12081
|
+
try {
|
|
12082
|
+
return String(value);
|
|
12083
|
+
} catch (err) {
|
|
12084
|
+
return "";
|
|
12085
|
+
}
|
|
12086
|
+
}
|
|
12087
|
+
function aggregateErrorMessage(error) {
|
|
12088
|
+
const message = error.errors.map((entry) => {
|
|
12089
|
+
try {
|
|
12090
|
+
return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
|
|
12091
|
+
} catch (err) {
|
|
12092
|
+
return "";
|
|
12093
|
+
}
|
|
12094
|
+
}).filter(Boolean).join("; ");
|
|
12095
|
+
return message || error.name || "AggregateError";
|
|
12096
|
+
}
|
|
11920
12097
|
|
|
11921
12098
|
class AxiosError extends Error {
|
|
11922
12099
|
static from(error, code, config, request, response, customProps) {
|
|
11923
|
-
|
|
12100
|
+
let message = error.message;
|
|
12101
|
+
if (!message && utils$1.isArray(error.errors) && error.errors.length) {
|
|
12102
|
+
message = aggregateErrorMessage(error);
|
|
12103
|
+
}
|
|
12104
|
+
const axiosError = new AxiosError(message, code || error.code, config, request, response);
|
|
11924
12105
|
Object.defineProperty(axiosError, "cause", {
|
|
11925
12106
|
__proto__: null,
|
|
11926
12107
|
value: error,
|
|
@@ -11987,6 +12168,14 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
11987
12168
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
11988
12169
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
11989
12170
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
12171
|
+
var PlatformBuffer = {
|
|
12172
|
+
isBufferAvailable() {
|
|
12173
|
+
return typeof Buffer !== "undefined";
|
|
12174
|
+
},
|
|
12175
|
+
from(value) {
|
|
12176
|
+
return Buffer.from(value);
|
|
12177
|
+
}
|
|
12178
|
+
};
|
|
11990
12179
|
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
11991
12180
|
function isVisitable(thing) {
|
|
11992
12181
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
@@ -12013,19 +12202,16 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12013
12202
|
throw new TypeError("target must be an object");
|
|
12014
12203
|
}
|
|
12015
12204
|
formData = formData || new (FormData$1 || FormData);
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
const
|
|
12024
|
-
const
|
|
12025
|
-
const
|
|
12026
|
-
const indexes = options.indexes;
|
|
12027
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
12028
|
-
const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
|
|
12205
|
+
const option = (name, fallback) => {
|
|
12206
|
+
const value = utils$1.getSafeProp(options, name);
|
|
12207
|
+
return utils$1.isUndefined(value) ? fallback : value;
|
|
12208
|
+
};
|
|
12209
|
+
const metaTokens = option("metaTokens", true);
|
|
12210
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
12211
|
+
const dots = option("dots", false);
|
|
12212
|
+
const indexes = option("indexes", false);
|
|
12213
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
12214
|
+
const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
12029
12215
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
12030
12216
|
const stack = [];
|
|
12031
12217
|
if (!utils$1.isFunction(visitor)) {
|
|
@@ -12047,8 +12233,8 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12047
12233
|
if (useBlob && typeof _Blob === "function") {
|
|
12048
12234
|
return new _Blob([value]);
|
|
12049
12235
|
}
|
|
12050
|
-
if (
|
|
12051
|
-
return
|
|
12236
|
+
if (PlatformBuffer && PlatformBuffer.isBufferAvailable()) {
|
|
12237
|
+
return PlatformBuffer.from(value);
|
|
12052
12238
|
}
|
|
12053
12239
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.", AxiosError.ERR_NOT_SUPPORT);
|
|
12054
12240
|
}
|
|
@@ -12182,36 +12368,109 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12182
12368
|
}
|
|
12183
12369
|
return url;
|
|
12184
12370
|
}
|
|
12371
|
+
var $internals = Symbol("internals");
|
|
12372
|
+
function countHandlers(handlers) {
|
|
12373
|
+
return handlers ? handlers.length : 0;
|
|
12374
|
+
}
|
|
12375
|
+
function trimHandlers(handlers) {
|
|
12376
|
+
if (!handlers) {
|
|
12377
|
+
return;
|
|
12378
|
+
}
|
|
12379
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
12380
|
+
handlers.pop();
|
|
12381
|
+
}
|
|
12382
|
+
}
|
|
12383
|
+
function syncHandlerEntries(manager, internals) {
|
|
12384
|
+
const handlers = manager.handlers;
|
|
12385
|
+
const length = countHandlers(handlers);
|
|
12386
|
+
if (handlers !== internals.handlersRef) {
|
|
12387
|
+
internals.handlersRef = handlers;
|
|
12388
|
+
internals.handlerEntries.clear();
|
|
12389
|
+
} else if (length !== internals.handlersLength) {
|
|
12390
|
+
if (!length) {
|
|
12391
|
+
internals.handlerEntries.clear();
|
|
12392
|
+
} else {
|
|
12393
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
12394
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
12395
|
+
internals.handlerEntries.delete(id);
|
|
12396
|
+
}
|
|
12397
|
+
});
|
|
12398
|
+
}
|
|
12399
|
+
}
|
|
12400
|
+
internals.handlersLength = length;
|
|
12401
|
+
}
|
|
12185
12402
|
|
|
12186
12403
|
class InterceptorManager {
|
|
12187
12404
|
constructor() {
|
|
12188
12405
|
this.handlers = [];
|
|
12406
|
+
this[$internals] = {
|
|
12407
|
+
handlersRef: this.handlers,
|
|
12408
|
+
handlersLength: this.handlers.length,
|
|
12409
|
+
handlerEntries: new Map,
|
|
12410
|
+
iterationDepth: 0,
|
|
12411
|
+
nextId: 0
|
|
12412
|
+
};
|
|
12189
12413
|
}
|
|
12190
12414
|
use(fulfilled, rejected, options) {
|
|
12191
|
-
|
|
12415
|
+
const handler = {
|
|
12192
12416
|
fulfilled,
|
|
12193
12417
|
rejected,
|
|
12194
12418
|
synchronous: options ? options.synchronous : false,
|
|
12195
12419
|
runWhen: options ? options.runWhen : null
|
|
12420
|
+
};
|
|
12421
|
+
const internals = this[$internals];
|
|
12422
|
+
if (this.handlers == null) {
|
|
12423
|
+
this.handlers = [];
|
|
12424
|
+
}
|
|
12425
|
+
syncHandlerEntries(this, internals);
|
|
12426
|
+
const id = internals.nextId++;
|
|
12427
|
+
this.handlers.push(handler);
|
|
12428
|
+
internals.handlerEntries.set(id, {
|
|
12429
|
+
handler,
|
|
12430
|
+
index: this.handlers.length - 1
|
|
12196
12431
|
});
|
|
12197
|
-
|
|
12432
|
+
internals.handlersLength = this.handlers.length;
|
|
12433
|
+
return id;
|
|
12198
12434
|
}
|
|
12199
12435
|
eject(id) {
|
|
12200
|
-
|
|
12201
|
-
|
|
12436
|
+
const internals = this[$internals];
|
|
12437
|
+
syncHandlerEntries(this, internals);
|
|
12438
|
+
const entry = internals.handlerEntries.get(id);
|
|
12439
|
+
if (entry) {
|
|
12440
|
+
internals.handlerEntries.delete(id);
|
|
12441
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
12442
|
+
return;
|
|
12443
|
+
}
|
|
12444
|
+
this.handlers[entry.index] = null;
|
|
12445
|
+
if (!internals.iterationDepth) {
|
|
12446
|
+
trimHandlers(this.handlers);
|
|
12447
|
+
internals.handlersLength = this.handlers.length;
|
|
12448
|
+
}
|
|
12202
12449
|
}
|
|
12203
12450
|
}
|
|
12204
12451
|
clear() {
|
|
12205
12452
|
if (this.handlers) {
|
|
12206
12453
|
this.handlers = [];
|
|
12454
|
+
syncHandlerEntries(this, this[$internals]);
|
|
12207
12455
|
}
|
|
12208
12456
|
}
|
|
12209
12457
|
forEach(fn) {
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12458
|
+
const internals = this[$internals];
|
|
12459
|
+
syncHandlerEntries(this, internals);
|
|
12460
|
+
internals.iterationDepth++;
|
|
12461
|
+
try {
|
|
12462
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
12463
|
+
if (h !== null) {
|
|
12464
|
+
fn(h);
|
|
12465
|
+
}
|
|
12466
|
+
});
|
|
12467
|
+
} finally {
|
|
12468
|
+
if (!--internals.iterationDepth) {
|
|
12469
|
+
syncHandlerEntries(this, internals);
|
|
12470
|
+
trimHandlers(this.handlers);
|
|
12471
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
12213
12472
|
}
|
|
12214
|
-
}
|
|
12473
|
+
}
|
|
12215
12474
|
}
|
|
12216
12475
|
}
|
|
12217
12476
|
var transitionalDefaults = {
|
|
@@ -12292,7 +12551,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12292
12551
|
}
|
|
12293
12552
|
function parsePropPath(name) {
|
|
12294
12553
|
const path = [];
|
|
12295
|
-
const pattern =
|
|
12554
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
12296
12555
|
let match;
|
|
12297
12556
|
while ((match = pattern.exec(name)) !== null) {
|
|
12298
12557
|
throwIfDepthExceeded(path.length);
|
|
@@ -12347,6 +12606,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12347
12606
|
}
|
|
12348
12607
|
return null;
|
|
12349
12608
|
}
|
|
12609
|
+
var methodList = Object.freeze(["get", "delete", "head", "options", "post", "put", "patch", "purge", "link", "unlink", "query"]);
|
|
12350
12610
|
var own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined;
|
|
12351
12611
|
function stringifySafely(rawValue, parser, encoder) {
|
|
12352
12612
|
if (utils$1.isString(rawValue)) {
|
|
@@ -12448,7 +12708,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12448
12708
|
}
|
|
12449
12709
|
}
|
|
12450
12710
|
};
|
|
12451
|
-
utils$1.forEach(
|
|
12711
|
+
utils$1.forEach(methodList, (method) => {
|
|
12452
12712
|
defaults.headers[method] = {};
|
|
12453
12713
|
});
|
|
12454
12714
|
function transformData(fns, response) {
|
|
@@ -12488,23 +12748,51 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12488
12748
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
12489
12749
|
}
|
|
12490
12750
|
function combineURLs(baseURL, relativeURL) {
|
|
12491
|
-
|
|
12751
|
+
if (!relativeURL) {
|
|
12752
|
+
return baseURL;
|
|
12753
|
+
}
|
|
12754
|
+
let end = baseURL.length;
|
|
12755
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
12756
|
+
end--;
|
|
12757
|
+
}
|
|
12758
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
12759
|
+
}
|
|
12760
|
+
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
12761
|
+
function normalizeURLForProtocolCheck(url) {
|
|
12762
|
+
if (typeof url !== "string") {
|
|
12763
|
+
return url;
|
|
12764
|
+
}
|
|
12765
|
+
let start = 0;
|
|
12766
|
+
while (start < url.length && url.charCodeAt(start) <= 32) {
|
|
12767
|
+
start++;
|
|
12768
|
+
}
|
|
12769
|
+
return url.slice(start).replace(urlParserControlCharacters, "");
|
|
12492
12770
|
}
|
|
12493
12771
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
while (i < url.length && url.charCodeAt(i) <= 32) {
|
|
12498
|
-
i++;
|
|
12772
|
+
function redactFragment(fragment) {
|
|
12773
|
+
if (!fragment) {
|
|
12774
|
+
return fragment;
|
|
12499
12775
|
}
|
|
12500
|
-
return
|
|
12776
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
12777
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
12778
|
+
});
|
|
12501
12779
|
}
|
|
12502
|
-
function
|
|
12503
|
-
|
|
12780
|
+
function redactSensitiveURLParts(url) {
|
|
12781
|
+
const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
12782
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
12783
|
+
const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
12784
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
|
|
12785
|
+
if (fragmentIndex === -1) {
|
|
12786
|
+
return redactedURLWithoutFragment;
|
|
12787
|
+
}
|
|
12788
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
12504
12789
|
}
|
|
12505
12790
|
function assertValidHttpProtocolURL(url, config) {
|
|
12506
|
-
if (typeof url === "string"
|
|
12507
|
-
|
|
12791
|
+
if (typeof url === "string") {
|
|
12792
|
+
const normalizedURL = normalizeURLForProtocolCheck(url);
|
|
12793
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
12794
|
+
throw new AxiosError(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError.ERR_INVALID_URL, config);
|
|
12795
|
+
}
|
|
12508
12796
|
}
|
|
12509
12797
|
}
|
|
12510
12798
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
@@ -12581,12 +12869,12 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12581
12869
|
function getEnv(key) {
|
|
12582
12870
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
12583
12871
|
}
|
|
12584
|
-
var VERSION = "1.
|
|
12872
|
+
var VERSION = "1.20.0";
|
|
12585
12873
|
function parseProtocol(url) {
|
|
12586
12874
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
12587
12875
|
return match && match[1] || "";
|
|
12588
12876
|
}
|
|
12589
|
-
var DATA_URL_PATTERN = /^([
|
|
12877
|
+
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
12590
12878
|
function fromDataURI(uri, asBlob, options) {
|
|
12591
12879
|
const _Blob = options && options.Blob || platform.classes.Blob;
|
|
12592
12880
|
const protocol = parseProtocol(uri);
|
|
@@ -12622,6 +12910,18 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12622
12910
|
}
|
|
12623
12911
|
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
12624
12912
|
}
|
|
12913
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
12914
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
12915
|
+
if (policy !== "content-only") {
|
|
12916
|
+
headers.set(formHeaders);
|
|
12917
|
+
return;
|
|
12918
|
+
}
|
|
12919
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
12920
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
12921
|
+
headers.set(key, val);
|
|
12922
|
+
}
|
|
12923
|
+
});
|
|
12924
|
+
}
|
|
12625
12925
|
var kInternals = Symbol("internals");
|
|
12626
12926
|
|
|
12627
12927
|
class AxiosTransformStream extends stream.Transform {
|
|
@@ -12856,7 +13156,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12856
13156
|
this.sessions = Object.create(null);
|
|
12857
13157
|
}
|
|
12858
13158
|
getSession(authority, options) {
|
|
12859
|
-
options = Object.assign({
|
|
13159
|
+
options = Object.assign(Object.create(null), {
|
|
12860
13160
|
sessionTimeout: 1000
|
|
12861
13161
|
}, options);
|
|
12862
13162
|
let authoritySessions = this.sessions[authority];
|
|
@@ -12921,6 +13221,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12921
13221
|
};
|
|
12922
13222
|
}
|
|
12923
13223
|
session.once("close", removeSession);
|
|
13224
|
+
session.once("error", removeSession);
|
|
12924
13225
|
let entry = [session, options];
|
|
12925
13226
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
12926
13227
|
return session;
|
|
@@ -12939,6 +13240,13 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12939
13240
|
} : fn;
|
|
12940
13241
|
};
|
|
12941
13242
|
var LOOPBACK_HOSTNAMES = new Set(["localhost", "0.0.0.0"]);
|
|
13243
|
+
var trimTrailingDots = (value) => {
|
|
13244
|
+
let end = value.length;
|
|
13245
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
13246
|
+
end--;
|
|
13247
|
+
}
|
|
13248
|
+
return end === value.length ? value : value.slice(0, end);
|
|
13249
|
+
};
|
|
12942
13250
|
var isIPv4Loopback = (host) => {
|
|
12943
13251
|
const parts = host.split(".");
|
|
12944
13252
|
if (parts.length !== 4)
|
|
@@ -12947,6 +13255,67 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
12947
13255
|
return false;
|
|
12948
13256
|
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
12949
13257
|
};
|
|
13258
|
+
var parseIPv4Octet = (text) => {
|
|
13259
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
13260
|
+
const n = parseInt(text.slice(2), 16);
|
|
13261
|
+
return Number.isFinite(n) ? n : null;
|
|
13262
|
+
}
|
|
13263
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
13264
|
+
const n = parseInt(text, 8);
|
|
13265
|
+
return Number.isFinite(n) ? n : null;
|
|
13266
|
+
}
|
|
13267
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
13268
|
+
return null;
|
|
13269
|
+
}
|
|
13270
|
+
if (/^[0-9]+$/.test(text)) {
|
|
13271
|
+
const n = parseInt(text, 10);
|
|
13272
|
+
return Number.isFinite(n) ? n : null;
|
|
13273
|
+
}
|
|
13274
|
+
return null;
|
|
13275
|
+
};
|
|
13276
|
+
var normalizeIPAddress = (host) => {
|
|
13277
|
+
if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
|
|
13278
|
+
return host;
|
|
13279
|
+
}
|
|
13280
|
+
let h = host;
|
|
13281
|
+
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
13282
|
+
h = h.slice(1, -1);
|
|
13283
|
+
}
|
|
13284
|
+
h = trimTrailingDots(h);
|
|
13285
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h))
|
|
13286
|
+
return host;
|
|
13287
|
+
const parts = h.split(".");
|
|
13288
|
+
if (parts.some((p) => p === ""))
|
|
13289
|
+
return host;
|
|
13290
|
+
if (parts.length === 4) {
|
|
13291
|
+
const octets = parts.map(parseIPv4Octet);
|
|
13292
|
+
if (octets.some((n) => n === null || n < 0 || n > 255))
|
|
13293
|
+
return host;
|
|
13294
|
+
return octets.join(".");
|
|
13295
|
+
}
|
|
13296
|
+
if (parts.length > 4) {
|
|
13297
|
+
return host;
|
|
13298
|
+
}
|
|
13299
|
+
if (parts.length === 1)
|
|
13300
|
+
return host;
|
|
13301
|
+
const literalOctets = parts.slice(0, -1);
|
|
13302
|
+
const tail = parts[parts.length - 1];
|
|
13303
|
+
const tailSlots = 4 - literalOctets.length;
|
|
13304
|
+
const tailValue = parseIPv4Octet(tail);
|
|
13305
|
+
if (tailValue === null)
|
|
13306
|
+
return host;
|
|
13307
|
+
const maxTail = (1 << 8 * tailSlots) - 1;
|
|
13308
|
+
if (tailValue < 0 || tailValue > maxTail)
|
|
13309
|
+
return host;
|
|
13310
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
13311
|
+
for (let i = tailSlots - 1, v = tailValue;i >= 0; i--, v >>= 8) {
|
|
13312
|
+
tailOctets[i] = v & 255;
|
|
13313
|
+
}
|
|
13314
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
13315
|
+
if (literal.some((n) => n === null || n < 0 || n > 255))
|
|
13316
|
+
return host;
|
|
13317
|
+
return [...literal, ...tailOctets].join(".");
|
|
13318
|
+
};
|
|
12950
13319
|
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
12951
13320
|
var isIPv6Unspecified = (host) => {
|
|
12952
13321
|
if (host === "::")
|
|
@@ -13042,6 +13411,40 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13042
13411
|
}
|
|
13043
13412
|
return host;
|
|
13044
13413
|
};
|
|
13414
|
+
var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
13415
|
+
var ipv4ToBytes = (host) => {
|
|
13416
|
+
const parts = host.split(".");
|
|
13417
|
+
return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
|
|
13418
|
+
};
|
|
13419
|
+
var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
13420
|
+
var ipv6ToBytes = (host) => {
|
|
13421
|
+
const halves = host.split("::");
|
|
13422
|
+
if (halves.length > 2) {
|
|
13423
|
+
return null;
|
|
13424
|
+
}
|
|
13425
|
+
const groups = halves[0] ? halves[0].split(":") : [];
|
|
13426
|
+
if (halves.length === 2) {
|
|
13427
|
+
const rear = halves[1] ? halves[1].split(":") : [];
|
|
13428
|
+
const missing = 8 - groups.length - rear.length;
|
|
13429
|
+
if (missing < 1) {
|
|
13430
|
+
return null;
|
|
13431
|
+
}
|
|
13432
|
+
groups.push(...new Array(missing).fill("0"), ...rear);
|
|
13433
|
+
}
|
|
13434
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
13435
|
+
return null;
|
|
13436
|
+
}
|
|
13437
|
+
return groups.flatMap((group) => {
|
|
13438
|
+
const value = Number.parseInt(group, 16);
|
|
13439
|
+
return [value >> 8 & 255, value & 255];
|
|
13440
|
+
});
|
|
13441
|
+
};
|
|
13442
|
+
var ipToBytes = (host) => {
|
|
13443
|
+
if (typeof host !== "string" || !host) {
|
|
13444
|
+
return null;
|
|
13445
|
+
}
|
|
13446
|
+
return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
13447
|
+
};
|
|
13045
13448
|
var normalizeNoProxyHost = (hostname) => {
|
|
13046
13449
|
if (!hostname) {
|
|
13047
13450
|
return hostname;
|
|
@@ -13049,7 +13452,98 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13049
13452
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
13050
13453
|
hostname = hostname.slice(1, -1);
|
|
13051
13454
|
}
|
|
13052
|
-
|
|
13455
|
+
const trimmed = trimTrailingDots(hostname);
|
|
13456
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
13457
|
+
if (ipv4 !== trimmed) {
|
|
13458
|
+
return ipv4;
|
|
13459
|
+
}
|
|
13460
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
13461
|
+
};
|
|
13462
|
+
var normalizeCidrBase = (input) => {
|
|
13463
|
+
let base = input;
|
|
13464
|
+
const startsBracket = base.charAt(0) === "[";
|
|
13465
|
+
const endsBracket = base.charAt(base.length - 1) === "]";
|
|
13466
|
+
const hasBracket = base.includes("[") || base.includes("]");
|
|
13467
|
+
if (startsBracket || endsBracket) {
|
|
13468
|
+
if (!startsBracket || !endsBracket) {
|
|
13469
|
+
return null;
|
|
13470
|
+
}
|
|
13471
|
+
base = base.slice(1, -1);
|
|
13472
|
+
if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
|
|
13473
|
+
return null;
|
|
13474
|
+
}
|
|
13475
|
+
} else if (hasBracket) {
|
|
13476
|
+
return null;
|
|
13477
|
+
}
|
|
13478
|
+
if (!base || base.charAt(base.length - 1) === ".") {
|
|
13479
|
+
return null;
|
|
13480
|
+
}
|
|
13481
|
+
const wasIPv6 = base.indexOf(":") !== -1;
|
|
13482
|
+
if (wasIPv6) {
|
|
13483
|
+
try {
|
|
13484
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
13485
|
+
} catch (_err) {
|
|
13486
|
+
return null;
|
|
13487
|
+
}
|
|
13488
|
+
} else {
|
|
13489
|
+
base = normalizeIPAddress(base);
|
|
13490
|
+
if (!ipv4ToBytes(base)) {
|
|
13491
|
+
return null;
|
|
13492
|
+
}
|
|
13493
|
+
}
|
|
13494
|
+
return {
|
|
13495
|
+
normalized: unmapIPv4MappedIPv6(base),
|
|
13496
|
+
wasIPv6
|
|
13497
|
+
};
|
|
13498
|
+
};
|
|
13499
|
+
var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
13500
|
+
var parseCidrEntry = (entry) => {
|
|
13501
|
+
if (entry.indexOf("/") === -1) {
|
|
13502
|
+
return;
|
|
13503
|
+
}
|
|
13504
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
13505
|
+
if (!match) {
|
|
13506
|
+
return null;
|
|
13507
|
+
}
|
|
13508
|
+
let prefix = Number(match[2]);
|
|
13509
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
13510
|
+
if (!parsedBase) {
|
|
13511
|
+
return null;
|
|
13512
|
+
}
|
|
13513
|
+
const {
|
|
13514
|
+
normalized,
|
|
13515
|
+
wasIPv6
|
|
13516
|
+
} = parsedBase;
|
|
13517
|
+
if (wasIPv6 && normalized.indexOf(":") === -1) {
|
|
13518
|
+
if (prefix < 96) {
|
|
13519
|
+
return null;
|
|
13520
|
+
}
|
|
13521
|
+
prefix -= 96;
|
|
13522
|
+
}
|
|
13523
|
+
const bytes = ipToBytes(normalized);
|
|
13524
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
13525
|
+
return null;
|
|
13526
|
+
}
|
|
13527
|
+
return {
|
|
13528
|
+
bytes,
|
|
13529
|
+
prefix
|
|
13530
|
+
};
|
|
13531
|
+
};
|
|
13532
|
+
var isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
13533
|
+
const fullBytes = prefix >> 3;
|
|
13534
|
+
for (let i = 0;i < fullBytes; i++) {
|
|
13535
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
13536
|
+
return false;
|
|
13537
|
+
}
|
|
13538
|
+
}
|
|
13539
|
+
const remainingBits = prefix & 7;
|
|
13540
|
+
if (remainingBits) {
|
|
13541
|
+
const mask = 255 << 8 - remainingBits & 255;
|
|
13542
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
13543
|
+
return false;
|
|
13544
|
+
}
|
|
13545
|
+
}
|
|
13546
|
+
return true;
|
|
13053
13547
|
};
|
|
13054
13548
|
function shouldBypassProxy(location) {
|
|
13055
13549
|
let parsed;
|
|
@@ -13067,10 +13561,18 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13067
13561
|
}
|
|
13068
13562
|
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS[parsed.protocol.split(":", 1)[0]] || 0;
|
|
13069
13563
|
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
13564
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
13070
13565
|
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
13071
13566
|
if (!entry) {
|
|
13072
13567
|
return false;
|
|
13073
13568
|
}
|
|
13569
|
+
if (entry === "*") {
|
|
13570
|
+
return true;
|
|
13571
|
+
}
|
|
13572
|
+
const cidr = parseCidrEntry(entry);
|
|
13573
|
+
if (cidr !== undefined) {
|
|
13574
|
+
return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
|
|
13575
|
+
}
|
|
13074
13576
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
13075
13577
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
13076
13578
|
if (!entryHost) {
|
|
@@ -13151,18 +13653,19 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13151
13653
|
}
|
|
13152
13654
|
};
|
|
13153
13655
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
13154
|
-
|
|
13656
|
+
const flushWith = (...args) => invoke(args);
|
|
13657
|
+
return [throttled, flush, flushWith];
|
|
13155
13658
|
}
|
|
13156
13659
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
13157
13660
|
let bytesNotified = 0;
|
|
13158
13661
|
const _speedometer = speedometer(50, 250);
|
|
13159
13662
|
return throttle((e) => {
|
|
13160
|
-
if (!e ||
|
|
13663
|
+
if (!e || !utils$1.isNumber(e.loaded)) {
|
|
13161
13664
|
return;
|
|
13162
13665
|
}
|
|
13163
13666
|
const rawLoaded = e.loaded;
|
|
13164
13667
|
const total = e.lengthComputable ? e.total : undefined;
|
|
13165
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
13668
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
13166
13669
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
13167
13670
|
const rate = _speedometer(progressBytes);
|
|
13168
13671
|
bytesNotified = Math.max(bytesNotified, loaded);
|
|
@@ -13188,10 +13691,58 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13188
13691
|
loaded
|
|
13189
13692
|
}), throttled[1]];
|
|
13190
13693
|
};
|
|
13191
|
-
var asyncDecorator = (fn) => (...args) =>
|
|
13694
|
+
var asyncDecorator = (fn, scheduler = utils$1.asap) => (...args) => scheduler(() => fn(...args));
|
|
13192
13695
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
13193
13696
|
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
13194
|
-
|
|
13697
|
+
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
13698
|
+
var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || charCode >= 97 && charCode <= 122 || charCode >= 48 && charCode <= 57 || charCode === 43 || charCode === 47 || charCode === 45 || charCode === 95;
|
|
13699
|
+
var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
13700
|
+
var base64Bytes = (significant) => {
|
|
13701
|
+
const groups = Math.floor(significant / 4);
|
|
13702
|
+
const remainder = significant % 4;
|
|
13703
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
13704
|
+
};
|
|
13705
|
+
var estimateBase64BufferAllocation = (body) => {
|
|
13706
|
+
const len = body.length;
|
|
13707
|
+
let padding = 0;
|
|
13708
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
13709
|
+
padding++;
|
|
13710
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) {
|
|
13711
|
+
padding++;
|
|
13712
|
+
}
|
|
13713
|
+
}
|
|
13714
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
13715
|
+
};
|
|
13716
|
+
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
13717
|
+
const len = body.length;
|
|
13718
|
+
let significant = 0;
|
|
13719
|
+
let padding = 0;
|
|
13720
|
+
let invalid = false;
|
|
13721
|
+
for (let i = 0;i < len; i++) {
|
|
13722
|
+
let code = body.charCodeAt(i);
|
|
13723
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
13724
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
13725
|
+
i += 2;
|
|
13726
|
+
}
|
|
13727
|
+
if (isBase64Whitespace(code)) {
|
|
13728
|
+
continue;
|
|
13729
|
+
}
|
|
13730
|
+
if (code === 61) {
|
|
13731
|
+
padding++;
|
|
13732
|
+
continue;
|
|
13733
|
+
}
|
|
13734
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
13735
|
+
invalid = true;
|
|
13736
|
+
continue;
|
|
13737
|
+
}
|
|
13738
|
+
significant++;
|
|
13739
|
+
}
|
|
13740
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
|
|
13741
|
+
return estimateBase64BufferAllocation(body);
|
|
13742
|
+
}
|
|
13743
|
+
return base64Bytes(significant);
|
|
13744
|
+
};
|
|
13745
|
+
var estimateDataURLBytes = (url, estimateBase64) => {
|
|
13195
13746
|
if (!url || typeof url !== "string")
|
|
13196
13747
|
return 0;
|
|
13197
13748
|
if (!url.startsWith("data:"))
|
|
@@ -13203,41 +13754,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13203
13754
|
const body = url.slice(comma + 1);
|
|
13204
13755
|
const isBase64 = /;base64/i.test(meta);
|
|
13205
13756
|
if (isBase64) {
|
|
13206
|
-
|
|
13207
|
-
const len = body.length;
|
|
13208
|
-
for (let i = 0;i < len; i++) {
|
|
13209
|
-
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
13210
|
-
const a = body.charCodeAt(i + 1);
|
|
13211
|
-
const b = body.charCodeAt(i + 2);
|
|
13212
|
-
const isHex = isHexDigit(a) && isHexDigit(b);
|
|
13213
|
-
if (isHex) {
|
|
13214
|
-
effectiveLen -= 2;
|
|
13215
|
-
i += 2;
|
|
13216
|
-
}
|
|
13217
|
-
}
|
|
13218
|
-
}
|
|
13219
|
-
let pad = 0;
|
|
13220
|
-
let idx = len - 1;
|
|
13221
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
13222
|
-
if (idx >= 0) {
|
|
13223
|
-
if (body.charCodeAt(idx) === 61) {
|
|
13224
|
-
pad++;
|
|
13225
|
-
idx--;
|
|
13226
|
-
} else if (tailIsPct3D(idx)) {
|
|
13227
|
-
pad++;
|
|
13228
|
-
idx -= 3;
|
|
13229
|
-
}
|
|
13230
|
-
}
|
|
13231
|
-
if (pad === 1 && idx >= 0) {
|
|
13232
|
-
if (body.charCodeAt(idx) === 61) {
|
|
13233
|
-
pad++;
|
|
13234
|
-
} else if (tailIsPct3D(idx)) {
|
|
13235
|
-
pad++;
|
|
13236
|
-
}
|
|
13237
|
-
}
|
|
13238
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
13239
|
-
const bytes = groups * 3 - (pad || 0);
|
|
13240
|
-
return bytes > 0 ? bytes : 0;
|
|
13757
|
+
return estimateBase64(body);
|
|
13241
13758
|
}
|
|
13242
13759
|
let bytes = 0;
|
|
13243
13760
|
for (let i = 0, len = body.length;i < len; i++) {
|
|
@@ -13262,6 +13779,13 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13262
13779
|
}
|
|
13263
13780
|
}
|
|
13264
13781
|
return bytes;
|
|
13782
|
+
};
|
|
13783
|
+
function estimateDataURLDecodedBytes(url) {
|
|
13784
|
+
const fragmentIndex = typeof url === "string" ? url.indexOf("#") : -1;
|
|
13785
|
+
return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
|
|
13786
|
+
}
|
|
13787
|
+
function estimateDataURLBufferAllocation(url) {
|
|
13788
|
+
return estimateDataURLBytes(url, estimateBase64BufferAllocation);
|
|
13265
13789
|
}
|
|
13266
13790
|
var zlibOptions = {
|
|
13267
13791
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
@@ -13279,25 +13803,20 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13279
13803
|
var isZstdSupported = utils$1.isFunction(zlib.createZstdDecompress);
|
|
13280
13804
|
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
13281
13805
|
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
13806
|
+
var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils$1.asap;
|
|
13282
13807
|
var {
|
|
13283
13808
|
http: httpFollow,
|
|
13284
13809
|
https: httpsFollow
|
|
13285
13810
|
} = followRedirects;
|
|
13286
13811
|
var isHttps = /https:?/;
|
|
13287
|
-
var FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
|
|
13288
|
-
function setFormDataHeaders$1(headers, formHeaders, policy) {
|
|
13289
|
-
if (policy !== "content-only") {
|
|
13290
|
-
headers.set(formHeaders);
|
|
13291
|
-
return;
|
|
13292
|
-
}
|
|
13293
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
13294
|
-
if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
|
|
13295
|
-
headers.set(key, val);
|
|
13296
|
-
}
|
|
13297
|
-
});
|
|
13298
|
-
}
|
|
13299
13812
|
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
13300
13813
|
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
13814
|
+
function handleSocketError(err) {
|
|
13815
|
+
const current = this[kAxiosCurrentReq];
|
|
13816
|
+
if (current && !current.destroyed) {
|
|
13817
|
+
current.destroy(err);
|
|
13818
|
+
}
|
|
13819
|
+
}
|
|
13301
13820
|
var kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
|
|
13302
13821
|
var tunnelingAgentCache = new Map;
|
|
13303
13822
|
var tunnelingAgentCacheUser = new WeakMap;
|
|
@@ -13407,10 +13926,10 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13407
13926
|
return false;
|
|
13408
13927
|
}
|
|
13409
13928
|
}
|
|
13410
|
-
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
|
|
13929
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
|
|
13411
13930
|
let proxy = configProxy;
|
|
13412
13931
|
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
13413
|
-
if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
13932
|
+
if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
13414
13933
|
const proxyUrl = getProxyForUrl(location);
|
|
13415
13934
|
if (proxyUrl) {
|
|
13416
13935
|
if (!shouldBypassProxy(location)) {
|
|
@@ -13501,8 +14020,9 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13501
14020
|
}
|
|
13502
14021
|
}
|
|
13503
14022
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
13504
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent);
|
|
14023
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent, allowEnvProxy);
|
|
13505
14024
|
};
|
|
14025
|
+
return Boolean(proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent));
|
|
13506
14026
|
}
|
|
13507
14027
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
|
|
13508
14028
|
var wrapAsync = (asyncExecutor) => {
|
|
@@ -13531,7 +14051,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13531
14051
|
family
|
|
13532
14052
|
}) => {
|
|
13533
14053
|
if (!utils$1.isString(address)) {
|
|
13534
|
-
throw
|
|
14054
|
+
throw new AxiosError("address must be a string", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
13535
14055
|
}
|
|
13536
14056
|
return {
|
|
13537
14057
|
address,
|
|
@@ -13542,6 +14062,30 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13542
14062
|
address,
|
|
13543
14063
|
family
|
|
13544
14064
|
});
|
|
14065
|
+
var normalizedLookupCache = new WeakMap;
|
|
14066
|
+
var normalizeLookup = (lookup) => {
|
|
14067
|
+
let normalized = normalizedLookupCache.get(lookup);
|
|
14068
|
+
if (normalized) {
|
|
14069
|
+
return normalized;
|
|
14070
|
+
}
|
|
14071
|
+
const callbackLookup = callbackify(lookup, (value) => utils$1.isArray(value) ? value : [value]);
|
|
14072
|
+
normalized = (hostname, opt, cb) => {
|
|
14073
|
+
callbackLookup(hostname, opt, (err, arg0, arg1) => {
|
|
14074
|
+
if (err) {
|
|
14075
|
+
return cb(err);
|
|
14076
|
+
}
|
|
14077
|
+
let addresses;
|
|
14078
|
+
try {
|
|
14079
|
+
addresses = utils$1.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
14080
|
+
} catch (error) {
|
|
14081
|
+
return cb(error);
|
|
14082
|
+
}
|
|
14083
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
14084
|
+
});
|
|
14085
|
+
};
|
|
14086
|
+
normalizedLookupCache.set(lookup, normalized);
|
|
14087
|
+
return normalized;
|
|
14088
|
+
};
|
|
13545
14089
|
var http2Transport = {
|
|
13546
14090
|
request(options, cb) {
|
|
13547
14091
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
@@ -13587,6 +14131,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13587
14131
|
let httpVersion = own("httpVersion");
|
|
13588
14132
|
if (httpVersion === undefined)
|
|
13589
14133
|
httpVersion = 1;
|
|
14134
|
+
const rawHttpVersion = httpVersion;
|
|
13590
14135
|
let http2Options = own("http2Options");
|
|
13591
14136
|
const httpAgent = own("httpAgent");
|
|
13592
14137
|
const httpsAgent = own("httpsAgent");
|
|
@@ -13603,25 +14148,20 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13603
14148
|
let rejected = false;
|
|
13604
14149
|
let req;
|
|
13605
14150
|
let connectPhaseTimer;
|
|
13606
|
-
|
|
14151
|
+
try {
|
|
14152
|
+
httpVersion = +httpVersion;
|
|
14153
|
+
} catch (err) {
|
|
14154
|
+
throw new AxiosError("Invalid protocol version: value is not a number", AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
14155
|
+
}
|
|
13607
14156
|
if (Number.isNaN(httpVersion)) {
|
|
13608
|
-
throw
|
|
14157
|
+
throw new AxiosError(`Invalid protocol version: '${rawHttpVersion}' is not a number`, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
13609
14158
|
}
|
|
13610
14159
|
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
13611
|
-
throw
|
|
14160
|
+
throw new AxiosError(`Unsupported protocol version '${httpVersion}'`, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
13612
14161
|
}
|
|
13613
14162
|
const isHttp2 = httpVersion === 2;
|
|
13614
14163
|
if (lookup) {
|
|
13615
|
-
|
|
13616
|
-
lookup = (hostname, opt, cb) => {
|
|
13617
|
-
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
13618
|
-
if (err) {
|
|
13619
|
-
return cb(err);
|
|
13620
|
-
}
|
|
13621
|
-
const addresses = utils$1.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
13622
|
-
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
13623
|
-
});
|
|
13624
|
-
};
|
|
14164
|
+
lookup = normalizeLookup(lookup);
|
|
13625
14165
|
}
|
|
13626
14166
|
const abortEmitter = new events.EventEmitter;
|
|
13627
14167
|
function abort(reason) {
|
|
@@ -13688,7 +14228,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13688
14228
|
if (protocol === "data:") {
|
|
13689
14229
|
if (maxContentLength > -1) {
|
|
13690
14230
|
const dataUrl = String(own("url") || fullPath || "");
|
|
13691
|
-
const estimated =
|
|
14231
|
+
const estimated = estimateDataURLBufferAllocation(dataUrl);
|
|
13692
14232
|
if (estimated > maxContentLength) {
|
|
13693
14233
|
return reject(new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
13694
14234
|
}
|
|
@@ -13746,7 +14286,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13746
14286
|
boundary: userBoundary && userBoundary[1] || undefined
|
|
13747
14287
|
});
|
|
13748
14288
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
13749
|
-
setFormDataHeaders
|
|
14289
|
+
setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
|
|
13750
14290
|
if (!headers.hasContentLength()) {
|
|
13751
14291
|
try {
|
|
13752
14292
|
const knownLength = await util.promisify(data.getLength).call(data);
|
|
@@ -13788,7 +14328,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13788
14328
|
data = stream.pipeline([data, new AxiosTransformStream({
|
|
13789
14329
|
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
13790
14330
|
})], utils$1.noop);
|
|
13791
|
-
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
14331
|
+
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3))));
|
|
13792
14332
|
}
|
|
13793
14333
|
let auth = undefined;
|
|
13794
14334
|
const configAuth = own("auth");
|
|
@@ -13813,6 +14353,11 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13813
14353
|
}));
|
|
13814
14354
|
}
|
|
13815
14355
|
headers.set("Accept-Encoding", utils$1.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
|
|
14356
|
+
if (isHttp2 && lookup) {
|
|
14357
|
+
http2Options = Object.assign(Object.create(null), http2Options, {
|
|
14358
|
+
lookup
|
|
14359
|
+
});
|
|
14360
|
+
}
|
|
13816
14361
|
const options = Object.assign(Object.create(null), {
|
|
13817
14362
|
path: path$1,
|
|
13818
14363
|
method,
|
|
@@ -13826,9 +14371,11 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13826
14371
|
family,
|
|
13827
14372
|
beforeRedirect: dispatchBeforeRedirect,
|
|
13828
14373
|
beforeRedirects: Object.create(null),
|
|
13829
|
-
http2Options
|
|
14374
|
+
http2Options,
|
|
14375
|
+
createConnection: undefined
|
|
13830
14376
|
});
|
|
13831
14377
|
!utils$1.isUndefined(lookup) && (options.lookup = lookup);
|
|
14378
|
+
let proxyApplied = false;
|
|
13832
14379
|
if (socketPath) {
|
|
13833
14380
|
if (typeof socketPath !== "string") {
|
|
13834
14381
|
return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
@@ -13846,7 +14393,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13846
14393
|
} else {
|
|
13847
14394
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
13848
14395
|
options.port = parsed.port;
|
|
13849
|
-
setProxy(options, configProxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent, httpAgent);
|
|
14396
|
+
proxyApplied = setProxy(options, configProxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path, false, httpsAgent, httpAgent, !isHttp2);
|
|
13850
14397
|
}
|
|
13851
14398
|
let transport;
|
|
13852
14399
|
let isNativeTransport = false;
|
|
@@ -13856,6 +14403,9 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13856
14403
|
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
13857
14404
|
}
|
|
13858
14405
|
if (isHttp2) {
|
|
14406
|
+
if (proxyApplied) {
|
|
14407
|
+
return reject(new AxiosError("HTTP/2 requests with a proxy are not supported", AxiosError.ERR_NOT_SUPPORT, config));
|
|
14408
|
+
}
|
|
13859
14409
|
transport = http2Transport;
|
|
13860
14410
|
} else {
|
|
13861
14411
|
const configTransport = own("transport");
|
|
@@ -13925,7 +14475,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
13925
14475
|
const transformStream = new AxiosTransformStream({
|
|
13926
14476
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
13927
14477
|
});
|
|
13928
|
-
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
14478
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3))));
|
|
13929
14479
|
streams.push(transformStream);
|
|
13930
14480
|
}
|
|
13931
14481
|
let responseStream = res;
|
|
@@ -14053,12 +14603,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14053
14603
|
socket.setKeepAlive(true, 1000 * 60);
|
|
14054
14604
|
}
|
|
14055
14605
|
if (!socket[kAxiosSocketListener]) {
|
|
14056
|
-
socket.on("error",
|
|
14057
|
-
const current = socket[kAxiosCurrentReq];
|
|
14058
|
-
if (current && !current.destroyed) {
|
|
14059
|
-
current.destroy(err);
|
|
14060
|
-
}
|
|
14061
|
-
});
|
|
14606
|
+
socket.on("error", handleSocketError);
|
|
14062
14607
|
socket[kAxiosSocketListener] = true;
|
|
14063
14608
|
}
|
|
14064
14609
|
socket[kAxiosCurrentReq] = req;
|
|
@@ -14187,6 +14732,12 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14187
14732
|
var headersToObject = (thing) => thing instanceof AxiosHeaders ? {
|
|
14188
14733
|
...thing
|
|
14189
14734
|
} : thing;
|
|
14735
|
+
var ownEnumerableKeys = (thing) => {
|
|
14736
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
14737
|
+
return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable));
|
|
14738
|
+
}
|
|
14739
|
+
return Object.keys(thing);
|
|
14740
|
+
};
|
|
14190
14741
|
function mergeConfig(config1, config2) {
|
|
14191
14742
|
config1 = config1 || {};
|
|
14192
14743
|
config2 = config2 || {};
|
|
@@ -14262,7 +14813,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14262
14813
|
transformResponse: defaultToConfig2,
|
|
14263
14814
|
paramsSerializer: defaultToConfig2,
|
|
14264
14815
|
timeout: defaultToConfig2,
|
|
14265
|
-
|
|
14816
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
14266
14817
|
withCredentials: defaultToConfig2,
|
|
14267
14818
|
withXSRFToken: defaultToConfig2,
|
|
14268
14819
|
adapter: defaultToConfig2,
|
|
@@ -14285,7 +14836,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14285
14836
|
validateStatus: mergeDirectKeys,
|
|
14286
14837
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
14287
14838
|
};
|
|
14288
|
-
utils$1.forEach(
|
|
14839
|
+
utils$1.forEach(ownEnumerableKeys({
|
|
14289
14840
|
...config1,
|
|
14290
14841
|
...config2
|
|
14291
14842
|
}), function computeConfigValue(prop) {
|
|
@@ -14306,18 +14857,6 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14306
14857
|
}
|
|
14307
14858
|
return config;
|
|
14308
14859
|
}
|
|
14309
|
-
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14310
|
-
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14311
|
-
if (policy !== "content-only") {
|
|
14312
|
-
headers.set(formHeaders);
|
|
14313
|
-
return;
|
|
14314
|
-
}
|
|
14315
|
-
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
14316
|
-
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
14317
|
-
headers.set(key, val);
|
|
14318
|
-
}
|
|
14319
|
-
});
|
|
14320
|
-
}
|
|
14321
14860
|
var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
14322
14861
|
function resolveConfig(config) {
|
|
14323
14862
|
const newConfig = mergeConfig({}, config);
|
|
@@ -14343,10 +14882,11 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14343
14882
|
}
|
|
14344
14883
|
}
|
|
14345
14884
|
if (utils$1.isFormData(data)) {
|
|
14885
|
+
const getHeaders = utils$1.getSafeProp(data, "getHeaders");
|
|
14346
14886
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
|
|
14347
14887
|
headers.setContentType(undefined);
|
|
14348
|
-
} else if (utils$1.isFunction(
|
|
14349
|
-
setFormDataHeaders(headers,
|
|
14888
|
+
} else if (utils$1.isFunction(getHeaders)) {
|
|
14889
|
+
setFormDataHeaders(headers, getHeaders.call(data), own("formDataHeaderPolicy"));
|
|
14350
14890
|
}
|
|
14351
14891
|
}
|
|
14352
14892
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -14376,7 +14916,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14376
14916
|
} = _config;
|
|
14377
14917
|
let onCanceled;
|
|
14378
14918
|
let uploadThrottled, downloadThrottled;
|
|
14379
|
-
let flushUpload, flushDownload;
|
|
14919
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
14380
14920
|
function done() {
|
|
14381
14921
|
flushUpload && flushUpload();
|
|
14382
14922
|
flushDownload && flushDownload();
|
|
@@ -14386,7 +14926,27 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14386
14926
|
let request = new XMLHttpRequest;
|
|
14387
14927
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
14388
14928
|
request.timeout = _config.timeout;
|
|
14389
|
-
function onloadend() {
|
|
14929
|
+
function onloadend(event) {
|
|
14930
|
+
if (!request) {
|
|
14931
|
+
return;
|
|
14932
|
+
}
|
|
14933
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
14934
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
14935
|
+
done();
|
|
14936
|
+
request = null;
|
|
14937
|
+
return;
|
|
14938
|
+
}
|
|
14939
|
+
try {
|
|
14940
|
+
if (event) {
|
|
14941
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
14942
|
+
} else {
|
|
14943
|
+
flushDownload && flushDownload();
|
|
14944
|
+
}
|
|
14945
|
+
} catch (err) {
|
|
14946
|
+
setTimeout(() => {
|
|
14947
|
+
throw err;
|
|
14948
|
+
});
|
|
14949
|
+
}
|
|
14390
14950
|
if (!request) {
|
|
14391
14951
|
return;
|
|
14392
14952
|
}
|
|
@@ -14461,7 +15021,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14461
15021
|
request.responseType = _config.responseType;
|
|
14462
15022
|
}
|
|
14463
15023
|
if (onDownloadProgress) {
|
|
14464
|
-
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
15024
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(onDownloadProgress, true);
|
|
14465
15025
|
request.addEventListener("progress", downloadThrottled);
|
|
14466
15026
|
}
|
|
14467
15027
|
if (onUploadProgress && request.upload) {
|
|
@@ -14523,9 +15083,18 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14523
15083
|
});
|
|
14524
15084
|
signals = null;
|
|
14525
15085
|
};
|
|
14526
|
-
signals.forEach((signal) =>
|
|
14527
|
-
|
|
14528
|
-
|
|
15086
|
+
signals.forEach((signal) => {
|
|
15087
|
+
if (aborted) {
|
|
15088
|
+
return;
|
|
15089
|
+
}
|
|
15090
|
+
if (signal.aborted) {
|
|
15091
|
+
onabort.call(signal);
|
|
15092
|
+
return;
|
|
15093
|
+
}
|
|
15094
|
+
signal.addEventListener("abort", onabort, {
|
|
15095
|
+
once: true
|
|
15096
|
+
});
|
|
15097
|
+
});
|
|
14529
15098
|
const {
|
|
14530
15099
|
signal
|
|
14531
15100
|
} = controller;
|
|
@@ -14614,6 +15183,17 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14614
15183
|
});
|
|
14615
15184
|
};
|
|
14616
15185
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
15186
|
+
var DEFAULT_REQUEST_OPTIONS = {
|
|
15187
|
+
cache: "default",
|
|
15188
|
+
redirect: "follow",
|
|
15189
|
+
referrer: "about:client",
|
|
15190
|
+
referrerPolicy: "",
|
|
15191
|
+
mode: "cors",
|
|
15192
|
+
integrity: "",
|
|
15193
|
+
keepalive: false,
|
|
15194
|
+
priority: "auto",
|
|
15195
|
+
window: null
|
|
15196
|
+
};
|
|
14617
15197
|
var {
|
|
14618
15198
|
isFunction
|
|
14619
15199
|
} = utils$1;
|
|
@@ -14742,7 +15322,8 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14742
15322
|
withCredentials = "same-origin",
|
|
14743
15323
|
fetchOptions,
|
|
14744
15324
|
maxContentLength,
|
|
14745
|
-
maxBodyLength
|
|
15325
|
+
maxBodyLength,
|
|
15326
|
+
maxRedirects
|
|
14746
15327
|
} = resolveConfig(config);
|
|
14747
15328
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
14748
15329
|
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
@@ -14843,17 +15424,44 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
14843
15424
|
}
|
|
14844
15425
|
}
|
|
14845
15426
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
14846
|
-
const
|
|
14847
|
-
|
|
15427
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
15428
|
+
if (safeFetchOptions) {
|
|
15429
|
+
delete safeFetchOptions.body;
|
|
15430
|
+
delete safeFetchOptions.headers;
|
|
15431
|
+
delete safeFetchOptions.method;
|
|
15432
|
+
delete safeFetchOptions.signal;
|
|
15433
|
+
delete safeFetchOptions.duplex;
|
|
15434
|
+
delete safeFetchOptions.credentials;
|
|
15435
|
+
}
|
|
15436
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
14848
15437
|
signal: composedSignal,
|
|
14849
15438
|
method: method.toUpperCase(),
|
|
14850
15439
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
14851
15440
|
body: data,
|
|
14852
15441
|
duplex: "half",
|
|
14853
15442
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
14854
|
-
};
|
|
15443
|
+
});
|
|
15444
|
+
if (isRequestSupported) {
|
|
15445
|
+
utils$1.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
15446
|
+
if (resolvedOptions[key] === undefined) {
|
|
15447
|
+
resolvedOptions[key] = value;
|
|
15448
|
+
}
|
|
15449
|
+
});
|
|
15450
|
+
if (resolvedOptions.signal === undefined) {
|
|
15451
|
+
resolvedOptions.signal = null;
|
|
15452
|
+
}
|
|
15453
|
+
if (resolvedOptions.body === undefined) {
|
|
15454
|
+
resolvedOptions.body = null;
|
|
15455
|
+
}
|
|
15456
|
+
}
|
|
15457
|
+
if (maxRedirects === 0) {
|
|
15458
|
+
resolvedOptions.redirect = "manual";
|
|
15459
|
+
if (safeFetchOptions) {
|
|
15460
|
+
safeFetchOptions.redirect = "manual";
|
|
15461
|
+
}
|
|
15462
|
+
}
|
|
14855
15463
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
14856
|
-
let response = await (isRequestSupported ? _fetch(request,
|
|
15464
|
+
let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url, resolvedOptions));
|
|
14857
15465
|
const responseHeaders = AxiosHeaders.from(response.headers);
|
|
14858
15466
|
if (hasMaxContentLength) {
|
|
14859
15467
|
const declaredLength = utils$1.toFiniteNumber(responseHeaders.getContentLength());
|
|
@@ -15038,9 +15646,10 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15038
15646
|
throw new CanceledError(null, config);
|
|
15039
15647
|
}
|
|
15040
15648
|
}
|
|
15041
|
-
function dispatchRequest(
|
|
15649
|
+
function dispatchRequest(_config) {
|
|
15650
|
+
const config = utils$1.toSafeFlatObject(_config);
|
|
15042
15651
|
throwIfCancellationRequested(config);
|
|
15043
|
-
config.headers = AxiosHeaders.from(config
|
|
15652
|
+
config.headers = AxiosHeaders.from(utils$1.getSafeProp(config, "headers"));
|
|
15044
15653
|
config.data = transformData.call(config, config.transformRequest);
|
|
15045
15654
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
15046
15655
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
@@ -15141,17 +15750,16 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15141
15750
|
return await this._request(configOrUrl, config);
|
|
15142
15751
|
} catch (err) {
|
|
15143
15752
|
if (err instanceof Error) {
|
|
15144
|
-
let dummy = {};
|
|
15145
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;
|
|
15146
|
-
const stack = (() => {
|
|
15147
|
-
if (!dummy.stack) {
|
|
15148
|
-
return "";
|
|
15149
|
-
}
|
|
15150
|
-
const firstNewlineIndex = dummy.stack.indexOf(`
|
|
15151
|
-
`);
|
|
15152
|
-
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
15153
|
-
})();
|
|
15154
15753
|
try {
|
|
15754
|
+
let dummy = {};
|
|
15755
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;
|
|
15756
|
+
const dummyStack = dummy.stack;
|
|
15757
|
+
let stack = "";
|
|
15758
|
+
if (typeof dummyStack === "string") {
|
|
15759
|
+
const firstNewlineIndex = dummyStack.indexOf(`
|
|
15760
|
+
`);
|
|
15761
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
15762
|
+
}
|
|
15155
15763
|
if (!err.stack) {
|
|
15156
15764
|
err.stack = stack;
|
|
15157
15765
|
} else if (stack) {
|
|
@@ -15216,9 +15824,9 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15216
15824
|
baseUrl: validators.spelling("baseURL"),
|
|
15217
15825
|
withXsrfToken: validators.spelling("withXSRFToken")
|
|
15218
15826
|
}, true);
|
|
15219
|
-
config.method = (config
|
|
15827
|
+
config.method = (utils$1.getSafeProp(config, "method") || utils$1.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
15220
15828
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
15221
|
-
headers && utils$1.forEach(
|
|
15829
|
+
headers && utils$1.forEach(methodList.concat("common"), (method) => {
|
|
15222
15830
|
delete headers[method];
|
|
15223
15831
|
});
|
|
15224
15832
|
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
@@ -15261,16 +15869,29 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15261
15869
|
const onFulfilled = requestInterceptorChain[i++];
|
|
15262
15870
|
const onRejected = requestInterceptorChain[i++];
|
|
15263
15871
|
try {
|
|
15264
|
-
newConfig = onFulfilled(newConfig);
|
|
15872
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
15265
15873
|
} catch (error) {
|
|
15266
|
-
onRejected
|
|
15874
|
+
if (!onRejected) {
|
|
15875
|
+
promise = Promise.reject(error);
|
|
15876
|
+
break;
|
|
15877
|
+
}
|
|
15878
|
+
try {
|
|
15879
|
+
const rejectedResult = onRejected.call(this, error);
|
|
15880
|
+
if (utils$1.isThenable(rejectedResult)) {
|
|
15881
|
+
promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
|
|
15882
|
+
}
|
|
15883
|
+
} catch (rejectedError) {
|
|
15884
|
+
promise = Promise.reject(rejectedError);
|
|
15885
|
+
}
|
|
15267
15886
|
break;
|
|
15268
15887
|
}
|
|
15269
15888
|
}
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15889
|
+
if (!promise) {
|
|
15890
|
+
try {
|
|
15891
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
15892
|
+
} catch (error) {
|
|
15893
|
+
promise = Promise.reject(error);
|
|
15894
|
+
}
|
|
15274
15895
|
}
|
|
15275
15896
|
i = 0;
|
|
15276
15897
|
len = responseInterceptorChain.length;
|
|
@@ -15442,6 +16063,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15442
16063
|
LengthRequired: 411,
|
|
15443
16064
|
PreconditionFailed: 412,
|
|
15444
16065
|
PayloadTooLarge: 413,
|
|
16066
|
+
ContentTooLarge: 413,
|
|
15445
16067
|
UriTooLong: 414,
|
|
15446
16068
|
UnsupportedMediaType: 415,
|
|
15447
16069
|
RangeNotSatisfiable: 416,
|
|
@@ -15449,6 +16071,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15449
16071
|
ImATeapot: 418,
|
|
15450
16072
|
MisdirectedRequest: 421,
|
|
15451
16073
|
UnprocessableEntity: 422,
|
|
16074
|
+
UnprocessableContent: 422,
|
|
15452
16075
|
Locked: 423,
|
|
15453
16076
|
FailedDependency: 424,
|
|
15454
16077
|
TooEarly: 425,
|
|
@@ -15468,6 +16091,7 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15468
16091
|
LoopDetected: 508,
|
|
15469
16092
|
NotExtended: 510,
|
|
15470
16093
|
NetworkAuthenticationRequired: 511,
|
|
16094
|
+
WebServerReturnsAnUnknownError: 520,
|
|
15471
16095
|
WebServerIsDown: 521,
|
|
15472
16096
|
ConnectionTimedOut: 522,
|
|
15473
16097
|
OriginIsUnreachable: 523,
|
|
@@ -15476,7 +16100,9 @@ var require_axios = __commonJS(function(exports, module) {
|
|
|
15476
16100
|
InvalidSslCertificate: 526
|
|
15477
16101
|
};
|
|
15478
16102
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
15479
|
-
HttpStatusCode[value]
|
|
16103
|
+
if (HttpStatusCode[value] === undefined) {
|
|
16104
|
+
HttpStatusCode[value] = key;
|
|
16105
|
+
}
|
|
15480
16106
|
});
|
|
15481
16107
|
function createInstance(defaultConfig) {
|
|
15482
16108
|
const context = new Axios(defaultConfig);
|