bto-md-editor 0.1.12 → 0.1.13
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/md-editor.es.js +200 -200
- package/dist/md-editor.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/md-editor.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`.tooltip-wrapper[data-v-2e4633d5]{position:relative;display:inline-flex;align-items:center;line-height:0}.tooltip[data-v-2e4633d5]{position:fixed;transform:translate(-50%);background:#3c3c3cf2;color:#fff;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.2;box-shadow:0 6px 20px #0003;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s ease;pointer-events:none;z-index:1000}.tooltip.visible[data-v-2e4633d5]{opacity:1;visibility:visible}.shortcut[data-v-2e4633d5]{display:inline-block;margin-top:4px;opacity:.9;z-index:1000}.font-size-wrapper[data-v-87f86dca]{position:relative;-webkit-user-select:none;user-select:none}.font-size-wrapper .icon[data-v-87f86dca]{cursor:pointer;width:27px;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:50px;justify-content:space-between;background:var(--bg-base)}.font-size-wrapper .icon[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.font-size-wrapper .label[data-v-87f86dca]{font-size:15px}.dropdown[data-v-87f86dca]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-87f86dca],.dropdown-slide-leave-to[data-v-87f86dca]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-87f86dca],.dropdown-slide-leave-active[data-v-87f86dca]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-87f86dca]{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.text[data-v-87f86dca]{flex:1}.color-select-wrapper[data-v-1656be6b]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none}.icon[data-v-1656be6b]{cursor:default;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-1656be6b]{width:auto;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-1656be6b]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-1656be6b]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:2px;cursor:pointer}.hoverable[data-v-1656be6b]:hover{background:var(--hover-bg-color)}.underline[data-v-1656be6b]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-1656be6b]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform;border:1px solid var(--border-color)}.dropdown-slide-enter-from[data-v-1656be6b],.dropdown-slide-leave-to[data-v-1656be6b]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-1656be6b],.dropdown-slide-leave-active[data-v-1656be6b]{transition:opacity .18s ease,transform .18s ease}.section[data-v-1656be6b]{margin-bottom:8px}.section-title[data-v-1656be6b]{font-size:12px;margin-bottom:6px}.swatches[data-v-1656be6b]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-1656be6b]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-1656be6b]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid var(--border-color);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-1656be6b]{position:absolute;top:0;right:2px;font-size:12px;color:var(--text-base);text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-1656be6b]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-1656be6b]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px;color:var(--text-base)}.advanced[data-v-1656be6b]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-1656be6b]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-1656be6b]{justify-self:end;flex-shrink:1}.svg-icon[data-v-ee8563cd]{display:inline-block;line-height:0;vertical-align:middle}.svg-icon svg[data-v-ee8563cd]{width:1em;height:1em;display:block}.bg-color-select-wrapper[data-v-f414a9de]{position:relative;-webkit-user-select:none;user-select:none}.icon[data-v-f414a9de]{cursor:default;width:19px;height:19px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-f414a9de]{width:auto;padding:0 2px;min-width:20px;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-f414a9de]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-f414a9de]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:4px;cursor:pointer}.hoverable[data-v-f414a9de]:hover{background:var(--hover-bg-color)}.underline[data-v-f414a9de]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-f414a9de]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform}.section[data-v-f414a9de]{margin-bottom:8px}.section-title[data-v-f414a9de]{font-size:12px;color:#666;margin-bottom:6px}.swatches[data-v-f414a9de]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-f414a9de]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-f414a9de]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid rgba(0,0,0,.08);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-f414a9de]{position:absolute;top:0;right:2px;font-size:12px;color:#000;text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-f414a9de]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-f414a9de]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px}.advanced[data-v-f414a9de]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-f414a9de]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-f414a9de]{justify-self:end;flex-shrink:1}.dropdown-slide-enter-from[data-v-f414a9de],.dropdown-slide-leave-to[data-v-f414a9de]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-f414a9de],.dropdown-slide-leave-active[data-v-f414a9de]{transition:opacity .18s ease,transform .18s ease}.image-icon[data-v-6df6e55c]{position:relative}.image-input-panel[data-v-6df6e55c]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.image-input[data-v-6df6e55c]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:4px;outline:none;font-size:14px;background-color:var(--bg-input-bg);color:var(--text-base)}.image-actions[data-v-6df6e55c]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-6df6e55c]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-6df6e55c]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-6df6e55c]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-6df6e55c]:hover{background:#1677ff;opacity:.92}.img-panel-enter-active[data-v-6df6e55c],.img-panel-leave-active[data-v-6df6e55c]{transition:opacity .18s ease,transform .18s ease}.img-panel-enter-from[data-v-6df6e55c],.img-panel-leave-to[data-v-6df6e55c]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.img-panel-enter-to[data-v-6df6e55c],.img-panel-leave-from[data-v-6df6e55c]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.video-icon[data-v-9d5e9345]{position:relative}.video-input-panel[data-v-9d5e9345]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.video-input[data-v-9d5e9345]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:2px;outline:none;font-size:14px;background-color:var(--bg-input-bg);color:var(--text-base)}.video-actions[data-v-9d5e9345]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-9d5e9345]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-9d5e9345]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-9d5e9345]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-9d5e9345]:hover{background:#1677ff;opacity:.92}.video-panel-enter-active[data-v-9d5e9345],.video-panel-leave-active[data-v-9d5e9345]{transition:opacity .18s ease,transform .18s ease}.video-panel-enter-from[data-v-9d5e9345],.video-panel-leave-to[data-v-9d5e9345]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.video-panel-enter-to[data-v-9d5e9345],.video-panel-leave-from[data-v-9d5e9345]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.find-icon[data-v-8c079e6d]{position:relative}.find-input-panel[data-v-8c079e6d]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.fr-header[data-v-8c079e6d]{display:flex;align-items:center;gap:6px;margin-bottom:6px}.fr-tab[data-v-8c079e6d]{border:none;background:transparent;padding:6px 8px;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-base)}.fr-tab.active[data-v-8c079e6d]{border-color:#1a69f8;font-weight:600}.fr-label[data-v-8c079e6d]{display:block;font-size:12px;margin:6px 0 4px}.fr-input-row[data-v-8c079e6d]{display:flex;align-items:center;gap:6px;width:100%}.fr-input[data-v-8c079e6d]{flex:1;padding:8px;border:1px solid var(--border-color);border-radius:2px;background-color:var(--bg-input-bg);color:var(--text-base);outline:none}.fr-count[data-v-8c079e6d]{font-size:12px}.fr-actions[data-v-8c079e6d]{display:flex;gap:8px;margin-top:10px;justify-content:flex-end}.fr-btn[data-v-8c079e6d]{padding:6px 10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;color:var(--text-base)}.fr-btn.primary[data-v-8c079e6d]{color:var(--text-base);background:#1a69f8;border-color:#1a69f8}.find-panel-enter-active[data-v-8c079e6d],.find-panel-leave-active[data-v-8c079e6d]{transition:opacity .18s ease,transform .18s ease}.find-panel-enter-from[data-v-8c079e6d],.find-panel-leave-to[data-v-8c079e6d]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.find-panel-enter-to[data-v-8c079e6d],.find-panel-leave-from[data-v-8c079e6d]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.link-icon[data-v-5344936c]{position:relative}.link-input-panel[data-v-5344936c]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid rgba(0,0,0,.1);background:#fff;border-radius:8px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.field[data-v-5344936c]{margin-bottom:8px}.label[data-v-5344936c]{font-size:12px;color:#666;margin-bottom:6px}.input[data-v-5344936c]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid #e5e7eb;border-radius:8px;outline:none;font-size:14px}.actions[data-v-5344936c]{display:flex;justify-content:flex-end;gap:8px}.btn[data-v-5344936c]{padding:6px 10px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:13px}.btn-primary[data-v-5344936c]{border:none;background:#1677ff;color:#fff}.btn-primary[data-v-5344936c]:hover{background:#1677ff;opacity:.92}.link-panel-enter-active[data-v-5344936c],.link-panel-leave-active[data-v-5344936c]{transition:opacity .18s ease,transform .18s ease}.link-panel-enter-from[data-v-5344936c],.link-panel-leave-to[data-v-5344936c]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.link-panel-enter-to[data-v-5344936c],.link-panel-leave-from[data-v-5344936c]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.table-icon[data-v-7e1c834b]{position:relative}.table-panel[data-v-7e1c834b]{position:absolute;top:32px;right:0;min-width:220px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20}.panel-title[data-v-7e1c834b]{font-size:12px;margin-bottom:6px}.grid[data-v-7e1c834b]{display:flex;flex-direction:column;gap:4px;background:var(--bg-base);border-radius:2px}.row[data-v-7e1c834b]{display:flex;gap:4px}.cell[data-v-7e1c834b]{width:18px;height:18px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:3px;cursor:pointer}.cell.active[data-v-7e1c834b]{background:#e8f1ff;border-color:#1677ff}.size[data-v-7e1c834b]{margin-top:6px;font-size:12px}.table-tools[data-v-1b49653a]{position:relative}.tools-panel[data-v-1b49653a]{position:absolute;top:32px;right:0;min-width:280px;padding:10px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;border:1px solid var(--border-color)}.tools-grid[data-v-1b49653a]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn[data-v-1b49653a]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.icon[data-v-340a85d5]{cursor:default;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;position:relative}.icon[data-v-340a85d5]:hover{background:#0000000d}.icon[data-v-c8360e84]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon[data-v-c8360e84]:hover{background:#0000000d}.heading-select[data-v-b93823aa]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon[data-v-b93823aa]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:52px;justify-content:space-between;background:var(--bg-base)}.icon[data-v-b93823aa]:hover{background:var(--hover-bg-color)}.label[data-v-b93823aa]{font-size:15px;color:var(--text-base)}.dropdown[data-v-b93823aa]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:220px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-b93823aa],.dropdown-slide-leave-to[data-v-b93823aa]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b93823aa],.dropdown-slide-leave-active[data-v-b93823aa]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-b93823aa]{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-b93823aa]:hover{background:#0000000d}.item-label[data-v-b93823aa]{flex:1}.item-label.paragraph[data-v-b93823aa]{font-size:15px}.item-label.level-1[data-v-b93823aa]{font-size:22px;font-weight:600}.item-label.level-2[data-v-b93823aa]{font-size:20px;font-weight:600}.item-label.level-3[data-v-b93823aa]{font-size:18px;font-weight:600}.item-label.level-4[data-v-b93823aa]{font-size:16px}.item-label.level-5[data-v-b93823aa]{font-size:15px}.item-label.level-6[data-v-b93823aa]{font-size:14px}.shortcut[data-v-b93823aa]{font-size:12px}.align-select[data-v-ba0ceb75]{position:relative;margin:0 2px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon_box[data-v-ba0ceb75]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;transition:all .2s ease-in-out;padding:0 6px;background:var(--bg-base);gap:3px}.icon_box[data-v-ba0ceb75]:hover{background:var(--hover-bg-color)}.dropdown[data-v-ba0ceb75]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform;padding:6px}.dropdown-slide-enter-from[data-v-ba0ceb75],.dropdown-slide-leave-to[data-v-ba0ceb75]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-ba0ceb75],.dropdown-slide-leave-active[data-v-ba0ceb75]{transition:opacity .18s ease,transform .18s ease}.options[data-v-ba0ceb75]{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.option[data-v-ba0ceb75]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center}.option[data-v-ba0ceb75]:hover,.option.active[data-v-ba0ceb75]{background:var(--hover-bg-color)}.header_box[data-v-02d54bed]{display:flex;align-items:center;gap:3px;padding:8px;border-bottom:1px solid var(--border-color)}.header_box.disabled[data-v-02d54bed]{pointer-events:none;opacity:.5}.header_box .icon[data-v-02d54bed]{position:relative;cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out}.header_box .icon[data-v-02d54bed]:hover,.header_box .icon.active[data-v-02d54bed]{background:var(--hover-bg-color)}.header_box .icon[aria-disabled=true][data-v-02d54bed]{cursor:not-allowed;opacity:.5}.header_box.dark[data-v-02d54bed] .heading-select .label,.header_box.dark[data-v-02d54bed] .font-size .label{color:#e5e7eb}.header_box.dark[data-v-02d54bed] .heading-select .dropdown,.header_box.dark[data-v-02d54bed] .font-size .dropdown{background:#1f1f21;border-color:#334155;box-shadow:none}.header_box.dark[data-v-02d54bed] .dropdown-item:hover{background:#ffffff0f}.header_box.dark[data-v-02d54bed] .heading-select .item-label,.header_box.dark[data-v-02d54bed] .font-size .text,.header_box.dark[data-v-02d54bed] .heading-select .shortcut{color:#e5e7eb}.header_box.dark[data-v-02d54bed] .color-select .icon-dropdown,.header_box.dark[data-v-02d54bed] .bg-color-select .icon-dropdown,.header_box.dark[data-v-02d54bed] .align-select .icon_box,.header_box.dark[data-v-02d54bed] .bg-color-select .underline{background:#1f1f21;border:1px solid #334155}.header_box.dark[data-v-02d54bed] .bg-color-select .dropdown .swatch[style*=dashed]{border-color:#334155!important}.header_box.dark[data-v-02d54bed] .color-select .hoverable:hover,.header_box.dark[data-v-02d54bed] .bg-color-select .hoverable:hover,.header_box.dark[data-v-02d54bed] .align-select .icon_box:hover{background:#ffffff0f}.header_box.dark[data-v-02d54bed] .color-select .dropdown,.header_box.dark[data-v-02d54bed] .bg-color-select .dropdown,.header_box.dark[data-v-02d54bed] .align-select .dropdown{background:#1f1f21;border:1px solid #334155;box-shadow:none}.header_box.dark[data-v-02d54bed] .align-select .option:hover{background:#ffffff0f}.header_box.dark[data-v-02d54bed] .align-select .option.active{background:#ffffff1a}.header_box.dark[data-v-02d54bed] .color-select .section-title,.header_box.dark[data-v-02d54bed] .bg-color-select .section-title{color:#94a3b8}.header_box.dark[data-v-02d54bed] .color-select .btn,.header_box.dark[data-v-02d54bed] .bg-color-select .btn,.header_box.dark[data-v-02d54bed] .color-select .hex,.header_box.dark[data-v-02d54bed] .bg-color-select .hex{background:#1f1f21;border-color:#334155;color:#e5e7eb}.header_box.dark[data-v-02d54bed] .color-select .swatch,.header_box.dark[data-v-02d54bed] .bg-color-select .swatch{border-color:#ffffff14}.header_box.dark[data-v-02d54bed] .color-select .swatch .check,.header_box.dark[data-v-02d54bed] .bg-color-select .swatch .check{color:#fff;text-shadow:none}.outline-wrapper[data-v-860c5d88]{position:relative;-webkit-user-select:none;user-select:none}.outline[data-v-860c5d88]{border-left:1px solid var(--border-color);padding:8px;box-sizing:border-box;font-size:14px;position:sticky;top:0;align-self:start;height:100%;background:var(--bg-base);display:flex;flex-direction:column;width:0;opacity:0;overflow:hidden;transform:scaleX(0);transform-origin:right center;transition:width .2s ease,transform .2s ease,opacity .2s ease;border-left:none}.outline.isOpen[data-v-860c5d88]{width:240px;opacity:1;transform:scaleX(1);border-left:1px solid var(--border-color)}.outline__listWrap[data-v-860c5d88]{overflow-y:auto;overflow-x:hidden;flex:1 1 auto;min-height:0}.outline__listWrap[data-v-860c5d88]::-webkit-scrollbar{width:6px;height:1px}.outline__listWrap[data-v-860c5d88]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.outline__listWrap[data-v-860c5d88]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.outline__header[data-v-860c5d88]{display:flex;align-items:center;font-weight:600;margin-bottom:8px}.outline__header[data-v-860c5d88]>*{display:inline-flex;gap:6px}.outline__list[data-v-860c5d88]{list-style:none;padding:0;margin:0}.outline__item[data-v-860c5d88]{cursor:pointer;padding:4px 0;color:#333}.outline.dark .outline__item[data-v-860c5d88]{color:#e5e7eb}.outline__caret[data-v-860c5d88]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:4px;color:#666;transition:transform .12s ease}.outline.dark .outline__caret[data-v-860c5d88]{color:#94a3b8}.outline__caret.collapsed[data-v-860c5d88]{transform:rotate(0)}.outline__caret.expanded[data-v-860c5d88]{transform:rotate(90deg)}.outline__item[data-v-860c5d88]:hover{color:#1a69f8}.outline.dark .outline__item[data-v-860c5d88]:hover{color:#22c55e}.outline__item.lv-1[data-v-860c5d88]{padding-left:0}.outline__item.lv-2[data-v-860c5d88]{padding-left:8px}.outline__item.lv-3[data-v-860c5d88]{padding-left:16px}.outline__item.lv-4[data-v-860c5d88]{padding-left:24px}.outline__item.lv-5[data-v-860c5d88]{padding-left:32px}.outline__item.lv-6[data-v-860c5d88]{padding-left:40px}.outline__text[data-v-860c5d88]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline__close[data-v-860c5d88]{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline.dark .outline__close[data-v-860c5d88]{background:#1f1f21;border-color:#334155;color:#94a3b8;box-shadow:none}.outline__close[data-v-860c5d88]:hover{color:var(--hover-text-color)}.outline__title[data-v-860c5d88]{display:inline-flex;align-items:center;gap:6px}.outline__pinIcon[data-v-860c5d88]{display:inline-flex;width:16px;height:16px;color:#666;cursor:pointer}.outline-drawer-mask[data-v-860c5d88]{display:none}@media (max-width: 900px){.outline[data-v-860c5d88]{position:absolute;right:0;top:0;bottom:0;width:0;max-width:85vw;box-shadow:-6px 0 24px #00000014;z-index:10}.outline.isOpen[data-v-860c5d88]{width:min(85vw,280px)}.outline-drawer-mask[data-v-860c5d88]{display:block;position:absolute;left:0;right:0;top:0;bottom:0;background:#00000029;z-index:10}}.outline-slide-enter-active[data-v-860c5d88],.outline-slide-leave-active[data-v-860c5d88]{transition:transform .18s ease,opacity .18s ease}.outline-slide-enter-from[data-v-860c5d88],.outline-slide-leave-to[data-v-860c5d88]{opacity:0;transform:translate(16px)}@media (max-width: 900px){.outline-slide-enter-from[data-v-860c5d88],.outline-slide-leave-to[data-v-860c5d88]{transform:translate(100%)}}.outline-mask-enter-active[data-v-860c5d88],.outline-mask-leave-active[data-v-860c5d88]{transition:opacity .18s ease}.outline-mask-enter-from[data-v-860c5d88],.outline-mask-leave-to[data-v-860c5d88]{opacity:0}.simple-editor[data-v-0dda272d]{height:var(--editor-height, auto);min-height:var(--editor-min-height, 100px);display:flex;flex-direction:column;border-radius:2px;background:var(--bg-base);box-sizing:border-box;border:1px solid var(--border-color)}.simple-editor .fullscreen[data-v-0dda272d]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;border-radius:0}.simple-editor.readonly[data-v-0dda272d] .tiptap-resize-handle{pointer-events:none;display:none}.simple-editor.readonly[data-v-0dda272d] img,.simple-editor.readonly[data-v-0dda272d] video{-webkit-user-drag:none}.simple-editor.readonly[data-v-0dda272d] .tiptap-resize-wrapper,.simple-editor.readonly[data-v-0dda272d] .tiptap-resize-container{outline:none!important;border:none!important;width:100%!important;max-width:100%!important}.simple-editor.readonly[data-v-0dda272d] .tiptap-video{width:100%!important;max-width:100%!important}.editor_wrapper[data-v-0dda272d]{position:relative;overflow-y:auto;overflow-x:hidden;align-items:stretch;flex:1 1 auto;min-height:0}.editor_wrapper[data-v-0dda272d]::-webkit-scrollbar{width:6px;height:1px}.editor_wrapper[data-v-0dda272d]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.editor_wrapper[data-v-0dda272d]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.editor_main[data-v-0dda272d]{display:grid;grid-template-columns:1fr auto;align-items:stretch;flex:1 1 auto;min-height:0;position:relative}.outline-toggle-row[data-v-0dda272d]{position:sticky;top:12px;z-index:3;display:flex;justify-content:flex-end;padding-right:12px}.outline-markers[data-v-0dda272d]{position:absolute;right:0;top:0;bottom:0;width:18px;z-index:4}.outline-pin[data-v-0dda272d]{position:absolute;right:3px;top:8px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline-marker[data-v-0dda272d]{position:absolute;right:3px;width:12px;height:2px;background:#d0d5dd;border-radius:2px}.outline-marker.active[data-v-0dda272d]{background:#22c55e}.content[data-v-0dda272d]{padding:12px 24px;color:var(--text-base)}.content[data-v-0dda272d] img{max-width:100%;height:auto;display:inline-block}.content[data-v-0dda272d] .ProseMirror{outline:none;caret-color:var(--editor-caret-color)}.content[data-v-0dda272d] .tiptap-resize-container,.content[data-v-0dda272d] .tiptap-resize-wrapper{max-width:100%!important;box-sizing:border-box}.content[data-v-0dda272d] .tiptap-video{max-width:100%!important;height:auto!important;display:block}.content[data-v-0dda272d] .drag-hover-target{background:#eef5ff;border-radius:8px}.content[data-v-0dda272d] ul[data-type=taskList]{list-style:none;padding-left:0;margin:12px 0}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem]{display:flex;align-items:flex-start;gap:8px;margin:6px 0}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .todo-box{width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);background:#fff;box-shadow:inset 0 1px 2px #0000000f;margin-top:2px;flex-shrink:0;cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:center;transition:background-color .16s ease,border-color .16s ease}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .todo-box:after{content:"✓";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.3);opacity:0;color:#fff;font-size:12px;font-weight:700;transition:transform .18s ease,opacity .18s ease;animation:todo-check-out-0dda272d .18s ease both}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box{background:#22c55e;border-color:#22c55e}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box:after{transform:translate(-50%,-50%) scale(1);opacity:1;animation:todo-check-in-0dda272d .22s cubic-bezier(.2,.7,.3,1.2) both}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .todo-box:focus{outline:2px solid #1677ff44}@keyframes todo-check-in-0dda272d{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}60%{transform:translate(-50%,-50%) scale(1.15);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes todo-check-out-0dda272d{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(.3);opacity:0}}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem]>label,.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-item__label{display:inline-flex;align-items:center;margin-right:6px}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;position:static;opacity:1;pointer-events:auto;width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);margin-top:2px}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] input[type=checkbox]{accent-color:#22c55e}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-content,.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-item__content{flex:1;min-width:1px}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-content p,.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-item__content p{margin:0}.content[data-v-0dda272d] img.ProseMirror-selectednode{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-0dda272d] [data-resize-wrapper]{display:inline-block}.content[data-v-0dda272d] .tiptap-resize-handle{width:10px;height:10px;background:#1677ffd9;border-radius:2px;box-shadow:0 0 0 1px #fff;cursor:nwse-resize;z-index:4;opacity:0;pointer-events:none;transition:opacity .12s ease}.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=top-left],.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=bottom-right]{cursor:nwse-resize}.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=top-right],.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=bottom-left]{cursor:nesw-resize}.content[data-v-0dda272d] .tiptap-resize-wrapper:hover .tiptap-resize-handle,.content[data-v-0dda272d] .tiptap-resize-container[data-resize-state=true] .tiptap-resize-handle{opacity:1;pointer-events:auto}.content[data-v-0dda272d] .tiptap-resize-wrapper:hover>img,.content[data-v-0dda272d] .tiptap-resize-wrapper:hover>video{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-0dda272d] .tiptap-resize-wrapper{position:relative}.content[data-v-0dda272d] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{pointer-events:auto}.content[data-v-0dda272d] .tiptap-upload-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#1677ff;font-size:12px;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:2}.content[data-v-0dda272d] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{opacity:1}.content[data-v-0dda272d] .tiptap-upload-progress{width:66%;max-width:360px;height:6px;background:#0003;border-radius:4px;overflow:hidden;position:relative}.content[data-v-0dda272d] .tiptap-upload-progress:before{content:"";position:absolute;left:-40%;width:40%;height:100%;background:#1677ff;border-radius:4px;animation:tiptap-upload-indeterminate-0dda272d 1.1s ease-in-out infinite}@keyframes tiptap-upload-indeterminate-0dda272d{0%{left:-40%}50%{left:60%}to{left:100%}}.content[data-v-0dda272d] .tiptap-resize-container.is-resizing .tiptap-resize-handle{background:#1677ff}.content[data-v-0dda272d] .ProseMirror table{border-collapse:collapse;margin:12px 0;width:100%}.content[data-v-0dda272d] .ProseMirror table th,.content[data-v-0dda272d] .ProseMirror table td{border:1px solid var(--border-color);padding:8px;text-align:left;position:relative}.content[data-v-0dda272d] .ProseMirror table thead th{background:#f7f9fc;font-weight:600}.content .simple-editor.dark[data-v-0dda272d] .ProseMirror table thead th{background:#111827}.content[data-v-0dda272d] .ProseMirror table .selectedCell{background:#1677ff0f;outline:2px solid #1677ff;outline-offset:-2px}.content[data-v-0dda272d] .ProseMirror table .column-resize-handle{position:absolute;right:-3px;top:0;bottom:0;width:8px;background:transparent;cursor:col-resize;z-index:3;-webkit-user-select:none;user-select:none;pointer-events:auto}.content[data-v-0dda272d] .ProseMirror table .column-resize-handle:hover{background:#1677ff40}.content[data-v-0dda272d] .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:#999;pointer-events:none;float:left;height:0;white-space:pre-line}.content[data-v-0dda272d] code{background:var(--code-bg);padding:2px 4px;border-radius:4px}.content[data-v-0dda272d] blockquote{border-left:3px solid #e5e7eb;margin:12px 0;padding:4px 12px;color:#6b7280}.content[data-v-0dda272d] pre{background:var(--code-bg);padding:12px;border-radius:6px;border:1px solid var(--border-color);overflow:auto}.content[data-v-0dda272d] p{margin:12px 0}[data-v-0dda272d] .md-drag-handle{width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 10px #00000014;background:#fff;border:1px solid var(--border-color);cursor:grab;z-index:5}[data-v-0dda272d] .md-drag-handle:before{content:"···";letter-spacing:2px;color:#888;font-weight:700}@media (max-width: 900px){.editor_main[data-v-0dda272d]{grid-template-columns:1fr}.outline-markers[data-v-0dda272d]{display:none}}.link-modal-backdrop[data-v-0dda272d]{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003}.link-modal[data-v-0dda272d]{position:fixed;left:50%;top:20%;transform:translate(-50%);z-index:1000}.link-modal__content[data-v-0dda272d]{background:#fff;border:1px solid var(--border-color);border-radius:2px;min-width:360px;padding:12px;box-shadow:0 6px 24px #00000014}.simple-editor.dark .link-modal__content[data-v-0dda272d]{background:#1f1f21;border-color:#334155;box-shadow:none;color:#e5e7eb}.link-modal__title[data-v-0dda272d]{font-weight:600;margin-bottom:8px}.link-modal__input[data-v-0dda272d]{width:100%;padding:8px;border:1px solid var(--border-color);border-radius:2px;margin-bottom:10px}.simple-editor.dark .link-modal__input[data-v-0dda272d]{background:#0b1220;border-color:#334155;color:#e5e7eb}.link-modal__actions[data-v-0dda272d]{display:flex;gap:8px;justify-content:flex-end}.link-modal__actions button[data-v-0dda272d]{padding:6px 10px;border:1px solid var(--border-color);background:#fff;border-radius:2px;cursor:pointer}.simple-editor.dark .link-modal__actions button[data-v-0dda272d]{background:#1f1f21;border-color:#334155;color:#e5e7eb}.tiptap-video[data-v-0dda272d]{display:block;max-width:100%;height:auto}[data-format-brush=true] .ProseMirror{cursor:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1763569611105'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='87406'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18'%20height='18'%3e%3cpath%20d='M840%20192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3%200-24%2010.7-24%2024v272c0%2013.3%2010.7%2024%2024%2024h592c13.3%200%2024-10.7%2024-24V256h32v200H465c-22.1%200-40%2017.9-40%2040v136h-44c-4.4%200-8%203.6-8%208v228c0%200.6%200.1%201.3%200.2%201.9-0.1%202-0.2%204.1-0.2%206.1%200%2046.4%2037.6%2084%2084%2084s84-37.6%2084-84c0-2.1-0.1-4.1-0.2-6.1%200.1-0.6%200.2-1.2%200.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1%200%2040-17.9%2040-40V232c0-22.1-17.9-40-40-40zM720%20352H208V160h512v192zM477%20876c0%2011-9%2020-20%2020s-20-9-20-20V696h40v180z'%20p-id='87407'%3e%3c/path%3e%3c/svg%3e") 0 16,crosshair}[data-format-brush=true] .ProseMirror *{cursor:inherit}`)),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`.tooltip-wrapper[data-v-2e4633d5]{position:relative;display:inline-flex;align-items:center;line-height:0}.tooltip[data-v-2e4633d5]{position:fixed;transform:translate(-50%);background:#3c3c3cf2;color:#fff;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.2;box-shadow:0 6px 20px #0003;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s ease;pointer-events:none;z-index:1000}.tooltip.visible[data-v-2e4633d5]{opacity:1;visibility:visible}.shortcut[data-v-2e4633d5]{display:inline-block;margin-top:4px;opacity:.9;z-index:1000}.font-size-wrapper[data-v-87f86dca]{position:relative;-webkit-user-select:none;user-select:none}.font-size-wrapper .icon[data-v-87f86dca]{cursor:pointer;width:27px;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:50px;justify-content:space-between;background:var(--bg-base)}.font-size-wrapper .icon[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.font-size-wrapper .label[data-v-87f86dca]{font-size:15px}.dropdown[data-v-87f86dca]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-87f86dca],.dropdown-slide-leave-to[data-v-87f86dca]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-87f86dca],.dropdown-slide-leave-active[data-v-87f86dca]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-87f86dca]{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.text[data-v-87f86dca]{flex:1}.color-select-wrapper[data-v-1656be6b]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none}.icon[data-v-1656be6b]{cursor:default;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-1656be6b]{width:auto;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-1656be6b]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-1656be6b]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:2px;cursor:pointer}.hoverable[data-v-1656be6b]:hover{background:var(--hover-bg-color)}.underline[data-v-1656be6b]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-1656be6b]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform;border:1px solid var(--border-color)}.dropdown-slide-enter-from[data-v-1656be6b],.dropdown-slide-leave-to[data-v-1656be6b]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-1656be6b],.dropdown-slide-leave-active[data-v-1656be6b]{transition:opacity .18s ease,transform .18s ease}.section[data-v-1656be6b]{margin-bottom:8px}.section-title[data-v-1656be6b]{font-size:12px;margin-bottom:6px}.swatches[data-v-1656be6b]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-1656be6b]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-1656be6b]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid var(--border-color);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-1656be6b]{position:absolute;top:0;right:2px;font-size:12px;color:var(--text-base);text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-1656be6b]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-1656be6b]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px;color:var(--text-base)}.advanced[data-v-1656be6b]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-1656be6b]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-1656be6b]{justify-self:end;flex-shrink:1}.svg-icon[data-v-ee8563cd]{display:inline-block;line-height:0;vertical-align:middle}.svg-icon svg[data-v-ee8563cd]{width:1em;height:1em;display:block}.bg-color-select-wrapper[data-v-f414a9de]{position:relative;-webkit-user-select:none;user-select:none}.icon[data-v-f414a9de]{cursor:default;width:19px;height:19px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-f414a9de]{width:auto;padding:0 2px;min-width:20px;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-f414a9de]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-f414a9de]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:4px;cursor:pointer}.hoverable[data-v-f414a9de]:hover{background:var(--hover-bg-color)}.underline[data-v-f414a9de]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-f414a9de]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform}.section[data-v-f414a9de]{margin-bottom:8px}.section-title[data-v-f414a9de]{font-size:12px;color:#666;margin-bottom:6px}.swatches[data-v-f414a9de]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-f414a9de]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-f414a9de]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid rgba(0,0,0,.08);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-f414a9de]{position:absolute;top:0;right:2px;font-size:12px;color:#000;text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-f414a9de]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-f414a9de]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px}.advanced[data-v-f414a9de]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-f414a9de]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-f414a9de]{justify-self:end;flex-shrink:1}.dropdown-slide-enter-from[data-v-f414a9de],.dropdown-slide-leave-to[data-v-f414a9de]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-f414a9de],.dropdown-slide-leave-active[data-v-f414a9de]{transition:opacity .18s ease,transform .18s ease}.image-icon[data-v-dad55a02]{position:relative}.image-input-panel[data-v-dad55a02]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.image-input[data-v-dad55a02]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:4px;outline:none;font-size:14px;background-color:var(--bg-input-bg);color:var(--text-base)}.image-actions[data-v-dad55a02]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-dad55a02]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-dad55a02]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-dad55a02]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-dad55a02]:hover{background:#1677ff;opacity:.92}.img-panel-enter-active[data-v-dad55a02],.img-panel-leave-active[data-v-dad55a02]{transition:opacity .18s ease,transform .18s ease}.img-panel-enter-from[data-v-dad55a02],.img-panel-leave-to[data-v-dad55a02]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.img-panel-enter-to[data-v-dad55a02],.img-panel-leave-from[data-v-dad55a02]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.video-icon[data-v-582dbd57]{position:relative}.video-input-panel[data-v-582dbd57]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.video-input[data-v-582dbd57]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:2px;outline:none;font-size:14px;background-color:var(--bg-input-bg);color:var(--text-base)}.video-actions[data-v-582dbd57]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-582dbd57]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-582dbd57]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-582dbd57]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-582dbd57]:hover{background:#1677ff;opacity:.92}.video-panel-enter-active[data-v-582dbd57],.video-panel-leave-active[data-v-582dbd57]{transition:opacity .18s ease,transform .18s ease}.video-panel-enter-from[data-v-582dbd57],.video-panel-leave-to[data-v-582dbd57]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.video-panel-enter-to[data-v-582dbd57],.video-panel-leave-from[data-v-582dbd57]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.find-icon[data-v-8c079e6d]{position:relative}.find-input-panel[data-v-8c079e6d]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.fr-header[data-v-8c079e6d]{display:flex;align-items:center;gap:6px;margin-bottom:6px}.fr-tab[data-v-8c079e6d]{border:none;background:transparent;padding:6px 8px;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-base)}.fr-tab.active[data-v-8c079e6d]{border-color:#1a69f8;font-weight:600}.fr-label[data-v-8c079e6d]{display:block;font-size:12px;margin:6px 0 4px}.fr-input-row[data-v-8c079e6d]{display:flex;align-items:center;gap:6px;width:100%}.fr-input[data-v-8c079e6d]{flex:1;padding:8px;border:1px solid var(--border-color);border-radius:2px;background-color:var(--bg-input-bg);color:var(--text-base);outline:none}.fr-count[data-v-8c079e6d]{font-size:12px}.fr-actions[data-v-8c079e6d]{display:flex;gap:8px;margin-top:10px;justify-content:flex-end}.fr-btn[data-v-8c079e6d]{padding:6px 10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;color:var(--text-base)}.fr-btn.primary[data-v-8c079e6d]{color:var(--text-base);background:#1a69f8;border-color:#1a69f8}.find-panel-enter-active[data-v-8c079e6d],.find-panel-leave-active[data-v-8c079e6d]{transition:opacity .18s ease,transform .18s ease}.find-panel-enter-from[data-v-8c079e6d],.find-panel-leave-to[data-v-8c079e6d]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.find-panel-enter-to[data-v-8c079e6d],.find-panel-leave-from[data-v-8c079e6d]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.link-icon[data-v-84f547ec]{position:relative}.link-input-panel[data-v-84f547ec]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid rgba(0,0,0,.1);background:#fff;border-radius:8px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.field[data-v-84f547ec]{margin-bottom:8px}.label[data-v-84f547ec]{font-size:12px;color:#666;margin-bottom:6px}.input[data-v-84f547ec]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid #e5e7eb;border-radius:8px;outline:none;font-size:14px}.actions[data-v-84f547ec]{display:flex;justify-content:flex-end;gap:8px}.btn[data-v-84f547ec]{padding:6px 10px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:13px}.btn-primary[data-v-84f547ec]{border:none;background:#1677ff;color:#fff}.btn-primary[data-v-84f547ec]:hover{background:#1677ff;opacity:.92}.link-panel-enter-active[data-v-84f547ec],.link-panel-leave-active[data-v-84f547ec]{transition:opacity .18s ease,transform .18s ease}.link-panel-enter-from[data-v-84f547ec],.link-panel-leave-to[data-v-84f547ec]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.link-panel-enter-to[data-v-84f547ec],.link-panel-leave-from[data-v-84f547ec]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.table-icon[data-v-d0d98332]{position:relative}.table-panel[data-v-d0d98332]{position:absolute;top:32px;right:0;min-width:220px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20}.panel-title[data-v-d0d98332]{font-size:12px;margin-bottom:6px}.grid[data-v-d0d98332]{display:flex;flex-direction:column;gap:4px;background:var(--bg-base);border-radius:2px}.row[data-v-d0d98332]{display:flex;gap:4px}.cell[data-v-d0d98332]{width:18px;height:18px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:3px;cursor:pointer}.cell.active[data-v-d0d98332]{background:#e8f1ff;border-color:#1677ff}.size[data-v-d0d98332]{margin-top:6px;font-size:12px}.table-tools[data-v-1aa3a259]{position:relative}.tools-panel[data-v-1aa3a259]{position:absolute;top:32px;right:0;min-width:280px;padding:10px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;border:1px solid var(--border-color)}.tools-grid[data-v-1aa3a259]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn[data-v-1aa3a259]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.icon[data-v-0a1c80da]{cursor:default;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;position:relative}.icon[data-v-0a1c80da]:hover{background:#0000000d}.icon[data-v-dcd9c3cd]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon[data-v-dcd9c3cd]:hover{background:#0000000d}.heading-select[data-v-b93823aa]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon[data-v-b93823aa]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:52px;justify-content:space-between;background:var(--bg-base)}.icon[data-v-b93823aa]:hover{background:var(--hover-bg-color)}.label[data-v-b93823aa]{font-size:15px;color:var(--text-base)}.dropdown[data-v-b93823aa]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:220px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-b93823aa],.dropdown-slide-leave-to[data-v-b93823aa]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b93823aa],.dropdown-slide-leave-active[data-v-b93823aa]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-b93823aa]{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-b93823aa]:hover{background:#0000000d}.item-label[data-v-b93823aa]{flex:1}.item-label.paragraph[data-v-b93823aa]{font-size:15px}.item-label.level-1[data-v-b93823aa]{font-size:22px;font-weight:600}.item-label.level-2[data-v-b93823aa]{font-size:20px;font-weight:600}.item-label.level-3[data-v-b93823aa]{font-size:18px;font-weight:600}.item-label.level-4[data-v-b93823aa]{font-size:16px}.item-label.level-5[data-v-b93823aa]{font-size:15px}.item-label.level-6[data-v-b93823aa]{font-size:14px}.shortcut[data-v-b93823aa]{font-size:12px}.align-select[data-v-b321e2b4]{position:relative;margin:0 2px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon_box[data-v-b321e2b4]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;transition:all .2s ease-in-out;padding:0 6px;background:var(--bg-base);gap:3px}.icon_box[data-v-b321e2b4]:hover{background:var(--hover-bg-color)}.dropdown[data-v-b321e2b4]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform;padding:6px}.dropdown-slide-enter-from[data-v-b321e2b4],.dropdown-slide-leave-to[data-v-b321e2b4]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b321e2b4],.dropdown-slide-leave-active[data-v-b321e2b4]{transition:opacity .18s ease,transform .18s ease}.options[data-v-b321e2b4]{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.option[data-v-b321e2b4]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center}.option[data-v-b321e2b4]:hover,.option.active[data-v-b321e2b4]{background:var(--hover-bg-color)}.header_box[data-v-8a946786]{display:flex;align-items:center;gap:3px;padding:8px;border-bottom:1px solid var(--border-color)}.header_box.disabled[data-v-8a946786]{pointer-events:none;opacity:.5}.header_box .icon[data-v-8a946786]{position:relative;cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out}.header_box .icon[data-v-8a946786]:hover,.header_box .icon.active[data-v-8a946786]{background:var(--hover-bg-color)}.header_box .icon[aria-disabled=true][data-v-8a946786]{cursor:not-allowed;opacity:.5}.header_box.dark[data-v-8a946786] .heading-select .label,.header_box.dark[data-v-8a946786] .font-size .label{color:#e5e7eb}.header_box.dark[data-v-8a946786] .heading-select .dropdown,.header_box.dark[data-v-8a946786] .font-size .dropdown{background:#1f1f21;border-color:#334155;box-shadow:none}.header_box.dark[data-v-8a946786] .dropdown-item:hover{background:#ffffff0f}.header_box.dark[data-v-8a946786] .heading-select .item-label,.header_box.dark[data-v-8a946786] .font-size .text,.header_box.dark[data-v-8a946786] .heading-select .shortcut{color:#e5e7eb}.header_box.dark[data-v-8a946786] .color-select .icon-dropdown,.header_box.dark[data-v-8a946786] .bg-color-select .icon-dropdown,.header_box.dark[data-v-8a946786] .align-select .icon_box,.header_box.dark[data-v-8a946786] .bg-color-select .underline{background:#1f1f21;border:1px solid #334155}.header_box.dark[data-v-8a946786] .bg-color-select .dropdown .swatch[style*=dashed]{border-color:#334155!important}.header_box.dark[data-v-8a946786] .color-select .hoverable:hover,.header_box.dark[data-v-8a946786] .bg-color-select .hoverable:hover,.header_box.dark[data-v-8a946786] .align-select .icon_box:hover{background:#ffffff0f}.header_box.dark[data-v-8a946786] .color-select .dropdown,.header_box.dark[data-v-8a946786] .bg-color-select .dropdown,.header_box.dark[data-v-8a946786] .align-select .dropdown{background:#1f1f21;border:1px solid #334155;box-shadow:none}.header_box.dark[data-v-8a946786] .align-select .option:hover{background:#ffffff0f}.header_box.dark[data-v-8a946786] .align-select .option.active{background:#ffffff1a}.header_box.dark[data-v-8a946786] .color-select .section-title,.header_box.dark[data-v-8a946786] .bg-color-select .section-title{color:#94a3b8}.header_box.dark[data-v-8a946786] .color-select .btn,.header_box.dark[data-v-8a946786] .bg-color-select .btn,.header_box.dark[data-v-8a946786] .color-select .hex,.header_box.dark[data-v-8a946786] .bg-color-select .hex{background:#1f1f21;border-color:#334155;color:#e5e7eb}.header_box.dark[data-v-8a946786] .color-select .swatch,.header_box.dark[data-v-8a946786] .bg-color-select .swatch{border-color:#ffffff14}.header_box.dark[data-v-8a946786] .color-select .swatch .check,.header_box.dark[data-v-8a946786] .bg-color-select .swatch .check{color:#fff;text-shadow:none}.outline-wrapper[data-v-64d05f68]{position:relative;-webkit-user-select:none;user-select:none}.outline[data-v-64d05f68]{border-left:1px solid var(--border-color);padding:8px;box-sizing:border-box;font-size:14px;position:sticky;top:0;align-self:start;height:100%;background:var(--bg-base);display:flex;flex-direction:column;width:0;opacity:0;overflow:hidden;transform:scaleX(0);transform-origin:right center;transition:width .2s ease,transform .2s ease,opacity .2s ease;border-left:none}.outline.isOpen[data-v-64d05f68]{width:240px;opacity:1;transform:scaleX(1);border-left:1px solid var(--border-color)}.outline__listWrap[data-v-64d05f68]{overflow-y:auto;overflow-x:hidden;flex:1 1 auto;min-height:0}.outline__listWrap[data-v-64d05f68]::-webkit-scrollbar{width:6px;height:1px}.outline__listWrap[data-v-64d05f68]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.outline__listWrap[data-v-64d05f68]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.outline__header[data-v-64d05f68]{display:flex;align-items:center;font-weight:600;margin-bottom:8px}.outline__header[data-v-64d05f68]>*{display:inline-flex;gap:6px}.outline__list[data-v-64d05f68]{list-style:none;padding:0;margin:0}.outline__item[data-v-64d05f68]{cursor:pointer;padding:4px 0;color:#333}.outline.dark .outline__item[data-v-64d05f68]{color:#e5e7eb}.outline__caret[data-v-64d05f68]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:4px;color:#666;transition:transform .12s ease}.outline.dark .outline__caret[data-v-64d05f68]{color:#94a3b8}.outline__caret.collapsed[data-v-64d05f68]{transform:rotate(0)}.outline__caret.expanded[data-v-64d05f68]{transform:rotate(90deg)}.outline__item[data-v-64d05f68]:hover{color:#1a69f8}.outline.dark .outline__item[data-v-64d05f68]:hover{color:#22c55e}.outline__item.lv-1[data-v-64d05f68]{padding-left:0}.outline__item.lv-2[data-v-64d05f68]{padding-left:8px}.outline__item.lv-3[data-v-64d05f68]{padding-left:16px}.outline__item.lv-4[data-v-64d05f68]{padding-left:24px}.outline__item.lv-5[data-v-64d05f68]{padding-left:32px}.outline__item.lv-6[data-v-64d05f68]{padding-left:40px}.outline__text[data-v-64d05f68]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline__close[data-v-64d05f68]{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline.dark .outline__close[data-v-64d05f68]{background:#1f1f21;border-color:#334155;color:#94a3b8;box-shadow:none}.outline__close[data-v-64d05f68]:hover{color:var(--hover-text-color)}.outline__title[data-v-64d05f68]{display:inline-flex;align-items:center;gap:6px}.outline__pinIcon[data-v-64d05f68]{display:inline-flex;width:16px;height:16px;color:#666;cursor:pointer}.outline-drawer-mask[data-v-64d05f68]{display:none}@media (max-width: 900px){.outline[data-v-64d05f68]{position:absolute;right:0;top:0;bottom:0;width:0;max-width:85vw;box-shadow:-6px 0 24px #00000014;z-index:10}.outline.isOpen[data-v-64d05f68]{width:min(85vw,280px)}.outline-drawer-mask[data-v-64d05f68]{display:block;position:absolute;left:0;right:0;top:0;bottom:0;background:#00000029;z-index:10}}.outline-slide-enter-active[data-v-64d05f68],.outline-slide-leave-active[data-v-64d05f68]{transition:transform .18s ease,opacity .18s ease}.outline-slide-enter-from[data-v-64d05f68],.outline-slide-leave-to[data-v-64d05f68]{opacity:0;transform:translate(16px)}@media (max-width: 900px){.outline-slide-enter-from[data-v-64d05f68],.outline-slide-leave-to[data-v-64d05f68]{transform:translate(100%)}}.outline-mask-enter-active[data-v-64d05f68],.outline-mask-leave-active[data-v-64d05f68]{transition:opacity .18s ease}.outline-mask-enter-from[data-v-64d05f68],.outline-mask-leave-to[data-v-64d05f68]{opacity:0}.simple-editor[data-v-0dda272d]{height:var(--editor-height, auto);min-height:var(--editor-min-height, 100px);display:flex;flex-direction:column;border-radius:2px;background:var(--bg-base);box-sizing:border-box;border:1px solid var(--border-color)}.simple-editor .fullscreen[data-v-0dda272d]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;border-radius:0}.simple-editor.readonly[data-v-0dda272d] .tiptap-resize-handle{pointer-events:none;display:none}.simple-editor.readonly[data-v-0dda272d] img,.simple-editor.readonly[data-v-0dda272d] video{-webkit-user-drag:none}.simple-editor.readonly[data-v-0dda272d] .tiptap-resize-wrapper,.simple-editor.readonly[data-v-0dda272d] .tiptap-resize-container{outline:none!important;border:none!important;width:100%!important;max-width:100%!important}.simple-editor.readonly[data-v-0dda272d] .tiptap-video{width:100%!important;max-width:100%!important}.editor_wrapper[data-v-0dda272d]{position:relative;overflow-y:auto;overflow-x:hidden;align-items:stretch;flex:1 1 auto;min-height:0}.editor_wrapper[data-v-0dda272d]::-webkit-scrollbar{width:6px;height:1px}.editor_wrapper[data-v-0dda272d]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.editor_wrapper[data-v-0dda272d]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.editor_main[data-v-0dda272d]{display:grid;grid-template-columns:1fr auto;align-items:stretch;flex:1 1 auto;min-height:0;position:relative}.outline-toggle-row[data-v-0dda272d]{position:sticky;top:12px;z-index:3;display:flex;justify-content:flex-end;padding-right:12px}.outline-markers[data-v-0dda272d]{position:absolute;right:0;top:0;bottom:0;width:18px;z-index:4}.outline-pin[data-v-0dda272d]{position:absolute;right:3px;top:8px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline-marker[data-v-0dda272d]{position:absolute;right:3px;width:12px;height:2px;background:#d0d5dd;border-radius:2px}.outline-marker.active[data-v-0dda272d]{background:#22c55e}.content[data-v-0dda272d]{padding:12px 24px;color:var(--text-base)}.content[data-v-0dda272d] img{max-width:100%;height:auto;display:inline-block}.content[data-v-0dda272d] .ProseMirror{outline:none;caret-color:var(--editor-caret-color)}.content[data-v-0dda272d] .tiptap-resize-container,.content[data-v-0dda272d] .tiptap-resize-wrapper{max-width:100%!important;box-sizing:border-box}.content[data-v-0dda272d] .tiptap-video{max-width:100%!important;height:auto!important;display:block}.content[data-v-0dda272d] .drag-hover-target{background:#eef5ff;border-radius:8px}.content[data-v-0dda272d] ul[data-type=taskList]{list-style:none;padding-left:0;margin:12px 0}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem]{display:flex;align-items:flex-start;gap:8px;margin:6px 0}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .todo-box{width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);background:#fff;box-shadow:inset 0 1px 2px #0000000f;margin-top:2px;flex-shrink:0;cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:center;transition:background-color .16s ease,border-color .16s ease}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .todo-box:after{content:"✓";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.3);opacity:0;color:#fff;font-size:12px;font-weight:700;transition:transform .18s ease,opacity .18s ease;animation:todo-check-out-0dda272d .18s ease both}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box{background:#22c55e;border-color:#22c55e}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box:after{transform:translate(-50%,-50%) scale(1);opacity:1;animation:todo-check-in-0dda272d .22s cubic-bezier(.2,.7,.3,1.2) both}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .todo-box:focus{outline:2px solid #1677ff44}@keyframes todo-check-in-0dda272d{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}60%{transform:translate(-50%,-50%) scale(1.15);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes todo-check-out-0dda272d{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(.3);opacity:0}}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem]>label,.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-item__label{display:inline-flex;align-items:center;margin-right:6px}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;position:static;opacity:1;pointer-events:auto;width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);margin-top:2px}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] input[type=checkbox]{accent-color:#22c55e}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-content,.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-item__content{flex:1;min-width:1px}.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-content p,.content[data-v-0dda272d] ul[data-type=taskList] li[data-type=taskItem] .task-item__content p{margin:0}.content[data-v-0dda272d] img.ProseMirror-selectednode{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-0dda272d] [data-resize-wrapper]{display:inline-block}.content[data-v-0dda272d] .tiptap-resize-handle{width:10px;height:10px;background:#1677ffd9;border-radius:2px;box-shadow:0 0 0 1px #fff;cursor:nwse-resize;z-index:4;opacity:0;pointer-events:none;transition:opacity .12s ease}.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=top-left],.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=bottom-right]{cursor:nwse-resize}.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=top-right],.content[data-v-0dda272d] .tiptap-resize-handle[data-resize-handle=bottom-left]{cursor:nesw-resize}.content[data-v-0dda272d] .tiptap-resize-wrapper:hover .tiptap-resize-handle,.content[data-v-0dda272d] .tiptap-resize-container[data-resize-state=true] .tiptap-resize-handle{opacity:1;pointer-events:auto}.content[data-v-0dda272d] .tiptap-resize-wrapper:hover>img,.content[data-v-0dda272d] .tiptap-resize-wrapper:hover>video{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-0dda272d] .tiptap-resize-wrapper{position:relative}.content[data-v-0dda272d] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{pointer-events:auto}.content[data-v-0dda272d] .tiptap-upload-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#1677ff;font-size:12px;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:2}.content[data-v-0dda272d] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{opacity:1}.content[data-v-0dda272d] .tiptap-upload-progress{width:66%;max-width:360px;height:6px;background:#0003;border-radius:4px;overflow:hidden;position:relative}.content[data-v-0dda272d] .tiptap-upload-progress:before{content:"";position:absolute;left:-40%;width:40%;height:100%;background:#1677ff;border-radius:4px;animation:tiptap-upload-indeterminate-0dda272d 1.1s ease-in-out infinite}@keyframes tiptap-upload-indeterminate-0dda272d{0%{left:-40%}50%{left:60%}to{left:100%}}.content[data-v-0dda272d] .tiptap-resize-container.is-resizing .tiptap-resize-handle{background:#1677ff}.content[data-v-0dda272d] .ProseMirror table{border-collapse:collapse;margin:12px 0;width:100%}.content[data-v-0dda272d] .ProseMirror table th,.content[data-v-0dda272d] .ProseMirror table td{border:1px solid var(--border-color);padding:8px;text-align:left;position:relative}.content[data-v-0dda272d] .ProseMirror table thead th{background:#f7f9fc;font-weight:600}.content .simple-editor.dark[data-v-0dda272d] .ProseMirror table thead th{background:#111827}.content[data-v-0dda272d] .ProseMirror table .selectedCell{background:#1677ff0f;outline:2px solid #1677ff;outline-offset:-2px}.content[data-v-0dda272d] .ProseMirror table .column-resize-handle{position:absolute;right:-3px;top:0;bottom:0;width:8px;background:transparent;cursor:col-resize;z-index:3;-webkit-user-select:none;user-select:none;pointer-events:auto}.content[data-v-0dda272d] .ProseMirror table .column-resize-handle:hover{background:#1677ff40}.content[data-v-0dda272d] .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:#999;pointer-events:none;float:left;height:0;white-space:pre-line}.content[data-v-0dda272d] code{background:var(--code-bg);padding:2px 4px;border-radius:4px}.content[data-v-0dda272d] blockquote{border-left:3px solid #e5e7eb;margin:12px 0;padding:4px 12px;color:#6b7280}.content[data-v-0dda272d] pre{background:var(--code-bg);padding:12px;border-radius:6px;border:1px solid var(--border-color);overflow:auto}.content[data-v-0dda272d] p{margin:12px 0}[data-v-0dda272d] .md-drag-handle{width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 10px #00000014;background:#fff;border:1px solid var(--border-color);cursor:grab;z-index:5}[data-v-0dda272d] .md-drag-handle:before{content:"···";letter-spacing:2px;color:#888;font-weight:700}@media (max-width: 900px){.editor_main[data-v-0dda272d]{grid-template-columns:1fr}.outline-markers[data-v-0dda272d]{display:none}}.link-modal-backdrop[data-v-0dda272d]{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003}.link-modal[data-v-0dda272d]{position:fixed;left:50%;top:20%;transform:translate(-50%);z-index:1000}.link-modal__content[data-v-0dda272d]{background:#fff;border:1px solid var(--border-color);border-radius:2px;min-width:360px;padding:12px;box-shadow:0 6px 24px #00000014}.simple-editor.dark .link-modal__content[data-v-0dda272d]{background:#1f1f21;border-color:#334155;box-shadow:none;color:#e5e7eb}.link-modal__title[data-v-0dda272d]{font-weight:600;margin-bottom:8px}.link-modal__input[data-v-0dda272d]{width:100%;padding:8px;border:1px solid var(--border-color);border-radius:2px;margin-bottom:10px}.simple-editor.dark .link-modal__input[data-v-0dda272d]{background:#0b1220;border-color:#334155;color:#e5e7eb}.link-modal__actions[data-v-0dda272d]{display:flex;gap:8px;justify-content:flex-end}.link-modal__actions button[data-v-0dda272d]{padding:6px 10px;border:1px solid var(--border-color);background:#fff;border-radius:2px;cursor:pointer}.simple-editor.dark .link-modal__actions button[data-v-0dda272d]{background:#1f1f21;border-color:#334155;color:#e5e7eb}.tiptap-video[data-v-0dda272d]{display:block;max-width:100%;height:auto}[data-format-brush=true] .ProseMirror{cursor:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1763569611105'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='87406'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18'%20height='18'%3e%3cpath%20d='M840%20192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3%200-24%2010.7-24%2024v272c0%2013.3%2010.7%2024%2024%2024h592c13.3%200%2024-10.7%2024-24V256h32v200H465c-22.1%200-40%2017.9-40%2040v136h-44c-4.4%200-8%203.6-8%208v228c0%200.6%200.1%201.3%200.2%201.9-0.1%202-0.2%204.1-0.2%206.1%200%2046.4%2037.6%2084%2084%2084s84-37.6%2084-84c0-2.1-0.1-4.1-0.2-6.1%200.1-0.6%200.2-1.2%200.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1%200%2040-17.9%2040-40V232c0-22.1-17.9-40-40-40zM720%20352H208V160h512v192zM477%20876c0%2011-9%2020-20%2020s-20-9-20-20V696h40v180z'%20p-id='87407'%3e%3c/path%3e%3c/svg%3e") 0 16,crosshair}[data-format-brush=true] .ProseMirror *{cursor:inherit}`)),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
3
3
|
import { inject as ye, createVNode as a, defineComponent as se, ref as H, onMounted as ve, onUnmounted as st, watch as ke, nextTick as _e, createElementBlock as j, openBlock as B, renderSlot as lt, createBlock as Me, Teleport as it, createElementVNode as i, normalizeStyle as ue, normalizeClass as J, createCommentVNode as K, toDisplayString as pe, computed as ce, onBeforeUnmount as he, unref as w, withCtx as N, withModifiers as U, Transition as Le, Fragment as we, renderList as be, withDirectives as ze, vModelText as $e, useAttrs as rt, resolveDynamicComponent as at, provide as ct } from "vue";
|
|
4
4
|
import { Editor as dt, EditorContent as ut } from "@tiptap/vue-3";
|
|
5
5
|
import { StarterKit as vt } from "@tiptap/starter-kit";
|
|
@@ -8,8 +8,8 @@ import { Image as pt } from "@tiptap/extension-image";
|
|
|
8
8
|
import * as We from "@tiptap/core";
|
|
9
9
|
import { ResizableNodeView as ot } from "@tiptap/core";
|
|
10
10
|
import { Placeholder as ht } from "@tiptap/extension-placeholder";
|
|
11
|
-
import { Link as
|
|
12
|
-
import { TextAlign as
|
|
11
|
+
import { Link as mt } from "@tiptap/extension-link";
|
|
12
|
+
import { TextAlign as gt } from "@tiptap/extension-text-align";
|
|
13
13
|
import { TextStyle as Re } from "@tiptap/extension-text-style";
|
|
14
14
|
import { Color as kt } from "@tiptap/extension-color";
|
|
15
15
|
import { Underline as wt } from "@tiptap/extension-underline";
|
|
@@ -208,9 +208,9 @@ const zt = ((tt = We == null ? void 0 : We.Node) == null ? void 0 : tt.create) ?
|
|
|
208
208
|
try {
|
|
209
209
|
const d = n, r = u();
|
|
210
210
|
if (r !== void 0) {
|
|
211
|
-
const { state:
|
|
212
|
-
if (
|
|
213
|
-
const D = { ...h.attrs || {}, width: C, height: k }, F =
|
|
211
|
+
const { state: g } = d, m = g.schema.nodes.video, h = g.doc.nodeAt(r);
|
|
212
|
+
if (m && h) {
|
|
213
|
+
const D = { ...h.attrs || {}, width: C, height: k }, F = g.tr.setNodeMarkup(r, m, D, h.marks);
|
|
214
214
|
d.view.dispatch(F);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
@@ -382,7 +382,7 @@ function Tt(e, u, n) {
|
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
var Ft = Symbol("icon-context");
|
|
385
|
-
function
|
|
385
|
+
function me(e, u, n) {
|
|
386
386
|
var o = {
|
|
387
387
|
name: "icon-" + e,
|
|
388
388
|
props: ["size", "strokeWidth", "strokeLinecap", "strokeLinejoin", "theme", "fill", "spin"],
|
|
@@ -405,7 +405,7 @@ function ge(e, u, n) {
|
|
|
405
405
|
};
|
|
406
406
|
return o;
|
|
407
407
|
}
|
|
408
|
-
const He =
|
|
408
|
+
const He = me("check", !0, function(e) {
|
|
409
409
|
return a("svg", {
|
|
410
410
|
width: e.size,
|
|
411
411
|
height: e.size,
|
|
@@ -418,7 +418,7 @@ const He = ge("check", !0, function(e) {
|
|
|
418
418
|
"stroke-linecap": e.strokeLinecap,
|
|
419
419
|
"stroke-linejoin": e.strokeLinejoin
|
|
420
420
|
}, null)]);
|
|
421
|
-
}), Ie =
|
|
421
|
+
}), Ie = me("down-one", !1, function(e) {
|
|
422
422
|
return a("svg", {
|
|
423
423
|
width: e.size,
|
|
424
424
|
height: e.size,
|
|
@@ -431,7 +431,7 @@ const He = ge("check", !0, function(e) {
|
|
|
431
431
|
"stroke-width": e.strokeWidth,
|
|
432
432
|
"stroke-linejoin": e.strokeLinejoin
|
|
433
433
|
}, null)]);
|
|
434
|
-
}), At =
|
|
434
|
+
}), At = me("font-size-two", !0, function(e) {
|
|
435
435
|
return a("svg", {
|
|
436
436
|
width: e.size,
|
|
437
437
|
height: e.size,
|
|
@@ -450,7 +450,7 @@ const He = ge("check", !0, function(e) {
|
|
|
450
450
|
"stroke-linecap": e.strokeLinecap,
|
|
451
451
|
"stroke-linejoin": e.strokeLinejoin
|
|
452
452
|
}, null)]);
|
|
453
|
-
}), Bt =
|
|
453
|
+
}), Bt = me("full-screen", !1, function(e) {
|
|
454
454
|
return a("svg", {
|
|
455
455
|
width: e.size,
|
|
456
456
|
height: e.size,
|
|
@@ -481,7 +481,7 @@ const He = ge("check", !0, function(e) {
|
|
|
481
481
|
"stroke-linecap": e.strokeLinecap,
|
|
482
482
|
"stroke-linejoin": e.strokeLinejoin
|
|
483
483
|
}, null)]);
|
|
484
|
-
}), Ht =
|
|
484
|
+
}), Ht = me("go-on", !0, function(e) {
|
|
485
485
|
return a("svg", {
|
|
486
486
|
width: e.size,
|
|
487
487
|
height: e.size,
|
|
@@ -500,7 +500,7 @@ const He = ge("check", !0, function(e) {
|
|
|
500
500
|
"stroke-linecap": e.strokeLinecap,
|
|
501
501
|
"stroke-linejoin": e.strokeLinejoin
|
|
502
502
|
}, null)]);
|
|
503
|
-
}), Vt =
|
|
503
|
+
}), Vt = me("off-screen", !1, function(e) {
|
|
504
504
|
return a("svg", {
|
|
505
505
|
width: e.size,
|
|
506
506
|
height: e.size,
|
|
@@ -531,7 +531,7 @@ const He = ge("check", !0, function(e) {
|
|
|
531
531
|
"stroke-linecap": e.strokeLinecap,
|
|
532
532
|
"stroke-linejoin": e.strokeLinejoin
|
|
533
533
|
}, null)]);
|
|
534
|
-
}), Ut =
|
|
534
|
+
}), Ut = me("preview-close-one", !0, function(e) {
|
|
535
535
|
return a("svg", {
|
|
536
536
|
width: e.size,
|
|
537
537
|
height: e.size,
|
|
@@ -556,7 +556,7 @@ const He = ge("check", !0, function(e) {
|
|
|
556
556
|
"stroke-linecap": e.strokeLinecap,
|
|
557
557
|
"stroke-linejoin": e.strokeLinejoin
|
|
558
558
|
}, null)]);
|
|
559
|
-
}), It =
|
|
559
|
+
}), It = me("return", !0, function(e) {
|
|
560
560
|
return a("svg", {
|
|
561
561
|
width: e.size,
|
|
562
562
|
height: e.size,
|
|
@@ -575,7 +575,7 @@ const He = ge("check", !0, function(e) {
|
|
|
575
575
|
"stroke-linecap": e.strokeLinecap,
|
|
576
576
|
"stroke-linejoin": e.strokeLinejoin
|
|
577
577
|
}, null)]);
|
|
578
|
-
}), Ot =
|
|
578
|
+
}), Ot = me("search", !0, function(e) {
|
|
579
579
|
return a("svg", {
|
|
580
580
|
width: e.size,
|
|
581
581
|
height: e.size,
|
|
@@ -600,7 +600,7 @@ const He = ge("check", !0, function(e) {
|
|
|
600
600
|
"stroke-linecap": e.strokeLinecap,
|
|
601
601
|
"stroke-linejoin": e.strokeLinejoin
|
|
602
602
|
}, null)]);
|
|
603
|
-
}), jt =
|
|
603
|
+
}), jt = me("strikethrough", !0, function(e) {
|
|
604
604
|
return a("svg", {
|
|
605
605
|
width: e.size,
|
|
606
606
|
height: e.size,
|
|
@@ -631,7 +631,7 @@ const He = ge("check", !0, function(e) {
|
|
|
631
631
|
"stroke-linecap": e.strokeLinecap,
|
|
632
632
|
"stroke-linejoin": e.strokeLinejoin
|
|
633
633
|
}, null)]);
|
|
634
|
-
}), Wt =
|
|
634
|
+
}), Wt = me("text-bold", !0, function(e) {
|
|
635
635
|
return a("svg", {
|
|
636
636
|
width: e.size,
|
|
637
637
|
height: e.size,
|
|
@@ -654,7 +654,7 @@ const He = ge("check", !0, function(e) {
|
|
|
654
654
|
"stroke-linecap": e.strokeLinecap,
|
|
655
655
|
"stroke-linejoin": e.strokeLinejoin
|
|
656
656
|
}, null)]);
|
|
657
|
-
}), Rt =
|
|
657
|
+
}), Rt = me("text-italic", !0, function(e) {
|
|
658
658
|
return a("svg", {
|
|
659
659
|
width: e.size,
|
|
660
660
|
height: e.size,
|
|
@@ -679,7 +679,7 @@ const He = ge("check", !0, function(e) {
|
|
|
679
679
|
"stroke-linecap": e.strokeLinecap,
|
|
680
680
|
"stroke-linejoin": e.strokeLinejoin
|
|
681
681
|
}, null)]);
|
|
682
|
-
}), Nt =
|
|
682
|
+
}), Nt = me("text-underline", !0, function(e) {
|
|
683
683
|
return a("svg", {
|
|
684
684
|
width: e.size,
|
|
685
685
|
height: e.size,
|
|
@@ -716,8 +716,8 @@ const He = ge("check", !0, function(e) {
|
|
|
716
716
|
let z = u.placement;
|
|
717
717
|
const C = p.getBoundingClientRect(), k = C.top, d = window.innerHeight - C.bottom, r = x.offsetHeight + u.offset;
|
|
718
718
|
z === "bottom" ? d < r && k >= r && (z = "top") : k < r && d >= r && (z = "bottom"), s.value = z;
|
|
719
|
-
const
|
|
720
|
-
y.value = { top:
|
|
719
|
+
const g = C.left + C.width / 2, m = z === "bottom" ? C.bottom + u.offset : C.top - u.offset - x.offsetHeight;
|
|
720
|
+
y.value = { top: m, left: g };
|
|
721
721
|
}
|
|
722
722
|
function v() {
|
|
723
723
|
c.value = !0, _e(f);
|
|
@@ -915,7 +915,7 @@ const He = ge("check", !0, function(e) {
|
|
|
915
915
|
}
|
|
916
916
|
function z(F) {
|
|
917
917
|
var S;
|
|
918
|
-
(S = u.editor) == null || S.chain().focus().setColor(F).run(), v.value = F,
|
|
918
|
+
(S = u.editor) == null || S.chain().focus().setColor(F).run(), v.value = F, g(F), x();
|
|
919
919
|
}
|
|
920
920
|
function C() {
|
|
921
921
|
var F;
|
|
@@ -937,7 +937,7 @@ const He = ge("check", !0, function(e) {
|
|
|
937
937
|
return [];
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function g(F) {
|
|
941
941
|
const S = [F, ...f.value.filter((b) => b !== F)];
|
|
942
942
|
f.value = S.slice(0, 12);
|
|
943
943
|
try {
|
|
@@ -945,14 +945,14 @@ const He = ge("check", !0, function(e) {
|
|
|
945
945
|
} catch {
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
let
|
|
948
|
+
let m = [];
|
|
949
949
|
function h() {
|
|
950
950
|
const F = u.editor;
|
|
951
|
-
F && (
|
|
951
|
+
F && (m = [
|
|
952
952
|
{ event: "selectionUpdate", handler: d },
|
|
953
953
|
{ event: "transaction", handler: d },
|
|
954
954
|
{ event: "update", handler: d }
|
|
955
|
-
],
|
|
955
|
+
], m.forEach(({ event: S, handler: b }) => {
|
|
956
956
|
F.on(S, b);
|
|
957
957
|
}));
|
|
958
958
|
}
|
|
@@ -961,15 +961,15 @@ const He = ge("check", !0, function(e) {
|
|
|
961
961
|
}), he(() => {
|
|
962
962
|
document.removeEventListener("click", k), window.removeEventListener(Pe, D);
|
|
963
963
|
const F = u.editor;
|
|
964
|
-
F &&
|
|
964
|
+
F && m.forEach(({ event: S, handler: b }) => {
|
|
965
965
|
F.off(S, b);
|
|
966
|
-
}),
|
|
966
|
+
}), m = [];
|
|
967
967
|
}), ke(
|
|
968
968
|
() => u.editor,
|
|
969
969
|
(F, S) => {
|
|
970
|
-
S &&
|
|
970
|
+
S && m.forEach(({ event: b, handler: E }) => {
|
|
971
971
|
S.off(b, E);
|
|
972
|
-
}),
|
|
972
|
+
}), m = [], h();
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
975
|
function D(F) {
|
|
@@ -1109,7 +1109,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1109
1109
|
})
|
|
1110
1110
|
], 512));
|
|
1111
1111
|
}
|
|
1112
|
-
}), go = /* @__PURE__ */ le(ho, [["__scopeId", "data-v-1656be6b"]]), mo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565315763" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81778" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM224 352h576v96H224zM224 800h576v96H224z" p-id="81779"></path></svg>', ko = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565310640" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81615" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h832v96H96zM96 800h832v96H96z" p-id="81616"></path></svg>', wo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565296828" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h576v96H96zM96 800h576v96H96z" p-id="81290"></path></svg>', bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565306218" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81452" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM352 352h576v96H352zM352 800h576v96H352z" p-id="81453"></path></svg>', yo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562183158" class="icon" viewBox="0 0 1102 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="79129" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.37109375" height="18"><path d="M93.105231 187.943385a78.769231 78.769231 0 1 1 0-157.538462 78.769231 78.769231 0 0 1 0 157.538462z m0 393.846153a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461z m0 393.846154a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461zM276.243692 161.792v-118.153846h787.692308v118.153846h-787.692308z m0.472616 397.233231v-118.153846h788.007384v118.153846H276.716308z m-3.308308 397.154461v-118.153846h789.267692v118.153846H273.329231z" fill="#333333" p-id="79130"></path></svg>', Co = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763566846467" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="83576" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M477.098667 709.717333a46.805333 46.805333 0 0 0 69.802666 0l296.021334-340.736c24.32-28.032 3.328-70.314667-34.944-70.314666H216.021333c-38.272 0-59.306667 42.282667-34.944 70.314666l296.021334 340.736z" fill="#000000" p-id="83577"></path></svg>', xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763568214776" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="84748" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M682.666667 772.266667l332.8-247.466667-324.266667-435.2-409.6 307.2-256 192L260.266667 896h691.2v-85.333333h-324.266667l55.466667-38.4zM674.133333 213.333333l221.866667 294.4-260.266667 196.266667-38.4 25.6-230.4-285.866667L674.133333 213.333333zM145.066667 605.866667l149.333333-110.933334 230.4 285.866667-34.133333 29.866667H298.666667l-153.6-204.8z" fill="#333333" p-id="84749"></path></svg>', _o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763479929532" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="52528" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M621.568 208.299a38.101 38.101 0 0 0-73.941-18.518L386.773 833.28a38.101 38.101 0 0 0 73.899 18.475l160.853-643.456zM325.632 294.4a38.101 38.101 0 0 1 0 53.888L162.347 511.573 325.632 674.86a38.101 38.101 0 0 1-53.845 53.888L81.493 538.539a38.101 38.101 0 0 1 0-53.931L271.787 294.4a38.101 38.101 0 0 1 53.888 0z m372.736 0a38.101 38.101 0 0 0 0 53.888l163.285 163.285L698.368 674.86a38.101 38.101 0 0 0 53.888 53.888l190.25-190.208a38.101 38.101 0 0 0 0-53.931L752.257 294.4a38.101 38.101 0 0 0-53.888 0z" fill="#333333" p-id="52529"></path></svg>', Lo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480012496" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="54461" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M338.986667 59.413333h52.586666a21.333333 21.333333 0 0 1 21.333334 21.333334V115.84a21.333333 21.333333 0 0 1-21.333334 21.333333H356.266667c-36.48 0-53.76 20.16-53.76 62.4v188.16c0 59.52-27.84 99.84-82.56 120 54.72 23.04 82.56 62.4 82.56 120v189.12c0 40.32 17.28 61.44 53.76 61.44h35.306666a21.333333 21.333333 0 0 1 21.333334 21.333334v35.093333a21.333333 21.333333 0 0 1-21.333334 21.333333H338.986667c-42.24 0-74.88-14.4-97.92-41.28-21.12-24.96-31.68-59.52-31.68-101.76v-180.48c0-27.84-5.76-48-17.28-60.48-11.178667-12.778667-29.653333-20.245333-55.466667-23.488a18.901333 18.901333 0 0 1-16.533333-18.773333v-43.221333c0-10.005333 7.381333-18.474667 17.28-19.84 25.408-3.498667 43.648-11.456 54.72-23.317334 11.52-13.44 17.28-33.6 17.28-60.48V203.413333c0-43.2 10.56-77.76 31.68-102.72 23.04-27.84 55.68-41.28 97.92-41.28z m292.48 0h52.586666c42.24 0 74.88 13.44 97.92 41.28 21.12 24.96 31.68 59.52 31.68 102.72v179.52c0 26.88 5.76 48 18.24 61.44 10.24 11.029333 28.224 18.816 53.418667 22.314667 10.112 1.408 17.621333 10.026667 17.621333 20.245333v40.746667a21.333333 21.333333 0 0 1-18.88 21.184c-24.576 3.413333-42.282667 10.794667-53.12 23.189333-11.52 12.48-17.28 32.64-17.28 60.48v180.48c0 42.24-10.56 76.8-31.68 101.76-23.04 26.88-55.68 41.28-97.92 41.28H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V899.626667a21.333333 21.333333 0 0 1 21.333334-21.333334h35.306666c35.52 0 53.76-21.12 53.76-61.44v-189.12c0-57.6 26.88-96.96 82.56-120-55.68-20.16-82.56-60.48-82.56-120v-188.16c0-42.24-18.24-62.4-53.76-62.4H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V80.746667a21.333333 21.333333 0 0 1 21.333334-21.333334z" fill="#000000" p-id="54462"></path></svg>', Mo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1768469045840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6989" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M393.846154 64.174932l117.454119 0.399843H512.499805l117.454119-0.399843-10.395939 10.395939c-18.89262 18.89262-28.488872 44.982429-26.28973 71.472081l20.292073 250.502148c2.998829 36.68567 18.092932 72.171808 42.483405 99.661069l34.186646 38.684889-122.252245-0.899648-55.478329-0.399844h-0.99961l-55.478329 0.399844-122.452167 0.799687 34.186646-38.684888c24.390472-27.589223 39.484576-62.9754 42.483405-99.66107l20.292074-250.402187c2.199141-26.589613-7.397111-52.679422-26.289731-71.472081l-10.395939-10.395939m281.889887-64.174932h-0.199922L512.399844 0.599766h-0.799688L348.36392 0h-0.199922c-20.891839 0-39.684498 13.494729-45.582194 33.58688-4.098399 13.994533-1.899258 30.887934 17.79305 47.581414l38.584927 38.584927c5.597813 5.597813 8.39672 13.294807 7.796955 21.091761L346.464662 391.247169c-1.899258 23.190941-11.195627 45.08239-26.589613 62.475596l-61.87583 69.872706c-8.696603 9.796173-13.894572 22.291292-14.394377 35.386177-0.299883 8.996486 1.599375 18.89262 8.596642 27.28934 6.897306 8.296759 17.293245 12.894963 27.989067 12.894963h0.299882l175.931277-1.199532 55.178446 422.834831 0.399844 3.098789 0.399844-3.098789 55.178446-422.834831 175.931277 1.199532h0.299882c10.795783 0 21.191722-4.598204 27.989067-12.894963 6.897306-8.39672 8.796564-18.292854 8.596642-27.28934-0.399844-13.094885-5.697774-25.590004-14.394377-35.386177l-61.87583-69.872706c-15.393987-17.393206-24.690355-39.284654-26.589613-62.475596l-20.292074-250.402187c-0.599766-7.796954 2.199141-15.593909 7.796955-21.091761l38.584927-38.584927c19.692308-16.693479 21.891449-33.58688 17.79305-47.581414-5.997657-19.992191-24.790316-33.58688-45.682155-33.58688z" p-id="6990"></path></svg>', zo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763569611105" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="87406" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 0.6 0.1 1.3 0.2 1.9-0.1 2-0.2 4.1-0.2 6.1 0 46.4 37.6 84 84 84s84-37.6 84-84c0-2.1-0.1-4.1-0.2-6.1 0.1-0.6 0.2-1.2 0.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z" p-id="87407"></path></svg>', $o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763473363174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28322" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M957.610667 507.434667L603.221333 158.293333a7.893333 7.893333 0 0 0-11.221333 0L353.28 393.386667a8.021333 8.021333 0 0 0-0.085333 11.306666l0.085333 0.128 40.021333 39.381334-117.205333 115.285333a8.021333 8.021333 0 0 0-0.085333 11.306667l0.085333 0.128 39.509333 38.869333-189.098666 187.008H72.106667a8.106667 8.106667 0 0 0-8.106667 8.021333v55.168c0 4.394667 3.584 8.021333 8.021333 8.021334H416.853333c2.133333 0 4.096-0.810667 5.589334-2.304l76.117333-75.605334 40.405333 39.808a7.936 7.936 0 0 0 11.178667 0l117.12-115.626666 40.106667 39.509333a7.893333 7.893333 0 0 0 11.178666 0l238.72-235.178667a7.68 7.68 0 0 0 0.298667-11.221333z m-567.808 288.853333H229.546667l134.4-133.034667 80.128 78.933334-54.314667 54.058666z m154.794666-62.122667l-171.392-168.917333 68.608-67.584 171.392 168.874667-68.608 67.626666z m168.533334-76.117333l-262.826667-258.901333 147.285333-145.066667 262.826667 258.986667-147.328 144.981333z" fill="#999999" p-id="28323"></path></svg>', So = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480451042" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="58395" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M938.666667 553.92V768c0 64.8-52.533333 117.333333-117.333334 117.333333H202.666667c-64.8 0-117.333333-52.533333-117.333334-117.333333V256c0-64.8 52.533333-117.333333 117.333334-117.333333h618.666666c64.8 0 117.333333 52.533333 117.333334 117.333333v297.92z m-64-74.624V256a53.333333 53.333333 0 0 0-53.333334-53.333333H202.666667a53.333333 53.333333 0 0 0-53.333334 53.333333v344.48A290.090667 290.090667 0 0 1 192 597.333333a286.88 286.88 0 0 1 183.296 65.845334C427.029333 528.384 556.906667 437.333333 704 437.333333c65.706667 0 126.997333 16.778667 170.666667 41.962667z m0 82.24c-5.333333-8.32-21.130667-21.653333-43.648-32.917333C796.768 511.488 753.045333 501.333333 704 501.333333c-121.770667 0-229.130667 76.266667-270.432 188.693334-2.730667 7.445333-7.402667 20.32-13.994667 38.581333-7.68 21.301333-34.453333 28.106667-51.370666 13.056-16.437333-14.634667-28.554667-25.066667-36.138667-31.146667A222.890667 222.890667 0 0 0 192 661.333333c-14.464 0-28.725333 1.365333-42.666667 4.053334V768a53.333333 53.333333 0 0 0 53.333334 53.333333h618.666666a53.333333 53.333333 0 0 0 53.333334-53.333333V561.525333zM320 480a96 96 0 1 1 0-192 96 96 0 0 1 0 192z m0-64a32 32 0 1 0 0-64 32 32 0 0 0 0 64z" fill="#000000" p-id="58396"></path></svg>', Eo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480387136" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="57289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M213.972 214.906l0.934-0.934c27.606-27.606 68.674-30.581 92.168-7.087l225.23 225.23c29.72-40.254 30.733-93.311-0.599-124.643L345.639 121.406c-35.132-35.132-97.076-30.148-138.356 11.132l-74.744 74.744c-41.28 41.28-46.264 103.224-11.132 138.356l186.065 186.065c31.332 31.332 84.389 30.319 124.643 0.599l-225.23-225.23c-23.494-23.492-20.519-64.56 7.087-92.166zM808.745 809.679l0.934-0.934c27.606-27.606 31.18-68.074 7.686-91.568l-225.23-225.23c40.254-29.72 93.311-30.733 124.643 0.599l186.065 186.065c35.132 35.132 29.548 96.477-11.732 137.757l-74.744 74.744c-41.28 41.28-102.625 46.863-137.757 11.732L492.546 716.779c-31.332-31.332-31.909-82.799-0.599-124.643l225.23 225.23c23.494 23.494 63.962 19.92 91.568-7.687z" fill="#666666" p-id="57290"></path><path d="M627.123 628.713c-12.296 12.296-32.232 12.296-44.528 0L394.938 441.057c-12.296-12.296-12.296-32.232 0-44.528s32.232-12.296 44.528 0l187.656 187.656c12.297 12.296 12.297 32.232 0.001 44.528z" fill="#666666" p-id="57291"></path></svg>', Do = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562537529" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="80294" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M107.5 736c28.6 0 52.2 7.1 70.2 21.4 18.5 15.1 27.9 36 27.9 61.7 0 22.9-8.4 41.3-24.7 54.1 16 12 29.6 32.8 29.6 57.3 0 27-9.7 49.7-28.8 67.2-19.6 17.5-45 26.3-75.6 26.3-29.2 0-53.4-7.8-71.7-23.3C14 983.6 2.4 958.4 0 926.1v-14.5h69.7V925c0.6 12.9 4.2 21.8 10.9 27.8 6.2 5.7 14.4 8.6 25.2 8.6 12.1 0 21.3-3.2 27.6-9.2 5.6-5.6 8.2-11.9 8.2-19.9 0-10-2.7-16.6-7.9-20.8-5.4-4.5-14.5-6.9-27.8-6.9H74.3v-58.9h31.5c11.6 0 19.8-2.2 24.5-6.1 4.1-3.5 6.3-9.2 6.3-17.4 0-8.3-2-13.9-5.3-17-4.6-3.9-12.3-6.1-23.5-6.1-11.5 0-19.3 2.5-24.8 7.4-5.5 4.8-8.9 12.8-10 23.7v13.4H5.1l-0.2-7v-8.2c2.4-29.1 13.4-52.1 32.7-68.2C55.8 744 79.3 736 107.5 736z m916.5 96v128H384V832h640zM106.9 368c28 0 51.7 8.4 70.5 25.1 18.8 17.1 28.2 39.1 28.2 65.8 0 25.4-9.7 48.8-28.8 70-10.4 11.1-27.9 24.8-55.3 43.2-10.1 6.6-18.5 12.9-25.2 18.7h109.3V656l-7.1 0.1-185.2-0.1c-4.5-0.6-7.5-1.6-9.8-3.8-2.4-2.4-3.2-5.6-3.5-10.4 0-29.7 9.6-55.5 28.8-77.1 10.3-11.8 30.6-28.1 61.1-49.1 14.4-10 25.7-19.2 32.4-26.3 8.9-10 13.2-20.3 13.2-30.8 0-9.8-2.3-16.6-6.4-20.4-4.5-4.1-12.2-6.3-23.6-6.3-11.3 0-18.8 3.4-24.1 10.6-5.7 7.3-9.2 19.8-9.9 37.7-0.5 3.9-1.6 6.8-3.8 9-2.1 2-4.8 3-10.4 4l-43-0.1c-4.2-0.8-7.1-1.9-9.2-4-2.2-2.3-3.2-5.3-3.7-10.3 0.4-32.1 9.9-58.3 28.6-78.2 19.6-21.6 45.5-32.5 76.9-32.5z m917.1 80v128H384V448h640zM146.6 0v288H75.1V94.2c-16.7 10.2-35.9 18.3-50.9 20.3l-8.2 1.6V46l4.8-2C39.3 37.3 52.5 31.7 60 27.6 71 20.9 82.1 11.7 96.3 0.1h50.3zM1024 64v128H384V64h640z" fill="#333333" p-id="80295"></path></svg>', To = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480239307" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="56277" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M849.6 231v109.5c-46.4 14.9-84.6 41.5-114.4 81.3-29.9 36.5-44.8 76.3-43.1 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 91.2 36.5 23.2 24.9 36.5 56.4 36.5 94.5S848 732 821.5 756.8C795 780 761.8 793.3 722 793.3c-46.4 0-82.9-19.9-112.8-56.4s-43.1-84.6-43.1-141c0-89.6 24.9-165.8 76.3-230.5C692 299 761.7 254.2 849.6 231z m-403 0v109.5c-46.4 14.9-82.9 41.5-112.8 81.3-31.5 36.5-46.4 76.3-44.8 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 89.6 36.5 24.9 24.9 38.1 56.4 38.1 94.5s-13.3 69.7-38.1 94.5c-26.5 23.2-61.4 36.5-101.2 36.5-46.4 0-82.9-19.9-111.1-56.4-29.9-36.5-44.8-84.6-44.8-141 0-89.6 24.9-165.8 76.3-230.5C289 299 358.7 254.2 446.6 231z" p-id="56278"></path></svg>', Fo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480808376" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="61532" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M959.825 384.002V191.94c0-70.692-57.308-128-128-128H191.94c-70.692 0-128 57.308-128 128v639.885c0 70.692 57.308 128 128 128h639.885c70.692 0 128-57.308 128-128V384.002z m-813.16-237.337a63.738 63.738 0 0 1 45.336-18.785H832a63.962 63.962 0 0 1 63.886 64.121v128.061H127.88v-128.06a63.738 63.738 0 0 1 18.785-45.337z m269.127 461.308v-223.97h192.181v223.97H415.792z m192.181 63.94v223.972H415.792V671.914h192.181z m-256.121-63.94H127.88v-223.97h223.972v223.97zM146.665 877.21a63.467 63.467 0 0 1-18.785-45.21V671.914h223.972v223.97h-159.85a63.626 63.626 0 0 1-45.337-18.675z m749.22-45.21a63.763 63.763 0 0 1-63.886 63.886H671.914V671.914h223.97v160.085z m0-224.026H671.914v-223.97h223.97v223.97z" p-id="61533"></path></svg>', Ao = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480994147" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="73821" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M933.529779 1022.701142H87.673207c-48.357498 0-87.523075-39.165577-87.523075-87.523076V1.798419h729.259049c48.357498 0 87.523075 39.165577 87.523076 87.523076v320.818031h204.220509V935.178066c-0.099912 48.357498-39.265489 87.523075-87.622987 87.523076z m-175.046151-904.205289c0-32.171724-26.077081-58.348717-58.348717-58.348717H58.498849v845.856572c0 32.171724 26.077081 58.348717 58.348717 58.348717h583.387257c32.171724 0 58.348717-26.077081 58.348717-58.348717V118.495853zM962.704137 468.588155h-145.871792v495.864182h87.523075c32.171724 0 58.348717-26.077081 58.348717-58.348717V468.588155z m-729.25905 0h379.166748v58.348717H233.445087V468.588155z m0-233.394868h379.166748v58.348717H233.445087v-58.348717z m262.569227 525.03854H233.445087v-58.348716h262.469314v58.348716z m0 0" p-id="73822"></path></svg>', Bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763477549677" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31202" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M828.6 75C889.572 75 939 124.428 939 185.4v676.2c0 60.972-49.428 110.4-110.4 110.4H152.4C91.428 972 42 922.572 42 861.6V185.4C42 124.428 91.428 75 152.4 75z m0 59.8H152.4c-27.946 0-50.6 22.654-50.6 50.6v676.2c0 27.946 22.654 50.6 50.6 50.6h676.2c27.946 0 50.6-22.654 50.6-50.6V185.4c0-27.946-22.654-50.6-50.6-50.6z m-20.56 167.48c11.48 11.504 11.641 30.022 0.502 41.725l-0.548 0.56L477.473 674.37c-11.251 11.227-29.274 11.663-41.05 1.123l-0.574-0.527L260.695 509.93c-12.018-11.325-12.581-30.248-1.257-42.266 11.145-11.828 29.65-12.56 41.69-1.788l0.577 0.53L455.756 611.56l310-309.325c11.689-11.664 30.62-11.644 42.284 0.045z" fill="#333333" p-id="31203"></path></svg>', Ho = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480631673" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="60480" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M960 192h-28.384c-16.8 0-32.928 6.624-44.928 18.432L800 295.936V256a96 96 0 0 0-96-96H96C43.072 160 0 203.04 0 256v512a96 96 0 0 0 96 96h608c52.992 0 96-43.008 96-96v-39.072l86.688 85.504c12 11.808 28.128 18.432 44.928 18.432H960a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64zM96 800c-17.664 0-32-14.368-32-32V256a32 32 0 0 1 32-32h608c17.632 0 32 14.336 32 32v512c0 17.632-14.368 32-32 32H96z m864-31.136h-32l-128-128V640l-32-32v-192l160-160h32v512.864z" fill="#333333" p-id="60481"></path></svg>', Vo = ["innerHTML"], Uo = /* @__PURE__ */ se({
|
|
1112
|
+
}), mo = /* @__PURE__ */ le(ho, [["__scopeId", "data-v-1656be6b"]]), go = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565315763" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81778" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM224 352h576v96H224zM224 800h576v96H224z" p-id="81779"></path></svg>', ko = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565310640" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81615" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h832v96H96zM96 800h832v96H96z" p-id="81616"></path></svg>', wo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565296828" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h576v96H96zM96 800h576v96H96z" p-id="81290"></path></svg>', bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565306218" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81452" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM352 352h576v96H352zM352 800h576v96H352z" p-id="81453"></path></svg>', yo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562183158" class="icon" viewBox="0 0 1102 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="79129" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.37109375" height="18"><path d="M93.105231 187.943385a78.769231 78.769231 0 1 1 0-157.538462 78.769231 78.769231 0 0 1 0 157.538462z m0 393.846153a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461z m0 393.846154a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461zM276.243692 161.792v-118.153846h787.692308v118.153846h-787.692308z m0.472616 397.233231v-118.153846h788.007384v118.153846H276.716308z m-3.308308 397.154461v-118.153846h789.267692v118.153846H273.329231z" fill="#333333" p-id="79130"></path></svg>', Co = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763566846467" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="83576" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M477.098667 709.717333a46.805333 46.805333 0 0 0 69.802666 0l296.021334-340.736c24.32-28.032 3.328-70.314667-34.944-70.314666H216.021333c-38.272 0-59.306667 42.282667-34.944 70.314666l296.021334 340.736z" fill="#000000" p-id="83577"></path></svg>', xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763568214776" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="84748" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M682.666667 772.266667l332.8-247.466667-324.266667-435.2-409.6 307.2-256 192L260.266667 896h691.2v-85.333333h-324.266667l55.466667-38.4zM674.133333 213.333333l221.866667 294.4-260.266667 196.266667-38.4 25.6-230.4-285.866667L674.133333 213.333333zM145.066667 605.866667l149.333333-110.933334 230.4 285.866667-34.133333 29.866667H298.666667l-153.6-204.8z" fill="#333333" p-id="84749"></path></svg>', _o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763479929532" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="52528" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M621.568 208.299a38.101 38.101 0 0 0-73.941-18.518L386.773 833.28a38.101 38.101 0 0 0 73.899 18.475l160.853-643.456zM325.632 294.4a38.101 38.101 0 0 1 0 53.888L162.347 511.573 325.632 674.86a38.101 38.101 0 0 1-53.845 53.888L81.493 538.539a38.101 38.101 0 0 1 0-53.931L271.787 294.4a38.101 38.101 0 0 1 53.888 0z m372.736 0a38.101 38.101 0 0 0 0 53.888l163.285 163.285L698.368 674.86a38.101 38.101 0 0 0 53.888 53.888l190.25-190.208a38.101 38.101 0 0 0 0-53.931L752.257 294.4a38.101 38.101 0 0 0-53.888 0z" fill="#333333" p-id="52529"></path></svg>', Lo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480012496" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="54461" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M338.986667 59.413333h52.586666a21.333333 21.333333 0 0 1 21.333334 21.333334V115.84a21.333333 21.333333 0 0 1-21.333334 21.333333H356.266667c-36.48 0-53.76 20.16-53.76 62.4v188.16c0 59.52-27.84 99.84-82.56 120 54.72 23.04 82.56 62.4 82.56 120v189.12c0 40.32 17.28 61.44 53.76 61.44h35.306666a21.333333 21.333333 0 0 1 21.333334 21.333334v35.093333a21.333333 21.333333 0 0 1-21.333334 21.333333H338.986667c-42.24 0-74.88-14.4-97.92-41.28-21.12-24.96-31.68-59.52-31.68-101.76v-180.48c0-27.84-5.76-48-17.28-60.48-11.178667-12.778667-29.653333-20.245333-55.466667-23.488a18.901333 18.901333 0 0 1-16.533333-18.773333v-43.221333c0-10.005333 7.381333-18.474667 17.28-19.84 25.408-3.498667 43.648-11.456 54.72-23.317334 11.52-13.44 17.28-33.6 17.28-60.48V203.413333c0-43.2 10.56-77.76 31.68-102.72 23.04-27.84 55.68-41.28 97.92-41.28z m292.48 0h52.586666c42.24 0 74.88 13.44 97.92 41.28 21.12 24.96 31.68 59.52 31.68 102.72v179.52c0 26.88 5.76 48 18.24 61.44 10.24 11.029333 28.224 18.816 53.418667 22.314667 10.112 1.408 17.621333 10.026667 17.621333 20.245333v40.746667a21.333333 21.333333 0 0 1-18.88 21.184c-24.576 3.413333-42.282667 10.794667-53.12 23.189333-11.52 12.48-17.28 32.64-17.28 60.48v180.48c0 42.24-10.56 76.8-31.68 101.76-23.04 26.88-55.68 41.28-97.92 41.28H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V899.626667a21.333333 21.333333 0 0 1 21.333334-21.333334h35.306666c35.52 0 53.76-21.12 53.76-61.44v-189.12c0-57.6 26.88-96.96 82.56-120-55.68-20.16-82.56-60.48-82.56-120v-188.16c0-42.24-18.24-62.4-53.76-62.4H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V80.746667a21.333333 21.333333 0 0 1 21.333334-21.333334z" fill="#000000" p-id="54462"></path></svg>', Mo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1768469045840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6989" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M393.846154 64.174932l117.454119 0.399843H512.499805l117.454119-0.399843-10.395939 10.395939c-18.89262 18.89262-28.488872 44.982429-26.28973 71.472081l20.292073 250.502148c2.998829 36.68567 18.092932 72.171808 42.483405 99.661069l34.186646 38.684889-122.252245-0.899648-55.478329-0.399844h-0.99961l-55.478329 0.399844-122.452167 0.799687 34.186646-38.684888c24.390472-27.589223 39.484576-62.9754 42.483405-99.66107l20.292074-250.402187c2.199141-26.589613-7.397111-52.679422-26.289731-71.472081l-10.395939-10.395939m281.889887-64.174932h-0.199922L512.399844 0.599766h-0.799688L348.36392 0h-0.199922c-20.891839 0-39.684498 13.494729-45.582194 33.58688-4.098399 13.994533-1.899258 30.887934 17.79305 47.581414l38.584927 38.584927c5.597813 5.597813 8.39672 13.294807 7.796955 21.091761L346.464662 391.247169c-1.899258 23.190941-11.195627 45.08239-26.589613 62.475596l-61.87583 69.872706c-8.696603 9.796173-13.894572 22.291292-14.394377 35.386177-0.299883 8.996486 1.599375 18.89262 8.596642 27.28934 6.897306 8.296759 17.293245 12.894963 27.989067 12.894963h0.299882l175.931277-1.199532 55.178446 422.834831 0.399844 3.098789 0.399844-3.098789 55.178446-422.834831 175.931277 1.199532h0.299882c10.795783 0 21.191722-4.598204 27.989067-12.894963 6.897306-8.39672 8.796564-18.292854 8.596642-27.28934-0.399844-13.094885-5.697774-25.590004-14.394377-35.386177l-61.87583-69.872706c-15.393987-17.393206-24.690355-39.284654-26.589613-62.475596l-20.292074-250.402187c-0.599766-7.796954 2.199141-15.593909 7.796955-21.091761l38.584927-38.584927c19.692308-16.693479 21.891449-33.58688 17.79305-47.581414-5.997657-19.992191-24.790316-33.58688-45.682155-33.58688z" p-id="6990"></path></svg>', zo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763569611105" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="87406" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 0.6 0.1 1.3 0.2 1.9-0.1 2-0.2 4.1-0.2 6.1 0 46.4 37.6 84 84 84s84-37.6 84-84c0-2.1-0.1-4.1-0.2-6.1 0.1-0.6 0.2-1.2 0.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z" p-id="87407"></path></svg>', $o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763473363174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28322" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M957.610667 507.434667L603.221333 158.293333a7.893333 7.893333 0 0 0-11.221333 0L353.28 393.386667a8.021333 8.021333 0 0 0-0.085333 11.306666l0.085333 0.128 40.021333 39.381334-117.205333 115.285333a8.021333 8.021333 0 0 0-0.085333 11.306667l0.085333 0.128 39.509333 38.869333-189.098666 187.008H72.106667a8.106667 8.106667 0 0 0-8.106667 8.021333v55.168c0 4.394667 3.584 8.021333 8.021333 8.021334H416.853333c2.133333 0 4.096-0.810667 5.589334-2.304l76.117333-75.605334 40.405333 39.808a7.936 7.936 0 0 0 11.178667 0l117.12-115.626666 40.106667 39.509333a7.893333 7.893333 0 0 0 11.178666 0l238.72-235.178667a7.68 7.68 0 0 0 0.298667-11.221333z m-567.808 288.853333H229.546667l134.4-133.034667 80.128 78.933334-54.314667 54.058666z m154.794666-62.122667l-171.392-168.917333 68.608-67.584 171.392 168.874667-68.608 67.626666z m168.533334-76.117333l-262.826667-258.901333 147.285333-145.066667 262.826667 258.986667-147.328 144.981333z" fill="#999999" p-id="28323"></path></svg>', So = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480451042" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="58395" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M938.666667 553.92V768c0 64.8-52.533333 117.333333-117.333334 117.333333H202.666667c-64.8 0-117.333333-52.533333-117.333334-117.333333V256c0-64.8 52.533333-117.333333 117.333334-117.333333h618.666666c64.8 0 117.333333 52.533333 117.333334 117.333333v297.92z m-64-74.624V256a53.333333 53.333333 0 0 0-53.333334-53.333333H202.666667a53.333333 53.333333 0 0 0-53.333334 53.333333v344.48A290.090667 290.090667 0 0 1 192 597.333333a286.88 286.88 0 0 1 183.296 65.845334C427.029333 528.384 556.906667 437.333333 704 437.333333c65.706667 0 126.997333 16.778667 170.666667 41.962667z m0 82.24c-5.333333-8.32-21.130667-21.653333-43.648-32.917333C796.768 511.488 753.045333 501.333333 704 501.333333c-121.770667 0-229.130667 76.266667-270.432 188.693334-2.730667 7.445333-7.402667 20.32-13.994667 38.581333-7.68 21.301333-34.453333 28.106667-51.370666 13.056-16.437333-14.634667-28.554667-25.066667-36.138667-31.146667A222.890667 222.890667 0 0 0 192 661.333333c-14.464 0-28.725333 1.365333-42.666667 4.053334V768a53.333333 53.333333 0 0 0 53.333334 53.333333h618.666666a53.333333 53.333333 0 0 0 53.333334-53.333333V561.525333zM320 480a96 96 0 1 1 0-192 96 96 0 0 1 0 192z m0-64a32 32 0 1 0 0-64 32 32 0 0 0 0 64z" fill="#000000" p-id="58396"></path></svg>', Eo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480387136" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="57289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M213.972 214.906l0.934-0.934c27.606-27.606 68.674-30.581 92.168-7.087l225.23 225.23c29.72-40.254 30.733-93.311-0.599-124.643L345.639 121.406c-35.132-35.132-97.076-30.148-138.356 11.132l-74.744 74.744c-41.28 41.28-46.264 103.224-11.132 138.356l186.065 186.065c31.332 31.332 84.389 30.319 124.643 0.599l-225.23-225.23c-23.494-23.492-20.519-64.56 7.087-92.166zM808.745 809.679l0.934-0.934c27.606-27.606 31.18-68.074 7.686-91.568l-225.23-225.23c40.254-29.72 93.311-30.733 124.643 0.599l186.065 186.065c35.132 35.132 29.548 96.477-11.732 137.757l-74.744 74.744c-41.28 41.28-102.625 46.863-137.757 11.732L492.546 716.779c-31.332-31.332-31.909-82.799-0.599-124.643l225.23 225.23c23.494 23.494 63.962 19.92 91.568-7.687z" fill="#666666" p-id="57290"></path><path d="M627.123 628.713c-12.296 12.296-32.232 12.296-44.528 0L394.938 441.057c-12.296-12.296-12.296-32.232 0-44.528s32.232-12.296 44.528 0l187.656 187.656c12.297 12.296 12.297 32.232 0.001 44.528z" fill="#666666" p-id="57291"></path></svg>', Do = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562537529" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="80294" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M107.5 736c28.6 0 52.2 7.1 70.2 21.4 18.5 15.1 27.9 36 27.9 61.7 0 22.9-8.4 41.3-24.7 54.1 16 12 29.6 32.8 29.6 57.3 0 27-9.7 49.7-28.8 67.2-19.6 17.5-45 26.3-75.6 26.3-29.2 0-53.4-7.8-71.7-23.3C14 983.6 2.4 958.4 0 926.1v-14.5h69.7V925c0.6 12.9 4.2 21.8 10.9 27.8 6.2 5.7 14.4 8.6 25.2 8.6 12.1 0 21.3-3.2 27.6-9.2 5.6-5.6 8.2-11.9 8.2-19.9 0-10-2.7-16.6-7.9-20.8-5.4-4.5-14.5-6.9-27.8-6.9H74.3v-58.9h31.5c11.6 0 19.8-2.2 24.5-6.1 4.1-3.5 6.3-9.2 6.3-17.4 0-8.3-2-13.9-5.3-17-4.6-3.9-12.3-6.1-23.5-6.1-11.5 0-19.3 2.5-24.8 7.4-5.5 4.8-8.9 12.8-10 23.7v13.4H5.1l-0.2-7v-8.2c2.4-29.1 13.4-52.1 32.7-68.2C55.8 744 79.3 736 107.5 736z m916.5 96v128H384V832h640zM106.9 368c28 0 51.7 8.4 70.5 25.1 18.8 17.1 28.2 39.1 28.2 65.8 0 25.4-9.7 48.8-28.8 70-10.4 11.1-27.9 24.8-55.3 43.2-10.1 6.6-18.5 12.9-25.2 18.7h109.3V656l-7.1 0.1-185.2-0.1c-4.5-0.6-7.5-1.6-9.8-3.8-2.4-2.4-3.2-5.6-3.5-10.4 0-29.7 9.6-55.5 28.8-77.1 10.3-11.8 30.6-28.1 61.1-49.1 14.4-10 25.7-19.2 32.4-26.3 8.9-10 13.2-20.3 13.2-30.8 0-9.8-2.3-16.6-6.4-20.4-4.5-4.1-12.2-6.3-23.6-6.3-11.3 0-18.8 3.4-24.1 10.6-5.7 7.3-9.2 19.8-9.9 37.7-0.5 3.9-1.6 6.8-3.8 9-2.1 2-4.8 3-10.4 4l-43-0.1c-4.2-0.8-7.1-1.9-9.2-4-2.2-2.3-3.2-5.3-3.7-10.3 0.4-32.1 9.9-58.3 28.6-78.2 19.6-21.6 45.5-32.5 76.9-32.5z m917.1 80v128H384V448h640zM146.6 0v288H75.1V94.2c-16.7 10.2-35.9 18.3-50.9 20.3l-8.2 1.6V46l4.8-2C39.3 37.3 52.5 31.7 60 27.6 71 20.9 82.1 11.7 96.3 0.1h50.3zM1024 64v128H384V64h640z" fill="#333333" p-id="80295"></path></svg>', To = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480239307" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="56277" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M849.6 231v109.5c-46.4 14.9-84.6 41.5-114.4 81.3-29.9 36.5-44.8 76.3-43.1 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 91.2 36.5 23.2 24.9 36.5 56.4 36.5 94.5S848 732 821.5 756.8C795 780 761.8 793.3 722 793.3c-46.4 0-82.9-19.9-112.8-56.4s-43.1-84.6-43.1-141c0-89.6 24.9-165.8 76.3-230.5C692 299 761.7 254.2 849.6 231z m-403 0v109.5c-46.4 14.9-82.9 41.5-112.8 81.3-31.5 36.5-46.4 76.3-44.8 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 89.6 36.5 24.9 24.9 38.1 56.4 38.1 94.5s-13.3 69.7-38.1 94.5c-26.5 23.2-61.4 36.5-101.2 36.5-46.4 0-82.9-19.9-111.1-56.4-29.9-36.5-44.8-84.6-44.8-141 0-89.6 24.9-165.8 76.3-230.5C289 299 358.7 254.2 446.6 231z" p-id="56278"></path></svg>', Fo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480808376" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="61532" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M959.825 384.002V191.94c0-70.692-57.308-128-128-128H191.94c-70.692 0-128 57.308-128 128v639.885c0 70.692 57.308 128 128 128h639.885c70.692 0 128-57.308 128-128V384.002z m-813.16-237.337a63.738 63.738 0 0 1 45.336-18.785H832a63.962 63.962 0 0 1 63.886 64.121v128.061H127.88v-128.06a63.738 63.738 0 0 1 18.785-45.337z m269.127 461.308v-223.97h192.181v223.97H415.792z m192.181 63.94v223.972H415.792V671.914h192.181z m-256.121-63.94H127.88v-223.97h223.972v223.97zM146.665 877.21a63.467 63.467 0 0 1-18.785-45.21V671.914h223.972v223.97h-159.85a63.626 63.626 0 0 1-45.337-18.675z m749.22-45.21a63.763 63.763 0 0 1-63.886 63.886H671.914V671.914h223.97v160.085z m0-224.026H671.914v-223.97h223.97v223.97z" p-id="61533"></path></svg>', Ao = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480994147" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="73821" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M933.529779 1022.701142H87.673207c-48.357498 0-87.523075-39.165577-87.523075-87.523076V1.798419h729.259049c48.357498 0 87.523075 39.165577 87.523076 87.523076v320.818031h204.220509V935.178066c-0.099912 48.357498-39.265489 87.523075-87.622987 87.523076z m-175.046151-904.205289c0-32.171724-26.077081-58.348717-58.348717-58.348717H58.498849v845.856572c0 32.171724 26.077081 58.348717 58.348717 58.348717h583.387257c32.171724 0 58.348717-26.077081 58.348717-58.348717V118.495853zM962.704137 468.588155h-145.871792v495.864182h87.523075c32.171724 0 58.348717-26.077081 58.348717-58.348717V468.588155z m-729.25905 0h379.166748v58.348717H233.445087V468.588155z m0-233.394868h379.166748v58.348717H233.445087v-58.348717z m262.569227 525.03854H233.445087v-58.348716h262.469314v58.348716z m0 0" p-id="73822"></path></svg>', Bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763477549677" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31202" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M828.6 75C889.572 75 939 124.428 939 185.4v676.2c0 60.972-49.428 110.4-110.4 110.4H152.4C91.428 972 42 922.572 42 861.6V185.4C42 124.428 91.428 75 152.4 75z m0 59.8H152.4c-27.946 0-50.6 22.654-50.6 50.6v676.2c0 27.946 22.654 50.6 50.6 50.6h676.2c27.946 0 50.6-22.654 50.6-50.6V185.4c0-27.946-22.654-50.6-50.6-50.6z m-20.56 167.48c11.48 11.504 11.641 30.022 0.502 41.725l-0.548 0.56L477.473 674.37c-11.251 11.227-29.274 11.663-41.05 1.123l-0.574-0.527L260.695 509.93c-12.018-11.325-12.581-30.248-1.257-42.266 11.145-11.828 29.65-12.56 41.69-1.788l0.577 0.53L455.756 611.56l310-309.325c11.689-11.664 30.62-11.644 42.284 0.045z" fill="#333333" p-id="31203"></path></svg>', Ho = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480631673" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="60480" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M960 192h-28.384c-16.8 0-32.928 6.624-44.928 18.432L800 295.936V256a96 96 0 0 0-96-96H96C43.072 160 0 203.04 0 256v512a96 96 0 0 0 96 96h608c52.992 0 96-43.008 96-96v-39.072l86.688 85.504c12 11.808 28.128 18.432 44.928 18.432H960a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64zM96 800c-17.664 0-32-14.368-32-32V256a32 32 0 0 1 32-32h608c17.632 0 32 14.336 32 32v512c0 17.632-14.368 32-32 32H96z m864-31.136h-32l-128-128V640l-32-32v-192l160-160h32v512.864z" fill="#333333" p-id="60481"></path></svg>', Vo = ["innerHTML"], Uo = /* @__PURE__ */ se({
|
|
1113
1113
|
__name: "SvgIcon",
|
|
1114
1114
|
props: {
|
|
1115
1115
|
name: {},
|
|
@@ -1118,7 +1118,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1118
1118
|
},
|
|
1119
1119
|
setup(e) {
|
|
1120
1120
|
const u = e, n = rt(), o = /* @__PURE__ */ Object.assign({
|
|
1121
|
-
"/src/svg/alignCenter.svg":
|
|
1121
|
+
"/src/svg/alignCenter.svg": go,
|
|
1122
1122
|
"/src/svg/alignJustify.svg": ko,
|
|
1123
1123
|
"/src/svg/alignLeft.svg": wo,
|
|
1124
1124
|
"/src/svg/alignRight.svg": bo,
|
|
@@ -1221,7 +1221,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1221
1221
|
"#85A5FF",
|
|
1222
1222
|
"#B37FEB",
|
|
1223
1223
|
"#F759AB"
|
|
1224
|
-
], o = H(!1), c = H(!1), s = H(null), y = H(u.currentBg || "#ffffff"), f = H(
|
|
1224
|
+
], o = H(!1), c = H(!1), s = H(null), y = H(u.currentBg || "#ffffff"), f = H(g()), v = H("#FADB14"), $ = ye("theme");
|
|
1225
1225
|
function x() {
|
|
1226
1226
|
o.value || window.dispatchEvent(new CustomEvent(Ge, { detail: { id: Xe } })), o.value = !o.value;
|
|
1227
1227
|
}
|
|
@@ -1233,7 +1233,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
function C(b) {
|
|
1235
1235
|
var E;
|
|
1236
|
-
(E = u.editor) == null || E.chain().focus().setMark("textStyle", { backgroundColor: b }).run(), v.value = b,
|
|
1236
|
+
(E = u.editor) == null || E.chain().focus().setMark("textStyle", { backgroundColor: b }).run(), v.value = b, m(b), p();
|
|
1237
1237
|
}
|
|
1238
1238
|
function k() {
|
|
1239
1239
|
var b;
|
|
@@ -1245,7 +1245,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
function r() {
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function g() {
|
|
1249
1249
|
try {
|
|
1250
1250
|
const b = localStorage.getItem("md_bg_recent");
|
|
1251
1251
|
if (!b) return [];
|
|
@@ -1255,7 +1255,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1255
1255
|
return [];
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function m(b) {
|
|
1259
1259
|
const E = [b, ...f.value.filter((A) => A !== b)];
|
|
1260
1260
|
f.value = E.slice(0, 12);
|
|
1261
1261
|
try {
|
|
@@ -1450,24 +1450,24 @@ const He = ge("check", !0, function(e) {
|
|
|
1450
1450
|
const u = ye("theme"), n = e, o = H(!1), c = H(""), s = H(!1), y = H(null), f = () => {
|
|
1451
1451
|
o.value = !o.value;
|
|
1452
1452
|
}, v = () => {
|
|
1453
|
-
var d, r,
|
|
1453
|
+
var d, r, g, m, h, D;
|
|
1454
1454
|
const k = c.value.trim();
|
|
1455
|
-
k && ((D = (h = ((
|
|
1455
|
+
k && ((D = (h = ((m = (r = (d = n.editor) == null ? void 0 : d.chain) == null ? void 0 : (g = r.call(d)).focus) == null ? void 0 : m.call(g)).setImage({ src: k })).run) == null || D.call(h), o.value = !1, c.value = "");
|
|
1456
1456
|
}, $ = (k) => {
|
|
1457
1457
|
k.key === "Enter" && v(), k.key === "Escape" && (o.value = !1, c.value = "");
|
|
1458
1458
|
}, x = () => {
|
|
1459
1459
|
var k;
|
|
1460
1460
|
n.imageUploader && ((k = y.value) == null || k.click());
|
|
1461
1461
|
}, p = async (k) => {
|
|
1462
|
-
var
|
|
1463
|
-
const d = k.target, r = (
|
|
1462
|
+
var m, h, D, F, S, b, E, A;
|
|
1463
|
+
const d = k.target, r = (m = d.files) == null ? void 0 : m[0];
|
|
1464
1464
|
if (d.value = "", !r || !n.imageUploader) return;
|
|
1465
|
-
const
|
|
1466
|
-
if (typeof
|
|
1467
|
-
const V = Math.max(1,
|
|
1465
|
+
const g = (h = n.uploadSizeLimit) == null ? void 0 : h.image;
|
|
1466
|
+
if (typeof g == "number" && g > 0) {
|
|
1467
|
+
const V = Math.max(1, g) * 1024 * 1024;
|
|
1468
1468
|
if (r.size > V) {
|
|
1469
1469
|
try {
|
|
1470
|
-
window.alert(`图片文件大小超限(${(r.size / 1024 / 1024).toFixed(2)}MB > ${
|
|
1470
|
+
window.alert(`图片文件大小超限(${(r.size / 1024 / 1024).toFixed(2)}MB > ${g}MB)`);
|
|
1471
1471
|
} catch {
|
|
1472
1472
|
}
|
|
1473
1473
|
return;
|
|
@@ -1482,13 +1482,13 @@ const He = ge("check", !0, function(e) {
|
|
|
1482
1482
|
const G = n.editor, { state: Q } = G, { doc: X } = Q;
|
|
1483
1483
|
let ie = null;
|
|
1484
1484
|
if (X.descendants((ee, re) => {
|
|
1485
|
-
var ne,
|
|
1486
|
-
return ((ne = ee == null ? void 0 : ee.type) == null ? void 0 : ne.name) === "image" && ((
|
|
1485
|
+
var ne, ge;
|
|
1486
|
+
return ((ne = ee == null ? void 0 : ee.type) == null ? void 0 : ne.name) === "image" && ((ge = ee == null ? void 0 : ee.attrs) == null ? void 0 : ge.src) === V ? (ie = re, !1) : !0;
|
|
1487
1487
|
}), ie != null) {
|
|
1488
1488
|
const ee = X.nodeAt(ie), re = Q.schema.nodes.image;
|
|
1489
1489
|
if (ee && re) {
|
|
1490
|
-
const ne = { ...ee.attrs || {}, src: R, uploading: null },
|
|
1491
|
-
G.view.dispatch(
|
|
1490
|
+
const ne = { ...ee.attrs || {}, src: R, uploading: null }, ge = Q.tr.setNodeMarkup(ie, re, ne, ee.marks);
|
|
1491
|
+
G.view.dispatch(ge);
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
o.value = !1, c.value = "";
|
|
@@ -1524,7 +1524,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1524
1524
|
a(te, {
|
|
1525
1525
|
name: "img",
|
|
1526
1526
|
size: 18,
|
|
1527
|
-
color: w(u) === "
|
|
1527
|
+
color: w(u) === "dark" && "#fff"
|
|
1528
1528
|
}, null, 8, ["color"])
|
|
1529
1529
|
]),
|
|
1530
1530
|
_: 1
|
|
@@ -1575,7 +1575,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1575
1575
|
})
|
|
1576
1576
|
], 512));
|
|
1577
1577
|
}
|
|
1578
|
-
}), rn = /* @__PURE__ */ le(ln, [["__scopeId", "data-v-
|
|
1578
|
+
}), rn = /* @__PURE__ */ le(ln, [["__scopeId", "data-v-dad55a02"]]), an = { class: "video-actions" }, cn = ["aria-disabled", "disabled"], dn = /* @__PURE__ */ se({
|
|
1579
1579
|
__name: "index",
|
|
1580
1580
|
props: {
|
|
1581
1581
|
editor: {},
|
|
@@ -1588,7 +1588,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1588
1588
|
}, v = () => {
|
|
1589
1589
|
const d = c.value.trim();
|
|
1590
1590
|
if (!d) return;
|
|
1591
|
-
const r = n.editor,
|
|
1591
|
+
const r = n.editor, g = r == null ? void 0 : r.commands;
|
|
1592
1592
|
if (/youtube\.com|youtu\.be|youtube-nocookie\.com/i.test(d)) {
|
|
1593
1593
|
const h = String(d).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1594
1594
|
try {
|
|
@@ -1598,7 +1598,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1598
1598
|
} catch {
|
|
1599
1599
|
r.chain().focus().insertContent(h).run();
|
|
1600
1600
|
}
|
|
1601
|
-
} else if (typeof (
|
|
1601
|
+
} else if (typeof (g == null ? void 0 : g.setVideo) == "function")
|
|
1602
1602
|
r.chain().focus().setVideo({ src: d, HTMLAttributes: { controls: !0, width: 640 } }).run();
|
|
1603
1603
|
else {
|
|
1604
1604
|
const h = String(d).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
@@ -1618,14 +1618,14 @@ const He = ge("check", !0, function(e) {
|
|
|
1618
1618
|
n.videoUploader && ((d = y.value) == null || d.click());
|
|
1619
1619
|
}, p = async (d) => {
|
|
1620
1620
|
var D, F;
|
|
1621
|
-
const r = d.target,
|
|
1622
|
-
if (r.value = "", !
|
|
1623
|
-
const
|
|
1624
|
-
if (typeof
|
|
1625
|
-
const S = Math.max(1,
|
|
1626
|
-
if (
|
|
1621
|
+
const r = d.target, g = (D = r.files) == null ? void 0 : D[0];
|
|
1622
|
+
if (r.value = "", !g || !n.videoUploader) return;
|
|
1623
|
+
const m = (F = n.uploadSizeLimit) == null ? void 0 : F.video;
|
|
1624
|
+
if (typeof m == "number" && m > 0) {
|
|
1625
|
+
const S = Math.max(1, m) * 1024 * 1024;
|
|
1626
|
+
if (g.size > S) {
|
|
1627
1627
|
try {
|
|
1628
|
-
window.alert(`视频文件大小超限(${(
|
|
1628
|
+
window.alert(`视频文件大小超限(${(g.size / 1024 / 1024).toFixed(2)}MB > ${m}MB)`);
|
|
1629
1629
|
} catch {
|
|
1630
1630
|
}
|
|
1631
1631
|
return;
|
|
@@ -1635,7 +1635,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1635
1635
|
try {
|
|
1636
1636
|
s.value = !0;
|
|
1637
1637
|
const S = n.editor, b = S == null ? void 0 : S.commands;
|
|
1638
|
-
h = URL.createObjectURL(
|
|
1638
|
+
h = URL.createObjectURL(g);
|
|
1639
1639
|
try {
|
|
1640
1640
|
if (typeof (b == null ? void 0 : b.setVideo) == "function")
|
|
1641
1641
|
S.chain().focus().setVideo({
|
|
@@ -1654,7 +1654,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
} catch {
|
|
1656
1656
|
}
|
|
1657
|
-
const E = await n.videoUploader(
|
|
1657
|
+
const E = await n.videoUploader(g);
|
|
1658
1658
|
h && z(h, E), o.value = !1, c.value = "";
|
|
1659
1659
|
} finally {
|
|
1660
1660
|
s.value = !1;
|
|
@@ -1665,18 +1665,18 @@ const He = ge("check", !0, function(e) {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
};
|
|
1667
1667
|
function z(d, r) {
|
|
1668
|
-
const
|
|
1669
|
-
if (!
|
|
1670
|
-
const { state:
|
|
1668
|
+
const g = n.editor;
|
|
1669
|
+
if (!g) return;
|
|
1670
|
+
const { state: m } = g, { doc: h } = m;
|
|
1671
1671
|
let D = null;
|
|
1672
1672
|
if (h.descendants((F, S) => {
|
|
1673
1673
|
var b, E;
|
|
1674
1674
|
return ((b = F.type) == null ? void 0 : b.name) === "video" && ((E = F.attrs) == null ? void 0 : E.src) === d ? (D = S, !1) : !0;
|
|
1675
1675
|
}), D != null) {
|
|
1676
|
-
const F = h.nodeAt(D), S =
|
|
1676
|
+
const F = h.nodeAt(D), S = m.schema.nodes.video;
|
|
1677
1677
|
if (!F || !S) return;
|
|
1678
|
-
const b = { ...F.attrs || {}, src: r, uploading: null }, E =
|
|
1679
|
-
|
|
1678
|
+
const b = { ...F.attrs || {}, src: r, uploading: null }, E = m.tr.setNodeMarkup(D, S, b, F.marks);
|
|
1679
|
+
g.view.dispatch(E);
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
1682
|
const C = H(null);
|
|
@@ -1684,8 +1684,8 @@ const He = ge("check", !0, function(e) {
|
|
|
1684
1684
|
return ve(() => {
|
|
1685
1685
|
k = (d) => {
|
|
1686
1686
|
if (!o.value) return;
|
|
1687
|
-
const r = C.value,
|
|
1688
|
-
r &&
|
|
1687
|
+
const r = C.value, g = d.target;
|
|
1688
|
+
r && g && !r.contains(g) && (o.value = !1);
|
|
1689
1689
|
}, document.addEventListener("mousedown", k, !0);
|
|
1690
1690
|
}), he(() => {
|
|
1691
1691
|
k && (document.removeEventListener("mousedown", k, !0), k = null);
|
|
@@ -1703,7 +1703,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1703
1703
|
a(te, {
|
|
1704
1704
|
name: "video",
|
|
1705
1705
|
size: 16,
|
|
1706
|
-
color: w(u) === "
|
|
1706
|
+
color: w(u) === "dark" && "#fff"
|
|
1707
1707
|
}, null, 8, ["color"])
|
|
1708
1708
|
]),
|
|
1709
1709
|
_: 1
|
|
@@ -1723,7 +1723,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1723
1723
|
class: "video-input",
|
|
1724
1724
|
type: "text",
|
|
1725
1725
|
placeholder: "粘贴视频链接(mp4/webm/m3u8等)",
|
|
1726
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1726
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => c.value = g),
|
|
1727
1727
|
onKeydown: $
|
|
1728
1728
|
}, null, 544), [
|
|
1729
1729
|
[$e, c.value]
|
|
@@ -1754,13 +1754,13 @@ const He = ge("check", !0, function(e) {
|
|
|
1754
1754
|
})
|
|
1755
1755
|
], 512));
|
|
1756
1756
|
}
|
|
1757
|
-
}), un = /* @__PURE__ */ le(dn, [["__scopeId", "data-v-
|
|
1757
|
+
}), un = /* @__PURE__ */ le(dn, [["__scopeId", "data-v-582dbd57"]]), vn = { class: "fr-header" }, fn = {
|
|
1758
1758
|
key: 0,
|
|
1759
1759
|
class: "fr-body"
|
|
1760
|
-
}, pn = { class: "fr-input-row" }, hn = ["value"],
|
|
1760
|
+
}, pn = { class: "fr-input-row" }, hn = ["value"], mn = {
|
|
1761
1761
|
key: 0,
|
|
1762
1762
|
class: "fr-count"
|
|
1763
|
-
},
|
|
1763
|
+
}, gn = { class: "fr-actions" }, kn = {
|
|
1764
1764
|
key: 1,
|
|
1765
1765
|
class: "fr-body"
|
|
1766
1766
|
}, wn = { class: "fr-input-row" }, bn = ["value"], yn = {
|
|
@@ -1791,8 +1791,8 @@ const He = ge("check", !0, function(e) {
|
|
|
1791
1791
|
for (; ; ) {
|
|
1792
1792
|
const ne = ee.indexOf(R, re);
|
|
1793
1793
|
if (ne === -1) break;
|
|
1794
|
-
const
|
|
1795
|
-
typeof
|
|
1794
|
+
const ge = V.posAtDOM(ie, ne), Ce = V.posAtDOM(ie, ne + R.length);
|
|
1795
|
+
typeof ge == "number" && typeof Ce == "number" && f.value.push({ from: ge, to: Ce }), re = ne + R.length;
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
_e(() => {
|
|
@@ -1807,7 +1807,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1807
1807
|
const X = f.value[v.value];
|
|
1808
1808
|
R.chain().focus().setTextSelection({ from: X.from, to: X.to }).run();
|
|
1809
1809
|
}
|
|
1810
|
-
const
|
|
1810
|
+
const g = () => f.value.length && r(v.value + 1), m = () => f.value.length && r(v.value - 1);
|
|
1811
1811
|
function h() {
|
|
1812
1812
|
const V = n.editor;
|
|
1813
1813
|
if (!V || !f.value.length) return;
|
|
@@ -1828,7 +1828,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1828
1828
|
s.value = V.target.value, d();
|
|
1829
1829
|
}
|
|
1830
1830
|
function S(V) {
|
|
1831
|
-
V.key === "Enter" &&
|
|
1831
|
+
V.key === "Enter" && g(), V.key === "Escape" && C();
|
|
1832
1832
|
}
|
|
1833
1833
|
const b = H(null);
|
|
1834
1834
|
let E = null;
|
|
@@ -1894,16 +1894,16 @@ const He = ge("check", !0, function(e) {
|
|
|
1894
1894
|
onInput: F,
|
|
1895
1895
|
onKeydown: S
|
|
1896
1896
|
}, null, 40, hn),
|
|
1897
|
-
s.value ? (B(), j("span",
|
|
1897
|
+
s.value ? (B(), j("span", mn, pe($.value), 1)) : K("", !0)
|
|
1898
1898
|
]),
|
|
1899
|
-
i("div",
|
|
1899
|
+
i("div", gn, [
|
|
1900
1900
|
i("button", {
|
|
1901
1901
|
class: "fr-btn",
|
|
1902
|
-
onClick: U(
|
|
1902
|
+
onClick: U(m, ["stop"])
|
|
1903
1903
|
}, "上一个"),
|
|
1904
1904
|
i("button", {
|
|
1905
1905
|
class: "fr-btn primary",
|
|
1906
|
-
onClick: U(
|
|
1906
|
+
onClick: U(g, ["stop"])
|
|
1907
1907
|
}, "下一个")
|
|
1908
1908
|
])
|
|
1909
1909
|
])) : (B(), j("div", kn, [
|
|
@@ -1937,11 +1937,11 @@ const He = ge("check", !0, function(e) {
|
|
|
1937
1937
|
}, "替换"),
|
|
1938
1938
|
i("button", {
|
|
1939
1939
|
class: "fr-btn",
|
|
1940
|
-
onClick: U(
|
|
1940
|
+
onClick: U(m, ["stop"])
|
|
1941
1941
|
}, "上一个"),
|
|
1942
1942
|
i("button", {
|
|
1943
1943
|
class: "fr-btn primary",
|
|
1944
|
-
onClick: U(
|
|
1944
|
+
onClick: U(g, ["stop"])
|
|
1945
1945
|
}, "下一个")
|
|
1946
1946
|
])
|
|
1947
1947
|
]))
|
|
@@ -1964,8 +1964,8 @@ const He = ge("check", !0, function(e) {
|
|
|
1964
1964
|
const d = u.editor;
|
|
1965
1965
|
if (!n.value && d)
|
|
1966
1966
|
try {
|
|
1967
|
-
const r = d.state.selection,
|
|
1968
|
-
r.to >
|
|
1967
|
+
const r = d.state.selection, g = r.from;
|
|
1968
|
+
r.to > g ? $() : (o.value = "链接", d.chain().focus().insertContent("链接").setTextSelection({ from: g, to: g + 2 }).run());
|
|
1969
1969
|
} catch {
|
|
1970
1970
|
}
|
|
1971
1971
|
n.value = !n.value, n.value && v();
|
|
@@ -1981,7 +1981,7 @@ const He = ge("check", !0, function(e) {
|
|
|
1981
1981
|
const d = u.editor;
|
|
1982
1982
|
if (d)
|
|
1983
1983
|
try {
|
|
1984
|
-
const r = d.state.selection,
|
|
1984
|
+
const r = d.state.selection, g = r.from, m = r.to, D = m > g ? d.state.doc.textBetween(g, m) : "";
|
|
1985
1985
|
o.value = D || "";
|
|
1986
1986
|
const F = d.getAttributes("link") || {};
|
|
1987
1987
|
c.value = typeof F.href == "string" ? F.href : "";
|
|
@@ -1991,18 +1991,18 @@ const He = ge("check", !0, function(e) {
|
|
|
1991
1991
|
function x() {
|
|
1992
1992
|
const d = u.editor;
|
|
1993
1993
|
if (!d) return;
|
|
1994
|
-
const r = o.value.trim(),
|
|
1995
|
-
if (
|
|
1994
|
+
const r = o.value.trim(), g = c.value.trim();
|
|
1995
|
+
if (g)
|
|
1996
1996
|
try {
|
|
1997
|
-
const
|
|
1997
|
+
const m = d.state.selection, h = m.from, D = m.to;
|
|
1998
1998
|
if (D > h) {
|
|
1999
|
-
const S = p(r || d.state.doc.textBetween(h, D)), b = p(
|
|
1999
|
+
const S = p(r || d.state.doc.textBetween(h, D)), b = p(g);
|
|
2000
2000
|
d.chain().focus().insertContent(
|
|
2001
2001
|
`<a href="${b}" target="_blank" rel="noopener noreferrer">${S}</a>`,
|
|
2002
2002
|
{ from: h, to: D }
|
|
2003
2003
|
).run();
|
|
2004
2004
|
} else {
|
|
2005
|
-
const S = p(
|
|
2005
|
+
const S = p(g), b = p(r || g);
|
|
2006
2006
|
d.chain().focus().insertContent(
|
|
2007
2007
|
`<a href="${S}" target="_blank" rel="noopener noreferrer">${b}</a>`
|
|
2008
2008
|
).run();
|
|
@@ -2021,26 +2021,26 @@ const He = ge("check", !0, function(e) {
|
|
|
2021
2021
|
ve(() => {
|
|
2022
2022
|
C = (d) => {
|
|
2023
2023
|
if (!n.value) return;
|
|
2024
|
-
const r = s.value,
|
|
2025
|
-
r &&
|
|
2024
|
+
const r = s.value, g = d.target;
|
|
2025
|
+
r && g && !r.contains(g) && (n.value = !1);
|
|
2026
2026
|
}, document.addEventListener("mousedown", C, !0);
|
|
2027
2027
|
}), he(() => {
|
|
2028
2028
|
C && (document.removeEventListener("mousedown", C, !0), C = null);
|
|
2029
2029
|
});
|
|
2030
2030
|
const k = H({});
|
|
2031
2031
|
return ke(n, async (d) => {
|
|
2032
|
-
var
|
|
2032
|
+
var g;
|
|
2033
2033
|
if (!d) return;
|
|
2034
2034
|
const r = u.editor;
|
|
2035
2035
|
if (r) {
|
|
2036
2036
|
await _e();
|
|
2037
2037
|
try {
|
|
2038
|
-
const
|
|
2038
|
+
const m = r.state.selection, h = m.from, D = m.to;
|
|
2039
2039
|
if (!(D > h)) {
|
|
2040
2040
|
k.value = {};
|
|
2041
2041
|
return;
|
|
2042
2042
|
}
|
|
2043
|
-
const S = r.view.coordsAtPos(h), b = r.view.coordsAtPos(D), E = (S.left + b.right) / 2, A = Math.max(S.bottom, b.bottom) + 8, V = (
|
|
2043
|
+
const S = r.view.coordsAtPos(h), b = r.view.coordsAtPos(D), E = (S.left + b.right) / 2, A = Math.max(S.bottom, b.bottom) + 8, V = (g = s.value) == null ? void 0 : g.querySelector(".link-input-panel"), R = V ? V.getBoundingClientRect() : { width: 320, height: 120 }, G = window.innerWidth, Q = window.innerHeight, X = 12, ie = Math.max(
|
|
2044
2044
|
X + R.width / 2,
|
|
2045
2045
|
Math.min(G - X - R.width / 2, E)
|
|
2046
2046
|
), ee = A, re = Math.min(S.top, b.top) - R.height - 8;
|
|
@@ -2067,7 +2067,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2067
2067
|
a(te, {
|
|
2068
2068
|
name: "link",
|
|
2069
2069
|
size: 16,
|
|
2070
|
-
color: w(y) === "
|
|
2070
|
+
color: w(y) === "dark" && "#fff"
|
|
2071
2071
|
}, null, 8, ["color"])
|
|
2072
2072
|
]),
|
|
2073
2073
|
_: 1
|
|
@@ -2090,7 +2090,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2090
2090
|
name: "link-text",
|
|
2091
2091
|
class: "input",
|
|
2092
2092
|
type: "text",
|
|
2093
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2093
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => o.value = g),
|
|
2094
2094
|
onKeydown: z
|
|
2095
2095
|
}, null, 544), [
|
|
2096
2096
|
[$e, o.value]
|
|
@@ -2102,7 +2102,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2102
2102
|
name: "link-href",
|
|
2103
2103
|
class: "input",
|
|
2104
2104
|
type: "text",
|
|
2105
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
2105
|
+
"onUpdate:modelValue": r[1] || (r[1] = (g) => c.value = g),
|
|
2106
2106
|
placeholder: "链接地址",
|
|
2107
2107
|
onKeydown: z
|
|
2108
2108
|
}, null, 544), [
|
|
@@ -2121,7 +2121,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2121
2121
|
})
|
|
2122
2122
|
], 512));
|
|
2123
2123
|
}
|
|
2124
|
-
}), Sn = /* @__PURE__ */ le($n, [["__scopeId", "data-v-
|
|
2124
|
+
}), Sn = /* @__PURE__ */ le($n, [["__scopeId", "data-v-84f547ec"]]), En = { class: "grid" }, Dn = ["onMouseenter"], Tn = { class: "size" }, Fn = 10, An = 10, Bn = /* @__PURE__ */ se({
|
|
2125
2125
|
__name: "index",
|
|
2126
2126
|
props: {
|
|
2127
2127
|
editor: {}
|
|
@@ -2135,9 +2135,9 @@ const He = ge("check", !0, function(e) {
|
|
|
2135
2135
|
}, v = (x, p) => {
|
|
2136
2136
|
c.value = x, s.value = p;
|
|
2137
2137
|
}, $ = () => {
|
|
2138
|
-
var z, C, k, d, r,
|
|
2138
|
+
var z, C, k, d, r, g, m, h;
|
|
2139
2139
|
const x = Math.max(c.value, 1), p = Math.max(s.value, 1);
|
|
2140
|
-
(h = (
|
|
2140
|
+
(h = (g = (d = (C = (z = u.editor) == null ? void 0 : z.chain) == null ? void 0 : (k = C.call(z)).focus) == null ? void 0 : (r = d.call(k)).insertTable) == null ? void 0 : (m = g.call(r, { rows: x, cols: p, withHeaderRow: !0 })).run) == null || h.call(m), o.value = !1, c.value = 0, s.value = 0;
|
|
2141
2141
|
};
|
|
2142
2142
|
return (x, p) => (B(), j("div", {
|
|
2143
2143
|
class: "icon table-icon",
|
|
@@ -2151,7 +2151,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2151
2151
|
a(te, {
|
|
2152
2152
|
name: "table",
|
|
2153
2153
|
size: 16,
|
|
2154
|
-
color: w(n) === "
|
|
2154
|
+
color: w(n) === "dark" && "#fff"
|
|
2155
2155
|
}, null, 8, ["color"])
|
|
2156
2156
|
]),
|
|
2157
2157
|
_: 1
|
|
@@ -2180,7 +2180,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2180
2180
|
])) : K("", !0)
|
|
2181
2181
|
]));
|
|
2182
2182
|
}
|
|
2183
|
-
}), Hn = /* @__PURE__ */ le(Bn, [["__scopeId", "data-v-
|
|
2183
|
+
}), Hn = /* @__PURE__ */ le(Bn, [["__scopeId", "data-v-d0d98332"]]), Vn = ["aria-disabled"], Un = { class: "tools-grid" }, In = ["disabled"], On = ["disabled"], jn = ["disabled"], Wn = ["disabled"], Rn = ["disabled"], Nn = ["disabled"], Pn = ["disabled"], Gn = ["disabled"], Yn = ["disabled"], Kn = ["disabled"], qn = ["disabled"], Jn = ["disabled"], Zn = ["disabled"], Xn = ["disabled"], Qn = ["disabled"], es = ["disabled"], ts = ["disabled"], os = /* @__PURE__ */ se({
|
|
2184
2184
|
__name: "index",
|
|
2185
2185
|
props: {
|
|
2186
2186
|
editor: {}
|
|
@@ -2210,7 +2210,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2210
2210
|
a(te, {
|
|
2211
2211
|
name: "tableTools",
|
|
2212
2212
|
size: 15,
|
|
2213
|
-
color: w(o) === "
|
|
2213
|
+
color: w(o) === "dark" && "#fff"
|
|
2214
2214
|
}, null, 8, ["color"])
|
|
2215
2215
|
]),
|
|
2216
2216
|
_: 1
|
|
@@ -2312,7 +2312,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2312
2312
|
], 8, Vn);
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
|
-
}), ns = /* @__PURE__ */ le(os, [["__scopeId", "data-v-
|
|
2315
|
+
}), ns = /* @__PURE__ */ le(os, [["__scopeId", "data-v-1aa3a259"]]), ss = /* @__PURE__ */ se({
|
|
2316
2316
|
__name: "index",
|
|
2317
2317
|
props: {
|
|
2318
2318
|
editor: {}
|
|
@@ -2351,14 +2351,14 @@ const He = ge("check", !0, function(e) {
|
|
|
2351
2351
|
a(te, {
|
|
2352
2352
|
name: "task",
|
|
2353
2353
|
size: 17,
|
|
2354
|
-
color: w(n) === "
|
|
2354
|
+
color: w(n) === "dark" && "#fff"
|
|
2355
2355
|
}, null, 8, ["color"])
|
|
2356
2356
|
]),
|
|
2357
2357
|
_: 1
|
|
2358
2358
|
}, 8, ["shortcut"])
|
|
2359
2359
|
]));
|
|
2360
2360
|
}
|
|
2361
|
-
}), ls = /* @__PURE__ */ le(ss, [["__scopeId", "data-v-
|
|
2361
|
+
}), ls = /* @__PURE__ */ le(ss, [["__scopeId", "data-v-0a1c80da"]]), is = /* @__PURE__ */ se({
|
|
2362
2362
|
__name: "index",
|
|
2363
2363
|
props: {
|
|
2364
2364
|
editor: {}
|
|
@@ -2381,14 +2381,14 @@ const He = ge("check", !0, function(e) {
|
|
|
2381
2381
|
a(te, {
|
|
2382
2382
|
name: "quote",
|
|
2383
2383
|
size: 18,
|
|
2384
|
-
color: w(n) === "
|
|
2384
|
+
color: w(n) === "dark" && "#fff"
|
|
2385
2385
|
}, null, 8, ["color"])
|
|
2386
2386
|
]),
|
|
2387
2387
|
_: 1
|
|
2388
2388
|
})
|
|
2389
2389
|
]));
|
|
2390
2390
|
}
|
|
2391
|
-
}), rs = /* @__PURE__ */ le(is, [["__scopeId", "data-v-
|
|
2391
|
+
}), rs = /* @__PURE__ */ le(is, [["__scopeId", "data-v-dcd9c3cd"]]), as = ["aria-expanded"], cs = { class: "label" }, ds = {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
class: "dropdown",
|
|
2394
2394
|
role: "listbox"
|
|
@@ -2418,8 +2418,8 @@ const He = ge("check", !0, function(e) {
|
|
|
2418
2418
|
var d, r;
|
|
2419
2419
|
const k = u.editor;
|
|
2420
2420
|
if (!k) return null;
|
|
2421
|
-
for (let
|
|
2422
|
-
if ((d = k.isActive) != null && d.call(k, "heading", { level:
|
|
2421
|
+
for (let g = 1; g <= 6; g++)
|
|
2422
|
+
if ((d = k.isActive) != null && d.call(k, "heading", { level: g })) return g;
|
|
2423
2423
|
return (r = k.isActive) != null && r.call(k, "paragraph"), null;
|
|
2424
2424
|
}), y = ce(() => {
|
|
2425
2425
|
const k = s.value;
|
|
@@ -2432,8 +2432,8 @@ const He = ge("check", !0, function(e) {
|
|
|
2432
2432
|
f.value = !1;
|
|
2433
2433
|
}
|
|
2434
2434
|
function p(k) {
|
|
2435
|
-
var r,
|
|
2436
|
-
const d = (h = (
|
|
2435
|
+
var r, g, m, h, D, F, S, b, E, A;
|
|
2436
|
+
const d = (h = (g = (r = u.editor) == null ? void 0 : r.chain) == null ? void 0 : (m = g.call(r)).focus) == null ? void 0 : h.call(m);
|
|
2437
2437
|
d && (k.level === null ? (S = (D = d.setParagraph) == null ? void 0 : (F = D.call(d)).run) == null || S.call(F) : (A = (E = (b = d.toggleHeading) == null ? void 0 : b.call(d, { level: k.level })) == null ? void 0 : E.run) == null || A.call(E), x());
|
|
2438
2438
|
}
|
|
2439
2439
|
function z(k) {
|
|
@@ -2479,7 +2479,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2479
2479
|
key: r.label,
|
|
2480
2480
|
class: "dropdown-item",
|
|
2481
2481
|
"aria-selected": r.level === s.value,
|
|
2482
|
-
onClick: U((
|
|
2482
|
+
onClick: U((g) => p(r), ["stop"])
|
|
2483
2483
|
}, [
|
|
2484
2484
|
r.level === s.value ? (B(), Me(w(He), {
|
|
2485
2485
|
key: 0,
|
|
@@ -2505,11 +2505,11 @@ const He = ge("check", !0, function(e) {
|
|
|
2505
2505
|
})
|
|
2506
2506
|
], 512));
|
|
2507
2507
|
}
|
|
2508
|
-
}), ps = /* @__PURE__ */ le(fs, [["__scopeId", "data-v-b93823aa"]]), hs = ["aria-expanded"],
|
|
2508
|
+
}), ps = /* @__PURE__ */ le(fs, [["__scopeId", "data-v-b93823aa"]]), hs = ["aria-expanded"], ms = {
|
|
2509
2509
|
key: 0,
|
|
2510
2510
|
class: "dropdown",
|
|
2511
2511
|
role: "menu"
|
|
2512
|
-
},
|
|
2512
|
+
}, gs = { class: "options" }, Ke = "md-toolbar-dropdown-open", et = "align-select", ks = /* @__PURE__ */ se({
|
|
2513
2513
|
__name: "index",
|
|
2514
2514
|
props: {
|
|
2515
2515
|
editor: {}
|
|
@@ -2517,17 +2517,17 @@ const He = ge("check", !0, function(e) {
|
|
|
2517
2517
|
setup(e) {
|
|
2518
2518
|
const u = e, n = ye("theme"), o = ce(() => {
|
|
2519
2519
|
var h, D, F, S;
|
|
2520
|
-
const
|
|
2521
|
-
return !
|
|
2520
|
+
const m = u.editor;
|
|
2521
|
+
return !m || (h = m.isActive) != null && h.call(m, { textAlign: "left" }) ? "left" : (D = m.isActive) != null && D.call(m, { textAlign: "center" }) ? "center" : (F = m.isActive) != null && F.call(m, { textAlign: "right" }) ? "right" : (S = m.isActive) != null && S.call(m, { textAlign: "justify" }) ? "justify" : "left";
|
|
2522
2522
|
}), c = ce(() => ({
|
|
2523
2523
|
left: "alignLeft",
|
|
2524
2524
|
center: "alignCenter",
|
|
2525
2525
|
right: "alignRight",
|
|
2526
2526
|
justify: "alignJustify"
|
|
2527
2527
|
})[o.value]);
|
|
2528
|
-
function s(
|
|
2528
|
+
function s(m) {
|
|
2529
2529
|
var h, D, F, S, b, E, A, V;
|
|
2530
|
-
(V = (E = (S = (D = (h = u.editor) == null ? void 0 : h.chain) == null ? void 0 : (F = D.call(h)).focus) == null ? void 0 : (b = S.call(F)).setTextAlign) == null ? void 0 : (A = E.call(b,
|
|
2530
|
+
(V = (E = (S = (D = (h = u.editor) == null ? void 0 : h.chain) == null ? void 0 : (F = D.call(h)).focus) == null ? void 0 : (b = S.call(F)).setTextAlign) == null ? void 0 : (A = E.call(b, m)).run) == null || V.call(A);
|
|
2531
2531
|
}
|
|
2532
2532
|
const y = H(!1), f = H(null), v = typeof navigator < "u" && navigator.platform.includes("Mac"), $ = v ? "⇧ ⌘ L" : "Ctrl Shift L", x = v ? "⇧ ⌘ E" : "Ctrl Shift E", p = v ? "⇧ ⌘ R" : "Ctrl Shift R", z = v ? "⇧ ⌘ J" : "Ctrl Shift J";
|
|
2533
2533
|
function C() {
|
|
@@ -2536,22 +2536,22 @@ const He = ge("check", !0, function(e) {
|
|
|
2536
2536
|
function k() {
|
|
2537
2537
|
y.value = !1;
|
|
2538
2538
|
}
|
|
2539
|
-
function d(
|
|
2540
|
-
s(
|
|
2539
|
+
function d(m) {
|
|
2540
|
+
s(m), k();
|
|
2541
2541
|
}
|
|
2542
|
-
function r(
|
|
2543
|
-
const h = f.value, D =
|
|
2542
|
+
function r(m) {
|
|
2543
|
+
const h = f.value, D = m.target;
|
|
2544
2544
|
h && !h.contains(D) && k();
|
|
2545
2545
|
}
|
|
2546
|
-
function m
|
|
2546
|
+
function g(m) {
|
|
2547
2547
|
var D;
|
|
2548
|
-
((D =
|
|
2548
|
+
((D = m.detail) == null ? void 0 : D.id) !== et && (y.value = !1);
|
|
2549
2549
|
}
|
|
2550
2550
|
return ve(() => {
|
|
2551
|
-
document.addEventListener("click", r), window.addEventListener(Ke,
|
|
2551
|
+
document.addEventListener("click", r), window.addEventListener(Ke, g);
|
|
2552
2552
|
}), he(() => {
|
|
2553
|
-
document.removeEventListener("click", r), window.removeEventListener(Ke,
|
|
2554
|
-
}), (
|
|
2553
|
+
document.removeEventListener("click", r), window.removeEventListener(Ke, g);
|
|
2554
|
+
}), (m, h) => (B(), j("div", {
|
|
2555
2555
|
class: "align-select",
|
|
2556
2556
|
ref_key: "rootRef",
|
|
2557
2557
|
ref: f
|
|
@@ -2569,12 +2569,12 @@ const He = ge("check", !0, function(e) {
|
|
|
2569
2569
|
a(te, {
|
|
2570
2570
|
name: c.value,
|
|
2571
2571
|
size: 18,
|
|
2572
|
-
color: w(n) === "
|
|
2572
|
+
color: w(n) === "dark" && "#fff"
|
|
2573
2573
|
}, null, 8, ["name", "color"]),
|
|
2574
2574
|
a(te, {
|
|
2575
2575
|
name: "caretDown",
|
|
2576
2576
|
size: 12,
|
|
2577
|
-
color: w(n) === "
|
|
2577
|
+
color: w(n) === "dark" && "#fff"
|
|
2578
2578
|
}, null, 8, ["color"])
|
|
2579
2579
|
], 8, hs)
|
|
2580
2580
|
]),
|
|
@@ -2582,8 +2582,8 @@ const He = ge("check", !0, function(e) {
|
|
|
2582
2582
|
}),
|
|
2583
2583
|
a(Le, { name: "dropdown-slide" }, {
|
|
2584
2584
|
default: N(() => [
|
|
2585
|
-
y.value ? (B(), j("div",
|
|
2586
|
-
i("div",
|
|
2585
|
+
y.value ? (B(), j("div", ms, [
|
|
2586
|
+
i("div", gs, [
|
|
2587
2587
|
i("div", {
|
|
2588
2588
|
class: J(["option", { active: o.value === "left" }]),
|
|
2589
2589
|
role: "menuitem",
|
|
@@ -2598,7 +2598,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2598
2598
|
a(te, {
|
|
2599
2599
|
name: "alignLeft",
|
|
2600
2600
|
size: 16,
|
|
2601
|
-
color: w(n) === "
|
|
2601
|
+
color: w(n) === "dark" && "#fff"
|
|
2602
2602
|
}, null, 8, ["color"])
|
|
2603
2603
|
]),
|
|
2604
2604
|
_: 1
|
|
@@ -2618,7 +2618,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2618
2618
|
a(te, {
|
|
2619
2619
|
name: "alignCenter",
|
|
2620
2620
|
size: 16,
|
|
2621
|
-
color: w(n) === "
|
|
2621
|
+
color: w(n) === "dark" && "#fff"
|
|
2622
2622
|
}, null, 8, ["color"])
|
|
2623
2623
|
]),
|
|
2624
2624
|
_: 1
|
|
@@ -2638,7 +2638,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2638
2638
|
a(te, {
|
|
2639
2639
|
name: "alignRight",
|
|
2640
2640
|
size: 16,
|
|
2641
|
-
color: w(n) === "
|
|
2641
|
+
color: w(n) === "dark" && "#fff"
|
|
2642
2642
|
}, null, 8, ["color"])
|
|
2643
2643
|
]),
|
|
2644
2644
|
_: 1
|
|
@@ -2658,7 +2658,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2658
2658
|
a(te, {
|
|
2659
2659
|
name: "alignJustify",
|
|
2660
2660
|
size: 16,
|
|
2661
|
-
color: w(n) === "
|
|
2661
|
+
color: w(n) === "dark" && "#fff"
|
|
2662
2662
|
}, null, 8, ["color"])
|
|
2663
2663
|
]),
|
|
2664
2664
|
_: 1
|
|
@@ -2671,7 +2671,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2671
2671
|
})
|
|
2672
2672
|
], 512));
|
|
2673
2673
|
}
|
|
2674
|
-
}), ws = /* @__PURE__ */ le(ks, [["__scopeId", "data-v-
|
|
2674
|
+
}), ws = /* @__PURE__ */ le(ks, [["__scopeId", "data-v-b321e2b4"]]), bs = ["aria-disabled"], ys = ["aria-disabled"], Cs = /* @__PURE__ */ se({
|
|
2675
2675
|
__name: "index",
|
|
2676
2676
|
props: {
|
|
2677
2677
|
editor: {},
|
|
@@ -2713,7 +2713,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2713
2713
|
}, x = () => {
|
|
2714
2714
|
var M, L, t;
|
|
2715
2715
|
return (t = (L = (M = n.editor) == null ? void 0 : M.commands) == null ? void 0 : L.redo) == null ? void 0 : t.call(L);
|
|
2716
|
-
}, p = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⌘ Z" : "Ctrl Z", z = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⇧ ⌘ Z" : "Ctrl Y", C = typeof navigator < "u" && navigator.platform.includes("Mac"), k = C ? "⌘ B" : "Ctrl B", d = C ? "⌘ I" : "Ctrl I", r = C ? "⌘ U" : "Ctrl U",
|
|
2716
|
+
}, p = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⌘ Z" : "Ctrl Z", z = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⇧ ⌘ Z" : "Ctrl Y", C = typeof navigator < "u" && navigator.platform.includes("Mac"), k = C ? "⌘ B" : "Ctrl B", d = C ? "⌘ I" : "Ctrl I", r = C ? "⌘ U" : "Ctrl U", g = C ? "⇧ ⌘ X" : "Ctrl Shift X", m = C ? "⌘ \\" : "Ctrl \\", h = C ? "⇧ ⌘ S" : "Ctrl Shift S", D = C ? "⇧ ⌘ 8" : "Ctrl Shift 8", F = C ? "⇧ ⌘ 7" : "Ctrl Shift 7", S = C ? "⇧ ⌘ C" : "Ctrl Shift C", b = H(null), E = () => {
|
|
2717
2717
|
var L, t, l, _, W, I, O;
|
|
2718
2718
|
const M = n.editor;
|
|
2719
2719
|
M && ((O = (I = (W = (_ = (l = (t = (L = M.chain()) == null ? void 0 : L.focus()) == null ? void 0 : t.unsetAllMarks) == null ? void 0 : l.call(t)) == null ? void 0 : _.removeEmptyTextStyle) == null ? void 0 : W.call(_)) == null ? void 0 : I.run) == null || O.call(I));
|
|
@@ -2755,7 +2755,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2755
2755
|
De();
|
|
2756
2756
|
}, ne = (M) => {
|
|
2757
2757
|
n.disabled || !((M.metaKey || M.ctrlKey) && M.shiftKey && (M.key === "s" || M.key === "S")) || !n.editor || (M.preventDefault(), ie(!1));
|
|
2758
|
-
},
|
|
2758
|
+
}, ge = (M) => {
|
|
2759
2759
|
var O, T, P, q;
|
|
2760
2760
|
if (n.disabled) return;
|
|
2761
2761
|
const L = M.metaKey || M.ctrlKey, t = M.key === "c" || M.key === "C";
|
|
@@ -2786,11 +2786,11 @@ const He = ge("check", !0, function(e) {
|
|
|
2786
2786
|
const Ve = () => {
|
|
2787
2787
|
var L;
|
|
2788
2788
|
const M = n.editor;
|
|
2789
|
-
!M || Ce || (Ce = !0, (L = M.on) == null || L.call(M, "selectionUpdate", re), window.addEventListener("keydown", ne), window.addEventListener("keydown",
|
|
2789
|
+
!M || Ce || (Ce = !0, (L = M.on) == null || L.call(M, "selectionUpdate", re), window.addEventListener("keydown", ne), window.addEventListener("keydown", ge), window.addEventListener("mouseup", Te, !0));
|
|
2790
2790
|
}, Oe = () => {
|
|
2791
2791
|
var L;
|
|
2792
2792
|
const M = n.editor;
|
|
2793
|
-
M && ((L = M.off) == null || L.call(M, "selectionUpdate", re), window.removeEventListener("keydown", ne), window.removeEventListener("keydown",
|
|
2793
|
+
M && ((L = M.off) == null || L.call(M, "selectionUpdate", re), window.removeEventListener("keydown", ne), window.removeEventListener("keydown", ge), window.removeEventListener("mouseup", Te, !0), Ce = !1);
|
|
2794
2794
|
};
|
|
2795
2795
|
ve(() => {
|
|
2796
2796
|
Ve();
|
|
@@ -2880,7 +2880,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2880
2880
|
a(te, {
|
|
2881
2881
|
name: "formatBrush",
|
|
2882
2882
|
size: 18,
|
|
2883
|
-
color: w(o) === "
|
|
2883
|
+
color: w(o) === "dark" && "#fff"
|
|
2884
2884
|
}, null, 8, ["color"])
|
|
2885
2885
|
]),
|
|
2886
2886
|
_: 1
|
|
@@ -2892,14 +2892,14 @@ const He = ge("check", !0, function(e) {
|
|
|
2892
2892
|
}, [
|
|
2893
2893
|
a(w(Y), {
|
|
2894
2894
|
text: "清除格式",
|
|
2895
|
-
shortcut: w(
|
|
2895
|
+
shortcut: w(m),
|
|
2896
2896
|
placement: "bottom"
|
|
2897
2897
|
}, {
|
|
2898
2898
|
default: N(() => [
|
|
2899
2899
|
a(te, {
|
|
2900
2900
|
name: "clearFormat",
|
|
2901
2901
|
size: 18,
|
|
2902
|
-
color: w(o) === "
|
|
2902
|
+
color: w(o) === "dark" && "#fff"
|
|
2903
2903
|
}, null, 8, ["color"])
|
|
2904
2904
|
]),
|
|
2905
2905
|
_: 1
|
|
@@ -2953,7 +2953,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2953
2953
|
}, [
|
|
2954
2954
|
a(w(Y), {
|
|
2955
2955
|
text: "删除线",
|
|
2956
|
-
shortcut: w(
|
|
2956
|
+
shortcut: w(g),
|
|
2957
2957
|
placement: "bottom"
|
|
2958
2958
|
}, {
|
|
2959
2959
|
default: N(() => [
|
|
@@ -2983,7 +2983,7 @@ const He = ge("check", !0, function(e) {
|
|
|
2983
2983
|
_: 1
|
|
2984
2984
|
}, 8, ["shortcut"])
|
|
2985
2985
|
], 2),
|
|
2986
|
-
a(w(
|
|
2986
|
+
a(w(mo), {
|
|
2987
2987
|
editor: n.editor,
|
|
2988
2988
|
currentColor: n.currentColor
|
|
2989
2989
|
}, null, 8, ["editor", "currentColor"]),
|
|
@@ -3006,7 +3006,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3006
3006
|
a(te, {
|
|
3007
3007
|
name: "bulletList",
|
|
3008
3008
|
size: 16,
|
|
3009
|
-
color: w(o) === "
|
|
3009
|
+
color: w(o) === "dark" && "#fff"
|
|
3010
3010
|
}, null, 8, ["color"])
|
|
3011
3011
|
]),
|
|
3012
3012
|
_: 1
|
|
@@ -3025,7 +3025,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3025
3025
|
a(te, {
|
|
3026
3026
|
name: "orderedList",
|
|
3027
3027
|
size: 16,
|
|
3028
|
-
color: w(o) === "
|
|
3028
|
+
color: w(o) === "dark" && "#fff"
|
|
3029
3029
|
}, null, 8, ["color"])
|
|
3030
3030
|
]),
|
|
3031
3031
|
_: 1
|
|
@@ -3046,7 +3046,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3046
3046
|
a(te, {
|
|
3047
3047
|
name: "code",
|
|
3048
3048
|
size: 18,
|
|
3049
|
-
color: w(o) === "
|
|
3049
|
+
color: w(o) === "dark" && "#fff"
|
|
3050
3050
|
}, null, 8, ["color"])
|
|
3051
3051
|
]),
|
|
3052
3052
|
_: 1
|
|
@@ -3065,7 +3065,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3065
3065
|
a(te, {
|
|
3066
3066
|
name: "codeBlock",
|
|
3067
3067
|
size: 16,
|
|
3068
|
-
color: w(o) === "
|
|
3068
|
+
color: w(o) === "dark" && "#fff"
|
|
3069
3069
|
}, null, 8, ["color"])
|
|
3070
3070
|
]),
|
|
3071
3071
|
_: 1
|
|
@@ -3117,7 +3117,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3117
3117
|
])
|
|
3118
3118
|
], 2));
|
|
3119
3119
|
}
|
|
3120
|
-
}), xs = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-
|
|
3120
|
+
}), xs = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-8a946786"]]), _s = { class: "outline__header" }, Ls = { class: "outline__listWrap" }, Ms = { class: "outline__list" }, zs = ["onClick"], $s = ["onClick"], Ss = /* @__PURE__ */ se({
|
|
3121
3121
|
__name: "index",
|
|
3122
3122
|
props: {
|
|
3123
3123
|
items: {},
|
|
@@ -3133,8 +3133,8 @@ const He = ge("check", !0, function(e) {
|
|
|
3133
3133
|
emits: ["select", "update:open"],
|
|
3134
3134
|
setup(e, { emit: u }) {
|
|
3135
3135
|
const n = e, o = u, c = ye("theme");
|
|
3136
|
-
function s(
|
|
3137
|
-
k(
|
|
3136
|
+
function s(g) {
|
|
3137
|
+
k(g), o("select", g);
|
|
3138
3138
|
}
|
|
3139
3139
|
function y() {
|
|
3140
3140
|
o("update:open", !1), o("update:pinned", !1);
|
|
@@ -3142,37 +3142,37 @@ const He = ge("check", !0, function(e) {
|
|
|
3142
3142
|
function f() {
|
|
3143
3143
|
n.pinned || y();
|
|
3144
3144
|
}
|
|
3145
|
-
function v(
|
|
3146
|
-
const
|
|
3147
|
-
for (const D of
|
|
3145
|
+
function v(g) {
|
|
3146
|
+
const m = [], h = [];
|
|
3147
|
+
for (const D of g) {
|
|
3148
3148
|
const F = { ...D, children: [] };
|
|
3149
3149
|
for (; h.length && h[h.length - 1].level >= F.level; ) h.pop();
|
|
3150
|
-
h.length ? h[h.length - 1].children.push(F) :
|
|
3150
|
+
h.length ? h[h.length - 1].children.push(F) : m.push(F), h.push(F);
|
|
3151
3151
|
}
|
|
3152
|
-
return
|
|
3152
|
+
return m;
|
|
3153
3153
|
}
|
|
3154
3154
|
const $ = H(/* @__PURE__ */ new Set());
|
|
3155
|
-
function x(
|
|
3156
|
-
return $.value.has(
|
|
3155
|
+
function x(g) {
|
|
3156
|
+
return $.value.has(g.pos);
|
|
3157
3157
|
}
|
|
3158
|
-
function p(
|
|
3159
|
-
const
|
|
3160
|
-
|
|
3158
|
+
function p(g) {
|
|
3159
|
+
const m = $.value;
|
|
3160
|
+
m.has(g.pos) ? m.delete(g.pos) : m.add(g.pos), $.value = new Set(m);
|
|
3161
3161
|
}
|
|
3162
3162
|
const z = ce(() => v(n.items || [])), C = ce(() => {
|
|
3163
|
-
const
|
|
3163
|
+
const g = [], m = (h) => {
|
|
3164
3164
|
for (const D of h)
|
|
3165
|
-
|
|
3165
|
+
g.push({ node: D, level: D.level, hasChildren: D.children.length > 0 }), $.value.has(D.pos) || m(D.children);
|
|
3166
3166
|
};
|
|
3167
|
-
return
|
|
3167
|
+
return m(z.value), g;
|
|
3168
3168
|
});
|
|
3169
|
-
function k(
|
|
3170
|
-
const
|
|
3171
|
-
if (!
|
|
3172
|
-
const { doc: h } =
|
|
3173
|
-
let S =
|
|
3174
|
-
D && D.type.name === "heading" && (S =
|
|
3175
|
-
const b = w(n.container) ?? null, E =
|
|
3169
|
+
function k(g) {
|
|
3170
|
+
const m = w(n.editor);
|
|
3171
|
+
if (!m) return;
|
|
3172
|
+
const { doc: h } = m.state, D = h.nodeAt(g.pos), F = Math.max(1, h.content.size - 1);
|
|
3173
|
+
let S = g.pos + 1;
|
|
3174
|
+
D && D.type.name === "heading" && (S = g.pos + D.nodeSize - 1), S = Math.min(Math.max(1, S), F), m.chain().focus().setTextSelection(S).run();
|
|
3175
|
+
const b = w(n.container) ?? null, E = m.view.coordsAtPos(S), A = n.offset ?? 8, V = n.duration ?? 700;
|
|
3176
3176
|
if (b) {
|
|
3177
3177
|
const R = b.getBoundingClientRect(), G = b.scrollTop + E.top - R.top - A;
|
|
3178
3178
|
d(b, G, V);
|
|
@@ -3181,25 +3181,25 @@ const He = ge("check", !0, function(e) {
|
|
|
3181
3181
|
r(R, V);
|
|
3182
3182
|
}
|
|
3183
3183
|
}
|
|
3184
|
-
function d(
|
|
3185
|
-
const D =
|
|
3184
|
+
function d(g, m, h = 600) {
|
|
3185
|
+
const D = g.scrollTop, F = m - D, S = performance.now(), b = (A) => A < 0.5 ? 4 * A * A * A : 1 - Math.pow(-2 * A + 2, 3) / 2;
|
|
3186
3186
|
function E(A) {
|
|
3187
3187
|
const V = A - S, R = Math.min(1, V / h);
|
|
3188
|
-
|
|
3188
|
+
g.scrollTop = D + F * b(R), R < 1 && requestAnimationFrame(E);
|
|
3189
3189
|
}
|
|
3190
3190
|
requestAnimationFrame(E);
|
|
3191
3191
|
}
|
|
3192
|
-
function r(
|
|
3193
|
-
const h = window.scrollY || window.pageYOffset, D =
|
|
3192
|
+
function r(g, m = 600) {
|
|
3193
|
+
const h = window.scrollY || window.pageYOffset, D = g - h, F = performance.now(), S = (E) => E < 0.5 ? 4 * E * E * E : 1 - Math.pow(-2 * E + 2, 3) / 2;
|
|
3194
3194
|
function b(E) {
|
|
3195
|
-
const A = E - F, V = Math.min(1, A /
|
|
3195
|
+
const A = E - F, V = Math.min(1, A / m), R = h + D * S(V);
|
|
3196
3196
|
window.scrollTo(0, R), V < 1 && requestAnimationFrame(b);
|
|
3197
3197
|
}
|
|
3198
3198
|
requestAnimationFrame(b);
|
|
3199
3199
|
}
|
|
3200
|
-
return (
|
|
3200
|
+
return (g, m) => (B(), j("div", {
|
|
3201
3201
|
class: "outline-wrapper",
|
|
3202
|
-
onClick:
|
|
3202
|
+
onClick: m[1] || (m[1] = U(() => {
|
|
3203
3203
|
}, ["stop"]))
|
|
3204
3204
|
}, [
|
|
3205
3205
|
i("aside", {
|
|
@@ -3210,14 +3210,14 @@ const He = ge("check", !0, function(e) {
|
|
|
3210
3210
|
onMouseleave: f
|
|
3211
3211
|
}, [
|
|
3212
3212
|
i("div", _s, [
|
|
3213
|
-
|
|
3213
|
+
m[2] || (m[2] = i("div", { style: { "margin-right": "6px" } }, "大纲", -1)),
|
|
3214
3214
|
n.open && !n.pinned ? (B(), Me(te, {
|
|
3215
3215
|
key: 0,
|
|
3216
3216
|
style: { "margin-top": "2px" },
|
|
3217
3217
|
name: "fixed",
|
|
3218
3218
|
size: 16,
|
|
3219
|
-
color: w(c) === "
|
|
3220
|
-
onClick:
|
|
3219
|
+
color: w(c) === "dark" && "#fff",
|
|
3220
|
+
onClick: m[0] || (m[0] = (h) => g.$emit("update:pinned", !0))
|
|
3221
3221
|
}, null, 8, ["color"])) : K("", !0),
|
|
3222
3222
|
n.pinned ? (B(), Me(w(Ut), {
|
|
3223
3223
|
key: 1,
|
|
@@ -3238,7 +3238,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3238
3238
|
class: J(["outline__caret", { collapsed: x(h.node), expanded: !x(h.node) }]),
|
|
3239
3239
|
onClick: U((F) => p(h.node), ["stop"]),
|
|
3240
3240
|
title: "展开/收起"
|
|
3241
|
-
}, [...
|
|
3241
|
+
}, [...m[3] || (m[3] = [
|
|
3242
3242
|
i("svg", {
|
|
3243
3243
|
width: "12",
|
|
3244
3244
|
height: "12",
|
|
@@ -3271,7 +3271,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3271
3271
|
})
|
|
3272
3272
|
]));
|
|
3273
3273
|
}
|
|
3274
|
-
}), Es = /* @__PURE__ */ le(Ss, [["__scopeId", "data-v-
|
|
3274
|
+
}), Es = /* @__PURE__ */ le(Ss, [["__scopeId", "data-v-64d05f68"]]), Ds = ["onClick"], Ts = /* @__PURE__ */ se({
|
|
3275
3275
|
__name: "index",
|
|
3276
3276
|
props: {
|
|
3277
3277
|
modelValue: {},
|
|
@@ -3296,7 +3296,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3296
3296
|
);
|
|
3297
3297
|
const s = H(null);
|
|
3298
3298
|
let y = !1;
|
|
3299
|
-
const f = H(!1), v = H(!1), $ = H(""), x = H([]), p = H("#000000"), z = H(!0), C = H(!0), k = H(null), d = H(void 0), r = H([]),
|
|
3299
|
+
const f = H(!1), v = H(!1), $ = H(""), x = H([]), p = H("#000000"), z = H(!0), C = H(!0), k = H(null), d = H(void 0), r = H([]), g = H(null), m = (t) => {
|
|
3300
3300
|
var l;
|
|
3301
3301
|
if (o.readonly)
|
|
3302
3302
|
try {
|
|
@@ -3401,7 +3401,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3401
3401
|
A,
|
|
3402
3402
|
kt,
|
|
3403
3403
|
wt,
|
|
3404
|
-
|
|
3404
|
+
mt.configure({
|
|
3405
3405
|
autolink: !0,
|
|
3406
3406
|
linkOnPaste: !0,
|
|
3407
3407
|
openOnClick: !1,
|
|
@@ -3410,7 +3410,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3410
3410
|
rel: "noopener noreferrer"
|
|
3411
3411
|
}
|
|
3412
3412
|
}),
|
|
3413
|
-
|
|
3413
|
+
gt.configure({
|
|
3414
3414
|
types: ["heading", "paragraph"]
|
|
3415
3415
|
}),
|
|
3416
3416
|
ht.configure({ placeholder: o.placeholder ?? "输入 / 以插入块" })
|
|
@@ -3501,7 +3501,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3501
3501
|
}
|
|
3502
3502
|
const ae = _.getData("text/plain");
|
|
3503
3503
|
if (ae) {
|
|
3504
|
-
const oe = ae.trim(), de =
|
|
3504
|
+
const oe = ae.trim(), de = ge(oe);
|
|
3505
3505
|
if (re(oe) && oe === ae.trim()) {
|
|
3506
3506
|
if (l.preventDefault(), /^data:image\//i.test(oe)) {
|
|
3507
3507
|
const Ee = ee(oe, "clipboard.png"), xe = (Se = o.uploadSizeLimit) == null ? void 0 : Se.image;
|
|
@@ -3640,7 +3640,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3640
3640
|
}
|
|
3641
3641
|
try {
|
|
3642
3642
|
const T = ((_ = (l = s.value) == null ? void 0 : l.view) == null ? void 0 : _.dom) || null;
|
|
3643
|
-
(W = T == null ? void 0 : T.addEventListener) == null || W.call(T, "dragstart",
|
|
3643
|
+
(W = T == null ? void 0 : T.addEventListener) == null || W.call(T, "dragstart", m, !0), (I = T == null ? void 0 : T.addEventListener) == null || I.call(T, "dragover", m, !0), (O = T == null ? void 0 : T.addEventListener) == null || O.call(T, "drop", m, !0);
|
|
3644
3644
|
} catch {
|
|
3645
3645
|
}
|
|
3646
3646
|
});
|
|
@@ -3648,7 +3648,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3648
3648
|
var t, l, _, W, I, O;
|
|
3649
3649
|
try {
|
|
3650
3650
|
const T = ((l = (t = s.value) == null ? void 0 : t.view) == null ? void 0 : l.dom) || null;
|
|
3651
|
-
(_ = T == null ? void 0 : T.removeEventListener) == null || _.call(T, "dragstart",
|
|
3651
|
+
(_ = T == null ? void 0 : T.removeEventListener) == null || _.call(T, "dragstart", m, !0), (W = T == null ? void 0 : T.removeEventListener) == null || W.call(T, "dragover", m, !0), (I = T == null ? void 0 : T.removeEventListener) == null || I.call(T, "drop", m, !0);
|
|
3652
3652
|
} catch {
|
|
3653
3653
|
}
|
|
3654
3654
|
(O = s.value) == null || O.destroy();
|
|
@@ -3803,7 +3803,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3803
3803
|
function ne(t) {
|
|
3804
3804
|
return /^https?:\/\//i.test(t) && /\.(mp4|webm|m3u8|mov|ogv?)(\?.*)?$/i.test(t);
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function ge(t) {
|
|
3807
3807
|
const l = t.match(/^!\[[^\]]*\]\(([^)]+)\)\s*$/);
|
|
3808
3808
|
if (!l) return null;
|
|
3809
3809
|
const _ = l[1].trim().replace(/^<|>$/g, "");
|
|
@@ -3881,7 +3881,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3881
3881
|
function Te() {
|
|
3882
3882
|
const t = s.value, l = k.value, _ = x.value;
|
|
3883
3883
|
if (!t || !l || !_.length) {
|
|
3884
|
-
r.value = [],
|
|
3884
|
+
r.value = [], g.value = null;
|
|
3885
3885
|
return;
|
|
3886
3886
|
}
|
|
3887
3887
|
const W = l.getBoundingClientRect(), I = l.scrollHeight || l.clientHeight, O = l.clientHeight || 1, T = _.map((Z) => {
|
|
@@ -3896,7 +3896,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3896
3896
|
if (t.view.coordsAtPos(Math.min(ae.pos + 1, t.state.doc.content.size)).top - W.top + l.scrollTop <= P) q = ae.pos;
|
|
3897
3897
|
else break;
|
|
3898
3898
|
}
|
|
3899
|
-
|
|
3899
|
+
g.value = q;
|
|
3900
3900
|
}
|
|
3901
3901
|
function M(t) {
|
|
3902
3902
|
const l = t.target;
|
|
@@ -3955,7 +3955,7 @@ const He = ge("check", !0, function(e) {
|
|
|
3955
3955
|
var I;
|
|
3956
3956
|
return B(), j("span", {
|
|
3957
3957
|
key: W,
|
|
3958
|
-
class: J(["outline-marker", { active: ((I = x.value[W]) == null ? void 0 : I.pos) ===
|
|
3958
|
+
class: J(["outline-marker", { active: ((I = x.value[W]) == null ? void 0 : I.pos) === g.value }]),
|
|
3959
3959
|
style: ue({ top: (_ || 0) + "px" }),
|
|
3960
3960
|
onClick: U((O) => {
|
|
3961
3961
|
var T, P;
|