@tmagic/editor 1.8.4-beta.1 → 1.8.4
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/es/Editor.js +1 -2
- package/dist/es/Editor.vue_vue_type_script_setup_true_lang.js +5 -6
- package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/components/CodeBlockEditor.js +1 -2
- package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +6 -7
- package/dist/es/components/CodeParams.js +1 -2
- package/dist/es/components/CodeParams.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/CompareForm.js +1 -2
- package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/ContentMenu.js +1 -2
- package/dist/es/components/ContentMenu.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/FloatingBox.js +1 -2
- package/dist/es/components/FloatingBox.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/Icon.js +1 -2
- package/dist/es/components/Icon.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/Resizer.js +1 -2
- package/dist/es/components/Resizer.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/ScrollBar.js +1 -2
- package/dist/es/components/ScrollBar.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/ScrollViewer.js +1 -2
- package/dist/es/components/ScrollViewer.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/SearchInput.js +1 -2
- package/dist/es/components/SearchInput.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/SplitView.js +1 -2
- package/dist/es/components/SplitView.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/ToolButton.js +1 -2
- package/dist/es/components/ToolButton.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/Tree.js +1 -2
- package/dist/es/components/Tree.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/components/TreeNode.js +1 -2
- package/dist/es/components/TreeNode.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/components/ViewForm.js +1 -2
- package/dist/es/components/ViewForm.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/editorProps.js +1 -2
- package/dist/es/fields/Code.js +1 -2
- package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/CodeLink.js +1 -2
- package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/CodeSelect.js +1 -2
- package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/CodeSelectCol.js +1 -2
- package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +14 -12
- package/dist/es/fields/CondOpSelect.js +1 -2
- package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/fields/DataSourceFieldSelect/FieldSelect.js +1 -2
- package/dist/es/fields/DataSourceFieldSelect/FieldSelect.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/fields/DataSourceFieldSelect/Index.js +1 -2
- package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/fields/DataSourceFields.js +1 -2
- package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/es/fields/DataSourceInput.js +1 -2
- package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/fields/DataSourceMethodSelect.js +1 -2
- package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +17 -10
- package/dist/es/fields/DataSourceMethods.js +1 -2
- package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/DataSourceMocks.js +1 -2
- package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/es/fields/DataSourceSelect.js +1 -2
- package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/fields/DisplayConds.js +1 -2
- package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/EventSelect.js +1 -2
- package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/KeyValue.js +1 -2
- package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/fields/PageFragmentSelect.js +1 -2
- package/dist/es/fields/PageFragmentSelect.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/fields/StyleSetter/Index.js +1 -2
- package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/fields/StyleSetter/components/BackgroundPosition.js +1 -2
- package/dist/es/fields/StyleSetter/components/BackgroundPosition.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/StyleSetter/components/Border.js +1 -2
- package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/StyleSetter/components/Box.js +1 -2
- package/dist/es/fields/StyleSetter/components/Box.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/StyleSetter/configs.js +3 -4
- package/dist/es/fields/StyleSetter/icons/align-items/Center.js +1 -2
- package/dist/es/fields/StyleSetter/icons/align-items/FlexEnd.js +1 -2
- package/dist/es/fields/StyleSetter/icons/align-items/FlexStart.js +1 -2
- package/dist/es/fields/StyleSetter/icons/align-items/SpaceAround.js +1 -2
- package/dist/es/fields/StyleSetter/icons/align-items/SpaceBetween.js +1 -2
- package/dist/es/fields/StyleSetter/icons/background-repeat/NoRepeat.js +1 -2
- package/dist/es/fields/StyleSetter/icons/background-repeat/Repeat.js +1 -2
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatX.js +1 -2
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatY.js +1 -2
- package/dist/es/fields/StyleSetter/icons/display/Block.js +1 -2
- package/dist/es/fields/StyleSetter/icons/display/Flex.js +1 -2
- package/dist/es/fields/StyleSetter/icons/display/Inline.js +1 -2
- package/dist/es/fields/StyleSetter/icons/display/InlineBlock.js +1 -2
- package/dist/es/fields/StyleSetter/icons/display/None.js +1 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/Column.js +1 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/ColumnReverse.js +1 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/Row.js +1 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/RowReverse.js +1 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/Center.js +1 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexEnd.js +1 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexStart.js +1 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceAround.js +1 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceBetween.js +1 -2
- package/dist/es/fields/StyleSetter/icons/text-align/Center.js +1 -2
- package/dist/es/fields/StyleSetter/icons/text-align/Left.js +1 -2
- package/dist/es/fields/StyleSetter/icons/text-align/Right.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Background.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Border.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Border.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/fields/StyleSetter/pro/Font.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Layout.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/fields/StyleSetter/pro/Position.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Position.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Transform.js +1 -2
- package/dist/es/fields/StyleSetter/pro/Transform.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/fields/UISelect.js +1 -2
- package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +7 -5
- package/dist/es/fields/configs/codeSelect.js +1 -2
- package/dist/es/fields/configs/displayConds.js +1 -2
- package/dist/es/fields/configs/eventSelect.js +2 -3
- package/dist/es/fields/configs/stickyAddButton.js +1 -2
- package/dist/es/fields/headless-validation.js +2 -3
- package/dist/es/hooks/use-code-block-edit.js +1 -2
- package/dist/es/hooks/use-compare-form.js +1 -2
- package/dist/es/hooks/use-data-source-edit.js +1 -2
- package/dist/es/hooks/use-editor-content-height.js +1 -2
- package/dist/es/hooks/use-filter.js +1 -2
- package/dist/es/hooks/use-float-box.js +1 -2
- package/dist/es/hooks/use-form-context.js +1 -2
- package/dist/es/hooks/use-getso.js +1 -2
- package/dist/es/hooks/use-next-float-box-position.js +1 -2
- package/dist/es/hooks/use-node-status.js +1 -2
- package/dist/es/hooks/use-services.js +1 -2
- package/dist/es/hooks/use-stage.js +3 -4
- package/dist/es/hooks/use-window-rect.js +1 -2
- package/dist/es/icons/CenterIcon.js +1 -2
- package/dist/es/icons/CenterIcon.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/icons/CodeIcon.js +1 -2
- package/dist/es/icons/CodeIcon.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/icons/DatasourceIcon.js +1 -2
- package/dist/es/icons/FolderMinusIcon.js +1 -2
- package/dist/es/icons/FolderMinusIcon.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/index.js +27 -27
- package/dist/es/initService.js +2 -3
- package/dist/es/layouts/AddPageBox.js +1 -2
- package/dist/es/layouts/AddPageBox.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/CodeEditor.js +1 -2
- package/dist/es/layouts/CodeEditor.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/Framework.js +1 -2
- package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/es/layouts/NavMenu.js +1 -2
- package/dist/es/layouts/NavMenu.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/NavMenuColumn.js +1 -2
- package/dist/es/layouts/NavMenuColumn.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/history-list/Bucket.js +1 -2
- package/dist/es/layouts/history-list/Bucket.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/history-list/BucketTab.js +1 -2
- package/dist/es/layouts/history-list/BucketTab.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/history-list/GroupRow.js +1 -2
- package/dist/es/layouts/history-list/GroupRow.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/history-list/HistoryDiffDialog.js +1 -2
- package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/history-list/HistoryListPanel.js +1 -2
- package/dist/es/layouts/history-list/HistoryListPanel.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/history-list/InitialRow.js +1 -2
- package/dist/es/layouts/history-list/InitialRow.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/history-list/PageTab.js +1 -2
- package/dist/es/layouts/history-list/PageTab.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/history-list/composables.js +1 -2
- package/dist/es/layouts/history-list/useHistoryList.js +1 -2
- package/dist/es/layouts/history-list/useHistoryRevert.js +1 -2
- package/dist/es/layouts/page-bar/AddButton.js +1 -2
- package/dist/es/layouts/page-bar/AddButton.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/page-bar/PageBar.js +1 -2
- package/dist/es/layouts/page-bar/PageBar.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/page-bar/PageBarScrollContainer.js +1 -2
- package/dist/es/layouts/page-bar/PageBarScrollContainer.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/page-bar/PageList.js +1 -2
- package/dist/es/layouts/page-bar/PageList.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/page-bar/Search.js +1 -2
- package/dist/es/layouts/page-bar/Search.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/props-panel/FormPanel.js +1 -2
- package/dist/es/layouts/props-panel/FormPanel.vue_vue_type_script_setup_true_lang.js +7 -5
- package/dist/es/layouts/props-panel/PropsPanel.js +1 -2
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +14 -7
- package/dist/es/layouts/props-panel/use-style-panel.js +1 -2
- package/dist/es/layouts/sidebar/ComponentListPanel.js +1 -2
- package/dist/es/layouts/sidebar/ComponentListPanel.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/sidebar/Sidebar.js +1 -2
- package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +6 -7
- package/dist/es/layouts/sidebar/code-block/CodeBlockList.js +1 -2
- package/dist/es/layouts/sidebar/code-block/CodeBlockList.vue_vue_type_script_setup_true_lang.js +49 -33
- package/dist/es/layouts/sidebar/code-block/CodeBlockListPanel.js +1 -2
- package/dist/es/layouts/sidebar/code-block/CodeBlockListPanel.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/sidebar/code-block/useContentMenu.js +1 -2
- package/dist/es/layouts/sidebar/data-source/DataSourceAddButton.js +1 -2
- package/dist/es/layouts/sidebar/data-source/DataSourceAddButton.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/sidebar/data-source/DataSourceConfigPanel.js +1 -2
- package/dist/es/layouts/sidebar/data-source/DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/sidebar/data-source/DataSourceList.js +1 -2
- package/dist/es/layouts/sidebar/data-source/DataSourceList.vue_vue_type_script_setup_true_lang.js +30 -20
- package/dist/es/layouts/sidebar/data-source/DataSourceListPanel.js +1 -2
- package/dist/es/layouts/sidebar/data-source/DataSourceListPanel.vue_vue_type_script_setup_true_lang.js +5 -10
- package/dist/es/layouts/sidebar/data-source/useContentMenu.js +1 -2
- package/dist/es/layouts/sidebar/layer/LayerMenu.js +1 -2
- package/dist/es/layouts/sidebar/layer/LayerMenu.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/sidebar/layer/LayerNodeContent.js +1 -2
- package/dist/es/layouts/sidebar/layer/LayerNodeContent.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/sidebar/layer/LayerNodeTool.js +1 -2
- package/dist/es/layouts/sidebar/layer/LayerNodeTool.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/sidebar/layer/LayerPanel.js +1 -2
- package/dist/es/layouts/sidebar/layer/LayerPanel.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/sidebar/layer/use-click.js +1 -2
- package/dist/es/layouts/sidebar/layer/use-drag.js +1 -2
- package/dist/es/layouts/sidebar/layer/use-keybinding.js +1 -2
- package/dist/es/layouts/sidebar/layer/use-node-status.js +1 -2
- package/dist/es/layouts/workspace/Breadcrumb.js +1 -2
- package/dist/es/layouts/workspace/Breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/workspace/Workspace.js +1 -2
- package/dist/es/layouts/workspace/Workspace.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/es/layouts/workspace/viewer/NodeListMenu.js +1 -2
- package/dist/es/layouts/workspace/viewer/NodeListMenu.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/es/layouts/workspace/viewer/Stage.js +1 -2
- package/dist/es/layouts/workspace/viewer/Stage.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/es/layouts/workspace/viewer/StageOverlay.js +1 -2
- package/dist/es/layouts/workspace/viewer/StageOverlay.vue_vue_type_script_setup_true_lang.js +2 -3
- package/dist/es/layouts/workspace/viewer/ViewerMenu.js +1 -2
- package/dist/es/layouts/workspace/viewer/ViewerMenu.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/es/plugin.js +13 -14
- package/dist/es/sdk/index.js +2 -3
- package/dist/es/sdk/services/BaseService.js +1 -2
- package/dist/es/sdk/services/CodeBlock.js +1 -2
- package/dist/es/sdk/services/ComponentList.js +1 -2
- package/dist/es/sdk/services/DataSource.js +2 -3
- package/dist/es/sdk/services/Dep.js +2 -3
- package/dist/es/sdk/services/Editor.js +32 -13
- package/dist/es/sdk/services/Events.js +1 -2
- package/dist/es/sdk/services/History.js +2 -3
- package/dist/es/sdk/services/Props.js +2 -3
- package/dist/es/sdk/services/WebStorage.js +1 -2
- package/dist/es/sdk/utils/dep.js +1 -2
- package/dist/es/sdk/utils/operator.js +1 -2
- package/dist/es/sdk/utils/position.js +1 -2
- package/dist/es/sdk/utils/props.js +4 -5
- package/dist/es/sdk/validate/index.js +1 -2
- package/dist/es/sdk/wiring.js +1 -2
- package/dist/es/services/keybinding.js +2 -3
- package/dist/es/services/sdk-instance.js +3 -4
- package/dist/es/services/stageOverlay.js +2 -3
- package/dist/es/services/ui.js +1 -2
- package/dist/es/style.css +36 -0
- package/dist/es/type.js +1 -2
- package/dist/es/utils/code-block.js +1 -2
- package/dist/es/utils/config.js +1 -2
- package/dist/es/utils/const.js +1 -2
- package/dist/es/utils/content-menu.js +1 -2
- package/dist/es/utils/data-source/formConfigs/base.js +1 -2
- package/dist/es/utils/data-source/formConfigs/http.js +1 -2
- package/dist/es/utils/data-source/index.js +1 -2
- package/dist/es/utils/dep/collect-worker-client.js +1 -2
- package/dist/es/utils/dep/idle-task.js +1 -2
- package/dist/es/utils/dep/worker.js +2 -3
- package/dist/es/utils/editor.js +1 -2
- package/dist/es/utils/event.js +2 -3
- package/dist/es/utils/history.js +1 -2
- package/dist/es/utils/indexed-db.js +1 -2
- package/dist/es/utils/keybinding-config.js +1 -2
- package/dist/es/utils/logger.js +1 -2
- package/dist/es/utils/monaco-editor.js +1 -2
- package/dist/es/utils/operator.js +2 -3
- package/dist/es/utils/props.js +1 -2
- package/dist/es/utils/scroll-viewer.js +1 -2
- package/dist/es/utils/tree.js +1 -2
- package/dist/es/utils/type-match-rules.js +2 -3
- package/dist/es/utils/undo-redo.js +1 -2
- package/dist/style.css +36 -0
- package/dist/themes/magic-admin.css +36 -0
- package/dist/tmagic-editor-headless.umd.cjs +286 -518
- package/dist/tmagic-editor-sdk.umd.cjs +239 -426
- package/dist/tmagic-editor.umd.cjs +725 -1130
- package/package.json +9 -9
- package/src/fields/CodeSelectCol.vue +12 -14
- package/src/fields/DataSourceMethodSelect.vue +17 -6
- package/src/fields/UISelect.vue +3 -1
- package/src/fields/configs/eventSelect.ts +1 -1
- package/src/layouts/props-panel/FormPanel.vue +3 -0
- package/src/layouts/props-panel/PropsPanel.vue +7 -0
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +51 -26
- package/src/layouts/sidebar/data-source/DataSourceList.vue +24 -8
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +3 -8
- package/src/sdk/services/Editor.ts +40 -16
- package/src/sdk/utils/props.ts +3 -3
- package/src/theme/tree.scss +12 -0
- package/src/theme/ui-select.scss +31 -0
- package/src/type.ts +13 -0
- package/types/index.d.ts +55 -4
- package/types/sdk.d.ts +13 -3
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicEditorHeadless = {}, global._tmagic_form_headless, global._tmagic_core, global._tmagic_design_headless, global._tmagic_utils, global.Vue, global.deep_object_diff, global.serialize_javascript, global.events, global._tmagic_design));
|
|
14
14
|
})(this, function(exports, _tmagic_form_headless, _tmagic_core, _tmagic_design_headless, _tmagic_utils, vue, deep_object_diff, serialize_javascript, events, _tmagic_design) {
|
|
15
15
|
Object.defineProperty(exports, globalThis.Symbol.toStringTag, { value: "Module" });
|
|
16
|
-
|
|
16
|
+
// \0rolldown/runtime.js
|
|
17
17
|
var __create = Object.create;
|
|
18
18
|
var __defProp = Object.defineProperty;
|
|
19
19
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -34,23 +34,19 @@
|
|
|
34
34
|
value: mod,
|
|
35
35
|
enumerable: true
|
|
36
36
|
}) : target, mod));
|
|
37
|
-
//#endregion
|
|
38
37
|
serialize_javascript = __toESM(serialize_javascript, 1);
|
|
39
|
-
|
|
38
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
40
39
|
/** Detect free variable `global` from Node.js. */
|
|
41
40
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
42
|
-
|
|
43
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
41
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
44
42
|
/** Detect free variable `self`. */
|
|
45
43
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
46
44
|
/** Used as a reference to the global object. */
|
|
47
45
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
48
|
-
|
|
49
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
46
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
50
47
|
/** Built-in value references. */
|
|
51
48
|
var Symbol$1 = root.Symbol;
|
|
52
|
-
|
|
53
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
49
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
54
50
|
/** Used for built-in method references. */
|
|
55
51
|
var objectProto$4 = Object.prototype;
|
|
56
52
|
/** Used to check objects for own properties. */
|
|
@@ -83,8 +79,7 @@
|
|
|
83
79
|
}
|
|
84
80
|
return result;
|
|
85
81
|
}
|
|
86
|
-
|
|
87
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
82
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
88
83
|
/**
|
|
89
84
|
* Used to resolve the
|
|
90
85
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
@@ -101,8 +96,7 @@
|
|
|
101
96
|
function objectToString(value) {
|
|
102
97
|
return nativeObjectToString.call(value);
|
|
103
98
|
}
|
|
104
|
-
|
|
105
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
99
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
106
100
|
/** `Object#toString` result references. */
|
|
107
101
|
var nullTag = "[object Null]";
|
|
108
102
|
var undefinedTag = "[object Undefined]";
|
|
@@ -119,8 +113,7 @@
|
|
|
119
113
|
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
120
114
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
121
115
|
}
|
|
122
|
-
|
|
123
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
116
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
124
117
|
/**
|
|
125
118
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
126
119
|
* and has a `typeof` result of "object".
|
|
@@ -148,8 +141,7 @@
|
|
|
148
141
|
function isObjectLike(value) {
|
|
149
142
|
return value != null && typeof value == "object";
|
|
150
143
|
}
|
|
151
|
-
|
|
152
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
144
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
153
145
|
/** `Object#toString` result references. */
|
|
154
146
|
var symbolTag$3 = "[object Symbol]";
|
|
155
147
|
/**
|
|
@@ -172,8 +164,7 @@
|
|
|
172
164
|
function isSymbol(value) {
|
|
173
165
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$3;
|
|
174
166
|
}
|
|
175
|
-
|
|
176
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
167
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
177
168
|
/**
|
|
178
169
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
179
170
|
* shorthands.
|
|
@@ -188,8 +179,7 @@
|
|
|
188
179
|
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
189
180
|
return result;
|
|
190
181
|
}
|
|
191
|
-
|
|
192
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
182
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
193
183
|
/**
|
|
194
184
|
* Checks if `value` is classified as an `Array` object.
|
|
195
185
|
*
|
|
@@ -214,8 +204,7 @@
|
|
|
214
204
|
* // => false
|
|
215
205
|
*/
|
|
216
206
|
var isArray = Array.isArray;
|
|
217
|
-
|
|
218
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
207
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
219
208
|
/** Used as references for various `Number` constants. */
|
|
220
209
|
var INFINITY$1 = 1 / 0;
|
|
221
210
|
/** Used to convert symbols to primitives and strings. */
|
|
@@ -236,8 +225,7 @@
|
|
|
236
225
|
var result = value + "";
|
|
237
226
|
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
238
227
|
}
|
|
239
|
-
|
|
240
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
|
|
228
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
|
|
241
229
|
/** Used to match a single whitespace character. */
|
|
242
230
|
var reWhitespace = /\s/;
|
|
243
231
|
/**
|
|
@@ -253,8 +241,7 @@
|
|
|
253
241
|
while (index-- && reWhitespace.test(string.charAt(index)));
|
|
254
242
|
return index;
|
|
255
243
|
}
|
|
256
|
-
|
|
257
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
244
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
258
245
|
/** Used to match leading whitespace. */
|
|
259
246
|
var reTrimStart = /^\s+/;
|
|
260
247
|
/**
|
|
@@ -267,8 +254,7 @@
|
|
|
267
254
|
function baseTrim(string) {
|
|
268
255
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
269
256
|
}
|
|
270
|
-
|
|
271
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
257
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
272
258
|
/**
|
|
273
259
|
* Checks if `value` is the
|
|
274
260
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -298,8 +284,7 @@
|
|
|
298
284
|
var type = typeof value;
|
|
299
285
|
return value != null && (type == "object" || type == "function");
|
|
300
286
|
}
|
|
301
|
-
|
|
302
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
287
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
303
288
|
/** Used as references for various `Number` constants. */
|
|
304
289
|
var NAN = NaN;
|
|
305
290
|
/** Used to detect bad signed hexadecimal string values. */
|
|
@@ -345,8 +330,7 @@
|
|
|
345
330
|
var isBinary = reIsBinary.test(value);
|
|
346
331
|
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
347
332
|
}
|
|
348
|
-
|
|
349
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
333
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
350
334
|
/**
|
|
351
335
|
* This method returns the first argument it receives.
|
|
352
336
|
*
|
|
@@ -366,8 +350,7 @@
|
|
|
366
350
|
function identity(value) {
|
|
367
351
|
return value;
|
|
368
352
|
}
|
|
369
|
-
|
|
370
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
353
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
371
354
|
/** `Object#toString` result references. */
|
|
372
355
|
var asyncTag = "[object AsyncFunction]";
|
|
373
356
|
var funcTag$2 = "[object Function]";
|
|
@@ -395,12 +378,10 @@
|
|
|
395
378
|
var tag = baseGetTag(value);
|
|
396
379
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
397
380
|
}
|
|
398
|
-
|
|
399
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
381
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
400
382
|
/** Used to detect overreaching core-js shims. */
|
|
401
383
|
var coreJsData = root["__core-js_shared__"];
|
|
402
|
-
|
|
403
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
384
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
404
385
|
/** Used to detect methods masquerading as native. */
|
|
405
386
|
var maskSrcKey = function() {
|
|
406
387
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -416,8 +397,7 @@
|
|
|
416
397
|
function isMasked(func) {
|
|
417
398
|
return !!maskSrcKey && maskSrcKey in func;
|
|
418
399
|
}
|
|
419
|
-
|
|
420
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
400
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
421
401
|
/** Used to resolve the decompiled source of functions. */
|
|
422
402
|
var funcToString$2 = Function.prototype.toString;
|
|
423
403
|
/**
|
|
@@ -438,8 +418,7 @@
|
|
|
438
418
|
}
|
|
439
419
|
return "";
|
|
440
420
|
}
|
|
441
|
-
|
|
442
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
421
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
443
422
|
/**
|
|
444
423
|
* Used to match `RegExp`
|
|
445
424
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -468,8 +447,7 @@
|
|
|
468
447
|
if (!isObject(value) || isMasked(value)) return false;
|
|
469
448
|
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
470
449
|
}
|
|
471
|
-
|
|
472
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
450
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
473
451
|
/**
|
|
474
452
|
* Gets the value at `key` of `object`.
|
|
475
453
|
*
|
|
@@ -481,8 +459,7 @@
|
|
|
481
459
|
function getValue(object, key) {
|
|
482
460
|
return object == null ? void 0 : object[key];
|
|
483
461
|
}
|
|
484
|
-
|
|
485
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
462
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
486
463
|
/**
|
|
487
464
|
* Gets the native function at `key` of `object`.
|
|
488
465
|
*
|
|
@@ -495,11 +472,9 @@
|
|
|
495
472
|
var value = getValue(object, key);
|
|
496
473
|
return baseIsNative(value) ? value : void 0;
|
|
497
474
|
}
|
|
498
|
-
|
|
499
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
475
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
500
476
|
var WeakMap$1 = getNative(root, "WeakMap");
|
|
501
|
-
|
|
502
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
477
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
503
478
|
/** Built-in value references. */
|
|
504
479
|
var objectCreate = Object.create;
|
|
505
480
|
/**
|
|
@@ -521,8 +496,7 @@
|
|
|
521
496
|
return result;
|
|
522
497
|
};
|
|
523
498
|
}();
|
|
524
|
-
|
|
525
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
499
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
526
500
|
/**
|
|
527
501
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
528
502
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
@@ -542,8 +516,7 @@
|
|
|
542
516
|
}
|
|
543
517
|
return func.apply(thisArg, args);
|
|
544
518
|
}
|
|
545
|
-
|
|
546
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
|
|
519
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
|
|
547
520
|
/**
|
|
548
521
|
* This method returns `undefined`.
|
|
549
522
|
*
|
|
@@ -557,8 +530,7 @@
|
|
|
557
530
|
* // => [undefined, undefined]
|
|
558
531
|
*/
|
|
559
532
|
function noop() {}
|
|
560
|
-
|
|
561
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
533
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
562
534
|
/**
|
|
563
535
|
* Copies the values of `source` to `array`.
|
|
564
536
|
*
|
|
@@ -573,8 +545,7 @@
|
|
|
573
545
|
while (++index < length) array[index] = source[index];
|
|
574
546
|
return array;
|
|
575
547
|
}
|
|
576
|
-
|
|
577
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
548
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
578
549
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
579
550
|
var HOT_COUNT = 800;
|
|
580
551
|
var HOT_SPAN = 16;
|
|
@@ -599,8 +570,7 @@
|
|
|
599
570
|
return func.apply(void 0, arguments);
|
|
600
571
|
};
|
|
601
572
|
}
|
|
602
|
-
|
|
603
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
573
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
604
574
|
/**
|
|
605
575
|
* Creates a function that returns `value`.
|
|
606
576
|
*
|
|
@@ -625,8 +595,7 @@
|
|
|
625
595
|
return value;
|
|
626
596
|
};
|
|
627
597
|
}
|
|
628
|
-
|
|
629
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
598
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
630
599
|
var defineProperty = function() {
|
|
631
600
|
try {
|
|
632
601
|
var func = getNative(Object, "defineProperty");
|
|
@@ -634,8 +603,7 @@
|
|
|
634
603
|
return func;
|
|
635
604
|
} catch (e) {}
|
|
636
605
|
}();
|
|
637
|
-
|
|
638
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
|
|
606
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
|
|
639
607
|
/**
|
|
640
608
|
* Sets the `toString` method of `func` to return `string`.
|
|
641
609
|
*
|
|
@@ -652,8 +620,7 @@
|
|
|
652
620
|
"writable": true
|
|
653
621
|
});
|
|
654
622
|
});
|
|
655
|
-
|
|
656
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
623
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
657
624
|
/**
|
|
658
625
|
* A specialized version of `_.forEach` for arrays without support for
|
|
659
626
|
* iteratee shorthands.
|
|
@@ -668,8 +635,7 @@
|
|
|
668
635
|
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
669
636
|
return array;
|
|
670
637
|
}
|
|
671
|
-
|
|
672
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
|
|
638
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
|
|
673
639
|
/**
|
|
674
640
|
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
675
641
|
* support for iteratee shorthands.
|
|
@@ -686,8 +652,7 @@
|
|
|
686
652
|
while (fromRight ? index-- : ++index < length) if (predicate(array[index], index, array)) return index;
|
|
687
653
|
return -1;
|
|
688
654
|
}
|
|
689
|
-
|
|
690
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
|
|
655
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
|
|
691
656
|
/**
|
|
692
657
|
* The base implementation of `_.isNaN` without support for number objects.
|
|
693
658
|
*
|
|
@@ -698,8 +663,7 @@
|
|
|
698
663
|
function baseIsNaN(value) {
|
|
699
664
|
return value !== value;
|
|
700
665
|
}
|
|
701
|
-
|
|
702
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
|
|
666
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
|
|
703
667
|
/**
|
|
704
668
|
* A specialized version of `_.indexOf` which performs strict equality
|
|
705
669
|
* comparisons of values, i.e. `===`.
|
|
@@ -715,8 +679,7 @@
|
|
|
715
679
|
while (++index < length) if (array[index] === value) return index;
|
|
716
680
|
return -1;
|
|
717
681
|
}
|
|
718
|
-
|
|
719
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
|
|
682
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
|
|
720
683
|
/**
|
|
721
684
|
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
|
722
685
|
*
|
|
@@ -729,8 +692,7 @@
|
|
|
729
692
|
function baseIndexOf(array, value, fromIndex) {
|
|
730
693
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
731
694
|
}
|
|
732
|
-
|
|
733
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
|
|
695
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
|
|
734
696
|
/**
|
|
735
697
|
* A specialized version of `_.includes` for arrays without support for
|
|
736
698
|
* specifying an index to search from.
|
|
@@ -743,8 +705,7 @@
|
|
|
743
705
|
function arrayIncludes(array, value) {
|
|
744
706
|
return !!(array == null ? 0 : array.length) && baseIndexOf(array, value, 0) > -1;
|
|
745
707
|
}
|
|
746
|
-
|
|
747
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
708
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
748
709
|
/** Used as references for various `Number` constants. */
|
|
749
710
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
750
711
|
/** Used to detect unsigned integer values. */
|
|
@@ -762,8 +723,7 @@
|
|
|
762
723
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
763
724
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
764
725
|
}
|
|
765
|
-
|
|
766
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
726
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
767
727
|
/**
|
|
768
728
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
769
729
|
* value checks.
|
|
@@ -782,8 +742,7 @@
|
|
|
782
742
|
});
|
|
783
743
|
else object[key] = value;
|
|
784
744
|
}
|
|
785
|
-
|
|
786
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
745
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
787
746
|
/**
|
|
788
747
|
* Performs a
|
|
789
748
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -819,8 +778,7 @@
|
|
|
819
778
|
function eq(value, other) {
|
|
820
779
|
return value === other || value !== value && other !== other;
|
|
821
780
|
}
|
|
822
|
-
|
|
823
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
781
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
824
782
|
/** Used to check objects for own properties. */
|
|
825
783
|
var hasOwnProperty$12 = Object.prototype.hasOwnProperty;
|
|
826
784
|
/**
|
|
@@ -837,8 +795,7 @@
|
|
|
837
795
|
var objValue = object[key];
|
|
838
796
|
if (!(hasOwnProperty$12.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
839
797
|
}
|
|
840
|
-
|
|
841
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
798
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
842
799
|
/**
|
|
843
800
|
* Copies properties of `source` to `object`.
|
|
844
801
|
*
|
|
@@ -862,8 +819,7 @@
|
|
|
862
819
|
}
|
|
863
820
|
return object;
|
|
864
821
|
}
|
|
865
|
-
|
|
866
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
822
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
867
823
|
var nativeMax$1 = Math.max;
|
|
868
824
|
/**
|
|
869
825
|
* A specialized version of `baseRest` which transforms the rest array.
|
|
@@ -886,8 +842,7 @@
|
|
|
886
842
|
return apply(func, this, otherArgs);
|
|
887
843
|
};
|
|
888
844
|
}
|
|
889
|
-
|
|
890
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
845
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
891
846
|
/**
|
|
892
847
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
893
848
|
*
|
|
@@ -899,8 +854,7 @@
|
|
|
899
854
|
function baseRest(func, start) {
|
|
900
855
|
return setToString(overRest(func, start, identity), func + "");
|
|
901
856
|
}
|
|
902
|
-
|
|
903
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
857
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
904
858
|
/** Used as references for various `Number` constants. */
|
|
905
859
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
906
860
|
/**
|
|
@@ -932,8 +886,7 @@
|
|
|
932
886
|
function isLength(value) {
|
|
933
887
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
934
888
|
}
|
|
935
|
-
|
|
936
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
889
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
937
890
|
/**
|
|
938
891
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
939
892
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -962,8 +915,7 @@
|
|
|
962
915
|
function isArrayLike(value) {
|
|
963
916
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
964
917
|
}
|
|
965
|
-
|
|
966
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
|
|
918
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
|
|
967
919
|
/**
|
|
968
920
|
* Checks if the given arguments are from an iteratee call.
|
|
969
921
|
*
|
|
@@ -980,8 +932,7 @@
|
|
|
980
932
|
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
|
|
981
933
|
return false;
|
|
982
934
|
}
|
|
983
|
-
|
|
984
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js
|
|
935
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js
|
|
985
936
|
/**
|
|
986
937
|
* Creates a function like `_.assign`.
|
|
987
938
|
*
|
|
@@ -1005,8 +956,7 @@
|
|
|
1005
956
|
return object;
|
|
1006
957
|
});
|
|
1007
958
|
}
|
|
1008
|
-
|
|
1009
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
959
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
1010
960
|
/** Used for built-in method references. */
|
|
1011
961
|
var objectProto$2 = Object.prototype;
|
|
1012
962
|
/**
|
|
@@ -1020,8 +970,7 @@
|
|
|
1020
970
|
var Ctor = value && value.constructor;
|
|
1021
971
|
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$2);
|
|
1022
972
|
}
|
|
1023
|
-
|
|
1024
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
973
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
1025
974
|
/**
|
|
1026
975
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
1027
976
|
* or max array length checks.
|
|
@@ -1036,8 +985,7 @@
|
|
|
1036
985
|
while (++index < n) result[index] = iteratee(index);
|
|
1037
986
|
return result;
|
|
1038
987
|
}
|
|
1039
|
-
|
|
1040
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
988
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
1041
989
|
/** `Object#toString` result references. */
|
|
1042
990
|
var argsTag$3 = "[object Arguments]";
|
|
1043
991
|
/**
|
|
@@ -1050,8 +998,7 @@
|
|
|
1050
998
|
function baseIsArguments(value) {
|
|
1051
999
|
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
1052
1000
|
}
|
|
1053
|
-
|
|
1054
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
1001
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
1055
1002
|
/** Used for built-in method references. */
|
|
1056
1003
|
var objectProto$1 = Object.prototype;
|
|
1057
1004
|
/** Used to check objects for own properties. */
|
|
@@ -1081,8 +1028,7 @@
|
|
|
1081
1028
|
}()) ? baseIsArguments : function(value) {
|
|
1082
1029
|
return isObjectLike(value) && hasOwnProperty$11.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
1083
1030
|
};
|
|
1084
|
-
|
|
1085
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
1031
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
1086
1032
|
/**
|
|
1087
1033
|
* This method returns `false`.
|
|
1088
1034
|
*
|
|
@@ -1099,8 +1045,7 @@
|
|
|
1099
1045
|
function stubFalse() {
|
|
1100
1046
|
return false;
|
|
1101
1047
|
}
|
|
1102
|
-
|
|
1103
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
1048
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
1104
1049
|
/** Detect free variable `exports`. */
|
|
1105
1050
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1106
1051
|
/** Detect free variable `module`. */
|
|
@@ -1125,8 +1070,7 @@
|
|
|
1125
1070
|
* // => false
|
|
1126
1071
|
*/
|
|
1127
1072
|
var isBuffer = (Buffer$2 ? Buffer$2.isBuffer : void 0) || stubFalse;
|
|
1128
|
-
|
|
1129
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
1073
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
1130
1074
|
/** `Object#toString` result references. */
|
|
1131
1075
|
var argsTag$2 = "[object Arguments]";
|
|
1132
1076
|
var arrayTag$2 = "[object Array]";
|
|
@@ -1166,8 +1110,7 @@
|
|
|
1166
1110
|
function baseIsTypedArray(value) {
|
|
1167
1111
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1168
1112
|
}
|
|
1169
|
-
|
|
1170
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
1113
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
1171
1114
|
/**
|
|
1172
1115
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
1173
1116
|
*
|
|
@@ -1180,8 +1123,7 @@
|
|
|
1180
1123
|
return func(value);
|
|
1181
1124
|
};
|
|
1182
1125
|
}
|
|
1183
|
-
|
|
1184
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
1126
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
1185
1127
|
/** Detect free variable `exports`. */
|
|
1186
1128
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1187
1129
|
/** Detect free variable `module`. */
|
|
@@ -1196,8 +1138,7 @@
|
|
|
1196
1138
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1197
1139
|
} catch (e) {}
|
|
1198
1140
|
}();
|
|
1199
|
-
|
|
1200
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
1141
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
1201
1142
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1202
1143
|
/**
|
|
1203
1144
|
* Checks if `value` is classified as a typed array.
|
|
@@ -1217,8 +1158,7 @@
|
|
|
1217
1158
|
* // => false
|
|
1218
1159
|
*/
|
|
1219
1160
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1220
|
-
|
|
1221
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
1161
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
1222
1162
|
/** Used to check objects for own properties. */
|
|
1223
1163
|
var hasOwnProperty$10 = Object.prototype.hasOwnProperty;
|
|
1224
1164
|
/**
|
|
@@ -1234,8 +1174,7 @@
|
|
|
1234
1174
|
for (var key in value) if ((inherited || hasOwnProperty$10.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
1235
1175
|
return result;
|
|
1236
1176
|
}
|
|
1237
|
-
|
|
1238
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
1177
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
1239
1178
|
/**
|
|
1240
1179
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1241
1180
|
*
|
|
@@ -1249,11 +1188,9 @@
|
|
|
1249
1188
|
return func(transform(arg));
|
|
1250
1189
|
};
|
|
1251
1190
|
}
|
|
1252
|
-
|
|
1253
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
1191
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
1254
1192
|
var nativeKeys = overArg(Object.keys, Object);
|
|
1255
|
-
|
|
1256
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
1193
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
1257
1194
|
/** Used to check objects for own properties. */
|
|
1258
1195
|
var hasOwnProperty$9 = Object.prototype.hasOwnProperty;
|
|
1259
1196
|
/**
|
|
@@ -1269,8 +1206,7 @@
|
|
|
1269
1206
|
for (var key in Object(object)) if (hasOwnProperty$9.call(object, key) && key != "constructor") result.push(key);
|
|
1270
1207
|
return result;
|
|
1271
1208
|
}
|
|
1272
|
-
|
|
1273
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
1209
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
1274
1210
|
/**
|
|
1275
1211
|
* Creates an array of the own enumerable property names of `object`.
|
|
1276
1212
|
*
|
|
@@ -1302,8 +1238,7 @@
|
|
|
1302
1238
|
function keys(object) {
|
|
1303
1239
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1304
1240
|
}
|
|
1305
|
-
|
|
1306
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
1241
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
1307
1242
|
/**
|
|
1308
1243
|
* This function is like
|
|
1309
1244
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
@@ -1318,8 +1253,7 @@
|
|
|
1318
1253
|
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1319
1254
|
return result;
|
|
1320
1255
|
}
|
|
1321
|
-
|
|
1322
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
1256
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
1323
1257
|
/** Used to check objects for own properties. */
|
|
1324
1258
|
var hasOwnProperty$8 = Object.prototype.hasOwnProperty;
|
|
1325
1259
|
/**
|
|
@@ -1335,8 +1269,7 @@
|
|
|
1335
1269
|
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$8.call(object, key)))) result.push(key);
|
|
1336
1270
|
return result;
|
|
1337
1271
|
}
|
|
1338
|
-
|
|
1339
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
1272
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
1340
1273
|
/**
|
|
1341
1274
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1342
1275
|
*
|
|
@@ -1363,8 +1296,7 @@
|
|
|
1363
1296
|
function keysIn(object) {
|
|
1364
1297
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1365
1298
|
}
|
|
1366
|
-
|
|
1367
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
1299
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
1368
1300
|
/** Used to match property names within property paths. */
|
|
1369
1301
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
1370
1302
|
var reIsPlainProp = /^\w*$/;
|
|
@@ -1382,11 +1314,9 @@
|
|
|
1382
1314
|
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
1383
1315
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1384
1316
|
}
|
|
1385
|
-
|
|
1386
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
1317
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
1387
1318
|
var nativeCreate = getNative(Object, "create");
|
|
1388
|
-
|
|
1389
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
1319
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
1390
1320
|
/**
|
|
1391
1321
|
* Removes all key-value entries from the hash.
|
|
1392
1322
|
*
|
|
@@ -1398,8 +1328,7 @@
|
|
|
1398
1328
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1399
1329
|
this.size = 0;
|
|
1400
1330
|
}
|
|
1401
|
-
|
|
1402
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
1331
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
1403
1332
|
/**
|
|
1404
1333
|
* Removes `key` and its value from the hash.
|
|
1405
1334
|
*
|
|
@@ -1415,8 +1344,7 @@
|
|
|
1415
1344
|
this.size -= result ? 1 : 0;
|
|
1416
1345
|
return result;
|
|
1417
1346
|
}
|
|
1418
|
-
|
|
1419
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
1347
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
1420
1348
|
/** Used to stand-in for `undefined` hash values. */
|
|
1421
1349
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
1422
1350
|
/** Used to check objects for own properties. */
|
|
@@ -1438,8 +1366,7 @@
|
|
|
1438
1366
|
}
|
|
1439
1367
|
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
1440
1368
|
}
|
|
1441
|
-
|
|
1442
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
1369
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
1443
1370
|
/** Used to check objects for own properties. */
|
|
1444
1371
|
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
1445
1372
|
/**
|
|
@@ -1455,8 +1382,7 @@
|
|
|
1455
1382
|
var data = this.__data__;
|
|
1456
1383
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
1457
1384
|
}
|
|
1458
|
-
|
|
1459
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1385
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1460
1386
|
/** Used to stand-in for `undefined` hash values. */
|
|
1461
1387
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1462
1388
|
/**
|
|
@@ -1475,8 +1401,7 @@
|
|
|
1475
1401
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
1476
1402
|
return this;
|
|
1477
1403
|
}
|
|
1478
|
-
|
|
1479
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1404
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1480
1405
|
/**
|
|
1481
1406
|
* Creates a hash object.
|
|
1482
1407
|
*
|
|
@@ -1497,8 +1422,7 @@
|
|
|
1497
1422
|
Hash.prototype.get = hashGet;
|
|
1498
1423
|
Hash.prototype.has = hashHas;
|
|
1499
1424
|
Hash.prototype.set = hashSet;
|
|
1500
|
-
|
|
1501
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1425
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1502
1426
|
/**
|
|
1503
1427
|
* Removes all key-value entries from the list cache.
|
|
1504
1428
|
*
|
|
@@ -1510,8 +1434,7 @@
|
|
|
1510
1434
|
this.__data__ = [];
|
|
1511
1435
|
this.size = 0;
|
|
1512
1436
|
}
|
|
1513
|
-
|
|
1514
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1437
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1515
1438
|
/**
|
|
1516
1439
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1517
1440
|
*
|
|
@@ -1525,8 +1448,7 @@
|
|
|
1525
1448
|
while (length--) if (eq(array[length][0], key)) return length;
|
|
1526
1449
|
return -1;
|
|
1527
1450
|
}
|
|
1528
|
-
|
|
1529
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1451
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1530
1452
|
/** Built-in value references. */
|
|
1531
1453
|
var splice = Array.prototype.splice;
|
|
1532
1454
|
/**
|
|
@@ -1546,8 +1468,7 @@
|
|
|
1546
1468
|
--this.size;
|
|
1547
1469
|
return true;
|
|
1548
1470
|
}
|
|
1549
|
-
|
|
1550
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1471
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1551
1472
|
/**
|
|
1552
1473
|
* Gets the list cache value for `key`.
|
|
1553
1474
|
*
|
|
@@ -1561,8 +1482,7 @@
|
|
|
1561
1482
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1562
1483
|
return index < 0 ? void 0 : data[index][1];
|
|
1563
1484
|
}
|
|
1564
|
-
|
|
1565
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1485
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1566
1486
|
/**
|
|
1567
1487
|
* Checks if a list cache value for `key` exists.
|
|
1568
1488
|
*
|
|
@@ -1575,8 +1495,7 @@
|
|
|
1575
1495
|
function listCacheHas(key) {
|
|
1576
1496
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1577
1497
|
}
|
|
1578
|
-
|
|
1579
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1498
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1580
1499
|
/**
|
|
1581
1500
|
* Sets the list cache `key` to `value`.
|
|
1582
1501
|
*
|
|
@@ -1595,8 +1514,7 @@
|
|
|
1595
1514
|
} else data[index][1] = value;
|
|
1596
1515
|
return this;
|
|
1597
1516
|
}
|
|
1598
|
-
|
|
1599
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1517
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1600
1518
|
/**
|
|
1601
1519
|
* Creates an list cache object.
|
|
1602
1520
|
*
|
|
@@ -1617,11 +1535,9 @@
|
|
|
1617
1535
|
ListCache.prototype.get = listCacheGet;
|
|
1618
1536
|
ListCache.prototype.has = listCacheHas;
|
|
1619
1537
|
ListCache.prototype.set = listCacheSet;
|
|
1620
|
-
|
|
1621
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
1538
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
1622
1539
|
var Map$1 = getNative(root, "Map");
|
|
1623
|
-
|
|
1624
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1540
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1625
1541
|
/**
|
|
1626
1542
|
* Removes all key-value entries from the map.
|
|
1627
1543
|
*
|
|
@@ -1637,8 +1553,7 @@
|
|
|
1637
1553
|
"string": new Hash()
|
|
1638
1554
|
};
|
|
1639
1555
|
}
|
|
1640
|
-
|
|
1641
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1556
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1642
1557
|
/**
|
|
1643
1558
|
* Checks if `value` is suitable for use as unique object key.
|
|
1644
1559
|
*
|
|
@@ -1650,8 +1565,7 @@
|
|
|
1650
1565
|
var type = typeof value;
|
|
1651
1566
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1652
1567
|
}
|
|
1653
|
-
|
|
1654
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1568
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1655
1569
|
/**
|
|
1656
1570
|
* Gets the data for `map`.
|
|
1657
1571
|
*
|
|
@@ -1664,8 +1578,7 @@
|
|
|
1664
1578
|
var data = map.__data__;
|
|
1665
1579
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1666
1580
|
}
|
|
1667
|
-
|
|
1668
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1581
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1669
1582
|
/**
|
|
1670
1583
|
* Removes `key` and its value from the map.
|
|
1671
1584
|
*
|
|
@@ -1680,8 +1593,7 @@
|
|
|
1680
1593
|
this.size -= result ? 1 : 0;
|
|
1681
1594
|
return result;
|
|
1682
1595
|
}
|
|
1683
|
-
|
|
1684
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1596
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1685
1597
|
/**
|
|
1686
1598
|
* Gets the map value for `key`.
|
|
1687
1599
|
*
|
|
@@ -1694,8 +1606,7 @@
|
|
|
1694
1606
|
function mapCacheGet(key) {
|
|
1695
1607
|
return getMapData(this, key).get(key);
|
|
1696
1608
|
}
|
|
1697
|
-
|
|
1698
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1609
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1699
1610
|
/**
|
|
1700
1611
|
* Checks if a map value for `key` exists.
|
|
1701
1612
|
*
|
|
@@ -1708,8 +1619,7 @@
|
|
|
1708
1619
|
function mapCacheHas(key) {
|
|
1709
1620
|
return getMapData(this, key).has(key);
|
|
1710
1621
|
}
|
|
1711
|
-
|
|
1712
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1622
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1713
1623
|
/**
|
|
1714
1624
|
* Sets the map `key` to `value`.
|
|
1715
1625
|
*
|
|
@@ -1726,8 +1636,7 @@
|
|
|
1726
1636
|
this.size += data.size == size ? 0 : 1;
|
|
1727
1637
|
return this;
|
|
1728
1638
|
}
|
|
1729
|
-
|
|
1730
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1639
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1731
1640
|
/**
|
|
1732
1641
|
* Creates a map cache object to store key-value pairs.
|
|
1733
1642
|
*
|
|
@@ -1748,8 +1657,7 @@
|
|
|
1748
1657
|
MapCache.prototype.get = mapCacheGet;
|
|
1749
1658
|
MapCache.prototype.has = mapCacheHas;
|
|
1750
1659
|
MapCache.prototype.set = mapCacheSet;
|
|
1751
|
-
|
|
1752
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
1660
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
1753
1661
|
/** Error message constants. */
|
|
1754
1662
|
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
1755
1663
|
/**
|
|
@@ -1809,8 +1717,7 @@
|
|
|
1809
1717
|
return memoized;
|
|
1810
1718
|
}
|
|
1811
1719
|
memoize.Cache = MapCache;
|
|
1812
|
-
|
|
1813
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
1720
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
1814
1721
|
/** Used as the maximum memoize cache size. */
|
|
1815
1722
|
var MAX_MEMOIZE_SIZE = 500;
|
|
1816
1723
|
/**
|
|
@@ -1829,8 +1736,7 @@
|
|
|
1829
1736
|
var cache = result.cache;
|
|
1830
1737
|
return result;
|
|
1831
1738
|
}
|
|
1832
|
-
|
|
1833
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
1739
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
1834
1740
|
/** Used to match property names within property paths. */
|
|
1835
1741
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1836
1742
|
/** Used to match backslashes in property paths. */
|
|
@@ -1850,8 +1756,7 @@
|
|
|
1850
1756
|
});
|
|
1851
1757
|
return result;
|
|
1852
1758
|
});
|
|
1853
|
-
|
|
1854
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
1759
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
1855
1760
|
/**
|
|
1856
1761
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
1857
1762
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -1876,8 +1781,7 @@
|
|
|
1876
1781
|
function toString(value) {
|
|
1877
1782
|
return value == null ? "" : baseToString(value);
|
|
1878
1783
|
}
|
|
1879
|
-
|
|
1880
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
1784
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
1881
1785
|
/**
|
|
1882
1786
|
* Casts `value` to a path array if it's not one.
|
|
1883
1787
|
*
|
|
@@ -1890,8 +1794,7 @@
|
|
|
1890
1794
|
if (isArray(value)) return value;
|
|
1891
1795
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1892
1796
|
}
|
|
1893
|
-
|
|
1894
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
1797
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
1895
1798
|
/** Used as references for various `Number` constants. */
|
|
1896
1799
|
var INFINITY = 1 / 0;
|
|
1897
1800
|
/**
|
|
@@ -1906,8 +1809,7 @@
|
|
|
1906
1809
|
var result = value + "";
|
|
1907
1810
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1908
1811
|
}
|
|
1909
|
-
|
|
1910
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
1812
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
1911
1813
|
/**
|
|
1912
1814
|
* The base implementation of `_.get` without support for default values.
|
|
1913
1815
|
*
|
|
@@ -1922,8 +1824,7 @@
|
|
|
1922
1824
|
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
1923
1825
|
return index && index == length ? object : void 0;
|
|
1924
1826
|
}
|
|
1925
|
-
|
|
1926
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
1827
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
1927
1828
|
/**
|
|
1928
1829
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
1929
1830
|
* `undefined`, the `defaultValue` is returned in its place.
|
|
@@ -1953,8 +1854,7 @@
|
|
|
1953
1854
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
1954
1855
|
return result === void 0 ? defaultValue : result;
|
|
1955
1856
|
}
|
|
1956
|
-
|
|
1957
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1857
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1958
1858
|
/**
|
|
1959
1859
|
* Appends the elements of `values` to `array`.
|
|
1960
1860
|
*
|
|
@@ -1968,8 +1868,7 @@
|
|
|
1968
1868
|
while (++index < length) array[offset + index] = values[index];
|
|
1969
1869
|
return array;
|
|
1970
1870
|
}
|
|
1971
|
-
|
|
1972
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js
|
|
1871
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js
|
|
1973
1872
|
/** Built-in value references. */
|
|
1974
1873
|
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
1975
1874
|
/**
|
|
@@ -1982,8 +1881,7 @@
|
|
|
1982
1881
|
function isFlattenable(value) {
|
|
1983
1882
|
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
1984
1883
|
}
|
|
1985
|
-
|
|
1986
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js
|
|
1884
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js
|
|
1987
1885
|
/**
|
|
1988
1886
|
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
1989
1887
|
*
|
|
@@ -2008,8 +1906,7 @@
|
|
|
2008
1906
|
}
|
|
2009
1907
|
return result;
|
|
2010
1908
|
}
|
|
2011
|
-
|
|
2012
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.js
|
|
1909
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.js
|
|
2013
1910
|
/**
|
|
2014
1911
|
* Flattens `array` a single level deep.
|
|
2015
1912
|
*
|
|
@@ -2027,8 +1924,7 @@
|
|
|
2027
1924
|
function flatten(array) {
|
|
2028
1925
|
return (array == null ? 0 : array.length) ? baseFlatten(array, 1) : [];
|
|
2029
1926
|
}
|
|
2030
|
-
|
|
2031
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js
|
|
1927
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js
|
|
2032
1928
|
/**
|
|
2033
1929
|
* A specialized version of `baseRest` which flattens the rest array.
|
|
2034
1930
|
*
|
|
@@ -2039,12 +1935,10 @@
|
|
|
2039
1935
|
function flatRest(func) {
|
|
2040
1936
|
return setToString(overRest(func, void 0, flatten), func + "");
|
|
2041
1937
|
}
|
|
2042
|
-
|
|
2043
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
1938
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
2044
1939
|
/** Built-in value references. */
|
|
2045
1940
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
2046
|
-
|
|
2047
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js
|
|
1941
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js
|
|
2048
1942
|
/** `Object#toString` result references. */
|
|
2049
1943
|
var objectTag$3 = "[object Object]";
|
|
2050
1944
|
/** Used for built-in method references. */
|
|
@@ -2091,8 +1985,7 @@
|
|
|
2091
1985
|
var Ctor = hasOwnProperty$5.call(proto, "constructor") && proto.constructor;
|
|
2092
1986
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
2093
1987
|
}
|
|
2094
|
-
|
|
2095
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
1988
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
2096
1989
|
/**
|
|
2097
1990
|
* Removes all key-value entries from the stack.
|
|
2098
1991
|
*
|
|
@@ -2104,8 +1997,7 @@
|
|
|
2104
1997
|
this.__data__ = new ListCache();
|
|
2105
1998
|
this.size = 0;
|
|
2106
1999
|
}
|
|
2107
|
-
|
|
2108
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
2000
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
2109
2001
|
/**
|
|
2110
2002
|
* Removes `key` and its value from the stack.
|
|
2111
2003
|
*
|
|
@@ -2120,8 +2012,7 @@
|
|
|
2120
2012
|
this.size = data.size;
|
|
2121
2013
|
return result;
|
|
2122
2014
|
}
|
|
2123
|
-
|
|
2124
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
2015
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
2125
2016
|
/**
|
|
2126
2017
|
* Gets the stack value for `key`.
|
|
2127
2018
|
*
|
|
@@ -2134,8 +2025,7 @@
|
|
|
2134
2025
|
function stackGet(key) {
|
|
2135
2026
|
return this.__data__.get(key);
|
|
2136
2027
|
}
|
|
2137
|
-
|
|
2138
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
2028
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
2139
2029
|
/**
|
|
2140
2030
|
* Checks if a stack value for `key` exists.
|
|
2141
2031
|
*
|
|
@@ -2148,8 +2038,7 @@
|
|
|
2148
2038
|
function stackHas(key) {
|
|
2149
2039
|
return this.__data__.has(key);
|
|
2150
2040
|
}
|
|
2151
|
-
|
|
2152
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
2041
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
2153
2042
|
/** Used as the size to enable large array optimizations. */
|
|
2154
2043
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
2155
2044
|
/**
|
|
@@ -2177,8 +2066,7 @@
|
|
|
2177
2066
|
this.size = data.size;
|
|
2178
2067
|
return this;
|
|
2179
2068
|
}
|
|
2180
|
-
|
|
2181
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
2069
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
2182
2070
|
/**
|
|
2183
2071
|
* Creates a stack cache object to store key-value pairs.
|
|
2184
2072
|
*
|
|
@@ -2195,8 +2083,7 @@
|
|
|
2195
2083
|
Stack.prototype.get = stackGet;
|
|
2196
2084
|
Stack.prototype.has = stackHas;
|
|
2197
2085
|
Stack.prototype.set = stackSet;
|
|
2198
|
-
|
|
2199
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
2086
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
2200
2087
|
/**
|
|
2201
2088
|
* The base implementation of `_.assign` without support for multiple sources
|
|
2202
2089
|
* or `customizer` functions.
|
|
@@ -2209,8 +2096,7 @@
|
|
|
2209
2096
|
function baseAssign(object, source) {
|
|
2210
2097
|
return object && copyObject(source, keys(source), object);
|
|
2211
2098
|
}
|
|
2212
|
-
|
|
2213
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
2099
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
2214
2100
|
/**
|
|
2215
2101
|
* The base implementation of `_.assignIn` without support for multiple sources
|
|
2216
2102
|
* or `customizer` functions.
|
|
@@ -2223,8 +2109,7 @@
|
|
|
2223
2109
|
function baseAssignIn(object, source) {
|
|
2224
2110
|
return object && copyObject(source, keysIn(source), object);
|
|
2225
2111
|
}
|
|
2226
|
-
|
|
2227
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
2112
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
2228
2113
|
/** Detect free variable `exports`. */
|
|
2229
2114
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
2230
2115
|
/** Detect free variable `module`. */
|
|
@@ -2246,8 +2131,7 @@
|
|
|
2246
2131
|
buffer.copy(result);
|
|
2247
2132
|
return result;
|
|
2248
2133
|
}
|
|
2249
|
-
|
|
2250
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
2134
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
2251
2135
|
/**
|
|
2252
2136
|
* A specialized version of `_.filter` for arrays without support for
|
|
2253
2137
|
* iteratee shorthands.
|
|
@@ -2265,8 +2149,7 @@
|
|
|
2265
2149
|
}
|
|
2266
2150
|
return result;
|
|
2267
2151
|
}
|
|
2268
|
-
|
|
2269
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
2152
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
2270
2153
|
/**
|
|
2271
2154
|
* This method returns a new empty array.
|
|
2272
2155
|
*
|
|
@@ -2288,8 +2171,7 @@
|
|
|
2288
2171
|
function stubArray() {
|
|
2289
2172
|
return [];
|
|
2290
2173
|
}
|
|
2291
|
-
|
|
2292
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
2174
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
2293
2175
|
/** Built-in value references. */
|
|
2294
2176
|
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
2295
2177
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -2307,8 +2189,7 @@
|
|
|
2307
2189
|
return propertyIsEnumerable.call(object, symbol);
|
|
2308
2190
|
});
|
|
2309
2191
|
};
|
|
2310
|
-
|
|
2311
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
2192
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
2312
2193
|
/**
|
|
2313
2194
|
* Copies own symbols of `source` to `object`.
|
|
2314
2195
|
*
|
|
@@ -2320,8 +2201,7 @@
|
|
|
2320
2201
|
function copySymbols(source, object) {
|
|
2321
2202
|
return copyObject(source, getSymbols(source), object);
|
|
2322
2203
|
}
|
|
2323
|
-
|
|
2324
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
2204
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
2325
2205
|
/**
|
|
2326
2206
|
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
2327
2207
|
*
|
|
@@ -2337,8 +2217,7 @@
|
|
|
2337
2217
|
}
|
|
2338
2218
|
return result;
|
|
2339
2219
|
};
|
|
2340
|
-
|
|
2341
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
2220
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
2342
2221
|
/**
|
|
2343
2222
|
* Copies own and inherited symbols of `source` to `object`.
|
|
2344
2223
|
*
|
|
@@ -2350,8 +2229,7 @@
|
|
|
2350
2229
|
function copySymbolsIn(source, object) {
|
|
2351
2230
|
return copyObject(source, getSymbolsIn(source), object);
|
|
2352
2231
|
}
|
|
2353
|
-
|
|
2354
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
2232
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
2355
2233
|
/**
|
|
2356
2234
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
2357
2235
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -2367,8 +2245,7 @@
|
|
|
2367
2245
|
var result = keysFunc(object);
|
|
2368
2246
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
2369
2247
|
}
|
|
2370
|
-
|
|
2371
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
2248
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
2372
2249
|
/**
|
|
2373
2250
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
2374
2251
|
*
|
|
@@ -2379,8 +2256,7 @@
|
|
|
2379
2256
|
function getAllKeys(object) {
|
|
2380
2257
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
2381
2258
|
}
|
|
2382
|
-
|
|
2383
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
2259
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
2384
2260
|
/**
|
|
2385
2261
|
* Creates an array of own and inherited enumerable property names and
|
|
2386
2262
|
* symbols of `object`.
|
|
@@ -2392,17 +2268,13 @@
|
|
|
2392
2268
|
function getAllKeysIn(object) {
|
|
2393
2269
|
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
2394
2270
|
}
|
|
2395
|
-
|
|
2396
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
2271
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
2397
2272
|
var DataView = getNative(root, "DataView");
|
|
2398
|
-
|
|
2399
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
2273
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
2400
2274
|
var Promise$1 = getNative(root, "Promise");
|
|
2401
|
-
|
|
2402
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
2275
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
2403
2276
|
var Set$1 = getNative(root, "Set");
|
|
2404
|
-
|
|
2405
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
2277
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
2406
2278
|
/** `Object#toString` result references. */
|
|
2407
2279
|
var mapTag$5 = "[object Map]";
|
|
2408
2280
|
var objectTag$2 = "[object Object]";
|
|
@@ -2436,8 +2308,7 @@
|
|
|
2436
2308
|
return result;
|
|
2437
2309
|
};
|
|
2438
2310
|
var _getTag_default = getTag;
|
|
2439
|
-
|
|
2440
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
2311
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
2441
2312
|
/** Used to check objects for own properties. */
|
|
2442
2313
|
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
2443
2314
|
/**
|
|
@@ -2455,12 +2326,10 @@
|
|
|
2455
2326
|
}
|
|
2456
2327
|
return result;
|
|
2457
2328
|
}
|
|
2458
|
-
|
|
2459
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
2329
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
2460
2330
|
/** Built-in value references. */
|
|
2461
2331
|
var Uint8Array$1 = root.Uint8Array;
|
|
2462
|
-
|
|
2463
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
2332
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
2464
2333
|
/**
|
|
2465
2334
|
* Creates a clone of `arrayBuffer`.
|
|
2466
2335
|
*
|
|
@@ -2473,8 +2342,7 @@
|
|
|
2473
2342
|
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
2474
2343
|
return result;
|
|
2475
2344
|
}
|
|
2476
|
-
|
|
2477
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
2345
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
2478
2346
|
/**
|
|
2479
2347
|
* Creates a clone of `dataView`.
|
|
2480
2348
|
*
|
|
@@ -2487,8 +2355,7 @@
|
|
|
2487
2355
|
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
2488
2356
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
2489
2357
|
}
|
|
2490
|
-
|
|
2491
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
2358
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
2492
2359
|
/** Used to match `RegExp` flags from their coerced string values. */
|
|
2493
2360
|
var reFlags = /\w*$/;
|
|
2494
2361
|
/**
|
|
@@ -2503,8 +2370,7 @@
|
|
|
2503
2370
|
result.lastIndex = regexp.lastIndex;
|
|
2504
2371
|
return result;
|
|
2505
2372
|
}
|
|
2506
|
-
|
|
2507
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
2373
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
2508
2374
|
/** Used to convert symbols to primitives and strings. */
|
|
2509
2375
|
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
2510
2376
|
var symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
@@ -2518,8 +2384,7 @@
|
|
|
2518
2384
|
function cloneSymbol(symbol) {
|
|
2519
2385
|
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
2520
2386
|
}
|
|
2521
|
-
|
|
2522
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
2387
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
2523
2388
|
/**
|
|
2524
2389
|
* Creates a clone of `typedArray`.
|
|
2525
2390
|
*
|
|
@@ -2532,8 +2397,7 @@
|
|
|
2532
2397
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
2533
2398
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
2534
2399
|
}
|
|
2535
|
-
|
|
2536
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
2400
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
2537
2401
|
/** `Object#toString` result references. */
|
|
2538
2402
|
var boolTag$2 = "[object Boolean]";
|
|
2539
2403
|
var dateTag$2 = "[object Date]";
|
|
@@ -2590,8 +2454,7 @@
|
|
|
2590
2454
|
case symbolTag$2: return cloneSymbol(object);
|
|
2591
2455
|
}
|
|
2592
2456
|
}
|
|
2593
|
-
|
|
2594
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
2457
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
2595
2458
|
/**
|
|
2596
2459
|
* Initializes an object clone.
|
|
2597
2460
|
*
|
|
@@ -2602,8 +2465,7 @@
|
|
|
2602
2465
|
function initCloneObject(object) {
|
|
2603
2466
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
2604
2467
|
}
|
|
2605
|
-
|
|
2606
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
2468
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
2607
2469
|
/** `Object#toString` result references. */
|
|
2608
2470
|
var mapTag$3 = "[object Map]";
|
|
2609
2471
|
/**
|
|
@@ -2616,8 +2478,7 @@
|
|
|
2616
2478
|
function baseIsMap(value) {
|
|
2617
2479
|
return isObjectLike(value) && _getTag_default(value) == mapTag$3;
|
|
2618
2480
|
}
|
|
2619
|
-
|
|
2620
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
2481
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
2621
2482
|
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
2622
2483
|
/**
|
|
2623
2484
|
* Checks if `value` is classified as a `Map` object.
|
|
@@ -2637,8 +2498,7 @@
|
|
|
2637
2498
|
* // => false
|
|
2638
2499
|
*/
|
|
2639
2500
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
2640
|
-
|
|
2641
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
2501
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
2642
2502
|
/** `Object#toString` result references. */
|
|
2643
2503
|
var setTag$3 = "[object Set]";
|
|
2644
2504
|
/**
|
|
@@ -2651,8 +2511,7 @@
|
|
|
2651
2511
|
function baseIsSet(value) {
|
|
2652
2512
|
return isObjectLike(value) && _getTag_default(value) == setTag$3;
|
|
2653
2513
|
}
|
|
2654
|
-
|
|
2655
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
2514
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
2656
2515
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
2657
2516
|
/**
|
|
2658
2517
|
* Checks if `value` is classified as a `Set` object.
|
|
@@ -2672,8 +2531,7 @@
|
|
|
2672
2531
|
* // => false
|
|
2673
2532
|
*/
|
|
2674
2533
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
2675
|
-
|
|
2676
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
2534
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
2677
2535
|
/** Used to compose bitmasks for cloning. */
|
|
2678
2536
|
var CLONE_DEEP_FLAG$1 = 1;
|
|
2679
2537
|
var CLONE_FLAT_FLAG = 2;
|
|
@@ -2765,8 +2623,7 @@
|
|
|
2765
2623
|
});
|
|
2766
2624
|
return result;
|
|
2767
2625
|
}
|
|
2768
|
-
|
|
2769
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
2626
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
2770
2627
|
/** Used to compose bitmasks for cloning. */
|
|
2771
2628
|
var CLONE_DEEP_FLAG = 1;
|
|
2772
2629
|
var CLONE_SYMBOLS_FLAG = 4;
|
|
@@ -2791,8 +2648,7 @@
|
|
|
2791
2648
|
function cloneDeep(value) {
|
|
2792
2649
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
2793
2650
|
}
|
|
2794
|
-
|
|
2795
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
|
|
2651
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
|
|
2796
2652
|
/** Used to stand-in for `undefined` hash values. */
|
|
2797
2653
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
2798
2654
|
/**
|
|
@@ -2809,8 +2665,7 @@
|
|
|
2809
2665
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
2810
2666
|
return this;
|
|
2811
2667
|
}
|
|
2812
|
-
|
|
2813
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
2668
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
2814
2669
|
/**
|
|
2815
2670
|
* Checks if `value` is in the array cache.
|
|
2816
2671
|
*
|
|
@@ -2823,8 +2678,7 @@
|
|
|
2823
2678
|
function setCacheHas(value) {
|
|
2824
2679
|
return this.__data__.has(value);
|
|
2825
2680
|
}
|
|
2826
|
-
|
|
2827
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
2681
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
2828
2682
|
/**
|
|
2829
2683
|
*
|
|
2830
2684
|
* Creates an array cache object to store unique values.
|
|
@@ -2840,8 +2694,7 @@
|
|
|
2840
2694
|
}
|
|
2841
2695
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
2842
2696
|
SetCache.prototype.has = setCacheHas;
|
|
2843
|
-
|
|
2844
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
|
|
2697
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
|
|
2845
2698
|
/**
|
|
2846
2699
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
2847
2700
|
* shorthands.
|
|
@@ -2857,8 +2710,7 @@
|
|
|
2857
2710
|
while (++index < length) if (predicate(array[index], index, array)) return true;
|
|
2858
2711
|
return false;
|
|
2859
2712
|
}
|
|
2860
|
-
|
|
2861
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
2713
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
2862
2714
|
/**
|
|
2863
2715
|
* Checks if a `cache` value for `key` exists.
|
|
2864
2716
|
*
|
|
@@ -2870,8 +2722,7 @@
|
|
|
2870
2722
|
function cacheHas(cache, key) {
|
|
2871
2723
|
return cache.has(key);
|
|
2872
2724
|
}
|
|
2873
|
-
|
|
2874
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
|
|
2725
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
|
|
2875
2726
|
/** Used to compose bitmasks for value comparisons. */
|
|
2876
2727
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
2877
2728
|
var COMPARE_UNORDERED_FLAG$1 = 2;
|
|
@@ -2921,8 +2772,7 @@
|
|
|
2921
2772
|
stack["delete"](other);
|
|
2922
2773
|
return result;
|
|
2923
2774
|
}
|
|
2924
|
-
|
|
2925
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
|
|
2775
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
|
|
2926
2776
|
/**
|
|
2927
2777
|
* Converts `map` to its key-value pairs.
|
|
2928
2778
|
*
|
|
@@ -2937,8 +2787,7 @@
|
|
|
2937
2787
|
});
|
|
2938
2788
|
return result;
|
|
2939
2789
|
}
|
|
2940
|
-
|
|
2941
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
2790
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
2942
2791
|
/**
|
|
2943
2792
|
* Converts `set` to an array of its values.
|
|
2944
2793
|
*
|
|
@@ -2953,8 +2802,7 @@
|
|
|
2953
2802
|
});
|
|
2954
2803
|
return result;
|
|
2955
2804
|
}
|
|
2956
|
-
|
|
2957
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
|
|
2805
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
|
|
2958
2806
|
/** Used to compose bitmasks for value comparisons. */
|
|
2959
2807
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
2960
2808
|
var COMPARE_UNORDERED_FLAG = 2;
|
|
@@ -3021,8 +2869,7 @@
|
|
|
3021
2869
|
}
|
|
3022
2870
|
return false;
|
|
3023
2871
|
}
|
|
3024
|
-
|
|
3025
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
|
|
2872
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
|
|
3026
2873
|
/** Used to compose bitmasks for value comparisons. */
|
|
3027
2874
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
3028
2875
|
/** Used to check objects for own properties. */
|
|
@@ -3073,8 +2920,7 @@
|
|
|
3073
2920
|
stack["delete"](other);
|
|
3074
2921
|
return result;
|
|
3075
2922
|
}
|
|
3076
|
-
|
|
3077
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
2923
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
3078
2924
|
/** Used to compose bitmasks for value comparisons. */
|
|
3079
2925
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
3080
2926
|
/** `Object#toString` result references. */
|
|
@@ -3123,8 +2969,7 @@
|
|
|
3123
2969
|
stack || (stack = new Stack());
|
|
3124
2970
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
3125
2971
|
}
|
|
3126
|
-
|
|
3127
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
|
|
2972
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
|
|
3128
2973
|
/**
|
|
3129
2974
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
3130
2975
|
* and tracks traversed objects.
|
|
@@ -3144,8 +2989,7 @@
|
|
|
3144
2989
|
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;
|
|
3145
2990
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
3146
2991
|
}
|
|
3147
|
-
|
|
3148
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
|
|
2992
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
|
|
3149
2993
|
/**
|
|
3150
2994
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
3151
2995
|
*
|
|
@@ -3157,8 +3001,7 @@
|
|
|
3157
3001
|
function baseHasIn(object, key) {
|
|
3158
3002
|
return object != null && key in Object(object);
|
|
3159
3003
|
}
|
|
3160
|
-
|
|
3161
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
|
|
3004
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
|
|
3162
3005
|
/**
|
|
3163
3006
|
* Checks if `path` exists on `object`.
|
|
3164
3007
|
*
|
|
@@ -3180,8 +3023,7 @@
|
|
|
3180
3023
|
length = object == null ? 0 : object.length;
|
|
3181
3024
|
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
3182
3025
|
}
|
|
3183
|
-
|
|
3184
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
|
|
3026
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
|
|
3185
3027
|
/**
|
|
3186
3028
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
3187
3029
|
*
|
|
@@ -3211,8 +3053,7 @@
|
|
|
3211
3053
|
function hasIn(object, path) {
|
|
3212
3054
|
return object != null && hasPath(object, path, baseHasIn);
|
|
3213
3055
|
}
|
|
3214
|
-
|
|
3215
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
|
|
3056
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
|
|
3216
3057
|
/**
|
|
3217
3058
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
3218
3059
|
*
|
|
@@ -3230,8 +3071,7 @@
|
|
|
3230
3071
|
return object;
|
|
3231
3072
|
};
|
|
3232
3073
|
}
|
|
3233
|
-
|
|
3234
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
|
|
3074
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
|
|
3235
3075
|
/**
|
|
3236
3076
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
3237
3077
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -3244,8 +3084,7 @@
|
|
|
3244
3084
|
* @returns {Object} Returns `object`.
|
|
3245
3085
|
*/
|
|
3246
3086
|
var baseFor = createBaseFor();
|
|
3247
|
-
|
|
3248
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js
|
|
3087
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js
|
|
3249
3088
|
/**
|
|
3250
3089
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
3251
3090
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
@@ -3265,8 +3104,7 @@
|
|
|
3265
3104
|
var now = function() {
|
|
3266
3105
|
return root.Date.now();
|
|
3267
3106
|
};
|
|
3268
|
-
|
|
3269
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
3107
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
3270
3108
|
/** Error message constants. */
|
|
3271
3109
|
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
3272
3110
|
var nativeMax = Math.max;
|
|
@@ -3394,8 +3232,7 @@
|
|
|
3394
3232
|
debounced.flush = flush;
|
|
3395
3233
|
return debounced;
|
|
3396
3234
|
}
|
|
3397
|
-
|
|
3398
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js
|
|
3235
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js
|
|
3399
3236
|
/**
|
|
3400
3237
|
* This function is like `assignValue` except that it doesn't assign
|
|
3401
3238
|
* `undefined` values.
|
|
@@ -3408,8 +3245,7 @@
|
|
|
3408
3245
|
function assignMergeValue(object, key, value) {
|
|
3409
3246
|
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
3410
3247
|
}
|
|
3411
|
-
|
|
3412
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
3248
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
3413
3249
|
/**
|
|
3414
3250
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
3415
3251
|
* is an object.
|
|
@@ -3438,8 +3274,7 @@
|
|
|
3438
3274
|
function isArrayLikeObject(value) {
|
|
3439
3275
|
return isObjectLike(value) && isArrayLike(value);
|
|
3440
3276
|
}
|
|
3441
|
-
|
|
3442
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js
|
|
3277
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js
|
|
3443
3278
|
/**
|
|
3444
3279
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
3445
3280
|
*
|
|
@@ -3453,8 +3288,7 @@
|
|
|
3453
3288
|
if (key == "__proto__") return;
|
|
3454
3289
|
return object[key];
|
|
3455
3290
|
}
|
|
3456
|
-
|
|
3457
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js
|
|
3291
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js
|
|
3458
3292
|
/**
|
|
3459
3293
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
3460
3294
|
* keyed properties of `value` to own properties of the plain object.
|
|
@@ -3482,8 +3316,7 @@
|
|
|
3482
3316
|
function toPlainObject(value) {
|
|
3483
3317
|
return copyObject(value, keysIn(value));
|
|
3484
3318
|
}
|
|
3485
|
-
|
|
3486
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js
|
|
3319
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js
|
|
3487
3320
|
/**
|
|
3488
3321
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
3489
3322
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -3533,8 +3366,7 @@
|
|
|
3533
3366
|
}
|
|
3534
3367
|
assignMergeValue(object, key, newValue);
|
|
3535
3368
|
}
|
|
3536
|
-
|
|
3537
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js
|
|
3369
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js
|
|
3538
3370
|
/**
|
|
3539
3371
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
3540
3372
|
*
|
|
@@ -3558,8 +3390,7 @@
|
|
|
3558
3390
|
}
|
|
3559
3391
|
}, keysIn);
|
|
3560
3392
|
}
|
|
3561
|
-
|
|
3562
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
|
|
3393
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
|
|
3563
3394
|
/**
|
|
3564
3395
|
* This method is like `_.merge` except that it accepts `customizer` which
|
|
3565
3396
|
* is invoked to produce the merged values of the destination and source
|
|
@@ -3594,8 +3425,7 @@
|
|
|
3594
3425
|
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
3595
3426
|
baseMerge(object, source, srcIndex, customizer);
|
|
3596
3427
|
});
|
|
3597
|
-
|
|
3598
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
|
|
3428
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
|
|
3599
3429
|
/**
|
|
3600
3430
|
* This function is like `arrayIncludes` except that it accepts a comparator.
|
|
3601
3431
|
*
|
|
@@ -3610,8 +3440,7 @@
|
|
|
3610
3440
|
while (++index < length) if (comparator(value, array[index])) return true;
|
|
3611
3441
|
return false;
|
|
3612
3442
|
}
|
|
3613
|
-
|
|
3614
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHas.js
|
|
3443
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHas.js
|
|
3615
3444
|
/** Used to check objects for own properties. */
|
|
3616
3445
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
3617
3446
|
/**
|
|
@@ -3625,8 +3454,7 @@
|
|
|
3625
3454
|
function baseHas(object, key) {
|
|
3626
3455
|
return object != null && hasOwnProperty$1.call(object, key);
|
|
3627
3456
|
}
|
|
3628
|
-
|
|
3629
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/has.js
|
|
3457
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/has.js
|
|
3630
3458
|
/**
|
|
3631
3459
|
* Checks if `path` is a direct property of `object`.
|
|
3632
3460
|
*
|
|
@@ -3657,8 +3485,7 @@
|
|
|
3657
3485
|
function has(object, path) {
|
|
3658
3486
|
return object != null && hasPath(object, path, baseHas);
|
|
3659
3487
|
}
|
|
3660
|
-
|
|
3661
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
|
|
3488
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
|
|
3662
3489
|
/** `Object#toString` result references. */
|
|
3663
3490
|
var mapTag = "[object Map]";
|
|
3664
3491
|
var setTag = "[object Set]";
|
|
@@ -3706,8 +3533,7 @@
|
|
|
3706
3533
|
for (var key in value) if (hasOwnProperty.call(value, key)) return false;
|
|
3707
3534
|
return true;
|
|
3708
3535
|
}
|
|
3709
|
-
|
|
3710
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js
|
|
3536
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js
|
|
3711
3537
|
/**
|
|
3712
3538
|
* Performs a deep comparison between two values to determine if they are
|
|
3713
3539
|
* equivalent.
|
|
@@ -3739,8 +3565,7 @@
|
|
|
3739
3565
|
function isEqual(value, other) {
|
|
3740
3566
|
return baseIsEqual(value, other);
|
|
3741
3567
|
}
|
|
3742
|
-
|
|
3743
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
|
|
3568
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
|
|
3744
3569
|
/**
|
|
3745
3570
|
* The base implementation of `_.set`.
|
|
3746
3571
|
*
|
|
@@ -3768,8 +3593,7 @@
|
|
|
3768
3593
|
}
|
|
3769
3594
|
return object;
|
|
3770
3595
|
}
|
|
3771
|
-
|
|
3772
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js
|
|
3596
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js
|
|
3773
3597
|
/**
|
|
3774
3598
|
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
3775
3599
|
*
|
|
@@ -3787,8 +3611,7 @@
|
|
|
3787
3611
|
}
|
|
3788
3612
|
return result;
|
|
3789
3613
|
}
|
|
3790
|
-
|
|
3791
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js
|
|
3614
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js
|
|
3792
3615
|
/**
|
|
3793
3616
|
* The base implementation of `_.pick` without support for individual
|
|
3794
3617
|
* property identifiers.
|
|
@@ -3803,8 +3626,7 @@
|
|
|
3803
3626
|
return hasIn(object, path);
|
|
3804
3627
|
});
|
|
3805
3628
|
}
|
|
3806
|
-
|
|
3807
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/pick.js
|
|
3629
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/pick.js
|
|
3808
3630
|
/**
|
|
3809
3631
|
* Creates an object composed of the picked `object` properties.
|
|
3810
3632
|
*
|
|
@@ -3825,8 +3647,7 @@
|
|
|
3825
3647
|
var pick = flatRest(function(object, paths) {
|
|
3826
3648
|
return object == null ? {} : basePick(object, paths);
|
|
3827
3649
|
});
|
|
3828
|
-
|
|
3829
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
3650
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
3830
3651
|
/** Error message constants. */
|
|
3831
3652
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
3832
3653
|
/**
|
|
@@ -3886,8 +3707,7 @@
|
|
|
3886
3707
|
"trailing": trailing
|
|
3887
3708
|
});
|
|
3888
3709
|
}
|
|
3889
|
-
|
|
3890
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js
|
|
3710
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js
|
|
3891
3711
|
/**
|
|
3892
3712
|
* Creates a set object of `values`.
|
|
3893
3713
|
*
|
|
@@ -3898,8 +3718,7 @@
|
|
|
3898
3718
|
var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == 1 / 0) ? noop : function(values) {
|
|
3899
3719
|
return new Set$1(values);
|
|
3900
3720
|
};
|
|
3901
|
-
|
|
3902
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js
|
|
3721
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js
|
|
3903
3722
|
/** Used as the size to enable large array optimizations. */
|
|
3904
3723
|
var LARGE_ARRAY_SIZE = 200;
|
|
3905
3724
|
/**
|
|
@@ -3938,8 +3757,7 @@
|
|
|
3938
3757
|
}
|
|
3939
3758
|
return result;
|
|
3940
3759
|
}
|
|
3941
|
-
|
|
3942
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
|
|
3760
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
|
|
3943
3761
|
/**
|
|
3944
3762
|
* Creates a duplicate-free version of an array, using
|
|
3945
3763
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -3961,8 +3779,7 @@
|
|
|
3961
3779
|
function uniq(array) {
|
|
3962
3780
|
return array && array.length ? baseUniq(array) : [];
|
|
3963
3781
|
}
|
|
3964
|
-
|
|
3965
|
-
//#region packages/editor/src/type.ts
|
|
3782
|
+
// packages/editor/src/type.ts
|
|
3966
3783
|
var LayerOffset = /* @__PURE__ */ function(LayerOffset) {
|
|
3967
3784
|
LayerOffset["TOP"] = "top";
|
|
3968
3785
|
LayerOffset["BOTTOM"] = "bottom";
|
|
@@ -4004,15 +3821,13 @@
|
|
|
4004
3821
|
],
|
|
4005
3822
|
sync: []
|
|
4006
3823
|
};
|
|
4007
|
-
|
|
4008
|
-
//#region packages/editor/src/sdk/utils/position.ts
|
|
3824
|
+
// packages/editor/src/sdk/utils/position.ts
|
|
4009
3825
|
/**
|
|
4010
3826
|
* 是否是 fixed 定位。与 `@tmagic/stage` 的同名函数等价,在这里单独实现,
|
|
4011
3827
|
* 避免 SDK 在 Node 下为了这一行逻辑引入整个画布依赖。
|
|
4012
3828
|
*/
|
|
4013
3829
|
var isFixed = (style) => style.position === "fixed";
|
|
4014
|
-
|
|
4015
|
-
//#region packages/editor/src/utils/editor.ts
|
|
3830
|
+
// packages/editor/src/utils/editor.ts
|
|
4016
3831
|
var COPY_STORAGE_KEY = "$MagicEditorCopyData";
|
|
4017
3832
|
var COPY_CODE_STORAGE_KEY = "$MagicEditorCopyCode";
|
|
4018
3833
|
var COPY_DS_STORAGE_KEY = "$MagicEditorCopyDataSource";
|
|
@@ -4463,8 +4278,7 @@
|
|
|
4463
4278
|
return `还原 ${items.length} 个节点的修改`;
|
|
4464
4279
|
}
|
|
4465
4280
|
};
|
|
4466
|
-
|
|
4467
|
-
//#region packages/editor/src/utils/undo-redo.ts
|
|
4281
|
+
// packages/editor/src/utils/undo-redo.ts
|
|
4468
4282
|
var UndoRedo = class UndoRedo {
|
|
4469
4283
|
/**
|
|
4470
4284
|
* 由 {@link UndoRedo.serialize} 产出的快照重建一个 UndoRedo 实例。
|
|
@@ -4586,8 +4400,7 @@
|
|
|
4586
4400
|
return this.elementList.length;
|
|
4587
4401
|
}
|
|
4588
4402
|
};
|
|
4589
|
-
|
|
4590
|
-
//#region packages/editor/src/utils/history.ts
|
|
4403
|
+
// packages/editor/src/utils/history.ts
|
|
4591
4404
|
/**
|
|
4592
4405
|
* 「回滚」生成的新 step 简短描述。代码块 / 数据源共用。
|
|
4593
4406
|
* 二者逻辑一致,仅展示名取值字段不同(代码块取 `name`,数据源取 `title`),
|
|
@@ -4801,8 +4614,7 @@
|
|
|
4801
4614
|
};
|
|
4802
4615
|
/** 将单次 push 产生的 history uuid(或 null)转为 *AndGetHistoryId 返回用的 uuid 列表。 */
|
|
4803
4616
|
var getLastPushedHistoryIds = (historyId) => historyId ? [historyId] : [];
|
|
4804
|
-
|
|
4805
|
-
//#region packages/editor/src/sdk/services/BaseService.ts
|
|
4617
|
+
// packages/editor/src/sdk/services/BaseService.ts
|
|
4806
4618
|
var methodName = (prefix, name) => `${prefix}${name[0].toUpperCase()}${name.substring(1)}`;
|
|
4807
4619
|
var isError = (error) => Object.prototype.toString.call(error) === "[object Error]";
|
|
4808
4620
|
var doAction = (args, scope, sourceMethod, beforeMethodName, afterMethodName) => {
|
|
@@ -4910,8 +4722,7 @@
|
|
|
4910
4722
|
this.doingTask = false;
|
|
4911
4723
|
}
|
|
4912
4724
|
};
|
|
4913
|
-
|
|
4914
|
-
//#region packages/editor/src/sdk/services/WebStorage.ts
|
|
4725
|
+
// packages/editor/src/sdk/services/WebStorage.ts
|
|
4915
4726
|
var Protocol = /* @__PURE__ */ function(Protocol) {
|
|
4916
4727
|
Protocol["OBJECT"] = "object";
|
|
4917
4728
|
Protocol["JSON"] = "json";
|
|
@@ -5057,8 +4868,7 @@
|
|
|
5057
4868
|
};
|
|
5058
4869
|
}
|
|
5059
4870
|
};
|
|
5060
|
-
|
|
5061
|
-
//#region packages/editor/src/sdk/services/CodeBlock.ts
|
|
4871
|
+
// packages/editor/src/sdk/services/CodeBlock.ts
|
|
5062
4872
|
var canUsePluginMethods$4 = {
|
|
5063
4873
|
async: [
|
|
5064
4874
|
"setCodeDslById",
|
|
@@ -5574,8 +5384,7 @@
|
|
|
5574
5384
|
this.setCodeDslByIdSync(id, cloneDeep(sourceForValues), true, { doNotPushHistory: true });
|
|
5575
5385
|
}
|
|
5576
5386
|
};
|
|
5577
|
-
|
|
5578
|
-
//#region packages/editor/src/sdk/services/ComponentList.ts
|
|
5387
|
+
// packages/editor/src/sdk/services/ComponentList.ts
|
|
5579
5388
|
var ComponentList = class extends BaseService {
|
|
5580
5389
|
state;
|
|
5581
5390
|
constructor(ctx) {
|
|
@@ -5600,8 +5409,7 @@
|
|
|
5600
5409
|
this.removeAllPlugins();
|
|
5601
5410
|
}
|
|
5602
5411
|
};
|
|
5603
|
-
|
|
5604
|
-
//#region packages/editor/src/utils/data-source/formConfigs/base.ts
|
|
5412
|
+
// packages/editor/src/utils/data-source/formConfigs/base.ts
|
|
5605
5413
|
var base_default = () => (0, _tmagic_form_headless.defineFormConfig)([
|
|
5606
5414
|
{
|
|
5607
5415
|
name: "id",
|
|
@@ -5626,8 +5434,7 @@
|
|
|
5626
5434
|
text: "描述"
|
|
5627
5435
|
}
|
|
5628
5436
|
]);
|
|
5629
|
-
|
|
5630
|
-
//#region packages/editor/src/utils/data-source/formConfigs/http.ts
|
|
5437
|
+
// packages/editor/src/utils/data-source/formConfigs/http.ts
|
|
5631
5438
|
var http_default = (0, _tmagic_form_headless.defineFormConfig)([
|
|
5632
5439
|
{
|
|
5633
5440
|
name: "autoFetch",
|
|
@@ -5698,8 +5505,7 @@
|
|
|
5698
5505
|
]
|
|
5699
5506
|
}
|
|
5700
5507
|
]);
|
|
5701
|
-
|
|
5702
|
-
//#region packages/editor/src/utils/data-source/index.ts
|
|
5508
|
+
// packages/editor/src/utils/data-source/index.ts
|
|
5703
5509
|
var dataSourceFormConfig = {
|
|
5704
5510
|
type: "tab",
|
|
5705
5511
|
items: [
|
|
@@ -5915,8 +5721,7 @@
|
|
|
5915
5721
|
if (!ok || untypedArrayElement) return "";
|
|
5916
5722
|
return field?.type || "";
|
|
5917
5723
|
};
|
|
5918
|
-
|
|
5919
|
-
//#region packages/editor/src/sdk/services/DataSource.ts
|
|
5724
|
+
// packages/editor/src/sdk/services/DataSource.ts
|
|
5920
5725
|
var canUsePluginMethods$3 = {
|
|
5921
5726
|
async: [],
|
|
5922
5727
|
sync: [
|
|
@@ -6343,13 +6148,11 @@
|
|
|
6343
6148
|
this.update(cloneDeep(sourceForValues), { doNotPushHistory: true });
|
|
6344
6149
|
}
|
|
6345
6150
|
};
|
|
6346
|
-
|
|
6347
|
-
//#region packages/editor/src/utils/logger.ts
|
|
6151
|
+
// packages/editor/src/utils/logger.ts
|
|
6348
6152
|
var error = (...args) => {
|
|
6349
6153
|
if (process.env.NODE_ENV === "development") console.error("magic editor: ", ...args);
|
|
6350
6154
|
};
|
|
6351
|
-
|
|
6352
|
-
//#region packages/editor/src/utils/dep/idle-task.ts
|
|
6155
|
+
// packages/editor/src/utils/dep/idle-task.ts
|
|
6353
6156
|
/**
|
|
6354
6157
|
* 回调因 timeout 触发(主线程一直没有空闲)时,单次回调执行任务的时间预算,单位 ms
|
|
6355
6158
|
* 参考一帧内可让出的余量:既保证队列有进展,又不长时间阻塞主线程
|
|
@@ -6469,8 +6272,7 @@
|
|
|
6469
6272
|
return this.taskList.length + this.hightLevelTaskList.length;
|
|
6470
6273
|
}
|
|
6471
6274
|
};
|
|
6472
|
-
|
|
6473
|
-
//#region packages/editor/src/sdk/services/Dep.ts
|
|
6275
|
+
// packages/editor/src/sdk/services/Dep.ts
|
|
6474
6276
|
/** Node 下没有 worker 时使用:始终不可用,依赖收集退回主线程空闲队列 */
|
|
6475
6277
|
var noopCollectWorker = {
|
|
6476
6278
|
isSupported: false,
|
|
@@ -6779,8 +6581,7 @@
|
|
|
6779
6581
|
this.set("collecting", this.activeBatches.size > 0);
|
|
6780
6582
|
}
|
|
6781
6583
|
};
|
|
6782
|
-
|
|
6783
|
-
//#region packages/editor/src/sdk/utils/operator.ts
|
|
6584
|
+
// packages/editor/src/sdk/utils/operator.ts
|
|
6784
6585
|
/**
|
|
6785
6586
|
* 粘贴前置操作:返回分配了新id以及校准了坐标的配置
|
|
6786
6587
|
* @param position 粘贴的坐标
|
|
@@ -6837,10 +6638,12 @@
|
|
|
6837
6638
|
else if (curNode?.id) parentNode = ctx.editor.getParentById(curNode.id, false);
|
|
6838
6639
|
return parentNode;
|
|
6839
6640
|
};
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6641
|
+
// packages/editor/src/sdk/services/Editor.ts
|
|
6642
|
+
/** 把插入下标收敛到 [0, length]:非整数取整,非法 / 越界(含未记录)一律追加到末尾 */
|
|
6643
|
+
var clampIndex = (index, length) => {
|
|
6644
|
+
const normalized = typeof index === "number" ? Math.trunc(index) : length;
|
|
6645
|
+
return Number.isFinite(normalized) && normalized >= 0 && normalized <= length ? normalized : length;
|
|
6646
|
+
};
|
|
6844
6647
|
/**
|
|
6845
6648
|
* 把「变更前后节点快照」列表归一成 update 类型的 {@link StepDiffItem} 列表,供 {@link StepValue.diff} 使用。
|
|
6846
6649
|
* `changeRecords` 来自 form 端的 propPath/value 列表,撤销/重做时只对这些 propPath 做局部更新;
|
|
@@ -7095,18 +6898,25 @@
|
|
|
7095
6898
|
getConfig() {
|
|
7096
6899
|
return this.config;
|
|
7097
6900
|
}
|
|
7098
|
-
async doAdd(node, parent,
|
|
6901
|
+
async doAdd(node, parent, options = {}) {
|
|
7099
6902
|
const root = this.get("root");
|
|
7100
6903
|
if (!root) throw new Error("root为空");
|
|
7101
6904
|
const curNode = this.get("node");
|
|
7102
6905
|
const stage = this.get("stage");
|
|
7103
|
-
|
|
6906
|
+
const explicitIndex = options.insertIndex;
|
|
6907
|
+
if (!curNode && explicitIndex === void 0) throw new Error("当前选中节点为空");
|
|
7104
6908
|
if ((parent.type === _tmagic_core.NodeType.ROOT || curNode?.type === _tmagic_core.NodeType.ROOT) && !(0, _tmagic_utils.isPageOrFragment)(node)) throw new Error("app下不能添加组件");
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
6909
|
+
let insertIndex;
|
|
6910
|
+
if (explicitIndex === "end") insertIndex = parent.items.length;
|
|
6911
|
+
else if (typeof explicitIndex === "number") insertIndex = clampIndex(explicitIndex, parent.items.length);
|
|
6912
|
+
else {
|
|
6913
|
+
const selectedId = curNode.id;
|
|
6914
|
+
const anchorId = this.lastAdded?.selectedId === selectedId ? this.lastAdded.nodeId : selectedId;
|
|
6915
|
+
const anchorIndex = (0, _tmagic_utils.isPageOrFragment)(node) ? -1 : Math.max(getNodeIndex(anchorId, parent), getNodeIndex(selectedId, parent));
|
|
6916
|
+
insertIndex = anchorIndex < 0 ? parent.items.length : anchorIndex + 1;
|
|
6917
|
+
}
|
|
7108
6918
|
parent.items.splice(insertIndex, 0, node);
|
|
7109
|
-
this.lastAdded = {
|
|
6919
|
+
if (curNode) this.lastAdded = {
|
|
7110
6920
|
selectedId: curNode.id,
|
|
7111
6921
|
nodeId: node.id
|
|
7112
6922
|
};
|
|
@@ -7160,7 +6970,17 @@
|
|
|
7160
6970
|
});
|
|
7161
6971
|
}
|
|
7162
6972
|
const commitInvalid = await this.runGuard(() => this.ctx.validator.guardAdd(targets));
|
|
7163
|
-
|
|
6973
|
+
const explicitIndex = options.insertIndex;
|
|
6974
|
+
const offsets = /* @__PURE__ */ new Map();
|
|
6975
|
+
for (const { node, parentNode } of targets) {
|
|
6976
|
+
const offset = offsets.get(parentNode.id) ?? 0;
|
|
6977
|
+
offsets.set(parentNode.id, offset + 1);
|
|
6978
|
+
const nodeOptions = typeof explicitIndex === "number" ? {
|
|
6979
|
+
...options,
|
|
6980
|
+
insertIndex: Math.trunc(explicitIndex) + offset
|
|
6981
|
+
} : options;
|
|
6982
|
+
newNodes.push(await this.doAdd(node, parentNode, nodeOptions));
|
|
6983
|
+
}
|
|
7164
6984
|
commitInvalid?.();
|
|
7165
6985
|
if (newNodes.length > 1) {
|
|
7166
6986
|
const wouldSwitchPage = newNodes.some((n) => this.isOnDifferentPage(n));
|
|
@@ -8363,8 +8183,7 @@
|
|
|
8363
8183
|
return this.ctx.reactivity.toRaw(value);
|
|
8364
8184
|
}
|
|
8365
8185
|
};
|
|
8366
|
-
|
|
8367
|
-
//#region packages/editor/src/sdk/services/Events.ts
|
|
8186
|
+
// packages/editor/src/sdk/services/Events.ts
|
|
8368
8187
|
var canUsePluginMethods$2 = {
|
|
8369
8188
|
async: [],
|
|
8370
8189
|
sync: [
|
|
@@ -8423,8 +8242,7 @@
|
|
|
8423
8242
|
super.usePlugin(options);
|
|
8424
8243
|
}
|
|
8425
8244
|
};
|
|
8426
|
-
|
|
8427
|
-
//#region packages/editor/src/sdk/services/History.ts
|
|
8245
|
+
// packages/editor/src/sdk/services/History.ts
|
|
8428
8246
|
var canUsePluginMethods$1 = { sync: [
|
|
8429
8247
|
"push",
|
|
8430
8248
|
"undo",
|
|
@@ -8906,8 +8724,7 @@
|
|
|
8906
8724
|
return resolvedAppId ? `${dbName}-${resolvedAppId}` : dbName;
|
|
8907
8725
|
}
|
|
8908
8726
|
};
|
|
8909
|
-
|
|
8910
|
-
//#region packages/editor/src/sdk/utils/props.ts
|
|
8727
|
+
// packages/editor/src/sdk/utils/props.ts
|
|
8911
8728
|
var arrayOptions = [{
|
|
8912
8729
|
text: "包含",
|
|
8913
8730
|
value: "include"
|
|
@@ -9062,9 +8879,9 @@
|
|
|
9062
8879
|
{
|
|
9063
8880
|
name: "created",
|
|
9064
8881
|
text: "Created",
|
|
9065
|
-
labelPosition: "top",
|
|
9066
8882
|
type: "code-select",
|
|
9067
8883
|
titleExtra: "组件初始化时执行",
|
|
8884
|
+
labelWidth: "90px",
|
|
9068
8885
|
rules: [{
|
|
9069
8886
|
typeMatch: true,
|
|
9070
8887
|
trigger: "change"
|
|
@@ -9076,8 +8893,8 @@
|
|
|
9076
8893
|
{
|
|
9077
8894
|
name: "mounted",
|
|
9078
8895
|
text: "Mounted",
|
|
9079
|
-
labelPosition: "top",
|
|
9080
8896
|
type: "code-select",
|
|
8897
|
+
labelWidth: "90px",
|
|
9081
8898
|
titleExtra: "组件挂载到dom时执行",
|
|
9082
8899
|
rules: [{
|
|
9083
8900
|
typeMatch: true,
|
|
@@ -9091,7 +8908,7 @@
|
|
|
9091
8908
|
name: "display",
|
|
9092
8909
|
text: "Display",
|
|
9093
8910
|
titleExtra: "控制组件是否渲染,关系的代码块返回值为false时不渲染",
|
|
9094
|
-
|
|
8911
|
+
labelWidth: "90px",
|
|
9095
8912
|
type: "code-select",
|
|
9096
8913
|
rules: [{
|
|
9097
8914
|
typeMatch: true,
|
|
@@ -9185,8 +9002,7 @@
|
|
|
9185
9002
|
if (!disabledDataSource) tabConfig.items.push({ ...displayTabConfig });
|
|
9186
9003
|
return [tabConfig];
|
|
9187
9004
|
};
|
|
9188
|
-
|
|
9189
|
-
//#region packages/editor/src/sdk/services/Props.ts
|
|
9005
|
+
// packages/editor/src/sdk/services/Props.ts
|
|
9190
9006
|
var canUsePluginMethods = {
|
|
9191
9007
|
async: [
|
|
9192
9008
|
"setPropsConfig",
|
|
@@ -9409,8 +9225,7 @@
|
|
|
9409
9225
|
this.state.relateIdMap[oldId] = newId;
|
|
9410
9226
|
}
|
|
9411
9227
|
};
|
|
9412
|
-
|
|
9413
|
-
//#region packages/editor/src/sdk/validate/index.ts
|
|
9228
|
+
// packages/editor/src/sdk/validate/index.ts
|
|
9414
9229
|
/**
|
|
9415
9230
|
* @fileoverview DSL 校验:
|
|
9416
9231
|
*
|
|
@@ -9689,8 +9504,7 @@
|
|
|
9689
9504
|
}
|
|
9690
9505
|
};
|
|
9691
9506
|
};
|
|
9692
|
-
|
|
9693
|
-
//#region packages/editor/src/sdk/utils/dep.ts
|
|
9507
|
+
// packages/editor/src/sdk/utils/dep.ts
|
|
9694
9508
|
/** 数据源依赖类型 -> 写回 root 的字段 */
|
|
9695
9509
|
var DEPS_KEY = {
|
|
9696
9510
|
[_tmagic_core.DepTargetType.DATA_SOURCE]: "dataSourceDeps",
|
|
@@ -9785,8 +9599,7 @@
|
|
|
9785
9599
|
if (!root || !isDataSourceDepType(type)) return;
|
|
9786
9600
|
delete root[DEPS_KEY[type]]?.[id];
|
|
9787
9601
|
};
|
|
9788
|
-
|
|
9789
|
-
//#region packages/editor/src/sdk/wiring.ts
|
|
9602
|
+
// packages/editor/src/sdk/wiring.ts
|
|
9790
9603
|
var pendingSelects = /* @__PURE__ */ new WeakMap();
|
|
9791
9604
|
/** root 变化后自动选中节点是异步的,需要时可以等它完成 */
|
|
9792
9605
|
var whenWiringSettled = (ctx) => pendingSelects.get(ctx) ?? Promise.resolve();
|
|
@@ -9944,8 +9757,7 @@
|
|
|
9944
9757
|
for (const [service, event, handler] of listeners) service.off(event, handler);
|
|
9945
9758
|
} };
|
|
9946
9759
|
};
|
|
9947
|
-
|
|
9948
|
-
//#region packages/editor/src/sdk/index.ts
|
|
9760
|
+
// packages/editor/src/sdk/index.ts
|
|
9949
9761
|
/**
|
|
9950
9762
|
* @fileoverview `@tmagic/editor/sdk`:不依赖 DOM 的 DSL 操作 SDK。
|
|
9951
9763
|
*
|
|
@@ -10079,14 +9891,12 @@
|
|
|
10079
9891
|
}
|
|
10080
9892
|
};
|
|
10081
9893
|
};
|
|
10082
|
-
|
|
10083
|
-
//#region packages/editor/src/utils/config.ts
|
|
9894
|
+
// packages/editor/src/utils/config.ts
|
|
10084
9895
|
var $TMAGIC_EDITOR = {};
|
|
10085
9896
|
(0, vue.ref)(false);
|
|
10086
9897
|
var getEditorConfig = (key) => $TMAGIC_EDITOR[key];
|
|
10087
|
-
|
|
10088
|
-
//#region packages/editor/src/utils/dep/worker.ts?worker&inline
|
|
10089
|
-
var jsContent = "(function() {\n //#region packages/schema/dist/es/index.js\n var NODE_CONDS_KEY = \"displayConds\";\n var NODE_DISABLE_DATA_SOURCE_KEY = \"_tmagic_node_disabled_data_source\";\n var NODE_DISABLE_CODE_BLOCK_KEY = \"_tmagic_node_disabled_code_block\";\n var HookType = /* @__PURE__ */ function(HookType) {\n /** 代码块钩子标识 */\n HookType[\"CODE\"] = \"code\";\n return HookType;\n }({});\n //#endregion\n //#region packages/utils/dist/es/const.js\n var DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = \"ds-field::\";\n //#endregion\n //#region packages/utils/dist/es/index.js\n var isObject = (obj) => Object.prototype.toString.call(obj) === \"[object Object]\";\n var getKeysArray = (keys) => `${keys}`.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n var dataSourceTemplateRegExp = /\\$\\{([\\s\\S]+?)\\}/g;\n //#endregion\n //#region packages/dep/dist/es/types.js\n /** 依赖收集的目标类型 */\n var DepTargetType = /* @__PURE__ */ function(DepTargetType) {\n DepTargetType[\"DEFAULT\"] = \"default\";\n /** 代码块 */\n DepTargetType[\"CODE_BLOCK\"] = \"code-block\";\n /** 数据源 */\n DepTargetType[\"DATA_SOURCE\"] = \"data-source\";\n /** 数据源方法 */\n DepTargetType[\"DATA_SOURCE_METHOD\"] = \"data-source-method\";\n /** 数据源条件 */\n DepTargetType[\"DATA_SOURCE_COND\"] = \"data-source-cond\";\n return DepTargetType;\n }({});\n //#endregion\n //#region packages/dep/dist/es/Target.js\n /**\n * 需要收集依赖的目标\n * 例如:一个代码块可以为一个目标\n */\n var Target = class {\n /**\n * 如何识别目标\n */\n isTarget;\n /**\n * 目标id,不可重复\n * 例如目标是代码块,则为代码块id\n */\n id;\n /**\n * 目标名称,用于显示在依赖列表中\n */\n name;\n /**\n * 不同的目标可以进行分类,例如代码块,数据源可以为两个不同的type\n */\n type = DepTargetType.DEFAULT;\n /**\n * 依赖详情\n * 实例:{ 'node_id': { name: 'node_name', keys: [ created, mounted ] } }\n */\n deps = {};\n /**\n * 是否默认收集,默认为true,当值为false时需要传入type参数给collect方法才会被收集\n */\n isCollectByDefault;\n /**\n * 可序列化描述,有该描述的 target 可以在 worker 中重建,从而把依赖收集放到子线程执行\n */\n descriptor;\n constructor(options) {\n this.isTarget = options.isTarget;\n this.id = options.id;\n this.name = options.name;\n this.isCollectByDefault = options.isCollectByDefault ?? true;\n this.descriptor = options.descriptor;\n if (options.type) this.type = options.type;\n if (options.initialDeps) this.deps = options.initialDeps;\n }\n /**\n * 更新依赖\n * @param option 节点配置\n * @param key 哪个key配置了这个目标的id\n */\n updateDep({ id, name, key, data }) {\n const dep = this.deps[id] || {\n name,\n keys: []\n };\n dep.name = name;\n dep.data = data;\n this.deps[id] = dep;\n if (!dep.keys.includes(key)) dep.keys.push(key);\n }\n /**\n * 删除依赖\n * @param node 哪个节点的依赖需要移除,如果为空,则移除所有依赖\n * @param key 节点下哪个key需要移除,如果为空,则移除改节点下的所有依赖key\n * @returns void\n */\n removeDep(id, key) {\n if (typeof id === \"undefined\") {\n Object.keys(this.deps).forEach((depKey) => {\n delete this.deps[depKey];\n });\n return;\n }\n const dep = this.deps[id];\n if (!dep) return;\n if (key) {\n const index = dep.keys.indexOf(key);\n dep.keys.splice(index, 1);\n if (dep.keys.length === 0) delete this.deps[id];\n } else delete this.deps[id];\n }\n /**\n * 判断指定节点下的指定key是否存在在依赖列表中\n * @param node 哪个节点\n * @param key 哪个key\n * @returns boolean\n */\n hasDep(id, key) {\n return this.deps[id]?.keys.includes(key) ?? false;\n }\n destroy() {\n this.deps = {};\n }\n };\n //#endregion\n //#region packages/dep/dist/es/utils.js\n var INTEGER_REGEXP = /^\\d+$/;\n var createCodeBlockTarget = (id, codeBlock, initialDeps = {}) => new Target({\n type: DepTargetType.CODE_BLOCK,\n id,\n initialDeps,\n name: codeBlock.name,\n descriptor: {\n type: DepTargetType.CODE_BLOCK,\n id,\n codeBlock: { name: codeBlock.name }\n },\n isTarget: (_key, value) => {\n if (id === value) return true;\n if (value?.hookType === HookType.CODE && Array.isArray(value.hookData)) return value.hookData.some((item) => item.codeId === id);\n return false;\n }\n });\n /**\n * ['array'] ['array', '0'] ['array', '0', 'a'] 这种返回false\n * ['array', 'a'] 这种返回true\n * @param keys\n * @param fields\n * @returns boolean\n */\n var isIncludeArrayField = (keys, fields) => {\n let f = fields;\n return keys.some((key, index) => {\n const field = f.find(({ name }) => name === key);\n f = field?.fields || [];\n return field?.type === \"array\" && index < keys.length - 1 && !INTEGER_REGEXP.test(keys[index + 1]);\n });\n };\n /**\n * 判断模板(value)是不是使用数据源Id(dsId),如:`xxx${dsId.field}xxx${dsId.field}`\n * @param value any\n * @param dsId string | number\n * @param hasArray boolean true: 一定要包含有需要迭代的模板; false: 一定要包含普通模板;\n * @returns boolean\n */\n var isDataSourceTemplate = (value, ds, hasArray = false) => {\n const templates = value.match(dataSourceTemplateRegExp) || [];\n if (templates.length <= 0) return false;\n for (const tpl of templates) {\n const keys = getKeysArray(tpl.substring(2, tpl.length - 1));\n const dsId = keys.shift();\n if (!dsId || dsId !== ds.id) continue;\n if (hasArray === isIncludeArrayField(keys, ds.fields)) return true;\n }\n return false;\n };\n /**\n * 指定数据源的字符串模板,如:{ isBindDataSourceField: true, dataSourceId: 'id', template: `xxx${field}xxx`}\n * @param value any\n * @param dsId string | number\n * @returns boolean\n */\n var isSpecificDataSourceTemplate = (value, dsId) => value?.isBindDataSourceField && value.dataSourceId && value.dataSourceId === dsId && typeof value.template === \"string\";\n /**\n * 关联数据源字段,格式为 [前缀+数据源ID, 字段名]\n * 使用data-source-field-select value: 'value' 可以配置出来\n * @param value any[]\n * @param id string | number\n * @returns boolean\n */\n var isUseDataSourceField = (value, id) => {\n if (!Array.isArray(value) || typeof value[0] !== \"string\") return false;\n const [prefixId] = value;\n const prefixIndex = prefixId.indexOf(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX);\n if (prefixIndex === -1) return false;\n return prefixId.substring(prefixIndex + DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX.length) === id;\n };\n var isDataSourceTarget = (ds, key, value, hasArray = false) => {\n if (!value) return false;\n const valueType = typeof value;\n if (valueType !== \"string\" && valueType !== \"object\") return false;\n if (`${key}`.startsWith(\"displayConds\")) return false;\n if (valueType === \"string\") return isDataSourceTemplate(value, ds, hasArray);\n if (isObject(value) && value.isBindDataSource && value.dataSourceId === ds.id) return true;\n if (isSpecificDataSourceTemplate(value, ds.id)) return true;\n if (isUseDataSourceField(value, ds.id)) {\n const [, ...keys] = value;\n const includeArray = isIncludeArrayField(keys, ds.fields);\n return hasArray ? includeArray : !includeArray;\n }\n return false;\n };\n var isDataSourceCondTarget = (ds, key, value, hasArray = false) => {\n if (!Array.isArray(value) || !ds) return false;\n const [dsId, ...keys] = value;\n if (dsId !== ds.id || !`${key}`.startsWith(\"displayConds\")) return false;\n if (ds.fields?.some((field) => field.name === keys[0])) {\n const includeArray = isIncludeArrayField(keys, ds.fields);\n return hasArray ? includeArray : !includeArray;\n }\n return false;\n };\n var createDataSourceTarget = (ds, initialDeps = {}) => new Target({\n type: DepTargetType.DATA_SOURCE,\n id: ds.id,\n initialDeps,\n descriptor: {\n type: DepTargetType.DATA_SOURCE,\n ds: {\n id: ds.id,\n fields: ds.fields || []\n }\n },\n isTarget: (key, value) => isDataSourceTarget(ds, key, value)\n });\n var createDataSourceCondTarget = (ds, initialDeps = {}) => new Target({\n type: DepTargetType.DATA_SOURCE_COND,\n id: ds.id,\n initialDeps,\n descriptor: {\n type: DepTargetType.DATA_SOURCE_COND,\n ds: {\n id: ds.id,\n fields: ds.fields || []\n }\n },\n isTarget: (key, value) => isDataSourceCondTarget(ds, key, value)\n });\n var createDataSourceMethodTarget = (ds, initialDeps = {}) => new Target({\n type: DepTargetType.DATA_SOURCE_METHOD,\n id: ds.id,\n initialDeps,\n descriptor: {\n type: DepTargetType.DATA_SOURCE_METHOD,\n ds: {\n id: ds.id,\n methods: (ds.methods || []).map((method) => ({ name: method.name })),\n fields: (ds.fields || []).map((field) => ({ name: field.name }))\n }\n },\n isTarget: (_key, value) => {\n if (!Array.isArray(value)) return false;\n const [dsId, methodName] = value;\n if (!methodName || dsId !== ds.id) return false;\n if (ds.methods?.some((method) => method.name === methodName)) return true;\n if (ds.fields?.some((field) => field.name === methodName)) return false;\n return true;\n }\n });\n /**\n * 用可序列化描述重建 target,使依赖收集可以在 worker 等无法传递函数的环境中进行\n * @param descriptor 由工厂函数写入 target 的描述\n * @param initialDeps 初始依赖\n * @returns Target\n */\n var createTargetByDescriptor = (descriptor, initialDeps = {}) => {\n switch (descriptor.type) {\n case DepTargetType.CODE_BLOCK: return createCodeBlockTarget(descriptor.id, descriptor.codeBlock, initialDeps);\n case DepTargetType.DATA_SOURCE: return createDataSourceTarget(descriptor.ds, initialDeps);\n case DepTargetType.DATA_SOURCE_COND: return createDataSourceCondTarget(descriptor.ds, initialDeps);\n case DepTargetType.DATA_SOURCE_METHOD: return createDataSourceMethodTarget(descriptor.ds, initialDeps);\n default: throw new Error(`unknown target descriptor: ${JSON.stringify(descriptor)}`);\n }\n };\n var traverseTarget = (targetsList, cb, type) => {\n if (type) {\n const targets = targetsList[type];\n if (targets) for (const target of Object.values(targets)) cb(target);\n return;\n }\n for (const targets of Object.values(targetsList)) for (const target of Object.values(targets)) cb(target);\n };\n //#endregion\n //#region packages/dep/dist/es/Watcher.js\n var DATA_SOURCE_TARGET_TYPES = /* @__PURE__ */ new Set([\n DepTargetType.DATA_SOURCE,\n DepTargetType.DATA_SOURCE_COND,\n DepTargetType.DATA_SOURCE_METHOD\n ]);\n var Watcher = class {\n targetsList = {};\n childrenProp = \"items\";\n idProp = \"id\";\n nameProp = \"name\";\n constructor(options) {\n if (options?.initialTargets) this.targetsList = options.initialTargets;\n if (options?.childrenProp) this.childrenProp = options.childrenProp;\n }\n getTargetsList() {\n return this.targetsList;\n }\n /**\n * 获取指定类型中的所有target\n * @param type 分类\n * @returns Target[]\n */\n getTargets(type = DepTargetType.DEFAULT) {\n return this.targetsList[type] || {};\n }\n /**\n * 添加新的目标\n * @param target Target\n */\n addTarget(target) {\n const targets = this.getTargets(target.type) || {};\n this.targetsList[target.type] = targets;\n targets[target.id] = target;\n }\n /**\n * 获取指定id的target\n * @param id target id\n * @returns Target\n */\n getTarget(id, type = DepTargetType.DEFAULT) {\n return this.getTargets(type)[id];\n }\n /**\n * 判断是否存在指定id的target\n * @param id target id\n * @returns boolean\n */\n hasTarget(id, type = DepTargetType.DEFAULT) {\n return Boolean(this.getTarget(id, type));\n }\n /**\n * 判断是否存在指定类型的target\n * @param type target type\n * @returns boolean\n */\n hasSpecifiedTypeTarget(type = DepTargetType.DEFAULT) {\n return Object.keys(this.getTargets(type)).length > 0;\n }\n /**\n * 删除指定id的target\n * @param id target id\n */\n removeTarget(id, type = DepTargetType.DEFAULT) {\n const targets = this.getTargets(type);\n if (targets[id]) {\n targets[id].destroy();\n delete targets[id];\n }\n }\n /**\n * 删除指定分类的所有target\n * @param type 分类\n * @returns void\n */\n removeTargets(type = DepTargetType.DEFAULT) {\n const targets = this.targetsList[type];\n if (!targets) return;\n for (const target of Object.values(targets)) target.destroy();\n delete this.targetsList[type];\n }\n /**\n * 删除所有target\n */\n clearTargets() {\n for (const key of Object.keys(this.targetsList)) delete this.targetsList[key];\n }\n /**\n * 收集依赖\n * @param nodes 需要收集的节点\n * @param deep 是否需要收集子节点\n * @param type 强制收集指定类型的依赖\n */\n collect(nodes, depExtendedData = {}, deep = false, type) {\n const targets = this.getCollectableTargets(type);\n if (!targets.length) return;\n for (const node of nodes) this.removeTargetsDep(targets, node);\n for (const node of nodes) this.collectItems(node, targets, depExtendedData, deep);\n }\n /**\n * 获取本次需要参与收集的 target(过滤规则与 collectByCallback 一致)\n *\n * 注:供 editor 的 dep service / worker 跨包批量收集时复用,因此为 public。\n * @param type 强制收集指定类型的依赖\n */\n getCollectableTargets(type) {\n const targets = [];\n traverseTarget(this.targetsList, (target) => {\n if (!type && !target.isCollectByDefault) return;\n targets.push(target);\n }, type);\n return targets;\n }\n collectByCallback(nodes, type, cb) {\n traverseTarget(this.targetsList, (target) => {\n if (!type && !target.isCollectByDefault) return;\n for (const node of nodes) cb({\n node,\n target\n });\n }, type);\n }\n /**\n * 清除所有目标的依赖\n * @param nodes 需要清除依赖的节点\n */\n clear(nodes, type) {\n let { targetsList } = this;\n if (type) targetsList = { [type]: this.getTargets(type) };\n const clearedItemsNodeIds = /* @__PURE__ */ new Set();\n traverseTarget(targetsList, (target) => {\n if (nodes) for (const node of nodes) {\n target.removeDep(node[this.idProp]);\n if (Array.isArray(node[this.childrenProp]) && node[this.childrenProp].length && !clearedItemsNodeIds.has(node[this.idProp])) {\n clearedItemsNodeIds.add(node[this.idProp]);\n this.clear(node[this.childrenProp]);\n }\n }\n else target.removeDep();\n });\n }\n /**\n * 清除指定类型的依赖\n * @param type 类型\n * @param nodes 需要清除依赖的节点\n */\n clearByType(type, nodes) {\n this.clear(nodes, type);\n }\n /**\n * 收集单个 target 的依赖,等价于 collectItems(node, [target], ...)\n */\n collectItem(node, target, depExtendedData = {}, deep = false) {\n this.collectItems(node, [target], depExtendedData, deep);\n }\n removeTargetDep(target, node, key) {\n target.removeDep(node[this.idProp], key);\n if (typeof key === \"undefined\" && Array.isArray(node[this.childrenProp]) && node[this.childrenProp].length) for (const item of node[this.childrenProp]) this.removeTargetDep(target, item, key);\n }\n /**\n * 与 removeTargetDep 等价,但一次子树递归同时处理多个 target,\n * 把删除阶段的结构遍历从 ×targets 降到 ×1。\n *\n * 注:供 editor 的 dep service 跨包批量删除时复用,因此为 public。\n */\n removeTargetsDep(targets, node, key) {\n const id = node[this.idProp];\n for (const target of targets) target.removeDep(id, key);\n if (typeof key === \"undefined\" && Array.isArray(node[this.childrenProp]) && node[this.childrenProp].length) for (const item of node[this.childrenProp]) this.removeTargetsDep(targets, item, key);\n }\n /**\n * 与 collectItem 等价,但一次遍历同时处理多个 target(不含删除阶段)。\n *\n * 关键优化:原实现对每个 target 都完整遍历一遍节点树(O(targets × 树规模)),大页面 + 大量数据源时,\n * 结构遍历(Object.entries / 递归 / fullKey 字符串拼接)会被重复 targets 次。这里改为「整棵树只遍历一次,\n * 在每个属性上检查所有 target」,把结构遍历开销从 ×targets 降到 ×1,isTarget 调用次数不变,收集结果完全一致。\n *\n * 注:供 editor 的 dep service / worker 跨包批量收集时复用,因此为 public。\n */\n collectItems(node, targets, depExtendedData = {}, deep = false) {\n const activeTargets = this.filterTargetsByNode(node, targets);\n if (!activeTargets.length) return;\n this.collectTargetForTargets(node, node, \"\", activeTargets, depExtendedData, deep);\n }\n filterTargetsByNode(node, targets) {\n const disableDataSource = Boolean(node[NODE_DISABLE_DATA_SOURCE_KEY]);\n const disableCodeBlock = Boolean(node[NODE_DISABLE_CODE_BLOCK_KEY]);\n if (!disableDataSource && !disableCodeBlock) return targets;\n return targets.filter((target) => {\n if (disableDataSource && DATA_SOURCE_TARGET_TYPES.has(target.type)) return false;\n if (disableCodeBlock && target.type === DepTargetType.CODE_BLOCK) return false;\n return true;\n });\n }\n collectTargetForTargets(node, config, prop, targets, depExtendedData, deep) {\n const id = node[this.idProp];\n const name = `${node[this.nameProp] || node[this.idProp]}`;\n for (const [key, value] of Object.entries(config)) {\n if (typeof value === \"undefined\" || value === \"\") continue;\n const keyIsItems = key === this.childrenProp;\n const fullKey = prop ? `${prop}.${key}` : key;\n let notMatched = null;\n for (let i = 0, l = targets.length; i < l; i++) {\n const target = targets[i];\n if (target.isTarget(fullKey, value, config)) target.updateDep({\n id,\n name,\n data: depExtendedData,\n key: fullKey\n });\n else (notMatched || (notMatched = [])).push(target);\n }\n if (notMatched) {\n if (!keyIsItems && Array.isArray(value)) for (let i = 0, l = value.length; i < l; i++) {\n const item = value[i];\n if (isObject(item)) this.collectTargetForTargets(node, item, `${fullKey}[${i}]`, notMatched, depExtendedData, deep);\n }\n else if (isObject(value)) this.collectTargetForTargets(node, value, fullKey, notMatched, depExtendedData, deep);\n }\n if (keyIsItems && deep && Array.isArray(value)) for (const child of value) this.collectItems(child, targets, depExtendedData, deep);\n }\n }\n };\n //#endregion\n //#region packages/editor/src/utils/logger.ts\n const error = (...args) => {\n if (process.env.NODE_ENV === \"development\") console.error(\"magic editor: \", ...args);\n };\n //#endregion\n //#region packages/editor/src/utils/dep/worker.ts\n /**\n * 收集本次会覆盖到的节点 id\n * 必须与 deep 一致:deep=false 时不能带上子孙 id,否则写回阶段 removeDep 会清掉未重收的子节点依赖\n */\n const getNodeIds = (nodes, deep, ids = []) => {\n for (const node of nodes) {\n ids.push(node.id);\n if (deep && Array.isArray(node.items) && node.items.length) getNodeIds(node.items, deep, ids);\n }\n return ids;\n };\n const collectDsl = ({ id, dsl }) => {\n try {\n const mApp = eval(`(${dsl})`);\n if (!mApp) {\n postMessage({\n id,\n deps: {}\n });\n return;\n }\n const watcher = new Watcher({ initialTargets: {} });\n if (mApp.codeBlocks) for (const [id, code] of Object.entries(mApp.codeBlocks)) watcher.addTarget(createCodeBlockTarget(id, code));\n if (mApp.dataSources) for (const ds of mApp.dataSources) {\n watcher.addTarget(createDataSourceTarget(ds, {}));\n watcher.addTarget(createDataSourceMethodTarget(ds, {}));\n watcher.addTarget(createDataSourceCondTarget(ds, {}));\n }\n const targets = watcher.getCollectableTargets();\n for (const page of mApp.items) watcher.collectItems(page, targets, { pageId: page.id }, true);\n const deps = {\n [DepTargetType.DATA_SOURCE]: {},\n [DepTargetType.DATA_SOURCE_METHOD]: {},\n [DepTargetType.DATA_SOURCE_COND]: {},\n [DepTargetType.CODE_BLOCK]: {}\n };\n traverseTarget(watcher.getTargetsList(), (target) => {\n deps[target.type][target.id] = target.deps;\n });\n const response = {\n id,\n deps\n };\n postMessage(response);\n } catch (e) {\n error(e);\n postMessage({\n id,\n deps: {},\n failed: true\n });\n }\n };\n const collectNodes = ({ id, payload }) => {\n try {\n const { nodes, targets: descriptors, depExtendedData, deep } = eval(`(${payload})`);\n const watcher = new Watcher({ initialTargets: {} });\n const targets = descriptors.map((descriptor) => createTargetByDescriptor(descriptor));\n for (const node of nodes) watcher.collectItems(node, targets, depExtendedData, deep);\n const deps = {};\n for (const target of targets) {\n if (!deps[target.type]) deps[target.type] = {};\n deps[target.type][target.id] = target.deps;\n }\n const response = {\n id,\n deps,\n nodeIds: getNodeIds(nodes, deep)\n };\n postMessage(response);\n } catch (e) {\n error(e);\n postMessage({\n id,\n deps: {},\n nodeIds: [],\n failed: true\n });\n }\n };\n /**\n * 依赖收集 worker\n *\n * 依赖收集需要深度遍历整棵节点树并对每个属性做 target 匹配,节点/数据源多时会长时间占用主线程导致页面卡死,\n * 因此把遍历匹配放到 worker 中执行。\n * 全量与增量收集共用一个常驻 worker:收集逻辑只打进一份 inline worker 产物,\n * 也不会因为频繁收集而反复创建线程,每个请求用 id 与调用方对应。\n */\n onmessage = (e) => {\n if (\"dsl\" in e.data) {\n collectDsl(e.data);\n return;\n }\n collectNodes(e.data);\n };\n //#endregion\n})();\n";
|
|
9898
|
+
// packages/editor/src/utils/dep/worker.ts?worker&inline
|
|
9899
|
+
var jsContent = "(function() {\n // packages/schema/dist/es/index.js\n var NODE_CONDS_KEY = \"displayConds\";\n var NODE_DISABLE_DATA_SOURCE_KEY = \"_tmagic_node_disabled_data_source\";\n var NODE_DISABLE_CODE_BLOCK_KEY = \"_tmagic_node_disabled_code_block\";\n var HookType = /* @__PURE__ */ function(HookType) {\n /** 代码块钩子标识 */\n HookType[\"CODE\"] = \"code\";\n return HookType;\n }({});\n // packages/utils/dist/es/const.js\n var DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = \"ds-field::\";\n // packages/utils/dist/es/index.js\n var isObject = (obj) => Object.prototype.toString.call(obj) === \"[object Object]\";\n var getKeysArray = (keys) => `${keys}`.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n var dataSourceTemplateRegExp = /\\$\\{([\\s\\S]+?)\\}/g;\n // packages/dep/dist/es/types.js\n /** 依赖收集的目标类型 */\n var DepTargetType = /* @__PURE__ */ function(DepTargetType) {\n DepTargetType[\"DEFAULT\"] = \"default\";\n /** 代码块 */\n DepTargetType[\"CODE_BLOCK\"] = \"code-block\";\n /** 数据源 */\n DepTargetType[\"DATA_SOURCE\"] = \"data-source\";\n /** 数据源方法 */\n DepTargetType[\"DATA_SOURCE_METHOD\"] = \"data-source-method\";\n /** 数据源条件 */\n DepTargetType[\"DATA_SOURCE_COND\"] = \"data-source-cond\";\n return DepTargetType;\n }({});\n // packages/dep/dist/es/Target.js\n /**\n * 需要收集依赖的目标\n * 例如:一个代码块可以为一个目标\n */\n var Target = class {\n /**\n * 如何识别目标\n */\n isTarget;\n /**\n * 目标id,不可重复\n * 例如目标是代码块,则为代码块id\n */\n id;\n /**\n * 目标名称,用于显示在依赖列表中\n */\n name;\n /**\n * 不同的目标可以进行分类,例如代码块,数据源可以为两个不同的type\n */\n type = DepTargetType.DEFAULT;\n /**\n * 依赖详情\n * 实例:{ 'node_id': { name: 'node_name', keys: [ created, mounted ] } }\n */\n deps = {};\n /**\n * 是否默认收集,默认为true,当值为false时需要传入type参数给collect方法才会被收集\n */\n isCollectByDefault;\n /**\n * 可序列化描述,有该描述的 target 可以在 worker 中重建,从而把依赖收集放到子线程执行\n */\n descriptor;\n constructor(options) {\n this.isTarget = options.isTarget;\n this.id = options.id;\n this.name = options.name;\n this.isCollectByDefault = options.isCollectByDefault ?? true;\n this.descriptor = options.descriptor;\n if (options.type) this.type = options.type;\n if (options.initialDeps) this.deps = options.initialDeps;\n }\n /**\n * 更新依赖\n * @param option 节点配置\n * @param key 哪个key配置了这个目标的id\n */\n updateDep({ id, name, key, data }) {\n const dep = this.deps[id] || {\n name,\n keys: []\n };\n dep.name = name;\n dep.data = data;\n this.deps[id] = dep;\n if (!dep.keys.includes(key)) dep.keys.push(key);\n }\n /**\n * 删除依赖\n * @param node 哪个节点的依赖需要移除,如果为空,则移除所有依赖\n * @param key 节点下哪个key需要移除,如果为空,则移除改节点下的所有依赖key\n * @returns void\n */\n removeDep(id, key) {\n if (typeof id === \"undefined\") {\n Object.keys(this.deps).forEach((depKey) => {\n delete this.deps[depKey];\n });\n return;\n }\n const dep = this.deps[id];\n if (!dep) return;\n if (key) {\n const index = dep.keys.indexOf(key);\n dep.keys.splice(index, 1);\n if (dep.keys.length === 0) delete this.deps[id];\n } else delete this.deps[id];\n }\n /**\n * 判断指定节点下的指定key是否存在在依赖列表中\n * @param node 哪个节点\n * @param key 哪个key\n * @returns boolean\n */\n hasDep(id, key) {\n return this.deps[id]?.keys.includes(key) ?? false;\n }\n destroy() {\n this.deps = {};\n }\n };\n // packages/dep/dist/es/utils.js\n var INTEGER_REGEXP = /^\\d+$/;\n var createCodeBlockTarget = (id, codeBlock, initialDeps = {}) => new Target({\n type: DepTargetType.CODE_BLOCK,\n id,\n initialDeps,\n name: codeBlock.name,\n descriptor: {\n type: DepTargetType.CODE_BLOCK,\n id,\n codeBlock: { name: codeBlock.name }\n },\n isTarget: (_key, value) => {\n if (id === value) return true;\n if (value?.hookType === HookType.CODE && Array.isArray(value.hookData)) return value.hookData.some((item) => item.codeId === id);\n return false;\n }\n });\n /**\n * ['array'] ['array', '0'] ['array', '0', 'a'] 这种返回false\n * ['array', 'a'] 这种返回true\n * @param keys\n * @param fields\n * @returns boolean\n */\n var isIncludeArrayField = (keys, fields) => {\n let f = fields;\n return keys.some((key, index) => {\n const field = f.find(({ name }) => name === key);\n f = field?.fields || [];\n return field?.type === \"array\" && index < keys.length - 1 && !INTEGER_REGEXP.test(keys[index + 1]);\n });\n };\n /**\n * 判断模板(value)是不是使用数据源Id(dsId),如:`xxx${dsId.field}xxx${dsId.field}`\n * @param value any\n * @param dsId string | number\n * @param hasArray boolean true: 一定要包含有需要迭代的模板; false: 一定要包含普通模板;\n * @returns boolean\n */\n var isDataSourceTemplate = (value, ds, hasArray = false) => {\n const templates = value.match(dataSourceTemplateRegExp) || [];\n if (templates.length <= 0) return false;\n for (const tpl of templates) {\n const keys = getKeysArray(tpl.substring(2, tpl.length - 1));\n const dsId = keys.shift();\n if (!dsId || dsId !== ds.id) continue;\n if (hasArray === isIncludeArrayField(keys, ds.fields)) return true;\n }\n return false;\n };\n /**\n * 指定数据源的字符串模板,如:{ isBindDataSourceField: true, dataSourceId: 'id', template: `xxx${field}xxx`}\n * @param value any\n * @param dsId string | number\n * @returns boolean\n */\n var isSpecificDataSourceTemplate = (value, dsId) => value?.isBindDataSourceField && value.dataSourceId && value.dataSourceId === dsId && typeof value.template === \"string\";\n /**\n * 关联数据源字段,格式为 [前缀+数据源ID, 字段名]\n * 使用data-source-field-select value: 'value' 可以配置出来\n * @param value any[]\n * @param id string | number\n * @returns boolean\n */\n var isUseDataSourceField = (value, id) => {\n if (!Array.isArray(value) || typeof value[0] !== \"string\") return false;\n const [prefixId] = value;\n const prefixIndex = prefixId.indexOf(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX);\n if (prefixIndex === -1) return false;\n return prefixId.substring(prefixIndex + DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX.length) === id;\n };\n var isDataSourceTarget = (ds, key, value, hasArray = false) => {\n if (!value) return false;\n const valueType = typeof value;\n if (valueType !== \"string\" && valueType !== \"object\") return false;\n if (`${key}`.startsWith(\"displayConds\")) return false;\n if (valueType === \"string\") return isDataSourceTemplate(value, ds, hasArray);\n if (isObject(value) && value.isBindDataSource && value.dataSourceId === ds.id) return true;\n if (isSpecificDataSourceTemplate(value, ds.id)) return true;\n if (isUseDataSourceField(value, ds.id)) {\n const [, ...keys] = value;\n const includeArray = isIncludeArrayField(keys, ds.fields);\n return hasArray ? includeArray : !includeArray;\n }\n return false;\n };\n var isDataSourceCondTarget = (ds, key, value, hasArray = false) => {\n if (!Array.isArray(value) || !ds) return false;\n const [dsId, ...keys] = value;\n if (dsId !== ds.id || !`${key}`.startsWith(\"displayConds\")) return false;\n if (ds.fields?.some((field) => field.name === keys[0])) {\n const includeArray = isIncludeArrayField(keys, ds.fields);\n return hasArray ? includeArray : !includeArray;\n }\n return false;\n };\n var createDataSourceTarget = (ds, initialDeps = {}) => new Target({\n type: DepTargetType.DATA_SOURCE,\n id: ds.id,\n initialDeps,\n descriptor: {\n type: DepTargetType.DATA_SOURCE,\n ds: {\n id: ds.id,\n fields: ds.fields || []\n }\n },\n isTarget: (key, value) => isDataSourceTarget(ds, key, value)\n });\n var createDataSourceCondTarget = (ds, initialDeps = {}) => new Target({\n type: DepTargetType.DATA_SOURCE_COND,\n id: ds.id,\n initialDeps,\n descriptor: {\n type: DepTargetType.DATA_SOURCE_COND,\n ds: {\n id: ds.id,\n fields: ds.fields || []\n }\n },\n isTarget: (key, value) => isDataSourceCondTarget(ds, key, value)\n });\n var createDataSourceMethodTarget = (ds, initialDeps = {}) => new Target({\n type: DepTargetType.DATA_SOURCE_METHOD,\n id: ds.id,\n initialDeps,\n descriptor: {\n type: DepTargetType.DATA_SOURCE_METHOD,\n ds: {\n id: ds.id,\n methods: (ds.methods || []).map((method) => ({ name: method.name })),\n fields: (ds.fields || []).map((field) => ({ name: field.name }))\n }\n },\n isTarget: (_key, value) => {\n if (!Array.isArray(value)) return false;\n const [dsId, methodName] = value;\n if (!methodName || dsId !== ds.id) return false;\n if (ds.methods?.some((method) => method.name === methodName)) return true;\n if (ds.fields?.some((field) => field.name === methodName)) return false;\n return true;\n }\n });\n /**\n * 用可序列化描述重建 target,使依赖收集可以在 worker 等无法传递函数的环境中进行\n * @param descriptor 由工厂函数写入 target 的描述\n * @param initialDeps 初始依赖\n * @returns Target\n */\n var createTargetByDescriptor = (descriptor, initialDeps = {}) => {\n switch (descriptor.type) {\n case DepTargetType.CODE_BLOCK: return createCodeBlockTarget(descriptor.id, descriptor.codeBlock, initialDeps);\n case DepTargetType.DATA_SOURCE: return createDataSourceTarget(descriptor.ds, initialDeps);\n case DepTargetType.DATA_SOURCE_COND: return createDataSourceCondTarget(descriptor.ds, initialDeps);\n case DepTargetType.DATA_SOURCE_METHOD: return createDataSourceMethodTarget(descriptor.ds, initialDeps);\n default: throw new Error(`unknown target descriptor: ${JSON.stringify(descriptor)}`);\n }\n };\n var traverseTarget = (targetsList, cb, type) => {\n if (type) {\n const targets = targetsList[type];\n if (targets) for (const target of Object.values(targets)) cb(target);\n return;\n }\n for (const targets of Object.values(targetsList)) for (const target of Object.values(targets)) cb(target);\n };\n // packages/dep/dist/es/Watcher.js\n var DATA_SOURCE_TARGET_TYPES = /* @__PURE__ */ new Set([\n DepTargetType.DATA_SOURCE,\n DepTargetType.DATA_SOURCE_COND,\n DepTargetType.DATA_SOURCE_METHOD\n ]);\n var Watcher = class {\n targetsList = {};\n childrenProp = \"items\";\n idProp = \"id\";\n nameProp = \"name\";\n constructor(options) {\n if (options?.initialTargets) this.targetsList = options.initialTargets;\n if (options?.childrenProp) this.childrenProp = options.childrenProp;\n }\n getTargetsList() {\n return this.targetsList;\n }\n /**\n * 获取指定类型中的所有target\n * @param type 分类\n * @returns Target[]\n */\n getTargets(type = DepTargetType.DEFAULT) {\n return this.targetsList[type] || {};\n }\n /**\n * 添加新的目标\n * @param target Target\n */\n addTarget(target) {\n const targets = this.getTargets(target.type) || {};\n this.targetsList[target.type] = targets;\n targets[target.id] = target;\n }\n /**\n * 获取指定id的target\n * @param id target id\n * @returns Target\n */\n getTarget(id, type = DepTargetType.DEFAULT) {\n return this.getTargets(type)[id];\n }\n /**\n * 判断是否存在指定id的target\n * @param id target id\n * @returns boolean\n */\n hasTarget(id, type = DepTargetType.DEFAULT) {\n return Boolean(this.getTarget(id, type));\n }\n /**\n * 判断是否存在指定类型的target\n * @param type target type\n * @returns boolean\n */\n hasSpecifiedTypeTarget(type = DepTargetType.DEFAULT) {\n return Object.keys(this.getTargets(type)).length > 0;\n }\n /**\n * 删除指定id的target\n * @param id target id\n */\n removeTarget(id, type = DepTargetType.DEFAULT) {\n const targets = this.getTargets(type);\n if (targets[id]) {\n targets[id].destroy();\n delete targets[id];\n }\n }\n /**\n * 删除指定分类的所有target\n * @param type 分类\n * @returns void\n */\n removeTargets(type = DepTargetType.DEFAULT) {\n const targets = this.targetsList[type];\n if (!targets) return;\n for (const target of Object.values(targets)) target.destroy();\n delete this.targetsList[type];\n }\n /**\n * 删除所有target\n */\n clearTargets() {\n for (const key of Object.keys(this.targetsList)) delete this.targetsList[key];\n }\n /**\n * 收集依赖\n * @param nodes 需要收集的节点\n * @param deep 是否需要收集子节点\n * @param type 强制收集指定类型的依赖\n */\n collect(nodes, depExtendedData = {}, deep = false, type) {\n const targets = this.getCollectableTargets(type);\n if (!targets.length) return;\n for (const node of nodes) this.removeTargetsDep(targets, node);\n for (const node of nodes) this.collectItems(node, targets, depExtendedData, deep);\n }\n /**\n * 获取本次需要参与收集的 target(过滤规则与 collectByCallback 一致)\n *\n * 注:供 editor 的 dep service / worker 跨包批量收集时复用,因此为 public。\n * @param type 强制收集指定类型的依赖\n */\n getCollectableTargets(type) {\n const targets = [];\n traverseTarget(this.targetsList, (target) => {\n if (!type && !target.isCollectByDefault) return;\n targets.push(target);\n }, type);\n return targets;\n }\n collectByCallback(nodes, type, cb) {\n traverseTarget(this.targetsList, (target) => {\n if (!type && !target.isCollectByDefault) return;\n for (const node of nodes) cb({\n node,\n target\n });\n }, type);\n }\n /**\n * 清除所有目标的依赖\n * @param nodes 需要清除依赖的节点\n */\n clear(nodes, type) {\n let { targetsList } = this;\n if (type) targetsList = { [type]: this.getTargets(type) };\n const clearedItemsNodeIds = /* @__PURE__ */ new Set();\n traverseTarget(targetsList, (target) => {\n if (nodes) for (const node of nodes) {\n target.removeDep(node[this.idProp]);\n if (Array.isArray(node[this.childrenProp]) && node[this.childrenProp].length && !clearedItemsNodeIds.has(node[this.idProp])) {\n clearedItemsNodeIds.add(node[this.idProp]);\n this.clear(node[this.childrenProp]);\n }\n }\n else target.removeDep();\n });\n }\n /**\n * 清除指定类型的依赖\n * @param type 类型\n * @param nodes 需要清除依赖的节点\n */\n clearByType(type, nodes) {\n this.clear(nodes, type);\n }\n /**\n * 收集单个 target 的依赖,等价于 collectItems(node, [target], ...)\n */\n collectItem(node, target, depExtendedData = {}, deep = false) {\n this.collectItems(node, [target], depExtendedData, deep);\n }\n removeTargetDep(target, node, key) {\n target.removeDep(node[this.idProp], key);\n if (typeof key === \"undefined\" && Array.isArray(node[this.childrenProp]) && node[this.childrenProp].length) for (const item of node[this.childrenProp]) this.removeTargetDep(target, item, key);\n }\n /**\n * 与 removeTargetDep 等价,但一次子树递归同时处理多个 target,\n * 把删除阶段的结构遍历从 ×targets 降到 ×1。\n *\n * 注:供 editor 的 dep service 跨包批量删除时复用,因此为 public。\n */\n removeTargetsDep(targets, node, key) {\n const id = node[this.idProp];\n for (const target of targets) target.removeDep(id, key);\n if (typeof key === \"undefined\" && Array.isArray(node[this.childrenProp]) && node[this.childrenProp].length) for (const item of node[this.childrenProp]) this.removeTargetsDep(targets, item, key);\n }\n /**\n * 与 collectItem 等价,但一次遍历同时处理多个 target(不含删除阶段)。\n *\n * 关键优化:原实现对每个 target 都完整遍历一遍节点树(O(targets × 树规模)),大页面 + 大量数据源时,\n * 结构遍历(Object.entries / 递归 / fullKey 字符串拼接)会被重复 targets 次。这里改为「整棵树只遍历一次,\n * 在每个属性上检查所有 target」,把结构遍历开销从 ×targets 降到 ×1,isTarget 调用次数不变,收集结果完全一致。\n *\n * 注:供 editor 的 dep service / worker 跨包批量收集时复用,因此为 public。\n */\n collectItems(node, targets, depExtendedData = {}, deep = false) {\n const activeTargets = this.filterTargetsByNode(node, targets);\n if (!activeTargets.length) return;\n this.collectTargetForTargets(node, node, \"\", activeTargets, depExtendedData, deep);\n }\n filterTargetsByNode(node, targets) {\n const disableDataSource = Boolean(node[NODE_DISABLE_DATA_SOURCE_KEY]);\n const disableCodeBlock = Boolean(node[NODE_DISABLE_CODE_BLOCK_KEY]);\n if (!disableDataSource && !disableCodeBlock) return targets;\n return targets.filter((target) => {\n if (disableDataSource && DATA_SOURCE_TARGET_TYPES.has(target.type)) return false;\n if (disableCodeBlock && target.type === DepTargetType.CODE_BLOCK) return false;\n return true;\n });\n }\n collectTargetForTargets(node, config, prop, targets, depExtendedData, deep) {\n const id = node[this.idProp];\n const name = `${node[this.nameProp] || node[this.idProp]}`;\n for (const [key, value] of Object.entries(config)) {\n if (typeof value === \"undefined\" || value === \"\") continue;\n const keyIsItems = key === this.childrenProp;\n const fullKey = prop ? `${prop}.${key}` : key;\n let notMatched = null;\n for (let i = 0, l = targets.length; i < l; i++) {\n const target = targets[i];\n if (target.isTarget(fullKey, value, config)) target.updateDep({\n id,\n name,\n data: depExtendedData,\n key: fullKey\n });\n else (notMatched || (notMatched = [])).push(target);\n }\n if (notMatched) {\n if (!keyIsItems && Array.isArray(value)) for (let i = 0, l = value.length; i < l; i++) {\n const item = value[i];\n if (isObject(item)) this.collectTargetForTargets(node, item, `${fullKey}[${i}]`, notMatched, depExtendedData, deep);\n }\n else if (isObject(value)) this.collectTargetForTargets(node, value, fullKey, notMatched, depExtendedData, deep);\n }\n if (keyIsItems && deep && Array.isArray(value)) for (const child of value) this.collectItems(child, targets, depExtendedData, deep);\n }\n }\n };\n // packages/editor/src/utils/logger.ts\n const error = (...args) => {\n if (process.env.NODE_ENV === \"development\") console.error(\"magic editor: \", ...args);\n };\n // packages/editor/src/utils/dep/worker.ts\n /**\n * 收集本次会覆盖到的节点 id\n * 必须与 deep 一致:deep=false 时不能带上子孙 id,否则写回阶段 removeDep 会清掉未重收的子节点依赖\n */\n const getNodeIds = (nodes, deep, ids = []) => {\n for (const node of nodes) {\n ids.push(node.id);\n if (deep && Array.isArray(node.items) && node.items.length) getNodeIds(node.items, deep, ids);\n }\n return ids;\n };\n const collectDsl = ({ id, dsl }) => {\n try {\n const mApp = eval(`(${dsl})`);\n if (!mApp) {\n postMessage({\n id,\n deps: {}\n });\n return;\n }\n const watcher = new Watcher({ initialTargets: {} });\n if (mApp.codeBlocks) for (const [id, code] of Object.entries(mApp.codeBlocks)) watcher.addTarget(createCodeBlockTarget(id, code));\n if (mApp.dataSources) for (const ds of mApp.dataSources) {\n watcher.addTarget(createDataSourceTarget(ds, {}));\n watcher.addTarget(createDataSourceMethodTarget(ds, {}));\n watcher.addTarget(createDataSourceCondTarget(ds, {}));\n }\n const targets = watcher.getCollectableTargets();\n for (const page of mApp.items) watcher.collectItems(page, targets, { pageId: page.id }, true);\n const deps = {\n [DepTargetType.DATA_SOURCE]: {},\n [DepTargetType.DATA_SOURCE_METHOD]: {},\n [DepTargetType.DATA_SOURCE_COND]: {},\n [DepTargetType.CODE_BLOCK]: {}\n };\n traverseTarget(watcher.getTargetsList(), (target) => {\n deps[target.type][target.id] = target.deps;\n });\n const response = {\n id,\n deps\n };\n postMessage(response);\n } catch (e) {\n error(e);\n postMessage({\n id,\n deps: {},\n failed: true\n });\n }\n };\n const collectNodes = ({ id, payload }) => {\n try {\n const { nodes, targets: descriptors, depExtendedData, deep } = eval(`(${payload})`);\n const watcher = new Watcher({ initialTargets: {} });\n const targets = descriptors.map((descriptor) => createTargetByDescriptor(descriptor));\n for (const node of nodes) watcher.collectItems(node, targets, depExtendedData, deep);\n const deps = {};\n for (const target of targets) {\n if (!deps[target.type]) deps[target.type] = {};\n deps[target.type][target.id] = target.deps;\n }\n const response = {\n id,\n deps,\n nodeIds: getNodeIds(nodes, deep)\n };\n postMessage(response);\n } catch (e) {\n error(e);\n postMessage({\n id,\n deps: {},\n nodeIds: [],\n failed: true\n });\n }\n };\n /**\n * 依赖收集 worker\n *\n * 依赖收集需要深度遍历整棵节点树并对每个属性做 target 匹配,节点/数据源多时会长时间占用主线程导致页面卡死,\n * 因此把遍历匹配放到 worker 中执行。\n * 全量与增量收集共用一个常驻 worker:收集逻辑只打进一份 inline worker 产物,\n * 也不会因为频繁收集而反复创建线程,每个请求用 id 与调用方对应。\n */\n onmessage = (e) => {\n if (\"dsl\" in e.data) {\n collectDsl(e.data);\n return;\n }\n collectNodes(e.data);\n };\n})();\n";
|
|
10090
9900
|
var blob = typeof self !== "undefined" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", jsContent], { type: "text/javascript;charset=utf-8" });
|
|
10091
9901
|
function WorkerWrapper(options) {
|
|
10092
9902
|
let objURL;
|
|
@@ -10102,8 +9912,7 @@
|
|
|
10102
9912
|
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(jsContent), { name: options?.name });
|
|
10103
9913
|
}
|
|
10104
9914
|
}
|
|
10105
|
-
|
|
10106
|
-
//#region packages/editor/src/utils/dep/collect-worker-client.ts
|
|
9915
|
+
// packages/editor/src/utils/dep/collect-worker-client.ts
|
|
10107
9916
|
/**
|
|
10108
9917
|
* 依赖收集 worker 的主线程客户端
|
|
10109
9918
|
*
|
|
@@ -10252,8 +10061,7 @@
|
|
|
10252
10061
|
for (const task of tasks) if (!task.discarded) task.resolve(null);
|
|
10253
10062
|
}
|
|
10254
10063
|
};
|
|
10255
|
-
|
|
10256
|
-
//#region packages/editor/src/utils/indexed-db.ts
|
|
10064
|
+
// packages/editor/src/utils/indexed-db.ts
|
|
10257
10065
|
/**
|
|
10258
10066
|
* 一组极简的、基于原生 IndexedDB 的 Promise KV 工具,避免引入额外依赖。
|
|
10259
10067
|
* 仅用于浏览器环境;在不支持 IndexedDB 的环境(如 SSR / 部分测试环境)下会 reject。
|
|
@@ -10322,15 +10130,13 @@
|
|
|
10322
10130
|
db.close();
|
|
10323
10131
|
}
|
|
10324
10132
|
};
|
|
10325
|
-
|
|
10326
|
-
//#region packages/editor/src/utils/props.ts
|
|
10133
|
+
// packages/editor/src/utils/props.ts
|
|
10327
10134
|
/** 浏览器端默认用 `navigator.clipboard` 复制,并用 `tMagicMessage` 提示 */
|
|
10328
10135
|
var copyTextToClipboard = (text) => navigator.clipboard.writeText(text);
|
|
10329
10136
|
var notifyByDesign = (type, message) => {
|
|
10330
10137
|
(_tmagic_design.tMagicMessage[type] ?? _tmagic_design.tMagicMessage)(message);
|
|
10331
10138
|
};
|
|
10332
|
-
|
|
10333
|
-
//#region packages/editor/src/services/sdk-instance.ts
|
|
10139
|
+
// packages/editor/src/services/sdk-instance.ts
|
|
10334
10140
|
/**
|
|
10335
10141
|
* 浏览器端默认的 SDK 实例:`editorService` 等单例都从这里取。
|
|
10336
10142
|
*
|
|
@@ -10359,8 +10165,7 @@
|
|
|
10359
10165
|
var eventsService = sdk.events;
|
|
10360
10166
|
sdk.storage;
|
|
10361
10167
|
sdk.componentList;
|
|
10362
|
-
|
|
10363
|
-
//#region packages/editor/src/utils/type-match-rules.ts
|
|
10168
|
+
// packages/editor/src/utils/type-match-rules.ts
|
|
10364
10169
|
/** 复用 form 的可选项建议文案;额外过滤 null / 空串,避免业务侧无效枚举污染提示。 */
|
|
10365
10170
|
var listSuggestion = (values) => (0, _tmagic_form_headless.optionSuggestion)(values.filter((item) => item !== null && item !== ""));
|
|
10366
10171
|
/**
|
|
@@ -10712,8 +10517,7 @@
|
|
|
10712
10517
|
"event-select": validateEventSelect,
|
|
10713
10518
|
"display-conds": validateDisplayConds
|
|
10714
10519
|
};
|
|
10715
|
-
|
|
10716
|
-
//#region packages/editor/src/fields/configs/stickyAddButton.ts
|
|
10520
|
+
// packages/editor/src/fields/configs/stickyAddButton.ts
|
|
10717
10521
|
/**
|
|
10718
10522
|
* 属性面板列表字段共用的吸底全宽「添加」按钮与吸顶标题,展开到 group-list 配置上。
|
|
10719
10523
|
*
|
|
@@ -10732,8 +10536,7 @@
|
|
|
10732
10536
|
}
|
|
10733
10537
|
}
|
|
10734
10538
|
});
|
|
10735
|
-
|
|
10736
|
-
//#region packages/editor/src/fields/configs/codeSelect.ts
|
|
10539
|
+
// packages/editor/src/fields/configs/codeSelect.ts
|
|
10737
10540
|
/**
|
|
10738
10541
|
* `fields/CodeSelect.vue` 内部渲染的钩子列表配置。
|
|
10739
10542
|
*
|
|
@@ -10824,8 +10627,7 @@
|
|
|
10824
10627
|
hookData: []
|
|
10825
10628
|
};
|
|
10826
10629
|
};
|
|
10827
|
-
|
|
10828
|
-
//#region packages/editor/src/fields/configs/displayConds.ts
|
|
10630
|
+
// packages/editor/src/fields/configs/displayConds.ts
|
|
10829
10631
|
/**
|
|
10830
10632
|
* `fields/DisplayConds.vue` 内部渲染的条件列表配置。
|
|
10831
10633
|
*
|
|
@@ -10974,8 +10776,7 @@
|
|
|
10974
10776
|
}]
|
|
10975
10777
|
};
|
|
10976
10778
|
};
|
|
10977
|
-
|
|
10978
|
-
//#region packages/editor/src/utils/event.ts
|
|
10779
|
+
// packages/editor/src/utils/event.ts
|
|
10979
10780
|
/** 未显式传入 services 时使用浏览器端默认实例 */
|
|
10980
10781
|
var getDefaultServices = () => ({
|
|
10981
10782
|
editorService,
|
|
@@ -11108,8 +10909,7 @@
|
|
|
11108
10909
|
if (typeof config.compActionConfig?.options !== "undefined") return null;
|
|
11109
10910
|
return collectEventNameOptionValues(getCompActionOptions(model.to, services), isEventNameCheckStrictly(config.src));
|
|
11110
10911
|
};
|
|
11111
|
-
|
|
11112
|
-
//#region packages/editor/src/fields/configs/eventSelect.ts
|
|
10912
|
+
// packages/editor/src/fields/configs/eventSelect.ts
|
|
11113
10913
|
/**
|
|
11114
10914
|
* `fields/EventSelect.vue` 内部渲染的各段配置。
|
|
11115
10915
|
*
|
|
@@ -11256,7 +11056,7 @@
|
|
|
11256
11056
|
expandAll: true,
|
|
11257
11057
|
enableToggleMode: false,
|
|
11258
11058
|
titlePrefix: "动作",
|
|
11259
|
-
|
|
11059
|
+
labelWidth: "90px",
|
|
11260
11060
|
flat: true,
|
|
11261
11061
|
...stickyAddButton("新增动作"),
|
|
11262
11062
|
items: [
|
|
@@ -11287,13 +11087,11 @@
|
|
|
11287
11087
|
if (!Array.isArray(events) || events.length === 0) return false;
|
|
11288
11088
|
return !has(events[0], "actions");
|
|
11289
11089
|
};
|
|
11290
|
-
|
|
11291
|
-
//#region packages/editor/src/fields/StyleSetter/components/BackgroundPosition.vue?vue&type=script&setup=true&lang.ts
|
|
11090
|
+
// packages/editor/src/fields/StyleSetter/components/BackgroundPosition.vue?vue&type=script&setup=true&lang.ts
|
|
11292
11091
|
var _hoisted_1$26 = { class: "background-position-container" };
|
|
11293
11092
|
var _hoisted_2 = { class: "presets-value-list" };
|
|
11294
11093
|
var _hoisted_3 = { class: "custom-value" };
|
|
11295
|
-
|
|
11296
|
-
//#region packages/editor/src/fields/StyleSetter/components/BackgroundPosition.vue
|
|
11094
|
+
// packages/editor/src/fields/StyleSetter/components/BackgroundPosition.vue
|
|
11297
11095
|
var BackgroundPosition_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
11298
11096
|
__name: "BackgroundPosition",
|
|
11299
11097
|
props: {
|
|
@@ -11385,15 +11183,13 @@
|
|
|
11385
11183
|
};
|
|
11386
11184
|
}
|
|
11387
11185
|
});
|
|
11388
|
-
|
|
11389
|
-
//#region \0plugin-vue:export-helper
|
|
11186
|
+
// \0plugin-vue:export-helper
|
|
11390
11187
|
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
11391
11188
|
const target = sfc.__vccOpts || sfc;
|
|
11392
11189
|
for (const [key, val] of props) target[key] = val;
|
|
11393
11190
|
return target;
|
|
11394
11191
|
};
|
|
11395
|
-
|
|
11396
|
-
//#region packages/editor/src/fields/StyleSetter/icons/align-items/Center.vue
|
|
11192
|
+
// packages/editor/src/fields/StyleSetter/icons/align-items/Center.vue
|
|
11397
11193
|
var _sfc_main$25 = {};
|
|
11398
11194
|
var _hoisted_1$25 = {
|
|
11399
11195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11420,8 +11216,7 @@
|
|
|
11420
11216
|
}, null, -1)])]);
|
|
11421
11217
|
}
|
|
11422
11218
|
var Center_default$2 = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$25, [["render", _sfc_render$25]]);
|
|
11423
|
-
|
|
11424
|
-
//#region packages/editor/src/fields/StyleSetter/icons/align-items/FlexEnd.vue
|
|
11219
|
+
// packages/editor/src/fields/StyleSetter/icons/align-items/FlexEnd.vue
|
|
11425
11220
|
var _sfc_main$24 = {};
|
|
11426
11221
|
var _hoisted_1$24 = {
|
|
11427
11222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11448,8 +11243,7 @@
|
|
|
11448
11243
|
}, null, -1)])]);
|
|
11449
11244
|
}
|
|
11450
11245
|
var FlexEnd_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$24, [["render", _sfc_render$24]]);
|
|
11451
|
-
|
|
11452
|
-
//#region packages/editor/src/fields/StyleSetter/icons/align-items/FlexStart.vue
|
|
11246
|
+
// packages/editor/src/fields/StyleSetter/icons/align-items/FlexStart.vue
|
|
11453
11247
|
var _sfc_main$23 = {};
|
|
11454
11248
|
var _hoisted_1$23 = {
|
|
11455
11249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11476,8 +11270,7 @@
|
|
|
11476
11270
|
}, null, -1)])]);
|
|
11477
11271
|
}
|
|
11478
11272
|
var FlexStart_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$23, [["render", _sfc_render$23]]);
|
|
11479
|
-
|
|
11480
|
-
//#region packages/editor/src/fields/StyleSetter/icons/align-items/SpaceAround.vue
|
|
11273
|
+
// packages/editor/src/fields/StyleSetter/icons/align-items/SpaceAround.vue
|
|
11481
11274
|
var _sfc_main$22 = {};
|
|
11482
11275
|
var _hoisted_1$22 = {
|
|
11483
11276
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11523,8 +11316,7 @@
|
|
|
11523
11316
|
])]);
|
|
11524
11317
|
}
|
|
11525
11318
|
var SpaceAround_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$22, [["render", _sfc_render$22]]);
|
|
11526
|
-
|
|
11527
|
-
//#region packages/editor/src/fields/StyleSetter/icons/align-items/SpaceBetween.vue
|
|
11319
|
+
// packages/editor/src/fields/StyleSetter/icons/align-items/SpaceBetween.vue
|
|
11528
11320
|
var _sfc_main$21 = {};
|
|
11529
11321
|
var _hoisted_1$21 = {
|
|
11530
11322
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11570,8 +11362,7 @@
|
|
|
11570
11362
|
])]);
|
|
11571
11363
|
}
|
|
11572
11364
|
var SpaceBetween_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$21, [["render", _sfc_render$21]]);
|
|
11573
|
-
|
|
11574
|
-
//#region packages/editor/src/fields/StyleSetter/icons/background-repeat/Repeat.vue
|
|
11365
|
+
// packages/editor/src/fields/StyleSetter/icons/background-repeat/Repeat.vue
|
|
11575
11366
|
var _sfc_main$20 = {};
|
|
11576
11367
|
var _hoisted_1$20 = {
|
|
11577
11368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11584,8 +11375,7 @@
|
|
|
11584
11375
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$20, [..._cache[0] || (_cache[0] = [(0, vue.createStaticVNode)("<rect x=\"13\" y=\"3\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 13 3)\" fill-opacity=\"0.3\"></rect><rect x=\"13\" y=\"7\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 13 7)\" fill-opacity=\"0.3\"></rect><rect x=\"13\" y=\"11\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 13 11)\" fill-opacity=\"0.3\"></rect><rect x=\"9\" y=\"3\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 9 3)\"></rect><rect x=\"9\" y=\"7\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 9 7)\"></rect><rect x=\"9\" y=\"11\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 9 11)\" fill-opacity=\"0.3\"></rect><rect x=\"5\" y=\"3\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 5 3)\"></rect><rect x=\"5\" y=\"7\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 5 7)\"></rect><rect x=\"5\" y=\"11\" width=\"2\" height=\"2\" rx=\"0.5\" transform=\"rotate(90 5 11)\" fill-opacity=\"0.3\"></rect>", 9)])]);
|
|
11585
11376
|
}
|
|
11586
11377
|
var Repeat_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$20, [["render", _sfc_render$20]]);
|
|
11587
|
-
|
|
11588
|
-
//#region packages/editor/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue
|
|
11378
|
+
// packages/editor/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue
|
|
11589
11379
|
var _sfc_main$19 = {};
|
|
11590
11380
|
var _hoisted_1$19 = {
|
|
11591
11381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11621,8 +11411,7 @@
|
|
|
11621
11411
|
])]);
|
|
11622
11412
|
}
|
|
11623
11413
|
var RepeatX_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$19, [["render", _sfc_render$19]]);
|
|
11624
|
-
|
|
11625
|
-
//#region packages/editor/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue
|
|
11414
|
+
// packages/editor/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue
|
|
11626
11415
|
var _sfc_main$18 = {};
|
|
11627
11416
|
var _hoisted_1$18 = {
|
|
11628
11417
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11661,8 +11450,7 @@
|
|
|
11661
11450
|
])]);
|
|
11662
11451
|
}
|
|
11663
11452
|
var RepeatY_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$18, [["render", _sfc_render$18]]);
|
|
11664
|
-
|
|
11665
|
-
//#region packages/editor/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue
|
|
11453
|
+
// packages/editor/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue
|
|
11666
11454
|
var _sfc_main$17 = {};
|
|
11667
11455
|
var _hoisted_1$17 = {
|
|
11668
11456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11675,8 +11463,7 @@
|
|
|
11675
11463
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$17, [..._cache[0] || (_cache[0] = [(0, vue.createStaticVNode)("<path d=\"M0 0.625C0 0.279822 0.248731 0 0.555556 0H9.44444C9.75127 0 10 0.279822 10 0.625C10 0.970178 9.75127 1.25 9.44444 1.25H0.555556C0.248731 1.25 0 0.970178 0 0.625Z\" fill-opacity=\"0.3\"></path><path d=\"M0 9.375C0 9.02982 0.248731 8.75 0.555556 8.75H9.44444C9.75127 8.75 10 9.02982 10 9.375C10 9.72018 9.75127 10 9.44444 10H0.555556C0.248731 10 0 9.72018 0 9.375Z\" fill-opacity=\"0.3\"></path><path d=\"M0.555556 4.375C0.248731 4.375 0 4.65482 0 5C0 5.34518 0.248731 5.625 0.555556 5.625H2.87307L3.42868 4.99994L2.87318 4.375H0.555556Z\" fill-opacity=\"0.3\"></path><path d=\"M9.44444 5.625H7.12699L6.57138 4.99994L7.12688 4.375H9.44444C9.75127 4.375 10 4.65482 10 5C10 5.34518 9.75127 5.625 9.44444 5.625Z\" fill-opacity=\"0.3\"></path><path transform=\"translate(0 2.6072)\" d=\"M3.30542 0.183058C3.52237 -0.0610194 3.87413 -0.0610194 4.09109 0.183058C4.30805 0.427136 4.30805 0.822864 4.09109 1.06694L2.91256 2.39279L4.0911 3.71865C4.30806 3.96273 4.30806 4.35846 4.0911 4.60253C3.87414 4.84661 3.52239 4.84661 3.30543 4.60253L2.12688 3.27667L0.948393 4.60248C0.731435 4.84655 0.379676 4.84655 0.162719 4.60248C-0.0542395 4.3584 -0.0542395 3.96267 0.162719 3.71859L1.34121 2.39279L0.162731 1.067C-0.0542269 0.822922 -0.0542268 0.427194 0.162731 0.183116C0.379689 -0.0609612 0.731447 -0.0609612 0.948405 0.183116L2.12688 1.50891L3.30542 0.183058Z\"></path>", 5)])]);
|
|
11676
11464
|
}
|
|
11677
11465
|
var NoRepeat_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$17, [["render", _sfc_render$17]]);
|
|
11678
|
-
|
|
11679
|
-
//#region packages/editor/src/fields/StyleSetter/icons/display/Block.vue
|
|
11466
|
+
// packages/editor/src/fields/StyleSetter/icons/display/Block.vue
|
|
11680
11467
|
var _sfc_main$16 = {};
|
|
11681
11468
|
var _hoisted_1$16 = {
|
|
11682
11469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11686,8 +11473,7 @@
|
|
|
11686
11473
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$16, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-96 64a32 32 0 0 1 32 32v448a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h704z" }, null, -1)])]);
|
|
11687
11474
|
}
|
|
11688
11475
|
var Block_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$16, [["render", _sfc_render$16]]);
|
|
11689
|
-
|
|
11690
|
-
//#region packages/editor/src/fields/StyleSetter/icons/display/Flex.vue
|
|
11476
|
+
// packages/editor/src/fields/StyleSetter/icons/display/Flex.vue
|
|
11691
11477
|
var _sfc_main$15 = {};
|
|
11692
11478
|
var _hoisted_1$15 = {
|
|
11693
11479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11697,8 +11483,7 @@
|
|
|
11697
11483
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$15, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM352 256v512H160V256h192z m256 0v512h-192V256h192z m256 0v512h-192V256h192z" }, null, -1)])]);
|
|
11698
11484
|
}
|
|
11699
11485
|
var Flex_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$15, [["render", _sfc_render$15]]);
|
|
11700
|
-
|
|
11701
|
-
//#region packages/editor/src/fields/StyleSetter/icons/display/Inline.vue
|
|
11486
|
+
// packages/editor/src/fields/StyleSetter/icons/display/Inline.vue
|
|
11702
11487
|
var _sfc_main$14 = {};
|
|
11703
11488
|
var _hoisted_1$14 = {
|
|
11704
11489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11708,8 +11493,7 @@
|
|
|
11708
11493
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$14, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M787.616 651.36a142.72 142.72 0 0 0 52.864 31.904 205.504 205.504 0 0 0 67.264 10.848 245.76 245.76 0 0 0 38.784-2.4c9.504-1.6 19.36-4 30.208-7.04 8.16-2.24 15.968-5.12 23.36-8.32l23.392-10.816V587.52h-8.736c-3.968 3.424-8.96 7.648-15.104 12.544a190.272 190.272 0 0 1-19.936 13.504 120.32 120.32 0 0 1-27.616 12.544 102.528 102.528 0 0 1-62.72-0.576 80 80 0 0 1-29.824-17.088 89.28 89.28 0 0 1-21.664-32.512c-5.696-13.664-8.64-30.784-8.64-51.296 0-19.744 2.72-36.384 7.968-50.08 5.248-13.664 12.384-24.896 20.992-33.056 9.12-8.832 18.816-14.816 29.632-18.816a101.824 101.824 0 0 1 63.68-0.736c9.408 3.136 18.08 7.04 26.112 11.68 13.024 7.808 25.28 16.768 36.672 26.784H1024v-78.72c-6.08-2.88-13.12-6.08-21.12-9.6a205.984 205.984 0 0 0-57.152-15.36 270.016 270.016 0 0 0-37.056-2.304c-24.864 0-47.744 4-68.704 11.84-20.992 7.776-38.432 18.784-52.64 33.6a144.256 144.256 0 0 0-33.632 54.176 207.68 207.68 0 0 0-12.48 70.176c0 27.84 3.968 52.352 12.16 73.568a146.08 146.08 0 0 0 34.176 53.184l0.064 0.416z m-186.112 34.656a122.912 122.912 0 0 0 42.784-21.504c11.2-8.32 20.224-19.296 26.24-31.936 6.56-13.664 9.888-28.704 9.664-43.904 0-22.784-6.272-41.024-18.912-54.72-12.544-13.92-29.664-23.04-51.104-27.36v-2.304c14.4-6.24 26.688-16.448 35.52-29.408 8.384-12.544 12.544-27.008 12.544-43.52 0-14.24-2.944-26.784-9.12-37.6a65.696 65.696 0 0 0-27.936-26.24 117.44 117.44 0 0 0-36.48-12.096A437.312 437.312 0 0 0 526.656 352h-127.552v340.384h143.392c23.84 0 43.52-2.112 59.008-6.4z m-118.112-271.584h7.968c16.544 0 29.472 0.128 38.656 0.352 9.248 0.576 16.864 1.728 23.04 4a26.24 26.24 0 0 1 14.4 13.12c2.656 5.28 4.064 11.072 4.128 16.96 0.16 6.656-1.056 13.248-3.52 19.392a28.064 28.064 0 0 1-15.04 13.696c-7.04 2.912-14.56 4.48-22.208 4.576-9.472 0.32-20.864 0.544-34.24 0.544h-13.184v-72.64z m6.144 215.52h-6.144v-84.8h18.464c12.64 0 24.736 0 36.384 0.256 9.216-0.16 18.432 0.896 27.36 3.2 9.696 2.848 16.544 7.232 20.512 13.12 4 5.92 6.08 14.24 6.08 25.088 0 8.192-1.728 15.488-4.992 21.824-3.232 6.336-9.696 11.392-18.24 15.392-8.544 4-18.24 5.696-28.48 6.272-10.304 0.224-27.392 0.224-51.328 0.224l0.384-0.576z m-378.56-6.016h124.672l23.36 68.416H348.8L224.32 353.728H124.416L0 692.384h87.52l23.488-68.416-0.064-0.032z m62.336-183.552l41.472 121.44h-82.88l41.408-121.44z" }, null, -1)])]);
|
|
11709
11494
|
}
|
|
11710
11495
|
var Inline_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$14, [["render", _sfc_render$14]]);
|
|
11711
|
-
|
|
11712
|
-
//#region packages/editor/src/fields/StyleSetter/icons/display/InlineBlock.vue
|
|
11496
|
+
// packages/editor/src/fields/StyleSetter/icons/display/InlineBlock.vue
|
|
11713
11497
|
var _sfc_main$13 = {};
|
|
11714
11498
|
var _hoisted_1$13 = {
|
|
11715
11499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11719,8 +11503,7 @@
|
|
|
11719
11503
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$13, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-131.936 158.496c65.984 1.824 109.024 32.512 129.184 92.064l-65.952 15.136-1.856-5.664c-9.984-27.52-30.432-42.112-61.376-43.84-46.72 2.784-71.456 35.296-74.208 97.6 1.856 63.2 26.56 96.64 74.24 100.32 37.536-0.928 59.52-23.36 65.92-67.328L960 559.36l-1.792 7.232c-16.96 63.872-60.352 95.84-130.144 95.84-93.44-4.608-142.464-56.8-147.04-156.672 4.576-98.048 53.6-149.792 147.04-155.296z m-568.928 4.128l114.08 302.336H297.6l-22.016-65.984H160.192L138.24 656.96H64l112.672-302.336h82.464z m278.976 0l7.68 0.32c62.816 3.36 96 27.104 99.52 71.136 0 35.744-19.712 59.552-59.104 71.456 42.144 9.184 65.952 32.544 71.456 70.08 0 59.552-37.568 89.344-112.672 89.344h-148.416v-302.336h141.536z m-4.128 173.152H465.28v81.088h67.328c33.92 0 51.296-13.76 52.224-41.248-2.752-25.632-19.68-38.912-50.848-39.84zM217.92 408.224h-1.376l-0.96 7.36c-1.184 7.232-3.168 13.92-5.92 20.128l-34.336 103.04h87.936l-38.464-104.416-2.624-9.024c-1.6-5.888-3.04-11.584-4.256-17.088z m309.184-2.752H465.28v71.456h61.824c29.344-0.928 44.448-13.76 45.376-38.464-0.96-22.016-16.032-32.992-45.376-32.992z" }, null, -1)])]);
|
|
11720
11504
|
}
|
|
11721
11505
|
var InlineBlock_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$13, [["render", _sfc_render$13]]);
|
|
11722
|
-
|
|
11723
|
-
//#region packages/editor/src/fields/StyleSetter/icons/display/None.vue
|
|
11506
|
+
// packages/editor/src/fields/StyleSetter/icons/display/None.vue
|
|
11724
11507
|
var _sfc_main$12 = {};
|
|
11725
11508
|
var _hoisted_1$12 = {
|
|
11726
11509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11730,8 +11513,7 @@
|
|
|
11730
11513
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$12, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M931.37 477.14c-43.94-69.49-93.39-125.03-147.99-166.35L663.31 441.46c8.79 21.36 13.63 44.91 13.63 69.62 0 96.27-73.84 174.32-164.95 174.32-21.63 0-42.28-4.39-61.32-12.47l-94.09 102.52a455.097 455.097 0 0 0 155.41 26.2c172.62 0 312.43-85.54 419.59-256.63 12.83-20.43 12.72-47.45-0.21-67.88zM795.52 127.99L682.24 252.82C627.73 231 570.1 220.04 512.11 220.5c-171.15 0-310.99 85.66-419.48 256.75-12.93 20.43-13.04 47.33-0.2 67.78 46.95 75.15 100.3 133.68 160.01 175.82L131.9 853.65l38.9 42.36 663.6-725.76-38.88-42.26zM519.68 438.37c-3.72-0.59-7.46-0.81-11.27-0.81-45.63 0-82.43 39.03-82.43 87.16 0 4.97 0.42 9.81 1.14 14.54l-57.15 60.14-5.92 8.33c-13.15-24.94-20.5-53.68-20.5-84.28 0-96.3 73.84-174.45 164.95-174.45 27.2 0 52.76 6.93 75.4 19.29l-64.22 70.08z m52.05 135.53c21.74-23.26 27.17-55.48 16.31-81.39l-96.42 103.16c26.59 9.08 58.38 1.48 80.11-21.77z" }, null, -1)])]);
|
|
11731
11514
|
}
|
|
11732
11515
|
var None_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$12, [["render", _sfc_render$12]]);
|
|
11733
|
-
|
|
11734
|
-
//#region packages/editor/src/fields/StyleSetter/icons/flex-direction/Column.vue
|
|
11516
|
+
// packages/editor/src/fields/StyleSetter/icons/flex-direction/Column.vue
|
|
11735
11517
|
var _sfc_main$11 = {};
|
|
11736
11518
|
var _hoisted_1$11 = {
|
|
11737
11519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11749,8 +11531,7 @@
|
|
|
11749
11531
|
}, null, -1)])]);
|
|
11750
11532
|
}
|
|
11751
11533
|
var Column_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$11, [["render", _sfc_render$11]]);
|
|
11752
|
-
|
|
11753
|
-
//#region packages/editor/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue
|
|
11534
|
+
// packages/editor/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue
|
|
11754
11535
|
var _sfc_main$10 = {};
|
|
11755
11536
|
var _hoisted_1$10 = {
|
|
11756
11537
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11768,8 +11549,7 @@
|
|
|
11768
11549
|
}, null, -1)])]);
|
|
11769
11550
|
}
|
|
11770
11551
|
var ColumnReverse_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$10, [["render", _sfc_render$10]]);
|
|
11771
|
-
|
|
11772
|
-
//#region packages/editor/src/fields/StyleSetter/icons/flex-direction/Row.vue
|
|
11552
|
+
// packages/editor/src/fields/StyleSetter/icons/flex-direction/Row.vue
|
|
11773
11553
|
var _sfc_main$9 = {};
|
|
11774
11554
|
var _hoisted_1$9 = {
|
|
11775
11555
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11787,8 +11567,7 @@
|
|
|
11787
11567
|
}, null, -1)])]);
|
|
11788
11568
|
}
|
|
11789
11569
|
var Row_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$9, [["render", _sfc_render$9]]);
|
|
11790
|
-
|
|
11791
|
-
//#region packages/editor/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue
|
|
11570
|
+
// packages/editor/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue
|
|
11792
11571
|
var _sfc_main$8 = {};
|
|
11793
11572
|
var _hoisted_1$8 = {
|
|
11794
11573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11806,8 +11585,7 @@
|
|
|
11806
11585
|
}, null, -1)])]);
|
|
11807
11586
|
}
|
|
11808
11587
|
var RowReverse_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$8, [["render", _sfc_render$8]]);
|
|
11809
|
-
|
|
11810
|
-
//#region packages/editor/src/fields/StyleSetter/icons/justify-content/Center.vue
|
|
11588
|
+
// packages/editor/src/fields/StyleSetter/icons/justify-content/Center.vue
|
|
11811
11589
|
var _sfc_main$7 = {};
|
|
11812
11590
|
var _hoisted_1$7 = {
|
|
11813
11591
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11831,8 +11609,7 @@
|
|
|
11831
11609
|
}, null, -1)])]);
|
|
11832
11610
|
}
|
|
11833
11611
|
var Center_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$7, [["render", _sfc_render$7]]);
|
|
11834
|
-
|
|
11835
|
-
//#region packages/editor/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue
|
|
11612
|
+
// packages/editor/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue
|
|
11836
11613
|
var _sfc_main$6 = {};
|
|
11837
11614
|
var _hoisted_1$6 = {
|
|
11838
11615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11858,8 +11635,7 @@
|
|
|
11858
11635
|
}, null, -1)])]);
|
|
11859
11636
|
}
|
|
11860
11637
|
var FlexEnd_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
11861
|
-
|
|
11862
|
-
//#region packages/editor/src/fields/StyleSetter/icons/justify-content/FlexStart.vue
|
|
11638
|
+
// packages/editor/src/fields/StyleSetter/icons/justify-content/FlexStart.vue
|
|
11863
11639
|
var _sfc_main$5 = {};
|
|
11864
11640
|
var _hoisted_1$5 = {
|
|
11865
11641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11885,8 +11661,7 @@
|
|
|
11885
11661
|
}, null, -1)])]);
|
|
11886
11662
|
}
|
|
11887
11663
|
var FlexStart_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
11888
|
-
|
|
11889
|
-
//#region packages/editor/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue
|
|
11664
|
+
// packages/editor/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue
|
|
11890
11665
|
var _sfc_main$4 = {};
|
|
11891
11666
|
var _hoisted_1$4 = {
|
|
11892
11667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11930,8 +11705,7 @@
|
|
|
11930
11705
|
])]);
|
|
11931
11706
|
}
|
|
11932
11707
|
var SpaceAround_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
11933
|
-
|
|
11934
|
-
//#region packages/editor/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue
|
|
11708
|
+
// packages/editor/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue
|
|
11935
11709
|
var _sfc_main$3 = {};
|
|
11936
11710
|
var _hoisted_1$3 = {
|
|
11937
11711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11971,8 +11745,7 @@
|
|
|
11971
11745
|
])]);
|
|
11972
11746
|
}
|
|
11973
11747
|
var SpaceBetween_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
11974
|
-
|
|
11975
|
-
//#region packages/editor/src/fields/StyleSetter/icons/text-align/Left.vue
|
|
11748
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/Left.vue
|
|
11976
11749
|
var _sfc_main$2 = {};
|
|
11977
11750
|
var _hoisted_1$2 = {
|
|
11978
11751
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11982,8 +11755,7 @@
|
|
|
11982
11755
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M128 810.666667h768v85.333333H128z m0-170.666667h512v85.333333H128z m0-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m0 170.666667h512v85.333333H128z" }, null, -1)])]);
|
|
11983
11756
|
}
|
|
11984
11757
|
var Left_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
11985
|
-
|
|
11986
|
-
//#region packages/editor/src/fields/StyleSetter/icons/text-align/Center.vue
|
|
11758
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/Center.vue
|
|
11987
11759
|
var _sfc_main$1 = {};
|
|
11988
11760
|
var _hoisted_1$1 = {
|
|
11989
11761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11993,8 +11765,7 @@
|
|
|
11993
11765
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M128 810.666667h768v85.333333H128z m128-170.666667h512v85.333333H256z m-128-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m128 170.666667h512v85.333333H256z" }, null, -1)])]);
|
|
11994
11766
|
}
|
|
11995
11767
|
var Center_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
11996
|
-
|
|
11997
|
-
//#region packages/editor/src/fields/StyleSetter/icons/text-align/Right.vue
|
|
11768
|
+
// packages/editor/src/fields/StyleSetter/icons/text-align/Right.vue
|
|
11998
11769
|
var _sfc_main = {};
|
|
11999
11770
|
var _hoisted_1 = {
|
|
12000
11771
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12004,8 +11775,7 @@
|
|
|
12004
11775
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M128 128h768v85.333333H128z m0 682.666667h768v85.333333H128z m213.333333-170.666667h554.666667v85.333333H341.333333z m-213.333333-170.666667h768v85.333334H128z m213.333333-170.666666h554.666667v85.333333H341.333333z" }, null, -1)])]);
|
|
12005
11776
|
}
|
|
12006
11777
|
var Right_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
12007
|
-
|
|
12008
|
-
//#region packages/editor/src/fields/StyleSetter/configs.ts
|
|
11778
|
+
// packages/editor/src/fields/StyleSetter/configs.ts
|
|
12009
11779
|
/**
|
|
12010
11780
|
* 「布局」面板配置。
|
|
12011
11781
|
*
|
|
@@ -12597,8 +12367,7 @@
|
|
|
12597
12367
|
borderRadiusConfig,
|
|
12598
12368
|
transformConfig
|
|
12599
12369
|
];
|
|
12600
|
-
|
|
12601
|
-
//#region packages/editor/src/fields/headless-validation.ts
|
|
12370
|
+
// packages/editor/src/fields/headless-validation.ts
|
|
12602
12371
|
var getName = (config) => `${config.name ?? ""}`;
|
|
12603
12372
|
/** `code-select` 旧数据兼容:空值改写成 `{ hookType, hookData }`。 */
|
|
12604
12373
|
var codeSelectEffect = ({ config, model }) => {
|
|
@@ -12680,7 +12449,6 @@
|
|
|
12680
12449
|
prop
|
|
12681
12450
|
};
|
|
12682
12451
|
};
|
|
12683
|
-
//#endregion
|
|
12684
12452
|
exports.editorFields = {
|
|
12685
12453
|
"vs-code": {},
|
|
12686
12454
|
"code-link": {},
|