qidian-vue-ui 1.1.58 → 1.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.mjs +7 -0
- package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs +11 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
- package/dist/_virtual/dayjs.min.mjs +8 -0
- package/dist/_virtual/dayjs.min.mjs.map +1 -0
- package/dist/_virtual/dayjs.min2.mjs +5 -0
- package/dist/_virtual/dayjs.min2.mjs.map +1 -0
- package/dist/components/auto-tooltip/index.css +20 -0
- package/dist/components/auto-tooltip/index.d.ts +2 -0
- package/dist/components/auto-tooltip/index.vue.d.ts +25 -0
- package/dist/components/auto-tooltip/index.vue.mjs +9 -0
- package/dist/components/auto-tooltip/index.vue.mjs.map +1 -0
- package/dist/components/auto-tooltip/index.vue2.mjs +82 -0
- package/dist/components/auto-tooltip/index.vue2.mjs.map +1 -0
- package/dist/components/auto-tooltip/types.d.ts +9 -0
- package/dist/components/avatar/index.css +9 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.vue.d.ts +18 -0
- package/dist/components/avatar/index.vue.mjs +9 -0
- package/dist/components/avatar/index.vue.mjs.map +1 -0
- package/dist/components/avatar/index.vue2.mjs +126 -0
- package/dist/components/avatar/index.vue2.mjs.map +1 -0
- package/dist/components/avatar/props.d.ts +7 -0
- package/dist/components/avatar/props.mjs +12 -0
- package/dist/components/avatar/props.mjs.map +1 -0
- package/dist/components/avatar/types.d.ts +9 -0
- package/dist/components/card/index.css +6 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.vue.d.ts +16 -0
- package/dist/components/card/index.vue.mjs +9 -0
- package/dist/components/card/index.vue.mjs.map +1 -0
- package/dist/components/card/index.vue2.mjs +91 -0
- package/dist/components/card/index.vue2.mjs.map +1 -0
- package/dist/components/card/props.d.ts +4 -0
- package/dist/components/card/props.mjs +8 -0
- package/dist/components/card/props.mjs.map +1 -0
- package/dist/components/card/types.d.ts +5 -0
- package/dist/components/config-provider/config.d.ts +8 -0
- package/dist/components/config-provider/config.mjs +15 -0
- package/dist/components/config-provider/config.mjs.map +1 -0
- package/dist/components/config-provider/index.d.ts +262 -0
- package/dist/components/config-provider/index.mjs +98 -0
- package/dist/components/config-provider/index.mjs.map +1 -0
- package/dist/components/config-provider/types.d.ts +97 -0
- package/dist/components/config-provider/useConfig.d.ts +301 -0
- package/dist/components/config-provider/useConfig.mjs +26 -0
- package/dist/components/config-provider/useConfig.mjs.map +1 -0
- package/dist/components/config-renderer/compute.d.ts +8 -0
- package/dist/components/config-renderer/compute.mjs +68 -0
- package/dist/components/config-renderer/compute.mjs.map +1 -0
- package/dist/components/config-renderer/index.d.ts +4 -0
- package/dist/components/config-renderer/index.vue.d.ts +7 -0
- package/dist/components/config-renderer/index.vue.mjs +126 -0
- package/dist/components/config-renderer/index.vue.mjs.map +1 -0
- package/dist/components/config-renderer/index.vue2.mjs +5 -0
- package/dist/components/config-renderer/index.vue2.mjs.map +1 -0
- package/dist/components/config-renderer/types.d.ts +39 -0
- package/dist/components/config-renderer/utils.d.ts +15 -0
- package/dist/components/config-renderer/utils.mjs +49 -0
- package/dist/components/config-renderer/utils.mjs.map +1 -0
- package/dist/components/crud/define.d.ts +6 -0
- package/dist/components/crud/define.mjs +11 -0
- package/dist/components/crud/define.mjs.map +1 -0
- package/dist/components/crud/index.d.ts +4 -0
- package/dist/components/crud/list/index.css +37 -0
- package/dist/components/crud/list/index.d.ts +2 -0
- package/dist/components/crud/list/index.vue.d.ts +29 -0
- package/dist/components/crud/list/index.vue.mjs +9 -0
- package/dist/components/crud/list/index.vue.mjs.map +1 -0
- package/dist/components/crud/list/index.vue2.mjs +176 -0
- package/dist/components/crud/list/index.vue2.mjs.map +1 -0
- package/dist/components/crud/list/props.d.ts +5 -0
- package/dist/components/crud/list/props.mjs +9 -0
- package/dist/components/crud/list/props.mjs.map +1 -0
- package/dist/components/crud/list/types.d.ts +9 -0
- package/dist/components/crud/search/index.css +16 -0
- package/dist/components/crud/search/index.d.ts +2 -0
- package/dist/components/crud/search/index.vue.d.ts +44 -0
- package/dist/components/crud/search/index.vue.mjs +9 -0
- package/dist/components/crud/search/index.vue.mjs.map +1 -0
- package/dist/components/crud/search/index.vue2.mjs +205 -0
- package/dist/components/crud/search/index.vue2.mjs.map +1 -0
- package/dist/components/crud/search/props.d.ts +36 -0
- package/dist/components/crud/search/props.mjs +21 -0
- package/dist/components/crud/search/props.mjs.map +1 -0
- package/dist/components/crud/search/types.d.ts +5 -0
- package/dist/components/crud/table/index.css +43 -0
- package/dist/components/crud/table/index.d.ts +2 -0
- package/dist/components/crud/table/index.vue.d.ts +35 -0
- package/dist/components/crud/table/index.vue.mjs +9 -0
- package/dist/components/crud/table/index.vue.mjs.map +1 -0
- package/dist/components/crud/table/index.vue2.mjs +1036 -0
- package/dist/components/crud/table/index.vue2.mjs.map +1 -0
- package/dist/components/crud/table/props.d.ts +39 -0
- package/dist/components/crud/table/props.mjs +16 -0
- package/dist/components/crud/table/props.mjs.map +1 -0
- package/dist/components/crud/table/types.d.ts +65 -0
- package/dist/components/dialog/form.vue.d.ts +22 -0
- package/dist/components/dialog/form.vue.mjs +178 -0
- package/dist/components/dialog/form.vue.mjs.map +1 -0
- package/dist/components/dialog/form.vue2.mjs +5 -0
- package/dist/components/dialog/form.vue2.mjs.map +1 -0
- package/dist/components/dialog/index.css +3 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/dialog/index.vue.d.ts +35 -0
- package/dist/components/dialog/index.vue.mjs +114 -0
- package/dist/components/dialog/index.vue.mjs.map +1 -0
- package/dist/components/dialog/index.vue3.mjs +7 -0
- package/dist/components/dialog/index.vue3.mjs.map +1 -0
- package/dist/components/dialog/props.d.ts +58 -0
- package/dist/components/dialog/props.mjs +26 -0
- package/dist/components/dialog/props.mjs.map +1 -0
- package/dist/components/dialog/types.d.ts +18 -0
- package/dist/components/dict/checkbox-group/index.css +3 -0
- package/dist/components/dict/checkbox-group/index.d.ts +2 -0
- package/dist/components/dict/checkbox-group/index.vue.d.ts +15 -0
- package/dist/components/dict/checkbox-group/index.vue.mjs +9 -0
- package/dist/components/dict/checkbox-group/index.vue.mjs.map +1 -0
- package/dist/components/dict/checkbox-group/index.vue2.mjs +82 -0
- package/dist/components/dict/checkbox-group/index.vue2.mjs.map +1 -0
- package/dist/components/dict/checkbox-group/props.d.ts +9 -0
- package/dist/components/dict/checkbox-group/props.mjs +13 -0
- package/dist/components/dict/checkbox-group/props.mjs.map +1 -0
- package/dist/components/dict/checkbox-group/types.d.ts +6 -0
- package/dist/components/dict/index.d.ts +4 -0
- package/dist/components/dict/radio-group/index.css +3 -0
- package/dist/components/dict/radio-group/index.d.ts +2 -0
- package/dist/components/dict/radio-group/index.vue.d.ts +13 -0
- package/dist/components/dict/radio-group/index.vue.mjs +9 -0
- package/dist/components/dict/radio-group/index.vue.mjs.map +1 -0
- package/dist/components/dict/radio-group/index.vue2.mjs +58 -0
- package/dist/components/dict/radio-group/index.vue2.mjs.map +1 -0
- package/dist/components/dict/radio-group/props.d.ts +7 -0
- package/dist/components/dict/radio-group/props.mjs +11 -0
- package/dist/components/dict/radio-group/props.mjs.map +1 -0
- package/dist/components/dict/radio-group/types.d.ts +4 -0
- package/dist/components/dict/select/index.d.ts +2 -0
- package/dist/components/dict/select/index.vue.d.ts +31 -0
- package/dist/components/dict/select/index.vue.mjs +165 -0
- package/dist/components/dict/select/index.vue.mjs.map +1 -0
- package/dist/components/dict/select/index.vue2.mjs +5 -0
- package/dist/components/dict/select/index.vue2.mjs.map +1 -0
- package/dist/components/dict/select/props.d.ts +11 -0
- package/dist/components/dict/select/props.mjs +15 -0
- package/dist/components/dict/select/props.mjs.map +1 -0
- package/dist/components/dict/select/types.d.ts +7 -0
- package/dist/components/dict/tag/index.css +5 -0
- package/dist/components/dict/tag/index.d.ts +2 -0
- package/dist/components/dict/tag/index.vue.d.ts +40 -0
- package/dist/components/dict/tag/index.vue.mjs +9 -0
- package/dist/components/dict/tag/index.vue.mjs.map +1 -0
- package/dist/components/dict/tag/index.vue2.mjs +97 -0
- package/dist/components/dict/tag/index.vue2.mjs.map +1 -0
- package/dist/components/dict/tag/props.d.ts +5 -0
- package/dist/components/dict/tag/props.mjs +10 -0
- package/dist/components/dict/tag/props.mjs.map +1 -0
- package/dist/components/dict/tag/types.d.ts +9 -0
- package/dist/components/form/config.d.ts +4 -0
- package/dist/components/form/config.mjs +7 -0
- package/dist/components/form/config.mjs.map +1 -0
- package/dist/components/form/index.css +32 -0
- package/dist/components/form/index.d.ts +5 -0
- package/dist/components/form/index.vue.d.ts +39 -0
- package/dist/components/form/index.vue.mjs +9 -0
- package/dist/components/form/index.vue.mjs.map +1 -0
- package/dist/components/form/index.vue2.mjs +209 -0
- package/dist/components/form/index.vue2.mjs.map +1 -0
- package/dist/components/form/item.css +6 -0
- package/dist/components/form/item.vue.d.ts +25 -0
- package/dist/components/form/item.vue.mjs +9 -0
- package/dist/components/form/item.vue.mjs.map +1 -0
- package/dist/components/form/item.vue2.mjs +118 -0
- package/dist/components/form/item.vue2.mjs.map +1 -0
- package/dist/components/form/props.d.ts +45 -0
- package/dist/components/form/props.mjs +43 -0
- package/dist/components/form/props.mjs.map +1 -0
- package/dist/components/form/types.d.ts +27 -0
- package/dist/components/grid/config.d.ts +15 -0
- package/dist/components/grid/config.mjs +27 -0
- package/dist/components/grid/config.mjs.map +1 -0
- package/dist/components/grid/index.css +4 -0
- package/dist/components/grid/index.d.ts +4 -0
- package/dist/components/grid/index.vue.d.ts +19 -0
- package/dist/components/grid/index.vue.mjs +9 -0
- package/dist/components/grid/index.vue.mjs.map +1 -0
- package/dist/components/grid/index.vue2.mjs +59 -0
- package/dist/components/grid/index.vue2.mjs.map +1 -0
- package/dist/components/grid/item.css +3 -0
- package/dist/components/grid/item.vue.d.ts +18 -0
- package/dist/components/grid/item.vue.mjs +9 -0
- package/dist/components/grid/item.vue.mjs.map +1 -0
- package/dist/components/grid/item.vue2.mjs +74 -0
- package/dist/components/grid/item.vue2.mjs.map +1 -0
- package/dist/components/grid/types.d.ts +12 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image/index.vue.d.ts +20 -0
- package/dist/components/image/index.vue.mjs +132 -0
- package/dist/components/image/index.vue.mjs.map +1 -0
- package/dist/components/image/index.vue2.mjs +5 -0
- package/dist/components/image/index.vue2.mjs.map +1 -0
- package/dist/components/image/props.d.ts +4 -0
- package/dist/components/image/props.mjs +8 -0
- package/dist/components/image/props.mjs.map +1 -0
- package/dist/components/image/types.d.ts +6 -0
- package/dist/components/import-dialog/index.d.ts +2 -0
- package/dist/components/import-dialog/index.vue.d.ts +14 -0
- package/dist/components/import-dialog/index.vue.mjs +180 -0
- package/dist/components/import-dialog/index.vue.mjs.map +1 -0
- package/dist/components/import-dialog/index.vue2.mjs +5 -0
- package/dist/components/import-dialog/index.vue2.mjs.map +1 -0
- package/dist/components/import-dialog/props.d.ts +5 -0
- package/dist/components/import-dialog/props.mjs +9 -0
- package/dist/components/import-dialog/props.mjs.map +1 -0
- package/dist/components/import-dialog/types.d.ts +9 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/md-editor/config.d.ts +1 -0
- package/dist/components/md-editor/index.css +322 -0
- package/dist/components/md-editor/index.d.ts +2 -0
- package/dist/components/md-editor/index.vue.d.ts +35 -0
- package/dist/components/md-editor/index.vue.mjs +11 -0
- package/dist/components/md-editor/index.vue.mjs.map +1 -0
- package/dist/components/md-editor/index.vue2.mjs +180 -0
- package/dist/components/md-editor/index.vue2.mjs.map +1 -0
- package/dist/components/md-editor/index2.css +46 -0
- package/dist/components/md-editor/props.d.ts +19 -0
- package/dist/components/md-editor/props.mjs +50 -0
- package/dist/components/md-editor/props.mjs.map +1 -0
- package/dist/components/md-editor/types.d.ts +65 -0
- package/dist/components/office/index.d.ts +1 -0
- package/dist/components/office/pdf/config.d.ts +6 -0
- package/dist/components/office/pdf/config.mjs +9 -0
- package/dist/components/office/pdf/config.mjs.map +1 -0
- package/dist/components/office/pdf/hooks/useZoom.d.ts +21 -0
- package/dist/components/office/pdf/hooks/useZoom.mjs +200 -0
- package/dist/components/office/pdf/hooks/useZoom.mjs.map +1 -0
- package/dist/components/office/pdf/index.css +4870 -0
- package/dist/components/office/pdf/index.d.ts +2 -0
- package/dist/components/office/pdf/index.vue.d.ts +10 -0
- package/dist/components/office/pdf/index.vue.mjs +11 -0
- package/dist/components/office/pdf/index.vue.mjs.map +1 -0
- package/dist/components/office/pdf/index.vue2.mjs +323 -0
- package/dist/components/office/pdf/index.vue2.mjs.map +1 -0
- package/dist/components/office/pdf/index2.css +82 -0
- package/dist/components/office/pdf/types.d.ts +17 -0
- package/dist/components/org/index.d.ts +1 -0
- package/dist/components/org/select/index.css +13 -0
- package/dist/components/org/select/index.d.ts +2 -0
- package/dist/components/org/select/index.vue.d.ts +28 -0
- package/dist/components/org/select/index.vue.mjs +270 -0
- package/dist/components/org/select/index.vue.mjs.map +1 -0
- package/dist/components/org/select/index.vue3.mjs +7 -0
- package/dist/components/org/select/index.vue3.mjs.map +1 -0
- package/dist/components/org/select/props.d.ts +22 -0
- package/dist/components/org/select/props.mjs +19 -0
- package/dist/components/org/select/props.mjs.map +1 -0
- package/dist/components/org/select/types.d.ts +22 -0
- package/dist/components/read-write/index.css +26 -0
- package/dist/components/read-write/index.d.ts +2 -0
- package/dist/components/read-write/index.vue.d.ts +20 -0
- package/dist/components/read-write/index.vue.mjs +9 -0
- package/dist/components/read-write/index.vue.mjs.map +1 -0
- package/dist/components/read-write/index.vue2.mjs +320 -0
- package/dist/components/read-write/index.vue2.mjs.map +1 -0
- package/dist/components/read-write/props.d.ts +10 -0
- package/dist/components/read-write/props.mjs +14 -0
- package/dist/components/read-write/props.mjs.map +1 -0
- package/dist/components/read-write/types.d.ts +12 -0
- package/dist/components/service/index.d.ts +2 -0
- package/dist/components/service/list/index.css +13 -0
- package/dist/components/service/list/index.d.ts +2 -0
- package/dist/components/service/list/index.vue.d.ts +26 -0
- package/dist/components/service/list/index.vue.mjs +9 -0
- package/dist/components/service/list/index.vue.mjs.map +1 -0
- package/dist/components/service/list/index.vue2.mjs +254 -0
- package/dist/components/service/list/index.vue2.mjs.map +1 -0
- package/dist/components/service/list/props.d.ts +4 -0
- package/dist/components/service/list/props.mjs +8 -0
- package/dist/components/service/list/props.mjs.map +1 -0
- package/dist/components/service/list/types.d.ts +15 -0
- package/dist/components/service/table/index.css +11 -0
- package/dist/components/service/table/index.d.ts +2 -0
- package/dist/components/service/table/index.vue.d.ts +29 -0
- package/dist/components/service/table/index.vue.mjs +9 -0
- package/dist/components/service/table/index.vue.mjs.map +1 -0
- package/dist/components/service/table/index.vue2.mjs +711 -0
- package/dist/components/service/table/index.vue2.mjs.map +1 -0
- package/dist/components/service/table/props.d.ts +35 -0
- package/dist/components/service/table/props.mjs +40 -0
- package/dist/components/service/table/props.mjs.map +1 -0
- package/dist/components/service/table/types.d.ts +18 -0
- package/dist/components/service-dialog-table-select/define.d.ts +4 -0
- package/dist/components/service-dialog-table-select/define.mjs +7 -0
- package/dist/components/service-dialog-table-select/define.mjs.map +1 -0
- package/dist/components/service-dialog-table-select/index.css +28 -0
- package/dist/components/service-dialog-table-select/index.d.ts +3 -0
- package/dist/components/service-dialog-table-select/index.vue.d.ts +63 -0
- package/dist/components/service-dialog-table-select/index.vue.mjs +9 -0
- package/dist/components/service-dialog-table-select/index.vue.mjs.map +1 -0
- package/dist/components/service-dialog-table-select/index.vue2.mjs +658 -0
- package/dist/components/service-dialog-table-select/index.vue2.mjs.map +1 -0
- package/dist/components/service-dialog-table-select/props.d.ts +58 -0
- package/dist/components/service-dialog-table-select/props.mjs +35 -0
- package/dist/components/service-dialog-table-select/props.mjs.map +1 -0
- package/dist/components/service-dialog-table-select/types.d.ts +22 -0
- package/dist/components/service-popup-table-select/define.d.ts +4 -0
- package/dist/components/service-popup-table-select/define.mjs +7 -0
- package/dist/components/service-popup-table-select/define.mjs.map +1 -0
- package/dist/components/service-popup-table-select/index.css +3 -0
- package/dist/components/service-popup-table-select/index.d.ts +3 -0
- package/dist/components/service-popup-table-select/index.vue.d.ts +63 -0
- package/dist/components/service-popup-table-select/index.vue.mjs +11 -0
- package/dist/components/service-popup-table-select/index.vue.mjs.map +1 -0
- package/dist/components/service-popup-table-select/index.vue2.mjs +645 -0
- package/dist/components/service-popup-table-select/index.vue2.mjs.map +1 -0
- package/dist/components/service-popup-table-select/index2.css +19 -0
- package/dist/components/service-popup-table-select/props.d.ts +36 -0
- package/dist/components/service-popup-table-select/props.mjs +25 -0
- package/dist/components/service-popup-table-select/props.mjs.map +1 -0
- package/dist/components/service-popup-table-select/types.d.ts +13 -0
- package/dist/components/service-select/index.css +6 -0
- package/dist/components/service-select/index.d.ts +2 -0
- package/dist/components/service-select/index.vue.d.ts +30 -0
- package/dist/components/service-select/index.vue.mjs +9 -0
- package/dist/components/service-select/index.vue.mjs.map +1 -0
- package/dist/components/service-select/index.vue2.mjs +408 -0
- package/dist/components/service-select/index.vue2.mjs.map +1 -0
- package/dist/components/service-select/props.d.ts +19 -0
- package/dist/components/service-select/props.mjs +24 -0
- package/dist/components/service-select/props.mjs.map +1 -0
- package/dist/components/service-select/types.d.ts +15 -0
- package/dist/components/upload/config.d.ts +4 -0
- package/dist/components/upload/config.mjs +37 -0
- package/dist/components/upload/config.mjs.map +1 -0
- package/dist/components/upload/index.css +70 -0
- package/dist/components/upload/index.d.ts +3 -0
- package/dist/components/upload/index.vue.d.ts +21 -0
- package/dist/components/upload/index.vue.mjs +9 -0
- package/dist/components/upload/index.vue.mjs.map +1 -0
- package/dist/components/upload/index.vue2.mjs +561 -0
- package/dist/components/upload/index.vue2.mjs.map +1 -0
- package/dist/components/upload/props.d.ts +28 -0
- package/dist/components/upload/props.mjs +33 -0
- package/dist/components/upload/props.mjs.map +1 -0
- package/dist/components/upload/types.d.ts +46 -0
- package/dist/directive/hasPermi.d.ts +12 -0
- package/dist/directive/hasPermi.mjs +30 -0
- package/dist/directive/hasPermi.mjs.map +1 -0
- package/dist/directive/hasRole.d.ts +12 -0
- package/dist/directive/hasRole.mjs +30 -0
- package/dist/directive/hasRole.mjs.map +1 -0
- package/dist/directive/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/useAgentChat/index.d.ts +15 -0
- package/dist/hooks/useAgentChat/index.mjs +202 -0
- package/dist/hooks/useAgentChat/index.mjs.map +1 -0
- package/dist/hooks/useAgentChat/types.d.ts +46 -0
- package/dist/hooks/useDict/index.d.ts +18 -0
- package/dist/hooks/useDict/index.mjs +137 -0
- package/dist/hooks/useDict/index.mjs.map +1 -0
- package/dist/hooks/useDict/types.d.ts +13 -0
- package/dist/hooks/useDisabled.d.ts +5 -0
- package/dist/hooks/useDisabled.mjs +18 -0
- package/dist/hooks/useDisabled.mjs.map +1 -0
- package/dist/hooks/useModal.d.ts +36 -0
- package/dist/hooks/useModal.mjs +201 -0
- package/dist/hooks/useModal.mjs.map +1 -0
- package/dist/hooks/useReadonly.d.ts +5 -0
- package/dist/hooks/useReadonly.mjs +18 -0
- package/dist/hooks/useReadonly.mjs.map +1 -0
- package/dist/hooks/useUserAvatar/index.d.ts +5 -0
- package/dist/hooks/useUserAvatar/index.mjs +38 -0
- package/dist/hooks/useUserAvatar/index.mjs.map +1 -0
- package/dist/hooks/useUserAvatar/types.d.ts +3 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +116 -0
- package/dist/index.mjs.map +1 -0
- package/dist/locales/en-US.d.ts +331 -0
- package/dist/locales/en-US.mjs +86 -0
- package/dist/locales/en-US.mjs.map +1 -0
- package/dist/locales/zh-CN.d.ts +331 -0
- package/dist/locales/zh-CN.mjs +83 -0
- package/dist/locales/zh-CN.mjs.map +1 -0
- package/dist/locales/zh-TW.d.ts +331 -0
- package/dist/locales/zh-TW.mjs +83 -0
- package/dist/locales/zh-TW.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_autocomplete@6.20.0/node_modules/@codemirror/autocomplete/dist/index.mjs +1602 -0
- package/dist/node_modules/.pnpm/@codemirror_autocomplete@6.20.0/node_modules/@codemirror/autocomplete/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_commands@6.10.1/node_modules/@codemirror/commands/dist/index.mjs +1162 -0
- package/dist/node_modules/.pnpm/@codemirror_commands@6.10.1/node_modules/@codemirror/commands/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-angular@0.1.4/node_modules/@codemirror/lang-angular/dist/index.mjs +119 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-angular@0.1.4/node_modules/@codemirror/lang-angular/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-cpp@6.0.3/node_modules/@codemirror/lang-cpp/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-cpp@6.0.3/node_modules/@codemirror/lang-cpp/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.mjs +868 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-go@6.0.1/node_modules/@codemirror/lang-go/dist/index.mjs +227 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-go@6.0.1/node_modules/@codemirror/lang-go/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-html@6.4.11/node_modules/@codemirror/lang-html/dist/index.mjs +741 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-html@6.4.11/node_modules/@codemirror/lang-html/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-java@6.0.2/node_modules/@codemirror/lang-java/dist/index.mjs +39 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-java@6.0.2/node_modules/@codemirror/lang-java/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-javascript@6.2.4/node_modules/@codemirror/lang-javascript/dist/index.mjs +443 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-javascript@6.2.4/node_modules/@codemirror/lang-javascript/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-jinja@6.0.0/node_modules/@codemirror/lang-jinja/dist/index.mjs +294 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-jinja@6.0.0/node_modules/@codemirror/lang-jinja/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.mjs +53 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-less@6.0.2/node_modules/@codemirror/lang-less/dist/index.mjs +153 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-less@6.0.2/node_modules/@codemirror/lang-less/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-liquid@6.3.1/node_modules/@codemirror/lang-liquid/dist/index.mjs +308 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-liquid@6.3.1/node_modules/@codemirror/lang-liquid/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-markdown@6.5.0/node_modules/@codemirror/lang-markdown/dist/index.mjs +435 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-markdown@6.5.0/node_modules/@codemirror/lang-markdown/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-php@6.0.2/node_modules/@codemirror/lang-php/dist/index.mjs +66 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-php@6.0.2/node_modules/@codemirror/lang-php/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-python@6.2.1/node_modules/@codemirror/lang-python/dist/index.mjs +429 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-python@6.2.1/node_modules/@codemirror/lang-python/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-rust@6.0.2/node_modules/@codemirror/lang-rust/dist/index.mjs +35 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-rust@6.0.2/node_modules/@codemirror/lang-rust/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-sass@6.0.2/node_modules/@codemirror/lang-sass/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-sass@6.0.2/node_modules/@codemirror/lang-sass/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.mjs +707 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-vue@0.1.3/node_modules/@codemirror/lang-vue/dist/index.mjs +84 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-vue@0.1.3/node_modules/@codemirror/lang-vue/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-wast@6.0.2/node_modules/@codemirror/lang-wast/dist/index.mjs +63 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-wast@6.0.2/node_modules/@codemirror/lang-wast/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-xml@6.1.0/node_modules/@codemirror/lang-xml/dist/index.mjs +281 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-xml@6.1.0/node_modules/@codemirror/lang-xml/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-yaml@6.1.2/node_modules/@codemirror/lang-yaml/dist/index.mjs +81 -0
- package/dist/node_modules/.pnpm/@codemirror_lang-yaml@6.1.2/node_modules/@codemirror/lang-yaml/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_language-data@6.5.2/node_modules/@codemirror/language-data/dist/index.mjs +1030 -0
- package/dist/node_modules/.pnpm/@codemirror_language-data@6.5.2/node_modules/@codemirror/language-data/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_language@6.12.1/node_modules/@codemirror/language/dist/index.mjs +1642 -0
- package/dist/node_modules/.pnpm/@codemirror_language@6.12.1/node_modules/@codemirror/language/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/apl.mjs +141 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/apl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/asciiarmor.mjs +57 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/asciiarmor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/asn1.mjs +145 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/asn1.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/asterisk.mjs +346 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/asterisk.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/brainfuck.mjs +54 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/brainfuck.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/clike.mjs +800 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/clike.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/clojure.mjs +850 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/clojure.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/cmake.mjs +72 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/cmake.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/cobol.mjs +121 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/cobol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/coffeescript.mjs +309 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/coffeescript.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/commonlisp.mjs +131 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/commonlisp.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/crystal.mjs +399 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/crystal.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/css.mjs +1773 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/css.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/cypher.mjs +122 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/cypher.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/d.mjs +180 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/d.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/diff.mjs +26 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/diff.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/dockerfile.mjs +202 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/dockerfile.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/dtd.mjs +115 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/dtd.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/dylan.mjs +315 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/dylan.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ebnf.mjs +141 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ebnf.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ecl.mjs +179 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ecl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/eiffel.mjs +135 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/eiffel.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/elm.mjs +177 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/elm.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/erlang.mjs +675 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/erlang.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/factor.mjs +66 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/factor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/fcl.mjs +142 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/fcl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/forth.mjs +117 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/forth.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/fortran.mjs +468 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/fortran.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/gas.mjs +294 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/gas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/gherkin.mjs +116 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/gherkin.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/groovy.mjs +224 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/groovy.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/haskell.mjs +460 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/haskell.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/haxe.mjs +515 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/haxe.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/http.mjs +80 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/http.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/idl.mjs +986 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/idl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/javascript.mjs +993 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/javascript.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/julia.mjs +408 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/julia.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/livescript.mjs +297 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/livescript.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/lua.mjs +257 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/lua.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mathematica.mjs +111 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mathematica.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mbox.mjs +118 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mbox.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mirc.mjs +108 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mirc.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mllike.mjs +335 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mllike.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/modelica.mjs +148 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/modelica.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mscgen.mjs +136 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mscgen.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mumps.mjs +94 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/mumps.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/nginx.mjs +142 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/nginx.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/nsis.mjs +63 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/nsis.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ntriples.mjs +154 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ntriples.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/octave.mjs +201 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/octave.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/oz.mjs +232 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/oz.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/pascal.mjs +106 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/pascal.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/perl.mjs +1106 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/perl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/pig.mjs +102 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/pig.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/powershell.mjs +329 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/powershell.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/properties.mjs +59 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/properties.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/protobuf.mjs +78 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/protobuf.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/pug.mjs +406 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/pug.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/puppet.mjs +138 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/puppet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/python.mjs +427 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/python.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/q.mjs +132 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/q.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/r.mjs +171 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/r.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/rpm.mjs +110 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/rpm.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ruby.mjs +331 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ruby.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sas.mjs +208 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/scheme.mjs +223 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/scheme.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/shell.mjs +223 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/shell.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sieve.mjs +136 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sieve.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/simple-mode.mjs +131 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/simple-mode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/smalltalk.mjs +122 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/smalltalk.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/solr.mjs +70 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/solr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sparql.mjs +250 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sparql.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/spreadsheet.mjs +88 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/spreadsheet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sql.mjs +343 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/sql.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/stex.mjs +231 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/stex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/stylus.mjs +566 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/stylus.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/swift.mjs +292 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/swift.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/tcl.mjs +115 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/tcl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/textile.mjs +415 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/textile.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/tiddlywiki.mjs +219 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/tiddlywiki.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/tiki.mjs +269 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/tiki.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/toml.mjs +77 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/toml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/troff.mjs +62 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/troff.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ttcn-cfg.mjs +134 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ttcn-cfg.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ttcn.mjs +193 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/ttcn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/turtle.mjs +125 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/turtle.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/vb.mjs +197 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/vb.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/vbscript.mjs +479 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/vbscript.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/velocity.mjs +150 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/velocity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/verilog.mjs +430 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/verilog.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/vhdl.mjs +159 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/vhdl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/webidl.mjs +205 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/webidl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/xquery.mjs +526 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/xquery.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/yacas.mjs +131 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/yacas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/z80.mjs +93 -0
- package/dist/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/z80.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_search@6.5.11/node_modules/@codemirror/search/dist/index.mjs +1045 -0
- package/dist/node_modules/.pnpm/@codemirror_search@6.5.11/node_modules/@codemirror/search/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_state@6.5.3/node_modules/@codemirror/state/dist/index.mjs +3382 -0
- package/dist/node_modules/.pnpm/@codemirror_state@6.5.3/node_modules/@codemirror/state/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@codemirror_view@6.39.6/node_modules/@codemirror/view/dist/index.mjs +9048 -0
- package/dist/node_modules/.pnpm/@codemirror_view@6.39.6/node_modules/@codemirror/view/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.mjs +2061 -0
- package/dist/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_cpp@1.1.4/node_modules/@lezer/cpp/dist/index.mjs +127 -0
- package/dist/node_modules/.pnpm/@lezer_cpp@1.1.4/node_modules/@lezer/cpp/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_css@1.3.0/node_modules/@lezer/css/dist/index.mjs +158 -0
- package/dist/node_modules/.pnpm/@lezer_css@1.3.0/node_modules/@lezer/css/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_go@1.0.1/node_modules/@lezer/go/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/@lezer_go@1.0.1/node_modules/@lezer/go/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.mjs +719 -0
- package/dist/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.mjs +311 -0
- package/dist/node_modules/.pnpm/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_java@1.1.3/node_modules/@lezer/java/dist/index.mjs +65 -0
- package/dist/node_modules/.pnpm/@lezer_java@1.1.3/node_modules/@lezer/java/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_javascript@1.5.4/node_modules/@lezer/javascript/dist/index.mjs +195 -0
- package/dist/node_modules/.pnpm/@lezer_javascript@1.5.4/node_modules/@lezer/javascript/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.mjs +36 -0
- package/dist/node_modules/.pnpm/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_lr@1.4.5/node_modules/@lezer/lr/dist/index.mjs +1768 -0
- package/dist/node_modules/.pnpm/@lezer_lr@1.4.5/node_modules/@lezer/lr/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_markdown@1.6.2/node_modules/@lezer/markdown/dist/index.mjs +2077 -0
- package/dist/node_modules/.pnpm/@lezer_markdown@1.6.2/node_modules/@lezer/markdown/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_php@1.0.5/node_modules/@lezer/php/dist/index.mjs +272 -0
- package/dist/node_modules/.pnpm/@lezer_php@1.0.5/node_modules/@lezer/php/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_python@1.1.18/node_modules/@lezer/python/dist/index.mjs +269 -0
- package/dist/node_modules/.pnpm/@lezer_python@1.1.18/node_modules/@lezer/python/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_rust@1.0.2/node_modules/@lezer/rust/dist/index.mjs +150 -0
- package/dist/node_modules/.pnpm/@lezer_rust@1.0.2/node_modules/@lezer/rust/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_sass@1.1.0/node_modules/@lezer/sass/dist/index.mjs +289 -0
- package/dist/node_modules/.pnpm/@lezer_sass@1.1.0/node_modules/@lezer/sass/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_xml@1.0.6/node_modules/@lezer/xml/dist/index.mjs +113 -0
- package/dist/node_modules/.pnpm/@lezer_xml@1.0.6/node_modules/@lezer/xml/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@lezer_yaml@1.0.3/node_modules/@lezer/yaml/dist/index.mjs +335 -0
- package/dist/node_modules/.pnpm/@lezer_yaml@1.0.3/node_modules/@lezer/yaml/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.mjs +76 -0
- package/dist/node_modules/.pnpm/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs +90 -0
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs +110 -0
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vavt_copy2clipboard@1.0.3/node_modules/@vavt/copy2clipboard/index.mjs +26 -0
- package/dist/node_modules/.pnpm/@vavt_copy2clipboard@1.0.3/node_modules/@vavt/copy2clipboard/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vavt_util@2.1.1/node_modules/@vavt/util/lib/es/index.mjs +128 -0
- package/dist/node_modules/.pnpm/@vavt_util@2.1.1/node_modules/@vavt/util/lib/es/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +62 -0
- package/dist/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +67 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/crelt@1.0.6/node_modules/crelt/index.mjs +31 -0
- package/dist/node_modules/.pnpm/crelt@1.0.6/node_modules/crelt/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs +287 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +380 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +57 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +8 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +8 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +355 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +75 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +28 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +62 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs +32 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +26 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +35 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +44 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lru-cache@11.2.4/node_modules/lru-cache/dist/esm/index.mjs +1424 -0
- package/dist/node_modules/.pnpm/lru-cache@11.2.4/node_modules/lru-cache/dist/esm/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/Icon.mjs +42 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/Icon.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.mjs +22 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.mjs +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/bold.mjs +17 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/bold.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chart-area.mjs +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chart-area.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/code-xml.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/code-xml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/code.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/expand.mjs +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/expand.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/eye.mjs +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/eye.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/forward.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/forward.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/heading.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/heading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/image.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/image.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/italic.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/italic.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/link.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/link.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list-ordered.mjs +19 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list-ordered.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list-todo.mjs +18 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list-todo.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list-tree.mjs +18 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list-tree.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list.mjs +19 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/maximize-2.mjs +17 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/maximize-2.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/minimize-2.mjs +17 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/minimize-2.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/quote.mjs +27 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/quote.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/reply.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/reply.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/save.mjs +22 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/save.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/shrink.mjs +17 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/shrink.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/square-code.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/square-code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/square-sigma.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/square-sigma.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/strikethrough.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/strikethrough.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/subscript.mjs +22 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/subscript.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/superscript.mjs +22 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/superscript.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/table.mjs +17 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/table.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/trash-2.mjs +18 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/trash-2.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/underline.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/underline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/upload.mjs +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/upload.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/view.mjs +23 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/view.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/x.mjs +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/x.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.mjs +27 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.543.0_vue@3.5.26_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-image-figures@2.1.1_markdown-it@14.1.0/node_modules/markdown-it-image-figures/dist/markdown-it-images-figures.mjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it-image-figures@2.1.1_markdown-it@14.1.0/node_modules/markdown-it-image-figures/dist/markdown-it-images-figures.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +50 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +50 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs +68 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs +19 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs +227 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs +9 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +56 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs +174 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs +88 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs +124 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs +79 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs +60 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs +166 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs +144 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs +128 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs +28 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs +71 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs +44 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs +63 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs +227 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs +178 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs +160 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs +193 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs +16 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs +100 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +153 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs +60 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs +47 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +66 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +89 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs +54 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs +116 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs +111 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +98 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs +63 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/MdEditor.mjs +3092 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/MdEditor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/ModalToolbar.mjs +154 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/ModalToolbar.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/NormalToolbar.mjs +85 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/NormalToolbar.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/config.mjs +294 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/config.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/dom.mjs +160 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/dom.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/event-bus.mjs +57 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/event-bus.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index.mjs +189 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index2.mjs +290 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index2.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index3.mjs +2052 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index3.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index4.mjs +474 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index4.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index5.mjs +39 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/index5.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/vue-tsx.mjs +12 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/chunks/vue-tsx.mjs.map +1 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/index.mjs +638 -0
- package/dist/node_modules/.pnpm/md-editor-v3@6.2.1_vue@3.5.26_typescript@5.9.3_/node_modules/md-editor-v3/lib/es/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +11 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +84 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +65 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +20 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +183 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/medium-zoom@1.1.0/node_modules/medium-zoom/dist/medium-zoom.esm.mjs +463 -0
- package/dist/node_modules/.pnpm/medium-zoom@1.1.0/node_modules/medium-zoom/dist/medium-zoom.esm.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs +25810 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs +5 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs +5 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs +8940 -0
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs +241 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs.map +1 -0
- package/dist/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod/src/style-mod.mjs +133 -0
- package/dist/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod/src/style-mod.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-0f6107c9.mjs +316 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-0f6107c9.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-4d4f98d8.mjs +330 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-4d4f98d8.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-8c6ad426.mjs +10 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-8c6ad426.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-c68053ef.mjs +17 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-c68053ef.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/form/consts/index.mjs +11 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/form/consts/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/en_US.mjs +287 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/en_US.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/zh_TW.mjs +328 -0
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/zh_TW.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +15 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +106 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs.map +1 -0
- package/dist/styles/index.css +123 -0
- package/dist/utils/auth.d.ts +6 -0
- package/dist/utils/auth.mjs +67 -0
- package/dist/utils/auth.mjs.map +1 -0
- package/dist/utils/autoImportResolver.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/time.d.ts +2 -0
- package/dist/utils/time.mjs +30 -0
- package/dist/utils/time.mjs.map +1 -0
- package/dist/vue/qidian-vite-auto-import-resolver.cjs.js +49 -0
- package/dist/vue/qidian-vite-auto-import-resolver.cjs.js.map +1 -0
- package/dist/vue/qidian-vite-auto-import-resolver.es.js +48 -0
- package/dist/vue/qidian-vite-auto-import-resolver.es.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3382 @@
|
|
|
1
|
+
import { findClusterBreak as findClusterBreak$1 } from "../../../../../@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.mjs";
|
|
2
|
+
class Text {
|
|
3
|
+
/**
|
|
4
|
+
Get the line description around the given position.
|
|
5
|
+
*/
|
|
6
|
+
lineAt(pos) {
|
|
7
|
+
if (pos < 0 || pos > this.length)
|
|
8
|
+
throw new RangeError(`Invalid position ${pos} in document of length ${this.length}`);
|
|
9
|
+
return this.lineInner(pos, false, 1, 0);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
Get the description for the given (1-based) line number.
|
|
13
|
+
*/
|
|
14
|
+
line(n) {
|
|
15
|
+
if (n < 1 || n > this.lines)
|
|
16
|
+
throw new RangeError(`Invalid line number ${n} in ${this.lines}-line document`);
|
|
17
|
+
return this.lineInner(n, true, 1, 0);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
Replace a range of the text with the given content.
|
|
21
|
+
*/
|
|
22
|
+
replace(from, to, text) {
|
|
23
|
+
[from, to] = clip(this, from, to);
|
|
24
|
+
let parts = [];
|
|
25
|
+
this.decompose(
|
|
26
|
+
0,
|
|
27
|
+
from,
|
|
28
|
+
parts,
|
|
29
|
+
2
|
|
30
|
+
/* Open.To */
|
|
31
|
+
);
|
|
32
|
+
if (text.length)
|
|
33
|
+
text.decompose(
|
|
34
|
+
0,
|
|
35
|
+
text.length,
|
|
36
|
+
parts,
|
|
37
|
+
1 | 2
|
|
38
|
+
/* Open.To */
|
|
39
|
+
);
|
|
40
|
+
this.decompose(
|
|
41
|
+
to,
|
|
42
|
+
this.length,
|
|
43
|
+
parts,
|
|
44
|
+
1
|
|
45
|
+
/* Open.From */
|
|
46
|
+
);
|
|
47
|
+
return TextNode.from(parts, this.length - (to - from) + text.length);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
Append another document to this one.
|
|
51
|
+
*/
|
|
52
|
+
append(other) {
|
|
53
|
+
return this.replace(this.length, this.length, other);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
Retrieve the text between the given points.
|
|
57
|
+
*/
|
|
58
|
+
slice(from, to = this.length) {
|
|
59
|
+
[from, to] = clip(this, from, to);
|
|
60
|
+
let parts = [];
|
|
61
|
+
this.decompose(from, to, parts, 0);
|
|
62
|
+
return TextNode.from(parts, to - from);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
Test whether this text is equal to another instance.
|
|
66
|
+
*/
|
|
67
|
+
eq(other) {
|
|
68
|
+
if (other == this)
|
|
69
|
+
return true;
|
|
70
|
+
if (other.length != this.length || other.lines != this.lines)
|
|
71
|
+
return false;
|
|
72
|
+
let start = this.scanIdentical(other, 1), end = this.length - this.scanIdentical(other, -1);
|
|
73
|
+
let a = new RawTextCursor(this), b = new RawTextCursor(other);
|
|
74
|
+
for (let skip = start, pos = start; ; ) {
|
|
75
|
+
a.next(skip);
|
|
76
|
+
b.next(skip);
|
|
77
|
+
skip = 0;
|
|
78
|
+
if (a.lineBreak != b.lineBreak || a.done != b.done || a.value != b.value)
|
|
79
|
+
return false;
|
|
80
|
+
pos += a.value.length;
|
|
81
|
+
if (a.done || pos >= end)
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
Iterate over the text. When `dir` is `-1`, iteration happens
|
|
87
|
+
from end to start. This will return lines and the breaks between
|
|
88
|
+
them as separate strings.
|
|
89
|
+
*/
|
|
90
|
+
iter(dir = 1) {
|
|
91
|
+
return new RawTextCursor(this, dir);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
Iterate over a range of the text. When `from` > `to`, the
|
|
95
|
+
iterator will run in reverse.
|
|
96
|
+
*/
|
|
97
|
+
iterRange(from, to = this.length) {
|
|
98
|
+
return new PartialTextCursor(this, from, to);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
Return a cursor that iterates over the given range of lines,
|
|
102
|
+
_without_ returning the line breaks between, and yielding empty
|
|
103
|
+
strings for empty lines.
|
|
104
|
+
|
|
105
|
+
When `from` and `to` are given, they should be 1-based line numbers.
|
|
106
|
+
*/
|
|
107
|
+
iterLines(from, to) {
|
|
108
|
+
let inner;
|
|
109
|
+
if (from == null) {
|
|
110
|
+
inner = this.iter();
|
|
111
|
+
} else {
|
|
112
|
+
if (to == null)
|
|
113
|
+
to = this.lines + 1;
|
|
114
|
+
let start = this.line(from).from;
|
|
115
|
+
inner = this.iterRange(start, Math.max(start, to == this.lines + 1 ? this.length : to <= 1 ? 0 : this.line(to - 1).to));
|
|
116
|
+
}
|
|
117
|
+
return new LineCursor(inner);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
Return the document as a string, using newline characters to
|
|
121
|
+
separate lines.
|
|
122
|
+
*/
|
|
123
|
+
toString() {
|
|
124
|
+
return this.sliceString(0);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
Convert the document to an array of lines (which can be
|
|
128
|
+
deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).
|
|
129
|
+
*/
|
|
130
|
+
toJSON() {
|
|
131
|
+
let lines = [];
|
|
132
|
+
this.flatten(lines);
|
|
133
|
+
return lines;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
@internal
|
|
137
|
+
*/
|
|
138
|
+
constructor() {
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
Create a `Text` instance for the given array of lines.
|
|
142
|
+
*/
|
|
143
|
+
static of(text) {
|
|
144
|
+
if (text.length == 0)
|
|
145
|
+
throw new RangeError("A document must have at least one line");
|
|
146
|
+
if (text.length == 1 && !text[0])
|
|
147
|
+
return Text.empty;
|
|
148
|
+
return text.length <= 32 ? new TextLeaf(text) : TextNode.from(TextLeaf.split(text, []));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class TextLeaf extends Text {
|
|
152
|
+
constructor(text, length = textLength(text)) {
|
|
153
|
+
super();
|
|
154
|
+
this.text = text;
|
|
155
|
+
this.length = length;
|
|
156
|
+
}
|
|
157
|
+
get lines() {
|
|
158
|
+
return this.text.length;
|
|
159
|
+
}
|
|
160
|
+
get children() {
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
lineInner(target, isLine, line, offset) {
|
|
164
|
+
for (let i = 0; ; i++) {
|
|
165
|
+
let string = this.text[i], end = offset + string.length;
|
|
166
|
+
if ((isLine ? line : end) >= target)
|
|
167
|
+
return new Line(offset, end, line, string);
|
|
168
|
+
offset = end + 1;
|
|
169
|
+
line++;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
decompose(from, to, target, open) {
|
|
173
|
+
let text = from <= 0 && to >= this.length ? this : new TextLeaf(sliceText(this.text, from, to), Math.min(to, this.length) - Math.max(0, from));
|
|
174
|
+
if (open & 1) {
|
|
175
|
+
let prev = target.pop();
|
|
176
|
+
let joined = appendText(text.text, prev.text.slice(), 0, text.length);
|
|
177
|
+
if (joined.length <= 32) {
|
|
178
|
+
target.push(new TextLeaf(joined, prev.length + text.length));
|
|
179
|
+
} else {
|
|
180
|
+
let mid = joined.length >> 1;
|
|
181
|
+
target.push(new TextLeaf(joined.slice(0, mid)), new TextLeaf(joined.slice(mid)));
|
|
182
|
+
}
|
|
183
|
+
} else {
|
|
184
|
+
target.push(text);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
replace(from, to, text) {
|
|
188
|
+
if (!(text instanceof TextLeaf))
|
|
189
|
+
return super.replace(from, to, text);
|
|
190
|
+
[from, to] = clip(this, from, to);
|
|
191
|
+
let lines = appendText(this.text, appendText(text.text, sliceText(this.text, 0, from)), to);
|
|
192
|
+
let newLen = this.length + text.length - (to - from);
|
|
193
|
+
if (lines.length <= 32)
|
|
194
|
+
return new TextLeaf(lines, newLen);
|
|
195
|
+
return TextNode.from(TextLeaf.split(lines, []), newLen);
|
|
196
|
+
}
|
|
197
|
+
sliceString(from, to = this.length, lineSep = "\n") {
|
|
198
|
+
[from, to] = clip(this, from, to);
|
|
199
|
+
let result = "";
|
|
200
|
+
for (let pos = 0, i = 0; pos <= to && i < this.text.length; i++) {
|
|
201
|
+
let line = this.text[i], end = pos + line.length;
|
|
202
|
+
if (pos > from && i)
|
|
203
|
+
result += lineSep;
|
|
204
|
+
if (from < end && to > pos)
|
|
205
|
+
result += line.slice(Math.max(0, from - pos), to - pos);
|
|
206
|
+
pos = end + 1;
|
|
207
|
+
}
|
|
208
|
+
return result;
|
|
209
|
+
}
|
|
210
|
+
flatten(target) {
|
|
211
|
+
for (let line of this.text)
|
|
212
|
+
target.push(line);
|
|
213
|
+
}
|
|
214
|
+
scanIdentical() {
|
|
215
|
+
return 0;
|
|
216
|
+
}
|
|
217
|
+
static split(text, target) {
|
|
218
|
+
let part = [], len = -1;
|
|
219
|
+
for (let line of text) {
|
|
220
|
+
part.push(line);
|
|
221
|
+
len += line.length + 1;
|
|
222
|
+
if (part.length == 32) {
|
|
223
|
+
target.push(new TextLeaf(part, len));
|
|
224
|
+
part = [];
|
|
225
|
+
len = -1;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
if (len > -1)
|
|
229
|
+
target.push(new TextLeaf(part, len));
|
|
230
|
+
return target;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
class TextNode extends Text {
|
|
234
|
+
constructor(children, length) {
|
|
235
|
+
super();
|
|
236
|
+
this.children = children;
|
|
237
|
+
this.length = length;
|
|
238
|
+
this.lines = 0;
|
|
239
|
+
for (let child of children)
|
|
240
|
+
this.lines += child.lines;
|
|
241
|
+
}
|
|
242
|
+
lineInner(target, isLine, line, offset) {
|
|
243
|
+
for (let i = 0; ; i++) {
|
|
244
|
+
let child = this.children[i], end = offset + child.length, endLine = line + child.lines - 1;
|
|
245
|
+
if ((isLine ? endLine : end) >= target)
|
|
246
|
+
return child.lineInner(target, isLine, line, offset);
|
|
247
|
+
offset = end + 1;
|
|
248
|
+
line = endLine + 1;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
decompose(from, to, target, open) {
|
|
252
|
+
for (let i = 0, pos = 0; pos <= to && i < this.children.length; i++) {
|
|
253
|
+
let child = this.children[i], end = pos + child.length;
|
|
254
|
+
if (from <= end && to >= pos) {
|
|
255
|
+
let childOpen = open & ((pos <= from ? 1 : 0) | (end >= to ? 2 : 0));
|
|
256
|
+
if (pos >= from && end <= to && !childOpen)
|
|
257
|
+
target.push(child);
|
|
258
|
+
else
|
|
259
|
+
child.decompose(from - pos, to - pos, target, childOpen);
|
|
260
|
+
}
|
|
261
|
+
pos = end + 1;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
replace(from, to, text) {
|
|
265
|
+
[from, to] = clip(this, from, to);
|
|
266
|
+
if (text.lines < this.lines)
|
|
267
|
+
for (let i = 0, pos = 0; i < this.children.length; i++) {
|
|
268
|
+
let child = this.children[i], end = pos + child.length;
|
|
269
|
+
if (from >= pos && to <= end) {
|
|
270
|
+
let updated = child.replace(from - pos, to - pos, text);
|
|
271
|
+
let totalLines = this.lines - child.lines + updated.lines;
|
|
272
|
+
if (updated.lines < totalLines >> 5 - 1 && updated.lines > totalLines >> 5 + 1) {
|
|
273
|
+
let copy = this.children.slice();
|
|
274
|
+
copy[i] = updated;
|
|
275
|
+
return new TextNode(copy, this.length - (to - from) + text.length);
|
|
276
|
+
}
|
|
277
|
+
return super.replace(pos, end, updated);
|
|
278
|
+
}
|
|
279
|
+
pos = end + 1;
|
|
280
|
+
}
|
|
281
|
+
return super.replace(from, to, text);
|
|
282
|
+
}
|
|
283
|
+
sliceString(from, to = this.length, lineSep = "\n") {
|
|
284
|
+
[from, to] = clip(this, from, to);
|
|
285
|
+
let result = "";
|
|
286
|
+
for (let i = 0, pos = 0; i < this.children.length && pos <= to; i++) {
|
|
287
|
+
let child = this.children[i], end = pos + child.length;
|
|
288
|
+
if (pos > from && i)
|
|
289
|
+
result += lineSep;
|
|
290
|
+
if (from < end && to > pos)
|
|
291
|
+
result += child.sliceString(from - pos, to - pos, lineSep);
|
|
292
|
+
pos = end + 1;
|
|
293
|
+
}
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
flatten(target) {
|
|
297
|
+
for (let child of this.children)
|
|
298
|
+
child.flatten(target);
|
|
299
|
+
}
|
|
300
|
+
scanIdentical(other, dir) {
|
|
301
|
+
if (!(other instanceof TextNode))
|
|
302
|
+
return 0;
|
|
303
|
+
let length = 0;
|
|
304
|
+
let [iA, iB, eA, eB] = dir > 0 ? [0, 0, this.children.length, other.children.length] : [this.children.length - 1, other.children.length - 1, -1, -1];
|
|
305
|
+
for (; ; iA += dir, iB += dir) {
|
|
306
|
+
if (iA == eA || iB == eB)
|
|
307
|
+
return length;
|
|
308
|
+
let chA = this.children[iA], chB = other.children[iB];
|
|
309
|
+
if (chA != chB)
|
|
310
|
+
return length + chA.scanIdentical(chB, dir);
|
|
311
|
+
length += chA.length + 1;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
static from(children, length = children.reduce((l, ch) => l + ch.length + 1, -1)) {
|
|
315
|
+
let lines = 0;
|
|
316
|
+
for (let ch of children)
|
|
317
|
+
lines += ch.lines;
|
|
318
|
+
if (lines < 32) {
|
|
319
|
+
let flat = [];
|
|
320
|
+
for (let ch of children)
|
|
321
|
+
ch.flatten(flat);
|
|
322
|
+
return new TextLeaf(flat, length);
|
|
323
|
+
}
|
|
324
|
+
let chunk = Math.max(
|
|
325
|
+
32,
|
|
326
|
+
lines >> 5
|
|
327
|
+
/* Tree.BranchShift */
|
|
328
|
+
), maxChunk = chunk << 1, minChunk = chunk >> 1;
|
|
329
|
+
let chunked = [], currentLines = 0, currentLen = -1, currentChunk = [];
|
|
330
|
+
function add(child) {
|
|
331
|
+
let last;
|
|
332
|
+
if (child.lines > maxChunk && child instanceof TextNode) {
|
|
333
|
+
for (let node of child.children)
|
|
334
|
+
add(node);
|
|
335
|
+
} else if (child.lines > minChunk && (currentLines > minChunk || !currentLines)) {
|
|
336
|
+
flush();
|
|
337
|
+
chunked.push(child);
|
|
338
|
+
} else if (child instanceof TextLeaf && currentLines && (last = currentChunk[currentChunk.length - 1]) instanceof TextLeaf && child.lines + last.lines <= 32) {
|
|
339
|
+
currentLines += child.lines;
|
|
340
|
+
currentLen += child.length + 1;
|
|
341
|
+
currentChunk[currentChunk.length - 1] = new TextLeaf(last.text.concat(child.text), last.length + 1 + child.length);
|
|
342
|
+
} else {
|
|
343
|
+
if (currentLines + child.lines > chunk)
|
|
344
|
+
flush();
|
|
345
|
+
currentLines += child.lines;
|
|
346
|
+
currentLen += child.length + 1;
|
|
347
|
+
currentChunk.push(child);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
function flush() {
|
|
351
|
+
if (currentLines == 0)
|
|
352
|
+
return;
|
|
353
|
+
chunked.push(currentChunk.length == 1 ? currentChunk[0] : TextNode.from(currentChunk, currentLen));
|
|
354
|
+
currentLen = -1;
|
|
355
|
+
currentLines = currentChunk.length = 0;
|
|
356
|
+
}
|
|
357
|
+
for (let child of children)
|
|
358
|
+
add(child);
|
|
359
|
+
flush();
|
|
360
|
+
return chunked.length == 1 ? chunked[0] : new TextNode(chunked, length);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
Text.empty = /* @__PURE__ */ new TextLeaf([""], 0);
|
|
364
|
+
function textLength(text) {
|
|
365
|
+
let length = -1;
|
|
366
|
+
for (let line of text)
|
|
367
|
+
length += line.length + 1;
|
|
368
|
+
return length;
|
|
369
|
+
}
|
|
370
|
+
function appendText(text, target, from = 0, to = 1e9) {
|
|
371
|
+
for (let pos = 0, i = 0, first = true; i < text.length && pos <= to; i++) {
|
|
372
|
+
let line = text[i], end = pos + line.length;
|
|
373
|
+
if (end >= from) {
|
|
374
|
+
if (end > to)
|
|
375
|
+
line = line.slice(0, to - pos);
|
|
376
|
+
if (pos < from)
|
|
377
|
+
line = line.slice(from - pos);
|
|
378
|
+
if (first) {
|
|
379
|
+
target[target.length - 1] += line;
|
|
380
|
+
first = false;
|
|
381
|
+
} else
|
|
382
|
+
target.push(line);
|
|
383
|
+
}
|
|
384
|
+
pos = end + 1;
|
|
385
|
+
}
|
|
386
|
+
return target;
|
|
387
|
+
}
|
|
388
|
+
function sliceText(text, from, to) {
|
|
389
|
+
return appendText(text, [""], from, to);
|
|
390
|
+
}
|
|
391
|
+
class RawTextCursor {
|
|
392
|
+
constructor(text, dir = 1) {
|
|
393
|
+
this.dir = dir;
|
|
394
|
+
this.done = false;
|
|
395
|
+
this.lineBreak = false;
|
|
396
|
+
this.value = "";
|
|
397
|
+
this.nodes = [text];
|
|
398
|
+
this.offsets = [dir > 0 ? 1 : (text instanceof TextLeaf ? text.text.length : text.children.length) << 1];
|
|
399
|
+
}
|
|
400
|
+
nextInner(skip, dir) {
|
|
401
|
+
this.done = this.lineBreak = false;
|
|
402
|
+
for (; ; ) {
|
|
403
|
+
let last = this.nodes.length - 1;
|
|
404
|
+
let top = this.nodes[last], offsetValue = this.offsets[last], offset = offsetValue >> 1;
|
|
405
|
+
let size = top instanceof TextLeaf ? top.text.length : top.children.length;
|
|
406
|
+
if (offset == (dir > 0 ? size : 0)) {
|
|
407
|
+
if (last == 0) {
|
|
408
|
+
this.done = true;
|
|
409
|
+
this.value = "";
|
|
410
|
+
return this;
|
|
411
|
+
}
|
|
412
|
+
if (dir > 0)
|
|
413
|
+
this.offsets[last - 1]++;
|
|
414
|
+
this.nodes.pop();
|
|
415
|
+
this.offsets.pop();
|
|
416
|
+
} else if ((offsetValue & 1) == (dir > 0 ? 0 : 1)) {
|
|
417
|
+
this.offsets[last] += dir;
|
|
418
|
+
if (skip == 0) {
|
|
419
|
+
this.lineBreak = true;
|
|
420
|
+
this.value = "\n";
|
|
421
|
+
return this;
|
|
422
|
+
}
|
|
423
|
+
skip--;
|
|
424
|
+
} else if (top instanceof TextLeaf) {
|
|
425
|
+
let next = top.text[offset + (dir < 0 ? -1 : 0)];
|
|
426
|
+
this.offsets[last] += dir;
|
|
427
|
+
if (next.length > Math.max(0, skip)) {
|
|
428
|
+
this.value = skip == 0 ? next : dir > 0 ? next.slice(skip) : next.slice(0, next.length - skip);
|
|
429
|
+
return this;
|
|
430
|
+
}
|
|
431
|
+
skip -= next.length;
|
|
432
|
+
} else {
|
|
433
|
+
let next = top.children[offset + (dir < 0 ? -1 : 0)];
|
|
434
|
+
if (skip > next.length) {
|
|
435
|
+
skip -= next.length;
|
|
436
|
+
this.offsets[last] += dir;
|
|
437
|
+
} else {
|
|
438
|
+
if (dir < 0)
|
|
439
|
+
this.offsets[last]--;
|
|
440
|
+
this.nodes.push(next);
|
|
441
|
+
this.offsets.push(dir > 0 ? 1 : (next instanceof TextLeaf ? next.text.length : next.children.length) << 1);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
next(skip = 0) {
|
|
447
|
+
if (skip < 0) {
|
|
448
|
+
this.nextInner(-skip, -this.dir);
|
|
449
|
+
skip = this.value.length;
|
|
450
|
+
}
|
|
451
|
+
return this.nextInner(skip, this.dir);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
class PartialTextCursor {
|
|
455
|
+
constructor(text, start, end) {
|
|
456
|
+
this.value = "";
|
|
457
|
+
this.done = false;
|
|
458
|
+
this.cursor = new RawTextCursor(text, start > end ? -1 : 1);
|
|
459
|
+
this.pos = start > end ? text.length : 0;
|
|
460
|
+
this.from = Math.min(start, end);
|
|
461
|
+
this.to = Math.max(start, end);
|
|
462
|
+
}
|
|
463
|
+
nextInner(skip, dir) {
|
|
464
|
+
if (dir < 0 ? this.pos <= this.from : this.pos >= this.to) {
|
|
465
|
+
this.value = "";
|
|
466
|
+
this.done = true;
|
|
467
|
+
return this;
|
|
468
|
+
}
|
|
469
|
+
skip += Math.max(0, dir < 0 ? this.pos - this.to : this.from - this.pos);
|
|
470
|
+
let limit = dir < 0 ? this.pos - this.from : this.to - this.pos;
|
|
471
|
+
if (skip > limit)
|
|
472
|
+
skip = limit;
|
|
473
|
+
limit -= skip;
|
|
474
|
+
let { value } = this.cursor.next(skip);
|
|
475
|
+
this.pos += (value.length + skip) * dir;
|
|
476
|
+
this.value = value.length <= limit ? value : dir < 0 ? value.slice(value.length - limit) : value.slice(0, limit);
|
|
477
|
+
this.done = !this.value;
|
|
478
|
+
return this;
|
|
479
|
+
}
|
|
480
|
+
next(skip = 0) {
|
|
481
|
+
if (skip < 0)
|
|
482
|
+
skip = Math.max(skip, this.from - this.pos);
|
|
483
|
+
else if (skip > 0)
|
|
484
|
+
skip = Math.min(skip, this.to - this.pos);
|
|
485
|
+
return this.nextInner(skip, this.cursor.dir);
|
|
486
|
+
}
|
|
487
|
+
get lineBreak() {
|
|
488
|
+
return this.cursor.lineBreak && this.value != "";
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
class LineCursor {
|
|
492
|
+
constructor(inner) {
|
|
493
|
+
this.inner = inner;
|
|
494
|
+
this.afterBreak = true;
|
|
495
|
+
this.value = "";
|
|
496
|
+
this.done = false;
|
|
497
|
+
}
|
|
498
|
+
next(skip = 0) {
|
|
499
|
+
let { done, lineBreak, value } = this.inner.next(skip);
|
|
500
|
+
if (done && this.afterBreak) {
|
|
501
|
+
this.value = "";
|
|
502
|
+
this.afterBreak = false;
|
|
503
|
+
} else if (done) {
|
|
504
|
+
this.done = true;
|
|
505
|
+
this.value = "";
|
|
506
|
+
} else if (lineBreak) {
|
|
507
|
+
if (this.afterBreak) {
|
|
508
|
+
this.value = "";
|
|
509
|
+
} else {
|
|
510
|
+
this.afterBreak = true;
|
|
511
|
+
this.next();
|
|
512
|
+
}
|
|
513
|
+
} else {
|
|
514
|
+
this.value = value;
|
|
515
|
+
this.afterBreak = false;
|
|
516
|
+
}
|
|
517
|
+
return this;
|
|
518
|
+
}
|
|
519
|
+
get lineBreak() {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
if (typeof Symbol != "undefined") {
|
|
524
|
+
Text.prototype[Symbol.iterator] = function() {
|
|
525
|
+
return this.iter();
|
|
526
|
+
};
|
|
527
|
+
RawTextCursor.prototype[Symbol.iterator] = PartialTextCursor.prototype[Symbol.iterator] = LineCursor.prototype[Symbol.iterator] = function() {
|
|
528
|
+
return this;
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
class Line {
|
|
532
|
+
/**
|
|
533
|
+
@internal
|
|
534
|
+
*/
|
|
535
|
+
constructor(from, to, number, text) {
|
|
536
|
+
this.from = from;
|
|
537
|
+
this.to = to;
|
|
538
|
+
this.number = number;
|
|
539
|
+
this.text = text;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
The length of the line (not including any line break after it).
|
|
543
|
+
*/
|
|
544
|
+
get length() {
|
|
545
|
+
return this.to - this.from;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
function clip(text, from, to) {
|
|
549
|
+
from = Math.max(0, Math.min(text.length, from));
|
|
550
|
+
return [from, Math.max(from, Math.min(text.length, to))];
|
|
551
|
+
}
|
|
552
|
+
function findClusterBreak(str, pos, forward = true, includeExtending = true) {
|
|
553
|
+
return findClusterBreak$1(str, pos, forward, includeExtending);
|
|
554
|
+
}
|
|
555
|
+
function surrogateLow(ch) {
|
|
556
|
+
return ch >= 56320 && ch < 57344;
|
|
557
|
+
}
|
|
558
|
+
function surrogateHigh(ch) {
|
|
559
|
+
return ch >= 55296 && ch < 56320;
|
|
560
|
+
}
|
|
561
|
+
function codePointAt(str, pos) {
|
|
562
|
+
let code0 = str.charCodeAt(pos);
|
|
563
|
+
if (!surrogateHigh(code0) || pos + 1 == str.length)
|
|
564
|
+
return code0;
|
|
565
|
+
let code1 = str.charCodeAt(pos + 1);
|
|
566
|
+
if (!surrogateLow(code1))
|
|
567
|
+
return code0;
|
|
568
|
+
return (code0 - 55296 << 10) + (code1 - 56320) + 65536;
|
|
569
|
+
}
|
|
570
|
+
function fromCodePoint(code) {
|
|
571
|
+
if (code <= 65535)
|
|
572
|
+
return String.fromCharCode(code);
|
|
573
|
+
code -= 65536;
|
|
574
|
+
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
575
|
+
}
|
|
576
|
+
function codePointSize(code) {
|
|
577
|
+
return code < 65536 ? 1 : 2;
|
|
578
|
+
}
|
|
579
|
+
const DefaultSplit = /\r\n?|\n/;
|
|
580
|
+
var MapMode = /* @__PURE__ */ (function(MapMode2) {
|
|
581
|
+
MapMode2[MapMode2["Simple"] = 0] = "Simple";
|
|
582
|
+
MapMode2[MapMode2["TrackDel"] = 1] = "TrackDel";
|
|
583
|
+
MapMode2[MapMode2["TrackBefore"] = 2] = "TrackBefore";
|
|
584
|
+
MapMode2[MapMode2["TrackAfter"] = 3] = "TrackAfter";
|
|
585
|
+
return MapMode2;
|
|
586
|
+
})(MapMode || (MapMode = {}));
|
|
587
|
+
class ChangeDesc {
|
|
588
|
+
// Sections are encoded as pairs of integers. The first is the
|
|
589
|
+
// length in the current document, and the second is -1 for
|
|
590
|
+
// unaffected sections, and the length of the replacement content
|
|
591
|
+
// otherwise. So an insertion would be (0, n>0), a deletion (n>0,
|
|
592
|
+
// 0), and a replacement two positive numbers.
|
|
593
|
+
/**
|
|
594
|
+
@internal
|
|
595
|
+
*/
|
|
596
|
+
constructor(sections) {
|
|
597
|
+
this.sections = sections;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
The length of the document before the change.
|
|
601
|
+
*/
|
|
602
|
+
get length() {
|
|
603
|
+
let result = 0;
|
|
604
|
+
for (let i = 0; i < this.sections.length; i += 2)
|
|
605
|
+
result += this.sections[i];
|
|
606
|
+
return result;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
The length of the document after the change.
|
|
610
|
+
*/
|
|
611
|
+
get newLength() {
|
|
612
|
+
let result = 0;
|
|
613
|
+
for (let i = 0; i < this.sections.length; i += 2) {
|
|
614
|
+
let ins = this.sections[i + 1];
|
|
615
|
+
result += ins < 0 ? this.sections[i] : ins;
|
|
616
|
+
}
|
|
617
|
+
return result;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
False when there are actual changes in this set.
|
|
621
|
+
*/
|
|
622
|
+
get empty() {
|
|
623
|
+
return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
Iterate over the unchanged parts left by these changes. `posA`
|
|
627
|
+
provides the position of the range in the old document, `posB`
|
|
628
|
+
the new position in the changed document.
|
|
629
|
+
*/
|
|
630
|
+
iterGaps(f) {
|
|
631
|
+
for (let i = 0, posA = 0, posB = 0; i < this.sections.length; ) {
|
|
632
|
+
let len = this.sections[i++], ins = this.sections[i++];
|
|
633
|
+
if (ins < 0) {
|
|
634
|
+
f(posA, posB, len);
|
|
635
|
+
posB += len;
|
|
636
|
+
} else {
|
|
637
|
+
posB += ins;
|
|
638
|
+
}
|
|
639
|
+
posA += len;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
Iterate over the ranges changed by these changes. (See
|
|
644
|
+
[`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a
|
|
645
|
+
variant that also provides you with the inserted text.)
|
|
646
|
+
`fromA`/`toA` provides the extent of the change in the starting
|
|
647
|
+
document, `fromB`/`toB` the extent of the replacement in the
|
|
648
|
+
changed document.
|
|
649
|
+
|
|
650
|
+
When `individual` is true, adjacent changes (which are kept
|
|
651
|
+
separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are
|
|
652
|
+
reported separately.
|
|
653
|
+
*/
|
|
654
|
+
iterChangedRanges(f, individual = false) {
|
|
655
|
+
iterChanges(this, f, individual);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
Get a description of the inverted form of these changes.
|
|
659
|
+
*/
|
|
660
|
+
get invertedDesc() {
|
|
661
|
+
let sections = [];
|
|
662
|
+
for (let i = 0; i < this.sections.length; ) {
|
|
663
|
+
let len = this.sections[i++], ins = this.sections[i++];
|
|
664
|
+
if (ins < 0)
|
|
665
|
+
sections.push(len, ins);
|
|
666
|
+
else
|
|
667
|
+
sections.push(ins, len);
|
|
668
|
+
}
|
|
669
|
+
return new ChangeDesc(sections);
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
Compute the combined effect of applying another set of changes
|
|
673
|
+
after this one. The length of the document after this set should
|
|
674
|
+
match the length before `other`.
|
|
675
|
+
*/
|
|
676
|
+
composeDesc(other) {
|
|
677
|
+
return this.empty ? other : other.empty ? this : composeSets(this, other);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
Map this description, which should start with the same document
|
|
681
|
+
as `other`, over another set of changes, so that it can be
|
|
682
|
+
applied after it. When `before` is true, map as if the changes
|
|
683
|
+
in `this` happened before the ones in `other`.
|
|
684
|
+
*/
|
|
685
|
+
mapDesc(other, before = false) {
|
|
686
|
+
return other.empty ? this : mapSet(this, other, before);
|
|
687
|
+
}
|
|
688
|
+
mapPos(pos, assoc = -1, mode = MapMode.Simple) {
|
|
689
|
+
let posA = 0, posB = 0;
|
|
690
|
+
for (let i = 0; i < this.sections.length; ) {
|
|
691
|
+
let len = this.sections[i++], ins = this.sections[i++], endA = posA + len;
|
|
692
|
+
if (ins < 0) {
|
|
693
|
+
if (endA > pos)
|
|
694
|
+
return posB + (pos - posA);
|
|
695
|
+
posB += len;
|
|
696
|
+
} else {
|
|
697
|
+
if (mode != MapMode.Simple && endA >= pos && (mode == MapMode.TrackDel && posA < pos && endA > pos || mode == MapMode.TrackBefore && posA < pos || mode == MapMode.TrackAfter && endA > pos))
|
|
698
|
+
return null;
|
|
699
|
+
if (endA > pos || endA == pos && assoc < 0 && !len)
|
|
700
|
+
return pos == posA || assoc < 0 ? posB : posB + ins;
|
|
701
|
+
posB += ins;
|
|
702
|
+
}
|
|
703
|
+
posA = endA;
|
|
704
|
+
}
|
|
705
|
+
if (pos > posA)
|
|
706
|
+
throw new RangeError(`Position ${pos} is out of range for changeset of length ${posA}`);
|
|
707
|
+
return posB;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
Check whether these changes touch a given range. When one of the
|
|
711
|
+
changes entirely covers the range, the string `"cover"` is
|
|
712
|
+
returned.
|
|
713
|
+
*/
|
|
714
|
+
touchesRange(from, to = from) {
|
|
715
|
+
for (let i = 0, pos = 0; i < this.sections.length && pos <= to; ) {
|
|
716
|
+
let len = this.sections[i++], ins = this.sections[i++], end = pos + len;
|
|
717
|
+
if (ins >= 0 && pos <= to && end >= from)
|
|
718
|
+
return pos < from && end > to ? "cover" : true;
|
|
719
|
+
pos = end;
|
|
720
|
+
}
|
|
721
|
+
return false;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
@internal
|
|
725
|
+
*/
|
|
726
|
+
toString() {
|
|
727
|
+
let result = "";
|
|
728
|
+
for (let i = 0; i < this.sections.length; ) {
|
|
729
|
+
let len = this.sections[i++], ins = this.sections[i++];
|
|
730
|
+
result += (result ? " " : "") + len + (ins >= 0 ? ":" + ins : "");
|
|
731
|
+
}
|
|
732
|
+
return result;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
Serialize this change desc to a JSON-representable value.
|
|
736
|
+
*/
|
|
737
|
+
toJSON() {
|
|
738
|
+
return this.sections;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
Create a change desc from its JSON representation (as produced
|
|
742
|
+
by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON).
|
|
743
|
+
*/
|
|
744
|
+
static fromJSON(json) {
|
|
745
|
+
if (!Array.isArray(json) || json.length % 2 || json.some((a) => typeof a != "number"))
|
|
746
|
+
throw new RangeError("Invalid JSON representation of ChangeDesc");
|
|
747
|
+
return new ChangeDesc(json);
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
@internal
|
|
751
|
+
*/
|
|
752
|
+
static create(sections) {
|
|
753
|
+
return new ChangeDesc(sections);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
class ChangeSet extends ChangeDesc {
|
|
757
|
+
constructor(sections, inserted) {
|
|
758
|
+
super(sections);
|
|
759
|
+
this.inserted = inserted;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
Apply the changes to a document, returning the modified
|
|
763
|
+
document.
|
|
764
|
+
*/
|
|
765
|
+
apply(doc) {
|
|
766
|
+
if (this.length != doc.length)
|
|
767
|
+
throw new RangeError("Applying change set to a document with the wrong length");
|
|
768
|
+
iterChanges(this, (fromA, toA, fromB, _toB, text) => doc = doc.replace(fromB, fromB + (toA - fromA), text), false);
|
|
769
|
+
return doc;
|
|
770
|
+
}
|
|
771
|
+
mapDesc(other, before = false) {
|
|
772
|
+
return mapSet(this, other, before, true);
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
Given the document as it existed _before_ the changes, return a
|
|
776
|
+
change set that represents the inverse of this set, which could
|
|
777
|
+
be used to go from the document created by the changes back to
|
|
778
|
+
the document as it existed before the changes.
|
|
779
|
+
*/
|
|
780
|
+
invert(doc) {
|
|
781
|
+
let sections = this.sections.slice(), inserted = [];
|
|
782
|
+
for (let i = 0, pos = 0; i < sections.length; i += 2) {
|
|
783
|
+
let len = sections[i], ins = sections[i + 1];
|
|
784
|
+
if (ins >= 0) {
|
|
785
|
+
sections[i] = ins;
|
|
786
|
+
sections[i + 1] = len;
|
|
787
|
+
let index = i >> 1;
|
|
788
|
+
while (inserted.length < index)
|
|
789
|
+
inserted.push(Text.empty);
|
|
790
|
+
inserted.push(len ? doc.slice(pos, pos + len) : Text.empty);
|
|
791
|
+
}
|
|
792
|
+
pos += len;
|
|
793
|
+
}
|
|
794
|
+
return new ChangeSet(sections, inserted);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
Combine two subsequent change sets into a single set. `other`
|
|
798
|
+
must start in the document produced by `this`. If `this` goes
|
|
799
|
+
`docA` → `docB` and `other` represents `docB` → `docC`, the
|
|
800
|
+
returned value will represent the change `docA` → `docC`.
|
|
801
|
+
*/
|
|
802
|
+
compose(other) {
|
|
803
|
+
return this.empty ? other : other.empty ? this : composeSets(this, other, true);
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
Given another change set starting in the same document, maps this
|
|
807
|
+
change set over the other, producing a new change set that can be
|
|
808
|
+
applied to the document produced by applying `other`. When
|
|
809
|
+
`before` is `true`, order changes as if `this` comes before
|
|
810
|
+
`other`, otherwise (the default) treat `other` as coming first.
|
|
811
|
+
|
|
812
|
+
Given two changes `A` and `B`, `A.compose(B.map(A))` and
|
|
813
|
+
`B.compose(A.map(B, true))` will produce the same document. This
|
|
814
|
+
provides a basic form of [operational
|
|
815
|
+
transformation](https://en.wikipedia.org/wiki/Operational_transformation),
|
|
816
|
+
and can be used for collaborative editing.
|
|
817
|
+
*/
|
|
818
|
+
map(other, before = false) {
|
|
819
|
+
return other.empty ? this : mapSet(this, other, before, true);
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
Iterate over the changed ranges in the document, calling `f` for
|
|
823
|
+
each, with the range in the original document (`fromA`-`toA`)
|
|
824
|
+
and the range that replaces it in the new document
|
|
825
|
+
(`fromB`-`toB`).
|
|
826
|
+
|
|
827
|
+
When `individual` is true, adjacent changes are reported
|
|
828
|
+
separately.
|
|
829
|
+
*/
|
|
830
|
+
iterChanges(f, individual = false) {
|
|
831
|
+
iterChanges(this, f, individual);
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
|
|
835
|
+
set.
|
|
836
|
+
*/
|
|
837
|
+
get desc() {
|
|
838
|
+
return ChangeDesc.create(this.sections);
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
@internal
|
|
842
|
+
*/
|
|
843
|
+
filter(ranges) {
|
|
844
|
+
let resultSections = [], resultInserted = [], filteredSections = [];
|
|
845
|
+
let iter = new SectionIter(this);
|
|
846
|
+
done: for (let i = 0, pos = 0; ; ) {
|
|
847
|
+
let next = i == ranges.length ? 1e9 : ranges[i++];
|
|
848
|
+
while (pos < next || pos == next && iter.len == 0) {
|
|
849
|
+
if (iter.done)
|
|
850
|
+
break done;
|
|
851
|
+
let len = Math.min(iter.len, next - pos);
|
|
852
|
+
addSection(filteredSections, len, -1);
|
|
853
|
+
let ins = iter.ins == -1 ? -1 : iter.off == 0 ? iter.ins : 0;
|
|
854
|
+
addSection(resultSections, len, ins);
|
|
855
|
+
if (ins > 0)
|
|
856
|
+
addInsert(resultInserted, resultSections, iter.text);
|
|
857
|
+
iter.forward(len);
|
|
858
|
+
pos += len;
|
|
859
|
+
}
|
|
860
|
+
let end = ranges[i++];
|
|
861
|
+
while (pos < end) {
|
|
862
|
+
if (iter.done)
|
|
863
|
+
break done;
|
|
864
|
+
let len = Math.min(iter.len, end - pos);
|
|
865
|
+
addSection(resultSections, len, -1);
|
|
866
|
+
addSection(filteredSections, len, iter.ins == -1 ? -1 : iter.off == 0 ? iter.ins : 0);
|
|
867
|
+
iter.forward(len);
|
|
868
|
+
pos += len;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
return {
|
|
872
|
+
changes: new ChangeSet(resultSections, resultInserted),
|
|
873
|
+
filtered: ChangeDesc.create(filteredSections)
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
Serialize this change set to a JSON-representable value.
|
|
878
|
+
*/
|
|
879
|
+
toJSON() {
|
|
880
|
+
let parts = [];
|
|
881
|
+
for (let i = 0; i < this.sections.length; i += 2) {
|
|
882
|
+
let len = this.sections[i], ins = this.sections[i + 1];
|
|
883
|
+
if (ins < 0)
|
|
884
|
+
parts.push(len);
|
|
885
|
+
else if (ins == 0)
|
|
886
|
+
parts.push([len]);
|
|
887
|
+
else
|
|
888
|
+
parts.push([len].concat(this.inserted[i >> 1].toJSON()));
|
|
889
|
+
}
|
|
890
|
+
return parts;
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
Create a change set for the given changes, for a document of the
|
|
894
|
+
given length, using `lineSep` as line separator.
|
|
895
|
+
*/
|
|
896
|
+
static of(changes, length, lineSep) {
|
|
897
|
+
let sections = [], inserted = [], pos = 0;
|
|
898
|
+
let total = null;
|
|
899
|
+
function flush(force = false) {
|
|
900
|
+
if (!force && !sections.length)
|
|
901
|
+
return;
|
|
902
|
+
if (pos < length)
|
|
903
|
+
addSection(sections, length - pos, -1);
|
|
904
|
+
let set = new ChangeSet(sections, inserted);
|
|
905
|
+
total = total ? total.compose(set.map(total)) : set;
|
|
906
|
+
sections = [];
|
|
907
|
+
inserted = [];
|
|
908
|
+
pos = 0;
|
|
909
|
+
}
|
|
910
|
+
function process(spec) {
|
|
911
|
+
if (Array.isArray(spec)) {
|
|
912
|
+
for (let sub of spec)
|
|
913
|
+
process(sub);
|
|
914
|
+
} else if (spec instanceof ChangeSet) {
|
|
915
|
+
if (spec.length != length)
|
|
916
|
+
throw new RangeError(`Mismatched change set length (got ${spec.length}, expected ${length})`);
|
|
917
|
+
flush();
|
|
918
|
+
total = total ? total.compose(spec.map(total)) : spec;
|
|
919
|
+
} else {
|
|
920
|
+
let { from, to = from, insert: insert2 } = spec;
|
|
921
|
+
if (from > to || from < 0 || to > length)
|
|
922
|
+
throw new RangeError(`Invalid change range ${from} to ${to} (in doc of length ${length})`);
|
|
923
|
+
let insText = !insert2 ? Text.empty : typeof insert2 == "string" ? Text.of(insert2.split(lineSep || DefaultSplit)) : insert2;
|
|
924
|
+
let insLen = insText.length;
|
|
925
|
+
if (from == to && insLen == 0)
|
|
926
|
+
return;
|
|
927
|
+
if (from < pos)
|
|
928
|
+
flush();
|
|
929
|
+
if (from > pos)
|
|
930
|
+
addSection(sections, from - pos, -1);
|
|
931
|
+
addSection(sections, to - from, insLen);
|
|
932
|
+
addInsert(inserted, sections, insText);
|
|
933
|
+
pos = to;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
process(changes);
|
|
937
|
+
flush(!total);
|
|
938
|
+
return total;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
Create an empty changeset of the given length.
|
|
942
|
+
*/
|
|
943
|
+
static empty(length) {
|
|
944
|
+
return new ChangeSet(length ? [length, -1] : [], []);
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
Create a changeset from its JSON representation (as produced by
|
|
948
|
+
[`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON).
|
|
949
|
+
*/
|
|
950
|
+
static fromJSON(json) {
|
|
951
|
+
if (!Array.isArray(json))
|
|
952
|
+
throw new RangeError("Invalid JSON representation of ChangeSet");
|
|
953
|
+
let sections = [], inserted = [];
|
|
954
|
+
for (let i = 0; i < json.length; i++) {
|
|
955
|
+
let part = json[i];
|
|
956
|
+
if (typeof part == "number") {
|
|
957
|
+
sections.push(part, -1);
|
|
958
|
+
} else if (!Array.isArray(part) || typeof part[0] != "number" || part.some((e, i2) => i2 && typeof e != "string")) {
|
|
959
|
+
throw new RangeError("Invalid JSON representation of ChangeSet");
|
|
960
|
+
} else if (part.length == 1) {
|
|
961
|
+
sections.push(part[0], 0);
|
|
962
|
+
} else {
|
|
963
|
+
while (inserted.length < i)
|
|
964
|
+
inserted.push(Text.empty);
|
|
965
|
+
inserted[i] = Text.of(part.slice(1));
|
|
966
|
+
sections.push(part[0], inserted[i].length);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return new ChangeSet(sections, inserted);
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
@internal
|
|
973
|
+
*/
|
|
974
|
+
static createSet(sections, inserted) {
|
|
975
|
+
return new ChangeSet(sections, inserted);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function addSection(sections, len, ins, forceJoin = false) {
|
|
979
|
+
if (len == 0 && ins <= 0)
|
|
980
|
+
return;
|
|
981
|
+
let last = sections.length - 2;
|
|
982
|
+
if (last >= 0 && ins <= 0 && ins == sections[last + 1])
|
|
983
|
+
sections[last] += len;
|
|
984
|
+
else if (last >= 0 && len == 0 && sections[last] == 0)
|
|
985
|
+
sections[last + 1] += ins;
|
|
986
|
+
else if (forceJoin) {
|
|
987
|
+
sections[last] += len;
|
|
988
|
+
sections[last + 1] += ins;
|
|
989
|
+
} else
|
|
990
|
+
sections.push(len, ins);
|
|
991
|
+
}
|
|
992
|
+
function addInsert(values, sections, value) {
|
|
993
|
+
if (value.length == 0)
|
|
994
|
+
return;
|
|
995
|
+
let index = sections.length - 2 >> 1;
|
|
996
|
+
if (index < values.length) {
|
|
997
|
+
values[values.length - 1] = values[values.length - 1].append(value);
|
|
998
|
+
} else {
|
|
999
|
+
while (values.length < index)
|
|
1000
|
+
values.push(Text.empty);
|
|
1001
|
+
values.push(value);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
function iterChanges(desc, f, individual) {
|
|
1005
|
+
let inserted = desc.inserted;
|
|
1006
|
+
for (let posA = 0, posB = 0, i = 0; i < desc.sections.length; ) {
|
|
1007
|
+
let len = desc.sections[i++], ins = desc.sections[i++];
|
|
1008
|
+
if (ins < 0) {
|
|
1009
|
+
posA += len;
|
|
1010
|
+
posB += len;
|
|
1011
|
+
} else {
|
|
1012
|
+
let endA = posA, endB = posB, text = Text.empty;
|
|
1013
|
+
for (; ; ) {
|
|
1014
|
+
endA += len;
|
|
1015
|
+
endB += ins;
|
|
1016
|
+
if (ins && inserted)
|
|
1017
|
+
text = text.append(inserted[i - 2 >> 1]);
|
|
1018
|
+
if (individual || i == desc.sections.length || desc.sections[i + 1] < 0)
|
|
1019
|
+
break;
|
|
1020
|
+
len = desc.sections[i++];
|
|
1021
|
+
ins = desc.sections[i++];
|
|
1022
|
+
}
|
|
1023
|
+
f(posA, endA, posB, endB, text);
|
|
1024
|
+
posA = endA;
|
|
1025
|
+
posB = endB;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function mapSet(setA, setB, before, mkSet = false) {
|
|
1030
|
+
let sections = [], insert2 = mkSet ? [] : null;
|
|
1031
|
+
let a = new SectionIter(setA), b = new SectionIter(setB);
|
|
1032
|
+
for (let inserted = -1; ; ) {
|
|
1033
|
+
if (a.done && b.len || b.done && a.len) {
|
|
1034
|
+
throw new Error("Mismatched change set lengths");
|
|
1035
|
+
} else if (a.ins == -1 && b.ins == -1) {
|
|
1036
|
+
let len = Math.min(a.len, b.len);
|
|
1037
|
+
addSection(sections, len, -1);
|
|
1038
|
+
a.forward(len);
|
|
1039
|
+
b.forward(len);
|
|
1040
|
+
} else if (b.ins >= 0 && (a.ins < 0 || inserted == a.i || a.off == 0 && (b.len < a.len || b.len == a.len && !before))) {
|
|
1041
|
+
let len = b.len;
|
|
1042
|
+
addSection(sections, b.ins, -1);
|
|
1043
|
+
while (len) {
|
|
1044
|
+
let piece = Math.min(a.len, len);
|
|
1045
|
+
if (a.ins >= 0 && inserted < a.i && a.len <= piece) {
|
|
1046
|
+
addSection(sections, 0, a.ins);
|
|
1047
|
+
if (insert2)
|
|
1048
|
+
addInsert(insert2, sections, a.text);
|
|
1049
|
+
inserted = a.i;
|
|
1050
|
+
}
|
|
1051
|
+
a.forward(piece);
|
|
1052
|
+
len -= piece;
|
|
1053
|
+
}
|
|
1054
|
+
b.next();
|
|
1055
|
+
} else if (a.ins >= 0) {
|
|
1056
|
+
let len = 0, left = a.len;
|
|
1057
|
+
while (left) {
|
|
1058
|
+
if (b.ins == -1) {
|
|
1059
|
+
let piece = Math.min(left, b.len);
|
|
1060
|
+
len += piece;
|
|
1061
|
+
left -= piece;
|
|
1062
|
+
b.forward(piece);
|
|
1063
|
+
} else if (b.ins == 0 && b.len < left) {
|
|
1064
|
+
left -= b.len;
|
|
1065
|
+
b.next();
|
|
1066
|
+
} else {
|
|
1067
|
+
break;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
addSection(sections, len, inserted < a.i ? a.ins : 0);
|
|
1071
|
+
if (insert2 && inserted < a.i)
|
|
1072
|
+
addInsert(insert2, sections, a.text);
|
|
1073
|
+
inserted = a.i;
|
|
1074
|
+
a.forward(a.len - left);
|
|
1075
|
+
} else if (a.done && b.done) {
|
|
1076
|
+
return insert2 ? ChangeSet.createSet(sections, insert2) : ChangeDesc.create(sections);
|
|
1077
|
+
} else {
|
|
1078
|
+
throw new Error("Mismatched change set lengths");
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function composeSets(setA, setB, mkSet = false) {
|
|
1083
|
+
let sections = [];
|
|
1084
|
+
let insert2 = mkSet ? [] : null;
|
|
1085
|
+
let a = new SectionIter(setA), b = new SectionIter(setB);
|
|
1086
|
+
for (let open = false; ; ) {
|
|
1087
|
+
if (a.done && b.done) {
|
|
1088
|
+
return insert2 ? ChangeSet.createSet(sections, insert2) : ChangeDesc.create(sections);
|
|
1089
|
+
} else if (a.ins == 0) {
|
|
1090
|
+
addSection(sections, a.len, 0, open);
|
|
1091
|
+
a.next();
|
|
1092
|
+
} else if (b.len == 0 && !b.done) {
|
|
1093
|
+
addSection(sections, 0, b.ins, open);
|
|
1094
|
+
if (insert2)
|
|
1095
|
+
addInsert(insert2, sections, b.text);
|
|
1096
|
+
b.next();
|
|
1097
|
+
} else if (a.done || b.done) {
|
|
1098
|
+
throw new Error("Mismatched change set lengths");
|
|
1099
|
+
} else {
|
|
1100
|
+
let len = Math.min(a.len2, b.len), sectionLen = sections.length;
|
|
1101
|
+
if (a.ins == -1) {
|
|
1102
|
+
let insB = b.ins == -1 ? -1 : b.off ? 0 : b.ins;
|
|
1103
|
+
addSection(sections, len, insB, open);
|
|
1104
|
+
if (insert2 && insB)
|
|
1105
|
+
addInsert(insert2, sections, b.text);
|
|
1106
|
+
} else if (b.ins == -1) {
|
|
1107
|
+
addSection(sections, a.off ? 0 : a.len, len, open);
|
|
1108
|
+
if (insert2)
|
|
1109
|
+
addInsert(insert2, sections, a.textBit(len));
|
|
1110
|
+
} else {
|
|
1111
|
+
addSection(sections, a.off ? 0 : a.len, b.off ? 0 : b.ins, open);
|
|
1112
|
+
if (insert2 && !b.off)
|
|
1113
|
+
addInsert(insert2, sections, b.text);
|
|
1114
|
+
}
|
|
1115
|
+
open = (a.ins > len || b.ins >= 0 && b.len > len) && (open || sections.length > sectionLen);
|
|
1116
|
+
a.forward2(len);
|
|
1117
|
+
b.forward(len);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
class SectionIter {
|
|
1122
|
+
constructor(set) {
|
|
1123
|
+
this.set = set;
|
|
1124
|
+
this.i = 0;
|
|
1125
|
+
this.next();
|
|
1126
|
+
}
|
|
1127
|
+
next() {
|
|
1128
|
+
let { sections } = this.set;
|
|
1129
|
+
if (this.i < sections.length) {
|
|
1130
|
+
this.len = sections[this.i++];
|
|
1131
|
+
this.ins = sections[this.i++];
|
|
1132
|
+
} else {
|
|
1133
|
+
this.len = 0;
|
|
1134
|
+
this.ins = -2;
|
|
1135
|
+
}
|
|
1136
|
+
this.off = 0;
|
|
1137
|
+
}
|
|
1138
|
+
get done() {
|
|
1139
|
+
return this.ins == -2;
|
|
1140
|
+
}
|
|
1141
|
+
get len2() {
|
|
1142
|
+
return this.ins < 0 ? this.len : this.ins;
|
|
1143
|
+
}
|
|
1144
|
+
get text() {
|
|
1145
|
+
let { inserted } = this.set, index = this.i - 2 >> 1;
|
|
1146
|
+
return index >= inserted.length ? Text.empty : inserted[index];
|
|
1147
|
+
}
|
|
1148
|
+
textBit(len) {
|
|
1149
|
+
let { inserted } = this.set, index = this.i - 2 >> 1;
|
|
1150
|
+
return index >= inserted.length && !len ? Text.empty : inserted[index].slice(this.off, len == null ? void 0 : this.off + len);
|
|
1151
|
+
}
|
|
1152
|
+
forward(len) {
|
|
1153
|
+
if (len == this.len)
|
|
1154
|
+
this.next();
|
|
1155
|
+
else {
|
|
1156
|
+
this.len -= len;
|
|
1157
|
+
this.off += len;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
forward2(len) {
|
|
1161
|
+
if (this.ins == -1)
|
|
1162
|
+
this.forward(len);
|
|
1163
|
+
else if (len == this.ins)
|
|
1164
|
+
this.next();
|
|
1165
|
+
else {
|
|
1166
|
+
this.ins -= len;
|
|
1167
|
+
this.off += len;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
class SelectionRange {
|
|
1172
|
+
constructor(from, to, flags) {
|
|
1173
|
+
this.from = from;
|
|
1174
|
+
this.to = to;
|
|
1175
|
+
this.flags = flags;
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
The anchor of the range—the side that doesn't move when you
|
|
1179
|
+
extend it.
|
|
1180
|
+
*/
|
|
1181
|
+
get anchor() {
|
|
1182
|
+
return this.flags & 32 ? this.to : this.from;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
The head of the range, which is moved when the range is
|
|
1186
|
+
[extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend).
|
|
1187
|
+
*/
|
|
1188
|
+
get head() {
|
|
1189
|
+
return this.flags & 32 ? this.from : this.to;
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
True when `anchor` and `head` are at the same position.
|
|
1193
|
+
*/
|
|
1194
|
+
get empty() {
|
|
1195
|
+
return this.from == this.to;
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
If this is a cursor that is explicitly associated with the
|
|
1199
|
+
character on one of its sides, this returns the side. -1 means
|
|
1200
|
+
the character before its position, 1 the character after, and 0
|
|
1201
|
+
means no association.
|
|
1202
|
+
*/
|
|
1203
|
+
get assoc() {
|
|
1204
|
+
return this.flags & 8 ? -1 : this.flags & 16 ? 1 : 0;
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
The bidirectional text level associated with this cursor, if
|
|
1208
|
+
any.
|
|
1209
|
+
*/
|
|
1210
|
+
get bidiLevel() {
|
|
1211
|
+
let level = this.flags & 7;
|
|
1212
|
+
return level == 7 ? null : level;
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
The goal column (stored vertical offset) associated with a
|
|
1216
|
+
cursor. This is used to preserve the vertical position when
|
|
1217
|
+
[moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across
|
|
1218
|
+
lines of different length.
|
|
1219
|
+
*/
|
|
1220
|
+
get goalColumn() {
|
|
1221
|
+
let value = this.flags >> 6;
|
|
1222
|
+
return value == 16777215 ? void 0 : value;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
Map this range through a change, producing a valid range in the
|
|
1226
|
+
updated document.
|
|
1227
|
+
*/
|
|
1228
|
+
map(change, assoc = -1) {
|
|
1229
|
+
let from, to;
|
|
1230
|
+
if (this.empty) {
|
|
1231
|
+
from = to = change.mapPos(this.from, assoc);
|
|
1232
|
+
} else {
|
|
1233
|
+
from = change.mapPos(this.from, 1);
|
|
1234
|
+
to = change.mapPos(this.to, -1);
|
|
1235
|
+
}
|
|
1236
|
+
return from == this.from && to == this.to ? this : new SelectionRange(from, to, this.flags);
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
Extend this range to cover at least `from` to `to`.
|
|
1240
|
+
*/
|
|
1241
|
+
extend(from, to = from) {
|
|
1242
|
+
if (from <= this.anchor && to >= this.anchor)
|
|
1243
|
+
return EditorSelection.range(from, to);
|
|
1244
|
+
let head = Math.abs(from - this.anchor) > Math.abs(to - this.anchor) ? from : to;
|
|
1245
|
+
return EditorSelection.range(this.anchor, head);
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
Compare this range to another range.
|
|
1249
|
+
*/
|
|
1250
|
+
eq(other, includeAssoc = false) {
|
|
1251
|
+
return this.anchor == other.anchor && this.head == other.head && (!includeAssoc || !this.empty || this.assoc == other.assoc);
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
Return a JSON-serializable object representing the range.
|
|
1255
|
+
*/
|
|
1256
|
+
toJSON() {
|
|
1257
|
+
return { anchor: this.anchor, head: this.head };
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
Convert a JSON representation of a range to a `SelectionRange`
|
|
1261
|
+
instance.
|
|
1262
|
+
*/
|
|
1263
|
+
static fromJSON(json) {
|
|
1264
|
+
if (!json || typeof json.anchor != "number" || typeof json.head != "number")
|
|
1265
|
+
throw new RangeError("Invalid JSON representation for SelectionRange");
|
|
1266
|
+
return EditorSelection.range(json.anchor, json.head);
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
@internal
|
|
1270
|
+
*/
|
|
1271
|
+
static create(from, to, flags) {
|
|
1272
|
+
return new SelectionRange(from, to, flags);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
class EditorSelection {
|
|
1276
|
+
constructor(ranges, mainIndex) {
|
|
1277
|
+
this.ranges = ranges;
|
|
1278
|
+
this.mainIndex = mainIndex;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
Map a selection through a change. Used to adjust the selection
|
|
1282
|
+
position for changes.
|
|
1283
|
+
*/
|
|
1284
|
+
map(change, assoc = -1) {
|
|
1285
|
+
if (change.empty)
|
|
1286
|
+
return this;
|
|
1287
|
+
return EditorSelection.create(this.ranges.map((r) => r.map(change, assoc)), this.mainIndex);
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
Compare this selection to another selection. By default, ranges
|
|
1291
|
+
are compared only by position. When `includeAssoc` is true,
|
|
1292
|
+
cursor ranges must also have the same
|
|
1293
|
+
[`assoc`](https://codemirror.net/6/docs/ref/#state.SelectionRange.assoc) value.
|
|
1294
|
+
*/
|
|
1295
|
+
eq(other, includeAssoc = false) {
|
|
1296
|
+
if (this.ranges.length != other.ranges.length || this.mainIndex != other.mainIndex)
|
|
1297
|
+
return false;
|
|
1298
|
+
for (let i = 0; i < this.ranges.length; i++)
|
|
1299
|
+
if (!this.ranges[i].eq(other.ranges[i], includeAssoc))
|
|
1300
|
+
return false;
|
|
1301
|
+
return true;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
Get the primary selection range. Usually, you should make sure
|
|
1305
|
+
your code applies to _all_ ranges, by using methods like
|
|
1306
|
+
[`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange).
|
|
1307
|
+
*/
|
|
1308
|
+
get main() {
|
|
1309
|
+
return this.ranges[this.mainIndex];
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
Make sure the selection only has one range. Returns a selection
|
|
1313
|
+
holding only the main range from this selection.
|
|
1314
|
+
*/
|
|
1315
|
+
asSingle() {
|
|
1316
|
+
return this.ranges.length == 1 ? this : new EditorSelection([this.main], 0);
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
Extend this selection with an extra range.
|
|
1320
|
+
*/
|
|
1321
|
+
addRange(range, main = true) {
|
|
1322
|
+
return EditorSelection.create([range].concat(this.ranges), main ? 0 : this.mainIndex + 1);
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
Replace a given range with another range, and then normalize the
|
|
1326
|
+
selection to merge and sort ranges if necessary.
|
|
1327
|
+
*/
|
|
1328
|
+
replaceRange(range, which = this.mainIndex) {
|
|
1329
|
+
let ranges = this.ranges.slice();
|
|
1330
|
+
ranges[which] = range;
|
|
1331
|
+
return EditorSelection.create(ranges, this.mainIndex);
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
Convert this selection to an object that can be serialized to
|
|
1335
|
+
JSON.
|
|
1336
|
+
*/
|
|
1337
|
+
toJSON() {
|
|
1338
|
+
return { ranges: this.ranges.map((r) => r.toJSON()), main: this.mainIndex };
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
Create a selection from a JSON representation.
|
|
1342
|
+
*/
|
|
1343
|
+
static fromJSON(json) {
|
|
1344
|
+
if (!json || !Array.isArray(json.ranges) || typeof json.main != "number" || json.main >= json.ranges.length)
|
|
1345
|
+
throw new RangeError("Invalid JSON representation for EditorSelection");
|
|
1346
|
+
return new EditorSelection(json.ranges.map((r) => SelectionRange.fromJSON(r)), json.main);
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
Create a selection holding a single range.
|
|
1350
|
+
*/
|
|
1351
|
+
static single(anchor, head = anchor) {
|
|
1352
|
+
return new EditorSelection([EditorSelection.range(anchor, head)], 0);
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
Sort and merge the given set of ranges, creating a valid
|
|
1356
|
+
selection.
|
|
1357
|
+
*/
|
|
1358
|
+
static create(ranges, mainIndex = 0) {
|
|
1359
|
+
if (ranges.length == 0)
|
|
1360
|
+
throw new RangeError("A selection needs at least one range");
|
|
1361
|
+
for (let pos = 0, i = 0; i < ranges.length; i++) {
|
|
1362
|
+
let range = ranges[i];
|
|
1363
|
+
if (range.empty ? range.from <= pos : range.from < pos)
|
|
1364
|
+
return EditorSelection.normalized(ranges.slice(), mainIndex);
|
|
1365
|
+
pos = range.to;
|
|
1366
|
+
}
|
|
1367
|
+
return new EditorSelection(ranges, mainIndex);
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
Create a cursor selection range at the given position. You can
|
|
1371
|
+
safely ignore the optional arguments in most situations.
|
|
1372
|
+
*/
|
|
1373
|
+
static cursor(pos, assoc = 0, bidiLevel, goalColumn) {
|
|
1374
|
+
return SelectionRange.create(pos, pos, (assoc == 0 ? 0 : assoc < 0 ? 8 : 16) | (bidiLevel == null ? 7 : Math.min(6, bidiLevel)) | (goalColumn !== null && goalColumn !== void 0 ? goalColumn : 16777215) << 6);
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
Create a selection range.
|
|
1378
|
+
*/
|
|
1379
|
+
static range(anchor, head, goalColumn, bidiLevel) {
|
|
1380
|
+
let flags = (goalColumn !== null && goalColumn !== void 0 ? goalColumn : 16777215) << 6 | (bidiLevel == null ? 7 : Math.min(6, bidiLevel));
|
|
1381
|
+
return head < anchor ? SelectionRange.create(head, anchor, 32 | 16 | flags) : SelectionRange.create(anchor, head, (head > anchor ? 8 : 0) | flags);
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
@internal
|
|
1385
|
+
*/
|
|
1386
|
+
static normalized(ranges, mainIndex = 0) {
|
|
1387
|
+
let main = ranges[mainIndex];
|
|
1388
|
+
ranges.sort((a, b) => a.from - b.from);
|
|
1389
|
+
mainIndex = ranges.indexOf(main);
|
|
1390
|
+
for (let i = 1; i < ranges.length; i++) {
|
|
1391
|
+
let range = ranges[i], prev = ranges[i - 1];
|
|
1392
|
+
if (range.empty ? range.from <= prev.to : range.from < prev.to) {
|
|
1393
|
+
let from = prev.from, to = Math.max(range.to, prev.to);
|
|
1394
|
+
if (i <= mainIndex)
|
|
1395
|
+
mainIndex--;
|
|
1396
|
+
ranges.splice(--i, 2, range.anchor > range.head ? EditorSelection.range(to, from) : EditorSelection.range(from, to));
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
return new EditorSelection(ranges, mainIndex);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
function checkSelection(selection, docLength) {
|
|
1403
|
+
for (let range of selection.ranges)
|
|
1404
|
+
if (range.to > docLength)
|
|
1405
|
+
throw new RangeError("Selection points outside of document");
|
|
1406
|
+
}
|
|
1407
|
+
let nextID = 0;
|
|
1408
|
+
class Facet {
|
|
1409
|
+
constructor(combine, compareInput, compare2, isStatic, enables) {
|
|
1410
|
+
this.combine = combine;
|
|
1411
|
+
this.compareInput = compareInput;
|
|
1412
|
+
this.compare = compare2;
|
|
1413
|
+
this.isStatic = isStatic;
|
|
1414
|
+
this.id = nextID++;
|
|
1415
|
+
this.default = combine([]);
|
|
1416
|
+
this.extensions = typeof enables == "function" ? enables(this) : enables;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
Returns a facet reader for this facet, which can be used to
|
|
1420
|
+
[read](https://codemirror.net/6/docs/ref/#state.EditorState.facet) it but not to define values for it.
|
|
1421
|
+
*/
|
|
1422
|
+
get reader() {
|
|
1423
|
+
return this;
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
Define a new facet.
|
|
1427
|
+
*/
|
|
1428
|
+
static define(config = {}) {
|
|
1429
|
+
return new Facet(config.combine || ((a) => a), config.compareInput || ((a, b) => a === b), config.compare || (!config.combine ? sameArray : (a, b) => a === b), !!config.static, config.enables);
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
Returns an extension that adds the given value to this facet.
|
|
1433
|
+
*/
|
|
1434
|
+
of(value) {
|
|
1435
|
+
return new FacetProvider([], this, 0, value);
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
Create an extension that computes a value for the facet from a
|
|
1439
|
+
state. You must take care to declare the parts of the state that
|
|
1440
|
+
this value depends on, since your function is only called again
|
|
1441
|
+
for a new state when one of those parts changed.
|
|
1442
|
+
|
|
1443
|
+
In cases where your value depends only on a single field, you'll
|
|
1444
|
+
want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead.
|
|
1445
|
+
*/
|
|
1446
|
+
compute(deps, get) {
|
|
1447
|
+
if (this.isStatic)
|
|
1448
|
+
throw new Error("Can't compute a static facet");
|
|
1449
|
+
return new FacetProvider(deps, this, 1, get);
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
Create an extension that computes zero or more values for this
|
|
1453
|
+
facet from a state.
|
|
1454
|
+
*/
|
|
1455
|
+
computeN(deps, get) {
|
|
1456
|
+
if (this.isStatic)
|
|
1457
|
+
throw new Error("Can't compute a static facet");
|
|
1458
|
+
return new FacetProvider(deps, this, 2, get);
|
|
1459
|
+
}
|
|
1460
|
+
from(field, get) {
|
|
1461
|
+
if (!get)
|
|
1462
|
+
get = (x) => x;
|
|
1463
|
+
return this.compute([field], (state) => get(state.field(field)));
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
function sameArray(a, b) {
|
|
1467
|
+
return a == b || a.length == b.length && a.every((e, i) => e === b[i]);
|
|
1468
|
+
}
|
|
1469
|
+
class FacetProvider {
|
|
1470
|
+
constructor(dependencies, facet, type, value) {
|
|
1471
|
+
this.dependencies = dependencies;
|
|
1472
|
+
this.facet = facet;
|
|
1473
|
+
this.type = type;
|
|
1474
|
+
this.value = value;
|
|
1475
|
+
this.id = nextID++;
|
|
1476
|
+
}
|
|
1477
|
+
dynamicSlot(addresses) {
|
|
1478
|
+
var _a;
|
|
1479
|
+
let getter = this.value;
|
|
1480
|
+
let compare2 = this.facet.compareInput;
|
|
1481
|
+
let id = this.id, idx = addresses[id] >> 1, multi = this.type == 2;
|
|
1482
|
+
let depDoc = false, depSel = false, depAddrs = [];
|
|
1483
|
+
for (let dep of this.dependencies) {
|
|
1484
|
+
if (dep == "doc")
|
|
1485
|
+
depDoc = true;
|
|
1486
|
+
else if (dep == "selection")
|
|
1487
|
+
depSel = true;
|
|
1488
|
+
else if ((((_a = addresses[dep.id]) !== null && _a !== void 0 ? _a : 1) & 1) == 0)
|
|
1489
|
+
depAddrs.push(addresses[dep.id]);
|
|
1490
|
+
}
|
|
1491
|
+
return {
|
|
1492
|
+
create(state) {
|
|
1493
|
+
state.values[idx] = getter(state);
|
|
1494
|
+
return 1;
|
|
1495
|
+
},
|
|
1496
|
+
update(state, tr) {
|
|
1497
|
+
if (depDoc && tr.docChanged || depSel && (tr.docChanged || tr.selection) || ensureAll(state, depAddrs)) {
|
|
1498
|
+
let newVal = getter(state);
|
|
1499
|
+
if (multi ? !compareArray(newVal, state.values[idx], compare2) : !compare2(newVal, state.values[idx])) {
|
|
1500
|
+
state.values[idx] = newVal;
|
|
1501
|
+
return 1;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
return 0;
|
|
1505
|
+
},
|
|
1506
|
+
reconfigure: (state, oldState) => {
|
|
1507
|
+
let newVal, oldAddr = oldState.config.address[id];
|
|
1508
|
+
if (oldAddr != null) {
|
|
1509
|
+
let oldVal = getAddr(oldState, oldAddr);
|
|
1510
|
+
if (this.dependencies.every((dep) => {
|
|
1511
|
+
return dep instanceof Facet ? oldState.facet(dep) === state.facet(dep) : dep instanceof StateField ? oldState.field(dep, false) == state.field(dep, false) : true;
|
|
1512
|
+
}) || (multi ? compareArray(newVal = getter(state), oldVal, compare2) : compare2(newVal = getter(state), oldVal))) {
|
|
1513
|
+
state.values[idx] = oldVal;
|
|
1514
|
+
return 0;
|
|
1515
|
+
}
|
|
1516
|
+
} else {
|
|
1517
|
+
newVal = getter(state);
|
|
1518
|
+
}
|
|
1519
|
+
state.values[idx] = newVal;
|
|
1520
|
+
return 1;
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
function compareArray(a, b, compare2) {
|
|
1526
|
+
if (a.length != b.length)
|
|
1527
|
+
return false;
|
|
1528
|
+
for (let i = 0; i < a.length; i++)
|
|
1529
|
+
if (!compare2(a[i], b[i]))
|
|
1530
|
+
return false;
|
|
1531
|
+
return true;
|
|
1532
|
+
}
|
|
1533
|
+
function ensureAll(state, addrs) {
|
|
1534
|
+
let changed = false;
|
|
1535
|
+
for (let addr of addrs)
|
|
1536
|
+
if (ensureAddr(state, addr) & 1)
|
|
1537
|
+
changed = true;
|
|
1538
|
+
return changed;
|
|
1539
|
+
}
|
|
1540
|
+
function dynamicFacetSlot(addresses, facet, providers) {
|
|
1541
|
+
let providerAddrs = providers.map((p) => addresses[p.id]);
|
|
1542
|
+
let providerTypes = providers.map((p) => p.type);
|
|
1543
|
+
let dynamic = providerAddrs.filter((p) => !(p & 1));
|
|
1544
|
+
let idx = addresses[facet.id] >> 1;
|
|
1545
|
+
function get(state) {
|
|
1546
|
+
let values = [];
|
|
1547
|
+
for (let i = 0; i < providerAddrs.length; i++) {
|
|
1548
|
+
let value = getAddr(state, providerAddrs[i]);
|
|
1549
|
+
if (providerTypes[i] == 2)
|
|
1550
|
+
for (let val of value)
|
|
1551
|
+
values.push(val);
|
|
1552
|
+
else
|
|
1553
|
+
values.push(value);
|
|
1554
|
+
}
|
|
1555
|
+
return facet.combine(values);
|
|
1556
|
+
}
|
|
1557
|
+
return {
|
|
1558
|
+
create(state) {
|
|
1559
|
+
for (let addr of providerAddrs)
|
|
1560
|
+
ensureAddr(state, addr);
|
|
1561
|
+
state.values[idx] = get(state);
|
|
1562
|
+
return 1;
|
|
1563
|
+
},
|
|
1564
|
+
update(state, tr) {
|
|
1565
|
+
if (!ensureAll(state, dynamic))
|
|
1566
|
+
return 0;
|
|
1567
|
+
let value = get(state);
|
|
1568
|
+
if (facet.compare(value, state.values[idx]))
|
|
1569
|
+
return 0;
|
|
1570
|
+
state.values[idx] = value;
|
|
1571
|
+
return 1;
|
|
1572
|
+
},
|
|
1573
|
+
reconfigure(state, oldState) {
|
|
1574
|
+
let depChanged = ensureAll(state, providerAddrs);
|
|
1575
|
+
let oldProviders = oldState.config.facets[facet.id], oldValue = oldState.facet(facet);
|
|
1576
|
+
if (oldProviders && !depChanged && sameArray(providers, oldProviders)) {
|
|
1577
|
+
state.values[idx] = oldValue;
|
|
1578
|
+
return 0;
|
|
1579
|
+
}
|
|
1580
|
+
let value = get(state);
|
|
1581
|
+
if (facet.compare(value, oldValue)) {
|
|
1582
|
+
state.values[idx] = oldValue;
|
|
1583
|
+
return 0;
|
|
1584
|
+
}
|
|
1585
|
+
state.values[idx] = value;
|
|
1586
|
+
return 1;
|
|
1587
|
+
}
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1590
|
+
const initField = /* @__PURE__ */ Facet.define({ static: true });
|
|
1591
|
+
class StateField {
|
|
1592
|
+
constructor(id, createF, updateF, compareF, spec) {
|
|
1593
|
+
this.id = id;
|
|
1594
|
+
this.createF = createF;
|
|
1595
|
+
this.updateF = updateF;
|
|
1596
|
+
this.compareF = compareF;
|
|
1597
|
+
this.spec = spec;
|
|
1598
|
+
this.provides = void 0;
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
Define a state field.
|
|
1602
|
+
*/
|
|
1603
|
+
static define(config) {
|
|
1604
|
+
let field = new StateField(nextID++, config.create, config.update, config.compare || ((a, b) => a === b), config);
|
|
1605
|
+
if (config.provide)
|
|
1606
|
+
field.provides = config.provide(field);
|
|
1607
|
+
return field;
|
|
1608
|
+
}
|
|
1609
|
+
create(state) {
|
|
1610
|
+
let init = state.facet(initField).find((i) => i.field == this);
|
|
1611
|
+
return ((init === null || init === void 0 ? void 0 : init.create) || this.createF)(state);
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
@internal
|
|
1615
|
+
*/
|
|
1616
|
+
slot(addresses) {
|
|
1617
|
+
let idx = addresses[this.id] >> 1;
|
|
1618
|
+
return {
|
|
1619
|
+
create: (state) => {
|
|
1620
|
+
state.values[idx] = this.create(state);
|
|
1621
|
+
return 1;
|
|
1622
|
+
},
|
|
1623
|
+
update: (state, tr) => {
|
|
1624
|
+
let oldVal = state.values[idx];
|
|
1625
|
+
let value = this.updateF(oldVal, tr);
|
|
1626
|
+
if (this.compareF(oldVal, value))
|
|
1627
|
+
return 0;
|
|
1628
|
+
state.values[idx] = value;
|
|
1629
|
+
return 1;
|
|
1630
|
+
},
|
|
1631
|
+
reconfigure: (state, oldState) => {
|
|
1632
|
+
let init = state.facet(initField), oldInit = oldState.facet(initField), reInit;
|
|
1633
|
+
if ((reInit = init.find((i) => i.field == this)) && reInit != oldInit.find((i) => i.field == this)) {
|
|
1634
|
+
state.values[idx] = reInit.create(state);
|
|
1635
|
+
return 1;
|
|
1636
|
+
}
|
|
1637
|
+
if (oldState.config.address[this.id] != null) {
|
|
1638
|
+
state.values[idx] = oldState.field(this);
|
|
1639
|
+
return 0;
|
|
1640
|
+
}
|
|
1641
|
+
state.values[idx] = this.create(state);
|
|
1642
|
+
return 1;
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1645
|
+
}
|
|
1646
|
+
/**
|
|
1647
|
+
Returns an extension that enables this field and overrides the
|
|
1648
|
+
way it is initialized. Can be useful when you need to provide a
|
|
1649
|
+
non-default starting value for the field.
|
|
1650
|
+
*/
|
|
1651
|
+
init(create) {
|
|
1652
|
+
return [this, initField.of({ field: this, create })];
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
State field instances can be used as
|
|
1656
|
+
[`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a
|
|
1657
|
+
given state.
|
|
1658
|
+
*/
|
|
1659
|
+
get extension() {
|
|
1660
|
+
return this;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
const Prec_ = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
|
|
1664
|
+
function prec(value) {
|
|
1665
|
+
return (ext) => new PrecExtension(ext, value);
|
|
1666
|
+
}
|
|
1667
|
+
const Prec = {
|
|
1668
|
+
/**
|
|
1669
|
+
The highest precedence level, for extensions that should end up
|
|
1670
|
+
near the start of the precedence ordering.
|
|
1671
|
+
*/
|
|
1672
|
+
highest: /* @__PURE__ */ prec(Prec_.highest),
|
|
1673
|
+
/**
|
|
1674
|
+
A higher-than-default precedence, for extensions that should
|
|
1675
|
+
come before those with default precedence.
|
|
1676
|
+
*/
|
|
1677
|
+
high: /* @__PURE__ */ prec(Prec_.high),
|
|
1678
|
+
/**
|
|
1679
|
+
The default precedence, which is also used for extensions
|
|
1680
|
+
without an explicit precedence.
|
|
1681
|
+
*/
|
|
1682
|
+
default: /* @__PURE__ */ prec(Prec_.default),
|
|
1683
|
+
/**
|
|
1684
|
+
A lower-than-default precedence.
|
|
1685
|
+
*/
|
|
1686
|
+
low: /* @__PURE__ */ prec(Prec_.low),
|
|
1687
|
+
/**
|
|
1688
|
+
The lowest precedence level. Meant for things that should end up
|
|
1689
|
+
near the end of the extension order.
|
|
1690
|
+
*/
|
|
1691
|
+
lowest: /* @__PURE__ */ prec(Prec_.lowest)
|
|
1692
|
+
};
|
|
1693
|
+
class PrecExtension {
|
|
1694
|
+
constructor(inner, prec2) {
|
|
1695
|
+
this.inner = inner;
|
|
1696
|
+
this.prec = prec2;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
class Compartment {
|
|
1700
|
+
/**
|
|
1701
|
+
Create an instance of this compartment to add to your [state
|
|
1702
|
+
configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
|
|
1703
|
+
*/
|
|
1704
|
+
of(ext) {
|
|
1705
|
+
return new CompartmentInstance(this, ext);
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
|
|
1709
|
+
reconfigures this compartment.
|
|
1710
|
+
*/
|
|
1711
|
+
reconfigure(content) {
|
|
1712
|
+
return Compartment.reconfigure.of({ compartment: this, extension: content });
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
Get the current content of the compartment in the state, or
|
|
1716
|
+
`undefined` if it isn't present.
|
|
1717
|
+
*/
|
|
1718
|
+
get(state) {
|
|
1719
|
+
return state.config.compartments.get(this);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
class CompartmentInstance {
|
|
1723
|
+
constructor(compartment, inner) {
|
|
1724
|
+
this.compartment = compartment;
|
|
1725
|
+
this.inner = inner;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
class Configuration {
|
|
1729
|
+
constructor(base, compartments, dynamicSlots, address, staticValues, facets) {
|
|
1730
|
+
this.base = base;
|
|
1731
|
+
this.compartments = compartments;
|
|
1732
|
+
this.dynamicSlots = dynamicSlots;
|
|
1733
|
+
this.address = address;
|
|
1734
|
+
this.staticValues = staticValues;
|
|
1735
|
+
this.facets = facets;
|
|
1736
|
+
this.statusTemplate = [];
|
|
1737
|
+
while (this.statusTemplate.length < dynamicSlots.length)
|
|
1738
|
+
this.statusTemplate.push(
|
|
1739
|
+
0
|
|
1740
|
+
/* SlotStatus.Unresolved */
|
|
1741
|
+
);
|
|
1742
|
+
}
|
|
1743
|
+
staticFacet(facet) {
|
|
1744
|
+
let addr = this.address[facet.id];
|
|
1745
|
+
return addr == null ? facet.default : this.staticValues[addr >> 1];
|
|
1746
|
+
}
|
|
1747
|
+
static resolve(base, compartments, oldState) {
|
|
1748
|
+
let fields = [];
|
|
1749
|
+
let facets = /* @__PURE__ */ Object.create(null);
|
|
1750
|
+
let newCompartments = /* @__PURE__ */ new Map();
|
|
1751
|
+
for (let ext of flatten(base, compartments, newCompartments)) {
|
|
1752
|
+
if (ext instanceof StateField)
|
|
1753
|
+
fields.push(ext);
|
|
1754
|
+
else
|
|
1755
|
+
(facets[ext.facet.id] || (facets[ext.facet.id] = [])).push(ext);
|
|
1756
|
+
}
|
|
1757
|
+
let address = /* @__PURE__ */ Object.create(null);
|
|
1758
|
+
let staticValues = [];
|
|
1759
|
+
let dynamicSlots = [];
|
|
1760
|
+
for (let field of fields) {
|
|
1761
|
+
address[field.id] = dynamicSlots.length << 1;
|
|
1762
|
+
dynamicSlots.push((a) => field.slot(a));
|
|
1763
|
+
}
|
|
1764
|
+
let oldFacets = oldState === null || oldState === void 0 ? void 0 : oldState.config.facets;
|
|
1765
|
+
for (let id in facets) {
|
|
1766
|
+
let providers = facets[id], facet = providers[0].facet;
|
|
1767
|
+
let oldProviders = oldFacets && oldFacets[id] || [];
|
|
1768
|
+
if (providers.every(
|
|
1769
|
+
(p) => p.type == 0
|
|
1770
|
+
/* Provider.Static */
|
|
1771
|
+
)) {
|
|
1772
|
+
address[facet.id] = staticValues.length << 1 | 1;
|
|
1773
|
+
if (sameArray(oldProviders, providers)) {
|
|
1774
|
+
staticValues.push(oldState.facet(facet));
|
|
1775
|
+
} else {
|
|
1776
|
+
let value = facet.combine(providers.map((p) => p.value));
|
|
1777
|
+
staticValues.push(oldState && facet.compare(value, oldState.facet(facet)) ? oldState.facet(facet) : value);
|
|
1778
|
+
}
|
|
1779
|
+
} else {
|
|
1780
|
+
for (let p of providers) {
|
|
1781
|
+
if (p.type == 0) {
|
|
1782
|
+
address[p.id] = staticValues.length << 1 | 1;
|
|
1783
|
+
staticValues.push(p.value);
|
|
1784
|
+
} else {
|
|
1785
|
+
address[p.id] = dynamicSlots.length << 1;
|
|
1786
|
+
dynamicSlots.push((a) => p.dynamicSlot(a));
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
address[facet.id] = dynamicSlots.length << 1;
|
|
1790
|
+
dynamicSlots.push((a) => dynamicFacetSlot(a, facet, providers));
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
let dynamic = dynamicSlots.map((f) => f(address));
|
|
1794
|
+
return new Configuration(base, newCompartments, dynamic, address, staticValues, facets);
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
function flatten(extension, compartments, newCompartments) {
|
|
1798
|
+
let result = [[], [], [], [], []];
|
|
1799
|
+
let seen = /* @__PURE__ */ new Map();
|
|
1800
|
+
function inner(ext, prec2) {
|
|
1801
|
+
let known = seen.get(ext);
|
|
1802
|
+
if (known != null) {
|
|
1803
|
+
if (known <= prec2)
|
|
1804
|
+
return;
|
|
1805
|
+
let found = result[known].indexOf(ext);
|
|
1806
|
+
if (found > -1)
|
|
1807
|
+
result[known].splice(found, 1);
|
|
1808
|
+
if (ext instanceof CompartmentInstance)
|
|
1809
|
+
newCompartments.delete(ext.compartment);
|
|
1810
|
+
}
|
|
1811
|
+
seen.set(ext, prec2);
|
|
1812
|
+
if (Array.isArray(ext)) {
|
|
1813
|
+
for (let e of ext)
|
|
1814
|
+
inner(e, prec2);
|
|
1815
|
+
} else if (ext instanceof CompartmentInstance) {
|
|
1816
|
+
if (newCompartments.has(ext.compartment))
|
|
1817
|
+
throw new RangeError(`Duplicate use of compartment in extensions`);
|
|
1818
|
+
let content = compartments.get(ext.compartment) || ext.inner;
|
|
1819
|
+
newCompartments.set(ext.compartment, content);
|
|
1820
|
+
inner(content, prec2);
|
|
1821
|
+
} else if (ext instanceof PrecExtension) {
|
|
1822
|
+
inner(ext.inner, ext.prec);
|
|
1823
|
+
} else if (ext instanceof StateField) {
|
|
1824
|
+
result[prec2].push(ext);
|
|
1825
|
+
if (ext.provides)
|
|
1826
|
+
inner(ext.provides, prec2);
|
|
1827
|
+
} else if (ext instanceof FacetProvider) {
|
|
1828
|
+
result[prec2].push(ext);
|
|
1829
|
+
if (ext.facet.extensions)
|
|
1830
|
+
inner(ext.facet.extensions, Prec_.default);
|
|
1831
|
+
} else {
|
|
1832
|
+
let content = ext.extension;
|
|
1833
|
+
if (!content)
|
|
1834
|
+
throw new Error(`Unrecognized extension value in extension set (${ext}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
|
|
1835
|
+
inner(content, prec2);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
inner(extension, Prec_.default);
|
|
1839
|
+
return result.reduce((a, b) => a.concat(b));
|
|
1840
|
+
}
|
|
1841
|
+
function ensureAddr(state, addr) {
|
|
1842
|
+
if (addr & 1)
|
|
1843
|
+
return 2;
|
|
1844
|
+
let idx = addr >> 1;
|
|
1845
|
+
let status = state.status[idx];
|
|
1846
|
+
if (status == 4)
|
|
1847
|
+
throw new Error("Cyclic dependency between fields and/or facets");
|
|
1848
|
+
if (status & 2)
|
|
1849
|
+
return status;
|
|
1850
|
+
state.status[idx] = 4;
|
|
1851
|
+
let changed = state.computeSlot(state, state.config.dynamicSlots[idx]);
|
|
1852
|
+
return state.status[idx] = 2 | changed;
|
|
1853
|
+
}
|
|
1854
|
+
function getAddr(state, addr) {
|
|
1855
|
+
return addr & 1 ? state.config.staticValues[addr >> 1] : state.values[addr >> 1];
|
|
1856
|
+
}
|
|
1857
|
+
const languageData = /* @__PURE__ */ Facet.define();
|
|
1858
|
+
const allowMultipleSelections = /* @__PURE__ */ Facet.define({
|
|
1859
|
+
combine: (values) => values.some((v) => v),
|
|
1860
|
+
static: true
|
|
1861
|
+
});
|
|
1862
|
+
const lineSeparator = /* @__PURE__ */ Facet.define({
|
|
1863
|
+
combine: (values) => values.length ? values[0] : void 0,
|
|
1864
|
+
static: true
|
|
1865
|
+
});
|
|
1866
|
+
const changeFilter = /* @__PURE__ */ Facet.define();
|
|
1867
|
+
const transactionFilter = /* @__PURE__ */ Facet.define();
|
|
1868
|
+
const transactionExtender = /* @__PURE__ */ Facet.define();
|
|
1869
|
+
const readOnly = /* @__PURE__ */ Facet.define({
|
|
1870
|
+
combine: (values) => values.length ? values[0] : false
|
|
1871
|
+
});
|
|
1872
|
+
class Annotation {
|
|
1873
|
+
/**
|
|
1874
|
+
@internal
|
|
1875
|
+
*/
|
|
1876
|
+
constructor(type, value) {
|
|
1877
|
+
this.type = type;
|
|
1878
|
+
this.value = value;
|
|
1879
|
+
}
|
|
1880
|
+
/**
|
|
1881
|
+
Define a new type of annotation.
|
|
1882
|
+
*/
|
|
1883
|
+
static define() {
|
|
1884
|
+
return new AnnotationType();
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
class AnnotationType {
|
|
1888
|
+
/**
|
|
1889
|
+
Create an instance of this annotation.
|
|
1890
|
+
*/
|
|
1891
|
+
of(value) {
|
|
1892
|
+
return new Annotation(this, value);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
class StateEffectType {
|
|
1896
|
+
/**
|
|
1897
|
+
@internal
|
|
1898
|
+
*/
|
|
1899
|
+
constructor(map) {
|
|
1900
|
+
this.map = map;
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this
|
|
1904
|
+
type.
|
|
1905
|
+
*/
|
|
1906
|
+
of(value) {
|
|
1907
|
+
return new StateEffect(this, value);
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
class StateEffect {
|
|
1911
|
+
/**
|
|
1912
|
+
@internal
|
|
1913
|
+
*/
|
|
1914
|
+
constructor(type, value) {
|
|
1915
|
+
this.type = type;
|
|
1916
|
+
this.value = value;
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
Map this effect through a position mapping. Will return
|
|
1920
|
+
`undefined` when that ends up deleting the effect.
|
|
1921
|
+
*/
|
|
1922
|
+
map(mapping) {
|
|
1923
|
+
let mapped = this.type.map(this.value, mapping);
|
|
1924
|
+
return mapped === void 0 ? void 0 : mapped == this.value ? this : new StateEffect(this.type, mapped);
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
Tells you whether this effect object is of a given
|
|
1928
|
+
[type](https://codemirror.net/6/docs/ref/#state.StateEffectType).
|
|
1929
|
+
*/
|
|
1930
|
+
is(type) {
|
|
1931
|
+
return this.type == type;
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
Define a new effect type. The type parameter indicates the type
|
|
1935
|
+
of values that his effect holds. It should be a type that
|
|
1936
|
+
doesn't include `undefined`, since that is used in
|
|
1937
|
+
[mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
|
|
1938
|
+
removed.
|
|
1939
|
+
*/
|
|
1940
|
+
static define(spec = {}) {
|
|
1941
|
+
return new StateEffectType(spec.map || ((v) => v));
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
Map an array of effects through a change set.
|
|
1945
|
+
*/
|
|
1946
|
+
static mapEffects(effects, mapping) {
|
|
1947
|
+
if (!effects.length)
|
|
1948
|
+
return effects;
|
|
1949
|
+
let result = [];
|
|
1950
|
+
for (let effect of effects) {
|
|
1951
|
+
let mapped = effect.map(mapping);
|
|
1952
|
+
if (mapped)
|
|
1953
|
+
result.push(mapped);
|
|
1954
|
+
}
|
|
1955
|
+
return result;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
StateEffect.reconfigure = /* @__PURE__ */ StateEffect.define();
|
|
1959
|
+
StateEffect.appendConfig = /* @__PURE__ */ StateEffect.define();
|
|
1960
|
+
class Transaction {
|
|
1961
|
+
constructor(startState, changes, selection, effects, annotations, scrollIntoView) {
|
|
1962
|
+
this.startState = startState;
|
|
1963
|
+
this.changes = changes;
|
|
1964
|
+
this.selection = selection;
|
|
1965
|
+
this.effects = effects;
|
|
1966
|
+
this.annotations = annotations;
|
|
1967
|
+
this.scrollIntoView = scrollIntoView;
|
|
1968
|
+
this._doc = null;
|
|
1969
|
+
this._state = null;
|
|
1970
|
+
if (selection)
|
|
1971
|
+
checkSelection(selection, changes.newLength);
|
|
1972
|
+
if (!annotations.some((a) => a.type == Transaction.time))
|
|
1973
|
+
this.annotations = annotations.concat(Transaction.time.of(Date.now()));
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
@internal
|
|
1977
|
+
*/
|
|
1978
|
+
static create(startState, changes, selection, effects, annotations, scrollIntoView) {
|
|
1979
|
+
return new Transaction(startState, changes, selection, effects, annotations, scrollIntoView);
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
The new document produced by the transaction. Contrary to
|
|
1983
|
+
[`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't
|
|
1984
|
+
force the entire new state to be computed right away, so it is
|
|
1985
|
+
recommended that [transaction
|
|
1986
|
+
filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter
|
|
1987
|
+
when they need to look at the new document.
|
|
1988
|
+
*/
|
|
1989
|
+
get newDoc() {
|
|
1990
|
+
return this._doc || (this._doc = this.changes.apply(this.startState.doc));
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
The new selection produced by the transaction. If
|
|
1994
|
+
[`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined,
|
|
1995
|
+
this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's
|
|
1996
|
+
current selection through the changes made by the transaction.
|
|
1997
|
+
*/
|
|
1998
|
+
get newSelection() {
|
|
1999
|
+
return this.selection || this.startState.selection.map(this.changes);
|
|
2000
|
+
}
|
|
2001
|
+
/**
|
|
2002
|
+
The new state created by the transaction. Computed on demand
|
|
2003
|
+
(but retained for subsequent access), so it is recommended not to
|
|
2004
|
+
access it in [transaction
|
|
2005
|
+
filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible.
|
|
2006
|
+
*/
|
|
2007
|
+
get state() {
|
|
2008
|
+
if (!this._state)
|
|
2009
|
+
this.startState.applyTransaction(this);
|
|
2010
|
+
return this._state;
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
Get the value of the given annotation type, if any.
|
|
2014
|
+
*/
|
|
2015
|
+
annotation(type) {
|
|
2016
|
+
for (let ann of this.annotations)
|
|
2017
|
+
if (ann.type == type)
|
|
2018
|
+
return ann.value;
|
|
2019
|
+
return void 0;
|
|
2020
|
+
}
|
|
2021
|
+
/**
|
|
2022
|
+
Indicates whether the transaction changed the document.
|
|
2023
|
+
*/
|
|
2024
|
+
get docChanged() {
|
|
2025
|
+
return !this.changes.empty;
|
|
2026
|
+
}
|
|
2027
|
+
/**
|
|
2028
|
+
Indicates whether this transaction reconfigures the state
|
|
2029
|
+
(through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or
|
|
2030
|
+
with a top-level configuration
|
|
2031
|
+
[effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure).
|
|
2032
|
+
*/
|
|
2033
|
+
get reconfigured() {
|
|
2034
|
+
return this.startState.config != this.state.config;
|
|
2035
|
+
}
|
|
2036
|
+
/**
|
|
2037
|
+
Returns true if the transaction has a [user
|
|
2038
|
+
event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to
|
|
2039
|
+
or more specific than `event`. For example, if the transaction
|
|
2040
|
+
has `"select.pointer"` as user event, `"select"` and
|
|
2041
|
+
`"select.pointer"` will match it.
|
|
2042
|
+
*/
|
|
2043
|
+
isUserEvent(event) {
|
|
2044
|
+
let e = this.annotation(Transaction.userEvent);
|
|
2045
|
+
return !!(e && (e == event || e.length > event.length && e.slice(0, event.length) == event && e[event.length] == "."));
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
Transaction.time = /* @__PURE__ */ Annotation.define();
|
|
2049
|
+
Transaction.userEvent = /* @__PURE__ */ Annotation.define();
|
|
2050
|
+
Transaction.addToHistory = /* @__PURE__ */ Annotation.define();
|
|
2051
|
+
Transaction.remote = /* @__PURE__ */ Annotation.define();
|
|
2052
|
+
function joinRanges(a, b) {
|
|
2053
|
+
let result = [];
|
|
2054
|
+
for (let iA = 0, iB = 0; ; ) {
|
|
2055
|
+
let from, to;
|
|
2056
|
+
if (iA < a.length && (iB == b.length || b[iB] >= a[iA])) {
|
|
2057
|
+
from = a[iA++];
|
|
2058
|
+
to = a[iA++];
|
|
2059
|
+
} else if (iB < b.length) {
|
|
2060
|
+
from = b[iB++];
|
|
2061
|
+
to = b[iB++];
|
|
2062
|
+
} else
|
|
2063
|
+
return result;
|
|
2064
|
+
if (!result.length || result[result.length - 1] < from)
|
|
2065
|
+
result.push(from, to);
|
|
2066
|
+
else if (result[result.length - 1] < to)
|
|
2067
|
+
result[result.length - 1] = to;
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
function mergeTransaction(a, b, sequential) {
|
|
2071
|
+
var _a;
|
|
2072
|
+
let mapForA, mapForB, changes;
|
|
2073
|
+
if (sequential) {
|
|
2074
|
+
mapForA = b.changes;
|
|
2075
|
+
mapForB = ChangeSet.empty(b.changes.length);
|
|
2076
|
+
changes = a.changes.compose(b.changes);
|
|
2077
|
+
} else {
|
|
2078
|
+
mapForA = b.changes.map(a.changes);
|
|
2079
|
+
mapForB = a.changes.mapDesc(b.changes, true);
|
|
2080
|
+
changes = a.changes.compose(mapForA);
|
|
2081
|
+
}
|
|
2082
|
+
return {
|
|
2083
|
+
changes,
|
|
2084
|
+
selection: b.selection ? b.selection.map(mapForB) : (_a = a.selection) === null || _a === void 0 ? void 0 : _a.map(mapForA),
|
|
2085
|
+
effects: StateEffect.mapEffects(a.effects, mapForA).concat(StateEffect.mapEffects(b.effects, mapForB)),
|
|
2086
|
+
annotations: a.annotations.length ? a.annotations.concat(b.annotations) : b.annotations,
|
|
2087
|
+
scrollIntoView: a.scrollIntoView || b.scrollIntoView
|
|
2088
|
+
};
|
|
2089
|
+
}
|
|
2090
|
+
function resolveTransactionInner(state, spec, docSize) {
|
|
2091
|
+
let sel = spec.selection, annotations = asArray(spec.annotations);
|
|
2092
|
+
if (spec.userEvent)
|
|
2093
|
+
annotations = annotations.concat(Transaction.userEvent.of(spec.userEvent));
|
|
2094
|
+
return {
|
|
2095
|
+
changes: spec.changes instanceof ChangeSet ? spec.changes : ChangeSet.of(spec.changes || [], docSize, state.facet(lineSeparator)),
|
|
2096
|
+
selection: sel && (sel instanceof EditorSelection ? sel : EditorSelection.single(sel.anchor, sel.head)),
|
|
2097
|
+
effects: asArray(spec.effects),
|
|
2098
|
+
annotations,
|
|
2099
|
+
scrollIntoView: !!spec.scrollIntoView
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
function resolveTransaction(state, specs, filter) {
|
|
2103
|
+
let s = resolveTransactionInner(state, specs.length ? specs[0] : {}, state.doc.length);
|
|
2104
|
+
if (specs.length && specs[0].filter === false)
|
|
2105
|
+
filter = false;
|
|
2106
|
+
for (let i = 1; i < specs.length; i++) {
|
|
2107
|
+
if (specs[i].filter === false)
|
|
2108
|
+
filter = false;
|
|
2109
|
+
let seq = !!specs[i].sequential;
|
|
2110
|
+
s = mergeTransaction(s, resolveTransactionInner(state, specs[i], seq ? s.changes.newLength : state.doc.length), seq);
|
|
2111
|
+
}
|
|
2112
|
+
let tr = Transaction.create(state, s.changes, s.selection, s.effects, s.annotations, s.scrollIntoView);
|
|
2113
|
+
return extendTransaction(filter ? filterTransaction(tr) : tr);
|
|
2114
|
+
}
|
|
2115
|
+
function filterTransaction(tr) {
|
|
2116
|
+
let state = tr.startState;
|
|
2117
|
+
let result = true;
|
|
2118
|
+
for (let filter of state.facet(changeFilter)) {
|
|
2119
|
+
let value = filter(tr);
|
|
2120
|
+
if (value === false) {
|
|
2121
|
+
result = false;
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2124
|
+
if (Array.isArray(value))
|
|
2125
|
+
result = result === true ? value : joinRanges(result, value);
|
|
2126
|
+
}
|
|
2127
|
+
if (result !== true) {
|
|
2128
|
+
let changes, back;
|
|
2129
|
+
if (result === false) {
|
|
2130
|
+
back = tr.changes.invertedDesc;
|
|
2131
|
+
changes = ChangeSet.empty(state.doc.length);
|
|
2132
|
+
} else {
|
|
2133
|
+
let filtered = tr.changes.filter(result);
|
|
2134
|
+
changes = filtered.changes;
|
|
2135
|
+
back = filtered.filtered.mapDesc(filtered.changes).invertedDesc;
|
|
2136
|
+
}
|
|
2137
|
+
tr = Transaction.create(state, changes, tr.selection && tr.selection.map(back), StateEffect.mapEffects(tr.effects, back), tr.annotations, tr.scrollIntoView);
|
|
2138
|
+
}
|
|
2139
|
+
let filters = state.facet(transactionFilter);
|
|
2140
|
+
for (let i = filters.length - 1; i >= 0; i--) {
|
|
2141
|
+
let filtered = filters[i](tr);
|
|
2142
|
+
if (filtered instanceof Transaction)
|
|
2143
|
+
tr = filtered;
|
|
2144
|
+
else if (Array.isArray(filtered) && filtered.length == 1 && filtered[0] instanceof Transaction)
|
|
2145
|
+
tr = filtered[0];
|
|
2146
|
+
else
|
|
2147
|
+
tr = resolveTransaction(state, asArray(filtered), false);
|
|
2148
|
+
}
|
|
2149
|
+
return tr;
|
|
2150
|
+
}
|
|
2151
|
+
function extendTransaction(tr) {
|
|
2152
|
+
let state = tr.startState, extenders = state.facet(transactionExtender), spec = tr;
|
|
2153
|
+
for (let i = extenders.length - 1; i >= 0; i--) {
|
|
2154
|
+
let extension = extenders[i](tr);
|
|
2155
|
+
if (extension && Object.keys(extension).length)
|
|
2156
|
+
spec = mergeTransaction(spec, resolveTransactionInner(state, extension, tr.changes.newLength), true);
|
|
2157
|
+
}
|
|
2158
|
+
return spec == tr ? tr : Transaction.create(state, tr.changes, tr.selection, spec.effects, spec.annotations, spec.scrollIntoView);
|
|
2159
|
+
}
|
|
2160
|
+
const none = [];
|
|
2161
|
+
function asArray(value) {
|
|
2162
|
+
return value == null ? none : Array.isArray(value) ? value : [value];
|
|
2163
|
+
}
|
|
2164
|
+
var CharCategory = /* @__PURE__ */ (function(CharCategory2) {
|
|
2165
|
+
CharCategory2[CharCategory2["Word"] = 0] = "Word";
|
|
2166
|
+
CharCategory2[CharCategory2["Space"] = 1] = "Space";
|
|
2167
|
+
CharCategory2[CharCategory2["Other"] = 2] = "Other";
|
|
2168
|
+
return CharCategory2;
|
|
2169
|
+
})(CharCategory || (CharCategory = {}));
|
|
2170
|
+
const nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
2171
|
+
let wordChar;
|
|
2172
|
+
try {
|
|
2173
|
+
wordChar = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
|
|
2174
|
+
} catch (_) {
|
|
2175
|
+
}
|
|
2176
|
+
function hasWordChar(str) {
|
|
2177
|
+
if (wordChar)
|
|
2178
|
+
return wordChar.test(str);
|
|
2179
|
+
for (let i = 0; i < str.length; i++) {
|
|
2180
|
+
let ch = str[i];
|
|
2181
|
+
if (/\w/.test(ch) || ch > "" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch)))
|
|
2182
|
+
return true;
|
|
2183
|
+
}
|
|
2184
|
+
return false;
|
|
2185
|
+
}
|
|
2186
|
+
function makeCategorizer(wordChars) {
|
|
2187
|
+
return (char) => {
|
|
2188
|
+
if (!/\S/.test(char))
|
|
2189
|
+
return CharCategory.Space;
|
|
2190
|
+
if (hasWordChar(char))
|
|
2191
|
+
return CharCategory.Word;
|
|
2192
|
+
for (let i = 0; i < wordChars.length; i++)
|
|
2193
|
+
if (char.indexOf(wordChars[i]) > -1)
|
|
2194
|
+
return CharCategory.Word;
|
|
2195
|
+
return CharCategory.Other;
|
|
2196
|
+
};
|
|
2197
|
+
}
|
|
2198
|
+
class EditorState {
|
|
2199
|
+
constructor(config, doc, selection, values, computeSlot, tr) {
|
|
2200
|
+
this.config = config;
|
|
2201
|
+
this.doc = doc;
|
|
2202
|
+
this.selection = selection;
|
|
2203
|
+
this.values = values;
|
|
2204
|
+
this.status = config.statusTemplate.slice();
|
|
2205
|
+
this.computeSlot = computeSlot;
|
|
2206
|
+
if (tr)
|
|
2207
|
+
tr._state = this;
|
|
2208
|
+
for (let i = 0; i < this.config.dynamicSlots.length; i++)
|
|
2209
|
+
ensureAddr(this, i << 1);
|
|
2210
|
+
this.computeSlot = null;
|
|
2211
|
+
}
|
|
2212
|
+
field(field, require2 = true) {
|
|
2213
|
+
let addr = this.config.address[field.id];
|
|
2214
|
+
if (addr == null) {
|
|
2215
|
+
if (require2)
|
|
2216
|
+
throw new RangeError("Field is not present in this state");
|
|
2217
|
+
return void 0;
|
|
2218
|
+
}
|
|
2219
|
+
ensureAddr(this, addr);
|
|
2220
|
+
return getAddr(this, addr);
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
|
|
2224
|
+
state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec)
|
|
2225
|
+
can be passed. Unless
|
|
2226
|
+
[`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the
|
|
2227
|
+
[changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec
|
|
2228
|
+
are assumed to start in the _current_ document (not the document
|
|
2229
|
+
produced by previous specs), and its
|
|
2230
|
+
[selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and
|
|
2231
|
+
[effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer
|
|
2232
|
+
to the document created by its _own_ changes. The resulting
|
|
2233
|
+
transaction contains the combined effect of all the different
|
|
2234
|
+
specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later
|
|
2235
|
+
specs take precedence over earlier ones.
|
|
2236
|
+
*/
|
|
2237
|
+
update(...specs) {
|
|
2238
|
+
return resolveTransaction(this, specs, true);
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
@internal
|
|
2242
|
+
*/
|
|
2243
|
+
applyTransaction(tr) {
|
|
2244
|
+
let conf = this.config, { base, compartments } = conf;
|
|
2245
|
+
for (let effect of tr.effects) {
|
|
2246
|
+
if (effect.is(Compartment.reconfigure)) {
|
|
2247
|
+
if (conf) {
|
|
2248
|
+
compartments = /* @__PURE__ */ new Map();
|
|
2249
|
+
conf.compartments.forEach((val, key) => compartments.set(key, val));
|
|
2250
|
+
conf = null;
|
|
2251
|
+
}
|
|
2252
|
+
compartments.set(effect.value.compartment, effect.value.extension);
|
|
2253
|
+
} else if (effect.is(StateEffect.reconfigure)) {
|
|
2254
|
+
conf = null;
|
|
2255
|
+
base = effect.value;
|
|
2256
|
+
} else if (effect.is(StateEffect.appendConfig)) {
|
|
2257
|
+
conf = null;
|
|
2258
|
+
base = asArray(base).concat(effect.value);
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
let startValues;
|
|
2262
|
+
if (!conf) {
|
|
2263
|
+
conf = Configuration.resolve(base, compartments, this);
|
|
2264
|
+
let intermediateState = new EditorState(conf, this.doc, this.selection, conf.dynamicSlots.map(() => null), (state, slot) => slot.reconfigure(state, this), null);
|
|
2265
|
+
startValues = intermediateState.values;
|
|
2266
|
+
} else {
|
|
2267
|
+
startValues = tr.startState.values.slice();
|
|
2268
|
+
}
|
|
2269
|
+
let selection = tr.startState.facet(allowMultipleSelections) ? tr.newSelection : tr.newSelection.asSingle();
|
|
2270
|
+
new EditorState(conf, tr.newDoc, selection, startValues, (state, slot) => slot.update(state, tr), tr);
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that
|
|
2274
|
+
replaces every selection range with the given content.
|
|
2275
|
+
*/
|
|
2276
|
+
replaceSelection(text) {
|
|
2277
|
+
if (typeof text == "string")
|
|
2278
|
+
text = this.toText(text);
|
|
2279
|
+
return this.changeByRange((range) => ({
|
|
2280
|
+
changes: { from: range.from, to: range.to, insert: text },
|
|
2281
|
+
range: EditorSelection.cursor(range.from + text.length)
|
|
2282
|
+
}));
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
Create a set of changes and a new selection by running the given
|
|
2286
|
+
function for each range in the active selection. The function
|
|
2287
|
+
can return an optional set of changes (in the coordinate space
|
|
2288
|
+
of the start document), plus an updated range (in the coordinate
|
|
2289
|
+
space of the document produced by the call's own changes). This
|
|
2290
|
+
method will merge all the changes and ranges into a single
|
|
2291
|
+
changeset and selection, and return it as a [transaction
|
|
2292
|
+
spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to
|
|
2293
|
+
[`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
|
|
2294
|
+
*/
|
|
2295
|
+
changeByRange(f) {
|
|
2296
|
+
let sel = this.selection;
|
|
2297
|
+
let result1 = f(sel.ranges[0]);
|
|
2298
|
+
let changes = this.changes(result1.changes), ranges = [result1.range];
|
|
2299
|
+
let effects = asArray(result1.effects);
|
|
2300
|
+
for (let i = 1; i < sel.ranges.length; i++) {
|
|
2301
|
+
let result = f(sel.ranges[i]);
|
|
2302
|
+
let newChanges = this.changes(result.changes), newMapped = newChanges.map(changes);
|
|
2303
|
+
for (let j = 0; j < i; j++)
|
|
2304
|
+
ranges[j] = ranges[j].map(newMapped);
|
|
2305
|
+
let mapBy = changes.mapDesc(newChanges, true);
|
|
2306
|
+
ranges.push(result.range.map(mapBy));
|
|
2307
|
+
changes = changes.compose(newMapped);
|
|
2308
|
+
effects = StateEffect.mapEffects(effects, newMapped).concat(StateEffect.mapEffects(asArray(result.effects), mapBy));
|
|
2309
|
+
}
|
|
2310
|
+
return {
|
|
2311
|
+
changes,
|
|
2312
|
+
selection: EditorSelection.create(ranges, sel.mainIndex),
|
|
2313
|
+
effects
|
|
2314
|
+
};
|
|
2315
|
+
}
|
|
2316
|
+
/**
|
|
2317
|
+
Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change
|
|
2318
|
+
description, taking the state's document length and line
|
|
2319
|
+
separator into account.
|
|
2320
|
+
*/
|
|
2321
|
+
changes(spec = []) {
|
|
2322
|
+
if (spec instanceof ChangeSet)
|
|
2323
|
+
return spec;
|
|
2324
|
+
return ChangeSet.of(spec, this.doc.length, this.facet(EditorState.lineSeparator));
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
Using the state's [line
|
|
2328
|
+
separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a
|
|
2329
|
+
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
|
|
2330
|
+
*/
|
|
2331
|
+
toText(string) {
|
|
2332
|
+
return Text.of(string.split(this.facet(EditorState.lineSeparator) || DefaultSplit));
|
|
2333
|
+
}
|
|
2334
|
+
/**
|
|
2335
|
+
Return the given range of the document as a string.
|
|
2336
|
+
*/
|
|
2337
|
+
sliceDoc(from = 0, to = this.doc.length) {
|
|
2338
|
+
return this.doc.sliceString(from, to, this.lineBreak);
|
|
2339
|
+
}
|
|
2340
|
+
/**
|
|
2341
|
+
Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet).
|
|
2342
|
+
*/
|
|
2343
|
+
facet(facet) {
|
|
2344
|
+
let addr = this.config.address[facet.id];
|
|
2345
|
+
if (addr == null)
|
|
2346
|
+
return facet.default;
|
|
2347
|
+
ensureAddr(this, addr);
|
|
2348
|
+
return getAddr(this, addr);
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
Convert this state to a JSON-serializable object. When custom
|
|
2352
|
+
fields should be serialized, you can pass them in as an object
|
|
2353
|
+
mapping property names (in the resulting object, which should
|
|
2354
|
+
not use `doc` or `selection`) to fields.
|
|
2355
|
+
*/
|
|
2356
|
+
toJSON(fields) {
|
|
2357
|
+
let result = {
|
|
2358
|
+
doc: this.sliceDoc(),
|
|
2359
|
+
selection: this.selection.toJSON()
|
|
2360
|
+
};
|
|
2361
|
+
if (fields)
|
|
2362
|
+
for (let prop in fields) {
|
|
2363
|
+
let value = fields[prop];
|
|
2364
|
+
if (value instanceof StateField && this.config.address[value.id] != null)
|
|
2365
|
+
result[prop] = value.spec.toJSON(this.field(fields[prop]), this);
|
|
2366
|
+
}
|
|
2367
|
+
return result;
|
|
2368
|
+
}
|
|
2369
|
+
/**
|
|
2370
|
+
Deserialize a state from its JSON representation. When custom
|
|
2371
|
+
fields should be deserialized, pass the same object you passed
|
|
2372
|
+
to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as
|
|
2373
|
+
third argument.
|
|
2374
|
+
*/
|
|
2375
|
+
static fromJSON(json, config = {}, fields) {
|
|
2376
|
+
if (!json || typeof json.doc != "string")
|
|
2377
|
+
throw new RangeError("Invalid JSON representation for EditorState");
|
|
2378
|
+
let fieldInit = [];
|
|
2379
|
+
if (fields)
|
|
2380
|
+
for (let prop in fields) {
|
|
2381
|
+
if (Object.prototype.hasOwnProperty.call(json, prop)) {
|
|
2382
|
+
let field = fields[prop], value = json[prop];
|
|
2383
|
+
fieldInit.push(field.init((state) => field.spec.fromJSON(value, state)));
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
return EditorState.create({
|
|
2387
|
+
doc: json.doc,
|
|
2388
|
+
selection: EditorSelection.fromJSON(json.selection),
|
|
2389
|
+
extensions: config.extensions ? fieldInit.concat([config.extensions]) : fieldInit
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
Create a new state. You'll usually only need this when
|
|
2394
|
+
initializing an editor—updated states are created by applying
|
|
2395
|
+
transactions.
|
|
2396
|
+
*/
|
|
2397
|
+
static create(config = {}) {
|
|
2398
|
+
let configuration = Configuration.resolve(config.extensions || [], /* @__PURE__ */ new Map());
|
|
2399
|
+
let doc = config.doc instanceof Text ? config.doc : Text.of((config.doc || "").split(configuration.staticFacet(EditorState.lineSeparator) || DefaultSplit));
|
|
2400
|
+
let selection = !config.selection ? EditorSelection.single(0) : config.selection instanceof EditorSelection ? config.selection : EditorSelection.single(config.selection.anchor, config.selection.head);
|
|
2401
|
+
checkSelection(selection, doc.length);
|
|
2402
|
+
if (!configuration.staticFacet(allowMultipleSelections))
|
|
2403
|
+
selection = selection.asSingle();
|
|
2404
|
+
return new EditorState(configuration, doc, selection, configuration.dynamicSlots.map(() => null), (state, slot) => slot.create(state), null);
|
|
2405
|
+
}
|
|
2406
|
+
/**
|
|
2407
|
+
The size (in columns) of a tab in the document, determined by
|
|
2408
|
+
the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.
|
|
2409
|
+
*/
|
|
2410
|
+
get tabSize() {
|
|
2411
|
+
return this.facet(EditorState.tabSize);
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
2414
|
+
Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)
|
|
2415
|
+
string for this state.
|
|
2416
|
+
*/
|
|
2417
|
+
get lineBreak() {
|
|
2418
|
+
return this.facet(EditorState.lineSeparator) || "\n";
|
|
2419
|
+
}
|
|
2420
|
+
/**
|
|
2421
|
+
Returns true when the editor is
|
|
2422
|
+
[configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
|
|
2423
|
+
*/
|
|
2424
|
+
get readOnly() {
|
|
2425
|
+
return this.facet(readOnly);
|
|
2426
|
+
}
|
|
2427
|
+
/**
|
|
2428
|
+
Look up a translation for the given phrase (via the
|
|
2429
|
+
[`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the
|
|
2430
|
+
original string if no translation is found.
|
|
2431
|
+
|
|
2432
|
+
If additional arguments are passed, they will be inserted in
|
|
2433
|
+
place of markers like `$1` (for the first value) and `$2`, etc.
|
|
2434
|
+
A single `$` is equivalent to `$1`, and `$$` will produce a
|
|
2435
|
+
literal dollar sign.
|
|
2436
|
+
*/
|
|
2437
|
+
phrase(phrase, ...insert2) {
|
|
2438
|
+
for (let map of this.facet(EditorState.phrases))
|
|
2439
|
+
if (Object.prototype.hasOwnProperty.call(map, phrase)) {
|
|
2440
|
+
phrase = map[phrase];
|
|
2441
|
+
break;
|
|
2442
|
+
}
|
|
2443
|
+
if (insert2.length)
|
|
2444
|
+
phrase = phrase.replace(/\$(\$|\d*)/g, (m, i) => {
|
|
2445
|
+
if (i == "$")
|
|
2446
|
+
return "$";
|
|
2447
|
+
let n = +(i || 1);
|
|
2448
|
+
return !n || n > insert2.length ? m : insert2[n - 1];
|
|
2449
|
+
});
|
|
2450
|
+
return phrase;
|
|
2451
|
+
}
|
|
2452
|
+
/**
|
|
2453
|
+
Find the values for a given language data field, provided by the
|
|
2454
|
+
the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
|
|
2455
|
+
|
|
2456
|
+
Examples of language data fields are...
|
|
2457
|
+
|
|
2458
|
+
- [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
|
|
2459
|
+
comment syntax.
|
|
2460
|
+
- [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
|
|
2461
|
+
for providing language-specific completion sources.
|
|
2462
|
+
- [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
|
|
2463
|
+
characters that should be considered part of words in this
|
|
2464
|
+
language.
|
|
2465
|
+
- [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
|
|
2466
|
+
bracket closing behavior.
|
|
2467
|
+
*/
|
|
2468
|
+
languageDataAt(name, pos, side = -1) {
|
|
2469
|
+
let values = [];
|
|
2470
|
+
for (let provider of this.facet(languageData)) {
|
|
2471
|
+
for (let result of provider(this, pos, side)) {
|
|
2472
|
+
if (Object.prototype.hasOwnProperty.call(result, name))
|
|
2473
|
+
values.push(result[name]);
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
return values;
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
Return a function that can categorize strings (expected to
|
|
2480
|
+
represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak))
|
|
2481
|
+
into one of:
|
|
2482
|
+
|
|
2483
|
+
- Word (contains an alphanumeric character or a character
|
|
2484
|
+
explicitly listed in the local language's `"wordChars"`
|
|
2485
|
+
language data, which should be a string)
|
|
2486
|
+
- Space (contains only whitespace)
|
|
2487
|
+
- Other (anything else)
|
|
2488
|
+
*/
|
|
2489
|
+
charCategorizer(at) {
|
|
2490
|
+
let chars = this.languageDataAt("wordChars", at);
|
|
2491
|
+
return makeCategorizer(chars.length ? chars[0] : "");
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
Find the word at the given position, meaning the range
|
|
2495
|
+
containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters
|
|
2496
|
+
around it. If no word characters are adjacent to the position,
|
|
2497
|
+
this returns null.
|
|
2498
|
+
*/
|
|
2499
|
+
wordAt(pos) {
|
|
2500
|
+
let { text, from, length } = this.doc.lineAt(pos);
|
|
2501
|
+
let cat = this.charCategorizer(pos);
|
|
2502
|
+
let start = pos - from, end = pos - from;
|
|
2503
|
+
while (start > 0) {
|
|
2504
|
+
let prev = findClusterBreak(text, start, false);
|
|
2505
|
+
if (cat(text.slice(prev, start)) != CharCategory.Word)
|
|
2506
|
+
break;
|
|
2507
|
+
start = prev;
|
|
2508
|
+
}
|
|
2509
|
+
while (end < length) {
|
|
2510
|
+
let next = findClusterBreak(text, end);
|
|
2511
|
+
if (cat(text.slice(end, next)) != CharCategory.Word)
|
|
2512
|
+
break;
|
|
2513
|
+
end = next;
|
|
2514
|
+
}
|
|
2515
|
+
return start == end ? null : EditorSelection.range(start + from, end + from);
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
EditorState.allowMultipleSelections = allowMultipleSelections;
|
|
2519
|
+
EditorState.tabSize = /* @__PURE__ */ Facet.define({
|
|
2520
|
+
combine: (values) => values.length ? values[0] : 4
|
|
2521
|
+
});
|
|
2522
|
+
EditorState.lineSeparator = lineSeparator;
|
|
2523
|
+
EditorState.readOnly = readOnly;
|
|
2524
|
+
EditorState.phrases = /* @__PURE__ */ Facet.define({
|
|
2525
|
+
compare(a, b) {
|
|
2526
|
+
let kA = Object.keys(a), kB = Object.keys(b);
|
|
2527
|
+
return kA.length == kB.length && kA.every((k) => a[k] == b[k]);
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
2530
|
+
EditorState.languageData = languageData;
|
|
2531
|
+
EditorState.changeFilter = changeFilter;
|
|
2532
|
+
EditorState.transactionFilter = transactionFilter;
|
|
2533
|
+
EditorState.transactionExtender = transactionExtender;
|
|
2534
|
+
Compartment.reconfigure = /* @__PURE__ */ StateEffect.define();
|
|
2535
|
+
function combineConfig(configs, defaults, combine = {}) {
|
|
2536
|
+
let result = {};
|
|
2537
|
+
for (let config of configs)
|
|
2538
|
+
for (let key of Object.keys(config)) {
|
|
2539
|
+
let value = config[key], current = result[key];
|
|
2540
|
+
if (current === void 0)
|
|
2541
|
+
result[key] = value;
|
|
2542
|
+
else if (current === value || value === void 0) ;
|
|
2543
|
+
else if (Object.hasOwnProperty.call(combine, key))
|
|
2544
|
+
result[key] = combine[key](current, value);
|
|
2545
|
+
else
|
|
2546
|
+
throw new Error("Config merge conflict for field " + key);
|
|
2547
|
+
}
|
|
2548
|
+
for (let key in defaults)
|
|
2549
|
+
if (result[key] === void 0)
|
|
2550
|
+
result[key] = defaults[key];
|
|
2551
|
+
return result;
|
|
2552
|
+
}
|
|
2553
|
+
class RangeValue {
|
|
2554
|
+
/**
|
|
2555
|
+
Compare this value with another value. Used when comparing
|
|
2556
|
+
rangesets. The default implementation compares by identity.
|
|
2557
|
+
Unless you are only creating a fixed number of unique instances
|
|
2558
|
+
of your value type, it is a good idea to implement this
|
|
2559
|
+
properly.
|
|
2560
|
+
*/
|
|
2561
|
+
eq(other) {
|
|
2562
|
+
return this == other;
|
|
2563
|
+
}
|
|
2564
|
+
/**
|
|
2565
|
+
Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
|
|
2566
|
+
*/
|
|
2567
|
+
range(from, to = from) {
|
|
2568
|
+
return Range.create(from, to, this);
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
RangeValue.prototype.startSide = RangeValue.prototype.endSide = 0;
|
|
2572
|
+
RangeValue.prototype.point = false;
|
|
2573
|
+
RangeValue.prototype.mapMode = MapMode.TrackDel;
|
|
2574
|
+
function cmpVal(a, b) {
|
|
2575
|
+
return a == b || a.constructor == b.constructor && a.eq(b);
|
|
2576
|
+
}
|
|
2577
|
+
class Range {
|
|
2578
|
+
constructor(from, to, value) {
|
|
2579
|
+
this.from = from;
|
|
2580
|
+
this.to = to;
|
|
2581
|
+
this.value = value;
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
@internal
|
|
2585
|
+
*/
|
|
2586
|
+
static create(from, to, value) {
|
|
2587
|
+
return new Range(from, to, value);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
function cmpRange(a, b) {
|
|
2591
|
+
return a.from - b.from || a.value.startSide - b.value.startSide;
|
|
2592
|
+
}
|
|
2593
|
+
class Chunk {
|
|
2594
|
+
constructor(from, to, value, maxPoint) {
|
|
2595
|
+
this.from = from;
|
|
2596
|
+
this.to = to;
|
|
2597
|
+
this.value = value;
|
|
2598
|
+
this.maxPoint = maxPoint;
|
|
2599
|
+
}
|
|
2600
|
+
get length() {
|
|
2601
|
+
return this.to[this.to.length - 1];
|
|
2602
|
+
}
|
|
2603
|
+
// Find the index of the given position and side. Use the ranges'
|
|
2604
|
+
// `from` pos when `end == false`, `to` when `end == true`.
|
|
2605
|
+
findIndex(pos, side, end, startAt = 0) {
|
|
2606
|
+
let arr = end ? this.to : this.from;
|
|
2607
|
+
for (let lo = startAt, hi = arr.length; ; ) {
|
|
2608
|
+
if (lo == hi)
|
|
2609
|
+
return lo;
|
|
2610
|
+
let mid = lo + hi >> 1;
|
|
2611
|
+
let diff = arr[mid] - pos || (end ? this.value[mid].endSide : this.value[mid].startSide) - side;
|
|
2612
|
+
if (mid == lo)
|
|
2613
|
+
return diff >= 0 ? lo : hi;
|
|
2614
|
+
if (diff >= 0)
|
|
2615
|
+
hi = mid;
|
|
2616
|
+
else
|
|
2617
|
+
lo = mid + 1;
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
between(offset, from, to, f) {
|
|
2621
|
+
for (let i = this.findIndex(from, -1e9, true), e = this.findIndex(to, 1e9, false, i); i < e; i++)
|
|
2622
|
+
if (f(this.from[i] + offset, this.to[i] + offset, this.value[i]) === false)
|
|
2623
|
+
return false;
|
|
2624
|
+
}
|
|
2625
|
+
map(offset, changes) {
|
|
2626
|
+
let value = [], from = [], to = [], newPos = -1, maxPoint = -1;
|
|
2627
|
+
for (let i = 0; i < this.value.length; i++) {
|
|
2628
|
+
let val = this.value[i], curFrom = this.from[i] + offset, curTo = this.to[i] + offset, newFrom, newTo;
|
|
2629
|
+
if (curFrom == curTo) {
|
|
2630
|
+
let mapped = changes.mapPos(curFrom, val.startSide, val.mapMode);
|
|
2631
|
+
if (mapped == null)
|
|
2632
|
+
continue;
|
|
2633
|
+
newFrom = newTo = mapped;
|
|
2634
|
+
if (val.startSide != val.endSide) {
|
|
2635
|
+
newTo = changes.mapPos(curFrom, val.endSide);
|
|
2636
|
+
if (newTo < newFrom)
|
|
2637
|
+
continue;
|
|
2638
|
+
}
|
|
2639
|
+
} else {
|
|
2640
|
+
newFrom = changes.mapPos(curFrom, val.startSide);
|
|
2641
|
+
newTo = changes.mapPos(curTo, val.endSide);
|
|
2642
|
+
if (newFrom > newTo || newFrom == newTo && val.startSide > 0 && val.endSide <= 0)
|
|
2643
|
+
continue;
|
|
2644
|
+
}
|
|
2645
|
+
if ((newTo - newFrom || val.endSide - val.startSide) < 0)
|
|
2646
|
+
continue;
|
|
2647
|
+
if (newPos < 0)
|
|
2648
|
+
newPos = newFrom;
|
|
2649
|
+
if (val.point)
|
|
2650
|
+
maxPoint = Math.max(maxPoint, newTo - newFrom);
|
|
2651
|
+
value.push(val);
|
|
2652
|
+
from.push(newFrom - newPos);
|
|
2653
|
+
to.push(newTo - newPos);
|
|
2654
|
+
}
|
|
2655
|
+
return { mapped: value.length ? new Chunk(from, to, value, maxPoint) : null, pos: newPos };
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
class RangeSet {
|
|
2659
|
+
constructor(chunkPos, chunk, nextLayer, maxPoint) {
|
|
2660
|
+
this.chunkPos = chunkPos;
|
|
2661
|
+
this.chunk = chunk;
|
|
2662
|
+
this.nextLayer = nextLayer;
|
|
2663
|
+
this.maxPoint = maxPoint;
|
|
2664
|
+
}
|
|
2665
|
+
/**
|
|
2666
|
+
@internal
|
|
2667
|
+
*/
|
|
2668
|
+
static create(chunkPos, chunk, nextLayer, maxPoint) {
|
|
2669
|
+
return new RangeSet(chunkPos, chunk, nextLayer, maxPoint);
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
@internal
|
|
2673
|
+
*/
|
|
2674
|
+
get length() {
|
|
2675
|
+
let last = this.chunk.length - 1;
|
|
2676
|
+
return last < 0 ? 0 : Math.max(this.chunkEnd(last), this.nextLayer.length);
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
The number of ranges in the set.
|
|
2680
|
+
*/
|
|
2681
|
+
get size() {
|
|
2682
|
+
if (this.isEmpty)
|
|
2683
|
+
return 0;
|
|
2684
|
+
let size = this.nextLayer.size;
|
|
2685
|
+
for (let chunk of this.chunk)
|
|
2686
|
+
size += chunk.value.length;
|
|
2687
|
+
return size;
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
@internal
|
|
2691
|
+
*/
|
|
2692
|
+
chunkEnd(index) {
|
|
2693
|
+
return this.chunkPos[index] + this.chunk[index].length;
|
|
2694
|
+
}
|
|
2695
|
+
/**
|
|
2696
|
+
Update the range set, optionally adding new ranges or filtering
|
|
2697
|
+
out existing ones.
|
|
2698
|
+
|
|
2699
|
+
(Note: The type parameter is just there as a kludge to work
|
|
2700
|
+
around TypeScript variance issues that prevented `RangeSet<X>`
|
|
2701
|
+
from being a subtype of `RangeSet<Y>` when `X` is a subtype of
|
|
2702
|
+
`Y`.)
|
|
2703
|
+
*/
|
|
2704
|
+
update(updateSpec) {
|
|
2705
|
+
let { add = [], sort = false, filterFrom = 0, filterTo = this.length } = updateSpec;
|
|
2706
|
+
let filter = updateSpec.filter;
|
|
2707
|
+
if (add.length == 0 && !filter)
|
|
2708
|
+
return this;
|
|
2709
|
+
if (sort)
|
|
2710
|
+
add = add.slice().sort(cmpRange);
|
|
2711
|
+
if (this.isEmpty)
|
|
2712
|
+
return add.length ? RangeSet.of(add) : this;
|
|
2713
|
+
let cur = new LayerCursor(this, null, -1).goto(0), i = 0, spill = [];
|
|
2714
|
+
let builder = new RangeSetBuilder();
|
|
2715
|
+
while (cur.value || i < add.length) {
|
|
2716
|
+
if (i < add.length && (cur.from - add[i].from || cur.startSide - add[i].value.startSide) >= 0) {
|
|
2717
|
+
let range = add[i++];
|
|
2718
|
+
if (!builder.addInner(range.from, range.to, range.value))
|
|
2719
|
+
spill.push(range);
|
|
2720
|
+
} else if (cur.rangeIndex == 1 && cur.chunkIndex < this.chunk.length && (i == add.length || this.chunkEnd(cur.chunkIndex) < add[i].from) && (!filter || filterFrom > this.chunkEnd(cur.chunkIndex) || filterTo < this.chunkPos[cur.chunkIndex]) && builder.addChunk(this.chunkPos[cur.chunkIndex], this.chunk[cur.chunkIndex])) {
|
|
2721
|
+
cur.nextChunk();
|
|
2722
|
+
} else {
|
|
2723
|
+
if (!filter || filterFrom > cur.to || filterTo < cur.from || filter(cur.from, cur.to, cur.value)) {
|
|
2724
|
+
if (!builder.addInner(cur.from, cur.to, cur.value))
|
|
2725
|
+
spill.push(Range.create(cur.from, cur.to, cur.value));
|
|
2726
|
+
}
|
|
2727
|
+
cur.next();
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
return builder.finishInner(this.nextLayer.isEmpty && !spill.length ? RangeSet.empty : this.nextLayer.update({ add: spill, filter, filterFrom, filterTo }));
|
|
2731
|
+
}
|
|
2732
|
+
/**
|
|
2733
|
+
Map this range set through a set of changes, return the new set.
|
|
2734
|
+
*/
|
|
2735
|
+
map(changes) {
|
|
2736
|
+
if (changes.empty || this.isEmpty)
|
|
2737
|
+
return this;
|
|
2738
|
+
let chunks = [], chunkPos = [], maxPoint = -1;
|
|
2739
|
+
for (let i = 0; i < this.chunk.length; i++) {
|
|
2740
|
+
let start = this.chunkPos[i], chunk = this.chunk[i];
|
|
2741
|
+
let touch = changes.touchesRange(start, start + chunk.length);
|
|
2742
|
+
if (touch === false) {
|
|
2743
|
+
maxPoint = Math.max(maxPoint, chunk.maxPoint);
|
|
2744
|
+
chunks.push(chunk);
|
|
2745
|
+
chunkPos.push(changes.mapPos(start));
|
|
2746
|
+
} else if (touch === true) {
|
|
2747
|
+
let { mapped, pos } = chunk.map(start, changes);
|
|
2748
|
+
if (mapped) {
|
|
2749
|
+
maxPoint = Math.max(maxPoint, mapped.maxPoint);
|
|
2750
|
+
chunks.push(mapped);
|
|
2751
|
+
chunkPos.push(pos);
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
let next = this.nextLayer.map(changes);
|
|
2756
|
+
return chunks.length == 0 ? next : new RangeSet(chunkPos, chunks, next || RangeSet.empty, maxPoint);
|
|
2757
|
+
}
|
|
2758
|
+
/**
|
|
2759
|
+
Iterate over the ranges that touch the region `from` to `to`,
|
|
2760
|
+
calling `f` for each. There is no guarantee that the ranges will
|
|
2761
|
+
be reported in any specific order. When the callback returns
|
|
2762
|
+
`false`, iteration stops.
|
|
2763
|
+
*/
|
|
2764
|
+
between(from, to, f) {
|
|
2765
|
+
if (this.isEmpty)
|
|
2766
|
+
return;
|
|
2767
|
+
for (let i = 0; i < this.chunk.length; i++) {
|
|
2768
|
+
let start = this.chunkPos[i], chunk = this.chunk[i];
|
|
2769
|
+
if (to >= start && from <= start + chunk.length && chunk.between(start, from - start, to - start, f) === false)
|
|
2770
|
+
return;
|
|
2771
|
+
}
|
|
2772
|
+
this.nextLayer.between(from, to, f);
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
Iterate over the ranges in this set, in order, including all
|
|
2776
|
+
ranges that end at or after `from`.
|
|
2777
|
+
*/
|
|
2778
|
+
iter(from = 0) {
|
|
2779
|
+
return HeapCursor.from([this]).goto(from);
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
@internal
|
|
2783
|
+
*/
|
|
2784
|
+
get isEmpty() {
|
|
2785
|
+
return this.nextLayer == this;
|
|
2786
|
+
}
|
|
2787
|
+
/**
|
|
2788
|
+
Iterate over the ranges in a collection of sets, in order,
|
|
2789
|
+
starting from `from`.
|
|
2790
|
+
*/
|
|
2791
|
+
static iter(sets, from = 0) {
|
|
2792
|
+
return HeapCursor.from(sets).goto(from);
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
Iterate over two groups of sets, calling methods on `comparator`
|
|
2796
|
+
to notify it of possible differences.
|
|
2797
|
+
*/
|
|
2798
|
+
static compare(oldSets, newSets, textDiff, comparator, minPointSize = -1) {
|
|
2799
|
+
let a = oldSets.filter((set) => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);
|
|
2800
|
+
let b = newSets.filter((set) => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);
|
|
2801
|
+
let sharedChunks = findSharedChunks(a, b, textDiff);
|
|
2802
|
+
let sideA = new SpanCursor(a, sharedChunks, minPointSize);
|
|
2803
|
+
let sideB = new SpanCursor(b, sharedChunks, minPointSize);
|
|
2804
|
+
textDiff.iterGaps((fromA, fromB, length) => compare(sideA, fromA, sideB, fromB, length, comparator));
|
|
2805
|
+
if (textDiff.empty && textDiff.length == 0)
|
|
2806
|
+
compare(sideA, 0, sideB, 0, 0, comparator);
|
|
2807
|
+
}
|
|
2808
|
+
/**
|
|
2809
|
+
Compare the contents of two groups of range sets, returning true
|
|
2810
|
+
if they are equivalent in the given range.
|
|
2811
|
+
*/
|
|
2812
|
+
static eq(oldSets, newSets, from = 0, to) {
|
|
2813
|
+
if (to == null)
|
|
2814
|
+
to = 1e9 - 1;
|
|
2815
|
+
let a = oldSets.filter((set) => !set.isEmpty && newSets.indexOf(set) < 0);
|
|
2816
|
+
let b = newSets.filter((set) => !set.isEmpty && oldSets.indexOf(set) < 0);
|
|
2817
|
+
if (a.length != b.length)
|
|
2818
|
+
return false;
|
|
2819
|
+
if (!a.length)
|
|
2820
|
+
return true;
|
|
2821
|
+
let sharedChunks = findSharedChunks(a, b);
|
|
2822
|
+
let sideA = new SpanCursor(a, sharedChunks, 0).goto(from), sideB = new SpanCursor(b, sharedChunks, 0).goto(from);
|
|
2823
|
+
for (; ; ) {
|
|
2824
|
+
if (sideA.to != sideB.to || !sameValues(sideA.active, sideB.active) || sideA.point && (!sideB.point || !cmpVal(sideA.point, sideB.point)))
|
|
2825
|
+
return false;
|
|
2826
|
+
if (sideA.to > to)
|
|
2827
|
+
return true;
|
|
2828
|
+
sideA.next();
|
|
2829
|
+
sideB.next();
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
/**
|
|
2833
|
+
Iterate over a group of range sets at the same time, notifying
|
|
2834
|
+
the iterator about the ranges covering every given piece of
|
|
2835
|
+
content. Returns the open count (see
|
|
2836
|
+
[`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end
|
|
2837
|
+
of the iteration.
|
|
2838
|
+
*/
|
|
2839
|
+
static spans(sets, from, to, iterator, minPointSize = -1) {
|
|
2840
|
+
let cursor = new SpanCursor(sets, null, minPointSize).goto(from), pos = from;
|
|
2841
|
+
let openRanges = cursor.openStart;
|
|
2842
|
+
for (; ; ) {
|
|
2843
|
+
let curTo = Math.min(cursor.to, to);
|
|
2844
|
+
if (cursor.point) {
|
|
2845
|
+
let active = cursor.activeForPoint(cursor.to);
|
|
2846
|
+
let openCount = cursor.pointFrom < from ? active.length + 1 : cursor.point.startSide < 0 ? active.length : Math.min(active.length, openRanges);
|
|
2847
|
+
iterator.point(pos, curTo, cursor.point, active, openCount, cursor.pointRank);
|
|
2848
|
+
openRanges = Math.min(cursor.openEnd(curTo), active.length);
|
|
2849
|
+
} else if (curTo > pos) {
|
|
2850
|
+
iterator.span(pos, curTo, cursor.active, openRanges);
|
|
2851
|
+
openRanges = cursor.openEnd(curTo);
|
|
2852
|
+
}
|
|
2853
|
+
if (cursor.to > to)
|
|
2854
|
+
return openRanges + (cursor.point && cursor.to > to ? 1 : 0);
|
|
2855
|
+
pos = cursor.to;
|
|
2856
|
+
cursor.next();
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
/**
|
|
2860
|
+
Create a range set for the given range or array of ranges. By
|
|
2861
|
+
default, this expects the ranges to be _sorted_ (by start
|
|
2862
|
+
position and, if two start at the same position,
|
|
2863
|
+
`value.startSide`). You can pass `true` as second argument to
|
|
2864
|
+
cause the method to sort them.
|
|
2865
|
+
*/
|
|
2866
|
+
static of(ranges, sort = false) {
|
|
2867
|
+
let build = new RangeSetBuilder();
|
|
2868
|
+
for (let range of ranges instanceof Range ? [ranges] : sort ? lazySort(ranges) : ranges)
|
|
2869
|
+
build.add(range.from, range.to, range.value);
|
|
2870
|
+
return build.finish();
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
Join an array of range sets into a single set.
|
|
2874
|
+
*/
|
|
2875
|
+
static join(sets) {
|
|
2876
|
+
if (!sets.length)
|
|
2877
|
+
return RangeSet.empty;
|
|
2878
|
+
let result = sets[sets.length - 1];
|
|
2879
|
+
for (let i = sets.length - 2; i >= 0; i--) {
|
|
2880
|
+
for (let layer = sets[i]; layer != RangeSet.empty; layer = layer.nextLayer)
|
|
2881
|
+
result = new RangeSet(layer.chunkPos, layer.chunk, result, Math.max(layer.maxPoint, result.maxPoint));
|
|
2882
|
+
}
|
|
2883
|
+
return result;
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
RangeSet.empty = /* @__PURE__ */ new RangeSet([], [], null, -1);
|
|
2887
|
+
function lazySort(ranges) {
|
|
2888
|
+
if (ranges.length > 1)
|
|
2889
|
+
for (let prev = ranges[0], i = 1; i < ranges.length; i++) {
|
|
2890
|
+
let cur = ranges[i];
|
|
2891
|
+
if (cmpRange(prev, cur) > 0)
|
|
2892
|
+
return ranges.slice().sort(cmpRange);
|
|
2893
|
+
prev = cur;
|
|
2894
|
+
}
|
|
2895
|
+
return ranges;
|
|
2896
|
+
}
|
|
2897
|
+
RangeSet.empty.nextLayer = RangeSet.empty;
|
|
2898
|
+
class RangeSetBuilder {
|
|
2899
|
+
finishChunk(newArrays) {
|
|
2900
|
+
this.chunks.push(new Chunk(this.from, this.to, this.value, this.maxPoint));
|
|
2901
|
+
this.chunkPos.push(this.chunkStart);
|
|
2902
|
+
this.chunkStart = -1;
|
|
2903
|
+
this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint);
|
|
2904
|
+
this.maxPoint = -1;
|
|
2905
|
+
if (newArrays) {
|
|
2906
|
+
this.from = [];
|
|
2907
|
+
this.to = [];
|
|
2908
|
+
this.value = [];
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
Create an empty builder.
|
|
2913
|
+
*/
|
|
2914
|
+
constructor() {
|
|
2915
|
+
this.chunks = [];
|
|
2916
|
+
this.chunkPos = [];
|
|
2917
|
+
this.chunkStart = -1;
|
|
2918
|
+
this.last = null;
|
|
2919
|
+
this.lastFrom = -1e9;
|
|
2920
|
+
this.lastTo = -1e9;
|
|
2921
|
+
this.from = [];
|
|
2922
|
+
this.to = [];
|
|
2923
|
+
this.value = [];
|
|
2924
|
+
this.maxPoint = -1;
|
|
2925
|
+
this.setMaxPoint = -1;
|
|
2926
|
+
this.nextLayer = null;
|
|
2927
|
+
}
|
|
2928
|
+
/**
|
|
2929
|
+
Add a range. Ranges should be added in sorted (by `from` and
|
|
2930
|
+
`value.startSide`) order.
|
|
2931
|
+
*/
|
|
2932
|
+
add(from, to, value) {
|
|
2933
|
+
if (!this.addInner(from, to, value))
|
|
2934
|
+
(this.nextLayer || (this.nextLayer = new RangeSetBuilder())).add(from, to, value);
|
|
2935
|
+
}
|
|
2936
|
+
/**
|
|
2937
|
+
@internal
|
|
2938
|
+
*/
|
|
2939
|
+
addInner(from, to, value) {
|
|
2940
|
+
let diff = from - this.lastTo || value.startSide - this.last.endSide;
|
|
2941
|
+
if (diff <= 0 && (from - this.lastFrom || value.startSide - this.last.startSide) < 0)
|
|
2942
|
+
throw new Error("Ranges must be added sorted by `from` position and `startSide`");
|
|
2943
|
+
if (diff < 0)
|
|
2944
|
+
return false;
|
|
2945
|
+
if (this.from.length == 250)
|
|
2946
|
+
this.finishChunk(true);
|
|
2947
|
+
if (this.chunkStart < 0)
|
|
2948
|
+
this.chunkStart = from;
|
|
2949
|
+
this.from.push(from - this.chunkStart);
|
|
2950
|
+
this.to.push(to - this.chunkStart);
|
|
2951
|
+
this.last = value;
|
|
2952
|
+
this.lastFrom = from;
|
|
2953
|
+
this.lastTo = to;
|
|
2954
|
+
this.value.push(value);
|
|
2955
|
+
if (value.point)
|
|
2956
|
+
this.maxPoint = Math.max(this.maxPoint, to - from);
|
|
2957
|
+
return true;
|
|
2958
|
+
}
|
|
2959
|
+
/**
|
|
2960
|
+
@internal
|
|
2961
|
+
*/
|
|
2962
|
+
addChunk(from, chunk) {
|
|
2963
|
+
if ((from - this.lastTo || chunk.value[0].startSide - this.last.endSide) < 0)
|
|
2964
|
+
return false;
|
|
2965
|
+
if (this.from.length)
|
|
2966
|
+
this.finishChunk(true);
|
|
2967
|
+
this.setMaxPoint = Math.max(this.setMaxPoint, chunk.maxPoint);
|
|
2968
|
+
this.chunks.push(chunk);
|
|
2969
|
+
this.chunkPos.push(from);
|
|
2970
|
+
let last = chunk.value.length - 1;
|
|
2971
|
+
this.last = chunk.value[last];
|
|
2972
|
+
this.lastFrom = chunk.from[last] + from;
|
|
2973
|
+
this.lastTo = chunk.to[last] + from;
|
|
2974
|
+
return true;
|
|
2975
|
+
}
|
|
2976
|
+
/**
|
|
2977
|
+
Finish the range set. Returns the new set. The builder can't be
|
|
2978
|
+
used anymore after this has been called.
|
|
2979
|
+
*/
|
|
2980
|
+
finish() {
|
|
2981
|
+
return this.finishInner(RangeSet.empty);
|
|
2982
|
+
}
|
|
2983
|
+
/**
|
|
2984
|
+
@internal
|
|
2985
|
+
*/
|
|
2986
|
+
finishInner(next) {
|
|
2987
|
+
if (this.from.length)
|
|
2988
|
+
this.finishChunk(false);
|
|
2989
|
+
if (this.chunks.length == 0)
|
|
2990
|
+
return next;
|
|
2991
|
+
let result = RangeSet.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(next) : next, this.setMaxPoint);
|
|
2992
|
+
this.from = null;
|
|
2993
|
+
return result;
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
function findSharedChunks(a, b, textDiff) {
|
|
2997
|
+
let inA = /* @__PURE__ */ new Map();
|
|
2998
|
+
for (let set of a)
|
|
2999
|
+
for (let i = 0; i < set.chunk.length; i++)
|
|
3000
|
+
if (set.chunk[i].maxPoint <= 0)
|
|
3001
|
+
inA.set(set.chunk[i], set.chunkPos[i]);
|
|
3002
|
+
let shared = /* @__PURE__ */ new Set();
|
|
3003
|
+
for (let set of b)
|
|
3004
|
+
for (let i = 0; i < set.chunk.length; i++) {
|
|
3005
|
+
let known = inA.get(set.chunk[i]);
|
|
3006
|
+
if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i] && !(textDiff === null || textDiff === void 0 ? void 0 : textDiff.touchesRange(known, known + set.chunk[i].length)))
|
|
3007
|
+
shared.add(set.chunk[i]);
|
|
3008
|
+
}
|
|
3009
|
+
return shared;
|
|
3010
|
+
}
|
|
3011
|
+
class LayerCursor {
|
|
3012
|
+
constructor(layer, skip, minPoint, rank = 0) {
|
|
3013
|
+
this.layer = layer;
|
|
3014
|
+
this.skip = skip;
|
|
3015
|
+
this.minPoint = minPoint;
|
|
3016
|
+
this.rank = rank;
|
|
3017
|
+
}
|
|
3018
|
+
get startSide() {
|
|
3019
|
+
return this.value ? this.value.startSide : 0;
|
|
3020
|
+
}
|
|
3021
|
+
get endSide() {
|
|
3022
|
+
return this.value ? this.value.endSide : 0;
|
|
3023
|
+
}
|
|
3024
|
+
goto(pos, side = -1e9) {
|
|
3025
|
+
this.chunkIndex = this.rangeIndex = 0;
|
|
3026
|
+
this.gotoInner(pos, side, false);
|
|
3027
|
+
return this;
|
|
3028
|
+
}
|
|
3029
|
+
gotoInner(pos, side, forward) {
|
|
3030
|
+
while (this.chunkIndex < this.layer.chunk.length) {
|
|
3031
|
+
let next = this.layer.chunk[this.chunkIndex];
|
|
3032
|
+
if (!(this.skip && this.skip.has(next) || this.layer.chunkEnd(this.chunkIndex) < pos || next.maxPoint < this.minPoint))
|
|
3033
|
+
break;
|
|
3034
|
+
this.chunkIndex++;
|
|
3035
|
+
forward = false;
|
|
3036
|
+
}
|
|
3037
|
+
if (this.chunkIndex < this.layer.chunk.length) {
|
|
3038
|
+
let rangeIndex = this.layer.chunk[this.chunkIndex].findIndex(pos - this.layer.chunkPos[this.chunkIndex], side, true);
|
|
3039
|
+
if (!forward || this.rangeIndex < rangeIndex)
|
|
3040
|
+
this.setRangeIndex(rangeIndex);
|
|
3041
|
+
}
|
|
3042
|
+
this.next();
|
|
3043
|
+
}
|
|
3044
|
+
forward(pos, side) {
|
|
3045
|
+
if ((this.to - pos || this.endSide - side) < 0)
|
|
3046
|
+
this.gotoInner(pos, side, true);
|
|
3047
|
+
}
|
|
3048
|
+
next() {
|
|
3049
|
+
for (; ; ) {
|
|
3050
|
+
if (this.chunkIndex == this.layer.chunk.length) {
|
|
3051
|
+
this.from = this.to = 1e9;
|
|
3052
|
+
this.value = null;
|
|
3053
|
+
break;
|
|
3054
|
+
} else {
|
|
3055
|
+
let chunkPos = this.layer.chunkPos[this.chunkIndex], chunk = this.layer.chunk[this.chunkIndex];
|
|
3056
|
+
let from = chunkPos + chunk.from[this.rangeIndex];
|
|
3057
|
+
this.from = from;
|
|
3058
|
+
this.to = chunkPos + chunk.to[this.rangeIndex];
|
|
3059
|
+
this.value = chunk.value[this.rangeIndex];
|
|
3060
|
+
this.setRangeIndex(this.rangeIndex + 1);
|
|
3061
|
+
if (this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint)
|
|
3062
|
+
break;
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
setRangeIndex(index) {
|
|
3067
|
+
if (index == this.layer.chunk[this.chunkIndex].value.length) {
|
|
3068
|
+
this.chunkIndex++;
|
|
3069
|
+
if (this.skip) {
|
|
3070
|
+
while (this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]))
|
|
3071
|
+
this.chunkIndex++;
|
|
3072
|
+
}
|
|
3073
|
+
this.rangeIndex = 0;
|
|
3074
|
+
} else {
|
|
3075
|
+
this.rangeIndex = index;
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
nextChunk() {
|
|
3079
|
+
this.chunkIndex++;
|
|
3080
|
+
this.rangeIndex = 0;
|
|
3081
|
+
this.next();
|
|
3082
|
+
}
|
|
3083
|
+
compare(other) {
|
|
3084
|
+
return this.from - other.from || this.startSide - other.startSide || this.rank - other.rank || this.to - other.to || this.endSide - other.endSide;
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
class HeapCursor {
|
|
3088
|
+
constructor(heap) {
|
|
3089
|
+
this.heap = heap;
|
|
3090
|
+
}
|
|
3091
|
+
static from(sets, skip = null, minPoint = -1) {
|
|
3092
|
+
let heap = [];
|
|
3093
|
+
for (let i = 0; i < sets.length; i++) {
|
|
3094
|
+
for (let cur = sets[i]; !cur.isEmpty; cur = cur.nextLayer) {
|
|
3095
|
+
if (cur.maxPoint >= minPoint)
|
|
3096
|
+
heap.push(new LayerCursor(cur, skip, minPoint, i));
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
return heap.length == 1 ? heap[0] : new HeapCursor(heap);
|
|
3100
|
+
}
|
|
3101
|
+
get startSide() {
|
|
3102
|
+
return this.value ? this.value.startSide : 0;
|
|
3103
|
+
}
|
|
3104
|
+
goto(pos, side = -1e9) {
|
|
3105
|
+
for (let cur of this.heap)
|
|
3106
|
+
cur.goto(pos, side);
|
|
3107
|
+
for (let i = this.heap.length >> 1; i >= 0; i--)
|
|
3108
|
+
heapBubble(this.heap, i);
|
|
3109
|
+
this.next();
|
|
3110
|
+
return this;
|
|
3111
|
+
}
|
|
3112
|
+
forward(pos, side) {
|
|
3113
|
+
for (let cur of this.heap)
|
|
3114
|
+
cur.forward(pos, side);
|
|
3115
|
+
for (let i = this.heap.length >> 1; i >= 0; i--)
|
|
3116
|
+
heapBubble(this.heap, i);
|
|
3117
|
+
if ((this.to - pos || this.value.endSide - side) < 0)
|
|
3118
|
+
this.next();
|
|
3119
|
+
}
|
|
3120
|
+
next() {
|
|
3121
|
+
if (this.heap.length == 0) {
|
|
3122
|
+
this.from = this.to = 1e9;
|
|
3123
|
+
this.value = null;
|
|
3124
|
+
this.rank = -1;
|
|
3125
|
+
} else {
|
|
3126
|
+
let top = this.heap[0];
|
|
3127
|
+
this.from = top.from;
|
|
3128
|
+
this.to = top.to;
|
|
3129
|
+
this.value = top.value;
|
|
3130
|
+
this.rank = top.rank;
|
|
3131
|
+
if (top.value)
|
|
3132
|
+
top.next();
|
|
3133
|
+
heapBubble(this.heap, 0);
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
function heapBubble(heap, index) {
|
|
3138
|
+
for (let cur = heap[index]; ; ) {
|
|
3139
|
+
let childIndex = (index << 1) + 1;
|
|
3140
|
+
if (childIndex >= heap.length)
|
|
3141
|
+
break;
|
|
3142
|
+
let child = heap[childIndex];
|
|
3143
|
+
if (childIndex + 1 < heap.length && child.compare(heap[childIndex + 1]) >= 0) {
|
|
3144
|
+
child = heap[childIndex + 1];
|
|
3145
|
+
childIndex++;
|
|
3146
|
+
}
|
|
3147
|
+
if (cur.compare(child) < 0)
|
|
3148
|
+
break;
|
|
3149
|
+
heap[childIndex] = cur;
|
|
3150
|
+
heap[index] = child;
|
|
3151
|
+
index = childIndex;
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
class SpanCursor {
|
|
3155
|
+
constructor(sets, skip, minPoint) {
|
|
3156
|
+
this.minPoint = minPoint;
|
|
3157
|
+
this.active = [];
|
|
3158
|
+
this.activeTo = [];
|
|
3159
|
+
this.activeRank = [];
|
|
3160
|
+
this.minActive = -1;
|
|
3161
|
+
this.point = null;
|
|
3162
|
+
this.pointFrom = 0;
|
|
3163
|
+
this.pointRank = 0;
|
|
3164
|
+
this.to = -1e9;
|
|
3165
|
+
this.endSide = 0;
|
|
3166
|
+
this.openStart = -1;
|
|
3167
|
+
this.cursor = HeapCursor.from(sets, skip, minPoint);
|
|
3168
|
+
}
|
|
3169
|
+
goto(pos, side = -1e9) {
|
|
3170
|
+
this.cursor.goto(pos, side);
|
|
3171
|
+
this.active.length = this.activeTo.length = this.activeRank.length = 0;
|
|
3172
|
+
this.minActive = -1;
|
|
3173
|
+
this.to = pos;
|
|
3174
|
+
this.endSide = side;
|
|
3175
|
+
this.openStart = -1;
|
|
3176
|
+
this.next();
|
|
3177
|
+
return this;
|
|
3178
|
+
}
|
|
3179
|
+
forward(pos, side) {
|
|
3180
|
+
while (this.minActive > -1 && (this.activeTo[this.minActive] - pos || this.active[this.minActive].endSide - side) < 0)
|
|
3181
|
+
this.removeActive(this.minActive);
|
|
3182
|
+
this.cursor.forward(pos, side);
|
|
3183
|
+
}
|
|
3184
|
+
removeActive(index) {
|
|
3185
|
+
remove(this.active, index);
|
|
3186
|
+
remove(this.activeTo, index);
|
|
3187
|
+
remove(this.activeRank, index);
|
|
3188
|
+
this.minActive = findMinIndex(this.active, this.activeTo);
|
|
3189
|
+
}
|
|
3190
|
+
addActive(trackOpen) {
|
|
3191
|
+
let i = 0, { value, to, rank } = this.cursor;
|
|
3192
|
+
while (i < this.activeRank.length && (rank - this.activeRank[i] || to - this.activeTo[i]) > 0)
|
|
3193
|
+
i++;
|
|
3194
|
+
insert(this.active, i, value);
|
|
3195
|
+
insert(this.activeTo, i, to);
|
|
3196
|
+
insert(this.activeRank, i, rank);
|
|
3197
|
+
if (trackOpen)
|
|
3198
|
+
insert(trackOpen, i, this.cursor.from);
|
|
3199
|
+
this.minActive = findMinIndex(this.active, this.activeTo);
|
|
3200
|
+
}
|
|
3201
|
+
// After calling this, if `this.point` != null, the next range is a
|
|
3202
|
+
// point. Otherwise, it's a regular range, covered by `this.active`.
|
|
3203
|
+
next() {
|
|
3204
|
+
let from = this.to, wasPoint = this.point;
|
|
3205
|
+
this.point = null;
|
|
3206
|
+
let trackOpen = this.openStart < 0 ? [] : null;
|
|
3207
|
+
for (; ; ) {
|
|
3208
|
+
let a = this.minActive;
|
|
3209
|
+
if (a > -1 && (this.activeTo[a] - this.cursor.from || this.active[a].endSide - this.cursor.startSide) < 0) {
|
|
3210
|
+
if (this.activeTo[a] > from) {
|
|
3211
|
+
this.to = this.activeTo[a];
|
|
3212
|
+
this.endSide = this.active[a].endSide;
|
|
3213
|
+
break;
|
|
3214
|
+
}
|
|
3215
|
+
this.removeActive(a);
|
|
3216
|
+
if (trackOpen)
|
|
3217
|
+
remove(trackOpen, a);
|
|
3218
|
+
} else if (!this.cursor.value) {
|
|
3219
|
+
this.to = this.endSide = 1e9;
|
|
3220
|
+
break;
|
|
3221
|
+
} else if (this.cursor.from > from) {
|
|
3222
|
+
this.to = this.cursor.from;
|
|
3223
|
+
this.endSide = this.cursor.startSide;
|
|
3224
|
+
break;
|
|
3225
|
+
} else {
|
|
3226
|
+
let nextVal = this.cursor.value;
|
|
3227
|
+
if (!nextVal.point) {
|
|
3228
|
+
this.addActive(trackOpen);
|
|
3229
|
+
this.cursor.next();
|
|
3230
|
+
} else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to) {
|
|
3231
|
+
this.cursor.next();
|
|
3232
|
+
} else {
|
|
3233
|
+
this.point = nextVal;
|
|
3234
|
+
this.pointFrom = this.cursor.from;
|
|
3235
|
+
this.pointRank = this.cursor.rank;
|
|
3236
|
+
this.to = this.cursor.to;
|
|
3237
|
+
this.endSide = nextVal.endSide;
|
|
3238
|
+
this.cursor.next();
|
|
3239
|
+
this.forward(this.to, this.endSide);
|
|
3240
|
+
break;
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
}
|
|
3244
|
+
if (trackOpen) {
|
|
3245
|
+
this.openStart = 0;
|
|
3246
|
+
for (let i = trackOpen.length - 1; i >= 0 && trackOpen[i] < from; i--)
|
|
3247
|
+
this.openStart++;
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
activeForPoint(to) {
|
|
3251
|
+
if (!this.active.length)
|
|
3252
|
+
return this.active;
|
|
3253
|
+
let active = [];
|
|
3254
|
+
for (let i = this.active.length - 1; i >= 0; i--) {
|
|
3255
|
+
if (this.activeRank[i] < this.pointRank)
|
|
3256
|
+
break;
|
|
3257
|
+
if (this.activeTo[i] > to || this.activeTo[i] == to && this.active[i].endSide >= this.point.endSide)
|
|
3258
|
+
active.push(this.active[i]);
|
|
3259
|
+
}
|
|
3260
|
+
return active.reverse();
|
|
3261
|
+
}
|
|
3262
|
+
openEnd(to) {
|
|
3263
|
+
let open = 0;
|
|
3264
|
+
for (let i = this.activeTo.length - 1; i >= 0 && this.activeTo[i] > to; i--)
|
|
3265
|
+
open++;
|
|
3266
|
+
return open;
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
function compare(a, startA, b, startB, length, comparator) {
|
|
3270
|
+
a.goto(startA);
|
|
3271
|
+
b.goto(startB);
|
|
3272
|
+
let endB = startB + length;
|
|
3273
|
+
let pos = startB, dPos = startB - startA;
|
|
3274
|
+
let bounds = !!comparator.boundChange;
|
|
3275
|
+
for (let boundChange = false; ; ) {
|
|
3276
|
+
let dEnd = a.to + dPos - b.to, diff = dEnd || a.endSide - b.endSide;
|
|
3277
|
+
let end = diff < 0 ? a.to + dPos : b.to, clipEnd = Math.min(end, endB);
|
|
3278
|
+
let point = a.point || b.point;
|
|
3279
|
+
if (point) {
|
|
3280
|
+
if (!(a.point && b.point && cmpVal(a.point, b.point) && sameValues(a.activeForPoint(a.to), b.activeForPoint(b.to))))
|
|
3281
|
+
comparator.comparePoint(pos, clipEnd, a.point, b.point);
|
|
3282
|
+
boundChange = false;
|
|
3283
|
+
} else {
|
|
3284
|
+
if (boundChange)
|
|
3285
|
+
comparator.boundChange(pos);
|
|
3286
|
+
if (clipEnd > pos && !sameValues(a.active, b.active))
|
|
3287
|
+
comparator.compareRange(pos, clipEnd, a.active, b.active);
|
|
3288
|
+
if (bounds && clipEnd < endB && (dEnd || a.openEnd(end) != b.openEnd(end)))
|
|
3289
|
+
boundChange = true;
|
|
3290
|
+
}
|
|
3291
|
+
if (end > endB)
|
|
3292
|
+
break;
|
|
3293
|
+
pos = end;
|
|
3294
|
+
if (diff <= 0)
|
|
3295
|
+
a.next();
|
|
3296
|
+
if (diff >= 0)
|
|
3297
|
+
b.next();
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
function sameValues(a, b) {
|
|
3301
|
+
if (a.length != b.length)
|
|
3302
|
+
return false;
|
|
3303
|
+
for (let i = 0; i < a.length; i++)
|
|
3304
|
+
if (a[i] != b[i] && !cmpVal(a[i], b[i]))
|
|
3305
|
+
return false;
|
|
3306
|
+
return true;
|
|
3307
|
+
}
|
|
3308
|
+
function remove(array, index) {
|
|
3309
|
+
for (let i = index, e = array.length - 1; i < e; i++)
|
|
3310
|
+
array[i] = array[i + 1];
|
|
3311
|
+
array.pop();
|
|
3312
|
+
}
|
|
3313
|
+
function insert(array, index, value) {
|
|
3314
|
+
for (let i = array.length - 1; i >= index; i--)
|
|
3315
|
+
array[i + 1] = array[i];
|
|
3316
|
+
array[index] = value;
|
|
3317
|
+
}
|
|
3318
|
+
function findMinIndex(value, array) {
|
|
3319
|
+
let found = -1, foundPos = 1e9;
|
|
3320
|
+
for (let i = 0; i < array.length; i++)
|
|
3321
|
+
if ((array[i] - foundPos || value[i].endSide - value[found].endSide) < 0) {
|
|
3322
|
+
found = i;
|
|
3323
|
+
foundPos = array[i];
|
|
3324
|
+
}
|
|
3325
|
+
return found;
|
|
3326
|
+
}
|
|
3327
|
+
function countColumn(string, tabSize, to = string.length) {
|
|
3328
|
+
let n = 0;
|
|
3329
|
+
for (let i = 0; i < to && i < string.length; ) {
|
|
3330
|
+
if (string.charCodeAt(i) == 9) {
|
|
3331
|
+
n += tabSize - n % tabSize;
|
|
3332
|
+
i++;
|
|
3333
|
+
} else {
|
|
3334
|
+
n++;
|
|
3335
|
+
i = findClusterBreak(string, i);
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
return n;
|
|
3339
|
+
}
|
|
3340
|
+
function findColumn(string, col, tabSize, strict) {
|
|
3341
|
+
for (let i = 0, n = 0; ; ) {
|
|
3342
|
+
if (n >= col)
|
|
3343
|
+
return i;
|
|
3344
|
+
if (i == string.length)
|
|
3345
|
+
break;
|
|
3346
|
+
n += string.charCodeAt(i) == 9 ? tabSize - n % tabSize : 1;
|
|
3347
|
+
i = findClusterBreak(string, i);
|
|
3348
|
+
}
|
|
3349
|
+
return string.length;
|
|
3350
|
+
}
|
|
3351
|
+
export {
|
|
3352
|
+
Annotation,
|
|
3353
|
+
AnnotationType,
|
|
3354
|
+
ChangeDesc,
|
|
3355
|
+
ChangeSet,
|
|
3356
|
+
CharCategory,
|
|
3357
|
+
Compartment,
|
|
3358
|
+
EditorSelection,
|
|
3359
|
+
EditorState,
|
|
3360
|
+
Facet,
|
|
3361
|
+
Line,
|
|
3362
|
+
MapMode,
|
|
3363
|
+
Prec,
|
|
3364
|
+
Range,
|
|
3365
|
+
RangeSet,
|
|
3366
|
+
RangeSetBuilder,
|
|
3367
|
+
RangeValue,
|
|
3368
|
+
SelectionRange,
|
|
3369
|
+
StateEffect,
|
|
3370
|
+
StateEffectType,
|
|
3371
|
+
StateField,
|
|
3372
|
+
Text,
|
|
3373
|
+
Transaction,
|
|
3374
|
+
codePointAt,
|
|
3375
|
+
codePointSize,
|
|
3376
|
+
combineConfig,
|
|
3377
|
+
countColumn,
|
|
3378
|
+
findClusterBreak,
|
|
3379
|
+
findColumn,
|
|
3380
|
+
fromCodePoint
|
|
3381
|
+
};
|
|
3382
|
+
//# sourceMappingURL=index.mjs.map
|