@gsc-basic/components 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +6 -0
- package/README.md +4 -0
- package/dist/es/Button/index.js +14 -0
- package/dist/es/Button/src/Button.css +14 -0
- package/dist/es/Button/src/Button.vue.js +14 -0
- package/dist/{lib/src → es}/Button/src/Button2.css +14 -1
- package/dist/es/CodeEditor/index.js +14 -0
- package/dist/es/CodeEditor/src/index.css +14 -0
- package/dist/es/CodeEditor/src/index.vue.js +14 -0
- package/dist/es/{src/CodeEditor → CodeEditor}/src/index2.css +14 -1
- package/dist/es/ConfigProvider/index.js +14 -0
- package/dist/es/ConfigProvider/src/configProvider.js +14 -0
- package/dist/es/ConfigProvider/src/configProviderProps.js +14 -0
- package/dist/es/ConfigProvider/src/constants.js +14 -0
- package/dist/es/ConfigProvider/src/useGlobalConfig.js +14 -0
- package/dist/es/CountTo/index.js +14 -0
- package/dist/es/CountTo/src/index.css +14 -0
- package/dist/es/CountTo/src/index.vue.js +14 -0
- package/dist/es/Ellipsis/index.js +14 -0
- package/dist/es/Ellipsis/src/components/JsEllipsis.css +14 -0
- package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +14 -0
- package/dist/es/Ellipsis/src/components/NativeEllipsis.css +14 -0
- package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +14 -0
- package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +14 -0
- package/dist/es/{src/Grid/src/components/ActionBar.css → Ellipsis/src/index.css} +14 -1
- package/dist/es/Ellipsis/src/index.vue.js +14 -0
- package/dist/es/Ellipsis/src/utils/utils.js +14 -0
- package/dist/es/Form/index.js +14 -0
- package/dist/{lib/src → es}/Form/src/Form.css +14 -1
- package/dist/es/Form/src/Form.vue.js +14 -0
- package/dist/es/{src/Form → Form}/src/styles/form.css +13 -0
- package/dist/es/Grid/index.js +14 -0
- package/dist/{lib/src → es}/Grid/src/Grid.css +14 -1
- package/dist/es/Grid/src/Grid.vue.js +14 -0
- package/dist/es/Grid/src/components/ActionBar.css +14 -0
- package/dist/es/Grid/src/components/ActionBar.vue.js +14 -0
- package/dist/es/Grid/src/components/CellEditor.css +14 -0
- package/dist/es/Grid/src/components/CellEditor.vue.js +14 -0
- package/dist/{lib/src → es}/Grid/src/components/CellEditor2.css +14 -1
- package/dist/es/{src/Grid → Grid}/src/components/ColumnFilter.css +14 -1
- package/dist/es/Grid/src/components/ColumnFilter.vue.js +14 -0
- package/dist/es/{src/Grid → Grid}/src/components/ColumnSettings.css +14 -1
- package/dist/es/Grid/src/components/ColumnSettings.vue.js +14 -0
- package/dist/{lib/src → es}/Grid/src/components/DataTable.css +14 -1
- package/dist/es/Grid/src/components/DataTable.vue.js +14 -0
- package/dist/es/{src/Grid → Grid}/src/components/Pager.css +14 -1
- package/dist/es/Grid/src/components/Pager.vue.js +14 -0
- package/dist/es/{src/Grid → Grid}/src/components/QueryBar.css +14 -1
- package/dist/es/Grid/src/components/QueryBar.vue.js +14 -0
- package/dist/es/Grid/src/composables/useCellEditor.js +14 -0
- package/dist/es/Grid/src/composables/useGridTable.js +14 -0
- package/dist/es/{src/Grid → Grid}/src/styles/table.css +13 -0
- package/dist/es/Marquee/index.js +14 -0
- package/dist/es/Marquee/src/index.css +14 -0
- package/dist/es/Marquee/src/index.vue.js +14 -0
- package/dist/es/{src/Form/src/Form.css → Marquee/src/index2.css} +14 -1
- package/dist/es/Overlay/index.js +14 -0
- package/dist/es/Overlay/src/Message.css +14 -0
- package/dist/es/Overlay/src/Message.vue.js +14 -0
- package/dist/es/{src/Overlay → Overlay}/src/Message2.css +14 -1
- package/dist/es/Overlay/src/Modal.css +14 -0
- package/dist/es/Overlay/src/Modal.vue.js +14 -0
- package/dist/es/{src/Overlay → Overlay}/src/Modal2.css +14 -1
- package/dist/es/Overlay/src/Notice.css +14 -0
- package/dist/es/Overlay/src/Notice.vue.js +14 -0
- package/dist/es/{src/Overlay → Overlay}/src/Notice2.css +14 -1
- package/dist/es/RichTextEditor/index.js +14 -0
- package/dist/es/RichTextEditor/src/ToolbarPanel.css +14 -0
- package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +14 -0
- package/dist/es/RichTextEditor/src/ToolbarPanel2.css +14 -0
- package/dist/es/{src/Grid/src/components/CellEditor2.css → RichTextEditor/src/components/BlockquoteButton.css} +14 -1
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +14 -0
- package/dist/es/{src/Grid/src/Grid.css → RichTextEditor/src/components/CodeBlockButton.css} +14 -1
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +14 -0
- package/dist/es/{src/Button/src/Button2.css → RichTextEditor/src/components/ColorHighlightPopover.css} +14 -1
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +14 -0
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +14 -0
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +14 -0
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/LinkPopover.css +14 -0
- package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +14 -0
- package/dist/{lib/src/Grid/src/components/ActionBar.css → es/RichTextEditor/src/components/ListDropdownMenu.css} +14 -1
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/MarkButton.css +14 -0
- package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/TableButton.css +14 -0
- package/dist/es/RichTextEditor/src/components/TableButton.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +14 -0
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/TextColorPopover.css +14 -0
- package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +14 -0
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +14 -0
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +14 -0
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +14 -0
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +14 -0
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +14 -0
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +14 -0
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +14 -0
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +14 -0
- package/dist/es/RichTextEditor/src/components/icons.js +14 -0
- package/dist/es/RichTextEditor/src/constant/index.js +14 -0
- package/dist/es/RichTextEditor/src/extensions/video.js +14 -0
- package/dist/es/RichTextEditor/src/index.css +14 -0
- package/dist/es/RichTextEditor/src/index.vue.js +14 -0
- package/dist/es/RichTextEditor/src/index2.css +14 -0
- package/dist/es/RichTextEditor/src/props.js +14 -0
- package/dist/es/ScaleScreen/index.js +14 -0
- package/dist/es/ScaleScreen/src/index.css +14 -0
- package/dist/es/ScaleScreen/src/index.vue.js +14 -0
- package/dist/es/{src/ScaleScreen → ScaleScreen}/src/index2.css +13 -0
- package/dist/es/Transition/index.js +14 -0
- package/dist/es/Transition/src/CollapseTransition.css +14 -0
- package/dist/es/Transition/src/CollapseTransition.vue.js +14 -0
- package/dist/es/Transition/src/CreateTransition.js +16 -0
- package/dist/es/Transition/src/ExpandTransition.js +14 -0
- package/dist/es/Transition/src/style/index.css +14 -0
- package/dist/es/VideoBackground/index.js +14 -0
- package/dist/es/VideoBackground/src/helper.js +14 -0
- package/dist/es/VideoBackground/src/index.css +14 -0
- package/dist/es/VideoBackground/src/index.vue.js +14 -0
- package/dist/es/VideoBackground/src/index2.css +14 -0
- package/dist/es/{src/VideoBackground → VideoBackground}/src/index3.css +13 -0
- package/dist/es/VideoBackground/src/videoBackground.js +14 -0
- package/dist/es/VideoPlayer/index.js +14 -0
- package/dist/es/VideoPlayer/src/index.css +14 -0
- package/dist/es/VideoPlayer/src/index.vue.js +14 -0
- package/dist/es/VideoPlayer/src/localeSetting.js +14 -0
- package/dist/es/VirtualScroll/index.js +14 -0
- package/dist/es/VirtualScroll/src/index.css +14 -0
- package/dist/es/VirtualScroll/src/index.vue.js +14 -0
- package/dist/es/VirtualScroll/src/index.vue2.js +14 -0
- package/dist/es/VirtualScroll/src/index2.css +14 -0
- package/dist/es/_virtual/_commonjsHelpers.js +14 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +14 -9
- package/dist/es/_virtual/delegate.js +14 -0
- package/dist/es/_virtual/download.js +14 -0
- package/dist/es/_virtual/download2.js +14 -0
- package/dist/es/_virtual/index.js +14 -0
- package/dist/es/_virtual/index2.js +14 -0
- package/dist/es/hooks/useLocale.js +14 -0
- package/dist/es/hooks/useNamespace.js +14 -0
- package/dist/es/index.js +14 -53
- package/dist/es/locale/lang/en-US.js +14 -0
- package/dist/es/locale/lang/ja-JP.js +14 -0
- package/dist/es/locale/lang/zh-CN.js +14 -0
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +14 -1371
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +14 -844
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +16 -38
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +30 -300
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +16 -48
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +25 -399
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +17 -497
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +17 -216
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +16 -51
- package/dist/es/node_modules/@codemirror/language/dist/index.js +14 -1299
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +16 -649
- package/dist/es/node_modules/@codemirror/search/dist/index.js +15 -839
- package/dist/es/node_modules/@codemirror/state/dist/index.js +14 -2643
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +14 -132
- package/dist/es/node_modules/@codemirror/view/dist/index.js +14 -7365
- package/dist/es/node_modules/@lezer/common/dist/index.js +15 -1431
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +14 -637
- package/dist/es/node_modules/@lezer/java/dist/index.js +14 -62
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +14 -161
- package/dist/es/node_modules/@lezer/json/dist/index.js +14 -34
- package/dist/es/node_modules/@lezer/lr/dist/index.js +14 -1309
- package/dist/es/node_modules/@lezer/python/dist/index.js +14 -221
- package/dist/es/node_modules/@lezer/xml/dist/index.js +14 -100
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +14 -274
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +14 -69
- package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +14 -178
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +14 -13
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +14 -406
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +14 -772
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +14 -55
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +15 -109
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +14 -45
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +14 -213
- package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +14 -29
- package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +14 -74
- package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +14 -79
- package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +14 -21
- package/dist/es/node_modules/@tanstack/store/dist/esm/types.js +14 -6
- package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +14 -1885
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +14 -38
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +14 -33
- package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +14 -48
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +14 -159
- package/dist/es/node_modules/@tiptap/core/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +15 -0
- package/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +15 -0
- package/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-code/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-document/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-image/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-link/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-list/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-table/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-text/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/extensions/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +14 -0
- package/dist/es/node_modules/@tiptap/vue-3/dist/index.js +14 -0
- package/dist/es/node_modules/@vueuse/core/dist/index.js +14 -125
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +14 -55
- package/dist/es/node_modules/codemirror/dist/index.js +14 -40
- package/dist/es/node_modules/crelt/index.js +14 -27
- package/dist/es/node_modules/delegate/src/closest.js +14 -0
- package/dist/es/node_modules/delegate/src/delegate.js +14 -0
- package/dist/es/node_modules/downloadjs/download.js +14 -0
- package/dist/es/node_modules/eventemitter3/index.js +14 -0
- package/dist/es/node_modules/linkifyjs/dist/linkify.js +14 -0
- package/dist/es/node_modules/lodash-es/_DataView.js +14 -0
- package/dist/es/node_modules/lodash-es/_Hash.js +14 -20
- package/dist/es/node_modules/lodash-es/_ListCache.js +14 -20
- package/dist/es/node_modules/lodash-es/_Map.js +14 -6
- package/dist/es/node_modules/lodash-es/_MapCache.js +14 -20
- package/dist/es/node_modules/lodash-es/_Promise.js +14 -0
- package/dist/es/node_modules/lodash-es/_Set.js +14 -0
- package/dist/es/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/es/node_modules/lodash-es/_Symbol.js +14 -5
- package/dist/es/node_modules/lodash-es/_Uint8Array.js +14 -0
- package/dist/es/node_modules/lodash-es/_WeakMap.js +14 -0
- package/dist/es/node_modules/lodash-es/_apply.js +14 -0
- package/dist/es/node_modules/lodash-es/_arrayEach.js +14 -0
- package/dist/es/node_modules/lodash-es/_arrayFilter.js +14 -0
- package/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +14 -0
- package/dist/es/node_modules/lodash-es/_arrayMap.js +14 -8
- package/dist/es/node_modules/lodash-es/_arrayPush.js +14 -0
- package/dist/es/node_modules/lodash-es/_assignValue.js +14 -0
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +14 -10
- package/dist/es/node_modules/lodash-es/_baseAssignValue.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseClone.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseFlatten.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +14 -11
- package/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +14 -10
- package/dist/es/node_modules/lodash-es/_baseIsArguments.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseIsMap.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +14 -16
- package/dist/es/node_modules/lodash-es/_baseIsRegExp.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseIsSet.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseKeysIn.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseSlice.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseTimes.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseToString.js +14 -18
- package/dist/es/node_modules/lodash-es/_baseUnary.js +14 -0
- package/dist/es/node_modules/lodash-es/_baseUnset.js +14 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +14 -10
- package/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +14 -0
- package/dist/es/node_modules/lodash-es/_cloneBuffer.js +14 -0
- package/dist/es/node_modules/lodash-es/_cloneDataView.js +14 -0
- package/dist/es/node_modules/lodash-es/_cloneRegExp.js +14 -0
- package/dist/es/node_modules/lodash-es/_cloneSymbol.js +14 -0
- package/dist/es/node_modules/lodash-es/_cloneTypedArray.js +14 -0
- package/dist/es/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/es/node_modules/lodash-es/_coreJsData.js +14 -5
- package/dist/es/node_modules/lodash-es/_customOmitClone.js +14 -0
- package/dist/es/node_modules/lodash-es/_defineProperty.js +14 -0
- package/dist/es/node_modules/lodash-es/_flatRest.js +14 -0
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +14 -4
- package/dist/es/node_modules/lodash-es/_getAllKeysIn.js +14 -0
- package/dist/es/node_modules/lodash-es/_getMapData.js +14 -8
- package/dist/es/node_modules/lodash-es/_getNative.js +14 -9
- package/dist/es/node_modules/lodash-es/_getPrototype.js +14 -0
- package/dist/es/node_modules/lodash-es/_getRawTag.js +14 -15
- package/dist/es/node_modules/lodash-es/_getSymbols.js +14 -0
- package/dist/es/node_modules/lodash-es/_getSymbolsIn.js +14 -0
- package/dist/es/node_modules/lodash-es/_getTag.js +14 -0
- package/dist/es/node_modules/lodash-es/_getValue.js +14 -6
- package/dist/es/node_modules/lodash-es/_hashClear.js +14 -7
- package/dist/es/node_modules/lodash-es/_hashDelete.js +14 -7
- package/dist/es/node_modules/lodash-es/_hashGet.js +14 -13
- package/dist/es/node_modules/lodash-es/_hashHas.js +14 -9
- package/dist/es/node_modules/lodash-es/_hashSet.js +14 -9
- package/dist/es/node_modules/lodash-es/_initCloneArray.js +14 -0
- package/dist/es/node_modules/lodash-es/_initCloneByTag.js +14 -0
- package/dist/es/node_modules/lodash-es/_isFlattenable.js +14 -0
- package/dist/es/node_modules/lodash-es/_isIndex.js +14 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +14 -12
- package/dist/es/node_modules/lodash-es/_isKeyable.js +14 -7
- package/dist/es/node_modules/lodash-es/_isMasked.js +14 -11
- package/dist/es/node_modules/lodash-es/_isPrototype.js +14 -0
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +14 -6
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +14 -12
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +14 -8
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +14 -7
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +14 -8
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +14 -13
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +14 -8
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +14 -7
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +14 -7
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +14 -8
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -11
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +14 -5
- package/dist/es/node_modules/lodash-es/_nativeKeysIn.js +14 -0
- package/dist/es/node_modules/lodash-es/_nodeUtil.js +14 -0
- package/dist/es/node_modules/lodash-es/_objectToString.js +14 -7
- package/dist/es/node_modules/lodash-es/_overArg.js +14 -0
- package/dist/es/node_modules/lodash-es/_overRest.js +14 -0
- package/dist/es/node_modules/lodash-es/_parent.js +14 -0
- package/dist/es/node_modules/lodash-es/_root.js +14 -5
- package/dist/es/node_modules/lodash-es/_setToString.js +14 -0
- package/dist/es/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/es/node_modules/lodash-es/_stackClear.js +14 -0
- package/dist/es/node_modules/lodash-es/_stackDelete.js +14 -0
- package/dist/es/node_modules/lodash-es/_stackGet.js +14 -0
- package/dist/es/node_modules/lodash-es/_stackHas.js +14 -0
- package/dist/es/node_modules/lodash-es/_stackSet.js +14 -0
- package/dist/es/node_modules/lodash-es/_stringToPath.js +14 -10
- package/dist/es/node_modules/lodash-es/_toKey.js +14 -10
- package/dist/es/node_modules/lodash-es/_toSource.js +14 -17
- package/dist/es/node_modules/lodash-es/constant.js +14 -0
- package/dist/es/node_modules/lodash-es/eq.js +14 -6
- package/dist/es/node_modules/lodash-es/flatten.js +14 -0
- package/dist/es/node_modules/lodash-es/get.js +14 -8
- package/dist/es/node_modules/lodash-es/identity.js +14 -0
- package/dist/es/node_modules/lodash-es/isArguments.js +14 -0
- package/dist/es/node_modules/lodash-es/isArray.js +14 -4
- package/dist/es/node_modules/lodash-es/isArrayLike.js +14 -0
- package/dist/es/node_modules/lodash-es/isBuffer.js +14 -0
- package/dist/es/node_modules/lodash-es/isFinite.js +14 -0
- package/dist/es/node_modules/lodash-es/isFunction.js +14 -12
- package/dist/es/node_modules/lodash-es/isLength.js +14 -0
- package/dist/es/node_modules/lodash-es/isMap.js +14 -0
- package/dist/es/node_modules/lodash-es/isNaN.js +14 -0
- package/dist/es/node_modules/lodash-es/isNil.js +14 -6
- package/dist/es/node_modules/lodash-es/isNumber.js +14 -0
- package/dist/es/node_modules/lodash-es/isObject.js +14 -7
- package/dist/es/node_modules/lodash-es/isObjectLike.js +14 -6
- package/dist/es/node_modules/lodash-es/isPlainObject.js +14 -0
- package/dist/es/node_modules/lodash-es/isRegExp.js +14 -0
- package/dist/es/node_modules/lodash-es/isSet.js +14 -0
- package/dist/es/node_modules/lodash-es/isString.js +14 -10
- package/dist/es/node_modules/lodash-es/isSymbol.js +14 -9
- package/dist/es/node_modules/lodash-es/isTypedArray.js +14 -0
- package/dist/es/node_modules/lodash-es/keysIn.js +14 -0
- package/dist/es/node_modules/lodash-es/last.js +14 -0
- package/dist/es/node_modules/lodash-es/memoize.js +14 -18
- package/dist/es/node_modules/lodash-es/omit.js +14 -0
- package/dist/es/node_modules/lodash-es/stubArray.js +14 -0
- package/dist/es/node_modules/lodash-es/stubFalse.js +14 -0
- package/dist/es/node_modules/lodash-es/toString.js +14 -7
- package/dist/es/node_modules/orderedmap/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-commands/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-history/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-keymap/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-model/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-schema-list/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-state/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-tables/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-transform/dist/index.js +14 -0
- package/dist/es/node_modules/prosemirror-view/dist/index.js +14 -0
- package/dist/es/node_modules/rope-sequence/dist/index.js +14 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +14 -109
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +14 -132
- package/dist/es/node_modules/w3c-keyname/index.js +14 -93
- package/dist/es/node_modules/xgplayer/dist/index.min.css +14 -0
- package/dist/es/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +14 -0
- package/dist/es/node_modules/xgplayer/es/constant.js +14 -0
- package/dist/es/node_modules/xgplayer/es/defaultConfig.js +14 -0
- package/dist/es/node_modules/xgplayer/es/error.js +14 -0
- package/dist/es/node_modules/xgplayer/es/events.js +14 -0
- package/dist/es/node_modules/xgplayer/es/index.umd.js +14 -0
- package/dist/es/node_modules/xgplayer/es/instManager.js +14 -0
- package/dist/es/node_modules/xgplayer/es/lang/en.js +14 -0
- package/dist/es/node_modules/xgplayer/es/lang/i18n.js +14 -0
- package/dist/es/node_modules/xgplayer/es/lang/jp.js +14 -0
- package/dist/es/node_modules/xgplayer/es/lang/zh-cn.js +14 -0
- package/dist/es/node_modules/xgplayer/es/mediaProxy.js +14 -0
- package/dist/es/node_modules/xgplayer/es/player.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugin/basePlugin.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugin/hooksDescriptor.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugin/plugin.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugin/pluginsManager.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugin/preset.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugin/resizeObserver.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/back.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/download.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitFull.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/loading.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pause.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIcon.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/play.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/playNext.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/replay.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestFull.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/rotate.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/seekicon.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconPlugin.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconTools.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionList.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionsIcon.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/common/thumbnail.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/controls/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/definition/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/download/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/dynamicBg/index.js +15 -0
- package/dist/es/node_modules/xgplayer/es/plugins/enter/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/error/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/fpsDetect/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/gapJump/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/keyboard/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/loading/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/logger/index.js +15 -0
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/touch.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/pc/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/pip/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/play/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/playNext/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/playbackRate/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/poster/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/progress/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/progress/innerList.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/progress/miniProgress.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/prompt/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/replay/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/rotate/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/screenShot/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/start/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/stats/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/testspeed/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/time/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/time/timesegments.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/volume/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +14 -0
- package/dist/es/node_modules/xgplayer/es/presets/default.js +14 -0
- package/dist/es/node_modules/xgplayer/es/state.js +14 -0
- package/dist/es/node_modules/xgplayer/es/stateClassMap.js +14 -0
- package/dist/es/node_modules/xgplayer/es/utils/database.js +14 -0
- package/dist/es/node_modules/xgplayer/es/utils/debug.js +14 -0
- package/dist/es/node_modules/xgplayer/es/utils/draggabilly.js +14 -0
- package/dist/es/node_modules/xgplayer/es/utils/sniffer.js +14 -0
- package/dist/es/node_modules/xgplayer/es/utils/util.js +14 -0
- package/dist/es/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +14 -0
- package/dist/es/node_modules/xgplayer/es/version.js +14 -0
- package/dist/es/packages/components/index.js +14 -0
- package/dist/es/{src/styles → styles}/tokens.css +13 -0
- package/dist/lib/Button/index.js +14 -0
- package/dist/lib/Button/src/Button.css +14 -0
- package/dist/lib/Button/src/Button.vue.js +14 -0
- package/dist/lib/Button/src/Button2.css +14 -0
- package/dist/lib/CodeEditor/index.js +14 -0
- package/dist/lib/CodeEditor/src/index.css +14 -0
- package/dist/lib/CodeEditor/src/index.vue.js +14 -0
- package/dist/lib/{src/CodeEditor → CodeEditor}/src/index2.css +14 -1
- package/dist/lib/ConfigProvider/index.js +14 -0
- package/dist/lib/ConfigProvider/src/configProvider.js +14 -0
- package/dist/lib/ConfigProvider/src/configProviderProps.js +14 -0
- package/dist/lib/ConfigProvider/src/constants.js +14 -0
- package/dist/lib/ConfigProvider/src/useGlobalConfig.js +14 -0
- package/dist/lib/CountTo/index.js +14 -0
- package/dist/lib/CountTo/src/index.css +14 -0
- package/dist/lib/CountTo/src/index.vue.js +14 -0
- package/dist/lib/Ellipsis/index.js +14 -0
- package/dist/lib/Ellipsis/src/components/JsEllipsis.css +14 -0
- package/dist/lib/Ellipsis/src/components/JsEllipsis.vue.js +14 -0
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.css +14 -0
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.vue.js +14 -0
- package/dist/lib/Ellipsis/src/components/NativeEllipsis2.css +14 -0
- package/dist/lib/Ellipsis/src/index.css +14 -0
- package/dist/lib/Ellipsis/src/index.vue.js +14 -0
- package/dist/lib/Ellipsis/src/utils/utils.js +14 -0
- package/dist/lib/Form/index.js +14 -0
- package/dist/lib/Form/src/Form.css +14 -0
- package/dist/lib/Form/src/Form.vue.js +14 -0
- package/dist/lib/{src/Form → Form}/src/styles/form.css +13 -0
- package/dist/lib/Grid/index.js +14 -0
- package/dist/lib/Grid/src/Grid.css +14 -0
- package/dist/lib/Grid/src/Grid.vue.js +14 -0
- package/dist/lib/Grid/src/components/ActionBar.css +14 -0
- package/dist/lib/Grid/src/components/ActionBar.vue.js +14 -0
- package/dist/lib/Grid/src/components/CellEditor.css +14 -0
- package/dist/lib/Grid/src/components/CellEditor.vue.js +14 -0
- package/dist/lib/Grid/src/components/CellEditor2.css +14 -0
- package/dist/lib/{src/Grid → Grid}/src/components/ColumnFilter.css +14 -1
- package/dist/lib/Grid/src/components/ColumnFilter.vue.js +14 -0
- package/dist/lib/{src/Grid → Grid}/src/components/ColumnSettings.css +14 -1
- package/dist/lib/Grid/src/components/ColumnSettings.vue.js +14 -0
- package/dist/{es/src → lib}/Grid/src/components/DataTable.css +14 -1
- package/dist/lib/Grid/src/components/DataTable.vue.js +14 -0
- package/dist/lib/{src/Grid → Grid}/src/components/Pager.css +14 -1
- package/dist/lib/Grid/src/components/Pager.vue.js +14 -0
- package/dist/lib/{src/Grid → Grid}/src/components/QueryBar.css +14 -1
- package/dist/lib/Grid/src/components/QueryBar.vue.js +14 -0
- package/dist/lib/Grid/src/composables/useCellEditor.js +14 -0
- package/dist/lib/Grid/src/composables/useGridTable.js +14 -0
- package/dist/lib/{src/Grid → Grid}/src/styles/table.css +13 -0
- package/dist/lib/Marquee/index.js +14 -0
- package/dist/lib/Marquee/src/index.css +14 -0
- package/dist/lib/Marquee/src/index.vue.js +14 -0
- package/dist/lib/Marquee/src/index2.css +14 -0
- package/dist/lib/Overlay/index.js +14 -0
- package/dist/lib/Overlay/src/Message.css +14 -0
- package/dist/lib/Overlay/src/Message.vue.js +14 -0
- package/dist/lib/{src/Overlay → Overlay}/src/Message2.css +14 -1
- package/dist/lib/Overlay/src/Modal.css +14 -0
- package/dist/lib/Overlay/src/Modal.vue.js +14 -0
- package/dist/lib/{src/Overlay → Overlay}/src/Modal2.css +14 -1
- package/dist/lib/Overlay/src/Notice.css +14 -0
- package/dist/lib/Overlay/src/Notice.vue.js +14 -0
- package/dist/lib/{src/Overlay → Overlay}/src/Notice2.css +14 -1
- package/dist/lib/RichTextEditor/index.js +14 -0
- package/dist/lib/RichTextEditor/src/ToolbarPanel.css +14 -0
- package/dist/lib/RichTextEditor/src/ToolbarPanel.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/ToolbarPanel2.css +14 -0
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.css +14 -0
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.css +14 -0
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.css +14 -0
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/LinkPopover.css +14 -0
- package/dist/lib/RichTextEditor/src/components/LinkPopover.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.css +14 -0
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/MarkButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/MarkButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/TableButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/TableButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.css +14 -0
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.css +14 -0
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.css +14 -0
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.css +14 -0
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.css +14 -0
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.css +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.css +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.css +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu2.css +14 -0
- package/dist/lib/RichTextEditor/src/components/icons.js +14 -0
- package/dist/lib/RichTextEditor/src/constant/index.js +14 -0
- package/dist/lib/RichTextEditor/src/extensions/video.js +14 -0
- package/dist/lib/RichTextEditor/src/index.css +14 -0
- package/dist/lib/RichTextEditor/src/index.vue.js +14 -0
- package/dist/lib/RichTextEditor/src/index2.css +14 -0
- package/dist/lib/RichTextEditor/src/props.js +14 -0
- package/dist/lib/ScaleScreen/index.js +14 -0
- package/dist/lib/ScaleScreen/src/index.css +14 -0
- package/dist/lib/ScaleScreen/src/index.vue.js +14 -0
- package/dist/lib/{src/ScaleScreen → ScaleScreen}/src/index2.css +13 -0
- package/dist/lib/Transition/index.js +14 -0
- package/dist/lib/Transition/src/CollapseTransition.css +14 -0
- package/dist/lib/Transition/src/CollapseTransition.vue.js +14 -0
- package/dist/lib/Transition/src/CreateTransition.js +14 -0
- package/dist/lib/Transition/src/ExpandTransition.js +14 -0
- package/dist/lib/Transition/src/style/index.css +14 -0
- package/dist/lib/VideoBackground/index.js +14 -0
- package/dist/lib/VideoBackground/src/helper.js +14 -0
- package/dist/lib/VideoBackground/src/index.css +14 -0
- package/dist/lib/VideoBackground/src/index.vue.js +14 -0
- package/dist/lib/VideoBackground/src/index2.css +14 -0
- package/dist/lib/{src/VideoBackground → VideoBackground}/src/index3.css +13 -0
- package/dist/lib/VideoBackground/src/videoBackground.js +14 -0
- package/dist/lib/VideoPlayer/index.js +14 -0
- package/dist/lib/VideoPlayer/src/index.css +14 -0
- package/dist/lib/VideoPlayer/src/index.vue.js +14 -0
- package/dist/lib/VideoPlayer/src/localeSetting.js +14 -0
- package/dist/lib/VirtualScroll/index.js +14 -0
- package/dist/lib/VirtualScroll/src/index.css +14 -0
- package/dist/lib/VirtualScroll/src/index.vue.js +14 -0
- package/dist/lib/VirtualScroll/src/index.vue2.js +14 -0
- package/dist/lib/VirtualScroll/src/index2.css +14 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +14 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +14 -1
- package/dist/lib/_virtual/delegate.js +14 -0
- package/dist/lib/_virtual/download.js +14 -0
- package/dist/lib/_virtual/download2.js +14 -0
- package/dist/lib/_virtual/index.js +14 -0
- package/dist/lib/_virtual/index2.js +14 -0
- package/dist/lib/hooks/useLocale.js +14 -0
- package/dist/lib/hooks/useNamespace.js +14 -0
- package/dist/lib/index.js +14 -1
- package/dist/lib/locale/lang/en-US.js +14 -0
- package/dist/lib/locale/lang/ja-JP.js +14 -0
- package/dist/lib/locale/lang/zh-CN.js +14 -0
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +14 -13
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +14 -3
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +14 -2
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +14 -2
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +14 -5
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +14 -1
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +14 -5
- package/dist/lib/node_modules/@lezer/common/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/java/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/json/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/python/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +14 -1
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +14 -1
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +14 -1
- package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +14 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +14 -1
- package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +14 -1
- package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +14 -1
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +14 -1
- package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +14 -1
- package/dist/lib/node_modules/@tanstack/store/dist/esm/types.js +14 -1
- package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +14 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +14 -1
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +14 -1
- package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +14 -1
- package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +14 -1
- package/dist/lib/node_modules/@tiptap/core/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +14 -0
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +14 -1
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +14 -1
- package/dist/lib/node_modules/codemirror/dist/index.js +14 -1
- package/dist/lib/node_modules/crelt/index.js +14 -1
- package/dist/lib/node_modules/delegate/src/closest.js +14 -0
- package/dist/lib/node_modules/delegate/src/delegate.js +14 -0
- package/dist/lib/node_modules/downloadjs/download.js +14 -0
- package/dist/lib/node_modules/eventemitter3/index.js +14 -0
- package/dist/lib/node_modules/linkifyjs/dist/linkify.js +14 -0
- package/dist/lib/node_modules/lodash-es/_DataView.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Hash.js +14 -1
- package/dist/lib/node_modules/lodash-es/_ListCache.js +14 -1
- package/dist/lib/node_modules/lodash-es/_Map.js +14 -1
- package/dist/lib/node_modules/lodash-es/_MapCache.js +14 -1
- package/dist/lib/node_modules/lodash-es/_Promise.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Set.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Symbol.js +14 -1
- package/dist/lib/node_modules/lodash-es/_Uint8Array.js +14 -0
- package/dist/lib/node_modules/lodash-es/_WeakMap.js +14 -0
- package/dist/lib/node_modules/lodash-es/_apply.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayEach.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayFilter.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +14 -1
- package/dist/lib/node_modules/lodash-es/_arrayPush.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assignValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +14 -1
- package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseClone.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFlatten.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +14 -1
- package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsMap.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +14 -1
- package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseSlice.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseTimes.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseToString.js +14 -1
- package/dist/lib/node_modules/lodash-es/_baseUnary.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseUnset.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +14 -1
- package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +14 -0
- package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +14 -0
- package/dist/lib/node_modules/lodash-es/_cloneDataView.js +14 -0
- package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +14 -0
- package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +14 -0
- package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +14 -1
- package/dist/lib/node_modules/lodash-es/_customOmitClone.js +14 -0
- package/dist/lib/node_modules/lodash-es/_defineProperty.js +14 -0
- package/dist/lib/node_modules/lodash-es/_flatRest.js +14 -0
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +14 -1
- package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getMapData.js +14 -1
- package/dist/lib/node_modules/lodash-es/_getNative.js +14 -1
- package/dist/lib/node_modules/lodash-es/_getPrototype.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +14 -1
- package/dist/lib/node_modules/lodash-es/_getSymbols.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getValue.js +14 -1
- package/dist/lib/node_modules/lodash-es/_hashClear.js +14 -1
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +14 -1
- package/dist/lib/node_modules/lodash-es/_hashGet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_hashHas.js +14 -1
- package/dist/lib/node_modules/lodash-es/_hashSet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_initCloneArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isFlattenable.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isIndex.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +14 -1
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +14 -1
- package/dist/lib/node_modules/lodash-es/_isMasked.js +14 -1
- package/dist/lib/node_modules/lodash-es/_isPrototype.js +14 -0
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +14 -1
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +14 -1
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +14 -1
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +14 -1
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +14 -1
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +14 -1
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +14 -1
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +14 -1
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +14 -1
- package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +14 -0
- package/dist/lib/node_modules/lodash-es/_nodeUtil.js +14 -0
- package/dist/lib/node_modules/lodash-es/_objectToString.js +14 -1
- package/dist/lib/node_modules/lodash-es/_overArg.js +14 -0
- package/dist/lib/node_modules/lodash-es/_overRest.js +14 -0
- package/dist/lib/node_modules/lodash-es/_parent.js +14 -0
- package/dist/lib/node_modules/lodash-es/_root.js +14 -1
- package/dist/lib/node_modules/lodash-es/_setToString.js +14 -0
- package/dist/lib/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stackClear.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stackDelete.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stackGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stackHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stackSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +14 -1
- package/dist/lib/node_modules/lodash-es/_toKey.js +14 -1
- package/dist/lib/node_modules/lodash-es/_toSource.js +14 -1
- package/dist/lib/node_modules/lodash-es/constant.js +14 -0
- package/dist/lib/node_modules/lodash-es/eq.js +14 -1
- package/dist/lib/node_modules/lodash-es/flatten.js +14 -0
- package/dist/lib/node_modules/lodash-es/get.js +14 -1
- package/dist/lib/node_modules/lodash-es/identity.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArguments.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArray.js +14 -1
- package/dist/lib/node_modules/lodash-es/isArrayLike.js +14 -0
- package/dist/lib/node_modules/lodash-es/isBuffer.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFinite.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFunction.js +14 -1
- package/dist/lib/node_modules/lodash-es/isLength.js +14 -0
- package/dist/lib/node_modules/lodash-es/isMap.js +14 -0
- package/dist/lib/node_modules/lodash-es/isNaN.js +14 -0
- package/dist/lib/node_modules/lodash-es/isNil.js +14 -1
- package/dist/lib/node_modules/lodash-es/isNumber.js +14 -0
- package/dist/lib/node_modules/lodash-es/isObject.js +14 -1
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +14 -1
- package/dist/lib/node_modules/lodash-es/isPlainObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/isRegExp.js +14 -0
- package/dist/lib/node_modules/lodash-es/isSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/isString.js +14 -1
- package/dist/lib/node_modules/lodash-es/isSymbol.js +14 -1
- package/dist/lib/node_modules/lodash-es/isTypedArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/keysIn.js +14 -0
- package/dist/lib/node_modules/lodash-es/last.js +14 -0
- package/dist/lib/node_modules/lodash-es/memoize.js +14 -1
- package/dist/lib/node_modules/lodash-es/omit.js +14 -0
- package/dist/lib/node_modules/lodash-es/stubArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/stubFalse.js +14 -0
- package/dist/lib/node_modules/lodash-es/toString.js +14 -1
- package/dist/lib/node_modules/orderedmap/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-commands/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-history/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-model/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-state/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-tables/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-transform/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-view/dist/index.js +14 -0
- package/dist/lib/node_modules/rope-sequence/dist/index.js +14 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +14 -3
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +14 -1
- package/dist/lib/node_modules/w3c-keyname/index.js +14 -1
- package/dist/lib/node_modules/xgplayer/dist/index.min.css +14 -0
- package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/constant.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/error.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/events.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/index.umd.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/instManager.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/lang/en.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/lang/jp.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/player.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/presets/default.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/state.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/utils/database.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/utils/debug.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/utils/util.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +14 -0
- package/dist/lib/node_modules/xgplayer/es/version.js +14 -0
- package/dist/lib/packages/components/index.js +14 -0
- package/dist/lib/{src/styles → styles}/tokens.css +13 -0
- package/package.json +30 -15
- package/dist/es/src/Button/index.js +0 -6
- package/dist/es/src/Button/src/Button.css +0 -1
- package/dist/es/src/Button/src/Button.vue.js +0 -41
- package/dist/es/src/CodeEditor/index.js +0 -6
- package/dist/es/src/CodeEditor/src/index.css +0 -1
- package/dist/es/src/CodeEditor/src/index.vue.js +0 -131
- package/dist/es/src/ConfigProvider/index.js +0 -6
- package/dist/es/src/ConfigProvider/src/configProvider.js +0 -14
- package/dist/es/src/ConfigProvider/src/configProviderProps.js +0 -22
- package/dist/es/src/ConfigProvider/src/constants.js +0 -9
- package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +0 -45
- package/dist/es/src/Form/index.js +0 -6
- package/dist/es/src/Form/src/Form.vue.js +0 -208
- package/dist/es/src/Grid/index.js +0 -6
- package/dist/es/src/Grid/src/Grid.vue.js +0 -180
- package/dist/es/src/Grid/src/components/ActionBar.vue.js +0 -65
- package/dist/es/src/Grid/src/components/CellEditor.css +0 -1
- package/dist/es/src/Grid/src/components/CellEditor.vue.js +0 -132
- package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +0 -72
- package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +0 -109
- package/dist/es/src/Grid/src/components/DataTable.vue.js +0 -556
- package/dist/es/src/Grid/src/components/Pager.vue.js +0 -64
- package/dist/es/src/Grid/src/components/QueryBar.vue.js +0 -156
- package/dist/es/src/Grid/src/composables/useCellEditor.js +0 -20
- package/dist/es/src/Grid/src/composables/useGridTable.js +0 -213
- package/dist/es/src/Overlay/index.js +0 -61
- package/dist/es/src/Overlay/src/Message.css +0 -1
- package/dist/es/src/Overlay/src/Message.vue.js +0 -36
- package/dist/es/src/Overlay/src/Modal.css +0 -1
- package/dist/es/src/Overlay/src/Modal.vue.js +0 -67
- package/dist/es/src/Overlay/src/Notice.css +0 -1
- package/dist/es/src/Overlay/src/Notice.vue.js +0 -37
- package/dist/es/src/ScaleScreen/index.js +0 -6
- package/dist/es/src/ScaleScreen/src/index.css +0 -1
- package/dist/es/src/ScaleScreen/src/index.vue.js +0 -115
- package/dist/es/src/VideoBackground/index.js +0 -6
- package/dist/es/src/VideoBackground/src/helper.js +0 -29
- package/dist/es/src/VideoBackground/src/index.css +0 -1
- package/dist/es/src/VideoBackground/src/index.vue.js +0 -108
- package/dist/es/src/VideoBackground/src/index2.css +0 -1
- package/dist/es/src/VideoBackground/src/videoBackground.js +0 -31
- package/dist/es/src/hooks/useLocale.js +0 -24
- package/dist/es/src/hooks/useNamespace.js +0 -8
- package/dist/es/src/index.js +0 -44
- package/dist/es/src/locale/lang/en-US.js +0 -72
- package/dist/es/src/locale/lang/ja-JP.js +0 -72
- package/dist/es/src/locale/lang/zh-CN.js +0 -72
- package/dist/lib/src/Button/index.js +0 -1
- package/dist/lib/src/Button/src/Button.css +0 -1
- package/dist/lib/src/Button/src/Button.vue.js +0 -1
- package/dist/lib/src/CodeEditor/index.js +0 -1
- package/dist/lib/src/CodeEditor/src/index.css +0 -1
- package/dist/lib/src/CodeEditor/src/index.vue.js +0 -1
- package/dist/lib/src/ConfigProvider/index.js +0 -1
- package/dist/lib/src/ConfigProvider/src/configProvider.js +0 -1
- package/dist/lib/src/ConfigProvider/src/configProviderProps.js +0 -1
- package/dist/lib/src/ConfigProvider/src/constants.js +0 -1
- package/dist/lib/src/ConfigProvider/src/useGlobalConfig.js +0 -1
- package/dist/lib/src/Form/index.js +0 -1
- package/dist/lib/src/Form/src/Form.vue.js +0 -1
- package/dist/lib/src/Grid/index.js +0 -1
- package/dist/lib/src/Grid/src/Grid.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/ActionBar.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/CellEditor.css +0 -1
- package/dist/lib/src/Grid/src/components/CellEditor.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/DataTable.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/Pager.vue.js +0 -1
- package/dist/lib/src/Grid/src/components/QueryBar.vue.js +0 -1
- package/dist/lib/src/Grid/src/composables/useCellEditor.js +0 -1
- package/dist/lib/src/Grid/src/composables/useGridTable.js +0 -1
- package/dist/lib/src/Overlay/index.js +0 -1
- package/dist/lib/src/Overlay/src/Message.css +0 -1
- package/dist/lib/src/Overlay/src/Message.vue.js +0 -1
- package/dist/lib/src/Overlay/src/Modal.css +0 -1
- package/dist/lib/src/Overlay/src/Modal.vue.js +0 -1
- package/dist/lib/src/Overlay/src/Notice.css +0 -1
- package/dist/lib/src/Overlay/src/Notice.vue.js +0 -1
- package/dist/lib/src/ScaleScreen/index.js +0 -1
- package/dist/lib/src/ScaleScreen/src/index.css +0 -1
- package/dist/lib/src/ScaleScreen/src/index.vue.js +0 -1
- package/dist/lib/src/VideoBackground/index.js +0 -1
- package/dist/lib/src/VideoBackground/src/helper.js +0 -1
- package/dist/lib/src/VideoBackground/src/index.css +0 -1
- package/dist/lib/src/VideoBackground/src/index.vue.js +0 -1
- package/dist/lib/src/VideoBackground/src/index2.css +0 -1
- package/dist/lib/src/VideoBackground/src/videoBackground.js +0 -1
- package/dist/lib/src/hooks/useLocale.js +0 -1
- package/dist/lib/src/hooks/useNamespace.js +0 -1
- package/dist/lib/src/index.js +0 -1
- package/dist/lib/src/locale/lang/en-US.js +0 -1
- package/dist/lib/src/locale/lang/ja-JP.js +0 -1
- package/dist/lib/src/locale/lang/zh-CN.js +0 -1
|
@@ -1,1371 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Get the extent, content, and (if there is a token) type of the
|
|
15
|
-
token before `this.pos`.
|
|
16
|
-
*/
|
|
17
|
-
tokenBefore(e) {
|
|
18
|
-
let t = q(this.state).resolveInner(this.pos, -1);
|
|
19
|
-
for (; t && e.indexOf(t.name) < 0; )
|
|
20
|
-
t = t.parent;
|
|
21
|
-
return t ? {
|
|
22
|
-
from: t.from,
|
|
23
|
-
to: this.pos,
|
|
24
|
-
text: this.state.sliceDoc(t.from, this.pos),
|
|
25
|
-
type: t.type
|
|
26
|
-
} : null;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
Get the match of the given expression directly before the
|
|
30
|
-
cursor.
|
|
31
|
-
*/
|
|
32
|
-
matchBefore(e) {
|
|
33
|
-
let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), o = t.text.slice(n - t.from, this.pos - t.from), s = o.search(ve(e, !1));
|
|
34
|
-
return s < 0 ? null : { from: n + s, to: this.pos, text: o.slice(s) };
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
Yields true when the query has been aborted. Can be useful in
|
|
38
|
-
asynchronous queries to avoid doing work that will be ignored.
|
|
39
|
-
*/
|
|
40
|
-
get aborted() {
|
|
41
|
-
return this.abortListeners == null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
Allows you to register abort handlers, which will be called when
|
|
45
|
-
the query is
|
|
46
|
-
[aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).
|
|
47
|
-
|
|
48
|
-
By default, running queries will not be aborted for regular
|
|
49
|
-
typing or backspacing, on the assumption that they are likely to
|
|
50
|
-
return a result with a
|
|
51
|
-
[`validFor`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.validFor) field that
|
|
52
|
-
allows the result to be used after all. Passing `onDocChange:
|
|
53
|
-
true` will cause this query to be aborted for any document
|
|
54
|
-
change.
|
|
55
|
-
*/
|
|
56
|
-
addEventListener(e, t, n) {
|
|
57
|
-
e == "abort" && this.abortListeners && (this.abortListeners.push(t), n && n.onDocChange && (this.abortOnDocChange = !0));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function ae(i) {
|
|
61
|
-
let e = Object.keys(i).join(""), t = /\w/.test(e);
|
|
62
|
-
return t && (e = e.replace(/\w/g, "")), `[${t ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`;
|
|
63
|
-
}
|
|
64
|
-
function He(i) {
|
|
65
|
-
let e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
66
|
-
for (let { label: o } of i) {
|
|
67
|
-
e[o[0]] = !0;
|
|
68
|
-
for (let s = 1; s < o.length; s++)
|
|
69
|
-
t[o[s]] = !0;
|
|
70
|
-
}
|
|
71
|
-
let n = ae(e) + ae(t) + "*$";
|
|
72
|
-
return [new RegExp("^" + n), new RegExp(n)];
|
|
73
|
-
}
|
|
74
|
-
function Ve(i) {
|
|
75
|
-
let e = i.map((o) => typeof o == "string" ? { label: o } : o), [t, n] = e.every((o) => /^\w+$/.test(o.label)) ? [/\w*$/, /\w+$/] : He(e);
|
|
76
|
-
return (o) => {
|
|
77
|
-
let s = o.matchBefore(n);
|
|
78
|
-
return s || o.explicit ? { from: s ? s.from : o.pos, options: e, validFor: t } : null;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function Ut(i, e) {
|
|
82
|
-
return (t) => {
|
|
83
|
-
for (let n = q(t.state).resolveInner(t.pos, -1); n; n = n.parent) {
|
|
84
|
-
if (i.indexOf(n.name) > -1)
|
|
85
|
-
return null;
|
|
86
|
-
if (n.type.isTop)
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
return e(t);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
class ce {
|
|
93
|
-
constructor(e, t, n, o) {
|
|
94
|
-
this.completion = e, this.source = t, this.match = n, this.score = o;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function E(i) {
|
|
98
|
-
return i.selection.main.from;
|
|
99
|
-
}
|
|
100
|
-
function ve(i, e) {
|
|
101
|
-
var t;
|
|
102
|
-
let { source: n } = i, o = e && n[0] != "^", s = n[n.length - 1] != "$";
|
|
103
|
-
return !o && !s ? i : new RegExp(`${o ? "^" : ""}(?:${n})${s ? "$" : ""}`, (t = i.flags) !== null && t !== void 0 ? t : i.ignoreCase ? "i" : "");
|
|
104
|
-
}
|
|
105
|
-
const te = /* @__PURE__ */ Be.define();
|
|
106
|
-
function qe(i, e, t, n) {
|
|
107
|
-
let { main: o } = i.selection, s = t - o.from, l = n - o.from;
|
|
108
|
-
return {
|
|
109
|
-
...i.changeByRange((a) => {
|
|
110
|
-
if (a != o && t != n && i.sliceDoc(a.from + s, a.from + l) != i.sliceDoc(t, n))
|
|
111
|
-
return { range: a };
|
|
112
|
-
let r = i.toText(e);
|
|
113
|
-
return {
|
|
114
|
-
changes: { from: a.from + s, to: n == o.from ? a.to : a.from + l, insert: r },
|
|
115
|
-
range: w.cursor(a.from + s + r.length)
|
|
116
|
-
};
|
|
117
|
-
}),
|
|
118
|
-
scrollIntoView: !0,
|
|
119
|
-
userEvent: "input.complete"
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
const fe = /* @__PURE__ */ new WeakMap();
|
|
123
|
-
function ze(i) {
|
|
124
|
-
if (!Array.isArray(i))
|
|
125
|
-
return i;
|
|
126
|
-
let e = fe.get(i);
|
|
127
|
-
return e || fe.set(i, e = Ve(i)), e;
|
|
128
|
-
}
|
|
129
|
-
const j = /* @__PURE__ */ O.define(), B = /* @__PURE__ */ O.define();
|
|
130
|
-
class Ke {
|
|
131
|
-
constructor(e) {
|
|
132
|
-
this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
133
|
-
for (let t = 0; t < e.length; ) {
|
|
134
|
-
let n = v(e, t), o = T(n);
|
|
135
|
-
this.chars.push(n);
|
|
136
|
-
let s = e.slice(t, t + o), l = s.toUpperCase();
|
|
137
|
-
this.folded.push(v(l == s ? s.toLowerCase() : l, 0)), t += o;
|
|
138
|
-
}
|
|
139
|
-
this.astral = e.length != this.chars.length;
|
|
140
|
-
}
|
|
141
|
-
ret(e, t) {
|
|
142
|
-
return this.score = e, this.matched = t, this;
|
|
143
|
-
}
|
|
144
|
-
// Matches a given word (completion) against the pattern (input).
|
|
145
|
-
// Will return a boolean indicating whether there was a match and,
|
|
146
|
-
// on success, set `this.score` to the score, `this.matched` to an
|
|
147
|
-
// array of `from, to` pairs indicating the matched parts of `word`.
|
|
148
|
-
//
|
|
149
|
-
// The score is a number that is more negative the worse the match
|
|
150
|
-
// is. See `Penalty` above.
|
|
151
|
-
match(e) {
|
|
152
|
-
if (this.pattern.length == 0)
|
|
153
|
-
return this.ret(-100, []);
|
|
154
|
-
if (e.length < this.pattern.length)
|
|
155
|
-
return null;
|
|
156
|
-
let { chars: t, folded: n, any: o, precise: s, byWord: l } = this;
|
|
157
|
-
if (t.length == 1) {
|
|
158
|
-
let d = v(e, 0), D = T(d), S = D == e.length ? 0 : -100;
|
|
159
|
-
if (d != t[0]) if (d == n[0])
|
|
160
|
-
S += -200;
|
|
161
|
-
else
|
|
162
|
-
return null;
|
|
163
|
-
return this.ret(S, [0, D]);
|
|
164
|
-
}
|
|
165
|
-
let a = e.indexOf(this.pattern);
|
|
166
|
-
if (a == 0)
|
|
167
|
-
return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
|
|
168
|
-
let r = t.length, h = 0;
|
|
169
|
-
if (a < 0) {
|
|
170
|
-
for (let d = 0, D = Math.min(e.length, 200); d < D && h < r; ) {
|
|
171
|
-
let S = v(e, d);
|
|
172
|
-
(S == t[h] || S == n[h]) && (o[h++] = d), d += T(S);
|
|
173
|
-
}
|
|
174
|
-
if (h < r)
|
|
175
|
-
return null;
|
|
176
|
-
}
|
|
177
|
-
let c = 0, f = 0, p = !1, u = 0, m = -1, y = -1, k = /[a-z]/.test(e), I = !0;
|
|
178
|
-
for (let d = 0, D = Math.min(e.length, 200), S = 0; d < D && f < r; ) {
|
|
179
|
-
let b = v(e, d);
|
|
180
|
-
a < 0 && (c < r && b == t[c] && (s[c++] = d), u < r && (b == t[u] || b == n[u] ? (u == 0 && (m = d), y = d + 1, u++) : u = 0));
|
|
181
|
-
let U, K = b < 255 ? b >= 48 && b <= 57 || b >= 97 && b <= 122 ? 2 : b >= 65 && b <= 90 ? 1 : 0 : (U = be(b)) != U.toLowerCase() ? 1 : U != U.toUpperCase() ? 2 : 0;
|
|
182
|
-
(!d || K == 1 && k || S == 0 && K != 0) && (t[f] == b || n[f] == b && (p = !0) ? l[f++] = d : l.length && (I = !1)), S = K, d += T(b);
|
|
183
|
-
}
|
|
184
|
-
return f == r && l[0] == 0 && I ? this.result(-100 + (p ? -200 : 0), l, e) : u == r && m == 0 ? this.ret(-200 - e.length + (y == e.length ? 0 : -100), [0, y]) : a > -1 ? this.ret(-700 - e.length, [a, a + this.pattern.length]) : u == r ? this.ret(-900 - e.length, [m, y]) : f == r ? this.result(-100 + (p ? -200 : 0) + -700 + (I ? 0 : -1100), l, e) : t.length == 2 ? null : this.result((o[0] ? -700 : 0) + -200 + -1100, o, e);
|
|
185
|
-
}
|
|
186
|
-
result(e, t, n) {
|
|
187
|
-
let o = [], s = 0;
|
|
188
|
-
for (let l of t) {
|
|
189
|
-
let a = l + (this.astral ? T(v(n, l)) : 1);
|
|
190
|
-
s && o[s - 1] == l ? o[s - 1] = a : (o[s++] = l, o[s++] = a);
|
|
191
|
-
}
|
|
192
|
-
return this.ret(e - n.length, o);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
class Qe {
|
|
196
|
-
constructor(e) {
|
|
197
|
-
this.pattern = e, this.matched = [], this.score = 0, this.folded = e.toLowerCase();
|
|
198
|
-
}
|
|
199
|
-
match(e) {
|
|
200
|
-
if (e.length < this.pattern.length)
|
|
201
|
-
return null;
|
|
202
|
-
let t = e.slice(0, this.pattern.length), n = t == this.pattern ? 0 : t.toLowerCase() == this.folded ? -200 : null;
|
|
203
|
-
return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
const g = /* @__PURE__ */ ye.define({
|
|
207
|
-
combine(i) {
|
|
208
|
-
return ke(i, {
|
|
209
|
-
activateOnTyping: !0,
|
|
210
|
-
activateOnCompletion: () => !1,
|
|
211
|
-
activateOnTypingDelay: 100,
|
|
212
|
-
selectOnOpen: !0,
|
|
213
|
-
override: null,
|
|
214
|
-
closeOnBlur: !0,
|
|
215
|
-
maxRenderedOptions: 100,
|
|
216
|
-
defaultKeymap: !0,
|
|
217
|
-
tooltipClass: () => "",
|
|
218
|
-
optionClass: () => "",
|
|
219
|
-
aboveCursor: !1,
|
|
220
|
-
icons: !0,
|
|
221
|
-
addToOptions: [],
|
|
222
|
-
positionInfo: Xe,
|
|
223
|
-
filterStrict: !1,
|
|
224
|
-
compareCompletions: (e, t) => (e.sortText || e.label).localeCompare(t.sortText || t.label),
|
|
225
|
-
interactionDelay: 75,
|
|
226
|
-
updateSyncTime: 100
|
|
227
|
-
}, {
|
|
228
|
-
defaultKeymap: (e, t) => e && t,
|
|
229
|
-
closeOnBlur: (e, t) => e && t,
|
|
230
|
-
icons: (e, t) => e && t,
|
|
231
|
-
tooltipClass: (e, t) => (n) => he(e(n), t(n)),
|
|
232
|
-
optionClass: (e, t) => (n) => he(e(n), t(n)),
|
|
233
|
-
addToOptions: (e, t) => e.concat(t),
|
|
234
|
-
filterStrict: (e, t) => e || t
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
function he(i, e) {
|
|
239
|
-
return i ? e ? i + " " + e : i : e;
|
|
240
|
-
}
|
|
241
|
-
function Xe(i, e, t, n, o, s) {
|
|
242
|
-
let l = i.textDirection == Ue.RTL, a = l, r = !1, h = "top", c, f, p = e.left - o.left, u = o.right - e.right, m = n.right - n.left, y = n.bottom - n.top;
|
|
243
|
-
if (a && p < Math.min(m, u) ? a = !1 : !a && u < Math.min(m, p) && (a = !0), m <= (a ? p : u))
|
|
244
|
-
c = Math.max(o.top, Math.min(t.top, o.bottom - y)) - e.top, f = Math.min(400, a ? p : u);
|
|
245
|
-
else {
|
|
246
|
-
r = !0, f = Math.min(
|
|
247
|
-
400,
|
|
248
|
-
(l ? e.right : o.right - e.left) - 30
|
|
249
|
-
/* Info.Margin */
|
|
250
|
-
);
|
|
251
|
-
let d = o.bottom - e.bottom;
|
|
252
|
-
d >= y || d > e.top ? c = t.bottom - e.top : (h = "bottom", c = e.bottom - t.top);
|
|
253
|
-
}
|
|
254
|
-
let k = (e.bottom - e.top) / s.offsetHeight, I = (e.right - e.left) / s.offsetWidth;
|
|
255
|
-
return {
|
|
256
|
-
style: `${h}: ${c / k}px; max-width: ${f / I}px`,
|
|
257
|
-
class: "cm-completionInfo-" + (r ? l ? "left-narrow" : "right-narrow" : a ? "left" : "right")
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
function Ye(i) {
|
|
261
|
-
let e = i.addToOptions.slice();
|
|
262
|
-
return i.icons && e.push({
|
|
263
|
-
render(t) {
|
|
264
|
-
let n = document.createElement("div");
|
|
265
|
-
return n.classList.add("cm-completionIcon"), t.type && n.classList.add(...t.type.split(/\s+/g).map((o) => "cm-completionIcon-" + o)), n.setAttribute("aria-hidden", "true"), n;
|
|
266
|
-
},
|
|
267
|
-
position: 20
|
|
268
|
-
}), e.push({
|
|
269
|
-
render(t, n, o, s) {
|
|
270
|
-
let l = document.createElement("span");
|
|
271
|
-
l.className = "cm-completionLabel";
|
|
272
|
-
let a = t.displayLabel || t.label, r = 0;
|
|
273
|
-
for (let h = 0; h < s.length; ) {
|
|
274
|
-
let c = s[h++], f = s[h++];
|
|
275
|
-
c > r && l.appendChild(document.createTextNode(a.slice(r, c)));
|
|
276
|
-
let p = l.appendChild(document.createElement("span"));
|
|
277
|
-
p.appendChild(document.createTextNode(a.slice(c, f))), p.className = "cm-completionMatchedText", r = f;
|
|
278
|
-
}
|
|
279
|
-
return r < a.length && l.appendChild(document.createTextNode(a.slice(r))), l;
|
|
280
|
-
},
|
|
281
|
-
position: 50
|
|
282
|
-
}, {
|
|
283
|
-
render(t) {
|
|
284
|
-
if (!t.detail)
|
|
285
|
-
return null;
|
|
286
|
-
let n = document.createElement("span");
|
|
287
|
-
return n.className = "cm-completionDetail", n.textContent = t.detail, n;
|
|
288
|
-
},
|
|
289
|
-
position: 80
|
|
290
|
-
}), e.sort((t, n) => t.position - n.position).map((t) => t.render);
|
|
291
|
-
}
|
|
292
|
-
function Q(i, e, t) {
|
|
293
|
-
if (i <= t)
|
|
294
|
-
return { from: 0, to: i };
|
|
295
|
-
if (e < 0 && (e = 0), e <= i >> 1) {
|
|
296
|
-
let o = Math.floor(e / t);
|
|
297
|
-
return { from: o * t, to: (o + 1) * t };
|
|
298
|
-
}
|
|
299
|
-
let n = Math.floor((i - e) / t);
|
|
300
|
-
return { from: i - (n + 1) * t, to: i - n * t };
|
|
301
|
-
}
|
|
302
|
-
class Ge {
|
|
303
|
-
constructor(e, t, n) {
|
|
304
|
-
this.view = e, this.stateField = t, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
|
|
305
|
-
read: () => this.measureInfo(),
|
|
306
|
-
write: (r) => this.placeInfo(r),
|
|
307
|
-
key: this
|
|
308
|
-
}, this.space = null, this.currentClass = "";
|
|
309
|
-
let o = e.state.field(t), { options: s, selected: l } = o.open, a = e.state.facet(g);
|
|
310
|
-
this.optionContent = Ye(a), this.optionClass = a.optionClass, this.tooltipClass = a.tooltipClass, this.range = Q(s.length, l, a.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (r) => {
|
|
311
|
-
let { options: h } = e.state.field(t).open;
|
|
312
|
-
for (let c = r.target, f; c && c != this.dom; c = c.parentNode)
|
|
313
|
-
if (c.nodeName == "LI" && (f = /-(\d+)$/.exec(c.id)) && +f[1] < h.length) {
|
|
314
|
-
this.applyCompletion(e, h[+f[1]]), r.preventDefault();
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
}), this.dom.addEventListener("focusout", (r) => {
|
|
318
|
-
let h = e.state.field(this.stateField, !1);
|
|
319
|
-
h && h.tooltip && e.state.facet(g).closeOnBlur && r.relatedTarget != e.contentDOM && e.dispatch({ effects: B.of(null) });
|
|
320
|
-
}), this.showOptions(s, o.id);
|
|
321
|
-
}
|
|
322
|
-
mount() {
|
|
323
|
-
this.updateSel();
|
|
324
|
-
}
|
|
325
|
-
showOptions(e, t) {
|
|
326
|
-
this.list && this.list.remove(), this.list = this.dom.appendChild(this.createListBox(e, t, this.range)), this.list.addEventListener("scroll", () => {
|
|
327
|
-
this.info && this.view.requestMeasure(this.placeInfoReq);
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
update(e) {
|
|
331
|
-
var t;
|
|
332
|
-
let n = e.state.field(this.stateField), o = e.startState.field(this.stateField);
|
|
333
|
-
if (this.updateTooltipClass(e.state), n != o) {
|
|
334
|
-
let { options: s, selected: l, disabled: a } = n.open;
|
|
335
|
-
(!o.open || o.open.options != s) && (this.range = Q(s.length, l, e.state.facet(g).maxRenderedOptions), this.showOptions(s, n.id)), this.updateSel(), a != ((t = o.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
updateTooltipClass(e) {
|
|
339
|
-
let t = this.tooltipClass(e);
|
|
340
|
-
if (t != this.currentClass) {
|
|
341
|
-
for (let n of this.currentClass.split(" "))
|
|
342
|
-
n && this.dom.classList.remove(n);
|
|
343
|
-
for (let n of t.split(" "))
|
|
344
|
-
n && this.dom.classList.add(n);
|
|
345
|
-
this.currentClass = t;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
positioned(e) {
|
|
349
|
-
this.space = e, this.info && this.view.requestMeasure(this.placeInfoReq);
|
|
350
|
-
}
|
|
351
|
-
updateSel() {
|
|
352
|
-
let e = this.view.state.field(this.stateField), t = e.open;
|
|
353
|
-
(t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Q(t.options.length, t.selected, this.view.state.facet(g).maxRenderedOptions), this.showOptions(t.options, e.id));
|
|
354
|
-
let n = this.updateSelectedOption(t.selected);
|
|
355
|
-
if (n) {
|
|
356
|
-
this.destroyInfo();
|
|
357
|
-
let { completion: o } = t.options[t.selected], { info: s } = o;
|
|
358
|
-
if (!s)
|
|
359
|
-
return;
|
|
360
|
-
let l = typeof s == "string" ? document.createTextNode(s) : s(o);
|
|
361
|
-
if (!l)
|
|
362
|
-
return;
|
|
363
|
-
"then" in l ? l.then((a) => {
|
|
364
|
-
a && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(a, o);
|
|
365
|
-
}).catch((a) => Z(this.view.state, a, "completion info")) : (this.addInfoPane(l, o), n.setAttribute("aria-describedby", this.info.id));
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
addInfoPane(e, t) {
|
|
369
|
-
this.destroyInfo();
|
|
370
|
-
let n = this.info = document.createElement("div");
|
|
371
|
-
if (n.className = "cm-tooltip cm-completionInfo", n.id = "cm-completionInfo-" + Math.floor(Math.random() * 65535).toString(16), e.nodeType != null)
|
|
372
|
-
n.appendChild(e), this.infoDestroy = null;
|
|
373
|
-
else {
|
|
374
|
-
let { dom: o, destroy: s } = e;
|
|
375
|
-
n.appendChild(o), this.infoDestroy = s || null;
|
|
376
|
-
}
|
|
377
|
-
this.dom.appendChild(n), this.view.requestMeasure(this.placeInfoReq);
|
|
378
|
-
}
|
|
379
|
-
updateSelectedOption(e) {
|
|
380
|
-
let t = null;
|
|
381
|
-
for (let n = this.list.firstChild, o = this.range.from; n; n = n.nextSibling, o++)
|
|
382
|
-
n.nodeName != "LI" || !n.id ? o-- : o == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), t = n) : n.hasAttribute("aria-selected") && (n.removeAttribute("aria-selected"), n.removeAttribute("aria-describedby"));
|
|
383
|
-
return t && Ze(this.list, t), t;
|
|
384
|
-
}
|
|
385
|
-
measureInfo() {
|
|
386
|
-
let e = this.dom.querySelector("[aria-selected]");
|
|
387
|
-
if (!e || !this.info)
|
|
388
|
-
return null;
|
|
389
|
-
let t = this.dom.getBoundingClientRect(), n = this.info.getBoundingClientRect(), o = e.getBoundingClientRect(), s = this.space;
|
|
390
|
-
if (!s) {
|
|
391
|
-
let l = this.dom.ownerDocument.documentElement;
|
|
392
|
-
s = { left: 0, top: 0, right: l.clientWidth, bottom: l.clientHeight };
|
|
393
|
-
}
|
|
394
|
-
return o.top > Math.min(s.bottom, t.bottom) - 10 || o.bottom < Math.max(s.top, t.top) + 10 ? null : this.view.state.facet(g).positionInfo(this.view, t, o, n, s, this.dom);
|
|
395
|
-
}
|
|
396
|
-
placeInfo(e) {
|
|
397
|
-
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
398
|
-
}
|
|
399
|
-
createListBox(e, t, n) {
|
|
400
|
-
const o = document.createElement("ul");
|
|
401
|
-
o.id = t, o.setAttribute("role", "listbox"), o.setAttribute("aria-expanded", "true"), o.setAttribute("aria-label", this.view.state.phrase("Completions")), o.addEventListener("mousedown", (l) => {
|
|
402
|
-
l.target == o && l.preventDefault();
|
|
403
|
-
});
|
|
404
|
-
let s = null;
|
|
405
|
-
for (let l = n.from; l < n.to; l++) {
|
|
406
|
-
let { completion: a, match: r } = e[l], { section: h } = a;
|
|
407
|
-
if (h) {
|
|
408
|
-
let p = typeof h == "string" ? h : h.name;
|
|
409
|
-
if (p != s && (l > n.from || n.from == 0))
|
|
410
|
-
if (s = p, typeof h != "string" && h.header)
|
|
411
|
-
o.appendChild(h.header(h));
|
|
412
|
-
else {
|
|
413
|
-
let u = o.appendChild(document.createElement("completion-section"));
|
|
414
|
-
u.textContent = p;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
const c = o.appendChild(document.createElement("li"));
|
|
418
|
-
c.id = t + "-" + l, c.setAttribute("role", "option");
|
|
419
|
-
let f = this.optionClass(a);
|
|
420
|
-
f && (c.className = f);
|
|
421
|
-
for (let p of this.optionContent) {
|
|
422
|
-
let u = p(a, this.view.state, this.view, r);
|
|
423
|
-
u && c.appendChild(u);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
return n.from && o.classList.add("cm-completionListIncompleteTop"), n.to < e.length && o.classList.add("cm-completionListIncompleteBottom"), o;
|
|
427
|
-
}
|
|
428
|
-
destroyInfo() {
|
|
429
|
-
this.info && (this.infoDestroy && this.infoDestroy(), this.info.remove(), this.info = null);
|
|
430
|
-
}
|
|
431
|
-
destroy() {
|
|
432
|
-
this.destroyInfo();
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
function Je(i, e) {
|
|
436
|
-
return (t) => new Ge(t, i, e);
|
|
437
|
-
}
|
|
438
|
-
function Ze(i, e) {
|
|
439
|
-
let t = i.getBoundingClientRect(), n = e.getBoundingClientRect(), o = t.height / i.offsetHeight;
|
|
440
|
-
n.top < t.top ? i.scrollTop -= (t.top - n.top) / o : n.bottom > t.bottom && (i.scrollTop += (n.bottom - t.bottom) / o);
|
|
441
|
-
}
|
|
442
|
-
function pe(i) {
|
|
443
|
-
return (i.boost || 0) * 100 + (i.apply ? 10 : 0) + (i.info ? 5 : 0) + (i.type ? 1 : 0);
|
|
444
|
-
}
|
|
445
|
-
function _e(i, e) {
|
|
446
|
-
let t = [], n = null, o = null, s = (c) => {
|
|
447
|
-
t.push(c);
|
|
448
|
-
let { section: f } = c.completion;
|
|
449
|
-
if (f) {
|
|
450
|
-
n || (n = []);
|
|
451
|
-
let p = typeof f == "string" ? f : f.name;
|
|
452
|
-
n.some((u) => u.name == p) || n.push(typeof f == "string" ? { name: p } : f);
|
|
453
|
-
}
|
|
454
|
-
}, l = e.facet(g);
|
|
455
|
-
for (let c of i)
|
|
456
|
-
if (c.hasResult()) {
|
|
457
|
-
let f = c.result.getMatch;
|
|
458
|
-
if (c.result.filter === !1)
|
|
459
|
-
for (let p of c.result.options)
|
|
460
|
-
s(new ce(p, c.source, f ? f(p) : [], 1e9 - t.length));
|
|
461
|
-
else {
|
|
462
|
-
let p = e.sliceDoc(c.from, c.to), u, m = l.filterStrict ? new Qe(p) : new Ke(p);
|
|
463
|
-
for (let y of c.result.options)
|
|
464
|
-
if (u = m.match(y.label)) {
|
|
465
|
-
let k = y.displayLabel ? f ? f(y, u.matched) : [] : u.matched, I = u.score + (y.boost || 0);
|
|
466
|
-
if (s(new ce(y, c.source, k, I)), typeof y.section == "object" && y.section.rank === "dynamic") {
|
|
467
|
-
let { name: d } = y.section;
|
|
468
|
-
o || (o = /* @__PURE__ */ Object.create(null)), o[d] = Math.max(I, o[d] || -1e9);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (n) {
|
|
474
|
-
let c = /* @__PURE__ */ Object.create(null), f = 0, p = (u, m) => (u.rank === "dynamic" && m.rank === "dynamic" ? o[m.name] - o[u.name] : 0) || (typeof u.rank == "number" ? u.rank : 1e9) - (typeof m.rank == "number" ? m.rank : 1e9) || (u.name < m.name ? -1 : 1);
|
|
475
|
-
for (let u of n.sort(p))
|
|
476
|
-
f -= 1e5, c[u.name] = f;
|
|
477
|
-
for (let u of t) {
|
|
478
|
-
let { section: m } = u.completion;
|
|
479
|
-
m && (u.score += c[typeof m == "string" ? m : m.name]);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
let a = [], r = null, h = l.compareCompletions;
|
|
483
|
-
for (let c of t.sort((f, p) => p.score - f.score || h(f.completion, p.completion))) {
|
|
484
|
-
let f = c.completion;
|
|
485
|
-
!r || r.label != f.label || r.detail != f.detail || r.type != null && f.type != null && r.type != f.type || r.apply != f.apply || r.boost != f.boost ? a.push(c) : pe(c.completion) > pe(r) && (a[a.length - 1] = c), r = c.completion;
|
|
486
|
-
}
|
|
487
|
-
return a;
|
|
488
|
-
}
|
|
489
|
-
class P {
|
|
490
|
-
constructor(e, t, n, o, s, l) {
|
|
491
|
-
this.options = e, this.attrs = t, this.tooltip = n, this.timestamp = o, this.selected = s, this.disabled = l;
|
|
492
|
-
}
|
|
493
|
-
setSelected(e, t) {
|
|
494
|
-
return e == this.selected || e >= this.options.length ? this : new P(this.options, ue(t, e), this.tooltip, this.timestamp, e, this.disabled);
|
|
495
|
-
}
|
|
496
|
-
static build(e, t, n, o, s, l) {
|
|
497
|
-
if (o && !l && e.some((h) => h.isPending))
|
|
498
|
-
return o.setDisabled();
|
|
499
|
-
let a = _e(e, t);
|
|
500
|
-
if (!a.length)
|
|
501
|
-
return o && e.some((h) => h.isPending) ? o.setDisabled() : null;
|
|
502
|
-
let r = t.facet(g).selectOnOpen ? 0 : -1;
|
|
503
|
-
if (o && o.selected != r && o.selected != -1) {
|
|
504
|
-
let h = o.options[o.selected].completion;
|
|
505
|
-
for (let c = 0; c < a.length; c++)
|
|
506
|
-
if (a[c].completion == h) {
|
|
507
|
-
r = c;
|
|
508
|
-
break;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
return new P(a, ue(n, r), {
|
|
512
|
-
pos: e.reduce((h, c) => c.hasResult() ? Math.min(h, c.from) : h, 1e8),
|
|
513
|
-
create: st,
|
|
514
|
-
above: s.aboveCursor
|
|
515
|
-
}, o ? o.timestamp : Date.now(), r, !1);
|
|
516
|
-
}
|
|
517
|
-
map(e) {
|
|
518
|
-
return new P(this.options, this.attrs, { ...this.tooltip, pos: e.mapPos(this.tooltip.pos) }, this.timestamp, this.selected, this.disabled);
|
|
519
|
-
}
|
|
520
|
-
setDisabled() {
|
|
521
|
-
return new P(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
class H {
|
|
525
|
-
constructor(e, t, n) {
|
|
526
|
-
this.active = e, this.id = t, this.open = n;
|
|
527
|
-
}
|
|
528
|
-
static start() {
|
|
529
|
-
return new H(nt, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
530
|
-
}
|
|
531
|
-
update(e) {
|
|
532
|
-
let { state: t } = e, n = t.facet(g), s = (n.override || t.languageDataAt("autocomplete", E(t)).map(ze)).map((r) => (this.active.find((c) => c.source == r) || new C(
|
|
533
|
-
r,
|
|
534
|
-
this.active.some(
|
|
535
|
-
(c) => c.state != 0
|
|
536
|
-
/* State.Inactive */
|
|
537
|
-
) ? 1 : 0
|
|
538
|
-
/* State.Inactive */
|
|
539
|
-
)).update(e, n));
|
|
540
|
-
s.length == this.active.length && s.every((r, h) => r == this.active[h]) && (s = this.active);
|
|
541
|
-
let l = this.open, a = e.effects.some((r) => r.is(ie));
|
|
542
|
-
l && e.docChanged && (l = l.map(e.changes)), e.selection || s.some((r) => r.hasResult() && e.changes.touchesRange(r.from, r.to)) || !et(s, this.active) || a ? l = P.build(s, t, this.id, l, n, a) : l && l.disabled && !s.some((r) => r.isPending) && (l = null), !l && s.every((r) => !r.isPending) && s.some((r) => r.hasResult()) && (s = s.map((r) => r.hasResult() ? new C(
|
|
543
|
-
r.source,
|
|
544
|
-
0
|
|
545
|
-
/* State.Inactive */
|
|
546
|
-
) : r));
|
|
547
|
-
for (let r of e.effects)
|
|
548
|
-
r.is(Ie) && (l = l && l.setSelected(r.value, this.id));
|
|
549
|
-
return s == this.active && l == this.open ? this : new H(s, this.id, l);
|
|
550
|
-
}
|
|
551
|
-
get tooltip() {
|
|
552
|
-
return this.open ? this.open.tooltip : null;
|
|
553
|
-
}
|
|
554
|
-
get attrs() {
|
|
555
|
-
return this.open ? this.open.attrs : this.active.length ? tt : it;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
function et(i, e) {
|
|
559
|
-
if (i == e)
|
|
560
|
-
return !0;
|
|
561
|
-
for (let t = 0, n = 0; ; ) {
|
|
562
|
-
for (; t < i.length && !i[t].hasResult(); )
|
|
563
|
-
t++;
|
|
564
|
-
for (; n < e.length && !e[n].hasResult(); )
|
|
565
|
-
n++;
|
|
566
|
-
let o = t == i.length, s = n == e.length;
|
|
567
|
-
if (o || s)
|
|
568
|
-
return o == s;
|
|
569
|
-
if (i[t++].result != e[n++].result)
|
|
570
|
-
return !1;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
const tt = {
|
|
574
|
-
"aria-autocomplete": "list"
|
|
575
|
-
}, it = {};
|
|
576
|
-
function ue(i, e) {
|
|
577
|
-
let t = {
|
|
578
|
-
"aria-autocomplete": "list",
|
|
579
|
-
"aria-haspopup": "listbox",
|
|
580
|
-
"aria-controls": i
|
|
581
|
-
};
|
|
582
|
-
return e > -1 && (t["aria-activedescendant"] = i + "-" + e), t;
|
|
583
|
-
}
|
|
584
|
-
const nt = [];
|
|
585
|
-
function Se(i, e) {
|
|
586
|
-
if (i.isUserEvent("input.complete")) {
|
|
587
|
-
let n = i.annotation(te);
|
|
588
|
-
if (n && e.activateOnCompletion(n))
|
|
589
|
-
return 12;
|
|
590
|
-
}
|
|
591
|
-
let t = i.isUserEvent("input.type");
|
|
592
|
-
return t && e.activateOnTyping ? 5 : t ? 1 : i.isUserEvent("delete.backward") ? 2 : i.selection ? 8 : i.docChanged ? 16 : 0;
|
|
593
|
-
}
|
|
594
|
-
class C {
|
|
595
|
-
constructor(e, t, n = !1) {
|
|
596
|
-
this.source = e, this.state = t, this.explicit = n;
|
|
597
|
-
}
|
|
598
|
-
hasResult() {
|
|
599
|
-
return !1;
|
|
600
|
-
}
|
|
601
|
-
get isPending() {
|
|
602
|
-
return this.state == 1;
|
|
603
|
-
}
|
|
604
|
-
update(e, t) {
|
|
605
|
-
let n = Se(e, t), o = this;
|
|
606
|
-
(n & 8 || n & 16 && this.touches(e)) && (o = new C(
|
|
607
|
-
o.source,
|
|
608
|
-
0
|
|
609
|
-
/* State.Inactive */
|
|
610
|
-
)), n & 4 && o.state == 0 && (o = new C(
|
|
611
|
-
this.source,
|
|
612
|
-
1
|
|
613
|
-
/* State.Pending */
|
|
614
|
-
)), o = o.updateFor(e, n);
|
|
615
|
-
for (let s of e.effects)
|
|
616
|
-
if (s.is(j))
|
|
617
|
-
o = new C(o.source, 1, s.value);
|
|
618
|
-
else if (s.is(B))
|
|
619
|
-
o = new C(
|
|
620
|
-
o.source,
|
|
621
|
-
0
|
|
622
|
-
/* State.Inactive */
|
|
623
|
-
);
|
|
624
|
-
else if (s.is(ie))
|
|
625
|
-
for (let l of s.value)
|
|
626
|
-
l.source == o.source && (o = l);
|
|
627
|
-
return o;
|
|
628
|
-
}
|
|
629
|
-
updateFor(e, t) {
|
|
630
|
-
return this.map(e.changes);
|
|
631
|
-
}
|
|
632
|
-
map(e) {
|
|
633
|
-
return this;
|
|
634
|
-
}
|
|
635
|
-
touches(e) {
|
|
636
|
-
return e.changes.touchesRange(E(e.state));
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
class R extends C {
|
|
640
|
-
constructor(e, t, n, o, s, l) {
|
|
641
|
-
super(e, 3, t), this.limit = n, this.result = o, this.from = s, this.to = l;
|
|
642
|
-
}
|
|
643
|
-
hasResult() {
|
|
644
|
-
return !0;
|
|
645
|
-
}
|
|
646
|
-
updateFor(e, t) {
|
|
647
|
-
var n;
|
|
648
|
-
if (!(t & 3))
|
|
649
|
-
return this.map(e.changes);
|
|
650
|
-
let o = this.result;
|
|
651
|
-
o.map && !e.changes.empty && (o = o.map(o, e.changes));
|
|
652
|
-
let s = e.changes.mapPos(this.from), l = e.changes.mapPos(this.to, 1), a = E(e.state);
|
|
653
|
-
if (a > l || !o || t & 2 && (E(e.startState) == this.from || a < this.limit))
|
|
654
|
-
return new C(
|
|
655
|
-
this.source,
|
|
656
|
-
t & 4 ? 1 : 0
|
|
657
|
-
/* State.Inactive */
|
|
658
|
-
);
|
|
659
|
-
let r = e.changes.mapPos(this.limit);
|
|
660
|
-
return ot(o.validFor, e.state, s, l) ? new R(this.source, this.explicit, r, o, s, l) : o.update && (o = o.update(o, s, l, new Ce(e.state, a, !1))) ? new R(this.source, this.explicit, r, o, o.from, (n = o.to) !== null && n !== void 0 ? n : E(e.state)) : new C(this.source, 1, this.explicit);
|
|
661
|
-
}
|
|
662
|
-
map(e) {
|
|
663
|
-
return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new R(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new C(
|
|
664
|
-
this.source,
|
|
665
|
-
0
|
|
666
|
-
/* State.Inactive */
|
|
667
|
-
);
|
|
668
|
-
}
|
|
669
|
-
touches(e) {
|
|
670
|
-
return e.changes.touchesRange(this.from, this.to);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
function ot(i, e, t, n) {
|
|
674
|
-
if (!i)
|
|
675
|
-
return !1;
|
|
676
|
-
let o = e.sliceDoc(t, n);
|
|
677
|
-
return typeof i == "function" ? i(o, t, n, e) : ve(i, !0).test(o);
|
|
678
|
-
}
|
|
679
|
-
const ie = /* @__PURE__ */ O.define({
|
|
680
|
-
map(i, e) {
|
|
681
|
-
return i.map((t) => t.map(e));
|
|
682
|
-
}
|
|
683
|
-
}), Ie = /* @__PURE__ */ O.define(), x = /* @__PURE__ */ _.define({
|
|
684
|
-
create() {
|
|
685
|
-
return H.start();
|
|
686
|
-
},
|
|
687
|
-
update(i, e) {
|
|
688
|
-
return i.update(e);
|
|
689
|
-
},
|
|
690
|
-
provide: (i) => [
|
|
691
|
-
$e.from(i, (e) => e.tooltip),
|
|
692
|
-
M.contentAttributes.from(i, (e) => e.attrs)
|
|
693
|
-
]
|
|
694
|
-
});
|
|
695
|
-
function ne(i, e) {
|
|
696
|
-
const t = e.completion.apply || e.completion.label;
|
|
697
|
-
let n = i.state.field(x).active.find((o) => o.source == e.source);
|
|
698
|
-
return n instanceof R ? (typeof t == "string" ? i.dispatch({
|
|
699
|
-
...qe(i.state, t, n.from, n.to),
|
|
700
|
-
annotations: te.of(e.completion)
|
|
701
|
-
}) : t(i, e.completion, n.from, n.to), !0) : !1;
|
|
702
|
-
}
|
|
703
|
-
const st = /* @__PURE__ */ Je(x, ne);
|
|
704
|
-
function W(i, e = "option") {
|
|
705
|
-
return (t) => {
|
|
706
|
-
let n = t.state.field(x, !1);
|
|
707
|
-
if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(g).interactionDelay)
|
|
708
|
-
return !1;
|
|
709
|
-
let o = 1, s;
|
|
710
|
-
e == "page" && (s = xe(t, n.open.tooltip)) && (o = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1));
|
|
711
|
-
let { length: l } = n.open.options, a = n.open.selected > -1 ? n.open.selected + o * (i ? 1 : -1) : i ? 0 : l - 1;
|
|
712
|
-
return a < 0 ? a = e == "page" ? 0 : l - 1 : a >= l && (a = e == "page" ? l - 1 : 0), t.dispatch({ effects: Ie.of(a) }), !0;
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
const lt = (i) => {
|
|
716
|
-
let e = i.state.field(x, !1);
|
|
717
|
-
return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(g).interactionDelay ? !1 : ne(i, e.open.options[e.open.selected]);
|
|
718
|
-
}, X = (i) => i.state.field(x, !1) ? (i.dispatch({ effects: j.of(!0) }), !0) : !1, rt = (i) => {
|
|
719
|
-
let e = i.state.field(x, !1);
|
|
720
|
-
return !e || !e.active.some(
|
|
721
|
-
(t) => t.state != 0
|
|
722
|
-
/* State.Inactive */
|
|
723
|
-
) ? !1 : (i.dispatch({ effects: B.of(null) }), !0);
|
|
724
|
-
};
|
|
725
|
-
class at {
|
|
726
|
-
constructor(e, t) {
|
|
727
|
-
this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
const ct = 50, ft = 1e3, ht = /* @__PURE__ */ Ne.fromClass(class {
|
|
731
|
-
constructor(i) {
|
|
732
|
-
this.view = i, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
733
|
-
for (let e of i.state.field(x).active)
|
|
734
|
-
e.isPending && this.startQuery(e);
|
|
735
|
-
}
|
|
736
|
-
update(i) {
|
|
737
|
-
let e = i.state.field(x), t = i.state.facet(g);
|
|
738
|
-
if (!i.selectionSet && !i.docChanged && i.startState.field(x) == e)
|
|
739
|
-
return;
|
|
740
|
-
let n = i.transactions.some((s) => {
|
|
741
|
-
let l = Se(s, t);
|
|
742
|
-
return l & 8 || (s.selection || s.docChanged) && !(l & 3);
|
|
743
|
-
});
|
|
744
|
-
for (let s = 0; s < this.running.length; s++) {
|
|
745
|
-
let l = this.running[s];
|
|
746
|
-
if (n || l.context.abortOnDocChange && i.docChanged || l.updates.length + i.transactions.length > ct && Date.now() - l.time > ft) {
|
|
747
|
-
for (let a of l.context.abortListeners)
|
|
748
|
-
try {
|
|
749
|
-
a();
|
|
750
|
-
} catch (r) {
|
|
751
|
-
Z(this.view.state, r);
|
|
752
|
-
}
|
|
753
|
-
l.context.abortListeners = null, this.running.splice(s--, 1);
|
|
754
|
-
} else
|
|
755
|
-
l.updates.push(...i.transactions);
|
|
756
|
-
}
|
|
757
|
-
this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((s) => s.effects.some((l) => l.is(j))) && (this.pendingStart = !0);
|
|
758
|
-
let o = this.pendingStart ? 50 : t.activateOnTypingDelay;
|
|
759
|
-
if (this.debounceUpdate = e.active.some((s) => s.isPending && !this.running.some((l) => l.active.source == s.source)) ? setTimeout(() => this.startUpdate(), o) : -1, this.composing != 0)
|
|
760
|
-
for (let s of i.transactions)
|
|
761
|
-
s.isUserEvent("input.type") ? this.composing = 2 : this.composing == 2 && s.selection && (this.composing = 3);
|
|
762
|
-
}
|
|
763
|
-
startUpdate() {
|
|
764
|
-
this.debounceUpdate = -1, this.pendingStart = !1;
|
|
765
|
-
let { state: i } = this.view, e = i.field(x);
|
|
766
|
-
for (let t of e.active)
|
|
767
|
-
t.isPending && !this.running.some((n) => n.active.source == t.source) && this.startQuery(t);
|
|
768
|
-
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(g).updateSyncTime));
|
|
769
|
-
}
|
|
770
|
-
startQuery(i) {
|
|
771
|
-
let { state: e } = this.view, t = E(e), n = new Ce(e, t, i.explicit, this.view), o = new at(i, n);
|
|
772
|
-
this.running.push(o), Promise.resolve(i.source(n)).then((s) => {
|
|
773
|
-
o.context.aborted || (o.done = s || null, this.scheduleAccept());
|
|
774
|
-
}, (s) => {
|
|
775
|
-
this.view.dispatch({ effects: B.of(null) }), Z(this.view.state, s);
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
scheduleAccept() {
|
|
779
|
-
this.running.every((i) => i.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(g).updateSyncTime));
|
|
780
|
-
}
|
|
781
|
-
// For each finished query in this.running, try to create a result
|
|
782
|
-
// or, if appropriate, restart the query.
|
|
783
|
-
accept() {
|
|
784
|
-
var i;
|
|
785
|
-
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
786
|
-
let e = [], t = this.view.state.facet(g), n = this.view.state.field(x);
|
|
787
|
-
for (let o = 0; o < this.running.length; o++) {
|
|
788
|
-
let s = this.running[o];
|
|
789
|
-
if (s.done === void 0)
|
|
790
|
-
continue;
|
|
791
|
-
if (this.running.splice(o--, 1), s.done) {
|
|
792
|
-
let a = E(s.updates.length ? s.updates[0].startState : this.view.state), r = Math.min(a, s.done.from + (s.active.explicit ? 0 : 1)), h = new R(s.active.source, s.active.explicit, r, s.done, s.done.from, (i = s.done.to) !== null && i !== void 0 ? i : a);
|
|
793
|
-
for (let c of s.updates)
|
|
794
|
-
h = h.update(c, t);
|
|
795
|
-
if (h.hasResult()) {
|
|
796
|
-
e.push(h);
|
|
797
|
-
continue;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
let l = n.active.find((a) => a.source == s.active.source);
|
|
801
|
-
if (l && l.isPending)
|
|
802
|
-
if (s.done == null) {
|
|
803
|
-
let a = new C(
|
|
804
|
-
s.active.source,
|
|
805
|
-
0
|
|
806
|
-
/* State.Inactive */
|
|
807
|
-
);
|
|
808
|
-
for (let r of s.updates)
|
|
809
|
-
a = a.update(r, t);
|
|
810
|
-
a.isPending || e.push(a);
|
|
811
|
-
} else
|
|
812
|
-
this.startQuery(l);
|
|
813
|
-
}
|
|
814
|
-
(e.length || n.open && n.open.disabled) && this.view.dispatch({ effects: ie.of(e) });
|
|
815
|
-
}
|
|
816
|
-
}, {
|
|
817
|
-
eventHandlers: {
|
|
818
|
-
blur(i) {
|
|
819
|
-
let e = this.view.state.field(x, !1);
|
|
820
|
-
if (e && e.tooltip && this.view.state.facet(g).closeOnBlur) {
|
|
821
|
-
let t = e.open && xe(this.view, e.open.tooltip);
|
|
822
|
-
(!t || !t.dom.contains(i.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: B.of(null) }), 10);
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
compositionstart() {
|
|
826
|
-
this.composing = 1;
|
|
827
|
-
},
|
|
828
|
-
compositionend() {
|
|
829
|
-
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: j.of(!1) }), 20), this.composing = 0;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}), pt = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), ut = /* @__PURE__ */ ee.highest(/* @__PURE__ */ M.domEventHandlers({
|
|
833
|
-
keydown(i, e) {
|
|
834
|
-
let t = e.state.field(x, !1);
|
|
835
|
-
if (!t || !t.open || t.open.disabled || t.open.selected < 0 || i.key.length > 1 || i.ctrlKey && !(pt && i.altKey) || i.metaKey)
|
|
836
|
-
return !1;
|
|
837
|
-
let n = t.open.options[t.open.selected], o = t.active.find((l) => l.source == n.source), s = n.completion.commitCharacters || o.result.commitCharacters;
|
|
838
|
-
return s && s.indexOf(i.key) > -1 && ne(e, n), !1;
|
|
839
|
-
}
|
|
840
|
-
})), Te = /* @__PURE__ */ M.baseTheme({
|
|
841
|
-
".cm-tooltip.cm-tooltip-autocomplete": {
|
|
842
|
-
"& > ul": {
|
|
843
|
-
fontFamily: "monospace",
|
|
844
|
-
whiteSpace: "nowrap",
|
|
845
|
-
overflow: "hidden auto",
|
|
846
|
-
maxWidth_fallback: "700px",
|
|
847
|
-
maxWidth: "min(700px, 95vw)",
|
|
848
|
-
minWidth: "250px",
|
|
849
|
-
maxHeight: "10em",
|
|
850
|
-
height: "100%",
|
|
851
|
-
listStyle: "none",
|
|
852
|
-
margin: 0,
|
|
853
|
-
padding: 0,
|
|
854
|
-
"& > li, & > completion-section": {
|
|
855
|
-
padding: "1px 3px",
|
|
856
|
-
lineHeight: 1.2
|
|
857
|
-
},
|
|
858
|
-
"& > li": {
|
|
859
|
-
overflowX: "hidden",
|
|
860
|
-
textOverflow: "ellipsis",
|
|
861
|
-
cursor: "pointer"
|
|
862
|
-
},
|
|
863
|
-
"& > completion-section": {
|
|
864
|
-
display: "list-item",
|
|
865
|
-
borderBottom: "1px solid silver",
|
|
866
|
-
paddingLeft: "0.5em",
|
|
867
|
-
opacity: 0.7
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
},
|
|
871
|
-
"&light .cm-tooltip-autocomplete ul li[aria-selected]": {
|
|
872
|
-
background: "#17c",
|
|
873
|
-
color: "white"
|
|
874
|
-
},
|
|
875
|
-
"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]": {
|
|
876
|
-
background: "#777"
|
|
877
|
-
},
|
|
878
|
-
"&dark .cm-tooltip-autocomplete ul li[aria-selected]": {
|
|
879
|
-
background: "#347",
|
|
880
|
-
color: "white"
|
|
881
|
-
},
|
|
882
|
-
"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]": {
|
|
883
|
-
background: "#444"
|
|
884
|
-
},
|
|
885
|
-
".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": {
|
|
886
|
-
content: '"···"',
|
|
887
|
-
opacity: 0.5,
|
|
888
|
-
display: "block",
|
|
889
|
-
textAlign: "center"
|
|
890
|
-
},
|
|
891
|
-
".cm-tooltip.cm-completionInfo": {
|
|
892
|
-
position: "absolute",
|
|
893
|
-
padding: "3px 9px",
|
|
894
|
-
width: "max-content",
|
|
895
|
-
maxWidth: "400px",
|
|
896
|
-
boxSizing: "border-box",
|
|
897
|
-
whiteSpace: "pre-line"
|
|
898
|
-
},
|
|
899
|
-
".cm-completionInfo.cm-completionInfo-left": { right: "100%" },
|
|
900
|
-
".cm-completionInfo.cm-completionInfo-right": { left: "100%" },
|
|
901
|
-
".cm-completionInfo.cm-completionInfo-left-narrow": { right: "30px" },
|
|
902
|
-
".cm-completionInfo.cm-completionInfo-right-narrow": { left: "30px" },
|
|
903
|
-
"&light .cm-snippetField": { backgroundColor: "#00000022" },
|
|
904
|
-
"&dark .cm-snippetField": { backgroundColor: "#ffffff22" },
|
|
905
|
-
".cm-snippetFieldPosition": {
|
|
906
|
-
verticalAlign: "text-top",
|
|
907
|
-
width: 0,
|
|
908
|
-
height: "1.15em",
|
|
909
|
-
display: "inline-block",
|
|
910
|
-
margin: "0 -0.7px -.7em",
|
|
911
|
-
borderLeft: "1.4px dotted #888"
|
|
912
|
-
},
|
|
913
|
-
".cm-completionMatchedText": {
|
|
914
|
-
textDecoration: "underline"
|
|
915
|
-
},
|
|
916
|
-
".cm-completionDetail": {
|
|
917
|
-
marginLeft: "0.5em",
|
|
918
|
-
fontStyle: "italic"
|
|
919
|
-
},
|
|
920
|
-
".cm-completionIcon": {
|
|
921
|
-
fontSize: "90%",
|
|
922
|
-
width: ".8em",
|
|
923
|
-
display: "inline-block",
|
|
924
|
-
textAlign: "center",
|
|
925
|
-
paddingRight: ".6em",
|
|
926
|
-
opacity: "0.6",
|
|
927
|
-
boxSizing: "content-box"
|
|
928
|
-
},
|
|
929
|
-
".cm-completionIcon-function, .cm-completionIcon-method": {
|
|
930
|
-
"&:after": { content: "'ƒ'" }
|
|
931
|
-
},
|
|
932
|
-
".cm-completionIcon-class": {
|
|
933
|
-
"&:after": { content: "'○'" }
|
|
934
|
-
},
|
|
935
|
-
".cm-completionIcon-interface": {
|
|
936
|
-
"&:after": { content: "'◌'" }
|
|
937
|
-
},
|
|
938
|
-
".cm-completionIcon-variable": {
|
|
939
|
-
"&:after": { content: "'𝑥'" }
|
|
940
|
-
},
|
|
941
|
-
".cm-completionIcon-constant": {
|
|
942
|
-
"&:after": { content: "'𝐶'" }
|
|
943
|
-
},
|
|
944
|
-
".cm-completionIcon-type": {
|
|
945
|
-
"&:after": { content: "'𝑡'" }
|
|
946
|
-
},
|
|
947
|
-
".cm-completionIcon-enum": {
|
|
948
|
-
"&:after": { content: "'∪'" }
|
|
949
|
-
},
|
|
950
|
-
".cm-completionIcon-property": {
|
|
951
|
-
"&:after": { content: "'□'" }
|
|
952
|
-
},
|
|
953
|
-
".cm-completionIcon-keyword": {
|
|
954
|
-
"&:after": { content: "'🔑︎'" }
|
|
955
|
-
// Disable emoji rendering
|
|
956
|
-
},
|
|
957
|
-
".cm-completionIcon-namespace": {
|
|
958
|
-
"&:after": { content: "'▢'" }
|
|
959
|
-
},
|
|
960
|
-
".cm-completionIcon-text": {
|
|
961
|
-
"&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" }
|
|
962
|
-
}
|
|
963
|
-
});
|
|
964
|
-
class dt {
|
|
965
|
-
constructor(e, t, n, o) {
|
|
966
|
-
this.field = e, this.line = t, this.from = n, this.to = o;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
class oe {
|
|
970
|
-
constructor(e, t, n) {
|
|
971
|
-
this.field = e, this.from = t, this.to = n;
|
|
972
|
-
}
|
|
973
|
-
map(e) {
|
|
974
|
-
let t = e.mapPos(this.from, -1, G.TrackDel), n = e.mapPos(this.to, 1, G.TrackDel);
|
|
975
|
-
return t == null || n == null ? null : new oe(this.field, t, n);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
class se {
|
|
979
|
-
constructor(e, t) {
|
|
980
|
-
this.lines = e, this.fieldPositions = t;
|
|
981
|
-
}
|
|
982
|
-
instantiate(e, t) {
|
|
983
|
-
let n = [], o = [t], s = e.doc.lineAt(t), l = /^\s*/.exec(s.text)[0];
|
|
984
|
-
for (let r of this.lines) {
|
|
985
|
-
if (n.length) {
|
|
986
|
-
let h = l, c = /^\t*/.exec(r)[0].length;
|
|
987
|
-
for (let f = 0; f < c; f++)
|
|
988
|
-
h += e.facet(je);
|
|
989
|
-
o.push(t + h.length - c), r = h + r.slice(c);
|
|
990
|
-
}
|
|
991
|
-
n.push(r), t += r.length + 1;
|
|
992
|
-
}
|
|
993
|
-
let a = this.fieldPositions.map((r) => new oe(r.field, o[r.line] + r.from, o[r.line] + r.to));
|
|
994
|
-
return { text: n, ranges: a };
|
|
995
|
-
}
|
|
996
|
-
static parse(e) {
|
|
997
|
-
let t = [], n = [], o = [], s;
|
|
998
|
-
for (let l of e.split(/\r\n?|\n/)) {
|
|
999
|
-
for (; s = /[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(l); ) {
|
|
1000
|
-
let a = s[1] ? +s[1] : null, r = s[2] || s[3] || "", h = -1, c = r.replace(/\\[{}]/g, (f) => f[1]);
|
|
1001
|
-
for (let f = 0; f < t.length; f++)
|
|
1002
|
-
(a != null ? t[f].seq == a : c && t[f].name == c) && (h = f);
|
|
1003
|
-
if (h < 0) {
|
|
1004
|
-
let f = 0;
|
|
1005
|
-
for (; f < t.length && (a == null || t[f].seq != null && t[f].seq < a); )
|
|
1006
|
-
f++;
|
|
1007
|
-
t.splice(f, 0, { seq: a, name: c }), h = f;
|
|
1008
|
-
for (let p of o)
|
|
1009
|
-
p.field >= h && p.field++;
|
|
1010
|
-
}
|
|
1011
|
-
for (let f of o)
|
|
1012
|
-
if (f.line == n.length && f.from > s.index) {
|
|
1013
|
-
let p = s[2] ? 3 + (s[1] || "").length : 2;
|
|
1014
|
-
f.from -= p, f.to -= p;
|
|
1015
|
-
}
|
|
1016
|
-
o.push(new dt(h, n.length, s.index, s.index + c.length)), l = l.slice(0, s.index) + r + l.slice(s.index + s[0].length);
|
|
1017
|
-
}
|
|
1018
|
-
l = l.replace(/\\([{}])/g, (a, r, h) => {
|
|
1019
|
-
for (let c of o)
|
|
1020
|
-
c.line == n.length && c.from > h && (c.from--, c.to--);
|
|
1021
|
-
return r;
|
|
1022
|
-
}), n.push(l);
|
|
1023
|
-
}
|
|
1024
|
-
return new se(n, o);
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
let mt = /* @__PURE__ */ V.widget({ widget: /* @__PURE__ */ new class extends We {
|
|
1028
|
-
toDOM() {
|
|
1029
|
-
let i = document.createElement("span");
|
|
1030
|
-
return i.className = "cm-snippetFieldPosition", i;
|
|
1031
|
-
}
|
|
1032
|
-
ignoreEvent() {
|
|
1033
|
-
return !1;
|
|
1034
|
-
}
|
|
1035
|
-
}() }), gt = /* @__PURE__ */ V.mark({ class: "cm-snippetField" });
|
|
1036
|
-
class L {
|
|
1037
|
-
constructor(e, t) {
|
|
1038
|
-
this.ranges = e, this.active = t, this.deco = V.set(e.map((n) => (n.from == n.to ? mt : gt).range(n.from, n.to)), !0);
|
|
1039
|
-
}
|
|
1040
|
-
map(e) {
|
|
1041
|
-
let t = [];
|
|
1042
|
-
for (let n of this.ranges) {
|
|
1043
|
-
let o = n.map(e);
|
|
1044
|
-
if (!o)
|
|
1045
|
-
return null;
|
|
1046
|
-
t.push(o);
|
|
1047
|
-
}
|
|
1048
|
-
return new L(t, this.active);
|
|
1049
|
-
}
|
|
1050
|
-
selectionInsideField(e) {
|
|
1051
|
-
return e.ranges.every((t) => this.ranges.some((n) => n.field == this.active && n.from <= t.from && n.to >= t.to));
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
const N = /* @__PURE__ */ O.define({
|
|
1055
|
-
map(i, e) {
|
|
1056
|
-
return i && i.map(e);
|
|
1057
|
-
}
|
|
1058
|
-
}), yt = /* @__PURE__ */ O.define(), F = /* @__PURE__ */ _.define({
|
|
1059
|
-
create() {
|
|
1060
|
-
return null;
|
|
1061
|
-
},
|
|
1062
|
-
update(i, e) {
|
|
1063
|
-
for (let t of e.effects) {
|
|
1064
|
-
if (t.is(N))
|
|
1065
|
-
return t.value;
|
|
1066
|
-
if (t.is(yt) && i)
|
|
1067
|
-
return new L(i.ranges, t.value);
|
|
1068
|
-
}
|
|
1069
|
-
return i && e.docChanged && (i = i.map(e.changes)), i && e.selection && !i.selectionInsideField(e.selection) && (i = null), i;
|
|
1070
|
-
},
|
|
1071
|
-
provide: (i) => M.decorations.from(i, (e) => e ? e.deco : V.none)
|
|
1072
|
-
});
|
|
1073
|
-
function le(i, e) {
|
|
1074
|
-
return w.create(i.filter((t) => t.field == e).map((t) => w.range(t.from, t.to)));
|
|
1075
|
-
}
|
|
1076
|
-
function bt(i) {
|
|
1077
|
-
let e = se.parse(i);
|
|
1078
|
-
return (t, n, o, s) => {
|
|
1079
|
-
let { text: l, ranges: a } = e.instantiate(t.state, o), { main: r } = t.state.selection, h = {
|
|
1080
|
-
changes: { from: o, to: s == r.from ? r.to : s, insert: Me.of(l) },
|
|
1081
|
-
scrollIntoView: !0,
|
|
1082
|
-
annotations: n ? [te.of(n), Re.userEvent.of("input.complete")] : void 0
|
|
1083
|
-
};
|
|
1084
|
-
if (a.length && (h.selection = le(a, 0)), a.some((c) => c.field > 0)) {
|
|
1085
|
-
let c = new L(a, 0), f = h.effects = [N.of(c)];
|
|
1086
|
-
t.state.field(F, !1) === void 0 && f.push(O.appendConfig.of([F, St, It, Te]));
|
|
1087
|
-
}
|
|
1088
|
-
t.dispatch(t.state.update(h));
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
function Oe(i) {
|
|
1092
|
-
return ({ state: e, dispatch: t }) => {
|
|
1093
|
-
let n = e.field(F, !1);
|
|
1094
|
-
if (!n || i < 0 && n.active == 0)
|
|
1095
|
-
return !1;
|
|
1096
|
-
let o = n.active + i, s = i > 0 && !n.ranges.some((l) => l.field == o + i);
|
|
1097
|
-
return t(e.update({
|
|
1098
|
-
selection: le(n.ranges, o),
|
|
1099
|
-
effects: N.of(s ? null : new L(n.ranges, o)),
|
|
1100
|
-
scrollIntoView: !0
|
|
1101
|
-
})), !0;
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
const xt = ({ state: i, dispatch: e }) => i.field(F, !1) ? (e(i.update({ effects: N.of(null) })), !0) : !1, wt = /* @__PURE__ */ Oe(1), Ct = /* @__PURE__ */ Oe(-1), vt = [
|
|
1105
|
-
{ key: "Tab", run: wt, shift: Ct },
|
|
1106
|
-
{ key: "Escape", run: xt }
|
|
1107
|
-
], de = /* @__PURE__ */ ye.define({
|
|
1108
|
-
combine(i) {
|
|
1109
|
-
return i.length ? i[0] : vt;
|
|
1110
|
-
}
|
|
1111
|
-
}), St = /* @__PURE__ */ ee.highest(/* @__PURE__ */ we.compute([de], (i) => i.facet(de)));
|
|
1112
|
-
function Wt(i, e) {
|
|
1113
|
-
return { ...e, apply: bt(i) };
|
|
1114
|
-
}
|
|
1115
|
-
const It = /* @__PURE__ */ M.domEventHandlers({
|
|
1116
|
-
mousedown(i, e) {
|
|
1117
|
-
let t = e.state.field(F, !1), n;
|
|
1118
|
-
if (!t || (n = e.posAtCoords({ x: i.clientX, y: i.clientY })) == null)
|
|
1119
|
-
return !1;
|
|
1120
|
-
let o = t.ranges.find((s) => s.from <= n && s.to >= n);
|
|
1121
|
-
return !o || o.field == t.active ? !1 : (e.dispatch({
|
|
1122
|
-
selection: le(t.ranges, o.field),
|
|
1123
|
-
effects: N.of(t.ranges.some((s) => s.field > o.field) ? new L(t.ranges, o.field) : null),
|
|
1124
|
-
scrollIntoView: !0
|
|
1125
|
-
}), !0);
|
|
1126
|
-
}
|
|
1127
|
-
}), $ = {
|
|
1128
|
-
brackets: ["(", "[", "{", "'", '"'],
|
|
1129
|
-
before: ")]}:;>",
|
|
1130
|
-
stringPrefixes: []
|
|
1131
|
-
}, A = /* @__PURE__ */ O.define({
|
|
1132
|
-
map(i, e) {
|
|
1133
|
-
let t = e.mapPos(i, -1, G.TrackAfter);
|
|
1134
|
-
return t ?? void 0;
|
|
1135
|
-
}
|
|
1136
|
-
}), re = /* @__PURE__ */ new class extends Fe {
|
|
1137
|
-
}();
|
|
1138
|
-
re.startSide = 1;
|
|
1139
|
-
re.endSide = -1;
|
|
1140
|
-
const Ae = /* @__PURE__ */ _.define({
|
|
1141
|
-
create() {
|
|
1142
|
-
return Le.empty;
|
|
1143
|
-
},
|
|
1144
|
-
update(i, e) {
|
|
1145
|
-
if (i = i.map(e.changes), e.selection) {
|
|
1146
|
-
let t = e.state.doc.lineAt(e.selection.main.head);
|
|
1147
|
-
i = i.update({ filter: (n) => n >= t.from && n <= t.to });
|
|
1148
|
-
}
|
|
1149
|
-
for (let t of e.effects)
|
|
1150
|
-
t.is(A) && (i = i.update({ add: [re.range(t.value, t.value + 1)] }));
|
|
1151
|
-
return i;
|
|
1152
|
-
}
|
|
1153
|
-
});
|
|
1154
|
-
function jt() {
|
|
1155
|
-
return [Ot, Ae];
|
|
1156
|
-
}
|
|
1157
|
-
const Y = "()[]{}<>«»»«[]{}";
|
|
1158
|
-
function Ee(i) {
|
|
1159
|
-
for (let e = 0; e < Y.length; e += 2)
|
|
1160
|
-
if (Y.charCodeAt(e) == i)
|
|
1161
|
-
return Y.charAt(e + 1);
|
|
1162
|
-
return be(i < 128 ? i : i + 1);
|
|
1163
|
-
}
|
|
1164
|
-
function De(i, e) {
|
|
1165
|
-
return i.languageDataAt("closeBrackets", e)[0] || $;
|
|
1166
|
-
}
|
|
1167
|
-
const Tt = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), Ot = /* @__PURE__ */ M.inputHandler.of((i, e, t, n) => {
|
|
1168
|
-
if ((Tt ? i.composing : i.compositionStarted) || i.state.readOnly)
|
|
1169
|
-
return !1;
|
|
1170
|
-
let o = i.state.selection.main;
|
|
1171
|
-
if (n.length > 2 || n.length == 2 && T(v(n, 0)) == 1 || e != o.from || t != o.to)
|
|
1172
|
-
return !1;
|
|
1173
|
-
let s = Et(i.state, n);
|
|
1174
|
-
return s ? (i.dispatch(s), !0) : !1;
|
|
1175
|
-
}), At = ({ state: i, dispatch: e }) => {
|
|
1176
|
-
if (i.readOnly)
|
|
1177
|
-
return !1;
|
|
1178
|
-
let n = De(i, i.selection.main.head).brackets || $.brackets, o = null, s = i.changeByRange((l) => {
|
|
1179
|
-
if (l.empty) {
|
|
1180
|
-
let a = Dt(i.doc, l.head);
|
|
1181
|
-
for (let r of n)
|
|
1182
|
-
if (r == a && z(i.doc, l.head) == Ee(v(r, 0)))
|
|
1183
|
-
return {
|
|
1184
|
-
changes: { from: l.head - r.length, to: l.head + r.length },
|
|
1185
|
-
range: w.cursor(l.head - r.length)
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
return { range: o = l };
|
|
1189
|
-
});
|
|
1190
|
-
return o || e(i.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !o;
|
|
1191
|
-
}, Ht = [
|
|
1192
|
-
{ key: "Backspace", run: At }
|
|
1193
|
-
];
|
|
1194
|
-
function Et(i, e) {
|
|
1195
|
-
let t = De(i, i.selection.main.head), n = t.brackets || $.brackets;
|
|
1196
|
-
for (let o of n) {
|
|
1197
|
-
let s = Ee(v(o, 0));
|
|
1198
|
-
if (e == o)
|
|
1199
|
-
return s == o ? Mt(i, o, n.indexOf(o + o + o) > -1, t) : Pt(i, o, s, t.before || $.before);
|
|
1200
|
-
if (e == s && Pe(i, i.selection.main.from))
|
|
1201
|
-
return Rt(i, o, s);
|
|
1202
|
-
}
|
|
1203
|
-
return null;
|
|
1204
|
-
}
|
|
1205
|
-
function Pe(i, e) {
|
|
1206
|
-
let t = !1;
|
|
1207
|
-
return i.field(Ae).between(0, i.doc.length, (n) => {
|
|
1208
|
-
n == e && (t = !0);
|
|
1209
|
-
}), t;
|
|
1210
|
-
}
|
|
1211
|
-
function z(i, e) {
|
|
1212
|
-
let t = i.sliceString(e, e + 2);
|
|
1213
|
-
return t.slice(0, T(v(t, 0)));
|
|
1214
|
-
}
|
|
1215
|
-
function Dt(i, e) {
|
|
1216
|
-
let t = i.sliceString(e - 2, e);
|
|
1217
|
-
return T(v(t, 0)) == t.length ? t : t.slice(1);
|
|
1218
|
-
}
|
|
1219
|
-
function Pt(i, e, t, n) {
|
|
1220
|
-
let o = null, s = i.changeByRange((l) => {
|
|
1221
|
-
if (!l.empty)
|
|
1222
|
-
return {
|
|
1223
|
-
changes: [{ insert: e, from: l.from }, { insert: t, from: l.to }],
|
|
1224
|
-
effects: A.of(l.to + e.length),
|
|
1225
|
-
range: w.range(l.anchor + e.length, l.head + e.length)
|
|
1226
|
-
};
|
|
1227
|
-
let a = z(i.doc, l.head);
|
|
1228
|
-
return !a || /\s/.test(a) || n.indexOf(a) > -1 ? {
|
|
1229
|
-
changes: { insert: e + t, from: l.head },
|
|
1230
|
-
effects: A.of(l.head + e.length),
|
|
1231
|
-
range: w.cursor(l.head + e.length)
|
|
1232
|
-
} : { range: o = l };
|
|
1233
|
-
});
|
|
1234
|
-
return o ? null : i.update(s, {
|
|
1235
|
-
scrollIntoView: !0,
|
|
1236
|
-
userEvent: "input.type"
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
function Rt(i, e, t) {
|
|
1240
|
-
let n = null, o = i.changeByRange((s) => s.empty && z(i.doc, s.head) == t ? {
|
|
1241
|
-
changes: { from: s.head, to: s.head + t.length, insert: t },
|
|
1242
|
-
range: w.cursor(s.head + t.length)
|
|
1243
|
-
} : n = { range: s });
|
|
1244
|
-
return n ? null : i.update(o, {
|
|
1245
|
-
scrollIntoView: !0,
|
|
1246
|
-
userEvent: "input.type"
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
function Mt(i, e, t, n) {
|
|
1250
|
-
let o = n.stringPrefixes || $.stringPrefixes, s = null, l = i.changeByRange((a) => {
|
|
1251
|
-
if (!a.empty)
|
|
1252
|
-
return {
|
|
1253
|
-
changes: [{ insert: e, from: a.from }, { insert: e, from: a.to }],
|
|
1254
|
-
effects: A.of(a.to + e.length),
|
|
1255
|
-
range: w.range(a.anchor + e.length, a.head + e.length)
|
|
1256
|
-
};
|
|
1257
|
-
let r = a.head, h = z(i.doc, r), c;
|
|
1258
|
-
if (h == e) {
|
|
1259
|
-
if (me(i, r))
|
|
1260
|
-
return {
|
|
1261
|
-
changes: { insert: e + e, from: r },
|
|
1262
|
-
effects: A.of(r + e.length),
|
|
1263
|
-
range: w.cursor(r + e.length)
|
|
1264
|
-
};
|
|
1265
|
-
if (Pe(i, r)) {
|
|
1266
|
-
let p = t && i.sliceDoc(r, r + e.length * 3) == e + e + e ? e + e + e : e;
|
|
1267
|
-
return {
|
|
1268
|
-
changes: { from: r, to: r + p.length, insert: p },
|
|
1269
|
-
range: w.cursor(r + p.length)
|
|
1270
|
-
};
|
|
1271
|
-
}
|
|
1272
|
-
} else {
|
|
1273
|
-
if (t && i.sliceDoc(r - 2 * e.length, r) == e + e && (c = ge(i, r - 2 * e.length, o)) > -1 && me(i, c))
|
|
1274
|
-
return {
|
|
1275
|
-
changes: { insert: e + e + e + e, from: r },
|
|
1276
|
-
effects: A.of(r + e.length),
|
|
1277
|
-
range: w.cursor(r + e.length)
|
|
1278
|
-
};
|
|
1279
|
-
if (i.charCategorizer(r)(h) != J.Word && ge(i, r, o) > -1 && !Lt(i, r, e, o))
|
|
1280
|
-
return {
|
|
1281
|
-
changes: { insert: e + e, from: r },
|
|
1282
|
-
effects: A.of(r + e.length),
|
|
1283
|
-
range: w.cursor(r + e.length)
|
|
1284
|
-
};
|
|
1285
|
-
}
|
|
1286
|
-
return { range: s = a };
|
|
1287
|
-
});
|
|
1288
|
-
return s ? null : i.update(l, {
|
|
1289
|
-
scrollIntoView: !0,
|
|
1290
|
-
userEvent: "input.type"
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
function me(i, e) {
|
|
1294
|
-
let t = q(i).resolveInner(e + 1);
|
|
1295
|
-
return t.parent && t.from == e;
|
|
1296
|
-
}
|
|
1297
|
-
function Lt(i, e, t, n) {
|
|
1298
|
-
let o = q(i).resolveInner(e, -1), s = n.reduce((l, a) => Math.max(l, a.length), 0);
|
|
1299
|
-
for (let l = 0; l < 5; l++) {
|
|
1300
|
-
let a = i.sliceDoc(o.from, Math.min(o.to, o.from + t.length + s)), r = a.indexOf(t);
|
|
1301
|
-
if (!r || r > -1 && n.indexOf(a.slice(0, r)) > -1) {
|
|
1302
|
-
let c = o.firstChild;
|
|
1303
|
-
for (; c && c.from == o.from && c.to - c.from > t.length + r; ) {
|
|
1304
|
-
if (i.sliceDoc(c.to - t.length, c.to) == t)
|
|
1305
|
-
return !1;
|
|
1306
|
-
c = c.firstChild;
|
|
1307
|
-
}
|
|
1308
|
-
return !0;
|
|
1309
|
-
}
|
|
1310
|
-
let h = o.to == e && o.parent;
|
|
1311
|
-
if (!h)
|
|
1312
|
-
break;
|
|
1313
|
-
o = h;
|
|
1314
|
-
}
|
|
1315
|
-
return !1;
|
|
1316
|
-
}
|
|
1317
|
-
function ge(i, e, t) {
|
|
1318
|
-
let n = i.charCategorizer(e);
|
|
1319
|
-
if (n(i.sliceDoc(e - 1, e)) != J.Word)
|
|
1320
|
-
return e;
|
|
1321
|
-
for (let o of t) {
|
|
1322
|
-
let s = e - o.length;
|
|
1323
|
-
if (i.sliceDoc(s, e) == o && n(i.sliceDoc(s - 1, s)) != J.Word)
|
|
1324
|
-
return s;
|
|
1325
|
-
}
|
|
1326
|
-
return -1;
|
|
1327
|
-
}
|
|
1328
|
-
function Vt(i = {}) {
|
|
1329
|
-
return [
|
|
1330
|
-
ut,
|
|
1331
|
-
x,
|
|
1332
|
-
g.of(i),
|
|
1333
|
-
ht,
|
|
1334
|
-
Bt,
|
|
1335
|
-
Te
|
|
1336
|
-
];
|
|
1337
|
-
}
|
|
1338
|
-
const kt = [
|
|
1339
|
-
{ key: "Ctrl-Space", run: X },
|
|
1340
|
-
{ mac: "Alt-`", run: X },
|
|
1341
|
-
{ mac: "Alt-i", run: X },
|
|
1342
|
-
{ key: "Escape", run: rt },
|
|
1343
|
-
{ key: "ArrowDown", run: /* @__PURE__ */ W(!0) },
|
|
1344
|
-
{ key: "ArrowUp", run: /* @__PURE__ */ W(!1) },
|
|
1345
|
-
{ key: "PageDown", run: /* @__PURE__ */ W(!0, "page") },
|
|
1346
|
-
{ key: "PageUp", run: /* @__PURE__ */ W(!1, "page") },
|
|
1347
|
-
{ key: "Enter", run: lt }
|
|
1348
|
-
], Bt = /* @__PURE__ */ ee.highest(/* @__PURE__ */ we.computeN([g], (i) => i.facet(g).defaultKeymap ? [kt] : []));
|
|
1349
|
-
export {
|
|
1350
|
-
Ce as CompletionContext,
|
|
1351
|
-
lt as acceptCompletion,
|
|
1352
|
-
Vt as autocompletion,
|
|
1353
|
-
xt as clearSnippet,
|
|
1354
|
-
jt as closeBrackets,
|
|
1355
|
-
Ht as closeBracketsKeymap,
|
|
1356
|
-
rt as closeCompletion,
|
|
1357
|
-
Ve as completeFromList,
|
|
1358
|
-
kt as completionKeymap,
|
|
1359
|
-
At as deleteBracketPair,
|
|
1360
|
-
Ut as ifNotIn,
|
|
1361
|
-
Et as insertBracket,
|
|
1362
|
-
qe as insertCompletionText,
|
|
1363
|
-
W as moveCompletionSelection,
|
|
1364
|
-
wt as nextSnippetField,
|
|
1365
|
-
te as pickedCompletion,
|
|
1366
|
-
Ct as prevSnippetField,
|
|
1367
|
-
bt as snippet,
|
|
1368
|
-
Wt as snippetCompletion,
|
|
1369
|
-
de as snippetKeymap,
|
|
1370
|
-
X as startCompletion
|
|
1371
|
-
};
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
|
|
3
|
+
@license Proprietary
|
|
4
|
+
|
|
5
|
+
This software is the confidential and proprietary property of Lenovo SSG BASD.
|
|
6
|
+
You shall not disclose such Confidential Information and shall use it only in
|
|
7
|
+
accordance with the terms of the license agreement.
|
|
8
|
+
|
|
9
|
+
--- Build Info ---
|
|
10
|
+
Version: 1.0.4
|
|
11
|
+
Build Time: 2026/2/11 18:34:19
|
|
12
|
+
Build Commit: 9b4b89872743098216d14081433fa57d7fa73fd3
|
|
13
|
+
*/
|
|
14
|
+
import{codePointAt as t,EditorSelection as e,Transaction as n,Text as i,StateEffect as o,codePointSize as s,StateField as l,RangeSet as r,Prec as a,Facet as c,combineConfig as h,fromCodePoint as p,Annotation as f,MapMode as d,RangeValue as u,CharCategory as m}from"../../state/dist/index.js";import{EditorView as g,showTooltip as v,ViewPlugin as b,logException as y,getTooltip as w,keymap as x,Decoration as C,Direction as I,WidgetType as k}from"../../view/dist/index.js";import{syntaxTree as D,indentUnit as O}from"../../language/dist/index.js";class T{constructor(t,e,n,i){this.state=t,this.pos=e,this.explicit=n,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=D(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),i=e.text.slice(n-e.from,this.pos-e.from),o=i.search(M(t,!1));return o<0?null:{from:n+o,to:this.pos,text:i.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(t,e,n){"abort"==t&&this.abortListeners&&(this.abortListeners.push(e),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function A(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function S(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[n,i]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=/* @__PURE__ */Object.create(null),n=/* @__PURE__ */Object.create(null);for(let{label:o}of t){e[o[0]]=!0;for(let t=1;t<o.length;t++)n[o[t]]=!0}let i=A(e)+A(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}(e);return t=>{let o=t.matchBefore(i);return o||t.explicit?{from:o?o.from:t.pos,options:e,validFor:n}:null}}function L(t,e){return n=>{for(let e=D(n.state).resolveInner(n.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(n)}}class R{constructor(t,e,n,i){this.completion=t,this.source=e,this.match=n,this.score=i}}function E(t){return t.selection.main.from}function M(t,e){var n;let{source:i}=t,o=e&&"^"!=i[0],s="$"!=i[i.length-1];return o||s?new RegExp(`${o?"^":""}(?:${i})${s?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}const P=/* @__PURE__ */f.define();function B(t,n,i,o){let{main:s}=t.selection,l=i-s.from,r=o-s.from;return{...t.changeByRange(a=>{if(a!=s&&i!=o&&t.sliceDoc(a.from+l,a.from+r)!=t.sliceDoc(i,o))return{range:a};let c=t.toText(n);return{changes:{from:a.from+l,to:o==s.from?a.to:a.from+r,insert:c},range:e.cursor(a.from+l+c.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const F=/* @__PURE__ */new WeakMap;function $(t){if(!Array.isArray(t))return t;let e=F.get(t);return e||F.set(t,e=S(t)),e}const N=/* @__PURE__ */o.define(),U=/* @__PURE__ */o.define();class q{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let i=t(e,n),o=s(i);this.chars.push(i);let l=e.slice(n,n+o),r=l.toUpperCase();this.folded.push(t(r==l?l.toLowerCase():r,0)),n+=o}this.astral=e.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:i,any:o,precise:l,byWord:r}=this;if(1==n.length){let o=t(e,0),l=s(o),r=l==e.length?0:-100;if(o==n[0]);else{if(o!=i[0])return null;r+=-200}return this.ret(r,[0,l])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=n.length,h=0;if(a<0){for(let l=0,r=Math.min(e.length,200);l<r&&h<c;){let r=t(e,l);r!=n[h]&&r!=i[h]||(o[h++]=l),l+=s(r)}if(h<c)return null}let f=0,d=0,u=!1,m=0,g=-1,v=-1,b=/[a-z]/.test(e),y=!0;for(let w=0,x=Math.min(e.length,200),C=0;w<x&&d<c;){let o=t(e,w);a<0&&(f<c&&o==n[f]&&(l[f++]=w),m<c&&(o==n[m]||o==i[m]?(0==m&&(g=w),v=w+1,m++):m=0));let h,x=o<255?o>=48&&o<=57||o>=97&&o<=122?2:o>=65&&o<=90?1:0:(h=p(o))!=h.toLowerCase()?1:h!=h.toUpperCase()?2:0;(!w||1==x&&b||0==C&&0!=x)&&(n[d]==o||i[d]==o&&(u=!0)?r[d++]=w:r.length&&(y=!1)),C=x,w+=s(o)}return d==c&&0==r[0]&&y?this.result((u?-200:0)-100,r,e):m==c&&0==g?this.ret(-200-e.length+(v==e.length?0:-100),[0,v]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):m==c?this.ret(-900-e.length,[g,v]):d==c?this.result((u?-200:0)-100-700+(y?0:-1100),r,e):2==n.length?null:this.result((o[0]?-700:0)-200-1100,o,e)}result(e,n,i){let o=[],l=0;for(let r of n){let e=r+(this.astral?s(t(i,r)):1);l&&o[l-1]==r?o[l-1]=e:(o[l++]=r,o[l++]=e)}return this.ret(e-i.length,o)}}class W{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),n=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,e.length],this.score=n+(t.length==this.pattern.length?0:-100),this)}}const j=/* @__PURE__ */c.define({combine:t=>h(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:V,filterStrict:!1,compareCompletions:(t,e)=>(t.sortText||t.label).localeCompare(e.sortText||e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>H(t(n),e(n)),optionClass:(t,e)=>n=>H(t(n),e(n)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function H(t,e){return t?e?t+" "+e:t:e}function V(t,e,n,i,o,s){let l,r,a=t.textDirection==I.RTL,c=a,h=!1,p="top",f=e.left-o.left,d=o.right-e.right,u=i.right-i.left,m=i.bottom-i.top;if(c&&f<Math.min(u,d)?c=!1:!c&&d<Math.min(u,f)&&(c=!0),u<=(c?f:d))l=Math.max(o.top,Math.min(n.top,o.bottom-m))-e.top,r=Math.min(400,c?f:d);else{h=!0,r=Math.min(400,(a?e.right:o.right-e.left)-30);let t=o.bottom-e.bottom;t>=m||t>e.top?l=n.bottom-e.top:(p="bottom",l=e.bottom-n.top)}return{style:`${p}: ${l/((e.bottom-e.top)/s.offsetHeight)}px; max-width: ${r/((e.right-e.left)/s.offsetWidth)}px`,class:"cm-completionInfo-"+(h?a?"left-narrow":"right-narrow":c?"left":"right")}}function z(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class K{constructor(t,e,n){this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let i=t.state.field(e),{options:o,selected:s}=i.open,l=t.state.facet(j);this.optionContent=function(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,n,i){let o=document.createElement("span");o.className="cm-completionLabel";let s=t.displayLabel||t.label,l=0;for(let r=0;r<i.length;){let t=i[r++],e=i[r++];t>l&&o.appendChild(document.createTextNode(s.slice(l,t)));let n=o.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(s.slice(t,e))),n.className="cm-completionMatchedText",l=e}return l<s.length&&o.appendChild(document.createTextNode(s.slice(l))),o},position:50},{render(t){if(!t.detail)return null;let e=document.createElement("span");return e.className="cm-completionDetail",e.textContent=t.detail,e},position:80}),e.sort((t,e)=>t.position-e.position).map(t=>t.render)}(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=z(o.length,s,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",n=>{let{options:i}=t.state.field(e).open;for(let e,o=n.target;o&&o!=this.dom;o=o.parentNode)if("LI"==o.nodeName&&(e=/-(\d+)$/.exec(o.id))&&+e[1]<i.length)return this.applyCompletion(t,i[+e[1]]),void n.preventDefault()}),this.dom.addEventListener("focusout",e=>{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(j).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:U.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let n=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=i){let{options:o,selected:s,disabled:l}=n.open;i.open&&i.open.options==o||(this.range=z(o.length,s,t.state.facet(j).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),l!=(null===(e=i.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;(e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=z(e.options.length,e.selected,this.view.state.facet(j).maxRenderedOptions),this.showOptions(e.options,t.id));let n=this.updateSelectedOption(e.selected);if(n){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:o}=i;if(!o)return;let s="string"==typeof o?document.createTextNode(o):o(i);if(!s)return;"then"in s?s.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,i)}).catch(t=>y(this.view.state,t,"completion info")):(this.addInfoPane(s,i),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:i}=t;n.appendChild(e),this.infoDestroy=i||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)"LI"==n.nodeName&&n.id?i==t?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby")):i--;return e&&function(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=n.height/t.offsetHeight;i.top<n.top?t.scrollTop-=(n.top-i.top)/o:i.bottom>n.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/o)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),o=this.space;if(!o){let t=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:t.clientWidth,bottom:t.clientHeight}}return i.top>Math.min(o.bottom,e.bottom)-10||i.bottom<Math.max(o.top,e.top)+10?null:this.view.state.facet(j).positionInfo(this.view,e,i,n,o,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,n){const i=document.createElement("ul");i.id=e,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",t=>{t.target==i&&t.preventDefault()});let o=null;for(let s=n.from;s<n.to;s++){let{completion:l,match:r}=t[s],{section:a}=l;if(a){let t="string"==typeof a?a:a.name;if(t!=o&&(s>n.from||0==n.from))if(o=t,"string"!=typeof a&&a.header)i.appendChild(a.header(a));else{i.appendChild(document.createElement("completion-section")).textContent=t}}const c=i.appendChild(document.createElement("li"));c.id=e+"-"+s,c.setAttribute("role","option");let h=this.optionClass(l);h&&(c.className=h);for(let t of this.optionContent){let e=t(l,this.view.state,this.view,r);e&&c.appendChild(e)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<t.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function Q(t,e){return n=>new K(n,t,e)}function X(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class Y{constructor(t,e,n,i,o,s){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=i,this.selected=o,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new Y(this.options,Z(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,i,o,s){if(i&&!s&&t.some(t=>t.isPending))return i.setDisabled();let l=function(t,e){let n=[],i=null,o=null,s=t=>{n.push(t);let{section:e}=t.completion;if(e){i||(i=[]);let t="string"==typeof e?e:e.name;i.some(e=>e.name==t)||i.push("string"==typeof e?{name:t}:e)}},l=e.facet(j);for(let h of t)if(h.hasResult()){let t=h.result.getMatch;if(!1===h.result.filter)for(let e of h.result.options)s(new R(e,h.source,t?t(e):[],1e9-n.length));else{let n,i=e.sliceDoc(h.from,h.to),r=l.filterStrict?new W(i):new q(i);for(let e of h.result.options)if(n=r.match(e.label)){let i=e.displayLabel?t?t(e,n.matched):[]:n.matched,l=n.score+(e.boost||0);if(s(new R(e,h.source,i,l)),"object"==typeof e.section&&"dynamic"===e.section.rank){let{name:t}=e.section;o||(o=/* @__PURE__ */Object.create(null)),o[t]=Math.max(l,o[t]||-1e9)}}}}if(i){let t=/* @__PURE__ */Object.create(null),e=0,s=(t,e)=>("dynamic"===t.rank&&"dynamic"===e.rank?o[e.name]-o[t.name]:0)||("number"==typeof t.rank?t.rank:1e9)-("number"==typeof e.rank?e.rank:1e9)||(t.name<e.name?-1:1);for(let n of i.sort(s))e-=1e5,t[n.name]=e;for(let i of n){let{section:e}=i.completion;e&&(i.score+=t["string"==typeof e?e:e.name])}}let r=[],a=null,c=l.compareCompletions;for(let h of n.sort((t,e)=>e.score-t.score||c(t.completion,e.completion))){let t=h.completion;!a||a.label!=t.label||a.detail!=t.detail||null!=a.type&&null!=t.type&&a.type!=t.type||a.apply!=t.apply||a.boost!=t.boost?r.push(h):X(h.completion)>X(a)&&(r[r.length-1]=h),a=h.completion}return r}(t,e);if(!l.length)return i&&t.some(t=>t.isPending)?i.setDisabled():null;let r=e.facet(j).selectOnOpen?0:-1;if(i&&i.selected!=r&&-1!=i.selected){let t=i.options[i.selected].completion;for(let e=0;e<l.length;e++)if(l[e].completion==t){r=e;break}}return new Y(l,Z(n,r),{pos:t.reduce((t,e)=>e.hasResult()?Math.min(t,e.from):t,1e8),create:at,above:o.aboveCursor},i?i.timestamp:Date.now(),r,!1)}map(t){return new Y(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new Y(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class _{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new _(tt,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(j),i=(n.override||e.languageDataAt("autocomplete",E(e)).map($)).map(e=>(this.active.find(t=>t.source==e)||new nt(e,this.active.some(t=>0!=t.state)?1:0)).update(t,n));i.length==this.active.length&&i.every((t,e)=>t==this.active[e])&&(i=this.active);let o=this.open,s=t.effects.some(t=>t.is(ot));o&&t.docChanged&&(o=o.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;i<e.length&&!e[i].hasResult();)i++;let o=n==t.length,s=i==e.length;if(o||s)return o==s;if(t[n++].result!=e[i++].result)return!1}}(i,this.active)||s?o=Y.build(i,e,this.id,o,n,s):o&&o.disabled&&!i.some(t=>t.isPending)&&(o=null),!o&&i.every(t=>!t.isPending)&&i.some(t=>t.hasResult())&&(i=i.map(t=>t.hasResult()?new nt(t.source,0):t));for(let l of t.effects)l.is(st)&&(o=o&&o.setSelected(l.value,this.id));return i==this.active&&o==this.open?this:new _(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?G:J}}const G={"aria-autocomplete":"list"},J={};function Z(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const tt=[];function et(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(P);if(n&&e.activateOnCompletion(n))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class nt{constructor(t,e,n=!1){this.source=t,this.state=e,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(t,e){let n=et(t,e),i=this;(8&n||16&n&&this.touches(t))&&(i=new nt(i.source,0)),4&n&&0==i.state&&(i=new nt(this.source,1)),i=i.updateFor(t,n);for(let o of t.effects)if(o.is(N))i=new nt(i.source,1,o.value);else if(o.is(U))i=new nt(i.source,0);else if(o.is(ot))for(let t of o.value)t.source==i.source&&(i=t);return i}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(E(t.state))}}class it extends nt{constructor(t,e,n,i,o,s){super(t,3,e),this.limit=n,this.result=i,this.from=o,this.to=s}hasResult(){return!0}updateFor(t,e){var n;if(!(3&e))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let o=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),l=E(t.state);if(l>s||!i||2&e&&(E(t.startState)==this.from||l<this.limit))return new nt(this.source,4&e?1:0);let r=t.changes.mapPos(this.limit);return function(t,e,n,i){if(!t)return!1;let o=e.sliceDoc(n,i);return"function"==typeof t?t(o,n,i,e):M(t,!0).test(o)}(i.validFor,t.state,o,s)?new it(this.source,this.explicit,r,i,o,s):i.update&&(i=i.update(i,o,s,new T(t.state,l,!1)))?new it(this.source,this.explicit,r,i,i.from,null!==(n=i.to)&&void 0!==n?n:E(t.state)):new nt(this.source,1,this.explicit)}map(t){if(t.empty)return this;return(this.result.map?this.result.map(this.result,t):this.result)?new it(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new nt(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}const ot=/* @__PURE__ */o.define({map:(t,e)=>t.map(t=>t.map(e))}),st=/* @__PURE__ */o.define(),lt=/* @__PURE__ */l.define({create:()=>_.start(),update:(t,e)=>t.update(e),provide:t=>[v.from(t,t=>t.tooltip),g.contentAttributes.from(t,t=>t.attrs)]});function rt(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(lt).active.find(t=>t.source==e.source);return i instanceof it&&("string"==typeof n?t.dispatch({...B(t.state,n,i.from,i.to),annotations:P.of(e.completion)}):n(t,e.completion,i.from,i.to),!0)}const at=/* @__PURE__ */Q(lt,rt);function ct(t,e="option"){return n=>{let i=n.state.field(lt,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(j).interactionDelay)return!1;let o,s=1;"page"==e&&(o=w(n,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:l}=i.open.options,r=i.open.selected>-1?i.open.selected+s*(t?1:-1):t?0:l-1;return r<0?r="page"==e?0:l-1:r>=l&&(r="page"==e?l-1:0),n.dispatch({effects:st.of(r)}),!0}}const ht=t=>{let e=t.state.field(lt,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(j).interactionDelay)&&rt(t,e.open.options[e.open.selected])},pt=t=>!!t.state.field(lt,!1)&&(t.dispatch({effects:N.of(!0)}),!0),ft=t=>{let e=t.state.field(lt,!1);return!(!e||!e.active.some(t=>0!=t.state))&&(t.dispatch({effects:U.of(null)}),!0)};class dt{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const ut=/* @__PURE__ */b.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(lt).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(lt),n=t.state.facet(j);if(!t.selectionSet&&!t.docChanged&&t.startState.field(lt)==e)return;let i=t.transactions.some(t=>{let e=et(t,n);return 8&e||(t.selection||t.docChanged)&&!(3&e)});for(let l=0;l<this.running.length;l++){let e=this.running[l];if(i||e.context.abortOnDocChange&&t.docChanged||e.updates.length+t.transactions.length>50&&Date.now()-e.time>1e3){for(let t of e.context.abortListeners)try{t()}catch(s){y(this.view.state,s)}e.context.abortListeners=null,this.running.splice(l--,1)}else e.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(t=>t.effects.some(t=>t.is(N)))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(t=>t.isPending&&!this.running.some(e=>e.active.source==t.source))?setTimeout(()=>this.startUpdate(),o):-1,0!=this.composing)for(let l of t.transactions)l.isUserEvent("input.type")?this.composing=2:2==this.composing&&l.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(lt);for(let n of e.active)n.isPending&&!this.running.some(t=>t.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(j).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=E(e),i=new T(e,n,t.explicit,this.view),o=new dt(t,i);this.running.push(o),Promise.resolve(t.source(i)).then(t=>{o.context.aborted||(o.done=t||null,this.scheduleAccept())},t=>{this.view.dispatch({effects:U.of(null)}),y(this.view.state,t)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(j).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(j),i=this.view.state.field(lt);for(let o=0;o<this.running.length;o++){let s=this.running[o];if(void 0===s.done)continue;if(this.running.splice(o--,1),s.done){let i=E(s.updates.length?s.updates[0].startState:this.view.state),o=Math.min(i,s.done.from+(s.active.explicit?0:1)),l=new it(s.active.source,s.active.explicit,o,s.done,s.done.from,null!==(t=s.done.to)&&void 0!==t?t:i);for(let t of s.updates)l=l.update(t,n);if(l.hasResult()){e.push(l);continue}}let l=i.active.find(t=>t.source==s.active.source);if(l&&l.isPending)if(null==s.done){let t=new nt(s.active.source,0);for(let e of s.updates)t=t.update(e,n);t.isPending||e.push(t)}else this.startQuery(l)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:ot.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(lt,!1);if(e&&e.tooltip&&this.view.state.facet(j).closeOnBlur){let n=e.open&&w(this.view,e.open.tooltip);n&&n.dom.contains(t.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:U.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:N.of(!1)}),20),this.composing=0}}}),mt="object"==typeof navigator&&/* @__PURE__ */ /Win/.test(navigator.platform),gt=/* @__PURE__ */a.highest(/* @__PURE__ */g.domEventHandlers({keydown(t,e){let n=e.state.field(lt,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&(!mt||!t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],o=n.active.find(t=>t.source==i.source),s=i.completion.commitCharacters||o.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&rt(e,i),!1}})),vt=/* @__PURE__ */g.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class bt{constructor(t,e,n,i){this.field=t,this.line=e,this.from=n,this.to=i}}class yt{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,d.TrackDel),n=t.mapPos(this.to,1,d.TrackDel);return null==e||null==n?null:new yt(this.field,e,n)}}class wt{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],i=[e],o=t.doc.lineAt(e),s=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(n.length){let n=s,o=/^\t*/.exec(l)[0].length;for(let e=0;e<o;e++)n+=t.facet(O);i.push(e+n.length-o),l=n+l.slice(o)}n.push(l),e+=l.length+1}return{text:n,ranges:this.fieldPositions.map(t=>new yt(t.field,i[t.line]+t.from,i[t.line]+t.to))}}static parse(t){let e,n=[],i=[],o=[];for(let s of t.split(/\r\n?|\n/)){for(;e=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(s);){let t=e[1]?+e[1]:null,l=e[2]||e[3]||"",r=-1,a=l.replace(/\\[{}]/g,t=>t[1]);for(let e=0;e<n.length;e++)(null!=t?n[e].seq==t:a&&n[e].name==a)&&(r=e);if(r<0){let e=0;for(;e<n.length&&(null==t||null!=n[e].seq&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:a}),r=e;for(let t of o)t.field>=r&&t.field++}for(let n of o)if(n.line==i.length&&n.from>e.index){let t=e[2]?3+(e[1]||"").length:2;n.from-=t,n.to-=t}o.push(new bt(r,i.length,e.index,e.index+a.length)),s=s.slice(0,e.index)+l+s.slice(e.index+e[0].length)}s=s.replace(/\\([{}])/g,(t,e,n)=>{for(let s of o)s.line==i.length&&s.from>n&&(s.from--,s.to--);return e}),i.push(s)}return new wt(i,o)}}let xt=/* @__PURE__ */C.widget({widget:/* @__PURE__ */new class extends k{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Ct=/* @__PURE__ */C.mark({class:"cm-snippetField"});class It{constructor(t,e){this.ranges=t,this.active=e,this.deco=C.set(t.map(t=>(t.from==t.to?xt:Ct).range(t.from,t.to)),!0)}map(t){let e=[];for(let n of this.ranges){let i=n.map(t);if(!i)return null;e.push(i)}return new It(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}const kt=/* @__PURE__ */o.define({map:(t,e)=>t&&t.map(e)}),Dt=/* @__PURE__ */o.define(),Ot=/* @__PURE__ */l.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(kt))return n.value;if(n.is(Dt)&&t)return new It(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>g.decorations.from(t,t=>t?t.deco:C.none)});function Tt(t,n){return e.create(t.filter(t=>t.field==n).map(t=>e.range(t.from,t.to)))}function At(t){let e=wt.parse(t);return(t,s,l,r)=>{let{text:a,ranges:c}=e.instantiate(t.state,l),{main:h}=t.state.selection,p={changes:{from:l,to:r==h.from?h.to:r,insert:i.of(a)},scrollIntoView:!0,annotations:s?[P.of(s),n.userEvent.of("input.complete")]:void 0};if(c.length&&(p.selection=Tt(c,0)),c.some(t=>t.field>0)){let e=new It(c,0),n=p.effects=[kt.of(e)];void 0===t.state.field(Ot,!1)&&n.push(o.appendConfig.of([Ot,Bt,$t,vt]))}t.dispatch(t.state.update(p))}}function St(t){return({state:e,dispatch:n})=>{let i=e.field(Ot,!1);if(!i||t<0&&0==i.active)return!1;let o=i.active+t,s=t>0&&!i.ranges.some(e=>e.field==o+t);return n(e.update({selection:Tt(i.ranges,o),effects:kt.of(s?null:new It(i.ranges,o)),scrollIntoView:!0})),!0}}const Lt=({state:t,dispatch:e})=>!!t.field(Ot,!1)&&(e(t.update({effects:kt.of(null)})),!0),Rt=/* @__PURE__ */St(1),Et=/* @__PURE__ */St(-1),Mt=[{key:"Tab",run:Rt,shift:Et},{key:"Escape",run:Lt}],Pt=/* @__PURE__ */c.define({combine:t=>t.length?t[0]:Mt}),Bt=/* @__PURE__ */a.highest(/* @__PURE__ */x.compute([Pt],t=>t.facet(Pt)));function Ft(t,e){return{...e,apply:At(t)}}const $t=/* @__PURE__ */g.domEventHandlers({mousedown(t,e){let n,i=e.state.field(Ot,!1);if(!i||null==(n=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let o=i.ranges.find(t=>t.from<=n&&t.to>=n);return!(!o||o.field==i.active)&&(e.dispatch({selection:Tt(i.ranges,o.field),effects:kt.of(i.ranges.some(t=>t.field>o.field)?new It(i.ranges,o.field):null),scrollIntoView:!0}),!0)}}),Nt={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Ut=/* @__PURE__ */o.define({map(t,e){let n=e.mapPos(t,-1,d.TrackAfter);return null==n?void 0:n}}),qt=/* @__PURE__ */new class extends u{};qt.startSide=1,qt.endSide=-1;const Wt=/* @__PURE__ */l.define({create:()=>r.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(Ut)&&(t=t.update({add:[qt.range(n.value,n.value+1)]}));return t}});function jt(){return[Qt,Wt]}const Ht="()[]{}<>«»»«[]{}";function Vt(t){for(let e=0;e<16;e+=2)if(Ht.charCodeAt(e)==t)return Ht.charAt(e+1);return p(t<128?t:t+1)}function zt(t,e){return t.languageDataAt("closeBrackets",e)[0]||Nt}const Kt="object"==typeof navigator&&/* @__PURE__ */ /Android\b/.test(navigator.userAgent),Qt=/* @__PURE__ */g.inputHandler.of((e,n,i,o)=>{if((Kt?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let l=e.state.selection.main;if(o.length>2||2==o.length&&1==s(t(o,0))||n!=l.from||i!=l.to)return!1;let r=_t(e.state,o);return!!r&&(e.dispatch(r),!0)}),Xt=({state:n,dispatch:i})=>{if(n.readOnly)return!1;let o=zt(n,n.selection.main.head).brackets||Nt.brackets,l=null,r=n.changeByRange(i=>{if(i.empty){let l=function(e,n){let i=e.sliceString(n-2,n);return s(t(i,0))==i.length?i:i.slice(1)}(n.doc,i.head);for(let s of o)if(s==l&&Jt(n.doc,i.head)==Vt(t(s,0)))return{changes:{from:i.head-s.length,to:i.head+s.length},range:e.cursor(i.head-s.length)}}return{range:l=i}});return l||i(n.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!l},Yt=[{key:"Backspace",run:Xt}];function _t(e,n){let i=zt(e,e.selection.main.head),o=i.brackets||Nt.brackets;for(let s of o){let l=Vt(t(s,0));if(n==s)return l==s?ee(e,s,o.indexOf(s+s+s)>-1,i):Zt(e,s,l,i.before||Nt.before);if(n==l&&Gt(e,e.selection.main.from))return te(e,s,l)}return null}function Gt(t,e){let n=!1;return t.field(Wt).between(0,t.doc.length,t=>{t==e&&(n=!0)}),n}function Jt(e,n){let i=e.sliceString(n,n+2);return i.slice(0,s(t(i,0)))}function Zt(t,n,i,o){let s=null,l=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:n,from:l.from},{insert:i,from:l.to}],effects:Ut.of(l.to+n.length),range:e.range(l.anchor+n.length,l.head+n.length)};let r=Jt(t.doc,l.head);return!r||/\s/.test(r)||o.indexOf(r)>-1?{changes:{insert:n+i,from:l.head},effects:Ut.of(l.head+n.length),range:e.cursor(l.head+n.length)}:{range:s=l}});return s?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function te(t,n,i){let o=null,s=t.changeByRange(n=>n.empty&&Jt(t.doc,n.head)==i?{changes:{from:n.head,to:n.head+i.length,insert:i},range:e.cursor(n.head+i.length)}:o={range:n});return o?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function ee(t,n,i,o){let s=o.stringPrefixes||Nt.stringPrefixes,l=null,r=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Ut.of(o.to+n.length),range:e.range(o.anchor+n.length,o.head+n.length)};let r,a=o.head,c=Jt(t.doc,a);if(c==n){if(ne(t,a))return{changes:{insert:n+n,from:a},effects:Ut.of(a+n.length),range:e.cursor(a+n.length)};if(Gt(t,a)){let o=i&&t.sliceDoc(a,a+3*n.length)==n+n+n?n+n+n:n;return{changes:{from:a,to:a+o.length,insert:o},range:e.cursor(a+o.length)}}}else{if(i&&t.sliceDoc(a-2*n.length,a)==n+n&&(r=ie(t,a-2*n.length,s))>-1&&ne(t,r))return{changes:{insert:n+n+n+n,from:a},effects:Ut.of(a+n.length),range:e.cursor(a+n.length)};if(t.charCategorizer(a)(c)!=m.Word&&ie(t,a,s)>-1&&!function(t,e,n,i){let o=D(t).resolveInner(e,-1),s=i.reduce((t,e)=>Math.max(t,e.length),0);for(let l=0;l<5;l++){let l=t.sliceDoc(o.from,Math.min(o.to,o.from+n.length+s)),r=l.indexOf(n);if(!r||r>-1&&i.indexOf(l.slice(0,r))>-1){let e=o.firstChild;for(;e&&e.from==o.from&&e.to-e.from>n.length+r;){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let a=o.to==e&&o.parent;if(!a)break;o=a}return!1}(t,a,n,s))return{changes:{insert:n+n,from:a},effects:Ut.of(a+n.length),range:e.cursor(a+n.length)}}return{range:l=o}});return l?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function ne(t,e){let n=D(t).resolveInner(e+1);return n.parent&&n.from==e}function ie(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=m.Word)return e;for(let o of n){let n=e-o.length;if(t.sliceDoc(n,e)==o&&i(t.sliceDoc(n-1,n))!=m.Word)return n}return-1}function oe(t={}){return[gt,lt,j.of(t),ut,le,vt]}const se=[{key:"Ctrl-Space",run:pt},{mac:"Alt-`",run:pt},{mac:"Alt-i",run:pt},{key:"Escape",run:ft},{key:"ArrowDown",run:/* @__PURE__ */ct(!0)},{key:"ArrowUp",run:/* @__PURE__ */ct(!1)},{key:"PageDown",run:/* @__PURE__ */ct(!0,"page")},{key:"PageUp",run:/* @__PURE__ */ct(!1,"page")},{key:"Enter",run:ht}],le=/* @__PURE__ */a.highest(/* @__PURE__ */x.computeN([j],t=>t.facet(j).defaultKeymap?[se]:[]));export{T as CompletionContext,ht as acceptCompletion,oe as autocompletion,Lt as clearSnippet,jt as closeBrackets,Yt as closeBracketsKeymap,ft as closeCompletion,S as completeFromList,se as completionKeymap,Xt as deleteBracketPair,L as ifNotIn,_t as insertBracket,B as insertCompletionText,ct as moveCompletionSelection,Rt as nextSnippetField,P as pickedCompletion,Et as prevSnippetField,At as snippet,Ft as snippetCompletion,Pt as snippetKeymap,pt as startCompletion};
|