@dou-ui/editor 0.1.0-alpha.12 → 0.1.0-alpha.14
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/collaboration/cursors.js +42 -10
- package/dist/collaboration/cursors.js.map +1 -1
- package/dist/collaboration/index.js +30 -3
- package/dist/collaboration/index.js.map +1 -1
- package/dist/components/block-handle.js.map +1 -1
- package/dist/components/block-handle.vue_vue_type_script_setup_true_lang.js +73 -15
- package/dist/components/block-handle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/slash-choices.js +6 -0
- package/dist/components/slash-choices.js.map +1 -0
- package/dist/components/slash-choices.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/slash-choices.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/slash-menu.js.map +1 -1
- package/dist/components/slash-menu.vue_vue_type_script_setup_true_lang.js +185 -20
- package/dist/components/slash-menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/core/block-selection.js +32 -4
- package/dist/core/block-selection.js.map +1 -1
- package/dist/core/blocks.js +21 -3
- package/dist/core/blocks.js.map +1 -1
- package/dist/core/commands.js +125 -13
- package/dist/core/commands.js.map +1 -1
- package/dist/core/extension.js +6 -2
- package/dist/core/extension.js.map +1 -1
- package/dist/core/model.js +8 -2
- package/dist/core/model.js.map +1 -1
- package/dist/core/schema.js.map +1 -1
- package/dist/core/transaction.js +12 -3
- package/dist/core/transaction.js.map +1 -1
- package/dist/document.js +40 -4
- package/dist/document.js.map +1 -1
- package/dist/dom.js +96 -13
- package/dist/dom.js.map +1 -1
- package/dist/editor.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/editor.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/editor2.js.map +1 -1
- package/dist/extensions/columns/column-picker.js +6 -0
- package/dist/extensions/columns/column-picker.js.map +1 -0
- package/dist/extensions/columns/column-picker.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/extensions/columns/column-picker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/extensions/columns/columns-controls.js +6 -0
- package/dist/extensions/columns/columns-controls.js.map +1 -0
- package/dist/extensions/columns/columns-controls.vue_vue_type_script_setup_true_lang.js +341 -0
- package/dist/extensions/columns/columns-controls.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/extensions/columns/html.js +34 -0
- package/dist/extensions/columns/html.js.map +1 -0
- package/dist/extensions/columns/index.js +57 -0
- package/dist/extensions/columns/index.js.map +1 -0
- package/dist/extensions/columns/keys.js +53 -0
- package/dist/extensions/columns/keys.js.map +1 -0
- package/dist/extensions/columns/plugin.js +213 -0
- package/dist/extensions/columns/plugin.js.map +1 -0
- package/dist/extensions/columns/schema.js +58 -0
- package/dist/extensions/columns/schema.js.map +1 -0
- package/dist/extensions/columns/select-columns.js +6 -0
- package/dist/extensions/columns/select-columns.js.map +1 -0
- package/dist/extensions/columns/select-columns.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/extensions/columns/select-columns.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/extensions/editor-kit.js +3 -1
- package/dist/extensions/editor-kit.js.map +1 -1
- package/dist/extensions/table/plugin.js +33 -1
- package/dist/extensions/table/plugin.js.map +1 -1
- package/dist/extensions/table/table-controls.js.map +1 -1
- package/dist/extensions/table/table-controls.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/extensions/table/table-controls.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/extensions/table/view.js +25 -1
- package/dist/extensions/table/view.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/locale.js +30 -0
- package/dist/locale.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/collaboration/cursors.d.ts +29 -1
- package/dist/types/collaboration/index.d.ts +17 -2
- package/dist/types/components/slash-choices.vue.d.ts +18 -0
- package/dist/types/core/blocks.d.ts +10 -0
- package/dist/types/core/commands.d.ts +17 -2
- package/dist/types/core/extension.d.ts +53 -2
- package/dist/types/core/model.d.ts +6 -1
- package/dist/types/core/schema.d.ts +1 -1
- package/dist/types/document.d.ts +4 -2
- package/dist/types/dom.d.ts +34 -4
- package/dist/types/editor.vue.d.ts +10 -0
- package/dist/types/extensions/columns/column-picker.vue.d.ts +10 -0
- package/dist/types/extensions/columns/columns-controls.vue.d.ts +3 -0
- package/dist/types/extensions/columns/html.d.ts +10 -0
- package/dist/types/extensions/columns/index.d.ts +9 -0
- package/dist/types/extensions/columns/keys.d.ts +6 -0
- package/dist/types/extensions/columns/plugin.d.ts +28 -0
- package/dist/types/extensions/columns/schema.d.ts +17 -0
- package/dist/types/extensions/columns/select-columns.vue.d.ts +13 -0
- package/dist/types/extensions/editor-kit.d.ts +4 -1
- package/dist/types/extensions/table/view.d.ts +8 -1
- package/dist/types/index.d.ts +12 -2
- package/dist/types/locale.d.ts +17 -0
- package/package.json +5 -5
package/dist/locale.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.js","names":[],"sources":["../src/locale.ts"],"sourcesContent":["import { useLocale } from 'dou-ui'\nimport { computed, toValue, type MaybeRefOrGetter } from 'vue'\n\nexport interface EditorMessages {\n placeholder: string\n emptyPlaceholder: string\n headingPlaceholder: string\n /** Names of the block types, also shown in menus. */\n types: {\n paragraph: string\n heading1: string\n heading2: string\n heading3: string\n bulletItem: string\n numberedItem: string\n checkItem: string\n quote: string\n codeBlock: string\n divider: string\n image: string\n toggle: string\n callout: string\n table: string\n attachment: string\n embed: string\n }\n /** Short descriptions in the slash menu. */\n hints: {\n paragraph: string\n heading1: string\n heading2: string\n heading3: string\n bulletItem: string\n numberedItem: string\n checkItem: string\n quote: string\n codeBlock: string\n divider: string\n image: string\n toggle: string\n callout: string\n table: string\n attachment: string\n embed: string\n }\n /** The image block. */\n image: {\n empty: string\n upload: string\n embed: string\n urlPlaceholder: string\n apply: string\n uploading: string\n failed: string\n caption: string\n resize: string\n }\n /** The code block. */\n codeBlock: {\n /** The language picker's name. */\n language: string\n plainText: string\n }\n toggle: { expand: string; collapse: string }\n callout: {\n /** Said after the tone on the icon button. */\n change: string\n tones: { info: string; tip: string; warning: string; danger: string }\n }\n mention: { label: string; searching: string; noResults: string }\n /** The table: its row and column menus. */\n table: {\n row: string\n column: string\n insertAbove: string\n insertBelow: string\n insertLeft: string\n insertRight: string\n moveUp: string\n moveDown: string\n moveLeft: string\n moveRight: string\n deleteRow: string\n deleteColumn: string\n merge: string\n split: string\n clear: string\n headerRow: string\n headerColumn: string\n alignLeft: string\n alignCenter: string\n alignRight: string\n addRow: string\n addColumn: string\n }\n /** The color menu of the formatting toolbar. */\n colors: {\n label: string\n text: string\n background: string\n none: string\n names: {\n gray: string\n red: string\n orange: string\n yellow: string\n green: string\n blue: string\n purple: string\n pink: string\n }\n }\n /** Aligning paragraphs, headings and quotes. */\n align: { label: string; left: string; center: string; right: string }\n /** The attachment block. */\n attachment: {\n empty: string\n upload: string\n uploading: string\n failed: string\n retry: string\n download: string\n }\n /** The embed block. */\n embed: {\n empty: string\n urlPlaceholder: string\n apply: string\n invalid: string\n /** The link is not https. */\n insecure: string\n caption: string\n edit: string\n cancel: string\n }\n noResults: string\n addBlock: string\n dragHandle: string\n turnInto: string\n duplicate: string\n delete: string\n moveUp: string\n moveDown: string\n bold: string\n italic: string\n underline: string\n strike: string\n code: string\n link: string\n linkPlaceholder: string\n applyLink: string\n removeLink: string\n /** Starts a comment thread on the selected text. */\n comment: string\n /** The name of the card that shows a thread. */\n commentThread: string\n /** Shown for a removed block that has no text, such as a divider, when comparing versions. */\n removedBlock: string\n /** Read out once a version is restored. */\n restored: string\n /** Read out, before the text, when going to a change while comparing. */\n changeAdded: string\n changeRemoved: string\n changeChanged: string\n formatting: string\n /** The name of the slash menu's list. */\n blockTypes: string\n}\n\nconst zhCN: EditorMessages = {\n placeholder: '输入 / 插入内容',\n emptyPlaceholder: '开始写点什么,或输入 / 插入内容',\n headingPlaceholder: '标题',\n types: {\n paragraph: '正文',\n heading1: '一级标题',\n heading2: '二级标题',\n heading3: '三级标题',\n bulletItem: '无序列表',\n numberedItem: '有序列表',\n checkItem: '待办事项',\n quote: '引用',\n codeBlock: '代码',\n divider: '分隔线',\n image: '图片',\n toggle: '折叠块',\n callout: '提示块',\n table: '表格',\n attachment: '附件',\n embed: '嵌入',\n },\n hints: {\n paragraph: '普通的文字',\n heading1: '最大的标题',\n heading2: '中等的标题',\n heading3: '较小的标题',\n bulletItem: '用圆点列出几项',\n numberedItem: '按顺序编号',\n checkItem: '可以勾选的事项',\n quote: '引用一段话',\n codeBlock: '等宽显示代码',\n divider: '分隔上下内容',\n image: '上传或嵌入一张图片',\n toggle: '可以展开和收起的内容',\n callout: '带图标的醒目说明',\n table: '插入一个表格',\n attachment: '上传一个文件',\n embed: '视频、音频或网页',\n },\n image: {\n empty: '添加一张图片',\n upload: '上传',\n embed: '嵌入链接',\n urlPlaceholder: '粘贴图片链接',\n apply: '确定',\n uploading: '正在上传',\n failed: '上传失败,请重试',\n caption: '添加说明',\n resize: '拖动调整宽度',\n },\n codeBlock: { language: '语言', plainText: '纯文本' },\n toggle: { expand: '展开', collapse: '收起' },\n mention: { label: '提及', searching: '正在搜索', noResults: '没有找到' },\n table: {\n row: '选择这一行',\n column: '选择这一列',\n insertAbove: '在上方插入行',\n insertBelow: '在下方插入行',\n insertLeft: '在左侧插入列',\n insertRight: '在右侧插入列',\n moveUp: '上移',\n moveDown: '下移',\n moveLeft: '左移',\n moveRight: '右移',\n deleteRow: '删除行',\n deleteColumn: '删除列',\n merge: '合并单元格',\n split: '取消合并',\n clear: '清空内容',\n headerRow: '标题行',\n headerColumn: '标题列',\n alignLeft: '左对齐',\n alignCenter: '居中',\n alignRight: '右对齐',\n addRow: '添加一行',\n addColumn: '添加一列',\n },\n callout: {\n change: '点击更换',\n tones: { info: '说明', tip: '提示', warning: '注意', danger: '警告' },\n },\n colors: {\n label: '颜色',\n text: '文字颜色',\n background: '背景色',\n none: '默认',\n names: {\n gray: '灰色',\n red: '红色',\n orange: '橙色',\n yellow: '黄色',\n green: '绿色',\n blue: '蓝色',\n purple: '紫色',\n pink: '粉色',\n },\n },\n align: { label: '对齐', left: '左对齐', center: '居中', right: '右对齐' },\n attachment: {\n empty: '添加附件',\n upload: '选择文件',\n uploading: '正在上传…',\n failed: '上传失败',\n retry: '重试',\n download: '下载',\n },\n embed: {\n empty: '嵌入视频、音频或网页',\n urlPlaceholder: '粘贴链接',\n apply: '嵌入',\n invalid: '无法嵌入这个链接',\n insecure: '只能嵌入 https 开头的链接',\n edit: '修改链接',\n cancel: '取消',\n caption: '添加说明',\n },\n noResults: '没有匹配的块',\n addBlock: '在下方添加块',\n dragHandle: '拖动以移动,点击打开菜单',\n turnInto: '转换为',\n duplicate: '复制',\n delete: '删除',\n moveUp: '上移',\n moveDown: '下移',\n bold: '粗体',\n italic: '斜体',\n underline: '下划线',\n strike: '删除线',\n code: '行内代码',\n link: '链接',\n linkPlaceholder: '粘贴或输入链接',\n applyLink: '确定',\n removeLink: '移除链接',\n comment: '评论',\n commentThread: '评论',\n removedBlock: '已删除的内容',\n restored: '已恢复到这个版本',\n changeAdded: '新增',\n changeRemoved: '删除',\n changeChanged: '修改',\n formatting: '文字格式',\n blockTypes: '块类型',\n}\n\nconst zhTW: EditorMessages = {\n placeholder: '輸入 / 插入內容',\n emptyPlaceholder: '開始寫點什麼,或輸入 / 插入內容',\n headingPlaceholder: '標題',\n types: {\n paragraph: '內文',\n heading1: '一級標題',\n heading2: '二級標題',\n heading3: '三級標題',\n bulletItem: '項目清單',\n numberedItem: '編號清單',\n checkItem: '待辦事項',\n quote: '引用',\n codeBlock: '程式碼',\n divider: '分隔線',\n image: '圖片',\n toggle: '摺疊區塊',\n callout: '提示區塊',\n table: '表格',\n attachment: '附件',\n embed: '嵌入',\n },\n hints: {\n paragraph: '一般的文字',\n heading1: '最大的標題',\n heading2: '中等的標題',\n heading3: '較小的標題',\n bulletItem: '用圓點列出幾項',\n numberedItem: '依序編號',\n checkItem: '可以勾選的事項',\n quote: '引用一段話',\n codeBlock: '等寬顯示程式碼',\n divider: '分隔上下內容',\n image: '上傳或嵌入一張圖片',\n toggle: '可以展開和收合的內容',\n callout: '帶圖示的醒目說明',\n table: '插入一個表格',\n attachment: '上傳一個檔案',\n embed: '影片、音訊或網頁',\n },\n image: {\n empty: '新增一張圖片',\n upload: '上傳',\n embed: '嵌入連結',\n urlPlaceholder: '貼上圖片連結',\n apply: '確定',\n uploading: '正在上傳',\n failed: '上傳失敗,請重試',\n caption: '新增說明',\n resize: '拖曳調整寬度',\n },\n codeBlock: { language: '語言', plainText: '純文字' },\n toggle: { expand: '展開', collapse: '收合' },\n mention: { label: '提及', searching: '正在搜尋', noResults: '沒有找到' },\n table: {\n row: '選擇這一列',\n column: '選擇這一欄',\n insertAbove: '在上方插入列',\n insertBelow: '在下方插入列',\n insertLeft: '在左側插入欄',\n insertRight: '在右側插入欄',\n moveUp: '上移',\n moveDown: '下移',\n moveLeft: '左移',\n moveRight: '右移',\n deleteRow: '刪除列',\n deleteColumn: '刪除欄',\n merge: '合併儲存格',\n split: '取消合併',\n clear: '清除內容',\n headerRow: '標題列',\n headerColumn: '標題欄',\n alignLeft: '靠左對齊',\n alignCenter: '置中',\n alignRight: '靠右對齊',\n addRow: '新增一列',\n addColumn: '新增一欄',\n },\n callout: {\n change: '點擊更換',\n tones: { info: '說明', tip: '提示', warning: '注意', danger: '警告' },\n },\n colors: {\n label: '顏色',\n text: '文字顏色',\n background: '背景色',\n none: '預設',\n names: {\n gray: '灰色',\n red: '紅色',\n orange: '橙色',\n yellow: '黃色',\n green: '綠色',\n blue: '藍色',\n purple: '紫色',\n pink: '粉紅色',\n },\n },\n align: { label: '對齊', left: '靠左對齊', center: '置中', right: '靠右對齊' },\n attachment: {\n empty: '新增附件',\n upload: '選擇檔案',\n uploading: '正在上傳…',\n failed: '上傳失敗',\n retry: '重試',\n download: '下載',\n },\n embed: {\n empty: '嵌入影片、音訊或網頁',\n urlPlaceholder: '貼上連結',\n apply: '嵌入',\n invalid: '無法嵌入這個連結',\n insecure: '只能嵌入 https 開頭的連結',\n edit: '修改連結',\n cancel: '取消',\n caption: '新增說明',\n },\n noResults: '沒有符合的區塊',\n addBlock: '在下方新增區塊',\n dragHandle: '拖曳以移動,點擊開啟選單',\n turnInto: '轉換為',\n duplicate: '複製',\n delete: '刪除',\n moveUp: '上移',\n moveDown: '下移',\n bold: '粗體',\n italic: '斜體',\n underline: '底線',\n strike: '刪除線',\n code: '行內程式碼',\n link: '連結',\n linkPlaceholder: '貼上或輸入連結',\n applyLink: '確定',\n removeLink: '移除連結',\n comment: '評論',\n commentThread: '評論',\n removedBlock: '已刪除的內容',\n restored: '已還原到這個版本',\n changeAdded: '新增',\n changeRemoved: '刪除',\n changeChanged: '修改',\n formatting: '文字格式',\n blockTypes: '區塊類型',\n}\n\nconst en: EditorMessages = {\n placeholder: 'Type / for blocks',\n emptyPlaceholder: 'Start writing, or type / for blocks',\n headingPlaceholder: 'Heading',\n types: {\n paragraph: 'Text',\n heading1: 'Heading 1',\n heading2: 'Heading 2',\n heading3: 'Heading 3',\n bulletItem: 'Bulleted list',\n numberedItem: 'Numbered list',\n checkItem: 'To-do',\n quote: 'Quote',\n codeBlock: 'Code',\n divider: 'Divider',\n image: 'Image',\n toggle: 'Toggle',\n callout: 'Callout',\n table: 'Table',\n attachment: 'File',\n embed: 'Embed',\n },\n hints: {\n paragraph: 'Plain text',\n heading1: 'Large section heading',\n heading2: 'Medium section heading',\n heading3: 'Small section heading',\n bulletItem: 'A simple list',\n numberedItem: 'A list with numbers',\n checkItem: 'Items to tick off',\n quote: 'Quote someone',\n codeBlock: 'Code in a monospace font',\n divider: 'Separate sections',\n image: 'Upload or embed an image',\n toggle: 'Content that can be shown or hidden',\n callout: 'A note that stands out, with an icon',\n table: 'A grid of rows and columns',\n attachment: 'Upload a file',\n embed: 'Video, audio or a web page',\n },\n image: {\n empty: 'Add an image',\n upload: 'Upload',\n embed: 'Embed link',\n urlPlaceholder: 'Paste the image link',\n apply: 'Apply',\n uploading: 'Uploading',\n failed: 'Upload failed, try again',\n caption: 'Add a caption',\n resize: 'Drag to resize',\n },\n codeBlock: { language: 'Language', plainText: 'Plain text' },\n toggle: { expand: 'Expand', collapse: 'Collapse' },\n mention: { label: 'Mention', searching: 'Searching', noResults: 'No one found' },\n table: {\n row: 'Select row',\n column: 'Select column',\n insertAbove: 'Insert row above',\n insertBelow: 'Insert row below',\n insertLeft: 'Insert column left',\n insertRight: 'Insert column right',\n moveUp: 'Move up',\n moveDown: 'Move down',\n moveLeft: 'Move left',\n moveRight: 'Move right',\n deleteRow: 'Delete row',\n deleteColumn: 'Delete column',\n merge: 'Merge cells',\n split: 'Unmerge',\n clear: 'Clear contents',\n headerRow: 'Header row',\n headerColumn: 'Header column',\n alignLeft: 'Align left',\n alignCenter: 'Align center',\n alignRight: 'Align right',\n addRow: 'Add a row',\n addColumn: 'Add a column',\n },\n callout: {\n change: 'click to change',\n tones: { info: 'Info', tip: 'Tip', warning: 'Warning', danger: 'Danger' },\n },\n colors: {\n label: 'Color',\n text: 'Text color',\n background: 'Background',\n none: 'Default',\n names: {\n gray: 'Gray',\n red: 'Red',\n orange: 'Orange',\n yellow: 'Yellow',\n green: 'Green',\n blue: 'Blue',\n purple: 'Purple',\n pink: 'Pink',\n },\n },\n align: { label: 'Align', left: 'Align left', center: 'Center', right: 'Align right' },\n attachment: {\n empty: 'Add a file',\n upload: 'Choose a file',\n uploading: 'Uploading…',\n failed: 'Upload failed',\n retry: 'Retry',\n download: 'Download',\n },\n embed: {\n empty: 'Embed a video, audio or web page',\n urlPlaceholder: 'Paste a link',\n apply: 'Embed',\n invalid: \"This link can't be embedded\",\n insecure: 'Only https links can be embedded',\n edit: 'Change link',\n cancel: 'Cancel',\n caption: 'Add a caption',\n },\n noResults: 'No matching blocks',\n addBlock: 'Add a block below',\n dragHandle: 'Drag to move, click for the menu',\n turnInto: 'Turn into',\n duplicate: 'Duplicate',\n delete: 'Delete',\n moveUp: 'Move up',\n moveDown: 'Move down',\n bold: 'Bold',\n italic: 'Italic',\n underline: 'Underline',\n strike: 'Strikethrough',\n code: 'Inline code',\n link: 'Link',\n linkPlaceholder: 'Paste or type a link',\n applyLink: 'Apply',\n removeLink: 'Remove link',\n comment: 'Comment',\n commentThread: 'Comments',\n removedBlock: 'Removed content',\n restored: 'Restored this version',\n changeAdded: 'Added',\n changeRemoved: 'Removed',\n changeChanged: 'Changed',\n formatting: 'Text formatting',\n blockTypes: 'Block types',\n}\n\nexport const editorLocales: Record<string, EditorMessages> = {\n 'zh-CN': zhCN,\n 'zh-TW': zhTW,\n en,\n}\n\n/**\n * The editor's texts, picked by the name of DouUI's current locale.\n * Pass `messages` to override any of them.\n */\ntype DeepPartial<T> = { [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K] }\n\n/** Any part of the messages: a nested group can be given in part too. */\nexport type EditorMessagesOverride = DeepPartial<EditorMessages>\n\nfunction merge<T>(base: T, extra: unknown): T {\n if (!extra || typeof extra !== 'object') return (extra ?? base) as T\n const result: Record<string, unknown> = { ...(base as Record<string, unknown>) }\n for (const [key, value] of Object.entries(extra)) {\n if (value === undefined) continue\n const current = result[key]\n result[key] =\n current && typeof current === 'object' && typeof value === 'object'\n ? merge(current, value)\n : value\n }\n return result as T\n}\n\nexport function useEditorMessages(override?: MaybeRefOrGetter<EditorMessagesOverride | undefined>) {\n const { locale } = useLocale()\n return computed<EditorMessages>(() => {\n const name = locale.value.name\n const base =\n editorLocales[name] ??\n editorLocales[name.split('-')[0]!] ??\n (name.startsWith('zh') ? zhCN : en)\n const extra = toValue(override)\n return extra ? merge(base, extra) : base\n })\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"locale.js","names":[],"sources":["../src/locale.ts"],"sourcesContent":["import { useLocale } from 'dou-ui'\nimport { computed, toValue, type MaybeRefOrGetter } from 'vue'\n\nexport interface EditorMessages {\n placeholder: string\n emptyPlaceholder: string\n headingPlaceholder: string\n /** Names of the block types, also shown in menus. */\n types: {\n paragraph: string\n heading1: string\n heading2: string\n heading3: string\n bulletItem: string\n numberedItem: string\n checkItem: string\n quote: string\n codeBlock: string\n divider: string\n image: string\n toggle: string\n callout: string\n table: string\n columns: string\n attachment: string\n embed: string\n }\n /** Short descriptions in the slash menu. */\n hints: {\n paragraph: string\n heading1: string\n heading2: string\n heading3: string\n bulletItem: string\n numberedItem: string\n checkItem: string\n quote: string\n codeBlock: string\n divider: string\n image: string\n toggle: string\n callout: string\n table: string\n columns: string\n attachment: string\n embed: string\n }\n /** The image block. */\n image: {\n empty: string\n upload: string\n embed: string\n urlPlaceholder: string\n apply: string\n uploading: string\n failed: string\n caption: string\n resize: string\n }\n /** The code block. */\n codeBlock: {\n /** The language picker's name. */\n language: string\n plainText: string\n }\n toggle: { expand: string; collapse: string }\n callout: {\n /** Said after the tone on the icon button. */\n change: string\n tones: { info: string; tip: string; warning: string; danger: string }\n }\n mention: { label: string; searching: string; noResults: string }\n /** The table: its row and column menus. */\n table: {\n row: string\n column: string\n insertAbove: string\n insertBelow: string\n insertLeft: string\n insertRight: string\n moveUp: string\n moveDown: string\n moveLeft: string\n moveRight: string\n deleteRow: string\n deleteColumn: string\n merge: string\n split: string\n clear: string\n headerRow: string\n headerColumn: string\n alignLeft: string\n alignCenter: string\n alignRight: string\n addRow: string\n addColumn: string\n }\n /** Columns: the picker in the slash menu, the block menu entry, the resize bar. */\n columns: {\n /** The title of the picker for the number of columns. */\n pick: string\n /** A number of columns; `{count}` is replaced with it. */\n count: string\n /** Selects the whole set of columns a block is in. */\n select: string\n /** The bar between two columns. */\n resize: string\n /** Makes every column of the set as wide as the others. */\n even: string\n /** A column, for screen readers; `{index}` and `{count}` are replaced. */\n column: string\n }\n /** The color menu of the formatting toolbar. */\n colors: {\n label: string\n text: string\n background: string\n none: string\n names: {\n gray: string\n red: string\n orange: string\n yellow: string\n green: string\n blue: string\n purple: string\n pink: string\n }\n }\n /** Aligning paragraphs, headings and quotes. */\n align: { label: string; left: string; center: string; right: string }\n /** The attachment block. */\n attachment: {\n empty: string\n upload: string\n uploading: string\n failed: string\n retry: string\n download: string\n }\n /** The embed block. */\n embed: {\n empty: string\n urlPlaceholder: string\n apply: string\n invalid: string\n /** The link is not https. */\n insecure: string\n caption: string\n edit: string\n cancel: string\n }\n noResults: string\n addBlock: string\n dragHandle: string\n turnInto: string\n duplicate: string\n delete: string\n moveUp: string\n moveDown: string\n bold: string\n italic: string\n underline: string\n strike: string\n code: string\n link: string\n linkPlaceholder: string\n applyLink: string\n removeLink: string\n /** Starts a comment thread on the selected text. */\n comment: string\n /** The name of the card that shows a thread. */\n commentThread: string\n /** Shown for a removed block that has no text, such as a divider, when comparing versions. */\n removedBlock: string\n /** Read out once a version is restored. */\n restored: string\n /** Read out, before the text, when going to a change while comparing. */\n changeAdded: string\n changeRemoved: string\n changeChanged: string\n formatting: string\n /** The name of the slash menu's list. */\n blockTypes: string\n}\n\nconst zhCN: EditorMessages = {\n placeholder: '输入 / 插入内容',\n emptyPlaceholder: '开始写点什么,或输入 / 插入内容',\n headingPlaceholder: '标题',\n types: {\n paragraph: '正文',\n heading1: '一级标题',\n heading2: '二级标题',\n heading3: '三级标题',\n bulletItem: '无序列表',\n numberedItem: '有序列表',\n checkItem: '待办事项',\n quote: '引用',\n codeBlock: '代码',\n divider: '分隔线',\n image: '图片',\n toggle: '折叠块',\n callout: '提示块',\n table: '表格',\n columns: '分栏',\n attachment: '附件',\n embed: '嵌入',\n },\n hints: {\n paragraph: '普通的文字',\n heading1: '最大的标题',\n heading2: '中等的标题',\n heading3: '较小的标题',\n bulletItem: '用圆点列出几项',\n numberedItem: '按顺序编号',\n checkItem: '可以勾选的事项',\n quote: '引用一段话',\n codeBlock: '等宽显示代码',\n divider: '分隔上下内容',\n image: '上传或嵌入一张图片',\n toggle: '可以展开和收起的内容',\n callout: '带图标的醒目说明',\n table: '插入一个表格',\n columns: '把内容并排分成几栏',\n attachment: '上传一个文件',\n embed: '视频、音频或网页',\n },\n image: {\n empty: '添加一张图片',\n upload: '上传',\n embed: '嵌入链接',\n urlPlaceholder: '粘贴图片链接',\n apply: '确定',\n uploading: '正在上传',\n failed: '上传失败,请重试',\n caption: '添加说明',\n resize: '拖动调整宽度',\n },\n codeBlock: { language: '语言', plainText: '纯文本' },\n toggle: { expand: '展开', collapse: '收起' },\n mention: { label: '提及', searching: '正在搜索', noResults: '没有找到' },\n table: {\n row: '选择这一行',\n column: '选择这一列',\n insertAbove: '在上方插入行',\n insertBelow: '在下方插入行',\n insertLeft: '在左侧插入列',\n insertRight: '在右侧插入列',\n moveUp: '上移',\n moveDown: '下移',\n moveLeft: '左移',\n moveRight: '右移',\n deleteRow: '删除行',\n deleteColumn: '删除列',\n merge: '合并单元格',\n split: '取消合并',\n clear: '清空内容',\n headerRow: '标题行',\n headerColumn: '标题列',\n alignLeft: '左对齐',\n alignCenter: '居中',\n alignRight: '右对齐',\n addRow: '添加一行',\n addColumn: '添加一列',\n },\n callout: {\n change: '点击更换',\n tones: { info: '说明', tip: '提示', warning: '注意', danger: '警告' },\n },\n columns: {\n pick: '选择栏数',\n count: '{count} 栏',\n select: '选中整个分栏',\n resize: '调整栏宽',\n even: '平分栏宽',\n column: '第 {index} 栏,共 {count} 栏',\n },\n colors: {\n label: '颜色',\n text: '文字颜色',\n background: '背景色',\n none: '默认',\n names: {\n gray: '灰色',\n red: '红色',\n orange: '橙色',\n yellow: '黄色',\n green: '绿色',\n blue: '蓝色',\n purple: '紫色',\n pink: '粉色',\n },\n },\n align: { label: '对齐', left: '左对齐', center: '居中', right: '右对齐' },\n attachment: {\n empty: '添加附件',\n upload: '选择文件',\n uploading: '正在上传…',\n failed: '上传失败',\n retry: '重试',\n download: '下载',\n },\n embed: {\n empty: '嵌入视频、音频或网页',\n urlPlaceholder: '粘贴链接',\n apply: '嵌入',\n invalid: '无法嵌入这个链接',\n insecure: '只能嵌入 https 开头的链接',\n edit: '修改链接',\n cancel: '取消',\n caption: '添加说明',\n },\n noResults: '没有匹配的块',\n addBlock: '在下方添加块',\n dragHandle: '拖动以移动,点击打开菜单',\n turnInto: '转换为',\n duplicate: '复制',\n delete: '删除',\n moveUp: '上移',\n moveDown: '下移',\n bold: '粗体',\n italic: '斜体',\n underline: '下划线',\n strike: '删除线',\n code: '行内代码',\n link: '链接',\n linkPlaceholder: '粘贴或输入链接',\n applyLink: '确定',\n removeLink: '移除链接',\n comment: '评论',\n commentThread: '评论',\n removedBlock: '已删除的内容',\n restored: '已恢复到这个版本',\n changeAdded: '新增',\n changeRemoved: '删除',\n changeChanged: '修改',\n formatting: '文字格式',\n blockTypes: '块类型',\n}\n\nconst zhTW: EditorMessages = {\n placeholder: '輸入 / 插入內容',\n emptyPlaceholder: '開始寫點什麼,或輸入 / 插入內容',\n headingPlaceholder: '標題',\n types: {\n paragraph: '內文',\n heading1: '一級標題',\n heading2: '二級標題',\n heading3: '三級標題',\n bulletItem: '項目清單',\n numberedItem: '編號清單',\n checkItem: '待辦事項',\n quote: '引用',\n codeBlock: '程式碼',\n divider: '分隔線',\n image: '圖片',\n toggle: '摺疊區塊',\n callout: '提示區塊',\n table: '表格',\n columns: '分欄',\n attachment: '附件',\n embed: '嵌入',\n },\n hints: {\n paragraph: '一般的文字',\n heading1: '最大的標題',\n heading2: '中等的標題',\n heading3: '較小的標題',\n bulletItem: '用圓點列出幾項',\n numberedItem: '依序編號',\n checkItem: '可以勾選的事項',\n quote: '引用一段話',\n codeBlock: '等寬顯示程式碼',\n divider: '分隔上下內容',\n image: '上傳或嵌入一張圖片',\n toggle: '可以展開和收合的內容',\n callout: '帶圖示的醒目說明',\n table: '插入一個表格',\n columns: '把內容並排分成幾欄',\n attachment: '上傳一個檔案',\n embed: '影片、音訊或網頁',\n },\n image: {\n empty: '新增一張圖片',\n upload: '上傳',\n embed: '嵌入連結',\n urlPlaceholder: '貼上圖片連結',\n apply: '確定',\n uploading: '正在上傳',\n failed: '上傳失敗,請重試',\n caption: '新增說明',\n resize: '拖曳調整寬度',\n },\n codeBlock: { language: '語言', plainText: '純文字' },\n toggle: { expand: '展開', collapse: '收合' },\n mention: { label: '提及', searching: '正在搜尋', noResults: '沒有找到' },\n table: {\n row: '選擇這一列',\n column: '選擇這一欄',\n insertAbove: '在上方插入列',\n insertBelow: '在下方插入列',\n insertLeft: '在左側插入欄',\n insertRight: '在右側插入欄',\n moveUp: '上移',\n moveDown: '下移',\n moveLeft: '左移',\n moveRight: '右移',\n deleteRow: '刪除列',\n deleteColumn: '刪除欄',\n merge: '合併儲存格',\n split: '取消合併',\n clear: '清除內容',\n headerRow: '標題列',\n headerColumn: '標題欄',\n alignLeft: '靠左對齊',\n alignCenter: '置中',\n alignRight: '靠右對齊',\n addRow: '新增一列',\n addColumn: '新增一欄',\n },\n callout: {\n change: '點擊更換',\n tones: { info: '說明', tip: '提示', warning: '注意', danger: '警告' },\n },\n columns: {\n pick: '選擇欄數',\n count: '{count} 欄',\n select: '選取整個分欄',\n resize: '調整欄寬',\n even: '平分欄寬',\n column: '第 {index} 欄,共 {count} 欄',\n },\n colors: {\n label: '顏色',\n text: '文字顏色',\n background: '背景色',\n none: '預設',\n names: {\n gray: '灰色',\n red: '紅色',\n orange: '橙色',\n yellow: '黃色',\n green: '綠色',\n blue: '藍色',\n purple: '紫色',\n pink: '粉紅色',\n },\n },\n align: { label: '對齊', left: '靠左對齊', center: '置中', right: '靠右對齊' },\n attachment: {\n empty: '新增附件',\n upload: '選擇檔案',\n uploading: '正在上傳…',\n failed: '上傳失敗',\n retry: '重試',\n download: '下載',\n },\n embed: {\n empty: '嵌入影片、音訊或網頁',\n urlPlaceholder: '貼上連結',\n apply: '嵌入',\n invalid: '無法嵌入這個連結',\n insecure: '只能嵌入 https 開頭的連結',\n edit: '修改連結',\n cancel: '取消',\n caption: '新增說明',\n },\n noResults: '沒有符合的區塊',\n addBlock: '在下方新增區塊',\n dragHandle: '拖曳以移動,點擊開啟選單',\n turnInto: '轉換為',\n duplicate: '複製',\n delete: '刪除',\n moveUp: '上移',\n moveDown: '下移',\n bold: '粗體',\n italic: '斜體',\n underline: '底線',\n strike: '刪除線',\n code: '行內程式碼',\n link: '連結',\n linkPlaceholder: '貼上或輸入連結',\n applyLink: '確定',\n removeLink: '移除連結',\n comment: '評論',\n commentThread: '評論',\n removedBlock: '已刪除的內容',\n restored: '已還原到這個版本',\n changeAdded: '新增',\n changeRemoved: '刪除',\n changeChanged: '修改',\n formatting: '文字格式',\n blockTypes: '區塊類型',\n}\n\nconst en: EditorMessages = {\n placeholder: 'Type / for blocks',\n emptyPlaceholder: 'Start writing, or type / for blocks',\n headingPlaceholder: 'Heading',\n types: {\n paragraph: 'Text',\n heading1: 'Heading 1',\n heading2: 'Heading 2',\n heading3: 'Heading 3',\n bulletItem: 'Bulleted list',\n numberedItem: 'Numbered list',\n checkItem: 'To-do',\n quote: 'Quote',\n codeBlock: 'Code',\n divider: 'Divider',\n image: 'Image',\n toggle: 'Toggle',\n callout: 'Callout',\n table: 'Table',\n columns: 'Columns',\n attachment: 'File',\n embed: 'Embed',\n },\n hints: {\n paragraph: 'Plain text',\n heading1: 'Large section heading',\n heading2: 'Medium section heading',\n heading3: 'Small section heading',\n bulletItem: 'A simple list',\n numberedItem: 'A list with numbers',\n checkItem: 'Items to tick off',\n quote: 'Quote someone',\n codeBlock: 'Code in a monospace font',\n divider: 'Separate sections',\n image: 'Upload or embed an image',\n toggle: 'Content that can be shown or hidden',\n callout: 'A note that stands out, with an icon',\n table: 'A grid of rows and columns',\n columns: 'Put content side by side',\n attachment: 'Upload a file',\n embed: 'Video, audio or a web page',\n },\n image: {\n empty: 'Add an image',\n upload: 'Upload',\n embed: 'Embed link',\n urlPlaceholder: 'Paste the image link',\n apply: 'Apply',\n uploading: 'Uploading',\n failed: 'Upload failed, try again',\n caption: 'Add a caption',\n resize: 'Drag to resize',\n },\n codeBlock: { language: 'Language', plainText: 'Plain text' },\n toggle: { expand: 'Expand', collapse: 'Collapse' },\n mention: { label: 'Mention', searching: 'Searching', noResults: 'No one found' },\n table: {\n row: 'Select row',\n column: 'Select column',\n insertAbove: 'Insert row above',\n insertBelow: 'Insert row below',\n insertLeft: 'Insert column left',\n insertRight: 'Insert column right',\n moveUp: 'Move up',\n moveDown: 'Move down',\n moveLeft: 'Move left',\n moveRight: 'Move right',\n deleteRow: 'Delete row',\n deleteColumn: 'Delete column',\n merge: 'Merge cells',\n split: 'Unmerge',\n clear: 'Clear contents',\n headerRow: 'Header row',\n headerColumn: 'Header column',\n alignLeft: 'Align left',\n alignCenter: 'Align center',\n alignRight: 'Align right',\n addRow: 'Add a row',\n addColumn: 'Add a column',\n },\n callout: {\n change: 'click to change',\n tones: { info: 'Info', tip: 'Tip', warning: 'Warning', danger: 'Danger' },\n },\n columns: {\n pick: 'Number of columns',\n count: '{count} columns',\n select: 'Select all columns',\n resize: 'Resize columns',\n even: 'Even out columns',\n column: 'Column {index} of {count}',\n },\n colors: {\n label: 'Color',\n text: 'Text color',\n background: 'Background',\n none: 'Default',\n names: {\n gray: 'Gray',\n red: 'Red',\n orange: 'Orange',\n yellow: 'Yellow',\n green: 'Green',\n blue: 'Blue',\n purple: 'Purple',\n pink: 'Pink',\n },\n },\n align: { label: 'Align', left: 'Align left', center: 'Center', right: 'Align right' },\n attachment: {\n empty: 'Add a file',\n upload: 'Choose a file',\n uploading: 'Uploading…',\n failed: 'Upload failed',\n retry: 'Retry',\n download: 'Download',\n },\n embed: {\n empty: 'Embed a video, audio or web page',\n urlPlaceholder: 'Paste a link',\n apply: 'Embed',\n invalid: \"This link can't be embedded\",\n insecure: 'Only https links can be embedded',\n edit: 'Change link',\n cancel: 'Cancel',\n caption: 'Add a caption',\n },\n noResults: 'No matching blocks',\n addBlock: 'Add a block below',\n dragHandle: 'Drag to move, click for the menu',\n turnInto: 'Turn into',\n duplicate: 'Duplicate',\n delete: 'Delete',\n moveUp: 'Move up',\n moveDown: 'Move down',\n bold: 'Bold',\n italic: 'Italic',\n underline: 'Underline',\n strike: 'Strikethrough',\n code: 'Inline code',\n link: 'Link',\n linkPlaceholder: 'Paste or type a link',\n applyLink: 'Apply',\n removeLink: 'Remove link',\n comment: 'Comment',\n commentThread: 'Comments',\n removedBlock: 'Removed content',\n restored: 'Restored this version',\n changeAdded: 'Added',\n changeRemoved: 'Removed',\n changeChanged: 'Changed',\n formatting: 'Text formatting',\n blockTypes: 'Block types',\n}\n\nexport const editorLocales: Record<string, EditorMessages> = {\n 'zh-CN': zhCN,\n 'zh-TW': zhTW,\n en,\n}\n\n/**\n * The editor's texts, picked by the name of DouUI's current locale.\n * Pass `messages` to override any of them.\n */\ntype DeepPartial<T> = { [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K] }\n\n/** Any part of the messages: a nested group can be given in part too. */\nexport type EditorMessagesOverride = DeepPartial<EditorMessages>\n\nfunction merge<T>(base: T, extra: unknown): T {\n if (!extra || typeof extra !== 'object') return (extra ?? base) as T\n const result: Record<string, unknown> = { ...(base as Record<string, unknown>) }\n for (const [key, value] of Object.entries(extra)) {\n if (value === undefined) continue\n const current = result[key]\n result[key] =\n current && typeof current === 'object' && typeof value === 'object'\n ? merge(current, value)\n : value\n }\n return result as T\n}\n\nexport function useEditorMessages(override?: MaybeRefOrGetter<EditorMessagesOverride | undefined>) {\n const { locale } = useLocale()\n return computed<EditorMessages>(() => {\n const name = locale.value.name\n const base =\n editorLocales[name] ??\n editorLocales[name.split('-')[0]!] ??\n (name.startsWith('zh') ? zhCN : en)\n const extra = toValue(override)\n return extra ? merge(base, extra) : base\n })\n}\n"],"mappings":"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"}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer dou.components{.dou-editor{--dou-editor-font-size:var(--dou-font-size-lg);--dou-editor-line-height:1.7;--dou-editor-gutter:56px;--dou-editor-indent:24px;--dou-editor-block-gap:4px;--dou-editor-list-gap:4px;--dou-editor-reading-width:none;--dou-editor-selected:color-mix(in oklab,var(--dou-color-focus)calc(12% + 10%*var(--dou-scheme-dark)),transparent);--dou-editor-control-hover:color-mix(in oklab,var(--dou-color-text)6%,transparent);--dou-editor-match:color-mix(in oklab,var(--dou-color-warning)22%,transparent);--dou-editor-match-current:color-mix(in oklab,var(--dou-color-warning-text)80%,transparent);--dou-editor-comment-bg:color-mix(in oklab,var(--dou-color-warning)18%,transparent);--dou-editor-comment-bg-active:color-mix(in oklab,var(--dou-color-warning)36%,transparent);--dou-editor-comment-line:color-mix(in oklab,var(--dou-color-warning)72%,transparent);position:relative;box-sizing:border-box;color:var(--dou-color-text);font-family:var(--dou-font-family);font-size:max(var(--dou-font-size-input-min,0px),var(--dou-editor-font-size));line-height:var(--dou-editor-line-height);overflow-wrap:break-word;width:100%;min-width:0;padding-inline-start:var(--dou-editor-gutter)}.dou-editor.is-readonly{--dou-editor-gutter:0px}.dou-editor.is-readonly.is-comparing{--dou-editor-gutter:16px}@media (pointer:coarse){.dou-editor{--dou-editor-gutter:32px}}.dou-editor.is-dragging{cursor:grabbing}.dou-editor.is-dragging *{cursor:grabbing}.dou-editor__live{position:absolute;overflow:hidden;clip-path:inset(50%);white-space:nowrap;width:1px;height:1px}.dou-editor__mount>.dou-editor__surface,.dou-editor__search{padding-inline-start:max(0px,(100% - var(--dou-editor-reading-width) - var(--dou-editor-gutter))/2);padding-inline-end:max(0px,min(100% - var(--dou-editor-reading-width),(100% - var(--dou-editor-reading-width) + var(--dou-editor-gutter))/2))}.dou-editor__surface{min-height:calc(var(--dou-editor-line-height)*1em);outline:none;white-space:pre-wrap;word-wrap:break-word;font-variant-ligatures:none}.dou-editor__block{position:relative;border-radius:4px}.dou-editor__group{padding-inline-start:var(--dou-editor-indent)}.dou-editor__content{position:relative;padding-block:calc(var(--dou-editor-block-gap)/2);font-size:1em;font-weight:inherit;line-height:var(--dou-editor-line-height);margin:0}.dou-editor__block>.dou-editor__content.is-list{--dou-editor-list-top:calc(var(--dou-editor-list-gap)/2);padding-block:var(--dou-editor-list-top)calc(var(--dou-editor-list-gap)/2)}.dou-editor__block>.dou-editor__content.is-list-start{--dou-editor-list-top:calc(max(var(--dou-editor-block-gap),var(--dou-editor-list-gap))/2);margin-top:min(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2)}.dou-editor__block>.dou-editor__content.is-list-start.is-list-after{margin-top:min(0px,var(--dou-editor-block-gap) - var(--dou-editor-list-gap))}.dou-editor__block>.dou-editor__content.is-list-end{padding-bottom:calc(max(var(--dou-editor-block-gap),var(--dou-editor-list-gap))/2);margin-bottom:min(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2)}.dou-editor__group.is-list-end{padding-bottom:max(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2);margin-bottom:min(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2)}.dou-editor__surface>.dou-editor__block:first-child>.dou-editor__content.is-list-start{margin-top:0}.dou-editor__surface>.dou-editor__block:last-child>.is-list-end{margin-bottom:0}.dou-editor__content--heading{--dou-editor-line-height:1.4;font-weight:var(--dou-font-weight-bold);letter-spacing:-.01em;margin-top:.6em}.dou-editor__content--heading:-webkit-any(h1){margin-top:.8em;font-size:1.75em}.dou-editor__content--heading:-moz-any(h1){margin-top:.8em;font-size:1.75em}.dou-editor__content--heading:is(h1){margin-top:.8em;font-size:1.75em}.dou-editor__content--heading:-webkit-any(h2){font-size:1.375em}.dou-editor__content--heading:-moz-any(h2){font-size:1.375em}.dou-editor__content--heading:is(h2){font-size:1.375em}.dou-editor__content--heading:-webkit-any(h3){font-size:1.125em}.dou-editor__content--heading:-moz-any(h3){font-size:1.125em}.dou-editor__content--heading:is(h3){font-size:1.125em}.dou-editor__surface>.dou-editor__block:first-child>.dou-editor__content--heading{margin-top:0}.dou-editor__content--bulletItem,.dou-editor__content--numberedItem{padding-inline-start:var(--dou-editor-indent)}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):before{position:absolute;width:var(--dou-editor-indent)}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:0}.dou-editor__content--bulletItem:before{content:"";top:calc(var(--dou-editor-list-top) + var(--dou-editor-line-height)*.5em - 3px);box-sizing:border-box;color:var(--dou-color-text-secondary);background-color:currentColor;border-radius:50%;width:6px;height:6px}.dou-editor__content--bulletItem:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:7px}.dou-editor__content--bulletItem:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:7px}.dou-editor__content--bulletItem:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:7px}.dou-editor__content--bulletItem:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:7px}.dou-editor__content--bulletItem:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:7px}.dou-editor__content--bulletItem:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:7px}.dou-editor__group .dou-editor__content--bulletItem:before{background-color:#0000;border:1.5px solid}.dou-editor__content--numberedItem:before{content:attr(data-index)".";top:var(--dou-editor-list-top);box-sizing:border-box;color:var(--dou-color-text-secondary);font-variant-numeric:tabular-nums;text-align:end;padding-inline-end:6px}.dou-editor__content--checkItem{display:flex;gap:8px}.dou-editor__check{display:inline-flex;height:calc(var(--dou-editor-line-height)*1em);user-select:none;flex:none;align-items: center}.dou-editor__checkbox{display:inline-flex;box-sizing:border-box;border:1px solid var(--dou-color-border-strong);border-radius:calc(var(--dou-radius-control) - 2px);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-sm);color:var(--dou-color-neutral-on);cursor:pointer;transition-property:background-color,border-color,box-shadow;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);justify-content:center;align-items: center;width:16px;height:16px;margin:0;padding:0}.dou-editor__checkbox>svg{opacity:0;transition-property:opacity,transform;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);width:100%;height:100%;transform:scale(.6)}.dou-editor__checkbox:hover:not(:disabled){border-color:color-mix(in oklab,var(--dou-color-neutral)45%,var(--dou-color-border-strong))}.dou-editor__checkbox:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor__checkbox:disabled{cursor:default}.dou-editor__content--checkItem[data-checked=true] .dou-editor__checkbox{border-color:color-mix(in oklab,var(--dou-color-neutral)90%,var(--dou-color-edge));background-color:var(--dou-color-neutral);box-shadow:var(--dou-shadow-highlight),0 1px 2px color-mix(in oklab,var(--dou-color-neutral)24%,transparent)}.dou-editor__content--checkItem[data-checked=true] .dou-editor__checkbox>svg{opacity:1;transform:none}.dou-editor__content--checkItem[data-checked=true] .dou-editor__text{color:var(--dou-color-text-tertiary);text-decoration:line-through;text-decoration-color:color-mix(in oklab,currentColor 60%,transparent)}.dou-editor__text{flex:auto;min-width:0}.dou-editor__content--quote{box-shadow:inset 2px 0 0 var(--dou-color-border-strong);color:var(--dou-color-text-secondary);padding-inline-start:14px}.dou-editor__content--codeBlock{--dou-editor-line-height:1.7;margin-block:calc(var(--dou-editor-block-gap)/2 + 2px);overflow-x:auto;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-container);background-color:var(--dou-color-bg-muted);font-family:var(--dou-font-family-mono);font-size:var(--dou-font-size-sm);tab-size:2;white-space:pre-wrap;padding:12px 16px}.dou-editor__content--codeBlock>code{font:inherit}.dou-editor-toggle{display:flex;gap:4px}.dou-editor-toggle__control{display:inline-flex;height:calc(var(--dou-editor-line-height)*1em);user-select:none;flex:none;align-items: center;margin-inline-start:-2px}.dou-editor-toggle__button{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items: center;width:22px;height:22px;padding:0}.dou-editor-toggle__button>svg{transition:rotate var(--dou-motion-duration-fast)var(--dou-motion-easing);width:16px;height:16px}.dou-editor-toggle__button.is-open>svg{rotate:90deg}.dou-editor-toggle__button:hover{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-toggle__button:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:-2px}.dou-editor__block.is-collapsed>.dou-editor__group{display:none}.dou-editor-callout{--dou-editor-callout-tone:var(--dou-color-text-secondary);display:flex;border:1px solid color-mix(in oklab,var(--dou-editor-callout-tone)22%,var(--dou-color-border));border-radius:var(--dou-radius-container);background-color:color-mix(in oklab,var(--dou-editor-callout-tone)6%,var(--dou-color-bg-surface));gap:8px;margin-block-start:2px;margin-block-end:2px;padding:8px 12px}.dou-editor-callout.is-tip{--dou-editor-callout-tone:var(--dou-color-success)}.dou-editor-callout.is-warning{--dou-editor-callout-tone:var(--dou-color-warning)}.dou-editor-callout.is-danger{--dou-editor-callout-tone:var(--dou-color-danger)}.dou-editor-callout__control{display:inline-flex;height:calc(var(--dou-editor-line-height)*1em);user-select:none;flex:none;align-items: center}.dou-editor-callout__icon{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-editor-callout-tone);background:0 0;border:none;justify-content:center;align-items: center;width:24px;height:24px;padding:0}.dou-editor-callout__icon>svg{width:16px;height:16px}button.dou-editor-callout__icon{cursor:pointer}button.dou-editor-callout__icon:hover{background-color:color-mix(in oklab,var(--dou-editor-callout-tone)12%,transparent)}button.dou-editor-callout__icon[aria-expanded=true]{background-color:color-mix(in oklab,var(--dou-editor-callout-tone)12%,transparent)}button.dou-editor-callout__icon:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:-2px}.dou-editor__content--codeBlock.dou-editor__content--custom{position:relative}.dou-editor-code__pre{font:inherit;white-space:inherit;margin:0}.dou-editor-code__pre>code{display:block;font:inherit}.dou-editor-code__bar{position:absolute;display:flex;border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-muted);font-family:var(--dou-font-family);opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);align-items: center;gap:2px;top:6px;right:6px}.dou-editor__content--codeBlock:hover>.dou-editor-code__bar,.dou-editor-code__bar:focus-within{opacity:1}.dou-editor-code__bar:has([aria-expanded=true]){opacity:1}.dou-editor-code__language{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text-secondary);font:inherit;font-size:var(--dou-font-size-sm);cursor:pointer;background:0 0;border:none;align-items: center;gap:2px;height:24px;padding:0 4px 0 8px}.dou-editor-code__language>svg{width:14px;height:14px}.dou-editor-code__language:hover{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-code__language[aria-expanded=true]{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-code__language:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:-2px}.dou-editor-code__language.is-static{cursor:default;padding-inline-start:8px;padding-inline-end:8px}.dou-editor-code-editor.dou-editor__content--codeBlock{overflow:visible;white-space:normal;transition:border-color var(--dou-motion-duration-fast)var(--dou-motion-easing);padding:0}.dou-editor-code-editor.dou-editor__content--codeBlock:has(>.dou-code-editor.is-focused){border-color:color-mix(in oklab,var(--dou-color-focus)70%,var(--dou-color-text))}.dou-editor-code-editor.dou-editor__content--codeBlock>.dou-editor-code__bar{position:relative;z-index:3;opacity:1;background:0 0;justify-content:flex-end;padding:4px 6px 0 8px;top:auto;right:auto}.dou-editor-code-editor.dou-editor__content--codeBlock>.dou-editor-code__bar>:not(:last-child){margin-inline-end:auto}@media (pointer:coarse){.dou-editor-code__language:not(.is-static){position:relative}.dou-editor-code__language:not(.is-static):after{position:absolute;content:"";inset:min(0px,50% - 20px) 0}}.dou-editor-code__editor.dou-code-editor:not(.is-bordered){--dou-code-editor-bg:transparent;--dou-code-editor-gutter-bg:var(--dou-color-bg-muted);--dou-code-editor-padding-x:16px;--dou-code-editor-padding-y:8px;border-radius:inherit}.dou-editor__token{color:color-mix(in oklab,var(--shiki-dark,currentColor)calc(100%*var(--dou-scheme-dark)),var(--shiki-light,currentColor));font-style:var(--shiki-light-font-style,inherit);font-weight:var(--shiki-light-font-weight,inherit)}.dou-editor__content--divider{cursor:default;padding-block-start:12px;padding-block-end:12px}.dou-editor__content--divider>hr{background-color:var(--dou-color-border);border:none;height:1px;margin:0}.dou-editor__content--divider.ProseMirror-selectednode>hr{background-color:var(--dou-color-focus)}.dou-editor__surface strong{font-weight:var(--dou-font-weight-bold)}.dou-editor__surface u{text-underline-offset:.2em}.dou-editor__surface s u{text-decoration:underline line-through}.dou-editor__surface u s{text-decoration:underline line-through}.dou-editor__surface :not(pre)>code{background-color:var(--dou-color-bg-muted);box-shadow:inset 0 0 0 1px var(--dou-color-border-subtle);font-family:var(--dou-font-family-mono);border-radius:4px;padding:.1em .3em;font-size:.875em}.dou-editor__link{color:inherit;text-decoration:underline;text-decoration-color:var(--dou-color-border-strong);text-decoration-thickness:1px;text-underline-offset:.2em;transition:text-decoration-color var(--dou-motion-duration-fast)var(--dou-motion-easing)}.dou-editor__link:hover{text-decoration-color:currentColor}.dou-editor.is-readonly .dou-editor__link,.dou-editor.is-comparing .dou-editor__link{cursor:pointer}.dou-editor__comment{transition:background-color var(--dou-motion-duration-fast)var(--dou-motion-easing);border-bottom:2px solid #0000}.dou-editor__comment-pending{background-color:color-mix(in oklab,var(--dou-color-focus)16%,transparent)}.dou-editor-comment{box-sizing:border-box;max-height:min(var(--dou-floating-available,100vh),480px,calc(100vh - 32px));overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-container);background-color:color-mix(in oklab,var(--dou-color-text)calc(4%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));box-shadow:var(--dou-shadow-md);font-family:var(--dou-font-family);width:min(340px,100vw - 32px);padding:12px;line-height:normal}.dou-editor__content.is-empty:after{content:attr(data-placeholder);position:absolute;top:calc(var(--dou-editor-block-gap)/2);color:var(--dou-color-text-tertiary);pointer-events:none;user-select:none;white-space:nowrap}.dou-editor__content.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:0}.dou-editor__content.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:0}.dou-editor__content.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:0}.dou-editor__content.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:0}.dou-editor__content.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:0}.dou-editor__content.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:0}.dou-editor__content.is-list.is-empty:after{top:var(--dou-editor-list-top)}.dou-editor__content--bulletItem.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--checkItem.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:24px}.dou-editor__content--checkItem.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:24px}.dou-editor__content--checkItem.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:24px}.dou-editor__content--checkItem.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:24px}.dou-editor__content--checkItem.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:24px}.dou-editor__content--checkItem.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:24px}.dou-editor__content--quote.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:14px}.dou-editor__content--quote.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:14px}.dou-editor__content--quote.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:14px}.dou-editor__content--quote.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:14px}.dou-editor__content--quote.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:14px}.dou-editor__content--quote.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:14px}.dou-editor__diff-added:before,.dou-editor__diff-changed:before,.dou-editor__diff-removed-block:before{position:absolute;content:"";border-radius:2px;width:3px;top:2px;bottom:2px}.dou-editor__diff-added:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-added:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-added:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-changed:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-changed:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-changed:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-removed-block:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-removed-block:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-removed-block:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-added:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-added:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-added:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-changed:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-changed:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-changed:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-removed-block:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-removed-block:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-removed-block:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-added:before{background-color:var(--dou-color-success)}.dou-editor__diff-changed:before{background-color:var(--dou-color-warning)}.dou-editor__diff-added-text{background-color:color-mix(in oklab,var(--dou-color-success)14%,transparent);text-decoration:underline 1px var(--dou-color-success);text-underline-offset:3px}.dou-editor__diff-removed{background-color:color-mix(in oklab,var(--dou-color-danger)12%,transparent);color:var(--dou-color-danger-text);text-decoration:line-through 1px}.dou-editor__diff-removed-block{position:relative;color:var(--dou-color-danger-text);text-decoration:line-through 1px;white-space:pre-wrap;user-select:none;padding:3px 0}.dou-editor__diff-removed-block:before{background-color:var(--dou-color-danger)}.dou-editor__block.is-selected{background-color:var(--dou-editor-selected)}.dou-editor__block.is-selected+.dou-editor__block.is-selected:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected .dou-editor__block.is-selected{background-color:#0000}.dou-editor__block.is-selected>.dou-editor__content--codeBlock{background-image:linear-gradient(var(--dou-editor-selected),var(--dou-editor-selected))}.dou-editor .is-block-selecting{caret-color:transparent}.dou-editor .is-block-selecting ::selection{background-color:#0000}.dou-editor.is-dragging .dou-editor__block.is-selected{opacity:.45}.dou-editor__handle{position:absolute;z-index:1;display:flex;height:var(--dou-editor-line,24px);align-items: center;gap:2px;transform:translate(calc(-100% - 6px))}.dou-editor__handle-button{display:inline-flex;color:var(--dou-color-text-tertiary);cursor:pointer;transition-property:background-color,color;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items: center;width:22px;height:24px;margin:0;padding:0}.dou-editor__handle-button>svg{width:16px;height:16px}.dou-editor__handle-button:hover{background-color:var(--dou-editor-control-hover);color:var(--dou-color-text-secondary)}.dou-editor__handle-button[aria-expanded=true]{background-color:var(--dou-editor-control-hover);color:var(--dou-color-text-secondary)}.dou-editor__grip{position:relative;cursor:grab;touch-action:none;width:18px}@media (pointer:coarse){.dou-editor__handle{transform:translate(calc(-100% - 4px))}.dou-editor__add{display:none}.dou-editor__grip{height:max(28px,var(--dou-editor-line,28px));-webkit-touch-callout:none;user-select:none;width:24px}.dou-editor__grip:before{content:"";position:absolute;inset:-8px -4px}}.dou-editor__ghost{position:fixed;z-index:2000;box-sizing:border-box;overflow:hidden;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-md);opacity:.88;pointer-events:none;max-height:160px;padding:6px 12px;top:0;left:0}.dou-editor__ghost>.dou-editor__block:first-child>.dou-editor__content{margin-top:0}.dou-editor__drop{position:absolute;background-color:var(--dou-color-focus);pointer-events:none;border-radius:1px;height:2px;margin-top:-1px}.dou-editor__drop.is-vertical{width:2px;height:auto;margin-top:0;margin-left:-1px}.dou-editor__mention{background-color:var(--dou-color-bg-muted);color:var(--dou-color-text);white-space:nowrap;border-radius:4px;padding:0 2px;font-weight:500}.dou-editor-mention{max-height:min(var(--dou-floating-available,100vh),288px);width:240px}.dou-editor-mention__item{gap:10px;height:auto;padding:6px 8px}.dou-editor-mention__item:focus{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-mention__item.is-active{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-mention__text{display:flex;flex-direction:column;flex:auto;gap:6px;min-width:0}.dou-editor-mention__label,.dou-editor-mention__description{overflow-x:clip;text-box:trim-both cap alphabetic;text-overflow:ellipsis;white-space:nowrap}.dou-editor-mention__description{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm)}.dou-editor-slash{max-height:min(var(--dou-floating-available,100vh),336px);width:288px}.dou-editor-slash__item{gap:10px;height:auto;padding:6px 8px 6px 6px}.dou-editor-slash__item:focus{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-slash__item.is-active{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-slash__icon{display:inline-flex;box-sizing:border-box;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-surface);color:var(--dou-color-text-secondary);flex:none;justify-content:center;align-items: center;width:32px;height:32px}.dou-editor-slash__icon>svg{width:18px;height:18px}.dou-editor-slash__text{display:flex;flex-direction:column;flex:auto;gap:6px;min-width:0}.dou-editor-slash__label,.dou-editor-slash__hint{overflow-x:clip;text-box:trim-both cap alphabetic;text-overflow:ellipsis}.dou-editor-slash__hint{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm)}.dou-editor-slash__shortcut{color:var(--dou-color-text-tertiary);font-family:var(--dou-font-family-mono);font-size:var(--dou-font-size-sm);text-box:trim-both cap alphabetic;flex:none}.dou-editor-slash__empty{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);padding:8px}.dou-editor__content--table{overflow-x:auto;overscroll-behavior-x:contain;margin-block-start:4px;margin-block-end:4px;padding-block-start:8px;padding-block-end:4px}.dou-editor-table{border-collapse:collapse;table-layout:fixed;font-size:inherit;line-height:inherit}.dou-editor-table td{position:relative;box-sizing:border-box;border:1px solid var(--dou-color-border);text-align:start;vertical-align:top;white-space:pre-wrap;min-width:48px;padding:6px 10px}.dou-editor-table th{position:relative;box-sizing:border-box;border:1px solid var(--dou-color-border);text-align:start;vertical-align:top;white-space:pre-wrap;min-width:48px;padding:6px 10px}.dou-editor-table th{background-color:var(--dou-color-bg-muted);font-weight:600}.ProseMirror-hideselection .dou-editor-table *::selection{background:0 0}.ProseMirror-hideselection .dou-editor-table{caret-color:transparent}.dou-editor-table .selectedCell:after{content:"";position:absolute;background-color:var(--dou-editor-selected);pointer-events:none;inset:0}.dou-editor-table .column-resize-handle{position:absolute;z-index:1;background-color:var(--dou-color-focus);pointer-events:none;width:3px;top:-1px;bottom:-1px}.dou-editor-table .column-resize-handle:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-2px}.dou-editor-table .column-resize-handle:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-2px}.dou-editor-table .column-resize-handle:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-2px}.dou-editor-table .column-resize-handle:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-2px}.dou-editor-table .column-resize-handle:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-2px}.dou-editor-table .column-resize-handle:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-2px}.dou-editor__surface.resize-cursor{cursor:col-resize}.dou-editor-table__handle{position:absolute;z-index:2;display:inline-flex;border:1px solid var(--dou-color-border);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-sm);color:var(--dou-color-text-tertiary);cursor:pointer;transition-property:background-color,color;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);touch-action:none;border-radius:4px;justify-content:center;align-items: center;margin:0;padding:0;transform:translate(-50%,-50%)}.dou-editor-table__handle.is-column{width:24px;height:14px}.dou-editor-table__handle.is-row{width:14px;height:24px}.dou-editor-table__handle:before{content:"";position:absolute;inset:-4px}@media (pointer:coarse){.dou-editor-table__handle.is-column{width:32px;height:18px}.dou-editor-table__handle.is-row{width:18px;height:32px}.dou-editor-table__handle:before{inset:-10px}}.dou-editor-table__handle svg{width:14px;height:14px}.dou-editor-table__handle:hover{background-color:color-mix(in oklab,var(--dou-color-text)calc(6% + 6%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));color:var(--dou-color-text)}.dou-editor-table__handle.is-active{background-color:color-mix(in oklab,var(--dou-color-text)calc(6% + 6%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));color:var(--dou-color-text)}.dou-editor-table__add{position:absolute;z-index:1;display:inline-flex;box-sizing:border-box;color:var(--dou-color-text-tertiary);cursor:pointer;opacity:.6;transition-property:background-color,color,opacity;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);background-color:#0000;border:none;border-radius:4px;justify-content:center;align-items: center;margin:0;padding:0}.dou-editor-table__add.is-column{width:16px;margin-inline-start:4px}.dou-editor-table__add.is-row{height:16px;margin-block-start:4px}.dou-editor-table__add svg{width:14px;height:14px}.dou-editor-table__add:hover{background-color:var(--dou-editor-control-hover);color:var(--dou-color-text);opacity:1}@media (pointer:coarse){.dou-editor-table__add{opacity:1}.dou-editor-table__add.is-column{width:24px}.dou-editor-table__add.is-row{height:24px}.dou-editor-table .column-resize-handle{display:none}}.dou-editor-table__ghost{overflow:hidden;padding:0}.dou-editor-table__ghost .dou-editor-table{width:auto;margin:0}.dou-editor-table__cells{position:absolute;z-index:3;display:flex;border:1px solid var(--dou-color-border);border-radius:calc(var(--dou-radius-control) + 2px);background-color:color-mix(in oklab,var(--dou-color-text)calc(4%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));box-shadow:var(--dou-shadow-md);font-size:var(--dou-font-size-sm);white-space:nowrap;gap:2px;padding:3px;line-height:normal;transform:translate(-50%,calc(-100% - 6px))}.dou-editor-table__cells.is-below{transform:translate(-50%,6px)}.dou-editor-table__cells-button{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text);font:inherit;cursor:pointer;background:0 0;border:none;align-items: center;gap:4px;height:26px;margin:0;padding-inline-start:8px;padding-inline-end:8px}.dou-editor-table__cells-button svg{color:var(--dou-color-text-secondary);width:14px;height:14px}.dou-editor-table__cells-button:hover:not(:disabled){background-color:var(--dou-editor-control-hover)}.dou-editor-table__cells-button:disabled{color:var(--dou-color-text-tertiary);cursor:default}.dou-editor-bubble{border:1px solid var(--dou-color-border);border-radius:calc(var(--dou-radius-control) + 4px);background-color:color-mix(in oklab,var(--dou-color-text)calc(4%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));box-shadow:var(--dou-shadow-md);color:var(--dou-color-text);font-family:var(--dou-font-family);font-size:var(--dou-font-size-md);padding:4px;line-height:normal}.dou-editor-bubble__type{gap:4px}.dou-editor-bubble__type svg{color:var(--dou-color-text-tertiary)}.dou-editor-bubble__link{display:flex;align-items: center;gap:4px}.dou-editor-bubble__link>.dou-input{width:240px}.dou-editor__content--image{padding-block-start:6px;padding-block-end:6px}.dou-editor-image__figure{width:-moz-fit-content;width:fit-content;min-width:min(100%,240px);max-width:100%;margin:0 auto}.dou-editor-image__frame{position:relative;border-radius:var(--dou-radius-control);width:-moz-fit-content;width:fit-content;max-width:100%;margin:0 auto;line-height:0}.dou-editor-image__img{display:block;border-radius:inherit;outline:1px solid color-mix(in oklab,var(--dou-color-text)8%,transparent);outline-offset:-1px;max-width:100%;height:auto}.dou-editor-image__figure.is-sized .dou-editor-image__frame,.dou-editor-image__figure.is-sized .dou-editor-image__img{width:100%}.dou-editor-image.is-selected .dou-editor-image__img{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor-image__status{position:absolute;display:flex;border-radius:inherit;background-color:color-mix(in oklab,var(--dou-color-bg-surface)72%,transparent);color:var(--dou-color-text-secondary);font-size:var(--dou-font-size-md);justify-content:center;align-items: center;gap:8px;line-height:normal;inset:0}.dou-editor-image__status.is-failed{color:var(--dou-color-danger-text)}.dou-editor-image__handle{position:absolute;border:1px solid color-mix(in oklab,var(--dou-color-bg-surface)70%,transparent);border-radius:var(--dou-radius-full);background-color:color-mix(in oklab,var(--dou-color-text)55%,transparent);cursor:ew-resize;opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);touch-action:none;width:6px;height:40px;max-height:50%;top:50%;transform:translateY(-50%)}.dou-editor-image__handle:before{position:absolute;content:"";inset:-4px -9px}.dou-editor-image__handle.is-left{left:8px}.dou-editor-image__handle.is-right{right:8px}.dou-editor-image__frame:hover .dou-editor-image__handle,.dou-editor-image.is-selected .dou-editor-image__handle{opacity:1}.dou-editor-image__caption{color:var(--dou-color-text-secondary);font-size:var(--dou-font-size-md);text-align:center;margin-top:6px;line-height:1.5}.dou-editor-image__caption-input{color:inherit;font:inherit;font-size:max(var(--dou-font-size-input-min,0px),1em);text-align:inherit;outline:none;background:0 0;border:none;width:100%;padding:0}.dou-editor-image__caption-input::placeholder{color:var(--dou-color-text-tertiary)}.dou-editor-image__caption-input:placeholder-shown:not(:focus){opacity:0}.dou-editor-image:hover .dou-editor-image__caption-input,.dou-editor-image.is-selected .dou-editor-image__caption-input,.dou-editor-embed:hover .dou-editor-image__caption-input,.dou-editor-embed.is-selected .dou-editor-image__caption-input{opacity:1}.dou-editor-image__empty{display:flex;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:color-mix(in oklab,var(--dou-color-text)3%,var(--dou-color-bg-surface));color:var(--dou-color-text-secondary);font-size:var(--dou-font-size-md);flex-wrap:wrap;align-items: center;gap:8px 12px;padding:12px 14px;line-height:normal}.dou-editor-image.is-selected .dou-editor-image__empty,.dou-editor-attachment.is-selected .dou-editor-image__empty,.dou-editor-embed.is-selected .dou-editor-image__empty{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor-image__empty-icon{color:var(--dou-color-text-tertiary);flex:none;width:18px;height:18px}.dou-editor-image__empty-text{flex:auto}.dou-editor-image__actions,.dou-editor-image__embed{display:flex;gap:8px}.dou-editor-image__embed{flex:240px}.dou-editor-image__embed>.dou-input{flex:auto}.dou-editor__content--attachment,.dou-editor__content--embed{padding-block-start:4px;padding-block-end:4px}.dou-editor-attachment__card{display:flex;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-sm);align-items: center;gap:12px;padding:10px 10px 10px 14px;line-height:normal}.dou-editor-attachment.is-selected .dou-editor-attachment__card{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor-attachment__icon{color:var(--dou-color-text-secondary);flex:none;width:20px;height:20px}.dou-editor-attachment__text{display:flex;flex-direction:column;flex:auto;gap:2px;min-width:0}.dou-editor-attachment__name{overflow-x:clip;color:var(--dou-color-text);font-size:var(--dou-font-size-md);text-overflow:ellipsis;white-space:nowrap;font-weight:500}.dou-editor-attachment__meta{display:flex;color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);font-variant-numeric:tabular-nums;align-items: center;gap:6px}.dou-editor-attachment__download{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text-secondary);transition:background-color var(--dou-motion-duration-fast)var(--dou-motion-easing);flex:none;justify-content:center;align-items: center;width:32px;height:32px}.dou-editor-attachment__download>svg{width:16px;height:16px}.dou-editor-attachment__download:hover{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-attachment__download:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:1px}@media (pointer:coarse){.dou-editor-attachment__download{width:40px;height:40px}}.dou-editor-embed__figure{margin:0}.dou-editor-embed__frame{overflow:clip;border-radius:var(--dou-radius-control);background-color:color-mix(in oklab,var(--dou-color-text)4%,var(--dou-color-bg-surface));outline:1px solid color-mix(in oklab,var(--dou-color-text)8%,transparent);outline-offset:-1px;width:100%;line-height:0}.dou-editor-embed__frame>iframe{display:block;border:0;width:100%;height:100%}.dou-editor-embed__frame>video{display:block;border:0;width:100%;height:100%}.dou-editor-embed__frame.is-audio{overflow:visible;outline:none;background:0 0}.dou-editor-embed__frame.is-audio>audio{display:block;width:100%}.dou-editor-embed.is-selected .dou-editor-embed__frame{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor.is-dragging .dou-editor-embed__frame{pointer-events:none}.dou-editor-embed__caption{display:grid;grid-template-columns:var(--dou-control-height-sm)1fr var(--dou-control-height-sm);align-items: center;gap:4px}.dou-editor-embed__caption>.dou-editor-image__caption-input{grid-column:2}.dou-editor-embed__edit{grid-column:3;opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing)}.dou-editor-embed:hover .dou-editor-embed__edit,.dou-editor-embed.is-selected .dou-editor-embed__edit{opacity:1}.dou-editor-embed__edit:focus-visible{opacity:1}@media (pointer:coarse){.dou-editor-embed__edit{opacity:1}}.dou-editor-embed__link{overflow-x:clip;color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);text-overflow:ellipsis;white-space:nowrap;max-width:100%}.dou-editor-embed__error{color:var(--dou-color-danger-text);font-size:var(--dou-font-size-sm);flex-basis:100%}.dou-editor__cursor{position:relative;border-inline-start:2px solid var(--dou-editor-cursor-color);pointer-events:none;word-break:normal;margin-inline-start:-1px;margin-inline-end:-1px}.dou-editor__cursor-label{position:absolute;background-color:var(--dou-editor-cursor-color);color:oklch(from var(--dou-editor-cursor-color)clamp(.2,(.66 - l)*100,.99)0 0);font-family:var(--dou-font-family);font-size:var(--dou-font-size-sm);white-space:nowrap;user-select:none;border-radius:4px 4px 4px 0;padding:0 6px;font-style:normal;font-weight:400;line-height:18px;bottom:100%;left:-2px}.dou-editor__remote-selection{background-color:color-mix(in oklab,var(--dou-editor-cursor-color)20%,transparent)}.dou-editor,.dou-editor-menu,.dou-editor-palette{--dou-editor-color-gray:color-mix(in srgb,#a3a7ad calc(100%*var(--dou-scheme-dark)),#6b6f76);--dou-editor-highlight-gray:color-mix(in srgb,#3a3b3d calc(100%*var(--dou-scheme-dark)),#ececeb);--dou-editor-color-red:color-mix(in srgb,#e58a84 calc(100%*var(--dou-scheme-dark)),#b4453f);--dou-editor-highlight-red:color-mix(in srgb,#4a2826 calc(100%*var(--dou-scheme-dark)),#f8e3e1);--dou-editor-color-orange:color-mix(in srgb,#e0975f calc(100%*var(--dou-scheme-dark)),#b0622a);--dou-editor-highlight-orange:color-mix(in srgb,#4a3222 calc(100%*var(--dou-scheme-dark)),#f9e7d8);--dou-editor-color-yellow:color-mix(in srgb,#d4b44f calc(100%*var(--dou-scheme-dark)),#94761b);--dou-editor-highlight-yellow:color-mix(in srgb,#4a4020 calc(100%*var(--dou-scheme-dark)),#f8efc8);--dou-editor-color-green:color-mix(in srgb,#7fbf8c calc(100%*var(--dou-scheme-dark)),#3f7f4f);--dou-editor-highlight-green:color-mix(in srgb,#253d2b calc(100%*var(--dou-scheme-dark)),#e1f0e2);--dou-editor-color-blue:color-mix(in srgb,#7fa7d9 calc(100%*var(--dou-scheme-dark)),#3b6ea8);--dou-editor-highlight-blue:color-mix(in srgb,#23334a calc(100%*var(--dou-scheme-dark)),#e1ebf7);--dou-editor-color-purple:color-mix(in srgb,#b69ad6 calc(100%*var(--dou-scheme-dark)),#7a52a3);--dou-editor-highlight-purple:color-mix(in srgb,#352a47 calc(100%*var(--dou-scheme-dark)),#ece4f5);--dou-editor-color-pink:color-mix(in srgb,#dd8ab4 calc(100%*var(--dou-scheme-dark)),#a8467a);--dou-editor-highlight-pink:color-mix(in srgb,#46283a calc(100%*var(--dou-scheme-dark)),#f6e2ec)}.dou-editor__color,.dou-editor-palette span[data-color]{color:var(--dou-editor-text-color,inherit)}.dou-editor__highlight,.dou-editor-palette mark[data-color]{background-color:var(--dou-editor-mark-color,var(--dou-editor-highlight-yellow));color:inherit;box-decoration-break:clone;border-radius:2px}.dou-editor__color[data-color=gray],.dou-editor-palette span[data-color=gray],.dou-editor-colors__swatch[data-color=gray]{--dou-editor-text-color:var(--dou-editor-color-gray)}.dou-editor__highlight[data-color=gray],.dou-editor-palette mark[data-color=gray],.dou-editor-colors__swatch[data-highlight=gray]{--dou-editor-mark-color:var(--dou-editor-highlight-gray)}.dou-editor__color[data-color=red],.dou-editor-palette span[data-color=red],.dou-editor-colors__swatch[data-color=red]{--dou-editor-text-color:var(--dou-editor-color-red)}.dou-editor__highlight[data-color=red],.dou-editor-palette mark[data-color=red],.dou-editor-colors__swatch[data-highlight=red]{--dou-editor-mark-color:var(--dou-editor-highlight-red)}.dou-editor__color[data-color=orange],.dou-editor-palette span[data-color=orange],.dou-editor-colors__swatch[data-color=orange]{--dou-editor-text-color:var(--dou-editor-color-orange)}.dou-editor__highlight[data-color=orange],.dou-editor-palette mark[data-color=orange],.dou-editor-colors__swatch[data-highlight=orange]{--dou-editor-mark-color:var(--dou-editor-highlight-orange)}.dou-editor__color[data-color=yellow],.dou-editor-palette span[data-color=yellow],.dou-editor-colors__swatch[data-color=yellow]{--dou-editor-text-color:var(--dou-editor-color-yellow)}.dou-editor__highlight[data-color=yellow],.dou-editor-palette mark[data-color=yellow],.dou-editor-colors__swatch[data-highlight=yellow]{--dou-editor-mark-color:var(--dou-editor-highlight-yellow)}.dou-editor__color[data-color=green],.dou-editor-palette span[data-color=green],.dou-editor-colors__swatch[data-color=green]{--dou-editor-text-color:var(--dou-editor-color-green)}.dou-editor__highlight[data-color=green],.dou-editor-palette mark[data-color=green],.dou-editor-colors__swatch[data-highlight=green]{--dou-editor-mark-color:var(--dou-editor-highlight-green)}.dou-editor__color[data-color=blue],.dou-editor-palette span[data-color=blue],.dou-editor-colors__swatch[data-color=blue]{--dou-editor-text-color:var(--dou-editor-color-blue)}.dou-editor__highlight[data-color=blue],.dou-editor-palette mark[data-color=blue],.dou-editor-colors__swatch[data-highlight=blue]{--dou-editor-mark-color:var(--dou-editor-highlight-blue)}.dou-editor__color[data-color=purple],.dou-editor-palette span[data-color=purple],.dou-editor-colors__swatch[data-color=purple]{--dou-editor-text-color:var(--dou-editor-color-purple)}.dou-editor__highlight[data-color=purple],.dou-editor-palette mark[data-color=purple],.dou-editor-colors__swatch[data-highlight=purple]{--dou-editor-mark-color:var(--dou-editor-highlight-purple)}.dou-editor__color[data-color=pink],.dou-editor-palette span[data-color=pink],.dou-editor-colors__swatch[data-color=pink]{--dou-editor-text-color:var(--dou-editor-color-pink)}.dou-editor__highlight[data-color=pink],.dou-editor-palette mark[data-color=pink],.dou-editor-colors__swatch[data-highlight=pink]{--dou-editor-mark-color:var(--dou-editor-highlight-pink)}.dou-editor-colors__swatch{display:inline-flex;box-sizing:border-box;border:1px solid var(--dou-color-border);border-radius:calc(var(--dou-radius-control) - 2px);background-color:var(--dou-editor-mark-color,transparent);color:var(--dou-editor-text-color,var(--dou-color-text));font-size:var(--dou-font-size-sm);font-weight:var(--dou-font-weight-bold);justify-content:center;align-items: center;width:20px;height:20px;line-height:1}.dou-editor-colors__letter{display:block;text-box:trim-both cap alphabetic}.dou-editor__search{position:sticky;z-index:5;display:flex;container-type:inline-size;pointer-events:none;justify-content:flex-end;align-items: flex-start;height:0;top:8px}.dou-editor__search>*{pointer-events:auto}.dou-editor__match{background-color:var(--dou-editor-match);border-radius:2px}.dou-editor__match.is-current{box-shadow:0 0 0 1px var(--dou-editor-match-current)}}
|
|
1
|
+
@layer dou.components{.dou-editor{--dou-editor-font-size:var(--dou-font-size-lg);--dou-editor-line-height:1.7;--dou-editor-gutter:56px;--dou-editor-indent:24px;--dou-editor-column-gap:48px;--dou-editor-block-gap:4px;--dou-editor-list-gap:4px;--dou-editor-reading-width:none;--dou-editor-selected:color-mix(in oklab,var(--dou-color-focus)calc(12% + 10%*var(--dou-scheme-dark)),transparent);--dou-editor-scroll-shadow:color-mix(in oklab,var(--dou-color-text)14%,transparent);--dou-editor-control-hover:color-mix(in oklab,var(--dou-color-text)6%,transparent);--dou-editor-match:color-mix(in oklab,var(--dou-color-warning)22%,transparent);--dou-editor-match-current:color-mix(in oklab,var(--dou-color-warning-text)80%,transparent);--dou-editor-comment-bg:color-mix(in oklab,var(--dou-color-warning)18%,transparent);--dou-editor-comment-bg-active:color-mix(in oklab,var(--dou-color-warning)36%,transparent);--dou-editor-comment-line:color-mix(in oklab,var(--dou-color-warning)72%,transparent);position:relative;box-sizing:border-box;color:var(--dou-color-text);font-family:var(--dou-font-family);font-size:max(var(--dou-font-size-input-min,0px),var(--dou-editor-font-size));line-height:var(--dou-editor-line-height);overflow-wrap:break-word;width:100%;min-width:0;padding-inline-start:var(--dou-editor-gutter)}.dou-editor.is-readonly{--dou-editor-gutter:0px}.dou-editor.is-readonly.is-comparing{--dou-editor-gutter:16px}@media (pointer:coarse){.dou-editor{--dou-editor-gutter:32px;--dou-editor-column-gap:32px}}.dou-editor.is-dragging{cursor:grabbing}.dou-editor.is-dragging *{cursor:grabbing}.dou-editor__live{position:absolute;overflow:hidden;clip-path:inset(50%);white-space:nowrap;width:1px;height:1px}.dou-editor__mount>.dou-editor__surface,.dou-editor__search{padding-inline-start:max(0px,(100% - var(--dou-editor-reading-width) - var(--dou-editor-gutter))/2);padding-inline-end:max(0px,min(100% - var(--dou-editor-reading-width),(100% - var(--dou-editor-reading-width) + var(--dou-editor-gutter))/2))}.dou-editor__surface{min-height:calc(var(--dou-editor-line-height)*1em);outline:none;white-space:pre-wrap;word-wrap:break-word;font-variant-ligatures:none}.dou-editor__block{position:relative;border-radius:4px}.dou-editor__group{padding-inline-start:var(--dou-editor-indent)}.dou-editor__content{position:relative;padding-block:calc(var(--dou-editor-block-gap)/2);font-size:1em;font-weight:inherit;line-height:var(--dou-editor-line-height);margin:0}.dou-editor__block>.dou-editor__content.is-list{--dou-editor-list-top:calc(var(--dou-editor-list-gap)/2);padding-block:var(--dou-editor-list-top)calc(var(--dou-editor-list-gap)/2)}.dou-editor__block>.dou-editor__content.is-list-start{--dou-editor-list-top:calc(max(var(--dou-editor-block-gap),var(--dou-editor-list-gap))/2);margin-top:min(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2)}.dou-editor__block>.dou-editor__content.is-list-start.is-list-after{margin-top:min(0px,var(--dou-editor-block-gap) - var(--dou-editor-list-gap))}.dou-editor__block>.dou-editor__content.is-list-end{padding-bottom:calc(max(var(--dou-editor-block-gap),var(--dou-editor-list-gap))/2);margin-bottom:min(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2)}.dou-editor__group.is-list-end{padding-bottom:max(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2);margin-bottom:min(0px,(var(--dou-editor-block-gap) - var(--dou-editor-list-gap))/2)}.dou-editor__surface>.dou-editor__block:first-child>.dou-editor__content.is-list-start{margin-top:0}.dou-editor__surface>.dou-editor__block:last-child>.is-list-end{margin-bottom:0}.dou-editor__content--heading{--dou-editor-line-height:1.4;font-weight:var(--dou-font-weight-bold);letter-spacing:-.01em;margin-top:.6em}.dou-editor__content--heading:-webkit-any(h1){margin-top:.8em;font-size:1.75em}.dou-editor__content--heading:-moz-any(h1){margin-top:.8em;font-size:1.75em}.dou-editor__content--heading:is(h1){margin-top:.8em;font-size:1.75em}.dou-editor__content--heading:-webkit-any(h2){font-size:1.375em}.dou-editor__content--heading:-moz-any(h2){font-size:1.375em}.dou-editor__content--heading:is(h2){font-size:1.375em}.dou-editor__content--heading:-webkit-any(h3){font-size:1.125em}.dou-editor__content--heading:-moz-any(h3){font-size:1.125em}.dou-editor__content--heading:is(h3){font-size:1.125em}.dou-editor__surface>.dou-editor__block:first-child>.dou-editor__content--heading{margin-top:0}.dou-editor__content--bulletItem,.dou-editor__content--numberedItem{padding-inline-start:var(--dou-editor-indent)}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):before{position:absolute;width:var(--dou-editor-indent)}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:0}:is(.dou-editor__content--bulletItem,.dou-editor__content--numberedItem):is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:0}.dou-editor__content--bulletItem:before{content:"";top:calc(var(--dou-editor-list-top) + var(--dou-editor-line-height)*.5em - 3px);box-sizing:border-box;color:var(--dou-color-text-secondary);background-color:currentColor;border-radius:50%;width:6px;height:6px}.dou-editor__content--bulletItem:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:7px}.dou-editor__content--bulletItem:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:7px}.dou-editor__content--bulletItem:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:7px}.dou-editor__content--bulletItem:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:7px}.dou-editor__content--bulletItem:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:7px}.dou-editor__content--bulletItem:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:7px}.dou-editor__group .dou-editor__content--bulletItem:before{background-color:#0000;border:1.5px solid}.dou-editor__content--numberedItem:before{content:attr(data-index)".";top:var(--dou-editor-list-top);box-sizing:border-box;color:var(--dou-color-text-secondary);font-variant-numeric:tabular-nums;text-align:end;padding-inline-end:6px}.dou-editor__content--checkItem{display:flex;gap:8px}.dou-editor__check{display:inline-flex;height:calc(var(--dou-editor-line-height)*1em);user-select:none;flex:none;align-items: center}.dou-editor__checkbox{display:inline-flex;box-sizing:border-box;border:1px solid var(--dou-color-border-strong);border-radius:calc(var(--dou-radius-control) - 2px);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-sm);color:var(--dou-color-neutral-on);cursor:pointer;transition-property:background-color,border-color,box-shadow;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);justify-content:center;align-items: center;width:16px;height:16px;margin:0;padding:0}.dou-editor__checkbox>svg{opacity:0;transition-property:opacity,transform;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);width:100%;height:100%;transform:scale(.6)}.dou-editor__checkbox:hover:not(:disabled){border-color:color-mix(in oklab,var(--dou-color-neutral)45%,var(--dou-color-border-strong))}.dou-editor__checkbox:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor__checkbox:disabled{cursor:default}.dou-editor__content--checkItem[data-checked=true] .dou-editor__checkbox{border-color:color-mix(in oklab,var(--dou-color-neutral)90%,var(--dou-color-edge));background-color:var(--dou-color-neutral);box-shadow:var(--dou-shadow-highlight),0 1px 2px color-mix(in oklab,var(--dou-color-neutral)24%,transparent)}.dou-editor__content--checkItem[data-checked=true] .dou-editor__checkbox>svg{opacity:1;transform:none}.dou-editor__content--checkItem[data-checked=true] .dou-editor__text{color:var(--dou-color-text-tertiary);text-decoration:line-through;text-decoration-color:color-mix(in oklab,currentColor 60%,transparent)}.dou-editor__text{flex:auto;min-width:0}.dou-editor__content--quote{box-shadow:inset 2px 0 0 var(--dou-color-border-strong);color:var(--dou-color-text-secondary);padding-inline-start:14px}.dou-editor__content--codeBlock{--dou-editor-line-height:1.7;margin-block:calc(var(--dou-editor-block-gap)/2 + 2px);overflow-x:auto;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-container);background-color:var(--dou-color-bg-muted);font-family:var(--dou-font-family-mono);font-size:var(--dou-font-size-sm);tab-size:2;white-space:pre-wrap;padding:12px 16px}.dou-editor__content--codeBlock>code{font:inherit}.dou-editor-toggle{display:flex;gap:4px}.dou-editor-toggle__control{display:inline-flex;height:calc(var(--dou-editor-line-height)*1em);user-select:none;flex:none;align-items: center;margin-inline-start:-2px}.dou-editor-toggle__button{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items: center;width:22px;height:22px;padding:0}.dou-editor-toggle__button>svg{transition:rotate var(--dou-motion-duration-fast)var(--dou-motion-easing);width:16px;height:16px}.dou-editor-toggle__button.is-open>svg{rotate:90deg}.dou-editor-toggle__button:hover{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-toggle__button:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:-2px}.dou-editor__block.is-collapsed>.dou-editor__group{display:none}.dou-editor-callout{--dou-editor-callout-tone:var(--dou-color-text-secondary);display:flex;border:1px solid color-mix(in oklab,var(--dou-editor-callout-tone)22%,var(--dou-color-border));border-radius:var(--dou-radius-container);background-color:color-mix(in oklab,var(--dou-editor-callout-tone)6%,var(--dou-color-bg-surface));gap:8px;margin-block-start:2px;margin-block-end:2px;padding:8px 12px}.dou-editor-callout.is-tip{--dou-editor-callout-tone:var(--dou-color-success)}.dou-editor-callout.is-warning{--dou-editor-callout-tone:var(--dou-color-warning)}.dou-editor-callout.is-danger{--dou-editor-callout-tone:var(--dou-color-danger)}.dou-editor-callout__control{display:inline-flex;height:calc(var(--dou-editor-line-height)*1em);user-select:none;flex:none;align-items: center}.dou-editor-callout__icon{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-editor-callout-tone);background:0 0;border:none;justify-content:center;align-items: center;width:24px;height:24px;padding:0}.dou-editor-callout__icon>svg{width:16px;height:16px}button.dou-editor-callout__icon{cursor:pointer}button.dou-editor-callout__icon:hover{background-color:color-mix(in oklab,var(--dou-editor-callout-tone)12%,transparent)}button.dou-editor-callout__icon[aria-expanded=true]{background-color:color-mix(in oklab,var(--dou-editor-callout-tone)12%,transparent)}button.dou-editor-callout__icon:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:-2px}.dou-editor__content--codeBlock.dou-editor__content--custom{position:relative}.dou-editor-code__pre{font:inherit;white-space:inherit;margin:0}.dou-editor-code__pre>code{display:block;font:inherit}.dou-editor-code__bar{position:absolute;display:flex;border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-muted);font-family:var(--dou-font-family);opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);align-items: center;gap:2px;top:6px;right:6px}.dou-editor__content--codeBlock:hover>.dou-editor-code__bar,.dou-editor-code__bar:focus-within{opacity:1}.dou-editor-code__bar:has([aria-expanded=true]){opacity:1}.dou-editor-code__language{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text-secondary);font:inherit;font-size:var(--dou-font-size-sm);cursor:pointer;background:0 0;border:none;align-items: center;gap:2px;height:24px;padding:0 4px 0 8px}.dou-editor-code__language>svg{width:14px;height:14px}.dou-editor-code__language:hover{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-code__language[aria-expanded=true]{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-code__language:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:-2px}.dou-editor-code__language.is-static{cursor:default;padding-inline-start:8px;padding-inline-end:8px}.dou-editor-code-editor.dou-editor__content--codeBlock{overflow:visible;white-space:normal;transition:border-color var(--dou-motion-duration-fast)var(--dou-motion-easing);padding:0}.dou-editor-code-editor.dou-editor__content--codeBlock:has(>.dou-code-editor.is-focused){border-color:color-mix(in oklab,var(--dou-color-focus)70%,var(--dou-color-text))}.dou-editor-code-editor.dou-editor__content--codeBlock>.dou-editor-code__bar{position:relative;z-index:3;opacity:1;background:0 0;justify-content:flex-end;padding:4px 6px 0 8px;top:auto;right:auto}.dou-editor-code-editor.dou-editor__content--codeBlock>.dou-editor-code__bar>:not(:last-child){margin-inline-end:auto}@media (pointer:coarse){.dou-editor-code__language:not(.is-static){position:relative}.dou-editor-code__language:not(.is-static):after{position:absolute;content:"";inset:min(0px,50% - 20px) 0}}.dou-editor-code__editor.dou-code-editor:not(.is-bordered){--dou-code-editor-bg:transparent;--dou-code-editor-gutter-bg:var(--dou-color-bg-muted);--dou-code-editor-padding-x:16px;--dou-code-editor-padding-y:8px;border-radius:inherit}.dou-editor__token{color:color-mix(in oklab,var(--shiki-dark,currentColor)calc(100%*var(--dou-scheme-dark)),var(--shiki-light,currentColor));font-style:var(--shiki-light-font-style,inherit);font-weight:var(--shiki-light-font-weight,inherit)}.dou-editor__content--divider{cursor:default;padding-block-start:12px;padding-block-end:12px}.dou-editor__content--divider>hr{background-color:var(--dou-color-border);border:none;height:1px;margin:0}.dou-editor__content--divider.ProseMirror-selectednode>hr{background-color:var(--dou-color-focus)}.dou-editor__surface strong{font-weight:var(--dou-font-weight-bold)}.dou-editor__surface u{text-underline-offset:.2em}.dou-editor__surface s u{text-decoration:underline line-through}.dou-editor__surface u s{text-decoration:underline line-through}.dou-editor__surface :not(pre)>code{background-color:var(--dou-color-bg-muted);box-shadow:inset 0 0 0 1px var(--dou-color-border-subtle);font-family:var(--dou-font-family-mono);border-radius:4px;padding:.1em .3em;font-size:.875em}.dou-editor__link{color:inherit;text-decoration:underline;text-decoration-color:var(--dou-color-border-strong);text-decoration-thickness:1px;text-underline-offset:.2em;transition:text-decoration-color var(--dou-motion-duration-fast)var(--dou-motion-easing)}.dou-editor__link:hover{text-decoration-color:currentColor}.dou-editor.is-readonly .dou-editor__link,.dou-editor.is-comparing .dou-editor__link{cursor:pointer}.dou-editor__comment{transition:background-color var(--dou-motion-duration-fast)var(--dou-motion-easing);border-bottom:2px solid #0000}.dou-editor__comment-pending{background-color:color-mix(in oklab,var(--dou-color-focus)16%,transparent)}.dou-editor-comment{box-sizing:border-box;max-height:min(var(--dou-floating-available,100vh),480px,calc(100vh - 32px));overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-container);background-color:color-mix(in oklab,var(--dou-color-text)calc(4%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));box-shadow:var(--dou-shadow-md);font-family:var(--dou-font-family);width:min(340px,100vw - 32px);padding:12px;line-height:normal}.dou-editor__content.is-empty:after{content:attr(data-placeholder);position:absolute;top:calc(var(--dou-editor-block-gap)/2);color:var(--dou-color-text-tertiary);pointer-events:none;user-select:none;white-space:nowrap}.dou-editor__content.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:0}.dou-editor__content.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:0}.dou-editor__content.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:0}.dou-editor__content.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:0}.dou-editor__content.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:0}.dou-editor__content.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:0}.dou-editor__content.is-list.is-empty:after{top:var(--dou-editor-list-top)}.dou-editor__content--bulletItem.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--bulletItem.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--numberedItem.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:var(--dou-editor-indent)}.dou-editor__content--checkItem.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:24px}.dou-editor__content--checkItem.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:24px}.dou-editor__content--checkItem.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:24px}.dou-editor__content--checkItem.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:24px}.dou-editor__content--checkItem.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:24px}.dou-editor__content--checkItem.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:24px}.dou-editor__content--quote.is-empty:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:14px}.dou-editor__content--quote.is-empty:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:14px}.dou-editor__content--quote.is-empty:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:14px}.dou-editor__content--quote.is-empty:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:14px}.dou-editor__content--quote.is-empty:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:14px}.dou-editor__content--quote.is-empty:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:14px}.dou-editor__diff-added:before,.dou-editor__diff-changed:before,.dou-editor__diff-removed-block:before{position:absolute;content:"";border-radius:2px;width:3px;top:2px;bottom:2px}.dou-editor__diff-added:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-added:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-added:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-changed:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-changed:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-changed:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-removed-block:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-removed-block:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-removed-block:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:-12px}.dou-editor__diff-added:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-added:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-added:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-changed:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-changed:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-changed:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-removed-block:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-removed-block:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-removed-block:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:-12px}.dou-editor__diff-added:before{background-color:var(--dou-color-success)}.dou-editor__diff-changed:before{background-color:var(--dou-color-warning)}.dou-editor__diff-added-text{background-color:color-mix(in oklab,var(--dou-color-success)14%,transparent);text-decoration:underline 1px var(--dou-color-success);text-underline-offset:3px}.dou-editor__diff-removed{background-color:color-mix(in oklab,var(--dou-color-danger)12%,transparent);color:var(--dou-color-danger-text);text-decoration:line-through 1px}.dou-editor__diff-removed-block{position:relative;color:var(--dou-color-danger-text);text-decoration:line-through 1px;white-space:pre-wrap;user-select:none;padding:3px 0}.dou-editor__diff-removed-block:before{background-color:var(--dou-color-danger)}.dou-editor__block.is-selected{background-color:var(--dou-editor-selected)}.dou-editor__block.is-selected+.dou-editor__block.is-selected:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected+.dou-editor__block.is-selected:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0;border-top-right-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected:has(+.dou-editor__block.is-selected):is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-bottom-right-radius:0;border-bottom-left-radius:0}.dou-editor__block.is-selected .dou-editor__block.is-selected{background-color:#0000}.dou-editor__block.is-selected>.dou-editor__content--codeBlock{background-image:linear-gradient(var(--dou-editor-selected),var(--dou-editor-selected))}.dou-editor .is-block-selecting{caret-color:transparent}.dou-editor .is-block-selecting ::selection{background-color:#0000}.dou-editor.is-dragging .dou-editor__block.is-selected{opacity:.45}.dou-editor__handle{position:absolute;z-index:1;display:flex;height:var(--dou-editor-line,24px);align-items: center;gap:2px;transform:translate(calc(-100% - 6px))}.dou-editor__handle-button{display:inline-flex;color:var(--dou-color-text-tertiary);cursor:pointer;transition-property:background-color,color;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items: center;width:22px;height:24px;margin:0;padding:0}.dou-editor__handle-button>svg{width:16px;height:16px}.dou-editor__handle-button:hover{background-color:var(--dou-editor-control-hover);color:var(--dou-color-text-secondary)}.dou-editor__handle-button[aria-expanded=true]{background-color:var(--dou-editor-control-hover);color:var(--dou-color-text-secondary)}.dou-editor__handle.is-compact{transform:translate(calc(-100% - 2px))}.dou-editor__handle.is-compact .dou-editor__add{display:none}.dou-editor__grip{position:relative;cursor:grab;touch-action:none;width:18px}@media (pointer:coarse){.dou-editor__handle{transform:translate(calc(-100% - 4px))}.dou-editor__add{display:none}.dou-editor__grip{height:max(28px,var(--dou-editor-line,28px));-webkit-touch-callout:none;user-select:none;width:24px}.dou-editor__grip:before{content:"";position:absolute;inset:-8px -4px}}.dou-editor__ghost{position:fixed;z-index:2000;box-sizing:border-box;overflow:hidden;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-md);opacity:.88;pointer-events:none;max-height:160px;padding:6px 12px;top:0;left:0}.dou-editor__ghost>.dou-editor__block:first-child>.dou-editor__content{margin-top:0}.dou-editor__drop{position:absolute;background-color:var(--dou-color-focus);pointer-events:none;border-radius:1px;height:2px;margin-top:-1px}.dou-editor__drop.is-vertical{width:2px;height:auto;margin-top:0;margin-left:-1px}.dou-editor__mention{background-color:var(--dou-color-bg-muted);color:var(--dou-color-text);white-space:nowrap;border-radius:4px;padding:0 2px;font-weight:500}.dou-editor-mention{max-height:min(var(--dou-floating-available,100vh),288px);width:240px}.dou-editor-mention__item{gap:10px;height:auto;padding:6px 8px}.dou-editor-mention__item:focus{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-mention__item.is-active{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-mention__text{display:flex;flex-direction:column;flex:auto;gap:6px;min-width:0}.dou-editor-mention__label,.dou-editor-mention__description{overflow-x:clip;text-box:trim-both cap alphabetic;text-overflow:ellipsis;white-space:nowrap}.dou-editor-mention__description{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm)}.dou-editor-slash{max-height:min(var(--dou-floating-available,100vh),336px);width:288px}.dou-editor-slash__item{gap:10px;height:auto;padding:6px 8px 6px 6px}.dou-editor-slash__item:focus{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-slash__item.is-active{background-color:var(--dou-dropdown-item-active-bg)}.dou-editor-slash__icon{display:inline-flex;box-sizing:border-box;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-surface);color:var(--dou-color-text-secondary);flex:none;justify-content:center;align-items: center;width:32px;height:32px}.dou-editor-slash__icon>svg{width:18px;height:18px}.dou-editor-slash__text{display:flex;flex-direction:column;flex:auto;gap:6px;min-width:0}.dou-editor-slash__label,.dou-editor-slash__hint{overflow-x:clip;text-box:trim-both cap alphabetic;text-overflow:ellipsis}.dou-editor-slash__hint{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm)}.dou-editor-slash__shortcut{color:var(--dou-color-text-tertiary);font-family:var(--dou-font-family-mono);font-size:var(--dou-font-size-sm);text-box:trim-both cap alphabetic;flex:none}.dou-editor-slash__empty{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);padding:8px}.dou-editor-slash__more{color:var(--dou-color-text-tertiary);flex:none;width:16px;height:16px}.dou-editor-slash__choices{max-height:none;padding:8px}.dou-editor-slash__choices-title{color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);text-box:trim-both cap alphabetic;padding:4px 4px 10px}.dou-editor-slash__unfolded{padding:4px 8px 8px}.dou-editor-slash__unfolded .dou-editor-slash__choices-title{padding-inline-start:0;padding-inline-end:0}.dou-editor-slash__more{transition:rotate var(--dou-motion-duration-fast)var(--dou-motion-easing)}.dou-editor-slash__more.is-unfolded{rotate:90deg}.dou-editor-column-picker{display:flex;gap:6px;padding:2px 4px 4px}.dou-editor-column-picker__bar{background-color:var(--dou-color-bg-muted);cursor:pointer;transition:background-color var(--dou-motion-duration-fast)var(--dou-motion-easing);border-radius:4px;width:24px;height:72px}.dou-editor-column-picker__bar.is-lit{background-color:color-mix(in oklab,var(--dou-color-text)calc(22% + 8%*var(--dou-scheme-dark)),transparent)}@media (pointer:coarse){.dou-editor-column-picker__bar{width:32px}}.dou-editor__content--columns,.dou-editor__content--column{display:none}.dou-editor__content--columns+.dou-editor__group{container:dou-editor-columns/inline-size;display:flex;column-gap:var(--dou-editor-column-gap);flex-wrap:wrap;row-gap:12px;padding-inline-start:0}.dou-editor__content--columns+.dou-editor__group>.dou-editor__block{flex:var(--dou-editor-column-width,1)1 0;min-width:0}.dou-editor__content--column+.dou-editor__group{padding-inline-start:0}.dou-editor__content--column+.dou-editor__group .dou-editor__content--table{padding-inline-start:12px}@media (hover:hover){.dou-editor:not(.is-readonly) .dou-editor__content--columns+.dou-editor__group:hover>.dou-editor__block{outline:1px dashed var(--dou-color-border)}}@container dou-editor-columns (width<=480px){.dou-editor__content--columns+.dou-editor__group>.dou-editor__block{flex-basis:100%}}.dou-editor-columns__bar{position:absolute;z-index:2;outline:none;cursor:col-resize;touch-action:none;width:10px;margin-inline-start:-5px}@media (pointer:coarse){.dou-editor-columns__bar:before{content:"";position:absolute;top:0;bottom:0;left:-15px;right:-15px}}.dou-editor-columns__bar:after{content:"";position:absolute;background-color:var(--dou-color-focus);opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);border-radius:1px;width:2px;top:0;bottom:0}.dou-editor-columns__bar:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:4px}.dou-editor-columns__bar:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:4px}.dou-editor-columns__bar:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{left:4px}.dou-editor-columns__bar:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:4px}.dou-editor-columns__bar:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:4px}.dou-editor-columns__bar:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{right:4px}.dou-editor-columns__bar:hover:after{opacity:1}.dou-editor-columns__bar.is-shown:after{opacity:1}.dou-editor-columns__bar:focus-visible:after{opacity:1}.dou-editor-columns__bar.is-key:not(:-webkit-any(.is-shown,:focus)){pointer-events:none}.dou-editor-columns__bar.is-key:not(:-moz-any(.is-shown,:focus)){pointer-events:none}.dou-editor-columns__bar.is-key:not(:is(.is-shown,:focus)){pointer-events:none}.dou-editor:has(.dou-editor-columns__bar:-webkit-any(:hover,.is-shown)) .dou-editor__handle.is-compact{opacity:0;pointer-events:none}.dou-editor:has(.dou-editor-columns__bar:-moz-any(:hover,.is-shown)) .dou-editor__handle.is-compact{opacity:0;pointer-events:none}.dou-editor:has(.dou-editor-columns__bar:is(:hover,.is-shown)) .dou-editor__handle.is-compact{opacity:0;pointer-events:none}.dou-editor__content--table{display:flex;overflow-x:auto;overscroll-behavior-x:contain;margin-block-start:4px;margin-block-end:4px;padding-block-start:8px;padding-block-end:4px}.dou-editor__content--table>.dou-editor-table{flex:none}.dou-editor__content--table:before{content:"";position:sticky;z-index:1;opacity:0;pointer-events:none;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);flex:none;width:8px}.dou-editor__content--table:after{content:"";position:sticky;z-index:1;opacity:0;pointer-events:none;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);flex:none;width:8px}.dou-editor__content--table:before{background-image:linear-gradient(to right,var(--dou-editor-scroll-shadow),transparent);margin-inline-end:-8px}.dou-editor__content--table:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:calc(-1*var(--dou-editor-frame-start,0px))}.dou-editor__content--table:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:calc(-1*var(--dou-editor-frame-start,0px))}.dou-editor__content--table:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):before{left:calc(-1*var(--dou-editor-frame-start,0px))}.dou-editor__content--table:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:calc(-1*var(--dou-editor-frame-start,0px))}.dou-editor__content--table:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:calc(-1*var(--dou-editor-frame-start,0px))}.dou-editor__content--table:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):before{right:calc(-1*var(--dou-editor-frame-start,0px))}.dou-editor__content--table:after{background-image:linear-gradient(to left,var(--dou-editor-scroll-shadow),transparent);margin-inline-start:-8px}.dou-editor__content--table:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{right:calc(-1*var(--dou-editor-frame-end,0px))}.dou-editor__content--table:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{right:calc(-1*var(--dou-editor-frame-end,0px))}.dou-editor__content--table:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))):after{right:calc(-1*var(--dou-editor-frame-end,0px))}.dou-editor__content--table:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{left:calc(-1*var(--dou-editor-frame-end,0px))}.dou-editor__content--table:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{left:calc(-1*var(--dou-editor-frame-end,0px))}.dou-editor__content--table:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)):after{left:calc(-1*var(--dou-editor-frame-end,0px))}.dou-editor__content--table.is-cut-start:before{opacity:1}.dou-editor__content--table.is-cut-end:after{opacity:1}.dou-editor__mount>.dou-editor__surface>.dou-editor__block>.dou-editor__content--table{--dou-editor-bleed-start:var(--dou-editor-margin-start,0px);--dou-editor-bleed-end:var(--dou-editor-margin-end,0px);--dou-editor-frame-start:var(--dou-editor-bleed-start);--dou-editor-frame-end:min(var(--dou-editor-bleed-end),28px);margin-inline:calc(-1*var(--dou-editor-bleed-start))calc(-1*var(--dou-editor-bleed-end));padding-inline:var(--dou-editor-frame-start)var(--dou-editor-frame-end)}.dou-editor__mount>.dou-editor__surface>.dou-editor__block.is-selected.has-table{background-color:#0000}.dou-editor__mount>.dou-editor__surface>.dou-editor__block.is-selected.has-table:before{content:"";position:absolute;top:0;bottom:0;inset-inline:calc(-1*var(--dou-editor-margin-start,0px))calc(-1*var(--dou-editor-margin-end,0px));border-radius:inherit;background-color:var(--dou-editor-selected);pointer-events:none}.dou-editor__mount>.dou-editor__surface>.dou-editor__block.is-selected.has-table>.dou-editor__content--table{position:relative;z-index:0}.dou-editor-table{border-collapse:collapse;table-layout:fixed;font-size:inherit;line-height:inherit}.dou-editor-table td{position:relative;box-sizing:border-box;border:1px solid var(--dou-color-border);text-align:start;vertical-align:top;white-space:pre-wrap;min-width:48px;padding:6px 10px}.dou-editor-table th{position:relative;box-sizing:border-box;border:1px solid var(--dou-color-border);text-align:start;vertical-align:top;white-space:pre-wrap;min-width:48px;padding:6px 10px}.dou-editor-table th{background-color:var(--dou-color-bg-muted);font-weight:600}.ProseMirror-hideselection .dou-editor-table *::selection{background:0 0}.ProseMirror-hideselection .dou-editor-table{caret-color:transparent}.dou-editor-table .selectedCell:after{content:"";position:absolute;background-color:var(--dou-editor-selected);pointer-events:none;inset:0}.dou-editor-table .column-resize-handle{position:absolute;z-index:1;background-color:var(--dou-color-focus);pointer-events:none;width:3px;top:-1px;bottom:-1px}.dou-editor-table .column-resize-handle:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-2px}.dou-editor-table .column-resize-handle:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-2px}.dou-editor-table .column-resize-handle:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-2px}.dou-editor-table .column-resize-handle:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-2px}.dou-editor-table .column-resize-handle:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-2px}.dou-editor-table .column-resize-handle:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-2px}.dou-editor__surface.resize-cursor{cursor:col-resize}.dou-editor-table__handle{position:absolute;z-index:2;display:inline-flex;border:1px solid var(--dou-color-border);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-sm);color:var(--dou-color-text-tertiary);cursor:pointer;transition-property:background-color,color;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);touch-action:none;border-radius:4px;justify-content:center;align-items: center;margin:0;padding:0;transform:translate(-50%,-50%)}.dou-editor-table__handle.is-column{width:24px;height:14px}.dou-editor-table__handle.is-row{width:14px;height:24px}.dou-editor-table__handle:before{content:"";position:absolute;inset:-4px}@media (pointer:coarse){.dou-editor-table__handle.is-column{width:32px;height:18px}.dou-editor-table__handle.is-row{width:18px;height:32px}.dou-editor-table__handle:before{inset:-10px}}.dou-editor-table__handle svg{width:14px;height:14px}.dou-editor-table__handle:hover{background-color:color-mix(in oklab,var(--dou-color-text)calc(6% + 6%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));color:var(--dou-color-text)}.dou-editor-table__handle.is-active{background-color:color-mix(in oklab,var(--dou-color-text)calc(6% + 6%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));color:var(--dou-color-text)}.dou-editor-table__add{position:absolute;z-index:1;display:inline-flex;box-sizing:border-box;color:var(--dou-color-text-tertiary);cursor:pointer;opacity:.6;transition-property:background-color,color,opacity;transition-duration:var(--dou-motion-duration-fast);transition-timing-function:var(--dou-motion-easing);background-color:#0000;border:none;border-radius:4px;justify-content:center;align-items: center;margin:0;padding:0}.dou-editor-table__add.is-column{width:16px;margin-inline-start:4px}.dou-editor-table__add.is-row{height:16px;margin-block-start:4px}.dou-editor-table__add svg{width:14px;height:14px}.dou-editor-table__add:hover{background-color:var(--dou-editor-control-hover);color:var(--dou-color-text);opacity:1}@media (pointer:coarse){.dou-editor-table__add{opacity:1}.dou-editor-table__add.is-column{width:24px}.dou-editor-table__add.is-row{height:24px}.dou-editor-table .column-resize-handle{display:none}}.dou-editor-table__ghost{overflow:hidden;padding:0}.dou-editor-table__ghost .dou-editor-table{width:auto;margin:0}.dou-editor-table__cells{position:absolute;z-index:3;display:flex;border:1px solid var(--dou-color-border);border-radius:calc(var(--dou-radius-control) + 2px);background-color:color-mix(in oklab,var(--dou-color-text)calc(4%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));box-shadow:var(--dou-shadow-md);font-size:var(--dou-font-size-sm);white-space:nowrap;gap:2px;padding:3px;line-height:normal;transform:translate(-50%,calc(-100% - 6px))}.dou-editor-table__cells.is-below{transform:translate(-50%,6px)}.dou-editor-table__cells-button{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text);font:inherit;cursor:pointer;background:0 0;border:none;align-items: center;gap:4px;height:26px;margin:0;padding-inline-start:8px;padding-inline-end:8px}.dou-editor-table__cells-button svg{color:var(--dou-color-text-secondary);width:14px;height:14px}.dou-editor-table__cells-button:hover:not(:disabled){background-color:var(--dou-editor-control-hover)}.dou-editor-table__cells-button:disabled{color:var(--dou-color-text-tertiary);cursor:default}.dou-editor-bubble{border:1px solid var(--dou-color-border);border-radius:calc(var(--dou-radius-control) + 4px);background-color:color-mix(in oklab,var(--dou-color-text)calc(4%*var(--dou-scheme-dark)),var(--dou-color-bg-surface));box-shadow:var(--dou-shadow-md);color:var(--dou-color-text);font-family:var(--dou-font-family);font-size:var(--dou-font-size-md);padding:4px;line-height:normal}.dou-editor-bubble__type{gap:4px}.dou-editor-bubble__type svg{color:var(--dou-color-text-tertiary)}.dou-editor-bubble__link{display:flex;align-items: center;gap:4px}.dou-editor-bubble__link>.dou-input{width:240px}.dou-editor__content--image{padding-block-start:6px;padding-block-end:6px}.dou-editor-image__figure{width:-moz-fit-content;width:fit-content;min-width:min(100%,240px);max-width:100%;margin:0 auto}.dou-editor-image__frame{position:relative;border-radius:var(--dou-radius-control);width:-moz-fit-content;width:fit-content;max-width:100%;margin:0 auto;line-height:0}.dou-editor-image__img{display:block;border-radius:inherit;outline:1px solid color-mix(in oklab,var(--dou-color-text)8%,transparent);outline-offset:-1px;max-width:100%;height:auto}.dou-editor-image__figure.is-sized .dou-editor-image__frame,.dou-editor-image__figure.is-sized .dou-editor-image__img{width:100%}.dou-editor-image.is-selected .dou-editor-image__img{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor-image__status{position:absolute;display:flex;border-radius:inherit;background-color:color-mix(in oklab,var(--dou-color-bg-surface)72%,transparent);color:var(--dou-color-text-secondary);font-size:var(--dou-font-size-md);justify-content:center;align-items: center;gap:8px;line-height:normal;inset:0}.dou-editor-image__status.is-failed{color:var(--dou-color-danger-text)}.dou-editor-image__handle{position:absolute;border:1px solid color-mix(in oklab,var(--dou-color-bg-surface)70%,transparent);border-radius:var(--dou-radius-full);background-color:color-mix(in oklab,var(--dou-color-text)55%,transparent);cursor:ew-resize;opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing);touch-action:none;width:6px;height:40px;max-height:50%;top:50%;transform:translateY(-50%)}.dou-editor-image__handle:before{position:absolute;content:"";inset:-4px -9px}.dou-editor-image__handle.is-left{left:8px}.dou-editor-image__handle.is-right{right:8px}.dou-editor-image__frame:hover .dou-editor-image__handle,.dou-editor-image.is-selected .dou-editor-image__handle{opacity:1}.dou-editor-image__caption{color:var(--dou-color-text-secondary);font-size:var(--dou-font-size-md);text-align:center;margin-top:6px;line-height:1.5}.dou-editor-image__caption-input{color:inherit;font:inherit;font-size:max(var(--dou-font-size-input-min,0px),1em);text-align:inherit;outline:none;background:0 0;border:none;width:100%;padding:0}.dou-editor-image__caption-input::placeholder{color:var(--dou-color-text-tertiary)}.dou-editor-image__caption-input:placeholder-shown:not(:focus){opacity:0}.dou-editor-image:hover .dou-editor-image__caption-input,.dou-editor-image.is-selected .dou-editor-image__caption-input,.dou-editor-embed:hover .dou-editor-image__caption-input,.dou-editor-embed.is-selected .dou-editor-image__caption-input{opacity:1}.dou-editor-image__empty{display:flex;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:color-mix(in oklab,var(--dou-color-text)3%,var(--dou-color-bg-surface));color:var(--dou-color-text-secondary);font-size:var(--dou-font-size-md);flex-wrap:wrap;align-items: center;gap:8px 12px;padding:12px 14px;line-height:normal}.dou-editor-image.is-selected .dou-editor-image__empty,.dou-editor-attachment.is-selected .dou-editor-image__empty,.dou-editor-embed.is-selected .dou-editor-image__empty{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor-image__empty-icon{color:var(--dou-color-text-tertiary);flex:none;width:18px;height:18px}.dou-editor-image__empty-text{flex:auto}.dou-editor-image__actions,.dou-editor-image__embed{display:flex;gap:8px}.dou-editor-image__embed{flex:240px}.dou-editor-image__embed>.dou-input{flex:auto}.dou-editor__content--attachment,.dou-editor__content--embed{padding-block-start:4px;padding-block-end:4px}.dou-editor-attachment__card{display:flex;border:1px solid var(--dou-color-border);border-radius:var(--dou-radius-control);background-color:var(--dou-color-bg-surface);box-shadow:var(--dou-shadow-sm);align-items: center;gap:12px;padding:10px 10px 10px 14px;line-height:normal}.dou-editor-attachment.is-selected .dou-editor-attachment__card{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor-attachment__icon{color:var(--dou-color-text-secondary);flex:none;width:20px;height:20px}.dou-editor-attachment__text{display:flex;flex-direction:column;flex:auto;gap:2px;min-width:0}.dou-editor-attachment__name{overflow-x:clip;color:var(--dou-color-text);font-size:var(--dou-font-size-md);text-overflow:ellipsis;white-space:nowrap;font-weight:500}.dou-editor-attachment__meta{display:flex;color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);font-variant-numeric:tabular-nums;align-items: center;gap:6px}.dou-editor-attachment__download{display:inline-flex;border-radius:var(--dou-radius-control);color:var(--dou-color-text-secondary);transition:background-color var(--dou-motion-duration-fast)var(--dou-motion-easing);flex:none;justify-content:center;align-items: center;width:32px;height:32px}.dou-editor-attachment__download>svg{width:16px;height:16px}.dou-editor-attachment__download:hover{background-color:color-mix(in oklab,var(--dou-color-text)6%,transparent);color:var(--dou-color-text)}.dou-editor-attachment__download:focus-visible{outline:2px solid var(--dou-color-focus);outline-offset:1px}@media (pointer:coarse){.dou-editor-attachment__download{width:40px;height:40px}}.dou-editor-embed__figure{margin:0}.dou-editor-embed__frame{overflow:clip;border-radius:var(--dou-radius-control);background-color:color-mix(in oklab,var(--dou-color-text)4%,var(--dou-color-bg-surface));outline:1px solid color-mix(in oklab,var(--dou-color-text)8%,transparent);outline-offset:-1px;width:100%;line-height:0}.dou-editor-embed__frame>iframe{display:block;border:0;width:100%;height:100%}.dou-editor-embed__frame>video{display:block;border:0;width:100%;height:100%}.dou-editor-embed__frame.is-audio{overflow:visible;outline:none;background:0 0}.dou-editor-embed__frame.is-audio>audio{display:block;width:100%}.dou-editor-embed.is-selected .dou-editor-embed__frame{outline:2px solid var(--dou-color-focus);outline-offset:2px}.dou-editor.is-dragging .dou-editor-embed__frame{pointer-events:none}.dou-editor-embed__caption{display:grid;grid-template-columns:var(--dou-control-height-sm)1fr var(--dou-control-height-sm);align-items: center;gap:4px}.dou-editor-embed__caption>.dou-editor-image__caption-input{grid-column:2}.dou-editor-embed__edit{grid-column:3;opacity:0;transition:opacity var(--dou-motion-duration-fast)var(--dou-motion-easing)}.dou-editor-embed:hover .dou-editor-embed__edit,.dou-editor-embed.is-selected .dou-editor-embed__edit{opacity:1}.dou-editor-embed__edit:focus-visible{opacity:1}@media (pointer:coarse){.dou-editor-embed__edit{opacity:1}}.dou-editor-embed__link{overflow-x:clip;color:var(--dou-color-text-tertiary);font-size:var(--dou-font-size-sm);text-overflow:ellipsis;white-space:nowrap;max-width:100%}.dou-editor-embed__error{color:var(--dou-color-danger-text);font-size:var(--dou-font-size-sm);flex-basis:100%}.dou-editor__cursor{position:relative;border-inline-start:2px solid var(--dou-editor-cursor-color);pointer-events:none;word-break:normal;margin-inline-start:-1px;margin-inline-end:-1px}.dou-editor__cursor-label{position:absolute;background-color:var(--dou-editor-cursor-color);color:oklch(from var(--dou-editor-cursor-color)clamp(.2,(.66 - l)*100,.99)0 0);font-family:var(--dou-font-family);font-size:var(--dou-font-size-sm);white-space:nowrap;user-select:none;border-radius:4px 4px 4px 0;padding:0 6px;font-style:normal;font-weight:400;line-height:18px;bottom:100%;left:-2px}.dou-editor__remote-selection{background-color:color-mix(in oklab,var(--dou-editor-cursor-color)20%,transparent)}.dou-editor,.dou-editor-menu,.dou-editor-palette{--dou-editor-color-gray:color-mix(in srgb,#a3a7ad calc(100%*var(--dou-scheme-dark)),#6b6f76);--dou-editor-highlight-gray:color-mix(in srgb,#3a3b3d calc(100%*var(--dou-scheme-dark)),#ececeb);--dou-editor-color-red:color-mix(in srgb,#e58a84 calc(100%*var(--dou-scheme-dark)),#b4453f);--dou-editor-highlight-red:color-mix(in srgb,#4a2826 calc(100%*var(--dou-scheme-dark)),#f8e3e1);--dou-editor-color-orange:color-mix(in srgb,#e0975f calc(100%*var(--dou-scheme-dark)),#b0622a);--dou-editor-highlight-orange:color-mix(in srgb,#4a3222 calc(100%*var(--dou-scheme-dark)),#f9e7d8);--dou-editor-color-yellow:color-mix(in srgb,#d4b44f calc(100%*var(--dou-scheme-dark)),#94761b);--dou-editor-highlight-yellow:color-mix(in srgb,#4a4020 calc(100%*var(--dou-scheme-dark)),#f8efc8);--dou-editor-color-green:color-mix(in srgb,#7fbf8c calc(100%*var(--dou-scheme-dark)),#3f7f4f);--dou-editor-highlight-green:color-mix(in srgb,#253d2b calc(100%*var(--dou-scheme-dark)),#e1f0e2);--dou-editor-color-blue:color-mix(in srgb,#7fa7d9 calc(100%*var(--dou-scheme-dark)),#3b6ea8);--dou-editor-highlight-blue:color-mix(in srgb,#23334a calc(100%*var(--dou-scheme-dark)),#e1ebf7);--dou-editor-color-purple:color-mix(in srgb,#b69ad6 calc(100%*var(--dou-scheme-dark)),#7a52a3);--dou-editor-highlight-purple:color-mix(in srgb,#352a47 calc(100%*var(--dou-scheme-dark)),#ece4f5);--dou-editor-color-pink:color-mix(in srgb,#dd8ab4 calc(100%*var(--dou-scheme-dark)),#a8467a);--dou-editor-highlight-pink:color-mix(in srgb,#46283a calc(100%*var(--dou-scheme-dark)),#f6e2ec)}.dou-editor__color,.dou-editor-palette span[data-color]{color:var(--dou-editor-text-color,inherit)}.dou-editor__highlight,.dou-editor-palette mark[data-color]{background-color:var(--dou-editor-mark-color,var(--dou-editor-highlight-yellow));color:inherit;box-decoration-break:clone;border-radius:2px}.dou-editor__color[data-color=gray],.dou-editor-palette span[data-color=gray],.dou-editor-colors__swatch[data-color=gray]{--dou-editor-text-color:var(--dou-editor-color-gray)}.dou-editor__highlight[data-color=gray],.dou-editor-palette mark[data-color=gray],.dou-editor-colors__swatch[data-highlight=gray]{--dou-editor-mark-color:var(--dou-editor-highlight-gray)}.dou-editor__color[data-color=red],.dou-editor-palette span[data-color=red],.dou-editor-colors__swatch[data-color=red]{--dou-editor-text-color:var(--dou-editor-color-red)}.dou-editor__highlight[data-color=red],.dou-editor-palette mark[data-color=red],.dou-editor-colors__swatch[data-highlight=red]{--dou-editor-mark-color:var(--dou-editor-highlight-red)}.dou-editor__color[data-color=orange],.dou-editor-palette span[data-color=orange],.dou-editor-colors__swatch[data-color=orange]{--dou-editor-text-color:var(--dou-editor-color-orange)}.dou-editor__highlight[data-color=orange],.dou-editor-palette mark[data-color=orange],.dou-editor-colors__swatch[data-highlight=orange]{--dou-editor-mark-color:var(--dou-editor-highlight-orange)}.dou-editor__color[data-color=yellow],.dou-editor-palette span[data-color=yellow],.dou-editor-colors__swatch[data-color=yellow]{--dou-editor-text-color:var(--dou-editor-color-yellow)}.dou-editor__highlight[data-color=yellow],.dou-editor-palette mark[data-color=yellow],.dou-editor-colors__swatch[data-highlight=yellow]{--dou-editor-mark-color:var(--dou-editor-highlight-yellow)}.dou-editor__color[data-color=green],.dou-editor-palette span[data-color=green],.dou-editor-colors__swatch[data-color=green]{--dou-editor-text-color:var(--dou-editor-color-green)}.dou-editor__highlight[data-color=green],.dou-editor-palette mark[data-color=green],.dou-editor-colors__swatch[data-highlight=green]{--dou-editor-mark-color:var(--dou-editor-highlight-green)}.dou-editor__color[data-color=blue],.dou-editor-palette span[data-color=blue],.dou-editor-colors__swatch[data-color=blue]{--dou-editor-text-color:var(--dou-editor-color-blue)}.dou-editor__highlight[data-color=blue],.dou-editor-palette mark[data-color=blue],.dou-editor-colors__swatch[data-highlight=blue]{--dou-editor-mark-color:var(--dou-editor-highlight-blue)}.dou-editor__color[data-color=purple],.dou-editor-palette span[data-color=purple],.dou-editor-colors__swatch[data-color=purple]{--dou-editor-text-color:var(--dou-editor-color-purple)}.dou-editor__highlight[data-color=purple],.dou-editor-palette mark[data-color=purple],.dou-editor-colors__swatch[data-highlight=purple]{--dou-editor-mark-color:var(--dou-editor-highlight-purple)}.dou-editor__color[data-color=pink],.dou-editor-palette span[data-color=pink],.dou-editor-colors__swatch[data-color=pink]{--dou-editor-text-color:var(--dou-editor-color-pink)}.dou-editor__highlight[data-color=pink],.dou-editor-palette mark[data-color=pink],.dou-editor-colors__swatch[data-highlight=pink]{--dou-editor-mark-color:var(--dou-editor-highlight-pink)}.dou-editor-colors__swatch{display:inline-flex;box-sizing:border-box;border:1px solid var(--dou-color-border);border-radius:calc(var(--dou-radius-control) - 2px);background-color:var(--dou-editor-mark-color,transparent);color:var(--dou-editor-text-color,var(--dou-color-text));font-size:var(--dou-font-size-sm);font-weight:var(--dou-font-weight-bold);justify-content:center;align-items: center;width:20px;height:20px;line-height:1}.dou-editor-colors__letter{display:block;text-box:trim-both cap alphabetic}.dou-editor__search{position:sticky;z-index:5;display:flex;container-type:inline-size;pointer-events:none;justify-content:flex-end;align-items: flex-start;height:0;top:8px}.dou-editor__search>*{pointer-events:auto}.dou-editor__match{background-color:var(--dou-editor-match);border-radius:2px}.dou-editor__match.is-current{box-shadow:0 0 0 1px var(--dou-editor-match-current)}}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Node as PMNode } from 'prosemirror-model';
|
|
2
2
|
import { Plugin } from 'prosemirror-state';
|
|
3
|
+
import * as Y from 'yjs';
|
|
3
4
|
import type { Binding } from './binding';
|
|
4
5
|
/** What the editor needs of a Yjs awareness instance (`y-protocols/awareness`). */
|
|
5
6
|
export interface AwarenessLike {
|
|
@@ -11,12 +12,39 @@ export interface AwarenessLike {
|
|
|
11
12
|
off(event: 'change', listener: (...args: unknown[]) => void): void;
|
|
12
13
|
}
|
|
13
14
|
/** A place in the text: the block and a position in its text that follows edits. */
|
|
14
|
-
interface
|
|
15
|
+
export interface EditorPresencePlace {
|
|
15
16
|
block: string;
|
|
16
17
|
/** In a table: the cell, `row id:column id`. */
|
|
17
18
|
cell?: string;
|
|
19
|
+
/** A Yjs relative position as JSON (`Y.relativePositionToJSON`). */
|
|
18
20
|
position: unknown;
|
|
19
21
|
}
|
|
22
|
+
type Place = EditorPresencePlace;
|
|
23
|
+
/**
|
|
24
|
+
* Where a person's cursor is, shared in the awareness field `editor`
|
|
25
|
+
* (`null` when they have none). The selection runs from `anchor` to
|
|
26
|
+
* `head`; the cursor with the name is drawn at `head`.
|
|
27
|
+
*/
|
|
28
|
+
export interface EditorPresence {
|
|
29
|
+
anchor: EditorPresencePlace;
|
|
30
|
+
head: EditorPresencePlace;
|
|
31
|
+
}
|
|
32
|
+
/** A place in a block's text, given without an editor. */
|
|
33
|
+
export interface EditorCursorTarget {
|
|
34
|
+
block: string;
|
|
35
|
+
/** In a table: the cell, `row id:column id`. */
|
|
36
|
+
cell?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Where in the text: the number of characters before it (UTF-16 code
|
|
39
|
+
* units, as `string.length` counts them; an inline node such as a mention
|
|
40
|
+
* counts as one). Kept within the text; left out, its end.
|
|
41
|
+
*/
|
|
42
|
+
offset?: number;
|
|
43
|
+
}
|
|
44
|
+
/** Whether blocks of a stored type hold text of their own, e.g. not an image or a divider. */
|
|
45
|
+
export type HoldsText = (type: string) => boolean;
|
|
46
|
+
/** A cursor at `head`, selecting from `anchor`; `null` when either has no text to be in. */
|
|
47
|
+
export declare function cursorIn(map: Y.Map<unknown>, head: EditorCursorTarget, anchor: EditorCursorTarget, holdsText: HoldsText): EditorPresence | null;
|
|
20
48
|
/** A document position as a place that survives other people's edits. */
|
|
21
49
|
export declare function placeOf(binding: Binding, doc: PMNode, pos: number): Place | null;
|
|
22
50
|
/** Back from a place to a document position, or `null` if its block is gone. */
|
|
@@ -2,7 +2,7 @@ import { collaborationColors } from 'dou-ui';
|
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { type EditorExtension } from '../core/extension';
|
|
4
4
|
import { type EditorDocument, type PartialBlock } from '../core/model';
|
|
5
|
-
import { type AwarenessLike } from './cursors';
|
|
5
|
+
import { type AwarenessLike, type EditorCursorTarget, type EditorPresence, type EditorPresencePlace } from './cursors';
|
|
6
6
|
/** How the people editing together see each other. */
|
|
7
7
|
export interface CollaborationUser {
|
|
8
8
|
name: string;
|
|
@@ -32,6 +32,21 @@ export { collaborationColors };
|
|
|
32
32
|
*/
|
|
33
33
|
export declare function collaboration(options: CollaborationOptions): EditorExtension;
|
|
34
34
|
type ExtensionList = (EditorExtension | EditorExtension[])[];
|
|
35
|
+
export interface CursorAtOptions {
|
|
36
|
+
/** Where a selection starts; left out, only a cursor at `head`. */
|
|
37
|
+
anchor?: EditorCursorTarget;
|
|
38
|
+
/** The extensions the editors use, for custom blocks. Defaults to `[editorKit()]`. */
|
|
39
|
+
extensions?: ExtensionList;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The value for the awareness field `editor` that puts a cursor at `head`,
|
|
43
|
+
* selecting from `options.anchor` when given, without an editor: e.g. on
|
|
44
|
+
* the server, for a program writing into the document with `updateMap`, so
|
|
45
|
+
* the people in the editor see where it writes. `null` when the block isn't
|
|
46
|
+
* in the map or has no text, e.g. an image, a divider, or a table without
|
|
47
|
+
* `cell`.
|
|
48
|
+
*/
|
|
49
|
+
export declare function cursorAt(map: Y.Map<unknown>, head: EditorCursorTarget, options?: CursorAtOptions): EditorPresence | null;
|
|
35
50
|
export interface FillMapOptions {
|
|
36
51
|
/** The extensions the editors use, for custom blocks. Defaults to `[editorKit()]`. */
|
|
37
52
|
extensions?: ExtensionList;
|
|
@@ -76,4 +91,4 @@ export interface ReadMapOptions {
|
|
|
76
91
|
* version on the server. An empty map reads as no blocks.
|
|
77
92
|
*/
|
|
78
93
|
export declare function readMap(map: Y.Map<unknown>, options?: ReadMapOptions): EditorDocument;
|
|
79
|
-
export type { AwarenessLike };
|
|
94
|
+
export type { AwarenessLike, EditorCursorTarget, EditorPresence, EditorPresencePlace };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type BlockOptionChoices } from '../core/extension';
|
|
2
|
+
import type { EditorMessages } from '../locale';
|
|
3
|
+
/** The variants of a slash menu option: its title, then the option's own panel or a list. */
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
choices: BlockOptionChoices;
|
|
6
|
+
active: number;
|
|
7
|
+
messages: EditorMessages;
|
|
8
|
+
idPrefix: string;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
hover: (index: number) => any;
|
|
12
|
+
choose: (index: number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onHover?: ((index: number) => any) | undefined;
|
|
15
|
+
onChoose?: ((index: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -14,9 +14,19 @@ export interface BlockInfo {
|
|
|
14
14
|
/** The children, if any. */
|
|
15
15
|
group: PMNode | null;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* How a block lays out its children, from its content node's `layout`
|
|
19
|
+
* spec field: `row` puts them side by side (a set of columns) and only
|
|
20
|
+
* holds `column` blocks; a `column` only sits in a row and holds the
|
|
21
|
+
* blocks shown in it. Such a block has no text of its own.
|
|
22
|
+
*/
|
|
23
|
+
export type BlockLayout = 'row' | 'column';
|
|
24
|
+
export declare const layoutOf: (block: PMNode | null | undefined) => BlockLayout | undefined;
|
|
17
25
|
export declare function infoAt(node: PMNode, pos: number, depth: number): BlockInfo;
|
|
18
26
|
/** The innermost block around a position, or `null` between blocks. */
|
|
19
27
|
export declare function blockAround($pos: ResolvedPos): BlockInfo | null;
|
|
28
|
+
/** The block whose children `info` is one of, or `null` at the top level. */
|
|
29
|
+
export declare function parentBlock(doc: PMNode, info: BlockInfo): BlockInfo | null;
|
|
20
30
|
/** The block with an id, by scanning the document. */
|
|
21
31
|
export declare function findBlockById(doc: PMNode, id: string): BlockInfo | null;
|
|
22
32
|
/** A run of sibling blocks inside one container (the doc or a group). */
|
|
@@ -7,7 +7,10 @@ import type { ContentType } from './schema';
|
|
|
7
7
|
* Turn every block the selection touches into `type`. Text formatting is
|
|
8
8
|
* dropped when it can't be kept (in a code block); a type without text
|
|
9
9
|
* (a divider, an embed) replaces the content and adds an empty paragraph
|
|
10
|
-
* after it to keep typing in.
|
|
10
|
+
* after it to keep typing in. A type that starts with children of its own
|
|
11
|
+
* (`template` in its spec, e.g. columns) is added after the blocks instead,
|
|
12
|
+
* or takes the place of an empty paragraph; blocks that lay out others
|
|
13
|
+
* (columns) are left as they are.
|
|
11
14
|
*/
|
|
12
15
|
export declare function setBlockType(type: ContentType, props?: BlockProps): Command;
|
|
13
16
|
/** Set attributes on the content of the block at `pos`, e.g. tick a to-do. */
|
|
@@ -41,7 +44,11 @@ export declare const sinkBlocks: Command;
|
|
|
41
44
|
* so nothing changes order.
|
|
42
45
|
*/
|
|
43
46
|
export declare const liftBlocks: Command;
|
|
44
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* `Mod+Shift+↑/↓`: swap the selected blocks with their neighbour. At the
|
|
49
|
+
* top or bottom of a column, the blocks move out of the set of columns,
|
|
50
|
+
* above or below it.
|
|
51
|
+
*/
|
|
45
52
|
export declare function swapBlocks(direction: -1 | 1): Command;
|
|
46
53
|
/**
|
|
47
54
|
* Drag and drop: move the blocks of `range` to `target`, a position right
|
|
@@ -49,6 +56,14 @@ export declare function swapBlocks(direction: -1 | 1): Command;
|
|
|
49
56
|
* target is inside the moved blocks. The cursor goes to the first one.
|
|
50
57
|
*/
|
|
51
58
|
export declare function moveRangeTo(range: SiblingRange, target: number): Command;
|
|
59
|
+
/**
|
|
60
|
+
* Drag and drop beside a column: move the blocks of `range` into a new
|
|
61
|
+
* column of the row at `rowPos`, before its column `index` (or after the
|
|
62
|
+
* last). The new column is as wide as the others on average. A column the
|
|
63
|
+
* blocks leave empty goes away. Fails when the row is among the moved
|
|
64
|
+
* blocks or already has as many columns as it may (`maxColumns`).
|
|
65
|
+
*/
|
|
66
|
+
export declare function moveRangeToNewColumn(range: SiblingRange, rowPos: number, index: number): Command;
|
|
52
67
|
/** Remove blocks, keeping at least one empty paragraph in the document. */
|
|
53
68
|
export declare function deleteBlocks(tr: Transaction, blocks: BlockInfo[]): Transaction;
|
|
54
69
|
/** Copies of blocks with fresh ids (the id plugin assigns them). */
|