xmlui 0.4.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/dist/Pdf-DeGhSMXe.mjs +19537 -0
- package/dist/Pdf.css +1 -0
- package/dist/apiInterceptorWorker-CwuUhYyc.mjs +9229 -0
- package/dist/array-USo-Szhp.mjs +12 -0
- package/dist/index-C24dkfpd.mjs +1434 -0
- package/dist/index-ao27SnVp.mjs +145185 -0
- package/dist/index.css +1 -0
- package/dist/nivo-bar.es-CWh0ZlxB.mjs +1666 -0
- package/dist/nivo-geo.es-BTqNt5Db.mjs +1579 -0
- package/dist/nivo-legends.es-BuIxHGSU.mjs +6916 -0
- package/dist/nivo-pie.es-BvCBFA0L.mjs +700 -0
- package/dist/react-apexcharts.min-DqWuDOyO.mjs +8881 -0
- package/dist/scripts/bin/bootstrap.js +11 -0
- package/dist/scripts/bin/build.js +256 -0
- package/dist/scripts/bin/index.js +88 -0
- package/dist/scripts/bin/preview.js +27 -0
- package/dist/scripts/bin/start.js +41 -0
- package/dist/scripts/bin/vite-ueml-plugin.js +113 -0
- package/dist/scripts/bin/viteConfig.js +112 -0
- package/dist/scripts/src/abstractions/ActionDefs.js +2 -0
- package/dist/scripts/src/abstractions/AppContextDefs.js +2 -0
- package/dist/scripts/src/abstractions/BlockScope.js +4 -0
- package/dist/scripts/src/abstractions/ComponentDefs.js +2 -0
- package/dist/scripts/src/abstractions/ComponentDescriptorDefs.js +2 -0
- package/dist/scripts/src/abstractions/ContainerDefs.js +2 -0
- package/dist/scripts/src/abstractions/FunctionDefs.js +2 -0
- package/dist/scripts/src/abstractions/RendererDefs.js +2 -0
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +2 -0
- package/dist/scripts/src/abstractions/scripting/ScriptingSourceTree.js +2 -0
- package/dist/scripts/src/abstractions/scripting/Token.js +110 -0
- package/dist/scripts/src/components/App/App.js +253 -0
- package/dist/scripts/src/components/App/AppLayoutContext.js +9 -0
- package/dist/scripts/src/components/App/AppStateContext.js +9 -0
- package/dist/scripts/src/components/App/Sheet.js +89 -0
- package/dist/scripts/src/components/AppHeader/AppHeader.js +121 -0
- package/dist/scripts/src/components/AppState/AppState.js +29 -0
- package/dist/scripts/src/components/Avatar/Avatar.js +81 -0
- package/dist/scripts/src/components/Badge/Badge.js +56 -0
- package/dist/scripts/src/components/BarChart/BarChart.js +199 -0
- package/dist/scripts/src/components/Bookmark/Bookmark.js +11 -0
- package/dist/scripts/src/components/Button/Button.js +196 -0
- package/dist/scripts/src/components/Card/Card.js +65 -0
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +43 -0
- package/dist/scripts/src/components/Chart/Chart.js +158 -0
- package/dist/scripts/src/components/Checkbox/Checkbox.js +43 -0
- package/dist/scripts/src/components/Combobox/Combobox.js +145 -0
- package/dist/scripts/src/components/ComponentProvider.js +357 -0
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +40 -0
- package/dist/scripts/src/components/DatePicker/DatePicker.js +196 -0
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +175 -0
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +56 -0
- package/dist/scripts/src/components/FileInput/FileInput.js +127 -0
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +106 -0
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +139 -0
- package/dist/scripts/src/components/Footer/Footer.js +42 -0
- package/dist/scripts/src/components/Form/Form.js +320 -0
- package/dist/scripts/src/components/Form/FormContext.js +9 -0
- package/dist/scripts/src/components/Form/formActions.js +86 -0
- package/dist/scripts/src/components/FormItem/FormItem.js +204 -0
- package/dist/scripts/src/components/FormItem/HelperText.js +27 -0
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +39 -0
- package/dist/scripts/src/components/FormItem/Validations.js +346 -0
- package/dist/scripts/src/components/FormSection/FormSection.js +45 -0
- package/dist/scripts/src/components/Heading/Heading.js +206 -0
- package/dist/scripts/src/components/HoverCard/HoverCard.js +45 -0
- package/dist/scripts/src/components/Icon/ApiIcon.js +10 -0
- package/dist/scripts/src/components/Icon/Attach.js +10 -0
- package/dist/scripts/src/components/Icon/Binding.js +11 -0
- package/dist/scripts/src/components/Icon/BoardIcon.js +7 -0
- package/dist/scripts/src/components/Icon/BoxIcon.js +10 -0
- package/dist/scripts/src/components/Icon/CheckIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronLeft.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronRight.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +7 -0
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/CodeSandbox.js +10 -0
- package/dist/scripts/src/components/Icon/CompactListIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +7 -0
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +11 -0
- package/dist/scripts/src/components/Icon/DocFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/DocIcon.js +10 -0
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +7 -0
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +7 -0
- package/dist/scripts/src/components/Icon/EmailIcon.js +7 -0
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +10 -0
- package/dist/scripts/src/components/Icon/ErrorIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +10 -0
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +7 -0
- package/dist/scripts/src/components/Icon/FilterIcon.js +10 -0
- package/dist/scripts/src/components/Icon/FolderIcon.js +10 -0
- package/dist/scripts/src/components/Icon/GlobeIcon.js +7 -0
- package/dist/scripts/src/components/Icon/HomeIcon.js +7 -0
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +7 -0
- package/dist/scripts/src/components/Icon/Icon.js +101 -0
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/LinkIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ListIcon.js +7 -0
- package/dist/scripts/src/components/Icon/LooseListIcon.js +7 -0
- package/dist/scripts/src/components/Icon/MoonIcon.js +10 -0
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +7 -0
- package/dist/scripts/src/components/Icon/PDFIcon.js +10 -0
- package/dist/scripts/src/components/Icon/PenIcon.js +7 -0
- package/dist/scripts/src/components/Icon/PhoneIcon.js +7 -0
- package/dist/scripts/src/components/Icon/PhotoIcon.js +10 -0
- package/dist/scripts/src/components/Icon/PlusIcon.js +7 -0
- package/dist/scripts/src/components/Icon/SearchIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ShareIcon.js +10 -0
- package/dist/scripts/src/components/Icon/SunIcon.js +10 -0
- package/dist/scripts/src/components/Icon/TrashIcon.js +7 -0
- package/dist/scripts/src/components/Icon/TxtIcon.js +10 -0
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +10 -0
- package/dist/scripts/src/components/Icon/UserIcon.js +7 -0
- package/dist/scripts/src/components/Icon/WarningIcon.js +7 -0
- package/dist/scripts/src/components/Icon/XlsIcon.js +10 -0
- package/dist/scripts/src/components/IconProvider.js +249 -0
- package/dist/scripts/src/components/IconRegistryContext.js +307 -0
- package/dist/scripts/src/components/Image/Image.js +34 -0
- package/dist/scripts/src/components/Input/InputAdornment.js +14 -0
- package/dist/scripts/src/components/Input/input-abstractions.js +44 -0
- package/dist/scripts/src/components/Items/Items.js +48 -0
- package/dist/scripts/src/components/Link/Link.js +72 -0
- package/dist/scripts/src/components/List/List.js +442 -0
- package/dist/scripts/src/components/Logo/Logo.js +25 -0
- package/dist/scripts/src/components/Map/Map.js +60 -0
- package/dist/scripts/src/components/Map/world_countries.json +45307 -0
- package/dist/scripts/src/components/Markdown/Markdown.js +120 -0
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +106 -0
- package/dist/scripts/src/components/ModalDialog/Dialog.js +20 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +145 -0
- package/dist/scripts/src/components/MultiCombobox/MultiCombobox.js +249 -0
- package/dist/scripts/src/components/MultiSelect/MultiSelect.js +192 -0
- package/dist/scripts/src/components/NavGroup/NavGroup.js +113 -0
- package/dist/scripts/src/components/NavLink/NavLink.js +115 -0
- package/dist/scripts/src/components/NavPanel/NavPanel.js +101 -0
- package/dist/scripts/src/components/NoResult/NoResult.js +39 -0
- package/dist/scripts/src/components/NumberBox/NumberBox.js +373 -0
- package/dist/scripts/src/components/Option/Option.js +41 -0
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +22 -0
- package/dist/scripts/src/components/Pages/Pages.js +74 -0
- package/dist/scripts/src/components/Pdf/LazyPdf.js +44 -0
- package/dist/scripts/src/components/Pdf/Pdf.js +19 -0
- package/dist/scripts/src/components/PieChart/PieChart.js +184 -0
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +29 -0
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +38 -0
- package/dist/scripts/src/components/Queue/Queue.js +286 -0
- package/dist/scripts/src/components/Queue/queueActions.js +87 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +144 -0
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +147 -0
- package/dist/scripts/src/components/Redirect/Redirect.js +10 -0
- package/dist/scripts/src/components/Select/Select.js +139 -0
- package/dist/scripts/src/components/Select/SelectContext.js +45 -0
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +88 -0
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +22 -0
- package/dist/scripts/src/components/Spinner/Spinner.js +59 -0
- package/dist/scripts/src/components/Splitter/Splitter.js +205 -0
- package/dist/scripts/src/components/Splitter/utils.js +17 -0
- package/dist/scripts/src/components/Stack/Stack.js +117 -0
- package/dist/scripts/src/components/StickyBox/StickyBox.js +33 -0
- package/dist/scripts/src/components/Switch/Switch.js +50 -0
- package/dist/scripts/src/components/Table/Table.js +499 -0
- package/dist/scripts/src/components/Table/useRowSelection.js +169 -0
- package/dist/scripts/src/components/TableColumnDef/TableColumnDef.js +44 -0
- package/dist/scripts/src/components/TableColumnDef/TableContext.js +12 -0
- package/dist/scripts/src/components/Tabs/Tabs.js +85 -0
- package/dist/scripts/src/components/Text/Text.js +175 -0
- package/dist/scripts/src/components/TextArea/TextArea.js +194 -0
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +63 -0
- package/dist/scripts/src/components/TextArea/useComposedRef.js +50 -0
- package/dist/scripts/src/components/TextBox/TextBox.js +145 -0
- package/dist/scripts/src/components/Theme/NotificationToast.js +39 -0
- package/dist/scripts/src/components/Theme/Theme.js +153 -0
- package/dist/scripts/src/components/ThemeChanger/ThemeChanger.js +125 -0
- package/dist/scripts/src/components/Toggle/Toggle.js +88 -0
- package/dist/scripts/src/components/Tree/TreeComponent.js +79 -0
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +59 -0
- package/dist/scripts/src/components/ViewComponentRegistryContext.js +34 -0
- package/dist/scripts/src/components/abstractions.js +2 -0
- package/dist/scripts/src/components/chart-color-schemes.js +43 -0
- package/dist/scripts/src/components/component-utils.js +32 -0
- package/dist/scripts/src/components/container-helpers.js +18 -0
- package/dist/scripts/src/components-core/ApiBoundComponent.js +189 -0
- package/dist/scripts/src/components-core/AppContext.js +17 -0
- package/dist/scripts/src/components-core/ChildrenSlot.js +10 -0
- package/dist/scripts/src/components-core/Component.js +280 -0
- package/dist/scripts/src/components-core/ComponentDecorator.js +63 -0
- package/dist/scripts/src/components-core/CompoundComponent.js +132 -0
- package/dist/scripts/src/components-core/EngineError.js +91 -0
- package/dist/scripts/src/components-core/ErrorBoundary.js +58 -0
- package/dist/scripts/src/components-core/Fragment.js +14 -0
- package/dist/scripts/src/components-core/InvalidComponent.js +15 -0
- package/dist/scripts/src/components-core/LoaderComponent.js +78 -0
- package/dist/scripts/src/components-core/RestApiProxy.js +341 -0
- package/dist/scripts/src/components-core/RootComponent.js +272 -0
- package/dist/scripts/src/components-core/RouteContext.js +45 -0
- package/dist/scripts/src/components-core/ScrollContext.js +9 -0
- package/dist/scripts/src/components-core/UnknownComponent.js +15 -0
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +2 -0
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +2 -0
- package/dist/scripts/src/components-core/abstractions/containers.js +18 -0
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +2 -0
- package/dist/scripts/src/components-core/action/ApiAction.js +276 -0
- package/dist/scripts/src/components-core/action/DownloadFileAction.js +80 -0
- package/dist/scripts/src/components-core/action/NavigateAction.js +20 -0
- package/dist/scripts/src/components-core/action/TimedAction.js +21 -0
- package/dist/scripts/src/components-core/action/UploadAction.js +88 -0
- package/dist/scripts/src/components-core/action/actions.js +15 -0
- package/dist/scripts/src/components-core/appContext/date-functions.js +19 -0
- package/dist/scripts/src/components-core/appContext/misc-utils.js +12 -0
- package/dist/scripts/src/components-core/component-hooks.js +25 -0
- package/dist/scripts/src/components-core/constants.js +18 -0
- package/dist/scripts/src/components-core/container/Container.js +1110 -0
- package/dist/scripts/src/components-core/container/ContainerComponentDef.js +16 -0
- package/dist/scripts/src/components-core/container/buildProxy.js +54 -0
- package/dist/scripts/src/components-core/container/collectFnVarDeps.js +26 -0
- package/dist/scripts/src/components-core/container/valueExtractor.js +195 -0
- package/dist/scripts/src/components-core/descriptorHelper.js +75 -0
- package/dist/scripts/src/components-core/interception/abstractions.js +2 -0
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +9 -0
- package/dist/scripts/src/components-core/loader/ApiLoader.js +46 -0
- package/dist/scripts/src/components-core/loader/DataLoader.js +160 -0
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +52 -0
- package/dist/scripts/src/components-core/loader/Loader.js +115 -0
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +32 -0
- package/dist/scripts/src/components-core/loader/PageableLoader.js +240 -0
- package/dist/scripts/src/components-core/renderers.js +45 -0
- package/dist/scripts/src/components-core/reportEngineError.js +59 -0
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +35 -0
- package/dist/scripts/src/components-core/script-runner/ICustomOperations.js +34 -0
- package/dist/scripts/src/components-core/script-runner/LogicalThread.js +2 -0
- package/dist/scripts/src/components-core/script-runner/LoopScope.js +2 -0
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +117 -0
- package/dist/scripts/src/components-core/script-runner/TryScope.js +2 -0
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +96 -0
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +34 -0
- package/dist/scripts/src/components-core/script-runner/custom-operations-registry.js +40 -0
- package/dist/scripts/src/components-core/script-runner/custom-ui-data.js +40 -0
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +551 -0
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +498 -0
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +434 -0
- package/dist/scripts/src/components-core/script-runner/modules.js +250 -0
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +818 -0
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +193 -0
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +740 -0
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +62 -0
- package/dist/scripts/src/components-core/script-runner/visitors.js +352 -0
- package/dist/scripts/src/components-core/theming/ThemeContext.js +43 -0
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +334 -0
- package/dist/scripts/src/components-core/theming/abstractions.js +11 -0
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +114 -0
- package/dist/scripts/src/components-core/theming/hvar.js +105 -0
- package/dist/scripts/src/components-core/theming/themeVars.js +62 -0
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +31 -0
- package/dist/scripts/src/components-core/theming/themes/palette.js +53 -0
- package/dist/scripts/src/components-core/theming/themes/root.js +257 -0
- package/dist/scripts/src/components-core/theming/themes/solid.js +16 -0
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +407 -0
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +32 -0
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +286 -0
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +34 -0
- package/dist/scripts/src/components-core/utils/LruCache.js +184 -0
- package/dist/scripts/src/components-core/utils/actionUtils.js +32 -0
- package/dist/scripts/src/components-core/utils/classnames.js +58 -0
- package/dist/scripts/src/components-core/utils/css-utils.js +127 -0
- package/dist/scripts/src/components-core/utils/date-utils.js +78 -0
- package/dist/scripts/src/components-core/utils/extractParam.js +148 -0
- package/dist/scripts/src/components-core/utils/hooks.js +221 -0
- package/dist/scripts/src/components-core/utils/mergeProps.js +45 -0
- package/dist/scripts/src/components-core/utils/misc.js +460 -0
- package/dist/scripts/src/components-core/utils/statementUtils.js +205 -0
- package/dist/scripts/src/components-core/utils/treeUtils.js +48 -0
- package/dist/scripts/src/components-core/xmlui-parser.js +52 -0
- package/dist/scripts/src/parsers/scripting/InputStream.js +59 -0
- package/dist/scripts/src/parsers/scripting/Lexer.js +1028 -0
- package/dist/scripts/src/parsers/scripting/Parser.js +2647 -0
- package/dist/scripts/src/parsers/scripting/ParserError.js +46 -0
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +109 -0
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +118 -0
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +602 -0
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +39 -0
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +621 -0
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +1000 -0
- package/dist/scripts/src/parsers/style-parser/errors.js +37 -0
- package/dist/scripts/src/parsers/style-parser/source-tree.js +2 -0
- package/dist/scripts/src/parsers/style-parser/style-compiler.js +513 -0
- package/dist/scripts/src/parsers/style-parser/tokens.js +42 -0
- package/dist/scripts/src/parsers/ueml/ParserError.js +54 -0
- package/dist/scripts/src/parsers/ueml/UemlHelper.js +579 -0
- package/dist/scripts/src/parsers/ueml/UemlInputStream.js +59 -0
- package/dist/scripts/src/parsers/ueml/UemlLexer.js +868 -0
- package/dist/scripts/src/parsers/ueml/UemlParser.js +1439 -0
- package/dist/scripts/src/parsers/ueml/UemlToken.js +24 -0
- package/dist/scripts/src/parsers/ueml/fileExtensions.js +6 -0
- package/dist/scripts/src/parsers/ueml/source-tree.js +2 -0
- package/dist/scripts/src/parsers/ueml/ueml-tree.js +2 -0
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +136 -0
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +100 -0
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +476 -0
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +415 -0
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +106 -0
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +2 -0
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +922 -0
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +83 -0
- package/dist/xmlui.es.d.ts +1667 -0
- package/dist/xmlui.es.js +17 -0
- package/dist/xmlui.umd.js +1589 -0
- package/package.json +175 -0
|
@@ -0,0 +1,1434 @@
|
|
|
1
|
+
function de(e, t) {
|
|
2
|
+
return function() {
|
|
3
|
+
return e.apply(t, arguments);
|
|
4
|
+
};
|
|
5
|
+
}
|
|
6
|
+
const { toString: Le } = Object.prototype, { getPrototypeOf: Q } = Object, H = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
+
const n = Le.call(t);
|
|
8
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), T = (e) => (e = e.toLowerCase(), (t) => H(t) === e), I = (e) => (t) => typeof t === e, { isArray: C } = Array, B = I("undefined");
|
|
10
|
+
function Ue(e) {
|
|
11
|
+
return e !== null && !B(e) && e.constructor !== null && !B(e.constructor) && S(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
|
+
}
|
|
13
|
+
const pe = T("ArrayBuffer");
|
|
14
|
+
function je(e) {
|
|
15
|
+
let t;
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pe(e.buffer), t;
|
|
17
|
+
}
|
|
18
|
+
const ke = I("string"), S = I("function"), he = I("number"), q = (e) => e !== null && typeof e == "object", He = (e) => e === !0 || e === !1, j = (e) => {
|
|
19
|
+
if (H(e) !== "object")
|
|
20
|
+
return !1;
|
|
21
|
+
const t = Q(e);
|
|
22
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
23
|
+
}, Ie = T("Date"), qe = T("File"), Me = T("Blob"), ze = T("FileList"), Je = (e) => q(e) && S(e.pipe), Ve = (e) => {
|
|
24
|
+
let t;
|
|
25
|
+
return e && (typeof FormData == "function" && e instanceof FormData || S(e.append) && ((t = H(e)) === "formdata" || // detect form-data instance
|
|
26
|
+
t === "object" && S(e.toString) && e.toString() === "[object FormData]"));
|
|
27
|
+
}, $e = T("URLSearchParams"), We = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
28
|
+
function _(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
29
|
+
if (e === null || typeof e > "u")
|
|
30
|
+
return;
|
|
31
|
+
let r, s;
|
|
32
|
+
if (typeof e != "object" && (e = [e]), C(e))
|
|
33
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
34
|
+
t.call(null, e[r], r, e);
|
|
35
|
+
else {
|
|
36
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
37
|
+
let u;
|
|
38
|
+
for (r = 0; r < i; r++)
|
|
39
|
+
u = o[r], t.call(null, e[u], u, e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function me(e, t) {
|
|
43
|
+
t = t.toLowerCase();
|
|
44
|
+
const n = Object.keys(e);
|
|
45
|
+
let r = n.length, s;
|
|
46
|
+
for (; r-- > 0; )
|
|
47
|
+
if (s = n[r], t === s.toLowerCase())
|
|
48
|
+
return s;
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
const ye = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ee = (e) => !B(e) && e !== ye;
|
|
52
|
+
function W() {
|
|
53
|
+
const { caseless: e } = Ee(this) && this || {}, t = {}, n = (r, s) => {
|
|
54
|
+
const o = e && me(t, s) || s;
|
|
55
|
+
j(t[o]) && j(r) ? t[o] = W(t[o], r) : j(r) ? t[o] = W({}, r) : C(r) ? t[o] = r.slice() : t[o] = r;
|
|
56
|
+
};
|
|
57
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
58
|
+
arguments[r] && _(arguments[r], n);
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
const Ke = (e, t, n, { allOwnKeys: r } = {}) => (_(t, (s, o) => {
|
|
62
|
+
n && S(s) ? e[o] = de(s, n) : e[o] = s;
|
|
63
|
+
}, { allOwnKeys: r }), e), Ge = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ve = (e, t, n, r) => {
|
|
64
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
65
|
+
value: t.prototype
|
|
66
|
+
}), n && Object.assign(e.prototype, n);
|
|
67
|
+
}, Xe = (e, t, n, r) => {
|
|
68
|
+
let s, o, i;
|
|
69
|
+
const u = {};
|
|
70
|
+
if (t = t || {}, e == null)
|
|
71
|
+
return t;
|
|
72
|
+
do {
|
|
73
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
74
|
+
i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
|
|
75
|
+
e = n !== !1 && Q(e);
|
|
76
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
|
+
return t;
|
|
78
|
+
}, Qe = (e, t, n) => {
|
|
79
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
|
+
const r = e.indexOf(t, n);
|
|
81
|
+
return r !== -1 && r === n;
|
|
82
|
+
}, Ze = (e) => {
|
|
83
|
+
if (!e)
|
|
84
|
+
return null;
|
|
85
|
+
if (C(e))
|
|
86
|
+
return e;
|
|
87
|
+
let t = e.length;
|
|
88
|
+
if (!he(t))
|
|
89
|
+
return null;
|
|
90
|
+
const n = new Array(t);
|
|
91
|
+
for (; t-- > 0; )
|
|
92
|
+
n[t] = e[t];
|
|
93
|
+
return n;
|
|
94
|
+
}, Ye = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Q(Uint8Array)), et = (e, t) => {
|
|
95
|
+
const r = (e && e[Symbol.iterator]).call(e);
|
|
96
|
+
let s;
|
|
97
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
98
|
+
const o = s.value;
|
|
99
|
+
t.call(e, o[0], o[1]);
|
|
100
|
+
}
|
|
101
|
+
}, tt = (e, t) => {
|
|
102
|
+
let n;
|
|
103
|
+
const r = [];
|
|
104
|
+
for (; (n = e.exec(t)) !== null; )
|
|
105
|
+
r.push(n);
|
|
106
|
+
return r;
|
|
107
|
+
}, nt = T("HTMLFormElement"), rt = (e) => e.toLowerCase().replace(
|
|
108
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
109
|
+
function(n, r, s) {
|
|
110
|
+
return r.toUpperCase() + s;
|
|
111
|
+
}
|
|
112
|
+
), te = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), st = T("RegExp"), we = (e, t) => {
|
|
113
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
114
|
+
_(n, (s, o) => {
|
|
115
|
+
let i;
|
|
116
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
117
|
+
}), Object.defineProperties(e, r);
|
|
118
|
+
}, ot = (e) => {
|
|
119
|
+
we(e, (t, n) => {
|
|
120
|
+
if (S(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
121
|
+
return !1;
|
|
122
|
+
const r = e[n];
|
|
123
|
+
if (S(r)) {
|
|
124
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
125
|
+
t.writable = !1;
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
t.set || (t.set = () => {
|
|
129
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}, it = (e, t) => {
|
|
134
|
+
const n = {}, r = (s) => {
|
|
135
|
+
s.forEach((o) => {
|
|
136
|
+
n[o] = !0;
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
return C(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
|
+
}, at = () => {
|
|
141
|
+
}, ct = (e, t) => (e = +e, Number.isFinite(e) ? e : t), z = "abcdefghijklmnopqrstuvwxyz", ne = "0123456789", be = {
|
|
142
|
+
DIGIT: ne,
|
|
143
|
+
ALPHA: z,
|
|
144
|
+
ALPHA_DIGIT: z + z.toUpperCase() + ne
|
|
145
|
+
}, ut = (e = 16, t = be.ALPHA_DIGIT) => {
|
|
146
|
+
let n = "";
|
|
147
|
+
const { length: r } = t;
|
|
148
|
+
for (; e--; )
|
|
149
|
+
n += t[Math.random() * r | 0];
|
|
150
|
+
return n;
|
|
151
|
+
};
|
|
152
|
+
function lt(e) {
|
|
153
|
+
return !!(e && S(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
154
|
+
}
|
|
155
|
+
const ft = (e) => {
|
|
156
|
+
const t = new Array(10), n = (r, s) => {
|
|
157
|
+
if (q(r)) {
|
|
158
|
+
if (t.indexOf(r) >= 0)
|
|
159
|
+
return;
|
|
160
|
+
if (!("toJSON" in r)) {
|
|
161
|
+
t[s] = r;
|
|
162
|
+
const o = C(r) ? [] : {};
|
|
163
|
+
return _(r, (i, u) => {
|
|
164
|
+
const f = n(i, s + 1);
|
|
165
|
+
!B(f) && (o[u] = f);
|
|
166
|
+
}), t[s] = void 0, o;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return r;
|
|
170
|
+
};
|
|
171
|
+
return n(e, 0);
|
|
172
|
+
}, dt = T("AsyncFunction"), pt = (e) => e && (q(e) || S(e)) && S(e.then) && S(e.catch), a = {
|
|
173
|
+
isArray: C,
|
|
174
|
+
isArrayBuffer: pe,
|
|
175
|
+
isBuffer: Ue,
|
|
176
|
+
isFormData: Ve,
|
|
177
|
+
isArrayBufferView: je,
|
|
178
|
+
isString: ke,
|
|
179
|
+
isNumber: he,
|
|
180
|
+
isBoolean: He,
|
|
181
|
+
isObject: q,
|
|
182
|
+
isPlainObject: j,
|
|
183
|
+
isUndefined: B,
|
|
184
|
+
isDate: Ie,
|
|
185
|
+
isFile: qe,
|
|
186
|
+
isBlob: Me,
|
|
187
|
+
isRegExp: st,
|
|
188
|
+
isFunction: S,
|
|
189
|
+
isStream: Je,
|
|
190
|
+
isURLSearchParams: $e,
|
|
191
|
+
isTypedArray: Ye,
|
|
192
|
+
isFileList: ze,
|
|
193
|
+
forEach: _,
|
|
194
|
+
merge: W,
|
|
195
|
+
extend: Ke,
|
|
196
|
+
trim: We,
|
|
197
|
+
stripBOM: Ge,
|
|
198
|
+
inherits: ve,
|
|
199
|
+
toFlatObject: Xe,
|
|
200
|
+
kindOf: H,
|
|
201
|
+
kindOfTest: T,
|
|
202
|
+
endsWith: Qe,
|
|
203
|
+
toArray: Ze,
|
|
204
|
+
forEachEntry: et,
|
|
205
|
+
matchAll: tt,
|
|
206
|
+
isHTMLForm: nt,
|
|
207
|
+
hasOwnProperty: te,
|
|
208
|
+
hasOwnProp: te,
|
|
209
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
210
|
+
reduceDescriptors: we,
|
|
211
|
+
freezeMethods: ot,
|
|
212
|
+
toObjectSet: it,
|
|
213
|
+
toCamelCase: rt,
|
|
214
|
+
noop: at,
|
|
215
|
+
toFiniteNumber: ct,
|
|
216
|
+
findKey: me,
|
|
217
|
+
global: ye,
|
|
218
|
+
isContextDefined: Ee,
|
|
219
|
+
ALPHABET: be,
|
|
220
|
+
generateString: ut,
|
|
221
|
+
isSpecCompliantForm: lt,
|
|
222
|
+
toJSONObject: ft,
|
|
223
|
+
isAsyncFn: dt,
|
|
224
|
+
isThenable: pt
|
|
225
|
+
};
|
|
226
|
+
function m(e, t, n, r, s) {
|
|
227
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
228
|
+
}
|
|
229
|
+
a.inherits(m, Error, {
|
|
230
|
+
toJSON: function() {
|
|
231
|
+
return {
|
|
232
|
+
// Standard
|
|
233
|
+
message: this.message,
|
|
234
|
+
name: this.name,
|
|
235
|
+
// Microsoft
|
|
236
|
+
description: this.description,
|
|
237
|
+
number: this.number,
|
|
238
|
+
// Mozilla
|
|
239
|
+
fileName: this.fileName,
|
|
240
|
+
lineNumber: this.lineNumber,
|
|
241
|
+
columnNumber: this.columnNumber,
|
|
242
|
+
stack: this.stack,
|
|
243
|
+
// Axios
|
|
244
|
+
config: a.toJSONObject(this.config),
|
|
245
|
+
code: this.code,
|
|
246
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
const Se = m.prototype, Re = {};
|
|
251
|
+
[
|
|
252
|
+
"ERR_BAD_OPTION_VALUE",
|
|
253
|
+
"ERR_BAD_OPTION",
|
|
254
|
+
"ECONNABORTED",
|
|
255
|
+
"ETIMEDOUT",
|
|
256
|
+
"ERR_NETWORK",
|
|
257
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
258
|
+
"ERR_DEPRECATED",
|
|
259
|
+
"ERR_BAD_RESPONSE",
|
|
260
|
+
"ERR_BAD_REQUEST",
|
|
261
|
+
"ERR_CANCELED",
|
|
262
|
+
"ERR_NOT_SUPPORT",
|
|
263
|
+
"ERR_INVALID_URL"
|
|
264
|
+
// eslint-disable-next-line func-names
|
|
265
|
+
].forEach((e) => {
|
|
266
|
+
Re[e] = { value: e };
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperties(m, Re);
|
|
269
|
+
Object.defineProperty(Se, "isAxiosError", { value: !0 });
|
|
270
|
+
m.from = (e, t, n, r, s, o) => {
|
|
271
|
+
const i = Object.create(Se);
|
|
272
|
+
return a.toFlatObject(e, i, function(f) {
|
|
273
|
+
return f !== Error.prototype;
|
|
274
|
+
}, (u) => u !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
275
|
+
};
|
|
276
|
+
const ht = null;
|
|
277
|
+
function K(e) {
|
|
278
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
279
|
+
}
|
|
280
|
+
function Oe(e) {
|
|
281
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
282
|
+
}
|
|
283
|
+
function re(e, t, n) {
|
|
284
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
285
|
+
return s = Oe(s), !n && o ? "[" + s + "]" : s;
|
|
286
|
+
}).join(n ? "." : "") : t;
|
|
287
|
+
}
|
|
288
|
+
function mt(e) {
|
|
289
|
+
return a.isArray(e) && !e.some(K);
|
|
290
|
+
}
|
|
291
|
+
const yt = a.toFlatObject(a, {}, null, function(t) {
|
|
292
|
+
return /^is[A-Z]/.test(t);
|
|
293
|
+
});
|
|
294
|
+
function M(e, t, n) {
|
|
295
|
+
if (!a.isObject(e))
|
|
296
|
+
throw new TypeError("target must be an object");
|
|
297
|
+
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
298
|
+
metaTokens: !0,
|
|
299
|
+
dots: !1,
|
|
300
|
+
indexes: !1
|
|
301
|
+
}, !1, function(h, w) {
|
|
302
|
+
return !a.isUndefined(w[h]);
|
|
303
|
+
});
|
|
304
|
+
const r = n.metaTokens, s = n.visitor || c, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
305
|
+
if (!a.isFunction(s))
|
|
306
|
+
throw new TypeError("visitor must be a function");
|
|
307
|
+
function d(l) {
|
|
308
|
+
if (l === null)
|
|
309
|
+
return "";
|
|
310
|
+
if (a.isDate(l))
|
|
311
|
+
return l.toISOString();
|
|
312
|
+
if (!f && a.isBlob(l))
|
|
313
|
+
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
314
|
+
return a.isArrayBuffer(l) || a.isTypedArray(l) ? f && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
|
|
315
|
+
}
|
|
316
|
+
function c(l, h, w) {
|
|
317
|
+
let g = l;
|
|
318
|
+
if (l && !w && typeof l == "object") {
|
|
319
|
+
if (a.endsWith(h, "{}"))
|
|
320
|
+
h = r ? h : h.slice(0, -2), l = JSON.stringify(l);
|
|
321
|
+
else if (a.isArray(l) && mt(l) || (a.isFileList(l) || a.endsWith(h, "[]")) && (g = a.toArray(l)))
|
|
322
|
+
return h = Oe(h), g.forEach(function(U, De) {
|
|
323
|
+
!(a.isUndefined(U) || U === null) && t.append(
|
|
324
|
+
// eslint-disable-next-line no-nested-ternary
|
|
325
|
+
i === !0 ? re([h], De, o) : i === null ? h : h + "[]",
|
|
326
|
+
d(U)
|
|
327
|
+
);
|
|
328
|
+
}), !1;
|
|
329
|
+
}
|
|
330
|
+
return K(l) ? !0 : (t.append(re(w, h, o), d(l)), !1);
|
|
331
|
+
}
|
|
332
|
+
const p = [], E = Object.assign(yt, {
|
|
333
|
+
defaultVisitor: c,
|
|
334
|
+
convertValue: d,
|
|
335
|
+
isVisitable: K
|
|
336
|
+
});
|
|
337
|
+
function b(l, h) {
|
|
338
|
+
if (!a.isUndefined(l)) {
|
|
339
|
+
if (p.indexOf(l) !== -1)
|
|
340
|
+
throw Error("Circular reference detected in " + h.join("."));
|
|
341
|
+
p.push(l), a.forEach(l, function(g, O) {
|
|
342
|
+
(!(a.isUndefined(g) || g === null) && s.call(
|
|
343
|
+
t,
|
|
344
|
+
g,
|
|
345
|
+
a.isString(O) ? O.trim() : O,
|
|
346
|
+
h,
|
|
347
|
+
E
|
|
348
|
+
)) === !0 && b(g, h ? h.concat(O) : [O]);
|
|
349
|
+
}), p.pop();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
if (!a.isObject(e))
|
|
353
|
+
throw new TypeError("data must be an object");
|
|
354
|
+
return b(e), t;
|
|
355
|
+
}
|
|
356
|
+
function se(e) {
|
|
357
|
+
const t = {
|
|
358
|
+
"!": "%21",
|
|
359
|
+
"'": "%27",
|
|
360
|
+
"(": "%28",
|
|
361
|
+
")": "%29",
|
|
362
|
+
"~": "%7E",
|
|
363
|
+
"%20": "+",
|
|
364
|
+
"%00": "\0"
|
|
365
|
+
};
|
|
366
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
367
|
+
return t[r];
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
function Z(e, t) {
|
|
371
|
+
this._pairs = [], e && M(e, this, t);
|
|
372
|
+
}
|
|
373
|
+
const Ae = Z.prototype;
|
|
374
|
+
Ae.append = function(t, n) {
|
|
375
|
+
this._pairs.push([t, n]);
|
|
376
|
+
};
|
|
377
|
+
Ae.toString = function(t) {
|
|
378
|
+
const n = t ? function(r) {
|
|
379
|
+
return t.call(this, r, se);
|
|
380
|
+
} : se;
|
|
381
|
+
return this._pairs.map(function(s) {
|
|
382
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
383
|
+
}, "").join("&");
|
|
384
|
+
};
|
|
385
|
+
function Et(e) {
|
|
386
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
387
|
+
}
|
|
388
|
+
function Te(e, t, n) {
|
|
389
|
+
if (!t)
|
|
390
|
+
return e;
|
|
391
|
+
const r = n && n.encode || Et, s = n && n.serialize;
|
|
392
|
+
let o;
|
|
393
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Z(t, n).toString(r), o) {
|
|
394
|
+
const i = e.indexOf("#");
|
|
395
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
396
|
+
}
|
|
397
|
+
return e;
|
|
398
|
+
}
|
|
399
|
+
class oe {
|
|
400
|
+
constructor() {
|
|
401
|
+
this.handlers = [];
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Add a new interceptor to the stack
|
|
405
|
+
*
|
|
406
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
407
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
408
|
+
*
|
|
409
|
+
* @return {Number} An ID used to remove interceptor later
|
|
410
|
+
*/
|
|
411
|
+
use(t, n, r) {
|
|
412
|
+
return this.handlers.push({
|
|
413
|
+
fulfilled: t,
|
|
414
|
+
rejected: n,
|
|
415
|
+
synchronous: r ? r.synchronous : !1,
|
|
416
|
+
runWhen: r ? r.runWhen : null
|
|
417
|
+
}), this.handlers.length - 1;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Remove an interceptor from the stack
|
|
421
|
+
*
|
|
422
|
+
* @param {Number} id The ID that was returned by `use`
|
|
423
|
+
*
|
|
424
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
425
|
+
*/
|
|
426
|
+
eject(t) {
|
|
427
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Clear all interceptors from the stack
|
|
431
|
+
*
|
|
432
|
+
* @returns {void}
|
|
433
|
+
*/
|
|
434
|
+
clear() {
|
|
435
|
+
this.handlers && (this.handlers = []);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Iterate over all the registered interceptors
|
|
439
|
+
*
|
|
440
|
+
* This method is particularly useful for skipping over any
|
|
441
|
+
* interceptors that may have become `null` calling `eject`.
|
|
442
|
+
*
|
|
443
|
+
* @param {Function} fn The function to call for each interceptor
|
|
444
|
+
*
|
|
445
|
+
* @returns {void}
|
|
446
|
+
*/
|
|
447
|
+
forEach(t) {
|
|
448
|
+
a.forEach(this.handlers, function(r) {
|
|
449
|
+
r !== null && t(r);
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
const ge = {
|
|
454
|
+
silentJSONParsing: !0,
|
|
455
|
+
forcedJSONParsing: !0,
|
|
456
|
+
clarifyTimeoutError: !1
|
|
457
|
+
}, wt = typeof URLSearchParams < "u" ? URLSearchParams : Z, bt = typeof FormData < "u" ? FormData : null, St = typeof Blob < "u" ? Blob : null, Rt = {
|
|
458
|
+
isBrowser: !0,
|
|
459
|
+
classes: {
|
|
460
|
+
URLSearchParams: wt,
|
|
461
|
+
FormData: bt,
|
|
462
|
+
Blob: St
|
|
463
|
+
},
|
|
464
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
465
|
+
}, Ne = typeof window < "u" && typeof document < "u", Ot = ((e) => Ne && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), At = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
466
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
467
|
+
__proto__: null,
|
|
468
|
+
hasBrowserEnv: Ne,
|
|
469
|
+
hasStandardBrowserEnv: Ot,
|
|
470
|
+
hasStandardBrowserWebWorkerEnv: At
|
|
471
|
+
}, Symbol.toStringTag, { value: "Module" })), A = {
|
|
472
|
+
...Tt,
|
|
473
|
+
...Rt
|
|
474
|
+
};
|
|
475
|
+
function gt(e, t) {
|
|
476
|
+
return M(e, new A.classes.URLSearchParams(), Object.assign({
|
|
477
|
+
visitor: function(n, r, s, o) {
|
|
478
|
+
return A.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
479
|
+
}
|
|
480
|
+
}, t));
|
|
481
|
+
}
|
|
482
|
+
function Nt(e) {
|
|
483
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
484
|
+
}
|
|
485
|
+
function xt(e) {
|
|
486
|
+
const t = {}, n = Object.keys(e);
|
|
487
|
+
let r;
|
|
488
|
+
const s = n.length;
|
|
489
|
+
let o;
|
|
490
|
+
for (r = 0; r < s; r++)
|
|
491
|
+
o = n[r], t[o] = e[o];
|
|
492
|
+
return t;
|
|
493
|
+
}
|
|
494
|
+
function xe(e) {
|
|
495
|
+
function t(n, r, s, o) {
|
|
496
|
+
let i = n[o++];
|
|
497
|
+
const u = Number.isFinite(+i), f = o >= n.length;
|
|
498
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !u) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = xt(s[i])), !u);
|
|
499
|
+
}
|
|
500
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
501
|
+
const n = {};
|
|
502
|
+
return a.forEachEntry(e, (r, s) => {
|
|
503
|
+
t(Nt(r), s, n, 0);
|
|
504
|
+
}), n;
|
|
505
|
+
}
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
function Pt(e, t, n) {
|
|
509
|
+
if (a.isString(e))
|
|
510
|
+
try {
|
|
511
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
512
|
+
} catch (r) {
|
|
513
|
+
if (r.name !== "SyntaxError")
|
|
514
|
+
throw r;
|
|
515
|
+
}
|
|
516
|
+
return (n || JSON.stringify)(e);
|
|
517
|
+
}
|
|
518
|
+
const D = {
|
|
519
|
+
transitional: ge,
|
|
520
|
+
adapter: ["xhr", "http"],
|
|
521
|
+
transformRequest: [function(t, n) {
|
|
522
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
523
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
524
|
+
return s && s ? JSON.stringify(xe(t)) : t;
|
|
525
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
526
|
+
return t;
|
|
527
|
+
if (a.isArrayBufferView(t))
|
|
528
|
+
return t.buffer;
|
|
529
|
+
if (a.isURLSearchParams(t))
|
|
530
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
531
|
+
let u;
|
|
532
|
+
if (o) {
|
|
533
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
534
|
+
return gt(t, this.formSerializer).toString();
|
|
535
|
+
if ((u = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
536
|
+
const f = this.env && this.env.FormData;
|
|
537
|
+
return M(
|
|
538
|
+
u ? { "files[]": t } : t,
|
|
539
|
+
f && new f(),
|
|
540
|
+
this.formSerializer
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return o || s ? (n.setContentType("application/json", !1), Pt(t)) : t;
|
|
545
|
+
}],
|
|
546
|
+
transformResponse: [function(t) {
|
|
547
|
+
const n = this.transitional || D.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
548
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
549
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
550
|
+
try {
|
|
551
|
+
return JSON.parse(t);
|
|
552
|
+
} catch (u) {
|
|
553
|
+
if (i)
|
|
554
|
+
throw u.name === "SyntaxError" ? m.from(u, m.ERR_BAD_RESPONSE, this, null, this.response) : u;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return t;
|
|
558
|
+
}],
|
|
559
|
+
/**
|
|
560
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
561
|
+
* timeout is not created.
|
|
562
|
+
*/
|
|
563
|
+
timeout: 0,
|
|
564
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
565
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
566
|
+
maxContentLength: -1,
|
|
567
|
+
maxBodyLength: -1,
|
|
568
|
+
env: {
|
|
569
|
+
FormData: A.classes.FormData,
|
|
570
|
+
Blob: A.classes.Blob
|
|
571
|
+
},
|
|
572
|
+
validateStatus: function(t) {
|
|
573
|
+
return t >= 200 && t < 300;
|
|
574
|
+
},
|
|
575
|
+
headers: {
|
|
576
|
+
common: {
|
|
577
|
+
Accept: "application/json, text/plain, */*",
|
|
578
|
+
"Content-Type": void 0
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
583
|
+
D.headers[e] = {};
|
|
584
|
+
});
|
|
585
|
+
const Ct = a.toObjectSet([
|
|
586
|
+
"age",
|
|
587
|
+
"authorization",
|
|
588
|
+
"content-length",
|
|
589
|
+
"content-type",
|
|
590
|
+
"etag",
|
|
591
|
+
"expires",
|
|
592
|
+
"from",
|
|
593
|
+
"host",
|
|
594
|
+
"if-modified-since",
|
|
595
|
+
"if-unmodified-since",
|
|
596
|
+
"last-modified",
|
|
597
|
+
"location",
|
|
598
|
+
"max-forwards",
|
|
599
|
+
"proxy-authorization",
|
|
600
|
+
"referer",
|
|
601
|
+
"retry-after",
|
|
602
|
+
"user-agent"
|
|
603
|
+
]), Ft = (e) => {
|
|
604
|
+
const t = {};
|
|
605
|
+
let n, r, s;
|
|
606
|
+
return e && e.split(`
|
|
607
|
+
`).forEach(function(i) {
|
|
608
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Ct[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
609
|
+
}), t;
|
|
610
|
+
}, ie = Symbol("internals");
|
|
611
|
+
function F(e) {
|
|
612
|
+
return e && String(e).trim().toLowerCase();
|
|
613
|
+
}
|
|
614
|
+
function k(e) {
|
|
615
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(k) : String(e);
|
|
616
|
+
}
|
|
617
|
+
function Bt(e) {
|
|
618
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
619
|
+
let r;
|
|
620
|
+
for (; r = n.exec(e); )
|
|
621
|
+
t[r[1]] = r[2];
|
|
622
|
+
return t;
|
|
623
|
+
}
|
|
624
|
+
const _t = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
625
|
+
function J(e, t, n, r, s) {
|
|
626
|
+
if (a.isFunction(r))
|
|
627
|
+
return r.call(this, t, n);
|
|
628
|
+
if (s && (t = n), !!a.isString(t)) {
|
|
629
|
+
if (a.isString(r))
|
|
630
|
+
return t.indexOf(r) !== -1;
|
|
631
|
+
if (a.isRegExp(r))
|
|
632
|
+
return r.test(t);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
function Dt(e) {
|
|
636
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
637
|
+
}
|
|
638
|
+
function Lt(e, t) {
|
|
639
|
+
const n = a.toCamelCase(" " + t);
|
|
640
|
+
["get", "set", "has"].forEach((r) => {
|
|
641
|
+
Object.defineProperty(e, r + n, {
|
|
642
|
+
value: function(s, o, i) {
|
|
643
|
+
return this[r].call(this, t, s, o, i);
|
|
644
|
+
},
|
|
645
|
+
configurable: !0
|
|
646
|
+
});
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
class R {
|
|
650
|
+
constructor(t) {
|
|
651
|
+
t && this.set(t);
|
|
652
|
+
}
|
|
653
|
+
set(t, n, r) {
|
|
654
|
+
const s = this;
|
|
655
|
+
function o(u, f, d) {
|
|
656
|
+
const c = F(f);
|
|
657
|
+
if (!c)
|
|
658
|
+
throw new Error("header name must be a non-empty string");
|
|
659
|
+
const p = a.findKey(s, c);
|
|
660
|
+
(!p || s[p] === void 0 || d === !0 || d === void 0 && s[p] !== !1) && (s[p || f] = k(u));
|
|
661
|
+
}
|
|
662
|
+
const i = (u, f) => a.forEach(u, (d, c) => o(d, c, f));
|
|
663
|
+
return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !_t(t) ? i(Ft(t), n) : t != null && o(n, t, r), this;
|
|
664
|
+
}
|
|
665
|
+
get(t, n) {
|
|
666
|
+
if (t = F(t), t) {
|
|
667
|
+
const r = a.findKey(this, t);
|
|
668
|
+
if (r) {
|
|
669
|
+
const s = this[r];
|
|
670
|
+
if (!n)
|
|
671
|
+
return s;
|
|
672
|
+
if (n === !0)
|
|
673
|
+
return Bt(s);
|
|
674
|
+
if (a.isFunction(n))
|
|
675
|
+
return n.call(this, s, r);
|
|
676
|
+
if (a.isRegExp(n))
|
|
677
|
+
return n.exec(s);
|
|
678
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
has(t, n) {
|
|
683
|
+
if (t = F(t), t) {
|
|
684
|
+
const r = a.findKey(this, t);
|
|
685
|
+
return !!(r && this[r] !== void 0 && (!n || J(this, this[r], r, n)));
|
|
686
|
+
}
|
|
687
|
+
return !1;
|
|
688
|
+
}
|
|
689
|
+
delete(t, n) {
|
|
690
|
+
const r = this;
|
|
691
|
+
let s = !1;
|
|
692
|
+
function o(i) {
|
|
693
|
+
if (i = F(i), i) {
|
|
694
|
+
const u = a.findKey(r, i);
|
|
695
|
+
u && (!n || J(r, r[u], u, n)) && (delete r[u], s = !0);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
699
|
+
}
|
|
700
|
+
clear(t) {
|
|
701
|
+
const n = Object.keys(this);
|
|
702
|
+
let r = n.length, s = !1;
|
|
703
|
+
for (; r--; ) {
|
|
704
|
+
const o = n[r];
|
|
705
|
+
(!t || J(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
706
|
+
}
|
|
707
|
+
return s;
|
|
708
|
+
}
|
|
709
|
+
normalize(t) {
|
|
710
|
+
const n = this, r = {};
|
|
711
|
+
return a.forEach(this, (s, o) => {
|
|
712
|
+
const i = a.findKey(r, o);
|
|
713
|
+
if (i) {
|
|
714
|
+
n[i] = k(s), delete n[o];
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
const u = t ? Dt(o) : String(o).trim();
|
|
718
|
+
u !== o && delete n[o], n[u] = k(s), r[u] = !0;
|
|
719
|
+
}), this;
|
|
720
|
+
}
|
|
721
|
+
concat(...t) {
|
|
722
|
+
return this.constructor.concat(this, ...t);
|
|
723
|
+
}
|
|
724
|
+
toJSON(t) {
|
|
725
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
726
|
+
return a.forEach(this, (r, s) => {
|
|
727
|
+
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
728
|
+
}), n;
|
|
729
|
+
}
|
|
730
|
+
[Symbol.iterator]() {
|
|
731
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
732
|
+
}
|
|
733
|
+
toString() {
|
|
734
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
735
|
+
`);
|
|
736
|
+
}
|
|
737
|
+
get [Symbol.toStringTag]() {
|
|
738
|
+
return "AxiosHeaders";
|
|
739
|
+
}
|
|
740
|
+
static from(t) {
|
|
741
|
+
return t instanceof this ? t : new this(t);
|
|
742
|
+
}
|
|
743
|
+
static concat(t, ...n) {
|
|
744
|
+
const r = new this(t);
|
|
745
|
+
return n.forEach((s) => r.set(s)), r;
|
|
746
|
+
}
|
|
747
|
+
static accessor(t) {
|
|
748
|
+
const r = (this[ie] = this[ie] = {
|
|
749
|
+
accessors: {}
|
|
750
|
+
}).accessors, s = this.prototype;
|
|
751
|
+
function o(i) {
|
|
752
|
+
const u = F(i);
|
|
753
|
+
r[u] || (Lt(s, i), r[u] = !0);
|
|
754
|
+
}
|
|
755
|
+
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
R.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
759
|
+
a.reduceDescriptors(R.prototype, ({ value: e }, t) => {
|
|
760
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
761
|
+
return {
|
|
762
|
+
get: () => e,
|
|
763
|
+
set(r) {
|
|
764
|
+
this[n] = r;
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
});
|
|
768
|
+
a.freezeMethods(R);
|
|
769
|
+
function V(e, t) {
|
|
770
|
+
const n = this || D, r = t || n, s = R.from(r.headers);
|
|
771
|
+
let o = r.data;
|
|
772
|
+
return a.forEach(e, function(u) {
|
|
773
|
+
o = u.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
774
|
+
}), s.normalize(), o;
|
|
775
|
+
}
|
|
776
|
+
function Pe(e) {
|
|
777
|
+
return !!(e && e.__CANCEL__);
|
|
778
|
+
}
|
|
779
|
+
function L(e, t, n) {
|
|
780
|
+
m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
781
|
+
}
|
|
782
|
+
a.inherits(L, m, {
|
|
783
|
+
__CANCEL__: !0
|
|
784
|
+
});
|
|
785
|
+
function Ut(e, t, n) {
|
|
786
|
+
const r = n.config.validateStatus;
|
|
787
|
+
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
788
|
+
"Request failed with status code " + n.status,
|
|
789
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
790
|
+
n.config,
|
|
791
|
+
n.request,
|
|
792
|
+
n
|
|
793
|
+
));
|
|
794
|
+
}
|
|
795
|
+
const jt = A.hasStandardBrowserEnv ? (
|
|
796
|
+
// Standard browser envs support document.cookie
|
|
797
|
+
/* @__PURE__ */ function() {
|
|
798
|
+
return {
|
|
799
|
+
write: function(n, r, s, o, i, u) {
|
|
800
|
+
const f = [];
|
|
801
|
+
f.push(n + "=" + encodeURIComponent(r)), a.isNumber(s) && f.push("expires=" + new Date(s).toGMTString()), a.isString(o) && f.push("path=" + o), a.isString(i) && f.push("domain=" + i), u === !0 && f.push("secure"), document.cookie = f.join("; ");
|
|
802
|
+
},
|
|
803
|
+
read: function(n) {
|
|
804
|
+
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
805
|
+
return r ? decodeURIComponent(r[3]) : null;
|
|
806
|
+
},
|
|
807
|
+
remove: function(n) {
|
|
808
|
+
this.write(n, "", Date.now() - 864e5);
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
}()
|
|
812
|
+
) : (
|
|
813
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
814
|
+
/* @__PURE__ */ function() {
|
|
815
|
+
return {
|
|
816
|
+
write: function() {
|
|
817
|
+
},
|
|
818
|
+
read: function() {
|
|
819
|
+
return null;
|
|
820
|
+
},
|
|
821
|
+
remove: function() {
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
}()
|
|
825
|
+
);
|
|
826
|
+
function kt(e) {
|
|
827
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
828
|
+
}
|
|
829
|
+
function Ht(e, t) {
|
|
830
|
+
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
831
|
+
}
|
|
832
|
+
function Ce(e, t) {
|
|
833
|
+
return e && !kt(t) ? Ht(e, t) : t;
|
|
834
|
+
}
|
|
835
|
+
const It = A.hasStandardBrowserEnv ? (
|
|
836
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
837
|
+
// whether the request URL is of the same origin as current location.
|
|
838
|
+
function() {
|
|
839
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
840
|
+
let r;
|
|
841
|
+
function s(o) {
|
|
842
|
+
let i = o;
|
|
843
|
+
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
844
|
+
href: n.href,
|
|
845
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
846
|
+
host: n.host,
|
|
847
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
848
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
849
|
+
hostname: n.hostname,
|
|
850
|
+
port: n.port,
|
|
851
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
return r = s(window.location.href), function(i) {
|
|
855
|
+
const u = a.isString(i) ? s(i) : i;
|
|
856
|
+
return u.protocol === r.protocol && u.host === r.host;
|
|
857
|
+
};
|
|
858
|
+
}()
|
|
859
|
+
) : (
|
|
860
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
861
|
+
/* @__PURE__ */ function() {
|
|
862
|
+
return function() {
|
|
863
|
+
return !0;
|
|
864
|
+
};
|
|
865
|
+
}()
|
|
866
|
+
);
|
|
867
|
+
function qt(e) {
|
|
868
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
869
|
+
return t && t[1] || "";
|
|
870
|
+
}
|
|
871
|
+
function Mt(e, t) {
|
|
872
|
+
e = e || 10;
|
|
873
|
+
const n = new Array(e), r = new Array(e);
|
|
874
|
+
let s = 0, o = 0, i;
|
|
875
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
876
|
+
const d = Date.now(), c = r[o];
|
|
877
|
+
i || (i = d), n[s] = f, r[s] = d;
|
|
878
|
+
let p = o, E = 0;
|
|
879
|
+
for (; p !== s; )
|
|
880
|
+
E += n[p++], p = p % e;
|
|
881
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), d - i < t)
|
|
882
|
+
return;
|
|
883
|
+
const b = c && d - c;
|
|
884
|
+
return b ? Math.round(E * 1e3 / b) : void 0;
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
function ae(e, t) {
|
|
888
|
+
let n = 0;
|
|
889
|
+
const r = Mt(50, 250);
|
|
890
|
+
return (s) => {
|
|
891
|
+
const o = s.loaded, i = s.lengthComputable ? s.total : void 0, u = o - n, f = r(u), d = o <= i;
|
|
892
|
+
n = o;
|
|
893
|
+
const c = {
|
|
894
|
+
loaded: o,
|
|
895
|
+
total: i,
|
|
896
|
+
progress: i ? o / i : void 0,
|
|
897
|
+
bytes: u,
|
|
898
|
+
rate: f || void 0,
|
|
899
|
+
estimated: f && i && d ? (i - o) / f : void 0,
|
|
900
|
+
event: s
|
|
901
|
+
};
|
|
902
|
+
c[t ? "download" : "upload"] = !0, e(c);
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
const zt = typeof XMLHttpRequest < "u", Jt = zt && function(e) {
|
|
906
|
+
return new Promise(function(n, r) {
|
|
907
|
+
let s = e.data;
|
|
908
|
+
const o = R.from(e.headers).normalize(), i = e.responseType;
|
|
909
|
+
let u;
|
|
910
|
+
function f() {
|
|
911
|
+
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
912
|
+
}
|
|
913
|
+
let d;
|
|
914
|
+
if (a.isFormData(s)) {
|
|
915
|
+
if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
|
|
916
|
+
o.setContentType(!1);
|
|
917
|
+
else if ((d = o.getContentType()) !== !1) {
|
|
918
|
+
const [l, ...h] = d ? d.split(";").map((w) => w.trim()).filter(Boolean) : [];
|
|
919
|
+
o.setContentType([l || "multipart/form-data", ...h].join("; "));
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
let c = new XMLHttpRequest();
|
|
923
|
+
if (e.auth) {
|
|
924
|
+
const l = e.auth.username || "", h = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
925
|
+
o.set("Authorization", "Basic " + btoa(l + ":" + h));
|
|
926
|
+
}
|
|
927
|
+
const p = Ce(e.baseURL, e.url);
|
|
928
|
+
c.open(e.method.toUpperCase(), Te(p, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
|
|
929
|
+
function E() {
|
|
930
|
+
if (!c)
|
|
931
|
+
return;
|
|
932
|
+
const l = R.from(
|
|
933
|
+
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
934
|
+
), w = {
|
|
935
|
+
data: !i || i === "text" || i === "json" ? c.responseText : c.response,
|
|
936
|
+
status: c.status,
|
|
937
|
+
statusText: c.statusText,
|
|
938
|
+
headers: l,
|
|
939
|
+
config: e,
|
|
940
|
+
request: c
|
|
941
|
+
};
|
|
942
|
+
Ut(function(O) {
|
|
943
|
+
n(O), f();
|
|
944
|
+
}, function(O) {
|
|
945
|
+
r(O), f();
|
|
946
|
+
}, w), c = null;
|
|
947
|
+
}
|
|
948
|
+
if ("onloadend" in c ? c.onloadend = E : c.onreadystatechange = function() {
|
|
949
|
+
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
950
|
+
}, c.onabort = function() {
|
|
951
|
+
c && (r(new m("Request aborted", m.ECONNABORTED, e, c)), c = null);
|
|
952
|
+
}, c.onerror = function() {
|
|
953
|
+
r(new m("Network Error", m.ERR_NETWORK, e, c)), c = null;
|
|
954
|
+
}, c.ontimeout = function() {
|
|
955
|
+
let h = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
956
|
+
const w = e.transitional || ge;
|
|
957
|
+
e.timeoutErrorMessage && (h = e.timeoutErrorMessage), r(new m(
|
|
958
|
+
h,
|
|
959
|
+
w.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
960
|
+
e,
|
|
961
|
+
c
|
|
962
|
+
)), c = null;
|
|
963
|
+
}, A.hasStandardBrowserEnv) {
|
|
964
|
+
const l = It(p) && e.xsrfCookieName && jt.read(e.xsrfCookieName);
|
|
965
|
+
l && o.set(e.xsrfHeaderName, l);
|
|
966
|
+
}
|
|
967
|
+
s === void 0 && o.setContentType(null), "setRequestHeader" in c && a.forEach(o.toJSON(), function(h, w) {
|
|
968
|
+
c.setRequestHeader(w, h);
|
|
969
|
+
}), a.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), i && i !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", ae(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", ae(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (l) => {
|
|
970
|
+
c && (r(!l || l.type ? new L(null, e, c) : l), c.abort(), c = null);
|
|
971
|
+
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
972
|
+
const b = qt(p);
|
|
973
|
+
if (b && A.protocols.indexOf(b) === -1) {
|
|
974
|
+
r(new m("Unsupported protocol " + b + ":", m.ERR_BAD_REQUEST, e));
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
c.send(s || null);
|
|
978
|
+
});
|
|
979
|
+
}, G = {
|
|
980
|
+
http: ht,
|
|
981
|
+
xhr: Jt
|
|
982
|
+
};
|
|
983
|
+
a.forEach(G, (e, t) => {
|
|
984
|
+
if (e) {
|
|
985
|
+
try {
|
|
986
|
+
Object.defineProperty(e, "name", { value: t });
|
|
987
|
+
} catch {
|
|
988
|
+
}
|
|
989
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
const ce = (e) => `- ${e}`, Vt = (e) => a.isFunction(e) || e === null || e === !1, Fe = {
|
|
993
|
+
getAdapter: (e) => {
|
|
994
|
+
e = a.isArray(e) ? e : [e];
|
|
995
|
+
const { length: t } = e;
|
|
996
|
+
let n, r;
|
|
997
|
+
const s = {};
|
|
998
|
+
for (let o = 0; o < t; o++) {
|
|
999
|
+
n = e[o];
|
|
1000
|
+
let i;
|
|
1001
|
+
if (r = n, !Vt(n) && (r = G[(i = String(n)).toLowerCase()], r === void 0))
|
|
1002
|
+
throw new m(`Unknown adapter '${i}'`);
|
|
1003
|
+
if (r)
|
|
1004
|
+
break;
|
|
1005
|
+
s[i || "#" + o] = r;
|
|
1006
|
+
}
|
|
1007
|
+
if (!r) {
|
|
1008
|
+
const o = Object.entries(s).map(
|
|
1009
|
+
([u, f]) => `adapter ${u} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1010
|
+
);
|
|
1011
|
+
let i = t ? o.length > 1 ? `since :
|
|
1012
|
+
` + o.map(ce).join(`
|
|
1013
|
+
`) : " " + ce(o[0]) : "as no adapter specified";
|
|
1014
|
+
throw new m(
|
|
1015
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1016
|
+
"ERR_NOT_SUPPORT"
|
|
1017
|
+
);
|
|
1018
|
+
}
|
|
1019
|
+
return r;
|
|
1020
|
+
},
|
|
1021
|
+
adapters: G
|
|
1022
|
+
};
|
|
1023
|
+
function $(e) {
|
|
1024
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1025
|
+
throw new L(null, e);
|
|
1026
|
+
}
|
|
1027
|
+
function ue(e) {
|
|
1028
|
+
return $(e), e.headers = R.from(e.headers), e.data = V.call(
|
|
1029
|
+
e,
|
|
1030
|
+
e.transformRequest
|
|
1031
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Fe.getAdapter(e.adapter || D.adapter)(e).then(function(r) {
|
|
1032
|
+
return $(e), r.data = V.call(
|
|
1033
|
+
e,
|
|
1034
|
+
e.transformResponse,
|
|
1035
|
+
r
|
|
1036
|
+
), r.headers = R.from(r.headers), r;
|
|
1037
|
+
}, function(r) {
|
|
1038
|
+
return Pe(r) || ($(e), r && r.response && (r.response.data = V.call(
|
|
1039
|
+
e,
|
|
1040
|
+
e.transformResponse,
|
|
1041
|
+
r.response
|
|
1042
|
+
), r.response.headers = R.from(r.response.headers))), Promise.reject(r);
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
const le = (e) => e instanceof R ? e.toJSON() : e;
|
|
1046
|
+
function P(e, t) {
|
|
1047
|
+
t = t || {};
|
|
1048
|
+
const n = {};
|
|
1049
|
+
function r(d, c, p) {
|
|
1050
|
+
return a.isPlainObject(d) && a.isPlainObject(c) ? a.merge.call({ caseless: p }, d, c) : a.isPlainObject(c) ? a.merge({}, c) : a.isArray(c) ? c.slice() : c;
|
|
1051
|
+
}
|
|
1052
|
+
function s(d, c, p) {
|
|
1053
|
+
if (a.isUndefined(c)) {
|
|
1054
|
+
if (!a.isUndefined(d))
|
|
1055
|
+
return r(void 0, d, p);
|
|
1056
|
+
} else
|
|
1057
|
+
return r(d, c, p);
|
|
1058
|
+
}
|
|
1059
|
+
function o(d, c) {
|
|
1060
|
+
if (!a.isUndefined(c))
|
|
1061
|
+
return r(void 0, c);
|
|
1062
|
+
}
|
|
1063
|
+
function i(d, c) {
|
|
1064
|
+
if (a.isUndefined(c)) {
|
|
1065
|
+
if (!a.isUndefined(d))
|
|
1066
|
+
return r(void 0, d);
|
|
1067
|
+
} else
|
|
1068
|
+
return r(void 0, c);
|
|
1069
|
+
}
|
|
1070
|
+
function u(d, c, p) {
|
|
1071
|
+
if (p in t)
|
|
1072
|
+
return r(d, c);
|
|
1073
|
+
if (p in e)
|
|
1074
|
+
return r(void 0, d);
|
|
1075
|
+
}
|
|
1076
|
+
const f = {
|
|
1077
|
+
url: o,
|
|
1078
|
+
method: o,
|
|
1079
|
+
data: o,
|
|
1080
|
+
baseURL: i,
|
|
1081
|
+
transformRequest: i,
|
|
1082
|
+
transformResponse: i,
|
|
1083
|
+
paramsSerializer: i,
|
|
1084
|
+
timeout: i,
|
|
1085
|
+
timeoutMessage: i,
|
|
1086
|
+
withCredentials: i,
|
|
1087
|
+
adapter: i,
|
|
1088
|
+
responseType: i,
|
|
1089
|
+
xsrfCookieName: i,
|
|
1090
|
+
xsrfHeaderName: i,
|
|
1091
|
+
onUploadProgress: i,
|
|
1092
|
+
onDownloadProgress: i,
|
|
1093
|
+
decompress: i,
|
|
1094
|
+
maxContentLength: i,
|
|
1095
|
+
maxBodyLength: i,
|
|
1096
|
+
beforeRedirect: i,
|
|
1097
|
+
transport: i,
|
|
1098
|
+
httpAgent: i,
|
|
1099
|
+
httpsAgent: i,
|
|
1100
|
+
cancelToken: i,
|
|
1101
|
+
socketPath: i,
|
|
1102
|
+
responseEncoding: i,
|
|
1103
|
+
validateStatus: u,
|
|
1104
|
+
headers: (d, c) => s(le(d), le(c), !0)
|
|
1105
|
+
};
|
|
1106
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
|
1107
|
+
const p = f[c] || s, E = p(e[c], t[c], c);
|
|
1108
|
+
a.isUndefined(E) && p !== u || (n[c] = E);
|
|
1109
|
+
}), n;
|
|
1110
|
+
}
|
|
1111
|
+
const Be = "1.6.1", Y = {};
|
|
1112
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1113
|
+
Y[e] = function(r) {
|
|
1114
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1115
|
+
};
|
|
1116
|
+
});
|
|
1117
|
+
const fe = {};
|
|
1118
|
+
Y.transitional = function(t, n, r) {
|
|
1119
|
+
function s(o, i) {
|
|
1120
|
+
return "[Axios v" + Be + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1121
|
+
}
|
|
1122
|
+
return (o, i, u) => {
|
|
1123
|
+
if (t === !1)
|
|
1124
|
+
throw new m(
|
|
1125
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1126
|
+
m.ERR_DEPRECATED
|
|
1127
|
+
);
|
|
1128
|
+
return n && !fe[i] && (fe[i] = !0, console.warn(
|
|
1129
|
+
s(
|
|
1130
|
+
i,
|
|
1131
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1132
|
+
)
|
|
1133
|
+
)), t ? t(o, i, u) : !0;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
function $t(e, t, n) {
|
|
1137
|
+
if (typeof e != "object")
|
|
1138
|
+
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1139
|
+
const r = Object.keys(e);
|
|
1140
|
+
let s = r.length;
|
|
1141
|
+
for (; s-- > 0; ) {
|
|
1142
|
+
const o = r[s], i = t[o];
|
|
1143
|
+
if (i) {
|
|
1144
|
+
const u = e[o], f = u === void 0 || i(u, o, e);
|
|
1145
|
+
if (f !== !0)
|
|
1146
|
+
throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
|
|
1147
|
+
continue;
|
|
1148
|
+
}
|
|
1149
|
+
if (n !== !0)
|
|
1150
|
+
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
const v = {
|
|
1154
|
+
assertOptions: $t,
|
|
1155
|
+
validators: Y
|
|
1156
|
+
}, N = v.validators;
|
|
1157
|
+
class x {
|
|
1158
|
+
constructor(t) {
|
|
1159
|
+
this.defaults = t, this.interceptors = {
|
|
1160
|
+
request: new oe(),
|
|
1161
|
+
response: new oe()
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Dispatch a request
|
|
1166
|
+
*
|
|
1167
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1168
|
+
* @param {?Object} config
|
|
1169
|
+
*
|
|
1170
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1171
|
+
*/
|
|
1172
|
+
request(t, n) {
|
|
1173
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = P(this.defaults, n);
|
|
1174
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1175
|
+
r !== void 0 && v.assertOptions(r, {
|
|
1176
|
+
silentJSONParsing: N.transitional(N.boolean),
|
|
1177
|
+
forcedJSONParsing: N.transitional(N.boolean),
|
|
1178
|
+
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1179
|
+
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1180
|
+
serialize: s
|
|
1181
|
+
} : v.assertOptions(s, {
|
|
1182
|
+
encode: N.function,
|
|
1183
|
+
serialize: N.function
|
|
1184
|
+
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1185
|
+
let i = o && a.merge(
|
|
1186
|
+
o.common,
|
|
1187
|
+
o[n.method]
|
|
1188
|
+
);
|
|
1189
|
+
o && a.forEach(
|
|
1190
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1191
|
+
(l) => {
|
|
1192
|
+
delete o[l];
|
|
1193
|
+
}
|
|
1194
|
+
), n.headers = R.concat(i, o);
|
|
1195
|
+
const u = [];
|
|
1196
|
+
let f = !0;
|
|
1197
|
+
this.interceptors.request.forEach(function(h) {
|
|
1198
|
+
typeof h.runWhen == "function" && h.runWhen(n) === !1 || (f = f && h.synchronous, u.unshift(h.fulfilled, h.rejected));
|
|
1199
|
+
});
|
|
1200
|
+
const d = [];
|
|
1201
|
+
this.interceptors.response.forEach(function(h) {
|
|
1202
|
+
d.push(h.fulfilled, h.rejected);
|
|
1203
|
+
});
|
|
1204
|
+
let c, p = 0, E;
|
|
1205
|
+
if (!f) {
|
|
1206
|
+
const l = [ue.bind(this), void 0];
|
|
1207
|
+
for (l.unshift.apply(l, u), l.push.apply(l, d), E = l.length, c = Promise.resolve(n); p < E; )
|
|
1208
|
+
c = c.then(l[p++], l[p++]);
|
|
1209
|
+
return c;
|
|
1210
|
+
}
|
|
1211
|
+
E = u.length;
|
|
1212
|
+
let b = n;
|
|
1213
|
+
for (p = 0; p < E; ) {
|
|
1214
|
+
const l = u[p++], h = u[p++];
|
|
1215
|
+
try {
|
|
1216
|
+
b = l(b);
|
|
1217
|
+
} catch (w) {
|
|
1218
|
+
h.call(this, w);
|
|
1219
|
+
break;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
try {
|
|
1223
|
+
c = ue.call(this, b);
|
|
1224
|
+
} catch (l) {
|
|
1225
|
+
return Promise.reject(l);
|
|
1226
|
+
}
|
|
1227
|
+
for (p = 0, E = d.length; p < E; )
|
|
1228
|
+
c = c.then(d[p++], d[p++]);
|
|
1229
|
+
return c;
|
|
1230
|
+
}
|
|
1231
|
+
getUri(t) {
|
|
1232
|
+
t = P(this.defaults, t);
|
|
1233
|
+
const n = Ce(t.baseURL, t.url);
|
|
1234
|
+
return Te(n, t.params, t.paramsSerializer);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1238
|
+
x.prototype[t] = function(n, r) {
|
|
1239
|
+
return this.request(P(r || {}, {
|
|
1240
|
+
method: t,
|
|
1241
|
+
url: n,
|
|
1242
|
+
data: (r || {}).data
|
|
1243
|
+
}));
|
|
1244
|
+
};
|
|
1245
|
+
});
|
|
1246
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1247
|
+
function n(r) {
|
|
1248
|
+
return function(o, i, u) {
|
|
1249
|
+
return this.request(P(u || {}, {
|
|
1250
|
+
method: t,
|
|
1251
|
+
headers: r ? {
|
|
1252
|
+
"Content-Type": "multipart/form-data"
|
|
1253
|
+
} : {},
|
|
1254
|
+
url: o,
|
|
1255
|
+
data: i
|
|
1256
|
+
}));
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
x.prototype[t] = n(), x.prototype[t + "Form"] = n(!0);
|
|
1260
|
+
});
|
|
1261
|
+
class ee {
|
|
1262
|
+
constructor(t) {
|
|
1263
|
+
if (typeof t != "function")
|
|
1264
|
+
throw new TypeError("executor must be a function.");
|
|
1265
|
+
let n;
|
|
1266
|
+
this.promise = new Promise(function(o) {
|
|
1267
|
+
n = o;
|
|
1268
|
+
});
|
|
1269
|
+
const r = this;
|
|
1270
|
+
this.promise.then((s) => {
|
|
1271
|
+
if (!r._listeners)
|
|
1272
|
+
return;
|
|
1273
|
+
let o = r._listeners.length;
|
|
1274
|
+
for (; o-- > 0; )
|
|
1275
|
+
r._listeners[o](s);
|
|
1276
|
+
r._listeners = null;
|
|
1277
|
+
}), this.promise.then = (s) => {
|
|
1278
|
+
let o;
|
|
1279
|
+
const i = new Promise((u) => {
|
|
1280
|
+
r.subscribe(u), o = u;
|
|
1281
|
+
}).then(s);
|
|
1282
|
+
return i.cancel = function() {
|
|
1283
|
+
r.unsubscribe(o);
|
|
1284
|
+
}, i;
|
|
1285
|
+
}, t(function(o, i, u) {
|
|
1286
|
+
r.reason || (r.reason = new L(o, i, u), n(r.reason));
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1291
|
+
*/
|
|
1292
|
+
throwIfRequested() {
|
|
1293
|
+
if (this.reason)
|
|
1294
|
+
throw this.reason;
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Subscribe to the cancel signal
|
|
1298
|
+
*/
|
|
1299
|
+
subscribe(t) {
|
|
1300
|
+
if (this.reason) {
|
|
1301
|
+
t(this.reason);
|
|
1302
|
+
return;
|
|
1303
|
+
}
|
|
1304
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Unsubscribe from the cancel signal
|
|
1308
|
+
*/
|
|
1309
|
+
unsubscribe(t) {
|
|
1310
|
+
if (!this._listeners)
|
|
1311
|
+
return;
|
|
1312
|
+
const n = this._listeners.indexOf(t);
|
|
1313
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1317
|
+
* cancels the `CancelToken`.
|
|
1318
|
+
*/
|
|
1319
|
+
static source() {
|
|
1320
|
+
let t;
|
|
1321
|
+
return {
|
|
1322
|
+
token: new ee(function(s) {
|
|
1323
|
+
t = s;
|
|
1324
|
+
}),
|
|
1325
|
+
cancel: t
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
function Wt(e) {
|
|
1330
|
+
return function(n) {
|
|
1331
|
+
return e.apply(null, n);
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
function Kt(e) {
|
|
1335
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
1336
|
+
}
|
|
1337
|
+
const X = {
|
|
1338
|
+
Continue: 100,
|
|
1339
|
+
SwitchingProtocols: 101,
|
|
1340
|
+
Processing: 102,
|
|
1341
|
+
EarlyHints: 103,
|
|
1342
|
+
Ok: 200,
|
|
1343
|
+
Created: 201,
|
|
1344
|
+
Accepted: 202,
|
|
1345
|
+
NonAuthoritativeInformation: 203,
|
|
1346
|
+
NoContent: 204,
|
|
1347
|
+
ResetContent: 205,
|
|
1348
|
+
PartialContent: 206,
|
|
1349
|
+
MultiStatus: 207,
|
|
1350
|
+
AlreadyReported: 208,
|
|
1351
|
+
ImUsed: 226,
|
|
1352
|
+
MultipleChoices: 300,
|
|
1353
|
+
MovedPermanently: 301,
|
|
1354
|
+
Found: 302,
|
|
1355
|
+
SeeOther: 303,
|
|
1356
|
+
NotModified: 304,
|
|
1357
|
+
UseProxy: 305,
|
|
1358
|
+
Unused: 306,
|
|
1359
|
+
TemporaryRedirect: 307,
|
|
1360
|
+
PermanentRedirect: 308,
|
|
1361
|
+
BadRequest: 400,
|
|
1362
|
+
Unauthorized: 401,
|
|
1363
|
+
PaymentRequired: 402,
|
|
1364
|
+
Forbidden: 403,
|
|
1365
|
+
NotFound: 404,
|
|
1366
|
+
MethodNotAllowed: 405,
|
|
1367
|
+
NotAcceptable: 406,
|
|
1368
|
+
ProxyAuthenticationRequired: 407,
|
|
1369
|
+
RequestTimeout: 408,
|
|
1370
|
+
Conflict: 409,
|
|
1371
|
+
Gone: 410,
|
|
1372
|
+
LengthRequired: 411,
|
|
1373
|
+
PreconditionFailed: 412,
|
|
1374
|
+
PayloadTooLarge: 413,
|
|
1375
|
+
UriTooLong: 414,
|
|
1376
|
+
UnsupportedMediaType: 415,
|
|
1377
|
+
RangeNotSatisfiable: 416,
|
|
1378
|
+
ExpectationFailed: 417,
|
|
1379
|
+
ImATeapot: 418,
|
|
1380
|
+
MisdirectedRequest: 421,
|
|
1381
|
+
UnprocessableEntity: 422,
|
|
1382
|
+
Locked: 423,
|
|
1383
|
+
FailedDependency: 424,
|
|
1384
|
+
TooEarly: 425,
|
|
1385
|
+
UpgradeRequired: 426,
|
|
1386
|
+
PreconditionRequired: 428,
|
|
1387
|
+
TooManyRequests: 429,
|
|
1388
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1389
|
+
UnavailableForLegalReasons: 451,
|
|
1390
|
+
InternalServerError: 500,
|
|
1391
|
+
NotImplemented: 501,
|
|
1392
|
+
BadGateway: 502,
|
|
1393
|
+
ServiceUnavailable: 503,
|
|
1394
|
+
GatewayTimeout: 504,
|
|
1395
|
+
HttpVersionNotSupported: 505,
|
|
1396
|
+
VariantAlsoNegotiates: 506,
|
|
1397
|
+
InsufficientStorage: 507,
|
|
1398
|
+
LoopDetected: 508,
|
|
1399
|
+
NotExtended: 510,
|
|
1400
|
+
NetworkAuthenticationRequired: 511
|
|
1401
|
+
};
|
|
1402
|
+
Object.entries(X).forEach(([e, t]) => {
|
|
1403
|
+
X[t] = e;
|
|
1404
|
+
});
|
|
1405
|
+
function _e(e) {
|
|
1406
|
+
const t = new x(e), n = de(x.prototype.request, t);
|
|
1407
|
+
return a.extend(n, x.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1408
|
+
return _e(P(e, s));
|
|
1409
|
+
}, n;
|
|
1410
|
+
}
|
|
1411
|
+
const y = _e(D);
|
|
1412
|
+
y.Axios = x;
|
|
1413
|
+
y.CanceledError = L;
|
|
1414
|
+
y.CancelToken = ee;
|
|
1415
|
+
y.isCancel = Pe;
|
|
1416
|
+
y.VERSION = Be;
|
|
1417
|
+
y.toFormData = M;
|
|
1418
|
+
y.AxiosError = m;
|
|
1419
|
+
y.Cancel = y.CanceledError;
|
|
1420
|
+
y.all = function(t) {
|
|
1421
|
+
return Promise.all(t);
|
|
1422
|
+
};
|
|
1423
|
+
y.spread = Wt;
|
|
1424
|
+
y.isAxiosError = Kt;
|
|
1425
|
+
y.mergeConfig = P;
|
|
1426
|
+
y.AxiosHeaders = R;
|
|
1427
|
+
y.formToJSON = (e) => xe(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1428
|
+
y.getAdapter = Fe.getAdapter;
|
|
1429
|
+
y.HttpStatusCode = X;
|
|
1430
|
+
y.default = y;
|
|
1431
|
+
const Gt = y;
|
|
1432
|
+
export {
|
|
1433
|
+
Gt as default
|
|
1434
|
+
};
|