node-red-contrib-tak-registration 0.11.5 → 0.12.0
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/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +88 -44
- package/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/node/buffer.d.ts +37 -36
- package/node_modules/@types/node/child_process.d.ts +38 -34
- package/node_modules/@types/node/cluster.d.ts +165 -19
- package/node_modules/@types/node/console.d.ts +64 -27
- package/node_modules/@types/node/crypto.d.ts +139 -72
- package/node_modules/@types/node/dgram.d.ts +24 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +365 -2
- package/node_modules/@types/node/dns/promises.d.ts +79 -28
- package/node_modules/@types/node/dns.d.ts +124 -69
- package/node_modules/@types/node/dom-events.d.ts +2 -0
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +115 -63
- package/node_modules/@types/node/fs/promises.d.ts +18 -12
- package/node_modules/@types/node/fs.d.ts +72 -46
- package/node_modules/@types/node/globals.d.ts +27 -0
- package/node_modules/@types/node/http.d.ts +75 -55
- package/node_modules/@types/node/http2.d.ts +83 -47
- package/node_modules/@types/node/https.d.ts +3 -3
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +5 -6
- package/node_modules/@types/node/module.d.ts +14 -0
- package/node_modules/@types/node/net.d.ts +66 -16
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +320 -54
- package/node_modules/@types/node/process.d.ts +265 -50
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +21 -9
- package/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/web.d.ts +18 -1
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +5 -5
- package/node_modules/@types/node/test.d.ts +445 -109
- package/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/node/tls.d.ts +40 -33
- package/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/node/url.d.ts +73 -48
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +183 -10
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +38 -15
- package/node_modules/@types/node/worker_threads.d.ts +19 -16
- package/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/adm-zip/README.md +2 -1
- package/node_modules/adm-zip/adm-zip.js +46 -45
- package/node_modules/adm-zip/headers/entryHeader.js +14 -12
- package/node_modules/adm-zip/headers/mainHeader.js +1 -1
- package/node_modules/adm-zip/methods/inflater.js +6 -3
- package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
- package/node_modules/adm-zip/package.json +2 -2
- package/node_modules/adm-zip/util/errors.js +1 -0
- package/node_modules/adm-zip/zipEntry.js +64 -43
- package/node_modules/adm-zip/zipFile.js +35 -35
- package/node_modules/axios/CHANGELOG.md +873 -711
- package/node_modules/axios/README.md +98 -8
- package/node_modules/axios/dist/axios.js +1461 -350
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +710 -306
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +710 -306
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +628 -250
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +6 -3
- package/node_modules/axios/index.d.ts +6 -3
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +7 -3
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +28 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +7 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/combineURLs.js +1 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +27 -26
- package/node_modules/call-bind/CHANGELOG.md +16 -0
- package/node_modules/call-bind/index.js +2 -11
- package/node_modules/call-bind/package.json +11 -6
- package/node_modules/define-data-property/CHANGELOG.md +29 -0
- package/node_modules/define-data-property/index.d.ts +12 -3
- package/node_modules/define-data-property/index.js +4 -16
- package/node_modules/define-data-property/package.json +26 -33
- package/node_modules/define-data-property/test/index.js +10 -10
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +15 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +16 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +55 -0
- package/node_modules/es-define-property/tsconfig.json +50 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +17 -0
- package/node_modules/fast-xml-parser/README.md +9 -15
- package/node_modules/fast-xml-parser/package.json +4 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +365 -71
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +18 -9
- package/node_modules/follow-redirects/index.js +115 -76
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
- package/node_modules/get-intrinsic/index.js +15 -7
- package/node_modules/get-intrinsic/package.json +12 -12
- package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
- package/node_modules/has-property-descriptors/index.js +3 -14
- package/node_modules/has-property-descriptors/package.json +5 -5
- package/node_modules/has-proto/CHANGELOG.md +15 -0
- package/node_modules/has-proto/index.d.ts +3 -0
- package/node_modules/has-proto/index.js +5 -1
- package/node_modules/has-proto/package.json +9 -5
- package/node_modules/has-proto/tsconfig.json +49 -0
- package/node_modules/has-tostringtag/.eslintrc +0 -6
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +1 -0
- package/node_modules/has-tostringtag/package.json +37 -13
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +1 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
- package/node_modules/has-tostringtag/test/tests.js +2 -1
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/index.d.ts +3 -3
- package/node_modules/hasown/index.js +1 -1
- package/node_modules/hasown/package.json +16 -15
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/polygon-clipping/README.md +29 -26
- package/node_modules/polygon-clipping/dist/polygon-clipping.cjs.js +1398 -1421
- package/node_modules/polygon-clipping/dist/polygon-clipping.d.ts +13 -10
- package/node_modules/polygon-clipping/dist/polygon-clipping.esm.js +1139 -1427
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.js +1770 -1831
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js +22 -8
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js.map +1 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/LICENSE +24 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/README.md +82 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/util.js +138 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.d.ts +49 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.js +5 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/package.json +75 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.js +908 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.js +914 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.js +280 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.js +601 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.js +2328 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.min.js +1 -0
- package/node_modules/polygon-clipping/package.json +30 -25
- package/node_modules/protobufjs/LICENSE +39 -39
- package/node_modules/protobufjs/README.md +727 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/debug/README.md +4 -4
- package/node_modules/protobufjs/ext/debug/index.js +71 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
- package/node_modules/protobufjs/google/LICENSE +27 -27
- package/node_modules/protobufjs/google/README.md +1 -1
- package/node_modules/protobufjs/google/api/annotations.json +82 -82
- package/node_modules/protobufjs/google/api/annotations.proto +10 -10
- package/node_modules/protobufjs/google/api/http.json +85 -85
- package/node_modules/protobufjs/google/api/http.proto +30 -30
- package/node_modules/protobufjs/google/protobuf/api.json +117 -117
- package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
- package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
- package/node_modules/protobufjs/google/protobuf/type.json +201 -201
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
- package/node_modules/protobufjs/index.d.ts +2741 -2741
- package/node_modules/protobufjs/index.js +4 -4
- package/node_modules/protobufjs/light.d.ts +2 -2
- package/node_modules/protobufjs/light.js +3 -3
- package/node_modules/protobufjs/minimal.d.ts +2 -2
- package/node_modules/protobufjs/minimal.js +4 -4
- package/node_modules/protobufjs/package.json +111 -111
- package/node_modules/protobufjs/scripts/postinstall.js +32 -32
- package/node_modules/protobufjs/src/common.js +399 -399
- package/node_modules/protobufjs/src/converter.js +301 -301
- package/node_modules/protobufjs/src/decoder.js +129 -129
- package/node_modules/protobufjs/src/encoder.js +100 -100
- package/node_modules/protobufjs/src/enum.js +198 -198
- package/node_modules/protobufjs/src/field.js +377 -377
- package/node_modules/protobufjs/src/index-light.js +104 -104
- package/node_modules/protobufjs/src/index-minimal.js +36 -36
- package/node_modules/protobufjs/src/index.js +12 -12
- package/node_modules/protobufjs/src/mapfield.js +126 -126
- package/node_modules/protobufjs/src/message.js +138 -138
- package/node_modules/protobufjs/src/method.js +160 -160
- package/node_modules/protobufjs/src/namespace.js +433 -433
- package/node_modules/protobufjs/src/object.js +243 -243
- package/node_modules/protobufjs/src/oneof.js +203 -203
- package/node_modules/protobufjs/src/parse.js +889 -872
- package/node_modules/protobufjs/src/reader.js +416 -416
- package/node_modules/protobufjs/src/reader_buffer.js +51 -51
- package/node_modules/protobufjs/src/root.js +368 -368
- package/node_modules/protobufjs/src/roots.js +18 -18
- package/node_modules/protobufjs/src/rpc/service.js +142 -142
- package/node_modules/protobufjs/src/rpc.js +36 -36
- package/node_modules/protobufjs/src/service.js +167 -167
- package/node_modules/protobufjs/src/tokenize.js +416 -416
- package/node_modules/protobufjs/src/type.js +589 -589
- package/node_modules/protobufjs/src/types.js +196 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
- package/node_modules/protobufjs/src/util/longbits.js +200 -200
- package/node_modules/protobufjs/src/util/minimal.js +438 -438
- package/node_modules/protobufjs/src/util.js +212 -212
- package/node_modules/protobufjs/src/verifier.js +176 -176
- package/node_modules/protobufjs/src/wrappers.js +102 -102
- package/node_modules/protobufjs/src/writer.js +465 -465
- package/node_modules/protobufjs/src/writer_buffer.js +85 -85
- package/node_modules/protobufjs/tsconfig.json +7 -7
- package/node_modules/regexp.prototype.flags/CHANGELOG.md +13 -0
- package/node_modules/regexp.prototype.flags/implementation.js +2 -2
- package/node_modules/regexp.prototype.flags/package.json +11 -10
- package/node_modules/regexp.prototype.flags/test/tests.js +13 -13
- package/node_modules/set-function-length/CHANGELOG.md +29 -0
- package/node_modules/set-function-length/env.d.ts +9 -0
- package/node_modules/set-function-length/env.js +10 -4
- package/node_modules/set-function-length/index.d.ts +7 -0
- package/node_modules/set-function-length/index.js +4 -3
- package/node_modules/set-function-length/package.json +29 -11
- package/node_modules/set-function-length/tsconfig.json +9 -0
- package/node_modules/set-function-name/.eslintrc +1 -0
- package/node_modules/set-function-name/CHANGELOG.md +9 -0
- package/node_modules/set-function-name/index.d.ts +5 -0
- package/node_modules/set-function-name/index.js +4 -3
- package/node_modules/set-function-name/package.json +28 -9
- package/node_modules/set-function-name/tsconfig.json +59 -0
- package/node_modules/uuid/CHANGELOG.md +18 -0
- package/node_modules/uuid/README.md +134 -16
- package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
- package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
- package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
- package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
- package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
- package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
- package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
- package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
- package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
- package/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
- package/node_modules/uuid/dist/esm-browser/native.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
- package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -3
- package/node_modules/uuid/dist/esm-node/index.js +9 -4
- package/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/node_modules/uuid/dist/esm-node/md5.js +1 -4
- package/node_modules/uuid/dist/esm-node/native.js +1 -1
- package/node_modules/uuid/dist/esm-node/parse.js +11 -9
- package/node_modules/uuid/dist/esm-node/regex.js +1 -1
- package/node_modules/uuid/dist/esm-node/rng.js +1 -3
- package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
- package/node_modules/uuid/dist/esm-node/v1.js +66 -36
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-node/v35.js +8 -19
- package/node_modules/uuid/dist/esm-node/v4.js +4 -8
- package/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/node_modules/uuid/dist/esm-node/validate.js +0 -2
- package/node_modules/uuid/dist/esm-node/version.js +0 -3
- package/node_modules/uuid/dist/index.js +40 -15
- package/node_modules/uuid/dist/max.js +7 -0
- package/node_modules/uuid/dist/md5-browser.js +8 -31
- package/node_modules/uuid/dist/md5.js +4 -10
- package/node_modules/uuid/dist/native-browser.js +2 -3
- package/node_modules/uuid/dist/native.js +5 -9
- package/node_modules/uuid/dist/nil.js +1 -2
- package/node_modules/uuid/dist/parse.js +13 -14
- package/node_modules/uuid/dist/regex.js +1 -2
- package/node_modules/uuid/dist/rng-browser.js +1 -3
- package/node_modules/uuid/dist/rng.js +3 -10
- package/node_modules/uuid/dist/sha1-browser.js +1 -23
- package/node_modules/uuid/dist/sha1.js +4 -10
- package/node_modules/uuid/dist/stringify.js +8 -14
- package/node_modules/uuid/dist/uuid-bin.js +12 -22
- package/node_modules/uuid/dist/v1.js +66 -42
- package/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/v3.js +2 -7
- package/node_modules/uuid/dist/v35.js +11 -28
- package/node_modules/uuid/dist/v4.js +6 -17
- package/node_modules/uuid/dist/v5.js +2 -7
- package/node_modules/uuid/dist/v6.js +38 -0
- package/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/v7.js +152 -0
- package/node_modules/uuid/dist/validate.js +2 -7
- package/node_modules/uuid/dist/version.js +2 -8
- package/node_modules/uuid/package.json +41 -34
- package/node_modules/uuid/wrapper.mjs +5 -0
- package/package.json +6 -6
- package/tak-ingest.js +5 -1
- package/tak-registration.js +8 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4291
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -301
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/define-data-property/index.d.ts.map +0 -1
- package/node_modules/hasown/index.d.ts.map +0 -1
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/polygon-clipping/CHANGELOG.md +0 -129
|
@@ -1,39 +1,550 @@
|
|
|
1
|
-
// Axios v1.
|
|
1
|
+
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
5
5
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory());
|
|
6
6
|
})(this, (function () { 'use strict';
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
var
|
|
8
|
+
function _AsyncGenerator(e) {
|
|
9
|
+
var r, t;
|
|
10
|
+
function resume(r, t) {
|
|
11
|
+
try {
|
|
12
|
+
var n = e[r](t),
|
|
13
|
+
o = n.value,
|
|
14
|
+
u = o instanceof _OverloadYield;
|
|
15
|
+
Promise.resolve(u ? o.v : o).then(function (t) {
|
|
16
|
+
if (u) {
|
|
17
|
+
var i = "return" === r ? "return" : "next";
|
|
18
|
+
if (!o.k || t.done) return resume(i, t);
|
|
19
|
+
t = e[i](t).value;
|
|
20
|
+
}
|
|
21
|
+
settle(n.done ? "return" : "normal", t);
|
|
22
|
+
}, function (e) {
|
|
23
|
+
resume("throw", e);
|
|
24
|
+
});
|
|
25
|
+
} catch (e) {
|
|
26
|
+
settle("throw", e);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function settle(e, n) {
|
|
30
|
+
switch (e) {
|
|
31
|
+
case "return":
|
|
32
|
+
r.resolve({
|
|
33
|
+
value: n,
|
|
34
|
+
done: !0
|
|
35
|
+
});
|
|
36
|
+
break;
|
|
37
|
+
case "throw":
|
|
38
|
+
r.reject(n);
|
|
39
|
+
break;
|
|
40
|
+
default:
|
|
41
|
+
r.resolve({
|
|
42
|
+
value: n,
|
|
43
|
+
done: !1
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
(r = r.next) ? resume(r.key, r.arg) : t = null;
|
|
47
|
+
}
|
|
48
|
+
this._invoke = function (e, n) {
|
|
49
|
+
return new Promise(function (o, u) {
|
|
50
|
+
var i = {
|
|
51
|
+
key: e,
|
|
52
|
+
arg: n,
|
|
53
|
+
resolve: o,
|
|
54
|
+
reject: u,
|
|
55
|
+
next: null
|
|
56
|
+
};
|
|
57
|
+
t ? t = t.next = i : (r = t = i, resume(e, n));
|
|
58
|
+
});
|
|
59
|
+
}, "function" != typeof e.return && (this.return = void 0);
|
|
60
|
+
}
|
|
61
|
+
_AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
62
|
+
return this;
|
|
63
|
+
}, _AsyncGenerator.prototype.next = function (e) {
|
|
64
|
+
return this._invoke("next", e);
|
|
65
|
+
}, _AsyncGenerator.prototype.throw = function (e) {
|
|
66
|
+
return this._invoke("throw", e);
|
|
67
|
+
}, _AsyncGenerator.prototype.return = function (e) {
|
|
68
|
+
return this._invoke("return", e);
|
|
69
|
+
};
|
|
70
|
+
function _OverloadYield(t, e) {
|
|
71
|
+
this.v = t, this.k = e;
|
|
72
|
+
}
|
|
73
|
+
function _asyncGeneratorDelegate(t) {
|
|
74
|
+
var e = {},
|
|
75
|
+
n = !1;
|
|
76
|
+
function pump(e, r) {
|
|
77
|
+
return n = !0, r = new Promise(function (n) {
|
|
78
|
+
n(t[e](r));
|
|
79
|
+
}), {
|
|
80
|
+
done: !1,
|
|
81
|
+
value: new _OverloadYield(r, 1)
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () {
|
|
85
|
+
return this;
|
|
86
|
+
}, e.next = function (t) {
|
|
87
|
+
return n ? (n = !1, t) : pump("next", t);
|
|
88
|
+
}, "function" == typeof t.throw && (e.throw = function (t) {
|
|
89
|
+
if (n) throw n = !1, t;
|
|
90
|
+
return pump("throw", t);
|
|
91
|
+
}), "function" == typeof t.return && (e.return = function (t) {
|
|
92
|
+
return n ? (n = !1, t) : pump("return", t);
|
|
93
|
+
}), e;
|
|
94
|
+
}
|
|
95
|
+
function _asyncIterator(r) {
|
|
96
|
+
var n,
|
|
97
|
+
t,
|
|
98
|
+
o,
|
|
99
|
+
e = 2;
|
|
100
|
+
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
|
|
101
|
+
if (t && null != (n = r[t])) return n.call(r);
|
|
102
|
+
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
|
|
103
|
+
t = "@@asyncIterator", o = "@@iterator";
|
|
104
|
+
}
|
|
105
|
+
throw new TypeError("Object is not async iterable");
|
|
106
|
+
}
|
|
107
|
+
function AsyncFromSyncIterator(r) {
|
|
108
|
+
function AsyncFromSyncIteratorContinuation(r) {
|
|
109
|
+
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
|
|
110
|
+
var n = r.done;
|
|
111
|
+
return Promise.resolve(r.value).then(function (r) {
|
|
112
|
+
return {
|
|
113
|
+
value: r,
|
|
114
|
+
done: n
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return AsyncFromSyncIterator = function (r) {
|
|
119
|
+
this.s = r, this.n = r.next;
|
|
120
|
+
}, AsyncFromSyncIterator.prototype = {
|
|
121
|
+
s: null,
|
|
122
|
+
n: null,
|
|
123
|
+
next: function () {
|
|
124
|
+
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
|
125
|
+
},
|
|
126
|
+
return: function (r) {
|
|
127
|
+
var n = this.s.return;
|
|
128
|
+
return void 0 === n ? Promise.resolve({
|
|
129
|
+
value: r,
|
|
130
|
+
done: !0
|
|
131
|
+
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
132
|
+
},
|
|
133
|
+
throw: function (r) {
|
|
134
|
+
var n = this.s.return;
|
|
135
|
+
return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
136
|
+
}
|
|
137
|
+
}, new AsyncFromSyncIterator(r);
|
|
138
|
+
}
|
|
139
|
+
function _awaitAsyncGenerator(e) {
|
|
140
|
+
return new _OverloadYield(e, 0);
|
|
141
|
+
}
|
|
142
|
+
function _iterableToArrayLimit(r, l) {
|
|
143
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
144
|
+
if (null != t) {
|
|
145
|
+
var e,
|
|
146
|
+
n,
|
|
147
|
+
i,
|
|
148
|
+
u,
|
|
149
|
+
a = [],
|
|
150
|
+
f = !0,
|
|
151
|
+
o = !1;
|
|
152
|
+
try {
|
|
153
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
154
|
+
if (Object(t) !== t) return;
|
|
155
|
+
f = !1;
|
|
156
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
157
|
+
} catch (r) {
|
|
158
|
+
o = !0, n = r;
|
|
159
|
+
} finally {
|
|
160
|
+
try {
|
|
161
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
162
|
+
} finally {
|
|
163
|
+
if (o) throw n;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return a;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function ownKeys(e, r) {
|
|
170
|
+
var t = Object.keys(e);
|
|
10
171
|
if (Object.getOwnPropertySymbols) {
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
return Object.getOwnPropertyDescriptor(
|
|
14
|
-
})),
|
|
15
|
-
}
|
|
16
|
-
return
|
|
17
|
-
}
|
|
18
|
-
function _objectSpread2(
|
|
19
|
-
for (var
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
_defineProperty(
|
|
23
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
24
|
-
Object.defineProperty(
|
|
172
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
173
|
+
r && (o = o.filter(function (r) {
|
|
174
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
175
|
+
})), t.push.apply(t, o);
|
|
176
|
+
}
|
|
177
|
+
return t;
|
|
178
|
+
}
|
|
179
|
+
function _objectSpread2(e) {
|
|
180
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
181
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
182
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
183
|
+
_defineProperty(e, r, t[r]);
|
|
184
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
185
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
return e;
|
|
189
|
+
}
|
|
190
|
+
function _regeneratorRuntime() {
|
|
191
|
+
_regeneratorRuntime = function () {
|
|
192
|
+
return e;
|
|
193
|
+
};
|
|
194
|
+
var t,
|
|
195
|
+
e = {},
|
|
196
|
+
r = Object.prototype,
|
|
197
|
+
n = r.hasOwnProperty,
|
|
198
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
199
|
+
t[e] = r.value;
|
|
200
|
+
},
|
|
201
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
202
|
+
a = i.iterator || "@@iterator",
|
|
203
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
204
|
+
u = i.toStringTag || "@@toStringTag";
|
|
205
|
+
function define(t, e, r) {
|
|
206
|
+
return Object.defineProperty(t, e, {
|
|
207
|
+
value: r,
|
|
208
|
+
enumerable: !0,
|
|
209
|
+
configurable: !0,
|
|
210
|
+
writable: !0
|
|
211
|
+
}), t[e];
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
define({}, "");
|
|
215
|
+
} catch (t) {
|
|
216
|
+
define = function (t, e, r) {
|
|
217
|
+
return t[e] = r;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function wrap(t, e, r, n) {
|
|
221
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
222
|
+
a = Object.create(i.prototype),
|
|
223
|
+
c = new Context(n || []);
|
|
224
|
+
return o(a, "_invoke", {
|
|
225
|
+
value: makeInvokeMethod(t, r, c)
|
|
226
|
+
}), a;
|
|
227
|
+
}
|
|
228
|
+
function tryCatch(t, e, r) {
|
|
229
|
+
try {
|
|
230
|
+
return {
|
|
231
|
+
type: "normal",
|
|
232
|
+
arg: t.call(e, r)
|
|
233
|
+
};
|
|
234
|
+
} catch (t) {
|
|
235
|
+
return {
|
|
236
|
+
type: "throw",
|
|
237
|
+
arg: t
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
e.wrap = wrap;
|
|
242
|
+
var h = "suspendedStart",
|
|
243
|
+
l = "suspendedYield",
|
|
244
|
+
f = "executing",
|
|
245
|
+
s = "completed",
|
|
246
|
+
y = {};
|
|
247
|
+
function Generator() {}
|
|
248
|
+
function GeneratorFunction() {}
|
|
249
|
+
function GeneratorFunctionPrototype() {}
|
|
250
|
+
var p = {};
|
|
251
|
+
define(p, a, function () {
|
|
252
|
+
return this;
|
|
253
|
+
});
|
|
254
|
+
var d = Object.getPrototypeOf,
|
|
255
|
+
v = d && d(d(values([])));
|
|
256
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
257
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
258
|
+
function defineIteratorMethods(t) {
|
|
259
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
260
|
+
define(t, e, function (t) {
|
|
261
|
+
return this._invoke(e, t);
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function AsyncIterator(t, e) {
|
|
266
|
+
function invoke(r, o, i, a) {
|
|
267
|
+
var c = tryCatch(t[r], t, o);
|
|
268
|
+
if ("throw" !== c.type) {
|
|
269
|
+
var u = c.arg,
|
|
270
|
+
h = u.value;
|
|
271
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
272
|
+
invoke("next", t, i, a);
|
|
273
|
+
}, function (t) {
|
|
274
|
+
invoke("throw", t, i, a);
|
|
275
|
+
}) : e.resolve(h).then(function (t) {
|
|
276
|
+
u.value = t, i(u);
|
|
277
|
+
}, function (t) {
|
|
278
|
+
return invoke("throw", t, i, a);
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
a(c.arg);
|
|
282
|
+
}
|
|
283
|
+
var r;
|
|
284
|
+
o(this, "_invoke", {
|
|
285
|
+
value: function (t, n) {
|
|
286
|
+
function callInvokeWithMethodAndArg() {
|
|
287
|
+
return new e(function (e, r) {
|
|
288
|
+
invoke(t, n, e, r);
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
function makeInvokeMethod(e, r, n) {
|
|
296
|
+
var o = h;
|
|
297
|
+
return function (i, a) {
|
|
298
|
+
if (o === f) throw new Error("Generator is already running");
|
|
299
|
+
if (o === s) {
|
|
300
|
+
if ("throw" === i) throw a;
|
|
301
|
+
return {
|
|
302
|
+
value: t,
|
|
303
|
+
done: !0
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
for (n.method = i, n.arg = a;;) {
|
|
307
|
+
var c = n.delegate;
|
|
308
|
+
if (c) {
|
|
309
|
+
var u = maybeInvokeDelegate(c, n);
|
|
310
|
+
if (u) {
|
|
311
|
+
if (u === y) continue;
|
|
312
|
+
return u;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
316
|
+
if (o === h) throw o = s, n.arg;
|
|
317
|
+
n.dispatchException(n.arg);
|
|
318
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
319
|
+
o = f;
|
|
320
|
+
var p = tryCatch(e, r, n);
|
|
321
|
+
if ("normal" === p.type) {
|
|
322
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
323
|
+
return {
|
|
324
|
+
value: p.arg,
|
|
325
|
+
done: n.done
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
function maybeInvokeDelegate(e, r) {
|
|
333
|
+
var n = r.method,
|
|
334
|
+
o = e.iterator[n];
|
|
335
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
336
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
337
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
338
|
+
var a = i.arg;
|
|
339
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
340
|
+
}
|
|
341
|
+
function pushTryEntry(t) {
|
|
342
|
+
var e = {
|
|
343
|
+
tryLoc: t[0]
|
|
344
|
+
};
|
|
345
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
346
|
+
}
|
|
347
|
+
function resetTryEntry(t) {
|
|
348
|
+
var e = t.completion || {};
|
|
349
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
350
|
+
}
|
|
351
|
+
function Context(t) {
|
|
352
|
+
this.tryEntries = [{
|
|
353
|
+
tryLoc: "root"
|
|
354
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
355
|
+
}
|
|
356
|
+
function values(e) {
|
|
357
|
+
if (e || "" === e) {
|
|
358
|
+
var r = e[a];
|
|
359
|
+
if (r) return r.call(e);
|
|
360
|
+
if ("function" == typeof e.next) return e;
|
|
361
|
+
if (!isNaN(e.length)) {
|
|
362
|
+
var o = -1,
|
|
363
|
+
i = function next() {
|
|
364
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
365
|
+
return next.value = t, next.done = !0, next;
|
|
366
|
+
};
|
|
367
|
+
return i.next = i;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
371
|
+
}
|
|
372
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
373
|
+
value: GeneratorFunctionPrototype,
|
|
374
|
+
configurable: !0
|
|
375
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
376
|
+
value: GeneratorFunction,
|
|
377
|
+
configurable: !0
|
|
378
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
379
|
+
var e = "function" == typeof t && t.constructor;
|
|
380
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
381
|
+
}, e.mark = function (t) {
|
|
382
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
383
|
+
}, e.awrap = function (t) {
|
|
384
|
+
return {
|
|
385
|
+
__await: t
|
|
386
|
+
};
|
|
387
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
388
|
+
return this;
|
|
389
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
390
|
+
void 0 === i && (i = Promise);
|
|
391
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
392
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
393
|
+
return t.done ? t.value : a.next();
|
|
25
394
|
});
|
|
395
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
396
|
+
return this;
|
|
397
|
+
}), define(g, "toString", function () {
|
|
398
|
+
return "[object Generator]";
|
|
399
|
+
}), e.keys = function (t) {
|
|
400
|
+
var e = Object(t),
|
|
401
|
+
r = [];
|
|
402
|
+
for (var n in e) r.push(n);
|
|
403
|
+
return r.reverse(), function next() {
|
|
404
|
+
for (; r.length;) {
|
|
405
|
+
var t = r.pop();
|
|
406
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
407
|
+
}
|
|
408
|
+
return next.done = !0, next;
|
|
409
|
+
};
|
|
410
|
+
}, e.values = values, Context.prototype = {
|
|
411
|
+
constructor: Context,
|
|
412
|
+
reset: function (e) {
|
|
413
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
414
|
+
},
|
|
415
|
+
stop: function () {
|
|
416
|
+
this.done = !0;
|
|
417
|
+
var t = this.tryEntries[0].completion;
|
|
418
|
+
if ("throw" === t.type) throw t.arg;
|
|
419
|
+
return this.rval;
|
|
420
|
+
},
|
|
421
|
+
dispatchException: function (e) {
|
|
422
|
+
if (this.done) throw e;
|
|
423
|
+
var r = this;
|
|
424
|
+
function handle(n, o) {
|
|
425
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
426
|
+
}
|
|
427
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
428
|
+
var i = this.tryEntries[o],
|
|
429
|
+
a = i.completion;
|
|
430
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
431
|
+
if (i.tryLoc <= this.prev) {
|
|
432
|
+
var c = n.call(i, "catchLoc"),
|
|
433
|
+
u = n.call(i, "finallyLoc");
|
|
434
|
+
if (c && u) {
|
|
435
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
436
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
437
|
+
} else if (c) {
|
|
438
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
439
|
+
} else {
|
|
440
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
441
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
abrupt: function (t, e) {
|
|
447
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
448
|
+
var o = this.tryEntries[r];
|
|
449
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
450
|
+
var i = o;
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
455
|
+
var a = i ? i.completion : {};
|
|
456
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
457
|
+
},
|
|
458
|
+
complete: function (t, e) {
|
|
459
|
+
if ("throw" === t.type) throw t.arg;
|
|
460
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
461
|
+
},
|
|
462
|
+
finish: function (t) {
|
|
463
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
464
|
+
var r = this.tryEntries[e];
|
|
465
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
catch: function (t) {
|
|
469
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
470
|
+
var r = this.tryEntries[e];
|
|
471
|
+
if (r.tryLoc === t) {
|
|
472
|
+
var n = r.completion;
|
|
473
|
+
if ("throw" === n.type) {
|
|
474
|
+
var o = n.arg;
|
|
475
|
+
resetTryEntry(r);
|
|
476
|
+
}
|
|
477
|
+
return o;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
throw new Error("illegal catch attempt");
|
|
481
|
+
},
|
|
482
|
+
delegateYield: function (e, r, n) {
|
|
483
|
+
return this.delegate = {
|
|
484
|
+
iterator: values(e),
|
|
485
|
+
resultName: r,
|
|
486
|
+
nextLoc: n
|
|
487
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
488
|
+
}
|
|
489
|
+
}, e;
|
|
490
|
+
}
|
|
491
|
+
function _toPrimitive(t, r) {
|
|
492
|
+
if ("object" != typeof t || !t) return t;
|
|
493
|
+
var e = t[Symbol.toPrimitive];
|
|
494
|
+
if (void 0 !== e) {
|
|
495
|
+
var i = e.call(t, r || "default");
|
|
496
|
+
if ("object" != typeof i) return i;
|
|
497
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
26
498
|
}
|
|
27
|
-
return
|
|
499
|
+
return ("string" === r ? String : Number)(t);
|
|
500
|
+
}
|
|
501
|
+
function _toPropertyKey(t) {
|
|
502
|
+
var i = _toPrimitive(t, "string");
|
|
503
|
+
return "symbol" == typeof i ? i : String(i);
|
|
28
504
|
}
|
|
29
|
-
function _typeof(
|
|
505
|
+
function _typeof(o) {
|
|
30
506
|
"@babel/helpers - typeof";
|
|
31
507
|
|
|
32
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
33
|
-
return typeof
|
|
34
|
-
} : function (
|
|
35
|
-
return
|
|
36
|
-
}, _typeof(
|
|
508
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
509
|
+
return typeof o;
|
|
510
|
+
} : function (o) {
|
|
511
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
512
|
+
}, _typeof(o);
|
|
513
|
+
}
|
|
514
|
+
function _wrapAsyncGenerator(fn) {
|
|
515
|
+
return function () {
|
|
516
|
+
return new _AsyncGenerator(fn.apply(this, arguments));
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
520
|
+
try {
|
|
521
|
+
var info = gen[key](arg);
|
|
522
|
+
var value = info.value;
|
|
523
|
+
} catch (error) {
|
|
524
|
+
reject(error);
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
if (info.done) {
|
|
528
|
+
resolve(value);
|
|
529
|
+
} else {
|
|
530
|
+
Promise.resolve(value).then(_next, _throw);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
function _asyncToGenerator(fn) {
|
|
534
|
+
return function () {
|
|
535
|
+
var self = this,
|
|
536
|
+
args = arguments;
|
|
537
|
+
return new Promise(function (resolve, reject) {
|
|
538
|
+
var gen = fn.apply(self, args);
|
|
539
|
+
function _next(value) {
|
|
540
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
541
|
+
}
|
|
542
|
+
function _throw(err) {
|
|
543
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
544
|
+
}
|
|
545
|
+
_next(undefined);
|
|
546
|
+
});
|
|
547
|
+
};
|
|
37
548
|
}
|
|
38
549
|
function _classCallCheck(instance, Constructor) {
|
|
39
550
|
if (!(instance instanceof Constructor)) {
|
|
@@ -46,7 +557,7 @@
|
|
|
46
557
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
47
558
|
descriptor.configurable = true;
|
|
48
559
|
if ("value" in descriptor) descriptor.writable = true;
|
|
49
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
560
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
50
561
|
}
|
|
51
562
|
}
|
|
52
563
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -58,6 +569,7 @@
|
|
|
58
569
|
return Constructor;
|
|
59
570
|
}
|
|
60
571
|
function _defineProperty(obj, key, value) {
|
|
572
|
+
key = _toPropertyKey(key);
|
|
61
573
|
if (key in obj) {
|
|
62
574
|
Object.defineProperty(obj, key, {
|
|
63
575
|
value: value,
|
|
@@ -88,30 +600,6 @@
|
|
|
88
600
|
function _iterableToArray(iter) {
|
|
89
601
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
90
602
|
}
|
|
91
|
-
function _iterableToArrayLimit(arr, i) {
|
|
92
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
93
|
-
if (_i == null) return;
|
|
94
|
-
var _arr = [];
|
|
95
|
-
var _n = true;
|
|
96
|
-
var _d = false;
|
|
97
|
-
var _s, _e;
|
|
98
|
-
try {
|
|
99
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
100
|
-
_arr.push(_s.value);
|
|
101
|
-
if (i && _arr.length === i) break;
|
|
102
|
-
}
|
|
103
|
-
} catch (err) {
|
|
104
|
-
_d = true;
|
|
105
|
-
_e = err;
|
|
106
|
-
} finally {
|
|
107
|
-
try {
|
|
108
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
109
|
-
} finally {
|
|
110
|
-
if (_d) throw _e;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return _arr;
|
|
114
|
-
}
|
|
115
603
|
function _unsupportedIterableToArray(o, minLen) {
|
|
116
604
|
if (!o) return;
|
|
117
605
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -131,6 +619,57 @@
|
|
|
131
619
|
function _nonIterableRest() {
|
|
132
620
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
133
621
|
}
|
|
622
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
623
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
624
|
+
if (!it) {
|
|
625
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
626
|
+
if (it) o = it;
|
|
627
|
+
var i = 0;
|
|
628
|
+
var F = function () {};
|
|
629
|
+
return {
|
|
630
|
+
s: F,
|
|
631
|
+
n: function () {
|
|
632
|
+
if (i >= o.length) return {
|
|
633
|
+
done: true
|
|
634
|
+
};
|
|
635
|
+
return {
|
|
636
|
+
done: false,
|
|
637
|
+
value: o[i++]
|
|
638
|
+
};
|
|
639
|
+
},
|
|
640
|
+
e: function (e) {
|
|
641
|
+
throw e;
|
|
642
|
+
},
|
|
643
|
+
f: F
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
647
|
+
}
|
|
648
|
+
var normalCompletion = true,
|
|
649
|
+
didErr = false,
|
|
650
|
+
err;
|
|
651
|
+
return {
|
|
652
|
+
s: function () {
|
|
653
|
+
it = it.call(o);
|
|
654
|
+
},
|
|
655
|
+
n: function () {
|
|
656
|
+
var step = it.next();
|
|
657
|
+
normalCompletion = step.done;
|
|
658
|
+
return step;
|
|
659
|
+
},
|
|
660
|
+
e: function (e) {
|
|
661
|
+
didErr = true;
|
|
662
|
+
err = e;
|
|
663
|
+
},
|
|
664
|
+
f: function () {
|
|
665
|
+
try {
|
|
666
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
667
|
+
} finally {
|
|
668
|
+
if (didErr) throw err;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
}
|
|
134
673
|
|
|
135
674
|
function bind(fn, thisArg) {
|
|
136
675
|
return function wrap() {
|
|
@@ -346,6 +885,12 @@
|
|
|
346
885
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
347
886
|
*/
|
|
348
887
|
var isURLSearchParams = kindOfTest('URLSearchParams');
|
|
888
|
+
var _map = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest),
|
|
889
|
+
_map2 = _slicedToArray(_map, 4),
|
|
890
|
+
isReadableStream = _map2[0],
|
|
891
|
+
isRequest = _map2[1],
|
|
892
|
+
isResponse = _map2[2],
|
|
893
|
+
isHeaders = _map2[3];
|
|
349
894
|
|
|
350
895
|
/**
|
|
351
896
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -445,8 +990,8 @@
|
|
|
445
990
|
*
|
|
446
991
|
* @returns {Object} Result of all merge properties
|
|
447
992
|
*/
|
|
448
|
-
function /* obj1, obj2, obj3, ... */
|
|
449
|
-
|
|
993
|
+
function merge( /* obj1, obj2, obj3, ... */
|
|
994
|
+
) {
|
|
450
995
|
var _ref2 = isContextDefined(this) && this || {},
|
|
451
996
|
caseless = _ref2.caseless;
|
|
452
997
|
var result = {};
|
|
@@ -719,8 +1264,7 @@
|
|
|
719
1264
|
};
|
|
720
1265
|
var noop = function noop() {};
|
|
721
1266
|
var toFiniteNumber = function toFiniteNumber(value, defaultValue) {
|
|
722
|
-
value = +value;
|
|
723
|
-
return Number.isFinite(value) ? value : defaultValue;
|
|
1267
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
724
1268
|
};
|
|
725
1269
|
var ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
726
1270
|
var DIGIT = '0123456789';
|
|
@@ -787,6 +1331,10 @@
|
|
|
787
1331
|
isBoolean: isBoolean,
|
|
788
1332
|
isObject: isObject,
|
|
789
1333
|
isPlainObject: isPlainObject,
|
|
1334
|
+
isReadableStream: isReadableStream,
|
|
1335
|
+
isRequest: isRequest,
|
|
1336
|
+
isResponse: isResponse,
|
|
1337
|
+
isHeaders: isHeaders,
|
|
790
1338
|
isUndefined: isUndefined,
|
|
791
1339
|
isDate: isDate,
|
|
792
1340
|
isFile: isFile,
|
|
@@ -1318,12 +1866,14 @@
|
|
|
1318
1866
|
// eslint-disable-next-line no-undef
|
|
1319
1867
|
self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';
|
|
1320
1868
|
}();
|
|
1869
|
+
var origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
1321
1870
|
|
|
1322
1871
|
var utils = /*#__PURE__*/Object.freeze({
|
|
1323
1872
|
__proto__: null,
|
|
1324
1873
|
hasBrowserEnv: hasBrowserEnv,
|
|
1325
1874
|
hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
|
|
1326
|
-
hasStandardBrowserEnv: hasStandardBrowserEnv
|
|
1875
|
+
hasStandardBrowserEnv: hasStandardBrowserEnv,
|
|
1876
|
+
origin: origin
|
|
1327
1877
|
});
|
|
1328
1878
|
|
|
1329
1879
|
var platform = _objectSpread2(_objectSpread2({}, utils), platform$1);
|
|
@@ -1387,6 +1937,7 @@
|
|
|
1387
1937
|
function formDataToJSON(formData) {
|
|
1388
1938
|
function buildPath(path, value, target, index) {
|
|
1389
1939
|
var name = path[index++];
|
|
1940
|
+
if (name === '__proto__') return true;
|
|
1390
1941
|
var isNumericKey = Number.isFinite(+name);
|
|
1391
1942
|
var isLast = index >= path.length;
|
|
1392
1943
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -1442,7 +1993,7 @@
|
|
|
1442
1993
|
}
|
|
1443
1994
|
var defaults = {
|
|
1444
1995
|
transitional: transitionalDefaults,
|
|
1445
|
-
adapter: ['xhr', 'http'],
|
|
1996
|
+
adapter: ['xhr', 'http', 'fetch'],
|
|
1446
1997
|
transformRequest: [function transformRequest(data, headers) {
|
|
1447
1998
|
var contentType = headers.getContentType() || '';
|
|
1448
1999
|
var hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
@@ -1452,12 +2003,9 @@
|
|
|
1452
2003
|
}
|
|
1453
2004
|
var isFormData = utils$1.isFormData(data);
|
|
1454
2005
|
if (isFormData) {
|
|
1455
|
-
if (!hasJSONContentType) {
|
|
1456
|
-
return data;
|
|
1457
|
-
}
|
|
1458
2006
|
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
1459
2007
|
}
|
|
1460
|
-
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) {
|
|
2008
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
1461
2009
|
return data;
|
|
1462
2010
|
}
|
|
1463
2011
|
if (utils$1.isArrayBufferView(data)) {
|
|
@@ -1489,6 +2037,9 @@
|
|
|
1489
2037
|
var transitional = this.transitional || defaults.transitional;
|
|
1490
2038
|
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
1491
2039
|
var JSONRequested = this.responseType === 'json';
|
|
2040
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
2041
|
+
return data;
|
|
2042
|
+
}
|
|
1492
2043
|
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
1493
2044
|
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
1494
2045
|
var strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -1657,6 +2208,21 @@
|
|
|
1657
2208
|
setHeaders(header, valueOrRewrite);
|
|
1658
2209
|
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
1659
2210
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
2211
|
+
} else if (utils$1.isHeaders(header)) {
|
|
2212
|
+
var _iterator = _createForOfIteratorHelper(header.entries()),
|
|
2213
|
+
_step;
|
|
2214
|
+
try {
|
|
2215
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2216
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
2217
|
+
key = _step$value[0],
|
|
2218
|
+
value = _step$value[1];
|
|
2219
|
+
setHeader(value, key, rewrite);
|
|
2220
|
+
}
|
|
2221
|
+
} catch (err) {
|
|
2222
|
+
_iterator.e(err);
|
|
2223
|
+
} finally {
|
|
2224
|
+
_iterator.f();
|
|
2225
|
+
}
|
|
1660
2226
|
} else {
|
|
1661
2227
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
1662
2228
|
}
|
|
@@ -1908,76 +2474,108 @@
|
|
|
1908
2474
|
}
|
|
1909
2475
|
}
|
|
1910
2476
|
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
var cookie = [name + '=' + encodeURIComponent(value)];
|
|
1916
|
-
utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
1917
|
-
utils$1.isString(path) && cookie.push('path=' + path);
|
|
1918
|
-
utils$1.isString(domain) && cookie.push('domain=' + domain);
|
|
1919
|
-
secure === true && cookie.push('secure');
|
|
1920
|
-
document.cookie = cookie.join('; ');
|
|
1921
|
-
},
|
|
1922
|
-
read: function read(name) {
|
|
1923
|
-
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
1924
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
1925
|
-
},
|
|
1926
|
-
remove: function remove(name) {
|
|
1927
|
-
this.write(name, '', Date.now() - 86400000);
|
|
1928
|
-
}
|
|
1929
|
-
} :
|
|
1930
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1931
|
-
{
|
|
1932
|
-
write: function write() {},
|
|
1933
|
-
read: function read() {
|
|
1934
|
-
return null;
|
|
1935
|
-
},
|
|
1936
|
-
remove: function remove() {}
|
|
1937
|
-
};
|
|
2477
|
+
function parseProtocol(url) {
|
|
2478
|
+
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
2479
|
+
return match && match[1] || '';
|
|
2480
|
+
}
|
|
1938
2481
|
|
|
1939
2482
|
/**
|
|
1940
|
-
*
|
|
1941
|
-
*
|
|
1942
|
-
* @param {
|
|
1943
|
-
*
|
|
1944
|
-
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
2483
|
+
* Calculate data maxRate
|
|
2484
|
+
* @param {Number} [samplesCount= 10]
|
|
2485
|
+
* @param {Number} [min= 1000]
|
|
2486
|
+
* @returns {Function}
|
|
1945
2487
|
*/
|
|
1946
|
-
function
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
2488
|
+
function speedometer(samplesCount, min) {
|
|
2489
|
+
samplesCount = samplesCount || 10;
|
|
2490
|
+
var bytes = new Array(samplesCount);
|
|
2491
|
+
var timestamps = new Array(samplesCount);
|
|
2492
|
+
var head = 0;
|
|
2493
|
+
var tail = 0;
|
|
2494
|
+
var firstSampleTS;
|
|
2495
|
+
min = min !== undefined ? min : 1000;
|
|
2496
|
+
return function push(chunkLength) {
|
|
2497
|
+
var now = Date.now();
|
|
2498
|
+
var startedAt = timestamps[tail];
|
|
2499
|
+
if (!firstSampleTS) {
|
|
2500
|
+
firstSampleTS = now;
|
|
2501
|
+
}
|
|
2502
|
+
bytes[head] = chunkLength;
|
|
2503
|
+
timestamps[head] = now;
|
|
2504
|
+
var i = tail;
|
|
2505
|
+
var bytesCount = 0;
|
|
2506
|
+
while (i !== head) {
|
|
2507
|
+
bytesCount += bytes[i++];
|
|
2508
|
+
i = i % samplesCount;
|
|
2509
|
+
}
|
|
2510
|
+
head = (head + 1) % samplesCount;
|
|
2511
|
+
if (head === tail) {
|
|
2512
|
+
tail = (tail + 1) % samplesCount;
|
|
2513
|
+
}
|
|
2514
|
+
if (now - firstSampleTS < min) {
|
|
2515
|
+
return;
|
|
2516
|
+
}
|
|
2517
|
+
var passed = startedAt && now - startedAt;
|
|
2518
|
+
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
2519
|
+
};
|
|
1951
2520
|
}
|
|
1952
2521
|
|
|
1953
2522
|
/**
|
|
1954
|
-
*
|
|
1955
|
-
*
|
|
1956
|
-
* @param {
|
|
1957
|
-
* @
|
|
1958
|
-
*
|
|
1959
|
-
* @returns {string} The combined URL
|
|
2523
|
+
* Throttle decorator
|
|
2524
|
+
* @param {Function} fn
|
|
2525
|
+
* @param {Number} freq
|
|
2526
|
+
* @return {Function}
|
|
1960
2527
|
*/
|
|
1961
|
-
function
|
|
1962
|
-
|
|
2528
|
+
function throttle(fn, freq) {
|
|
2529
|
+
var timestamp = 0;
|
|
2530
|
+
var threshold = 1000 / freq;
|
|
2531
|
+
var timer = null;
|
|
2532
|
+
return function throttled() {
|
|
2533
|
+
var _arguments = arguments;
|
|
2534
|
+
var force = this === true;
|
|
2535
|
+
var now = Date.now();
|
|
2536
|
+
if (force || now - timestamp > threshold) {
|
|
2537
|
+
if (timer) {
|
|
2538
|
+
clearTimeout(timer);
|
|
2539
|
+
timer = null;
|
|
2540
|
+
}
|
|
2541
|
+
timestamp = now;
|
|
2542
|
+
return fn.apply(null, arguments);
|
|
2543
|
+
}
|
|
2544
|
+
if (!timer) {
|
|
2545
|
+
timer = setTimeout(function () {
|
|
2546
|
+
timer = null;
|
|
2547
|
+
timestamp = Date.now();
|
|
2548
|
+
return fn.apply(null, _arguments);
|
|
2549
|
+
}, threshold - (now - timestamp));
|
|
2550
|
+
}
|
|
2551
|
+
};
|
|
1963
2552
|
}
|
|
1964
2553
|
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
2554
|
+
var progressEventReducer = (function (listener, isDownloadStream) {
|
|
2555
|
+
var freq = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
|
|
2556
|
+
var bytesNotified = 0;
|
|
2557
|
+
var _speedometer = speedometer(50, 250);
|
|
2558
|
+
return throttle(function (e) {
|
|
2559
|
+
var loaded = e.loaded;
|
|
2560
|
+
var total = e.lengthComputable ? e.total : undefined;
|
|
2561
|
+
var progressBytes = loaded - bytesNotified;
|
|
2562
|
+
var rate = _speedometer(progressBytes);
|
|
2563
|
+
var inRange = loaded <= total;
|
|
2564
|
+
bytesNotified = loaded;
|
|
2565
|
+
var data = {
|
|
2566
|
+
loaded: loaded,
|
|
2567
|
+
total: total,
|
|
2568
|
+
progress: total ? loaded / total : undefined,
|
|
2569
|
+
bytes: progressBytes,
|
|
2570
|
+
rate: rate ? rate : undefined,
|
|
2571
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
|
2572
|
+
event: e,
|
|
2573
|
+
lengthComputable: total != null
|
|
2574
|
+
};
|
|
2575
|
+
data[isDownloadStream ? 'download' : 'upload'] = true;
|
|
2576
|
+
listener(data);
|
|
2577
|
+
}, freq);
|
|
2578
|
+
});
|
|
1981
2579
|
|
|
1982
2580
|
var isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
|
1983
2581
|
// Standard browser envs have full support of the APIs needed to test
|
|
@@ -2034,118 +2632,250 @@
|
|
|
2034
2632
|
};
|
|
2035
2633
|
}();
|
|
2036
2634
|
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2635
|
+
var cookies = platform.hasStandardBrowserEnv ?
|
|
2636
|
+
// Standard browser envs support document.cookie
|
|
2637
|
+
{
|
|
2638
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
2639
|
+
var cookie = [name + '=' + encodeURIComponent(value)];
|
|
2640
|
+
utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
2641
|
+
utils$1.isString(path) && cookie.push('path=' + path);
|
|
2642
|
+
utils$1.isString(domain) && cookie.push('domain=' + domain);
|
|
2643
|
+
secure === true && cookie.push('secure');
|
|
2644
|
+
document.cookie = cookie.join('; ');
|
|
2645
|
+
},
|
|
2646
|
+
read: function read(name) {
|
|
2647
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
2648
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
2649
|
+
},
|
|
2650
|
+
remove: function remove(name) {
|
|
2651
|
+
this.write(name, '', Date.now() - 86400000);
|
|
2652
|
+
}
|
|
2653
|
+
} :
|
|
2654
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
2655
|
+
{
|
|
2656
|
+
write: function write() {},
|
|
2657
|
+
read: function read() {
|
|
2658
|
+
return null;
|
|
2659
|
+
},
|
|
2660
|
+
remove: function remove() {}
|
|
2661
|
+
};
|
|
2662
|
+
|
|
2663
|
+
/**
|
|
2664
|
+
* Determines whether the specified URL is absolute
|
|
2665
|
+
*
|
|
2666
|
+
* @param {string} url The URL to test
|
|
2667
|
+
*
|
|
2668
|
+
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
2669
|
+
*/
|
|
2670
|
+
function isAbsoluteURL(url) {
|
|
2671
|
+
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
2672
|
+
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
2673
|
+
// by any combination of letters, digits, plus, period, or hyphen.
|
|
2674
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2040
2675
|
}
|
|
2041
2676
|
|
|
2042
2677
|
/**
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2045
|
-
* @param {
|
|
2046
|
-
* @
|
|
2678
|
+
* Creates a new URL by combining the specified URLs
|
|
2679
|
+
*
|
|
2680
|
+
* @param {string} baseURL The base URL
|
|
2681
|
+
* @param {string} relativeURL The relative URL
|
|
2682
|
+
*
|
|
2683
|
+
* @returns {string} The combined URL
|
|
2047
2684
|
*/
|
|
2048
|
-
function
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2685
|
+
function combineURLs(baseURL, relativeURL) {
|
|
2686
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
2691
|
+
* only when the requestedURL is not already an absolute URL.
|
|
2692
|
+
* If the requestURL is absolute, this function returns the requestedURL untouched.
|
|
2693
|
+
*
|
|
2694
|
+
* @param {string} baseURL The base URL
|
|
2695
|
+
* @param {string} requestedURL Absolute or relative URL to combine
|
|
2696
|
+
*
|
|
2697
|
+
* @returns {string} The combined full path
|
|
2698
|
+
*/
|
|
2699
|
+
function buildFullPath(baseURL, requestedURL) {
|
|
2700
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
2701
|
+
return combineURLs(baseURL, requestedURL);
|
|
2702
|
+
}
|
|
2703
|
+
return requestedURL;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
var headersToObject = function headersToObject(thing) {
|
|
2707
|
+
return thing instanceof AxiosHeaders$1 ? _objectSpread2({}, thing) : thing;
|
|
2708
|
+
};
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* Config-specific merge-function which creates a new config-object
|
|
2712
|
+
* by merging two configuration objects together.
|
|
2713
|
+
*
|
|
2714
|
+
* @param {Object} config1
|
|
2715
|
+
* @param {Object} config2
|
|
2716
|
+
*
|
|
2717
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
|
2718
|
+
*/
|
|
2719
|
+
function mergeConfig(config1, config2) {
|
|
2720
|
+
// eslint-disable-next-line no-param-reassign
|
|
2721
|
+
config2 = config2 || {};
|
|
2722
|
+
var config = {};
|
|
2723
|
+
function getMergedValue(target, source, caseless) {
|
|
2724
|
+
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2725
|
+
return utils$1.merge.call({
|
|
2726
|
+
caseless: caseless
|
|
2727
|
+
}, target, source);
|
|
2728
|
+
} else if (utils$1.isPlainObject(source)) {
|
|
2729
|
+
return utils$1.merge({}, source);
|
|
2730
|
+
} else if (utils$1.isArray(source)) {
|
|
2731
|
+
return source.slice();
|
|
2061
2732
|
}
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2733
|
+
return source;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
// eslint-disable-next-line consistent-return
|
|
2737
|
+
function mergeDeepProperties(a, b, caseless) {
|
|
2738
|
+
if (!utils$1.isUndefined(b)) {
|
|
2739
|
+
return getMergedValue(a, b, caseless);
|
|
2740
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
2741
|
+
return getMergedValue(undefined, a, caseless);
|
|
2069
2742
|
}
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
// eslint-disable-next-line consistent-return
|
|
2746
|
+
function valueFromConfig2(a, b) {
|
|
2747
|
+
if (!utils$1.isUndefined(b)) {
|
|
2748
|
+
return getMergedValue(undefined, b);
|
|
2073
2749
|
}
|
|
2074
|
-
|
|
2075
|
-
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
// eslint-disable-next-line consistent-return
|
|
2753
|
+
function defaultToConfig2(a, b) {
|
|
2754
|
+
if (!utils$1.isUndefined(b)) {
|
|
2755
|
+
return getMergedValue(undefined, b);
|
|
2756
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
2757
|
+
return getMergedValue(undefined, a);
|
|
2076
2758
|
}
|
|
2077
|
-
|
|
2078
|
-
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
2079
|
-
};
|
|
2080
|
-
}
|
|
2759
|
+
}
|
|
2081
2760
|
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2761
|
+
// eslint-disable-next-line consistent-return
|
|
2762
|
+
function mergeDirectKeys(a, b, prop) {
|
|
2763
|
+
if (prop in config2) {
|
|
2764
|
+
return getMergedValue(a, b);
|
|
2765
|
+
} else if (prop in config1) {
|
|
2766
|
+
return getMergedValue(undefined, a);
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
var mergeMap = {
|
|
2770
|
+
url: valueFromConfig2,
|
|
2771
|
+
method: valueFromConfig2,
|
|
2772
|
+
data: valueFromConfig2,
|
|
2773
|
+
baseURL: defaultToConfig2,
|
|
2774
|
+
transformRequest: defaultToConfig2,
|
|
2775
|
+
transformResponse: defaultToConfig2,
|
|
2776
|
+
paramsSerializer: defaultToConfig2,
|
|
2777
|
+
timeout: defaultToConfig2,
|
|
2778
|
+
timeoutMessage: defaultToConfig2,
|
|
2779
|
+
withCredentials: defaultToConfig2,
|
|
2780
|
+
withXSRFToken: defaultToConfig2,
|
|
2781
|
+
adapter: defaultToConfig2,
|
|
2782
|
+
responseType: defaultToConfig2,
|
|
2783
|
+
xsrfCookieName: defaultToConfig2,
|
|
2784
|
+
xsrfHeaderName: defaultToConfig2,
|
|
2785
|
+
onUploadProgress: defaultToConfig2,
|
|
2786
|
+
onDownloadProgress: defaultToConfig2,
|
|
2787
|
+
decompress: defaultToConfig2,
|
|
2788
|
+
maxContentLength: defaultToConfig2,
|
|
2789
|
+
maxBodyLength: defaultToConfig2,
|
|
2790
|
+
beforeRedirect: defaultToConfig2,
|
|
2791
|
+
transport: defaultToConfig2,
|
|
2792
|
+
httpAgent: defaultToConfig2,
|
|
2793
|
+
httpsAgent: defaultToConfig2,
|
|
2794
|
+
cancelToken: defaultToConfig2,
|
|
2795
|
+
socketPath: defaultToConfig2,
|
|
2796
|
+
responseEncoding: defaultToConfig2,
|
|
2797
|
+
validateStatus: mergeDirectKeys,
|
|
2798
|
+
headers: function headers(a, b) {
|
|
2799
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), true);
|
|
2800
|
+
}
|
|
2103
2801
|
};
|
|
2802
|
+
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
2803
|
+
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
2804
|
+
var configValue = merge(config1[prop], config2[prop], prop);
|
|
2805
|
+
utils$1.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
2806
|
+
});
|
|
2807
|
+
return config;
|
|
2104
2808
|
}
|
|
2809
|
+
|
|
2810
|
+
var resolveConfig = (function (config) {
|
|
2811
|
+
var newConfig = mergeConfig({}, config);
|
|
2812
|
+
var data = newConfig.data,
|
|
2813
|
+
withXSRFToken = newConfig.withXSRFToken,
|
|
2814
|
+
xsrfHeaderName = newConfig.xsrfHeaderName,
|
|
2815
|
+
xsrfCookieName = newConfig.xsrfCookieName,
|
|
2816
|
+
headers = newConfig.headers,
|
|
2817
|
+
auth = newConfig.auth;
|
|
2818
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2819
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
2820
|
+
|
|
2821
|
+
// HTTP basic authentication
|
|
2822
|
+
if (auth) {
|
|
2823
|
+
headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
2824
|
+
}
|
|
2825
|
+
var contentType;
|
|
2826
|
+
if (utils$1.isFormData(data)) {
|
|
2827
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2828
|
+
headers.setContentType(undefined); // Let the browser set it
|
|
2829
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
2830
|
+
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
2831
|
+
var _ref = contentType ? contentType.split(';').map(function (token) {
|
|
2832
|
+
return token.trim();
|
|
2833
|
+
}).filter(Boolean) : [],
|
|
2834
|
+
_ref2 = _toArray(_ref),
|
|
2835
|
+
type = _ref2[0],
|
|
2836
|
+
tokens = _ref2.slice(1);
|
|
2837
|
+
headers.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
// Add xsrf header
|
|
2842
|
+
// This is only done if running in a standard browser environment.
|
|
2843
|
+
// Specifically not if we're in a web worker, or react-native.
|
|
2844
|
+
|
|
2845
|
+
if (platform.hasStandardBrowserEnv) {
|
|
2846
|
+
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
2847
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
|
|
2848
|
+
// Add xsrf header
|
|
2849
|
+
var xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
2850
|
+
if (xsrfValue) {
|
|
2851
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
return newConfig;
|
|
2856
|
+
});
|
|
2857
|
+
|
|
2105
2858
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
2106
2859
|
var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
2107
2860
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
2108
|
-
var
|
|
2109
|
-
var
|
|
2110
|
-
var
|
|
2111
|
-
|
|
2861
|
+
var _config = resolveConfig(config);
|
|
2862
|
+
var requestData = _config.data;
|
|
2863
|
+
var requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
2864
|
+
var responseType = _config.responseType;
|
|
2112
2865
|
var onCanceled;
|
|
2113
2866
|
function done() {
|
|
2114
|
-
if (
|
|
2115
|
-
|
|
2867
|
+
if (_config.cancelToken) {
|
|
2868
|
+
_config.cancelToken.unsubscribe(onCanceled);
|
|
2116
2869
|
}
|
|
2117
|
-
if (
|
|
2118
|
-
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
var contentType;
|
|
2122
|
-
if (utils$1.isFormData(requestData)) {
|
|
2123
|
-
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2124
|
-
requestHeaders.setContentType(false); // Let the browser set it
|
|
2125
|
-
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
2126
|
-
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
2127
|
-
var _ref = contentType ? contentType.split(';').map(function (token) {
|
|
2128
|
-
return token.trim();
|
|
2129
|
-
}).filter(Boolean) : [],
|
|
2130
|
-
_ref2 = _toArray(_ref),
|
|
2131
|
-
type = _ref2[0],
|
|
2132
|
-
tokens = _ref2.slice(1);
|
|
2133
|
-
requestHeaders.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));
|
|
2870
|
+
if (_config.signal) {
|
|
2871
|
+
_config.signal.removeEventListener('abort', onCanceled);
|
|
2134
2872
|
}
|
|
2135
2873
|
}
|
|
2136
2874
|
var request = new XMLHttpRequest();
|
|
2137
|
-
|
|
2138
|
-
// HTTP basic authentication
|
|
2139
|
-
if (config.auth) {
|
|
2140
|
-
var username = config.auth.username || '';
|
|
2141
|
-
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
|
2142
|
-
requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
|
|
2143
|
-
}
|
|
2144
|
-
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
2145
|
-
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
2875
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
2146
2876
|
|
|
2147
2877
|
// Set the request timeout in MS
|
|
2148
|
-
request.timeout =
|
|
2878
|
+
request.timeout = _config.timeout;
|
|
2149
2879
|
function onloadend() {
|
|
2150
2880
|
if (!request) {
|
|
2151
2881
|
return;
|
|
@@ -2200,7 +2930,7 @@
|
|
|
2200
2930
|
if (!request) {
|
|
2201
2931
|
return;
|
|
2202
2932
|
}
|
|
2203
|
-
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED,
|
|
2933
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, _config, request));
|
|
2204
2934
|
|
|
2205
2935
|
// Clean up request
|
|
2206
2936
|
request = null;
|
|
@@ -2210,7 +2940,7 @@
|
|
|
2210
2940
|
request.onerror = function handleError() {
|
|
2211
2941
|
// Real errors are hidden from us by the browser
|
|
2212
2942
|
// onerror should only fire if it's a network error
|
|
2213
|
-
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK,
|
|
2943
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, _config, request));
|
|
2214
2944
|
|
|
2215
2945
|
// Clean up request
|
|
2216
2946
|
request = null;
|
|
@@ -2218,31 +2948,17 @@
|
|
|
2218
2948
|
|
|
2219
2949
|
// Handle timeout
|
|
2220
2950
|
request.ontimeout = function handleTimeout() {
|
|
2221
|
-
var timeoutErrorMessage =
|
|
2222
|
-
var transitional =
|
|
2223
|
-
if (
|
|
2224
|
-
timeoutErrorMessage =
|
|
2951
|
+
var timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
2952
|
+
var transitional = _config.transitional || transitionalDefaults;
|
|
2953
|
+
if (_config.timeoutErrorMessage) {
|
|
2954
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2225
2955
|
}
|
|
2226
|
-
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
2956
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, _config, request));
|
|
2227
2957
|
|
|
2228
2958
|
// Clean up request
|
|
2229
2959
|
request = null;
|
|
2230
2960
|
};
|
|
2231
2961
|
|
|
2232
|
-
// Add xsrf header
|
|
2233
|
-
// This is only done if running in a standard browser environment.
|
|
2234
|
-
// Specifically not if we're in a web worker, or react-native.
|
|
2235
|
-
if (platform.hasStandardBrowserEnv) {
|
|
2236
|
-
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
2237
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(fullPath)) {
|
|
2238
|
-
// Add xsrf header
|
|
2239
|
-
var xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
|
|
2240
|
-
if (xsrfValue) {
|
|
2241
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
2962
|
// Remove Content-Type if data is undefined
|
|
2247
2963
|
requestData === undefined && requestHeaders.setContentType(null);
|
|
2248
2964
|
|
|
@@ -2254,25 +2970,25 @@
|
|
|
2254
2970
|
}
|
|
2255
2971
|
|
|
2256
2972
|
// Add withCredentials to request if needed
|
|
2257
|
-
if (!utils$1.isUndefined(
|
|
2258
|
-
request.withCredentials = !!
|
|
2973
|
+
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
2974
|
+
request.withCredentials = !!_config.withCredentials;
|
|
2259
2975
|
}
|
|
2260
2976
|
|
|
2261
2977
|
// Add responseType to request if needed
|
|
2262
2978
|
if (responseType && responseType !== 'json') {
|
|
2263
|
-
request.responseType =
|
|
2979
|
+
request.responseType = _config.responseType;
|
|
2264
2980
|
}
|
|
2265
2981
|
|
|
2266
2982
|
// Handle progress if needed
|
|
2267
|
-
if (typeof
|
|
2268
|
-
request.addEventListener('progress', progressEventReducer(
|
|
2983
|
+
if (typeof _config.onDownloadProgress === 'function') {
|
|
2984
|
+
request.addEventListener('progress', progressEventReducer(_config.onDownloadProgress, true));
|
|
2269
2985
|
}
|
|
2270
2986
|
|
|
2271
2987
|
// Not all browsers support upload events
|
|
2272
|
-
if (typeof
|
|
2273
|
-
request.upload.addEventListener('progress', progressEventReducer(
|
|
2988
|
+
if (typeof _config.onUploadProgress === 'function' && request.upload) {
|
|
2989
|
+
request.upload.addEventListener('progress', progressEventReducer(_config.onUploadProgress));
|
|
2274
2990
|
}
|
|
2275
|
-
if (
|
|
2991
|
+
if (_config.cancelToken || _config.signal) {
|
|
2276
2992
|
// Handle cancellation
|
|
2277
2993
|
// eslint-disable-next-line func-names
|
|
2278
2994
|
onCanceled = function onCanceled(cancel) {
|
|
@@ -2283,12 +2999,12 @@
|
|
|
2283
2999
|
request.abort();
|
|
2284
3000
|
request = null;
|
|
2285
3001
|
};
|
|
2286
|
-
|
|
2287
|
-
if (
|
|
2288
|
-
|
|
3002
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
3003
|
+
if (_config.signal) {
|
|
3004
|
+
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
2289
3005
|
}
|
|
2290
3006
|
}
|
|
2291
|
-
var protocol = parseProtocol(
|
|
3007
|
+
var protocol = parseProtocol(_config.url);
|
|
2292
3008
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
2293
3009
|
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
2294
3010
|
return;
|
|
@@ -2299,9 +3015,464 @@
|
|
|
2299
3015
|
});
|
|
2300
3016
|
};
|
|
2301
3017
|
|
|
3018
|
+
var composeSignals = function composeSignals(signals, timeout) {
|
|
3019
|
+
var controller = new AbortController();
|
|
3020
|
+
var aborted;
|
|
3021
|
+
var onabort = function onabort(cancel) {
|
|
3022
|
+
if (!aborted) {
|
|
3023
|
+
aborted = true;
|
|
3024
|
+
unsubscribe();
|
|
3025
|
+
var err = cancel instanceof Error ? cancel : this.reason;
|
|
3026
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
var timer = timeout && setTimeout(function () {
|
|
3030
|
+
onabort(new AxiosError("timeout ".concat(timeout, " of ms exceeded"), AxiosError.ETIMEDOUT));
|
|
3031
|
+
}, timeout);
|
|
3032
|
+
var unsubscribe = function unsubscribe() {
|
|
3033
|
+
if (signals) {
|
|
3034
|
+
timer && clearTimeout(timer);
|
|
3035
|
+
timer = null;
|
|
3036
|
+
signals.forEach(function (signal) {
|
|
3037
|
+
signal && (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));
|
|
3038
|
+
});
|
|
3039
|
+
signals = null;
|
|
3040
|
+
}
|
|
3041
|
+
};
|
|
3042
|
+
signals.forEach(function (signal) {
|
|
3043
|
+
return signal && signal.addEventListener && signal.addEventListener('abort', onabort);
|
|
3044
|
+
});
|
|
3045
|
+
var signal = controller.signal;
|
|
3046
|
+
signal.unsubscribe = unsubscribe;
|
|
3047
|
+
return [signal, function () {
|
|
3048
|
+
timer && clearTimeout(timer);
|
|
3049
|
+
timer = null;
|
|
3050
|
+
}];
|
|
3051
|
+
};
|
|
3052
|
+
var composeSignals$1 = composeSignals;
|
|
3053
|
+
|
|
3054
|
+
var streamChunk = /*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk, chunkSize) {
|
|
3055
|
+
var len, pos, end;
|
|
3056
|
+
return _regeneratorRuntime().wrap(function streamChunk$(_context) {
|
|
3057
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3058
|
+
case 0:
|
|
3059
|
+
len = chunk.byteLength;
|
|
3060
|
+
if (!(!chunkSize || len < chunkSize)) {
|
|
3061
|
+
_context.next = 5;
|
|
3062
|
+
break;
|
|
3063
|
+
}
|
|
3064
|
+
_context.next = 4;
|
|
3065
|
+
return chunk;
|
|
3066
|
+
case 4:
|
|
3067
|
+
return _context.abrupt("return");
|
|
3068
|
+
case 5:
|
|
3069
|
+
pos = 0;
|
|
3070
|
+
case 6:
|
|
3071
|
+
if (!(pos < len)) {
|
|
3072
|
+
_context.next = 13;
|
|
3073
|
+
break;
|
|
3074
|
+
}
|
|
3075
|
+
end = pos + chunkSize;
|
|
3076
|
+
_context.next = 10;
|
|
3077
|
+
return chunk.slice(pos, end);
|
|
3078
|
+
case 10:
|
|
3079
|
+
pos = end;
|
|
3080
|
+
_context.next = 6;
|
|
3081
|
+
break;
|
|
3082
|
+
case 13:
|
|
3083
|
+
case "end":
|
|
3084
|
+
return _context.stop();
|
|
3085
|
+
}
|
|
3086
|
+
}, streamChunk);
|
|
3087
|
+
});
|
|
3088
|
+
var readBytes = /*#__PURE__*/function () {
|
|
3089
|
+
var _ref = _wrapAsyncGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable, chunkSize, encode) {
|
|
3090
|
+
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk;
|
|
3091
|
+
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
3092
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
3093
|
+
case 0:
|
|
3094
|
+
_iteratorAbruptCompletion = false;
|
|
3095
|
+
_didIteratorError = false;
|
|
3096
|
+
_context2.prev = 2;
|
|
3097
|
+
_iterator = _asyncIterator(iterable);
|
|
3098
|
+
case 4:
|
|
3099
|
+
_context2.next = 6;
|
|
3100
|
+
return _awaitAsyncGenerator(_iterator.next());
|
|
3101
|
+
case 6:
|
|
3102
|
+
if (!(_iteratorAbruptCompletion = !(_step = _context2.sent).done)) {
|
|
3103
|
+
_context2.next = 27;
|
|
3104
|
+
break;
|
|
3105
|
+
}
|
|
3106
|
+
chunk = _step.value;
|
|
3107
|
+
_context2.t0 = _asyncGeneratorDelegate;
|
|
3108
|
+
_context2.t1 = _asyncIterator;
|
|
3109
|
+
_context2.t2 = streamChunk;
|
|
3110
|
+
if (!ArrayBuffer.isView(chunk)) {
|
|
3111
|
+
_context2.next = 15;
|
|
3112
|
+
break;
|
|
3113
|
+
}
|
|
3114
|
+
_context2.t3 = chunk;
|
|
3115
|
+
_context2.next = 18;
|
|
3116
|
+
break;
|
|
3117
|
+
case 15:
|
|
3118
|
+
_context2.next = 17;
|
|
3119
|
+
return _awaitAsyncGenerator(encode(String(chunk)));
|
|
3120
|
+
case 17:
|
|
3121
|
+
_context2.t3 = _context2.sent;
|
|
3122
|
+
case 18:
|
|
3123
|
+
_context2.t4 = _context2.t3;
|
|
3124
|
+
_context2.t5 = chunkSize;
|
|
3125
|
+
_context2.t6 = (0, _context2.t2)(_context2.t4, _context2.t5);
|
|
3126
|
+
_context2.t7 = (0, _context2.t1)(_context2.t6);
|
|
3127
|
+
_context2.t8 = _awaitAsyncGenerator;
|
|
3128
|
+
return _context2.delegateYield((0, _context2.t0)(_context2.t7, _context2.t8), "t9", 24);
|
|
3129
|
+
case 24:
|
|
3130
|
+
_iteratorAbruptCompletion = false;
|
|
3131
|
+
_context2.next = 4;
|
|
3132
|
+
break;
|
|
3133
|
+
case 27:
|
|
3134
|
+
_context2.next = 33;
|
|
3135
|
+
break;
|
|
3136
|
+
case 29:
|
|
3137
|
+
_context2.prev = 29;
|
|
3138
|
+
_context2.t10 = _context2["catch"](2);
|
|
3139
|
+
_didIteratorError = true;
|
|
3140
|
+
_iteratorError = _context2.t10;
|
|
3141
|
+
case 33:
|
|
3142
|
+
_context2.prev = 33;
|
|
3143
|
+
_context2.prev = 34;
|
|
3144
|
+
if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
|
|
3145
|
+
_context2.next = 38;
|
|
3146
|
+
break;
|
|
3147
|
+
}
|
|
3148
|
+
_context2.next = 38;
|
|
3149
|
+
return _awaitAsyncGenerator(_iterator["return"]());
|
|
3150
|
+
case 38:
|
|
3151
|
+
_context2.prev = 38;
|
|
3152
|
+
if (!_didIteratorError) {
|
|
3153
|
+
_context2.next = 41;
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
throw _iteratorError;
|
|
3157
|
+
case 41:
|
|
3158
|
+
return _context2.finish(38);
|
|
3159
|
+
case 42:
|
|
3160
|
+
return _context2.finish(33);
|
|
3161
|
+
case 43:
|
|
3162
|
+
case "end":
|
|
3163
|
+
return _context2.stop();
|
|
3164
|
+
}
|
|
3165
|
+
}, _callee, null, [[2, 29, 33, 43], [34,, 38, 42]]);
|
|
3166
|
+
}));
|
|
3167
|
+
return function readBytes(_x, _x2, _x3) {
|
|
3168
|
+
return _ref.apply(this, arguments);
|
|
3169
|
+
};
|
|
3170
|
+
}();
|
|
3171
|
+
var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish, encode) {
|
|
3172
|
+
var iterator = readBytes(stream, chunkSize, encode);
|
|
3173
|
+
var bytes = 0;
|
|
3174
|
+
return new ReadableStream({
|
|
3175
|
+
type: 'bytes',
|
|
3176
|
+
pull: function pull(controller) {
|
|
3177
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
3178
|
+
var _yield$iterator$next, done, value, len;
|
|
3179
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context3) {
|
|
3180
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
3181
|
+
case 0:
|
|
3182
|
+
_context3.next = 2;
|
|
3183
|
+
return iterator.next();
|
|
3184
|
+
case 2:
|
|
3185
|
+
_yield$iterator$next = _context3.sent;
|
|
3186
|
+
done = _yield$iterator$next.done;
|
|
3187
|
+
value = _yield$iterator$next.value;
|
|
3188
|
+
if (!done) {
|
|
3189
|
+
_context3.next = 9;
|
|
3190
|
+
break;
|
|
3191
|
+
}
|
|
3192
|
+
controller.close();
|
|
3193
|
+
onFinish();
|
|
3194
|
+
return _context3.abrupt("return");
|
|
3195
|
+
case 9:
|
|
3196
|
+
len = value.byteLength;
|
|
3197
|
+
onProgress && onProgress(bytes += len);
|
|
3198
|
+
controller.enqueue(new Uint8Array(value));
|
|
3199
|
+
case 12:
|
|
3200
|
+
case "end":
|
|
3201
|
+
return _context3.stop();
|
|
3202
|
+
}
|
|
3203
|
+
}, _callee2);
|
|
3204
|
+
}))();
|
|
3205
|
+
},
|
|
3206
|
+
cancel: function cancel(reason) {
|
|
3207
|
+
onFinish(reason);
|
|
3208
|
+
return iterator["return"]();
|
|
3209
|
+
}
|
|
3210
|
+
}, {
|
|
3211
|
+
highWaterMark: 2
|
|
3212
|
+
});
|
|
3213
|
+
};
|
|
3214
|
+
|
|
3215
|
+
var fetchProgressDecorator = function fetchProgressDecorator(total, fn) {
|
|
3216
|
+
var lengthComputable = total != null;
|
|
3217
|
+
return function (loaded) {
|
|
3218
|
+
return setTimeout(function () {
|
|
3219
|
+
return fn({
|
|
3220
|
+
lengthComputable: lengthComputable,
|
|
3221
|
+
total: total,
|
|
3222
|
+
loaded: loaded
|
|
3223
|
+
});
|
|
3224
|
+
});
|
|
3225
|
+
};
|
|
3226
|
+
};
|
|
3227
|
+
var isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
|
3228
|
+
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
|
3229
|
+
|
|
3230
|
+
// used only inside the fetch adapter
|
|
3231
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
|
|
3232
|
+
return function (str) {
|
|
3233
|
+
return encoder.encode(str);
|
|
3234
|
+
};
|
|
3235
|
+
}(new TextEncoder()) : ( /*#__PURE__*/function () {
|
|
3236
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
3237
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3238
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3239
|
+
case 0:
|
|
3240
|
+
_context.t0 = Uint8Array;
|
|
3241
|
+
_context.next = 3;
|
|
3242
|
+
return new Response(str).arrayBuffer();
|
|
3243
|
+
case 3:
|
|
3244
|
+
_context.t1 = _context.sent;
|
|
3245
|
+
return _context.abrupt("return", new _context.t0(_context.t1));
|
|
3246
|
+
case 5:
|
|
3247
|
+
case "end":
|
|
3248
|
+
return _context.stop();
|
|
3249
|
+
}
|
|
3250
|
+
}, _callee);
|
|
3251
|
+
}));
|
|
3252
|
+
return function (_x) {
|
|
3253
|
+
return _ref.apply(this, arguments);
|
|
3254
|
+
};
|
|
3255
|
+
}()));
|
|
3256
|
+
var supportsRequestStream = isReadableStreamSupported && function () {
|
|
3257
|
+
var duplexAccessed = false;
|
|
3258
|
+
var hasContentType = new Request(platform.origin, {
|
|
3259
|
+
body: new ReadableStream(),
|
|
3260
|
+
method: 'POST',
|
|
3261
|
+
get duplex() {
|
|
3262
|
+
duplexAccessed = true;
|
|
3263
|
+
return 'half';
|
|
3264
|
+
}
|
|
3265
|
+
}).headers.has('Content-Type');
|
|
3266
|
+
return duplexAccessed && !hasContentType;
|
|
3267
|
+
}();
|
|
3268
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3269
|
+
var supportsResponseStream = isReadableStreamSupported && !!function () {
|
|
3270
|
+
try {
|
|
3271
|
+
return utils$1.isReadableStream(new Response('').body);
|
|
3272
|
+
} catch (err) {
|
|
3273
|
+
// return undefined
|
|
3274
|
+
}
|
|
3275
|
+
}();
|
|
3276
|
+
var resolvers = {
|
|
3277
|
+
stream: supportsResponseStream && function (res) {
|
|
3278
|
+
return res.body;
|
|
3279
|
+
}
|
|
3280
|
+
};
|
|
3281
|
+
isFetchSupported && function (res) {
|
|
3282
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {
|
|
3283
|
+
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? function (res) {
|
|
3284
|
+
return res[type]();
|
|
3285
|
+
} : function (_, config) {
|
|
3286
|
+
throw new AxiosError("Response type '".concat(type, "' is not supported"), AxiosError.ERR_NOT_SUPPORT, config);
|
|
3287
|
+
});
|
|
3288
|
+
});
|
|
3289
|
+
}(new Response());
|
|
3290
|
+
var getBodyLength = /*#__PURE__*/function () {
|
|
3291
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body) {
|
|
3292
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3293
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
3294
|
+
case 0:
|
|
3295
|
+
if (!(body == null)) {
|
|
3296
|
+
_context2.next = 2;
|
|
3297
|
+
break;
|
|
3298
|
+
}
|
|
3299
|
+
return _context2.abrupt("return", 0);
|
|
3300
|
+
case 2:
|
|
3301
|
+
if (!utils$1.isBlob(body)) {
|
|
3302
|
+
_context2.next = 4;
|
|
3303
|
+
break;
|
|
3304
|
+
}
|
|
3305
|
+
return _context2.abrupt("return", body.size);
|
|
3306
|
+
case 4:
|
|
3307
|
+
if (!utils$1.isSpecCompliantForm(body)) {
|
|
3308
|
+
_context2.next = 8;
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
_context2.next = 7;
|
|
3312
|
+
return new Request(body).arrayBuffer();
|
|
3313
|
+
case 7:
|
|
3314
|
+
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3315
|
+
case 8:
|
|
3316
|
+
if (!utils$1.isArrayBufferView(body)) {
|
|
3317
|
+
_context2.next = 10;
|
|
3318
|
+
break;
|
|
3319
|
+
}
|
|
3320
|
+
return _context2.abrupt("return", body.byteLength);
|
|
3321
|
+
case 10:
|
|
3322
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
3323
|
+
body = body + '';
|
|
3324
|
+
}
|
|
3325
|
+
if (!utils$1.isString(body)) {
|
|
3326
|
+
_context2.next = 15;
|
|
3327
|
+
break;
|
|
3328
|
+
}
|
|
3329
|
+
_context2.next = 14;
|
|
3330
|
+
return encodeText(body);
|
|
3331
|
+
case 14:
|
|
3332
|
+
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3333
|
+
case 15:
|
|
3334
|
+
case "end":
|
|
3335
|
+
return _context2.stop();
|
|
3336
|
+
}
|
|
3337
|
+
}, _callee2);
|
|
3338
|
+
}));
|
|
3339
|
+
return function getBodyLength(_x2) {
|
|
3340
|
+
return _ref2.apply(this, arguments);
|
|
3341
|
+
};
|
|
3342
|
+
}();
|
|
3343
|
+
var resolveBodyLength = /*#__PURE__*/function () {
|
|
3344
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(headers, body) {
|
|
3345
|
+
var length;
|
|
3346
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3347
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
3348
|
+
case 0:
|
|
3349
|
+
length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
3350
|
+
return _context3.abrupt("return", length == null ? getBodyLength(body) : length);
|
|
3351
|
+
case 2:
|
|
3352
|
+
case "end":
|
|
3353
|
+
return _context3.stop();
|
|
3354
|
+
}
|
|
3355
|
+
}, _callee3);
|
|
3356
|
+
}));
|
|
3357
|
+
return function resolveBodyLength(_x3, _x4) {
|
|
3358
|
+
return _ref3.apply(this, arguments);
|
|
3359
|
+
};
|
|
3360
|
+
}();
|
|
3361
|
+
var fetchAdapter = isFetchSupported && ( /*#__PURE__*/function () {
|
|
3362
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config) {
|
|
3363
|
+
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _ref5, _ref6, composedSignal, stopTimeout, finished, request, onFinish, requestContentLength, _request, contentTypeHeader, response, isStreamResponse, options, responseContentLength, responseData;
|
|
3364
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3365
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
3366
|
+
case 0:
|
|
3367
|
+
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
3368
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3369
|
+
_ref5 = signal || cancelToken || timeout ? composeSignals$1([signal, cancelToken], timeout) : [], _ref6 = _slicedToArray(_ref5, 2), composedSignal = _ref6[0], stopTimeout = _ref6[1];
|
|
3370
|
+
onFinish = function onFinish() {
|
|
3371
|
+
!finished && setTimeout(function () {
|
|
3372
|
+
composedSignal && composedSignal.unsubscribe();
|
|
3373
|
+
});
|
|
3374
|
+
finished = true;
|
|
3375
|
+
};
|
|
3376
|
+
_context4.prev = 4;
|
|
3377
|
+
_context4.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
|
|
3378
|
+
if (!_context4.t0) {
|
|
3379
|
+
_context4.next = 11;
|
|
3380
|
+
break;
|
|
3381
|
+
}
|
|
3382
|
+
_context4.next = 9;
|
|
3383
|
+
return resolveBodyLength(headers, data);
|
|
3384
|
+
case 9:
|
|
3385
|
+
_context4.t1 = requestContentLength = _context4.sent;
|
|
3386
|
+
_context4.t0 = _context4.t1 !== 0;
|
|
3387
|
+
case 11:
|
|
3388
|
+
if (!_context4.t0) {
|
|
3389
|
+
_context4.next = 15;
|
|
3390
|
+
break;
|
|
3391
|
+
}
|
|
3392
|
+
_request = new Request(url, {
|
|
3393
|
+
method: 'POST',
|
|
3394
|
+
body: data,
|
|
3395
|
+
duplex: "half"
|
|
3396
|
+
});
|
|
3397
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
3398
|
+
headers.setContentType(contentTypeHeader);
|
|
3399
|
+
}
|
|
3400
|
+
if (_request.body) {
|
|
3401
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(requestContentLength, progressEventReducer(onUploadProgress)), null, encodeText);
|
|
3402
|
+
}
|
|
3403
|
+
case 15:
|
|
3404
|
+
if (!utils$1.isString(withCredentials)) {
|
|
3405
|
+
withCredentials = withCredentials ? 'cors' : 'omit';
|
|
3406
|
+
}
|
|
3407
|
+
request = new Request(url, _objectSpread2(_objectSpread2({}, fetchOptions), {}, {
|
|
3408
|
+
signal: composedSignal,
|
|
3409
|
+
method: method.toUpperCase(),
|
|
3410
|
+
headers: headers.normalize().toJSON(),
|
|
3411
|
+
body: data,
|
|
3412
|
+
duplex: "half",
|
|
3413
|
+
withCredentials: withCredentials
|
|
3414
|
+
}));
|
|
3415
|
+
_context4.next = 19;
|
|
3416
|
+
return fetch(request);
|
|
3417
|
+
case 19:
|
|
3418
|
+
response = _context4.sent;
|
|
3419
|
+
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3420
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
|
|
3421
|
+
options = {};
|
|
3422
|
+
['status', 'statusText', 'headers'].forEach(function (prop) {
|
|
3423
|
+
options[prop] = response[prop];
|
|
3424
|
+
});
|
|
3425
|
+
responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
3426
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(responseContentLength, progressEventReducer(onDownloadProgress, true)), isStreamResponse && onFinish, encodeText), options);
|
|
3427
|
+
}
|
|
3428
|
+
responseType = responseType || 'text';
|
|
3429
|
+
_context4.next = 25;
|
|
3430
|
+
return resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3431
|
+
case 25:
|
|
3432
|
+
responseData = _context4.sent;
|
|
3433
|
+
!isStreamResponse && onFinish();
|
|
3434
|
+
stopTimeout && stopTimeout();
|
|
3435
|
+
_context4.next = 30;
|
|
3436
|
+
return new Promise(function (resolve, reject) {
|
|
3437
|
+
settle(resolve, reject, {
|
|
3438
|
+
data: responseData,
|
|
3439
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3440
|
+
status: response.status,
|
|
3441
|
+
statusText: response.statusText,
|
|
3442
|
+
config: config,
|
|
3443
|
+
request: request
|
|
3444
|
+
});
|
|
3445
|
+
});
|
|
3446
|
+
case 30:
|
|
3447
|
+
return _context4.abrupt("return", _context4.sent);
|
|
3448
|
+
case 33:
|
|
3449
|
+
_context4.prev = 33;
|
|
3450
|
+
_context4.t2 = _context4["catch"](4);
|
|
3451
|
+
onFinish();
|
|
3452
|
+
if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /fetch/i.test(_context4.t2.message))) {
|
|
3453
|
+
_context4.next = 38;
|
|
3454
|
+
break;
|
|
3455
|
+
}
|
|
3456
|
+
throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
3457
|
+
cause: _context4.t2.cause || _context4.t2
|
|
3458
|
+
});
|
|
3459
|
+
case 38:
|
|
3460
|
+
throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
|
|
3461
|
+
case 39:
|
|
3462
|
+
case "end":
|
|
3463
|
+
return _context4.stop();
|
|
3464
|
+
}
|
|
3465
|
+
}, _callee4, null, [[4, 33]]);
|
|
3466
|
+
}));
|
|
3467
|
+
return function (_x5) {
|
|
3468
|
+
return _ref4.apply(this, arguments);
|
|
3469
|
+
};
|
|
3470
|
+
}());
|
|
3471
|
+
|
|
2302
3472
|
var knownAdapters = {
|
|
2303
3473
|
http: httpAdapter,
|
|
2304
|
-
xhr: xhrAdapter
|
|
3474
|
+
xhr: xhrAdapter,
|
|
3475
|
+
fetch: fetchAdapter
|
|
2305
3476
|
};
|
|
2306
3477
|
utils$1.forEach(knownAdapters, function (fn, value) {
|
|
2307
3478
|
if (fn) {
|
|
@@ -2415,111 +3586,7 @@
|
|
|
2415
3586
|
});
|
|
2416
3587
|
}
|
|
2417
3588
|
|
|
2418
|
-
var
|
|
2419
|
-
return thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing;
|
|
2420
|
-
};
|
|
2421
|
-
|
|
2422
|
-
/**
|
|
2423
|
-
* Config-specific merge-function which creates a new config-object
|
|
2424
|
-
* by merging two configuration objects together.
|
|
2425
|
-
*
|
|
2426
|
-
* @param {Object} config1
|
|
2427
|
-
* @param {Object} config2
|
|
2428
|
-
*
|
|
2429
|
-
* @returns {Object} New object resulting from merging config2 to config1
|
|
2430
|
-
*/
|
|
2431
|
-
function mergeConfig(config1, config2) {
|
|
2432
|
-
// eslint-disable-next-line no-param-reassign
|
|
2433
|
-
config2 = config2 || {};
|
|
2434
|
-
var config = {};
|
|
2435
|
-
function getMergedValue(target, source, caseless) {
|
|
2436
|
-
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2437
|
-
return utils$1.merge.call({
|
|
2438
|
-
caseless: caseless
|
|
2439
|
-
}, target, source);
|
|
2440
|
-
} else if (utils$1.isPlainObject(source)) {
|
|
2441
|
-
return utils$1.merge({}, source);
|
|
2442
|
-
} else if (utils$1.isArray(source)) {
|
|
2443
|
-
return source.slice();
|
|
2444
|
-
}
|
|
2445
|
-
return source;
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
// eslint-disable-next-line consistent-return
|
|
2449
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
2450
|
-
if (!utils$1.isUndefined(b)) {
|
|
2451
|
-
return getMergedValue(a, b, caseless);
|
|
2452
|
-
} else if (!utils$1.isUndefined(a)) {
|
|
2453
|
-
return getMergedValue(undefined, a, caseless);
|
|
2454
|
-
}
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
// eslint-disable-next-line consistent-return
|
|
2458
|
-
function valueFromConfig2(a, b) {
|
|
2459
|
-
if (!utils$1.isUndefined(b)) {
|
|
2460
|
-
return getMergedValue(undefined, b);
|
|
2461
|
-
}
|
|
2462
|
-
}
|
|
2463
|
-
|
|
2464
|
-
// eslint-disable-next-line consistent-return
|
|
2465
|
-
function defaultToConfig2(a, b) {
|
|
2466
|
-
if (!utils$1.isUndefined(b)) {
|
|
2467
|
-
return getMergedValue(undefined, b);
|
|
2468
|
-
} else if (!utils$1.isUndefined(a)) {
|
|
2469
|
-
return getMergedValue(undefined, a);
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
|
|
2473
|
-
// eslint-disable-next-line consistent-return
|
|
2474
|
-
function mergeDirectKeys(a, b, prop) {
|
|
2475
|
-
if (prop in config2) {
|
|
2476
|
-
return getMergedValue(a, b);
|
|
2477
|
-
} else if (prop in config1) {
|
|
2478
|
-
return getMergedValue(undefined, a);
|
|
2479
|
-
}
|
|
2480
|
-
}
|
|
2481
|
-
var mergeMap = {
|
|
2482
|
-
url: valueFromConfig2,
|
|
2483
|
-
method: valueFromConfig2,
|
|
2484
|
-
data: valueFromConfig2,
|
|
2485
|
-
baseURL: defaultToConfig2,
|
|
2486
|
-
transformRequest: defaultToConfig2,
|
|
2487
|
-
transformResponse: defaultToConfig2,
|
|
2488
|
-
paramsSerializer: defaultToConfig2,
|
|
2489
|
-
timeout: defaultToConfig2,
|
|
2490
|
-
timeoutMessage: defaultToConfig2,
|
|
2491
|
-
withCredentials: defaultToConfig2,
|
|
2492
|
-
withXSRFToken: defaultToConfig2,
|
|
2493
|
-
adapter: defaultToConfig2,
|
|
2494
|
-
responseType: defaultToConfig2,
|
|
2495
|
-
xsrfCookieName: defaultToConfig2,
|
|
2496
|
-
xsrfHeaderName: defaultToConfig2,
|
|
2497
|
-
onUploadProgress: defaultToConfig2,
|
|
2498
|
-
onDownloadProgress: defaultToConfig2,
|
|
2499
|
-
decompress: defaultToConfig2,
|
|
2500
|
-
maxContentLength: defaultToConfig2,
|
|
2501
|
-
maxBodyLength: defaultToConfig2,
|
|
2502
|
-
beforeRedirect: defaultToConfig2,
|
|
2503
|
-
transport: defaultToConfig2,
|
|
2504
|
-
httpAgent: defaultToConfig2,
|
|
2505
|
-
httpsAgent: defaultToConfig2,
|
|
2506
|
-
cancelToken: defaultToConfig2,
|
|
2507
|
-
socketPath: defaultToConfig2,
|
|
2508
|
-
responseEncoding: defaultToConfig2,
|
|
2509
|
-
validateStatus: mergeDirectKeys,
|
|
2510
|
-
headers: function headers(a, b) {
|
|
2511
|
-
return mergeDeepProperties(headersToObject(a), headersToObject(b), true);
|
|
2512
|
-
}
|
|
2513
|
-
};
|
|
2514
|
-
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
2515
|
-
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
2516
|
-
var configValue = merge(config1[prop], config2[prop], prop);
|
|
2517
|
-
utils$1.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
2518
|
-
});
|
|
2519
|
-
return config;
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
var VERSION = "1.6.2";
|
|
3589
|
+
var VERSION = "1.7.2";
|
|
2523
3590
|
|
|
2524
3591
|
var validators$1 = {};
|
|
2525
3592
|
|
|
@@ -2625,7 +3692,51 @@
|
|
|
2625
3692
|
*/
|
|
2626
3693
|
_createClass(Axios, [{
|
|
2627
3694
|
key: "request",
|
|
2628
|
-
value: function
|
|
3695
|
+
value: (function () {
|
|
3696
|
+
var _request2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl, config) {
|
|
3697
|
+
var dummy, stack;
|
|
3698
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3699
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3700
|
+
case 0:
|
|
3701
|
+
_context.prev = 0;
|
|
3702
|
+
_context.next = 3;
|
|
3703
|
+
return this._request(configOrUrl, config);
|
|
3704
|
+
case 3:
|
|
3705
|
+
return _context.abrupt("return", _context.sent);
|
|
3706
|
+
case 6:
|
|
3707
|
+
_context.prev = 6;
|
|
3708
|
+
_context.t0 = _context["catch"](0);
|
|
3709
|
+
if (_context.t0 instanceof Error) {
|
|
3710
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
|
3711
|
+
|
|
3712
|
+
// slice off the Error: ... line
|
|
3713
|
+
stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
3714
|
+
try {
|
|
3715
|
+
if (!_context.t0.stack) {
|
|
3716
|
+
_context.t0.stack = stack;
|
|
3717
|
+
// match without the 2 top stack lines
|
|
3718
|
+
} else if (stack && !String(_context.t0.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
|
|
3719
|
+
_context.t0.stack += '\n' + stack;
|
|
3720
|
+
}
|
|
3721
|
+
} catch (e) {
|
|
3722
|
+
// ignore the case where "stack" is an un-writable property
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
throw _context.t0;
|
|
3726
|
+
case 10:
|
|
3727
|
+
case "end":
|
|
3728
|
+
return _context.stop();
|
|
3729
|
+
}
|
|
3730
|
+
}, _callee, this, [[0, 6]]);
|
|
3731
|
+
}));
|
|
3732
|
+
function request(_x, _x2) {
|
|
3733
|
+
return _request2.apply(this, arguments);
|
|
3734
|
+
}
|
|
3735
|
+
return request;
|
|
3736
|
+
}())
|
|
3737
|
+
}, {
|
|
3738
|
+
key: "_request",
|
|
3739
|
+
value: function _request(configOrUrl, config) {
|
|
2629
3740
|
/*eslint no-param-reassign:0*/
|
|
2630
3741
|
// Allow for axios('example/url'[, config]) a la fetch API
|
|
2631
3742
|
if (typeof configOrUrl === 'string') {
|